How abhisheikraja2007-droid/ai-based-early-warning-and-landslide-risk-monitoring-system-in-ner works
DRISHTI-NER is a landslide early-warning and corridor-safety platform. Control-room users inspect corridor risk, sensor telemetry and forecasts, then access evacuation routing, incident dispatch and citizen-report workflows; citizens can submit hazard reports. The backend exposes these capabilities through FastAPI, with cached spatial and temporal models, geospatial data and asynchronous inference. The README also describes training pipelines and SMS broadcasts. Some subsystem links are documented capabilities rather than inspected call paths, so those links are dashed or omitted.
Main entry points: App.tsx Dashboard shell · api.ts HTTP API client · main.py FastAPI application · model_cache.py Model and feature cache
Components 31
Command dashboard
- Dashboard shell
src/App.tsx - Corridor surveillance
src/components/CorridorMapModule.tsx - Sensor matrix
src/components/SensorArrayModule.tsx - AI forecast
src/components/AIForecastModule.tsx - Incident dispatch
src/components/DispatchModule.tsx - Safe corridors
src/components/SafeCorridorsModule.tsx - Citizen reporting
src/components/CitizenViewModule.tsx - Telemetry types
src/types/telemetry.ts - HTTP API client
src/services/api.ts
Backend services
- FastAPI application
backend/main.py - Inference endpoints
backend/routers/inference.py - Corridor endpoints
backend/routers/corridors.py - Evacuation routing
backend/routers/routing.py - Citizen reports
backend/routers/citizen_reports.py - Offline report sync
backend/routers/sync.py - Geospatial report store
backend/database.py - Corridor risk matrix
backend/corridors.py
Prediction engines
- Model and feature cache
backend/model_cache.py - Spatial U-Net inference
ml/spatial_unet/inference.py - Spatial U-Net model
ml/spatial_unet/model.py - Meteorological grid alignment
ml/temporal_engine/grid_alignment.py - SMAP soil moisture
ml/temporal_engine/smap_soil_moisture.py - Temporal features
ml/temporal_engine/temporal_features.py
Response workflows
- ISRO Bhuvan routing
backend/bhuvan_service.py - External alert services
Model training
- Spatial training data
ml/spatial_unet/dataset.py - Spatial model training
ml/spatial_unet/train.py - Lead-time dataset
ml/temporal_engine/lead_time_dataset.py - Temporal model training
ml/train_temporal_engine.py
Other components
- Control-room operator
- Citizen reporter
Connections 40
- Control-room operator → Dashboard shell: uses
src/App.tsx - Citizen reporter → Dashboard shell: uses
- Dashboard shell → Corridor surveillance: renders
src/App.tsx - Dashboard shell → Sensor matrix: renders
src/App.tsx - Dashboard shell → AI forecast: renders
src/App.tsx - Dashboard shell → Incident dispatch: renders
src/App.tsx - Dashboard shell → Safe corridors: renders
src/App.tsx - Dashboard shell → Citizen reporting: renders
src/App.tsx - Corridor surveillance → HTTP API client: requests routes
src/components/CorridorMapModule.tsx - Corridor surveillance → Telemetry types: uses types
src/components/CorridorMapModule.tsx - Sensor matrix → Telemetry types: uses types
src/components/SensorArrayModule.tsx - AI forecast → HTTP API client: requests forecasts
src/components/AIForecastModule.tsx - Safe corridors → HTTP API client: requests routes
src/components/SafeCorridorsModule.tsx - HTTP API client → FastAPI application: calls API
src/services/api.ts - FastAPI application → Inference endpoints: mounts
backend/main.py - FastAPI application → Citizen reports: mounts
backend/main.py - FastAPI application → Offline report sync: mounts
backend/main.py - FastAPI application → Corridor endpoints: mounts
backend/main.py - HTTP API client → Corridor endpoints: fetches corridors
src/services/api.ts - HTTP API client → Evacuation routing: posts route request
src/services/api.ts - HTTP API client → Citizen reports: submits report
src/services/api.ts - HTTP API client → Offline report sync: syncs reports
src/services/api.ts - Inference endpoints → Model and feature cache: uses models
backend/routers/inference.py - Corridor endpoints → Corridor risk matrix: queries corridors
backend/routers/corridors.py - Citizen reports → Geospatial report store: stores reports
backend/routers/citizen_reports.py - Offline report sync → Geospatial report store: stores batches
- Evacuation routing → ISRO Bhuvan routing: computes route
backend/routers/routing.py - Model and feature cache → Spatial U-Net inference: loads backend
backend/model_cache.py - Model and feature cache → Meteorological grid alignment: initializes
backend/model_cache.py - Model and feature cache → SMAP soil moisture: initializes
backend/model_cache.py - Model and feature cache → Temporal features: loads features
backend/model_cache.py - Spatial U-Net inference → Spatial U-Net model: runs model
ml/spatial_unet/inference.py - Spatial model training → Spatial training data: loads data
ml/spatial_unet/train.py - Spatial model training → Spatial U-Net model: trains model
ml/spatial_unet/train.py - Lead-time dataset → Meteorological grid alignment: aligns grids
ml/temporal_engine/lead_time_dataset.py - Lead-time dataset → SMAP soil moisture: uses soil moisture
ml/temporal_engine/lead_time_dataset.py - Lead-time dataset → Temporal features: builds features
ml/temporal_engine/lead_time_dataset.py - Temporal model training → Lead-time dataset: trains from
ml/train_temporal_engine.py - Incident dispatch → External alert services: broadcasts alerts
- External alert services → Citizen reporter: delivers alerts