How s-w-leong/fireguard works
FireGuard combines a historical fire-risk dashboard with a separate local satellite-imagery comparison prototype. The dashboard workflow loads a verified, bundled dataset, ranks cells for a selected week and exposure policy, then presents monitoring plans and retrospective comparisons. Offline model development and packaging support that handoff. The satellite workflow requests before/after imagery and optionally overlays experimental U-Net change candidates. Connections follow the excerpts, SOURCE INDEX references, or README; unsampled implementation details are omitted.
Main entry points: app.py Dashboard UI · select_mvp.py MVP selection · train_environment.py Logistic experiment · boosted_model.py Boosted challenger
Components 16
Risk dashboard
- Dashboard UI
app.py - Exposure ranking
fireguard/dashboard_data.py - Capture metrics
fireguard/monitoring_metrics.py
Model development
- Logistic experiment
fireguard/train_environment.py - Feature and cohort rules
fireguard/revised_model.py - MVP selection
fireguard/select_mvp.py - Boosted challenger
fireguard/boosted_model.py
Satellite comparison
- Comparison interface
satellite_app/index.html - Imagery service
satellite_app/server.py - U-Net inference
satellite_app/model_runtime.py
Runtime data
- Verified data loader
data_loader.py - Dashboard bundle
data/dashboard - Bundle builder
fireguard/dashboard_bundle.py
Other components
- Decision analyst
- Satellite user
- Sentinel Hub
Connections 20
- Decision analyst → Dashboard UI: configures view
README.md - Dashboard UI → Verified data loader: loads data
app.py - Verified data loader → Dashboard bundle: verifies and reads
data_loader.py - Dashboard UI → Exposure ranking: ranks cells
app.py - Dashboard UI → Exposure ranking: evaluates plans
app.py - Exposure ranking → Capture metrics: computes metrics
fireguard/dashboard_data.py - Decision analyst → Bundle builder: requests new bundle
README.md - Bundle builder → Dashboard bundle: builds bundle
- Logistic experiment → Feature and cohort rules: uses features
fireguard/train_environment.py - Logistic experiment → Capture metrics: evaluates weekly
fireguard/train_environment.py - MVP selection → Feature and cohort rules: uses cohort rules
fireguard/select_mvp.py - MVP selection → Logistic experiment: uses experiment helpers
fireguard/select_mvp.py - Boosted challenger → Feature and cohort rules: uses features
fireguard/boosted_model.py - Boosted challenger → MVP selection: checks adoption gate
fireguard/boosted_model.py - Boosted challenger → Logistic experiment: uses experiment helpers
fireguard/boosted_model.py - MVP selection → Bundle builder: supplies selected model
- Satellite user → Comparison interface: chooses comparison
README.md - Comparison interface → Imagery service: requests imagery
README.md - Imagery service → Sentinel Hub: requests scenes
README.md - Imagery service → U-Net inference: runs optional analysis
satellite_app/server.py