Inspiration

Picture this: a site engineer spots a leaking oil seal on a massive generator during a daily safety check. They scribble it down on a paper clipboard.

The office thinks they "digitised" that process because someone scanned the sheet into a dead PDF or typed it into Excel three days later. Meanwhile, nobody reads that PDF, the oil keeps dripping, and the machine blows up.

For the Accenture Challenge, we wanted to fix a broken process that everyone just accepts as "just the way things work." And for DurHack's theme of Composition, we wanted to bring messy handwriting, AI vision, and past machine history together into one fast loop—before the engineer even walks away from the machine.

What it does

SiteLog AI turns a phone photo or webcam snap of a messy paper checklist into a live, prioritized repair ticket in 5 seconds.

  • Zero rigid forms: Snap a photo of any printed or handwritten sheet—no fixed template boxes needed.
  • Catches repeat faults automatically: Instead of reading today's sheet in isolation, SiteLog AI checks past inspections in our database. If GENERATOR-07 had two minor oil warnings last month, today's small drip automatically upgrades to a CRITICAL (4-Hour Lockout) ticket.
  • Attaches cropped visual proof: It crops the exact box of the engineer's handwriting from the photo and sticks it right on the ticket so supervisors can verify it in two seconds.
  • Never guesses blindly: If handwriting is too messy (< 75% confidence), it routes the ticket to Human Review, and supervisors have to click Approve & Dispatch before shutting down any machine.

How we built it

We composed four specialized layers so each tool handles what it does best:

  • The Eyes (RapidOCR + Pillow): Reads every line of text and its exact pixel box on the page locally, then crops out the handwritten note as visual proof.
  • The Brain (Groq + Llama 3.3 70B + Pydantic): Understands messy notes in context, spots FAIL items or warnings, and forces the output into strict JSON so nothing breaks downstream.
  • The Memory & Rules (SQLite + Python): Looks up past warnings for that exact machine ID and uses strict Python rules to set repair deadlines (so the AI can never hallucinate safety timelines).
  • The Dashboard (FastAPI + Tailwind CSS): A clean web app with live webcam scanning, a full ticket lifecycle (Approve & Dispatch $\rightarrow$ Mark as Fixed), and a live SQLite database viewer tab.

Challenges we ran into

  • Cloud Vision API meltdowns: Our first Vision API kept throwing 503 overload errors right in the middle of the hackathon. Instead of getting stuck, we pivoted to a hybrid pipeline—running RapidOCR locally on our laptop for text and bounding boxes, and sending the text to Groq's LLM. It ended up way faster and way more reliable.
  • SQLite locking itself out: The exact second our AI pipeline finally worked, the app crashed with database is locked because we opened two database connections at the same time. Switching SQLite to WAL mode and sharing one connection fixed it instantly.

What we learned

  • AI + strict code beats AI alone: LLMs are amazing at reading messy human notes, but strict Python rules should always make the final safety decision.
  • Proof builds trust: Nobody trusts a black-box AI alert on a factory floor—showing the cropped photo of the real handwriting right next to the ticket changes everything.

What's next for SiteLog AI

  • Offline basement mode: Letting workers scan sheets in dead-signal areas with zero Wi-Fi and auto-sync tickets once they walk back upstairs.
  • One-click ERP sync: Pushing approved tickets straight into Jira, ServiceNow, or mechanics' phones.

Built With

Share this project:

Updates

Submission history