AIMS-RIC/PUMCLID
0
๐ก๏ธ HeatAlert Accra โ SolarCool CoolTree Early Warning System
Real-time heat stress early warning for Accra, Ghana Imperial-AIMS Global Fellows Programme 2026 | Group 3
What this does
- Fetches live ERA5 + Open-Meteo weather data for Accra (5.60ยฐN, 0.19ยฐW)
- Trains a 2-layer LSTM on 90 days of historical data at startup
- Forecasts Wet Bulb Globe Temperature (WBGT) 48 hours ahead
- Issues tiered alerts: ๐ข GREEN / ๐ก YELLOW / ๐ ORANGE / ๐ด RED
- Sends SMS alerts via Africa's Talking (Ghana mobile networks)
- Sends email alerts via Resend
- Manager dashboard for AMA and stakeholder management
How to use
- Open the app โ sidebar shows on the left
- Click Train / Retrain LSTM โ takes ~60 seconds (trains on real ERA5 data)
- Click Fetch forecast โ loads live conditions for Accra
- View Dashboard tab for current alert and advice
- View LSTM Forecast tab for 48-hour prediction
- Add subscribers and broadcast alerts from the other tabs
API Keys (add as Hugging Face Secrets)
Go to your Space โ Settings โ Variables and secrets โ add the above.
Data sources
- Open-Meteo ERA5 archive โ historical hourly data, free, no key needed
- Open-Meteo forecast API โ real-time + 72h forecast, free, no key needed
- Africa's Talking โ SMS delivery to MTN, Vodafone, AirtelTigo (Ghana)
- Resend โ transactional email, 100/day free tier
System architecture
ERA5 Archive (90 days) โโโบ Feature engineering โโโบ LSTM training
โ
Open-Meteo Forecast โโโโโโโบ Current conditions โโโโโโโบ Predict 48h WBGT
โ
โโโโโโโโโโโโดโโโโโโโโโโโ
Alert level CoolTree network
โ pre-charge
โโโโโโโโโโโดโโโโโโโโโโโ
SMS Email
(Africa's Talking) (Resend)LSTM details
- 2-layer stacked LSTM, 64 hidden units per layer
- 8 input features: T2m, RH, wind, solar radiation, hour (sin/cos), day-of-year (sin/cos)
- 48-hour lookback window, 48-hour forecast horizon
- Trained with Adam optimiser + cosine annealing LR scheduler
- WBGT target computed via Stull (2011) wet-bulb formula
