How tarun-015/oil-safety-intelligence works
This is a Streamlit safety-intelligence prototype whose implemented workflow analyzes safety-report text, derives SIF and hazard findings, scores risk, recommends actions, and presents report-level and aggregate results. Asset and workforce readiness, plus user-driven integrated assessment, are documented platform extensions; their source files are present but empty in the supplied excerpts, so those branches are shown as planned rather than as verified runtime flows.
Main entry points: nlp_engine.py Text preparation · app.py Safety dashboard · safety_engine.py Integrated decision · safety_reports.xlsx Safety reports
Components 15
User experience
- Safety dashboard
src/app.py
Safety analysis
- Safety reports
data/safety_reports.xlsx - Text preparation
src/nlp_engine.py - SIF classification
src/nlp_engine.py - Hazard and barrier findings
src/nlp_engine.py - IOGP rule mapping
src/nlp_engine.py - Risk scoring
src/nlp_engine.py - Action recommendations
src/nlp_engine.py
Readiness extensions
- Asset readiness
src/asset_engine.py - Asset dashboard
pages/2_Asset_Readiness.py - Workforce readiness
src/workforce_engine.py - Workforce dashboard
pages/3_Workforce_Readiness.py
Integrated assessment
- Safety assessment
pages/4_Safety_Assessment.py - Integrated decision
src/safety_engine.py
Other components
- Safety team
Connections 15
- Safety team → Safety dashboard: views analysis
README.md - Safety dashboard → Text preparation: runs pipeline
src/app.py - Safety reports → Text preparation: loads reports
src/nlp_engine.py - Text preparation → SIF classification: prepares text
README.md - Text preparation → Hazard and barrier findings: analyzes text
README.md - Text preparation → IOGP rule mapping: maps rules
README.md - SIF classification → Risk scoring: informs score
README.md - Hazard and barrier findings → Risk scoring: informs score
README.md - Risk scoring → Action recommendations: guides actions
README.md - Safety dashboard → Asset dashboard: offers extension
README.md - Safety dashboard → Workforce dashboard: offers extension
README.md - Safety assessment → Integrated decision: requests decision
README.md - Integrated decision → Asset readiness: evaluates readiness
README.md - Integrated decision → Workforce readiness: evaluates readiness
README.md - Integrated decision → Risk scoring: combines findings
README.md