How eddulapreethi/disaster-management-system works
DisasterGuard AI is a disaster-risk prediction and emergency decision-support platform. Users enter through the web application, which exposes prediction, map, simulation, recommendation, resource, and alert workflows backed by a FastAPI service. The documented domain flow runs from multi-source data collection and preprocessing through prediction and risk assessment, then branches into explanations, GIS visualization, and simulation before supporting recommendations, resource allocation, and alerts. The README documents the broad workflow; unsampled modules are represented at their exact tree paths, and their internal call relationships are not inferred.
Main entry points: risk_assessment.py Risk assessment · main.py FastAPI application · recommendation_engine.py Recommendations · services Backend services
Components 18
User experience
- Web application
frontend/src/App.jsx - API client
frontend/src/services/api.js
Data and prediction
- Data collection
backend/app/services - Preprocessing
ml/preprocessing - Risk prediction
ml/prediction/predict.py - Risk assessment
ml/prediction/risk_assessment.py
Risk analysis
- SHAP explanation
explainable-ai/shap_analysis.py - GIS visualization
gis/gis_processing.py - Scenario simulation
digital-twin/simulation/simulation_engine.py
Emergency response
- Recommendations
ai-assistant/recommendation_engine.py - Resource optimization
resource-optimization/resource_allocation.py - Alert generation
alerts/alert_generator.py - Notifications
alerts/notification_service.py
API and persistence
- FastAPI application
backend/app/main.py - API routers
backend/app/api - Backend services
backend/app/services - Database
backend/app/database/database.py
Other components
- Users
Connections 19
- Users → Web application: uses
frontend/src/App.jsx - Web application → API client: checks backend
frontend/src/App.jsx - FastAPI application → API routers: registers
backend/app/main.py - FastAPI application → Database: creates tables
backend/app/main.py - FastAPI application → Backend services: starts collectors
backend/app/main.py - Data collection → Database: stores observations
backend/app/services/hydrology_service.py - Data collection → Preprocessing: provides source data
README.md - Preprocessing → Risk prediction: engineers features
ml/preprocessing/feature_engineering.py - Risk prediction → Risk assessment: assesses risk
README.md - Risk assessment → SHAP explanation: explains estimate
README.md - Risk assessment → GIS visualization: visualizes risk
README.md - Risk assessment → Scenario simulation: informs scenarios
README.md - Scenario simulation → Recommendations: informs guidance
ai-assistant/recommendation_engine.py - Risk assessment → Recommendations: guides response
README.md - Recommendations → Resource optimization: supports allocation
README.md - Risk assessment → Alert generation: triggers alerts
README.md - Alert generation → Notifications: dispatches
alerts/notification_service.py - API routers → Backend services: routes requests
- Backend services → Database: reads and writes
backend/app/services/hydrology_service.py