About
## The problem it solves
High-hazard industries (oil & gas, chemicals, offshore, energy) rarely have "sudden" accidents. Serious injuries and fatalities (SIF) are almost always preceded by warning signs: near-misses, bypassed barriers, skipped gas tests, missed lockouts. These signs sit buried in thousands of free-text shift logs and incident reports, scattered across sites, and reviewed only after something goes wrong.
**PRECURSOR-X turns those hidden signals into early-warning intelligence.**
- **AI Report Analyzer:** a supervisor pastes or uploads a shift log. The system extracts hazards, precursors and failed barriers and returns a SIF probability, for example 88% for a confined-space entry without gas monitoring.
- **Risk Intelligence:** a 5x5 severity-vs-probability matrix and site-by-site benchmarking show where precursor density is highest.
- **Safety DNA:** clusters recurring combinations of hazards and barrier failures across facilities.
- **Safety Memory:** semantic search of past incidents, with the broken barrier and lesson learned for each.
- **Knowledge Graph:** maps the causal chain from hazard to fatal outcome.
- **What Changed:** flags sudden acceleration in precursors and drops in barrier integrity.
- **Interventions:** tracks corrective and preventive actions (CAPA) from dispatch to verified closure.
- **Human Review:** a safety engineer certifies, reclassifies or escalates every AI flag, so the AI never acts alone.
The result: teams move from reactive paperwork to predictive prevention, acting on the precursor before it becomes the incident.
## Challenges we ran into
- **Turning messy text into trustworthy structure.** Field reports are unstructured and inconsistent. Getting the LLM (Groq) to return consistent hazards, barriers and probabilities, and keeping the app usable when output was imperfect, took repeated prompt and schema iteration, with Pydantic validation on every response. - **Keeping nine workspaces consistent.** The dashboard, risk matrix, Safety DNA, knowledge graph and interventions all had to tell the same story from the same data. We built a deterministic safety dataset so every screen agreed with the others. - **Making the AI accountable.** A safety tool can't be a black box. We designed the Human Review workflow so every AI classification can be certified, recalibrated or escalated, with a written justification log. - **Frontend and backend integration.** We built the UI against an API abstraction layer first so the FastAPI and PostgreSQL backend could be swapped in without rewriting screens. Aligning contracts, CORS and environment config for deployment on Render was a real hurdle. - **Visualizing complex relationships.** Rendering the causal knowledge graph and the risk heatmap so a non-expert can read them at a glance took many design iterations.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











