How aneesh-m-s/ai-disaster-decision-support-system works
This is an AI disaster decision-support application: users select a location and hazard, request risk/advisory results, and view recommendations, impacts, and disaster measures. The climate workflow routes heatwave and drought inputs through prediction endpoints and integrates their results into policy recommendations; a separate comprehensive endpoint combines live weather, cyclone risk, sector advisories, and an explanation. The tree also shows substantial climate-data ingestion and hazard inference subsystems. Those modules are represented, but their internal wiring is not asserted where excerpts do not establish it.
Main entry points: App.jsx Dashboard · main.py FastAPI application · v2_climate.py Climate endpoints · policy_engine.py Policy engine
Components 25
User interface
- Dashboard
frontend/src/App.jsx - API client
frontend/src/services/api.js - Priority alerts
frontend/src/components/PriorityAlerts.jsx - Risk card
frontend/src/components/RiskCard.jsx - Risk map
frontend/src/components/RiskMap.jsx - Weather panel
frontend/src/components/WeatherPanel.jsx - Scenario simulation
frontend/src/components/ScenarioSimulation.jsx - Economic impact panel
frontend/src/components/EconomicImpactPanel.jsx - Measures panel
frontend/src/components/DisasterMeasuresPanel.jsx
API and advisories
- FastAPI application
backend/app/main.py - Sector advisory rules
backend/decision_engine/rules.py - Decision explainer
backend/genai/explainer.py
Climate intelligence
- Climate endpoints
backend/routes/v2_climate.py - Climate API schemas
backend/schemas/climate.py - Policy engine
backend/decision_engine/policy_engine.py - Disaster measures
backend/disaster_measures/service.py - Impact analysis
backend/impact_analysis/impact_analyzer.py
Climate data
- Weather and city search
backend/ingestion/weather_api.py - Geographic factors
backend/utils/geography.py - Data ingestion
backend/ingestion
Model inference
- Heatwave inference
ml/inference/predict_heatwave.py - Drought inference
ml/inference/predict_drought.py - Crop impact inference
ml/inference/predict_crop.py - Cyclone risk inference
ml/inference/predict_risk.py
Other components
- User
Connections 21
- User → Dashboard: uses
- Dashboard → API client: requests advice
frontend/src/App.jsx - Dashboard → Priority alerts: renders
frontend/src/App.jsx - Dashboard → Risk card: renders
frontend/src/App.jsx - Dashboard → Risk map: renders
frontend/src/App.jsx - Dashboard → Weather panel: renders
frontend/src/App.jsx - Dashboard → Scenario simulation: renders
frontend/src/App.jsx - Dashboard → Economic impact panel: renders
frontend/src/App.jsx - Dashboard → Measures panel: renders
frontend/src/App.jsx - FastAPI application → Climate endpoints: registers routes
backend/app/main.py - FastAPI application → Weather and city search: calls
backend/app/main.py - FastAPI application → Cyclone risk inference: calls
backend/app/main.py - FastAPI application → Sector advisory rules: calls
backend/app/main.py - FastAPI application → Decision explainer: calls
backend/app/main.py - Climate endpoints → Heatwave inference: predicts heat risk
backend/routes/v2_climate.py - Climate endpoints → Drought inference: predicts drought risk
backend/routes/v2_climate.py - Climate endpoints → Crop impact inference: predicts crop impact
backend/routes/v2_climate.py - Climate endpoints → Policy engine: builds decision
backend/routes/v2_climate.py - Policy engine → Disaster measures: gets measures
backend/decision_engine/policy_engine.py - Policy engine → Impact analysis: analyzes impact
backend/decision_engine/policy_engine.py - Impact analysis → Geographic factors: uses location factors
backend/impact_analysis/impact_analyzer.py