How anoushka1405/sagardrishti works
SagarDrishti detects oil slicks in Sentinel-1 SAR imagery, estimates spill age and origin through drift modeling, then attributes likely vessels using AIS trajectories and behavior. Users can run forensic analysis, inspect GIS and vessel evidence, and use a separate proactive watchlist for vessels in sensitive zones; the browser UI reaches analysis through the FastAPI backend, while a Streamlit dashboard also invokes the pipeline. The graph preserves documented capabilities, but unsampled implementation details and some UI-to-API routes are not expanded beyond the evidence shown.
Main entry points: run_pipeline.py Pipeline Orchestrator · App.jsx Browser UI · main.py FastAPI Service · proactive_risk.py Proactive Risk Watchlist
Components 19
User Interfaces
- Browser UI
frontend/src/App.jsx - Forensic View
frontend/src/components/ForensicTab.jsx - Proactive View
frontend/src/components/ProactiveTab.jsx - Analysis Sandbox
frontend/src/components/SandboxTab.jsx - Fallback Data
frontend/src/data/defaultData.js - Streamlit Dashboard
dashboard/app.py
API and Orchestration
- FastAPI Service
src/api/main.py - Pipeline Orchestrator
src/pipeline/run_pipeline.py
Spill Analysis
- SAR and Metocean Loading
src/data/loaders.py - SAR Segmentation
src/detection/segmentation_model.py - Detection and Geometry
src/detection - Spill Age Estimation
src/age_estimation/age_model.py - Drift and Hindcast
src/drift
AIS and Attribution
- AIS Data
src/data/synthetic_ais.py - AIS Trajectories and Features
src/ais - Suspect Ranking
src/scoring/suspect_scoring.py - Proactive Risk Watchlist
src/scoring/proactive_risk.py - Geospatial Utilities
src/utils/geo_utils.py
Other components
- Analyst
Connections 22
- Analyst → Browser UI: uses
- Analyst → Streamlit Dashboard: uses
- Browser UI → Forensic View: renders
frontend/src/App.jsx - Browser UI → Proactive View: renders
frontend/src/App.jsx - Browser UI → Analysis Sandbox: renders
frontend/src/App.jsx - Browser UI → Fallback Data: loads fallback
frontend/src/App.jsx - Browser UI → FastAPI Service: requests analysis
frontend/src/App.jsx - Streamlit Dashboard → Pipeline Orchestrator: runs
dashboard/app.py - FastAPI Service → Pipeline Orchestrator: invokes
src/api/main.py - Pipeline Orchestrator → SAR and Metocean Loading: loads inputs
src/pipeline/run_pipeline.py - Pipeline Orchestrator → SAR Segmentation: predicts mask
src/pipeline/run_pipeline.py - Pipeline Orchestrator → Detection and Geometry: filters and extracts geometry
src/pipeline/run_pipeline.py - Pipeline Orchestrator → Spill Age Estimation: estimates age
src/pipeline/run_pipeline.py - Pipeline Orchestrator → Drift and Hindcast: forecasts and hindcasts
src/pipeline/run_pipeline.py - Pipeline Orchestrator → AIS Data: loads demo vessels
src/pipeline/run_pipeline.py - Pipeline Orchestrator → AIS Trajectories and Features: reconstructs and analyzes
src/pipeline/run_pipeline.py - Pipeline Orchestrator → Suspect Ranking: ranks suspects
src/pipeline/run_pipeline.py - FastAPI Service → Drift and Hindcast: simulates drift
src/api/main.py - FastAPI Service → Proactive Risk Watchlist: serves watchlist
src/api/main.py - Proactive Risk Watchlist → AIS Trajectories and Features: uses behavior features
src/scoring/proactive_risk.py - AIS Trajectories and Features → Geospatial Utilities: uses distance utility
src/ais/behaviour_features.py - Proactive Risk Watchlist → Geospatial Utilities: checks zone distance
src/scoring/proactive_risk.py