How tanyaa20/sih-uttarkashi works
BhuRakshak is a geospatial multi-hazard decision-support platform for identifying unsafe habitations and planning relocation. Its principal workflow combines terrain, population, weather and disaster-history inputs; computes hazard and site suitability; produces dynamic alerts and relocation priorities; and presents operational decisions through a map-based console. The graph preserves documented capacity assessment, relocation orders, historical replay and continuous learning. Several unsampled capabilities are connected only where the README documents the relationship; source excerpts do not establish every runtime link.
Main entry points: main.py HTTP API · main.js Map operations console · api_service.py Hazard scoring service · vector_pipeline.py Vector data pipeline
Components 24
Geospatial Inputs
- Geospatial and hazard sources
- Raster terrain pipeline
backend/data/raster_pipeline.py - SRTM elevation engine
backend/data/srtm_engine.py - Earth Engine terrain client
backend/data/gee_terrain_client.py - Population client
backend/data/gee_population_client.py - Vector data pipeline
backend/data/vector_pipeline.py - Habitation feature generation
backend/data/generate_data.py
Hazard Analysis
- Hazard scoring service
backend/api_service.py - Slope stability physics
backend/model/geotech_physics.py - THRIVE hazard fusion
backend/model/thrive_engine.py - Flow simulation
backend/model/flow_simulation.py
Relocation Decisions
- Dynamic hazard triggers
backend/model/trigger_engine.py - Safe-site capacity
backend/model/trigger_engine.py - Regional summaries
backend/model/region_summarizer.py
API and Console
- Hazard Q&A knowledge engine
backend/model/rag_engine.py - HTTP API
backend/main.py - Map operations console
frontend/src/main.js - AI hazard analyst
frontend/src/ai-analyst.js - Hazard chat interface
frontend/src/hazard_chat.js - Relocation orders and reports
frontend/src/dm_report.js
Feedback and Replay
- Historical disaster replay
frontend/src/historical_replay.js - Continuous learning
backend/model/continuous_learning.py
Other components
- Disaster authorities
- Field ground truth
Connections 27
- Geospatial and hazard sources → Raster terrain pipeline: supplies terrain
- Geospatial and hazard sources → Earth Engine terrain client: supplies satellite data
- Geospatial and hazard sources → Population client: supplies population
- Geospatial and hazard sources → Vector data pipeline: supplies vector data
backend/data/vector_pipeline.py - SRTM elevation engine → Raster terrain pipeline: provides elevation
backend/data/raster_pipeline.py - SRTM elevation engine → Habitation feature generation: provides terrain
backend/data/generate_data.py - Vector data pipeline → Habitation feature generation: provides road features
backend/data/generate_data.py - Habitation feature generation → Hazard scoring service: provides spatial features
- Hazard scoring service → Slope stability physics: uses slope physics
backend/api_service.py - Hazard scoring service → Vector data pipeline: uses vector data
backend/api_service.py - HTTP API → Hazard scoring service: serves scoring API
backend/main.py - HTTP API → Dynamic hazard triggers: runs alert engine
backend/main.py - HTTP API → Flow simulation: runs flow simulation
backend/main.py - HTTP API → Slope stability physics: uses terrain physics
backend/main.py - HTTP API → THRIVE hazard fusion: uses hazard fusion
backend/main.py - HTTP API → Hazard Q&A knowledge engine: serves hazard Q&A
backend/main.py - HTTP API → Regional summaries: serves regional summaries
backend/main.py - Dynamic hazard triggers → Safe-site capacity: allocates evacuations
backend/model/trigger_engine.py - THRIVE hazard fusion → Dynamic hazard triggers: informs dynamic risk
- Disaster authorities → Map operations console: reviews decisions
- Map operations console → HTTP API: requests hazard data
frontend/src/main.js - Map operations console → AI hazard analyst: initializes analyst
frontend/src/main.js - Map operations console → Hazard chat interface: presents hazard chat
frontend/src/main.js - Map operations console → Relocation orders and reports: produces relocation artifacts
frontend/src/main.js - Map operations console → Historical disaster replay: offers historical replay
frontend/src/main.js - Field ground truth → Continuous learning: provides field truth
- Continuous learning → THRIVE hazard fusion: updates hazard model