Chennai Resilient Nav is a multi-criteria disaster evacuation routing, discrete-time traffic simulation, and flood susceptibility decision-support platform calibrated for the Chennai Metropolitan Area (CHENNAI), featuring historical replay of the 2015 Adyar River & Chembarambakkam Mega-Flood as well as coastal cyclone surge scenarios.
The platform separates workflows for two distinct audiences:
- Citizen / Emergency Mode: One-click nearest relief shelter finder, OSRM road-snapped turn-by-turn directions with Google Maps handoff, plain-English route explanations ("Avoided Saidapet Bridge — flooded, 85 cm"), Fastest vs. Safest route comparison, vulnerable-user options (walking, wheelchair/step-free, avoid stairs, elderly-friendly), shelter cards with live occupancy & phone numbers, WhatsApp/SMS sharing, tap-to-call SOS (
1913/1070/108), citizen hazard reporting with photo upload, English / தமிழ் / हिन्दी localization, and PWA offline caching. - Analyst / Research Mode: Side-by-side comparison of Dijkstra, A*, Time-Dependent A* (FIFO), and D* Lite incremental replanning; 30-second discrete-time BPR congestion simulation with animated evacuee playback; 30-seed statistical benchmarks with 95% confidence intervals and paired Wilcoxon tests (
Chart.jsbar & scatter plots); spatial-split flood susceptibility ML evaluation with explicit research honesty disclaimers; and CSV / PDF / SUMO XML exports.
Disclaimer: Decision support and research prototype only — not an official government emergency advisory. Always verify with GCC (1913), TNDMA (1070), and IMD Chennai.
- Digital Elevation Model (DEM): Ingests Copernicus DEM GLO-30 & NASA SRTM 30m elevation rasters; automatically computes vertical grade and percentage slope per road edge.
- Relief Shelter Registry: Catalog of Greater Chennai Corporation (GCC) and TNDMA cyclone shelters with GPS coordinates, elevation, medical facilities, and verified bed capacities.
- Meteorological & Hydrological Data: Historical IMD precipitation records from Chembarambakkam, Tambaram, Meenambakkam, and Nungambakkam weather stations during the Nov-Dec 2015 flood disaster.
- Historical Event Replay: Spatiotemporal flood wave progression modeling the Chembarambakkam surplus outflow (29,000 cusecs) and Adyar river overtopping.
- Complete data lineage documented in
docs/DATA.md.
- Dijkstra Router: Exact multi-criteria label-setting baseline.
- A* Router: Accelerated search with an admissible, scale-normalized Haversine distance heuristic.
- Time-Dependent A* (TD-A*): Evaluates dynamic hazard wavefronts with departure-time dependent edge costs.
- D* Lite Router (Incremental Heuristic Search): Koenig & Likhachev incremental shortest path algorithm. Reuses previous search trees to repair paths in milliseconds when floodwaters sever links without recomputing from scratch.
- Time-varying routing models enforce the First-In, First-Out (FIFO) property ($t_1 \le t_2 \implies t_1 + \tau(e, t_1) \le t_2 + \tau(e, t_2)$).
- Guaranteed non-overtaking ensures Bellman's principle holds, avoiding NP-hard anomalies.
- Formal mathematical specification and AHP weight derivations in
docs/COST_MODEL.md.
- 30-second time-stepped discrete execution moving individual evacuees along assigned paths.
-
Dynamic BPR Congestion: Edge speed degrades dynamically with traffic load:
$$v(e, t) = \frac{v_0(e)}{1 + \alpha (V_e(t) / C_e)^\beta} \cdot (1 - 0.75 \cdot \text{Hazard})$$ - Shelter & Edge Capacity: Enforces strict shelter intake limits; handles shelter overflows and automatic redirection.
-
Cumulative Hazard Exposure: Integrates time spent in flood hazards per evacuee (
$\int H(e, t) dt$ ). -
SUMO Scenario Exporter: One-click XML export (
.net.xml,.rou.xml,.sumocfg) for microscopic validation in SUMO.
- Pluggable scheduled ingestion architecture supporting:
- Mock Sensor Adapter: Chronological replay of ultrasonic water level sensors and road barricades.
- Open-Meteo Weather Adapter: Live rainfall rate and precipitation telemetry with automatic offline fallback.
- Triggers rolling route recomputation listeners when critical links are severed.
- Random Forest Flood Susceptibility Classifier trained on DEM elevation, slope, river proximity, rainfall, and Topographic Wetness Index (TWI).
- Strict Spatial Block Cross-Validation: North vs. South Adyar basin split prevents spatial autocorrelation leakage.
- Reports Precision, Recall, F1, ROC-AUC, and Gini feature importances.
- Honesty Disclaimers: UI and API transparently mark ML predictions as empirical decision support benchmarks. Limitations detailed in
docs/LIMITATIONS.md.
- Every experiment executes across 30 independent random seeds.
- Reports Mean, Standard Deviation, and 95% Confidence Intervals (
$CI_{95}$ ). - Conducts paired Wilcoxon signed-rank significance tests (
$p < 0.05$ ) when comparing algorithms.
- FastAPI Backend: Async API with structured JSON logging and request tracing.
- Role-Based Authentication: Admin (
X-API-Key) vs. Viewer. - Sliding-Window Rate Limiting: In-memory token bucket protecting against DDoS.
- Strict Latency SLA: Single-evacuee replanning executes in < 1.0 second (measured mean: 0.04 ms, P95: 0.12 ms).
- Docker & Cloud Guide: Dockerfile, docker-compose, and VM / Render / Railway guide in
docs/DEPLOYMENT.md.
| Algorithm | Mean Cost (±95% CI) | Mean Travel Time (s) | Mean Cumulative Hazard | Mean Latency (ms) | P95 Latency (ms) | SLA Target (< 1s) |
|---|---|---|---|---|---|---|
| Dijkstra | 0.261 ± 0.054 | 715.2 ± 148.3 | 0.053 ± 0.063 | 0.28 ± 0.07 | 0.55 | PASSED |
| A* | 0.261 ± 0.054 | 715.2 ± 148.3 | 0.053 ± 0.063 | 0.25 ± 0.06 | 0.56 | PASSED |
| TD-A* | 0.261 ± 0.054 | 715.2 ± 148.3 | 0.053 ± 0.063 | 0.29 ± 0.13 | 0.67 | PASSED |
| D* Lite | 0.728 ± 0.185 | 776.7 ± 189.0 | 0.099 ± 0.087 | 0.32 ± 0.07 | 0.76 | PASSED |
Paired Wilcoxon Signed-Rank Test: Difference between D* Lite replan latency and static Dijkstra is statistically significant (
git clone https://github.com/Vagish26/Disaster-management.git
cd Disaster-management
pip install -r requirements.txtRerun all 30-seed experiments, verify data pipelines, generate CSV/LaTeX tables, and render publication figures:
python scripts/reproduce_all.pypython -m pytest -vpython -m uvicorn src.api.server:app --host 0.0.0.0 --port 8000 --reloadOpen your browser to: http://localhost:8000
Disaster Management/
├── .github/
│ └── workflows/
│ └── ci.yml # GitHub Actions CI workflow
├── data/
│ ├── raw/
│ │ ├── chennai_elevation_dem.json # Copernicus DEM elevation grid
│ │ ├── chennai_hospitals.json # Major Chennai emergency hospitals
│ │ ├── chennai_shelters.json # Official GCC relief centers
│ │ └── imd_historical_rainfall_2015.json # IMD 2015 precipitation
│ ├── processed/
│ │ ├── chennai_city_network.json # Processed road network with slopes
│ │ └── osrm_geometry_cache.json # Cached OSRM road-snapped geometries
│ └── scenarios/
│ ├── chennai_2015_flood_replay.json # Adyar flood replay timeline
│ └── cyclone_surge_coastal.json # Coastal storm surge scenario
├── docs/
│ ├── DATA.md # Dataset registry, sources, licenses
│ ├── COST_MODEL.md # Normalizations, FIFO proofs, AHP
│ ├── LIMITATIONS.md # Assumptions and validation boundaries
│ └── DEPLOYMENT.md # Cloud VM, Docker, Render, Railway
├── results/
│ ├── tables/ # CSV, LaTeX, and Markdown tables
│ ├── figures/ # Publication-quality 300 DPI figures
│ └── sumo/ # Exported SUMO network and route XMLs
├── src/
│ ├── config.py # System configuration & AHP weights
│ ├── utils/ # Geo distance, OSRM snapping, logging
│ ├── data_ingestion/ # DEM, shelter, weather & mock feeds
│ ├── routing/ # Dijkstra, A*, TD-A*, D* Lite, FIFO
│ ├── simulator/ # Discrete-time engine, BPR congestion
│ ├── ml/ # Spatial splits, susceptibility model
│ ├── api/ # FastAPI endpoints, auth, rate limiter
│ └── web/static/ # Citizen/Analyst Leaflet PWA UI (EN/TA/HI)
├── scripts/
│ ├── generate_chennai_network.py # Builds city network from DEM
│ ├── precache_road_geometry.py # Pre-caches OSRM street geometries
│ ├── run_all_experiments.py # 30-seed benchmarking harness
│ └── reproduce_all.py # Master one-command reproduction script
├── tests/ # 25 unit & SLA integration tests
├── Dockerfile # Production multi-stage container
├── docker-compose.yml # Container orchestration
└── requirements.txt # Pinned Python dependencies
- Koenig, S., & Likhachev, M. (2002). D* Lite. Eighteenth National Conference on Artificial Intelligence (AAAI).
- Bureau of Public Roads (BPR) (1964). Traffic Assignment Manual. U.S. Dept. of Commerce, Urban Planning Division.
- Saaty, T. L. (1980). The Analytic Hierarchy Process. McGraw-Hill, New York.
- ISRO / Bhuvan (2015). Flood Inundation Mapping of Chennai Metropolitan Region. National Remote Sensing Centre (NRSC).