How himanshu-genai/2nd-year-mini-project works
This is a wildfire hazard forecasting system: fire detections and weather observations are mapped to spatial cells, enriched with drought and time-safe features, then used to train and serve calibrated risk forecasts. Users receive forecasts through an API or an interactive dashboard, with explanations and operational briefings as supporting capabilities. The README documents the overall workflow; source excerpts and the SOURCE INDEX confirm selected calls and imports. Some implementation details, especially unsampled training and dashboard paths, are not verified beyond that documentation.
Main entry points: build_features.py Feature builder · app.py Risk dashboard · main.py Inference API · firms_ingest.py FIRMS ingestion
Components 19
Data and drought
- FIRMS ingestion
src/data/firms_ingest.py - Weather retrieval
src/data/weather_fetch.py - Spatial grid
src/data/grid.py - KBDI drought
src/data/kbdi.py - Raw data
data/raw - Processed data
data/processed
Feature engineering
- Feature builder
src/features/build_features.py - Forecast labels
src/features/labels.py - System configuration
src/config.py
Modeling
- Baseline models
src/models/baselines.py - Model training
src/models/train.py - Probability calibration
src/models/calibrate.py
Forecast delivery
- Inference API
src/api/main.py - Risk dashboard
src/dashboard/app.py
Risk insights
- SHAP explanations
src/explain/shap_utils.py - Intelligence reports
src/reports/llm_report.py
Other components
- Forecast user
- Open-Meteo
- NASA FIRMS archive
Connections 23
- NASA FIRMS archive → FIRMS ingestion: provides detections
README.md - FIRMS ingestion → Raw data: reads archives
src/data/firms_ingest.py - FIRMS ingestion → Spatial grid: maps coordinates
src/data/firms_ingest.py - Open-Meteo → Weather retrieval: provides observations
README.md - Weather retrieval → Raw data: caches weather
src/data/weather_fetch.py - Feature builder → FIRMS ingestion: uses fire data
src/features/build_features.py - Feature builder → Weather retrieval: uses weather data
src/features/build_features.py - Feature builder → KBDI drought: uses drought index
src/features/build_features.py - Feature builder → Spatial grid: uses neighbors
src/features/build_features.py - Feature builder → Forecast labels: builds targets
src/features/build_features.py - Feature builder → Processed data: saves features
README.md - Model training → Processed data: trains on features
README.md - Model training → Baseline models: benchmarks against
src/models/train.py - Model training → Probability calibration: calibrates probabilities
src/models/train.py - Forecast user → Inference API: requests forecasts
README.md - Forecast user → Risk dashboard: views forecasts
README.md - Inference API → Spatial grid: maps coordinates
src/api/main.py - Inference API → Probability calibration: uses calibrated model
src/api/main.py - Inference API → SHAP explanations: requests explanations
src/api/main.py - Risk dashboard → Spatial grid: generates mesh
src/dashboard/app.py - Risk dashboard → KBDI drought: classifies drought
src/dashboard/app.py - Risk dashboard → Intelligence reports: generates briefing
src/dashboard/app.py - Risk dashboard → SHAP explanations: shows attributions
README.md