SafeShift

Your security cameras, now spotting hazards.

QuackHacks 3.0AI spots the risk. Humans make the call.

Guided demo

This replays real screens from SafeShift, with the timing sped up. It is not the live app.

  1. SafeShift manager dashboard. A kitchen CCTV feed sits idle at 0 of 3 frames, with four site camera thumbnails below it. An alert queue on the right lists six alerts, three of them pending.
    Cameras you already have. Your existing security cameras become hazard detectors.
  2. SafeShift Live Monitor. A kitchen CCTV frame shows a fallen container and a puddle, boxed and labeled Liquid Spill, 95 percent. A banner reads Confirmed, Liquid Spill, with 3 of 3 frames. The Live Analysis panel shows the temporal confirmation, severity High, Needs human review, evidence, a rule inspector and a note that it was written to the dashboard.
    A spill, spotted. Gemini flags a liquid spill at 95% confidence.
  3. SafeShift Live Monitor. A kitchen CCTV frame shows a fallen container and a puddle, boxed and labeled Liquid Spill, 95 percent. A banner reads Confirmed, Liquid Spill, with 3 of 3 frames. The Live Analysis panel shows the temporal confirmation, severity High, Needs human review, evidence, a rule inspector and a note that it was written to the dashboard.
    One frame isn't enough. A single frame never alerts. The hazard has to appear in 3 of 5.
  4. SafeShift Live Monitor. A kitchen CCTV frame shows a fallen container and a puddle, boxed and labeled Liquid Spill, 95 percent. A banner reads Confirmed, Liquid Spill, with 3 of 3 frames. The Live Analysis panel shows the temporal confirmation, severity High, Needs human review, evidence, a rule inspector and a note that it was written to the dashboard.
    Rules, not guesses. A hand-written table, not the model, sets the severity to HIGH and names the Floor Lead to review.
  5. The same Liquid Spill alert scrolled down. It shows the captured frame, evidence bullets, the rule inspector, a note that no video is stored and only the flagged frame is kept, and Confirm, False alarm, Assign and Resolve buttons.
    Straight to the queue. The alert arrives with the exact frame that triggered it.
  6. The same Liquid Spill alert scrolled down. It shows the captured frame, evidence bullets, the rule inspector, a note that no video is stored and only the flagged frame is kept, and Confirm, False alarm, Assign and Resolve buttons.
    A person makes the call. Confirm, False alarm, Assign or Resolve. No video is stored, only this frame.
  7. Worker app on a phone. A photo of a wet kitchen floor has a scanning line across it, with the message Analyzing your photo: reading the scene and drafting a respectful note for your manager.
    What cameras can't see. Workers can photograph a hazard from their phone.
  8. Worker app form, further down. Severity is High, with an AI plain-language summary and an editable message to the manager. A note says this is an AI draft for human review. A Report anonymously toggle and a Submit report button follow.
    The hard message, drafted. Gemini writes a polite note to the manager. The worker can edit it or report anonymously.
  9. Worker app confirmation: Reported. A manager has been alerted. A message says you won't get in trouble for reporting.
    Safe to speak up. “You won't get in trouble for reporting.” The report joins the same queue.

How it works

  1. 05 Human reviewReview

    The alert and the one frame that triggered it are saved, and the dashboard updates in realtime. A person confirms, dismisses, assigns or resolves it.

    Firestore

The hazard types are liquid spill, blocked exit, blocked extinguisher, blocked accessible path, walkway obstruction, trip hazard cable, or none. Only the Gemini call runs on the server, which keeps the API key off the client. The gate needs a rolling window of recent frames, so it runs in the browser with the rules and the Firestore write.

Background

A lot of workplace accidents start as a near-miss nobody writes down: a spill during a rush, boxes in front of an exit, a blocked fire extinguisher. SafeShift tries to catch those early, with human review on every alert.

We built it in 24 hours at QuackHacks 3.0 at the University of Oregon, in spring 2026. It was a team of three. I did the architecture, AI and backend: the Gemini schema, the temporal gate, the rules layer and the integration. Bawan built the monitoring frontend and design, and Haddy built the manager workflow and the worker side.

It is a hackathon project, kept as built. There is no live instance, which is why the demo above replays real screens.

Tech

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind CSS v4
  • Gemini 2.5 Flash
  • Cloud Firestore
  • Firebase Storage
  • Firebase App Hosting