CoolFace
Apppublic

AIMS-RIC/PUMCLID

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

๐ŸŒก๏ธ 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

  1. 1.Open the app โ€” sidebar shows on the left
  2. 2.Click Train / Retrain LSTM โ€” takes ~60 seconds (trains on real ERA5 data)
  3. 3.Click Fetch forecast โ€” loads live conditions for Accra
  4. 4.View Dashboard tab for current alert and advice
  5. 5.View LSTM Forecast tab for 48-hour prediction
  6. 6.Add subscribers and broadcast alerts from the other tabs

API Keys (add as Hugging Face Secrets)

Secret nameValueWhere to get it
AT_USERNAMEYour Africa's Talking usernameafricastalking.com
AT_KEYYour Africa's Talking API keyafricastalking.com
RESEND_KEYYour Resend API keyresend.com

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

Group 3 โ€” Imperial-AIMS GFP 2026

MemberInstitutionRole
Stephen NyarangaAIMS-RICLSTM architecture, satellite data pipeline
Leonice AbizeyimanaAIMS-RICData analytics, dashboarding
Choukouriyah ArinloyeAIMS-RICWeb/IoT integration
Jerry AtorigoUoGThermal modelling, statistics
Patience Omoh KrakaniUHASPublic health, community engagement
Chiebuka ChristopherImperialPCM materials, CoolTree design
Isabelle (Charlie) JohnsonImperialClinical heat stress metrics
Wen-Yi LeeImperialHealth systems, dissemination