Inspiration

Every dry season, harmattan dust degrades the air across Senegal. Children, people with asthma, older adults and outdoor workers have no simple tool that tells them what to do and when. Micrograms per cubic metre don't help a parent deciding about school recess. Dust is an environmental challenge made worse by drought, and living well with it means anticipating it.

What it does

ClearAirDK turns dust data into decisions for 12 Senegalese cities:

  • Now: PM10/PM2.5, indicative level, advice by profile (child, asthma, older adult, outdoor worker, general public) and protection tips.
  • Plan: best daytime slot for an outing; an outdoor work shift compared with the usual schedule; an hour-by-hour traffic light for school recess and sport.
  • Senegal: live map and ranking of 12 cities with the forecast peak.
  • Assistant: plain-language answers powered by the Groq API, with safety guardrails.
  • Share: a short French/English bulletin ready for WhatsApp.
  • History: days above the WHO 2021 guideline, hourly patterns, heat map by month and hour.

Live demo: https://clearairdk.streamlit.app

How we built it

Python, Streamlit, Plotly, pandas, scikit-learn, Open-Meteo (CAMS) data and the Groq API. For Dakar (pilot city), we train gradient-boosting models forecasting PM10 at +6/12/24 h, with a chronological train/calibration/test split, a persistence baseline, conformal calibration of the 80% interval, and a classifier giving the probability of exceeding 100 µg/m³. The other cities use the Open-Meteo forecast. 28 automated tests.

How we used AI

  • In the product: locally trained scikit-learn models (forecast, exceedance probability, anomaly detection) and an assistant powered by the Groq API (openai/gpt-oss-120b). It only receives air-quality context and the chosen profile, never diagnoses, and emergency wording is handled by local rules, not the LLM. Without a key it falls back to cautious rules.
  • In development: AI coding assistants (Claude) helped write code, tests and documentation. Everything was reviewed, run and tested by us.

Challenges

Our first model barely beat the persistence baseline, and its 80% interval covered only about 65% of cases. We added a calibration step and reported the modest gain honestly: 5 to 11% lower MAE than persistence, but a much better exceedance probability (Brier 0.11 vs 0.25 for climatology at +6 h) and intervals now covering 77-80%. A real-use test also showed the assistant suggesting 2 a.m. slots, which we fixed by restricting advice to 6 a.m.-7 p.m.

What we learned

Evaluation design matters more than model complexity: time-based splits, baselines, calibration, and saying plainly what the model cannot do.

Limitations

Modelled data (no local sensor), one reference point per city, ML forecast only for Dakar, indicative advice, not a medical device.

What's next

Local languages validated with speakers, low-cost local sensors, SMS alerts for low-connectivity areas, and a pilot with a school and a health centre in Thiès.

Built With

Share this project:

Updates

Submission history