Inspiration## Inspiration

Every winter, North India checks an AQI number and is left with the same questions. Why is it this bad? When can my kids go outside? Is this year really worse than last year? Most apps stop at the number. Crop burning, traffic, dust and still weather all get blamed, usually without evidence for that day. We wanted to answer those questions with data, and to be honest about what we don't know.

What it does

AirWatch is a scroll-driven website for 8 North Indian cities, where every animation is drawn from live data.

  • Now: AQI by CPCB's official method. The sky fills with one speck per µg/m³ of PM2.5.
  • Next 24 hours: an hourly forecast and the cleanest time to go out.
  • Should I go out? Pick an activity and get a verdict, the best slot, and what moving it saves.
  • Why: scored likely causes (crop burning, vehicles, dust, weather trapping) with the evidence for each, plus NASA fire detections and possible smoke directions on a map.
  • Compared with before: this season against last on the same dates, and a calendar of each day's likely cause.
  • What happens next: what has cleared the air before, whether that's in the forecast, and how past winters unfolded.
  • Station warning: when real stations measured worse than our estimate, the site says so and the advice follows the worse of the two.
  • Accuracy scoreboard: every check we ran, including where we fall short.

How we built it

The backend and all AI/ML are in Python: FastAPI, pandas and LightGBM. The frontend uses React, TypeScript, MapLibre and a hand-written scroll engine. Data comes from Open-Meteo, NASA FIRMS and OpenAQ (CPCB and AirNow stations).

AQI follows CPCB's sub-index method, where each pollutant's index is

and the AQI is the highest sub-index. A LightGBM model per city forecasts PM2.5 up to 24 hours ahead, using real archived weather forecasts in testing so that no future data leaks in.

Challenges we ran into

  • The model understates the worst air. Against nearby CPCB stations this season, Delhi's averages were close (76 vs 69 µg/m³), but on the worst 10% of hours the model said 98 while stations measured 169. It read too low in 4 of the 6 cities we could check.
  • Our correction mostly failed. We tested fixes on days they had never seen. Fitted corrections raised false alarms on up to 38 of 50 winter days, and a recent-gap correction passed both tests in only 1 of 6 cities. So we didn't ship one. We built the station warning instead, and when replayed on 2,129 past city-days it cut under-warned days from 429 to 113, and it was right 82% of the time.
  • Baselines can flatter you. Open-Meteo keeps no old air-quality forecasts, so scoring its past values would compare it with itself. We save live forecasts and score them later instead.
  • Data quirks. Gurugram and Noida share identical model data, CPCB's feed arrives in delayed batches with gaps, and we found no recent PM2.5 hours for Ludhiana or Kanpur.

Accomplishments that we're proud of

Our forecast beat simple baselines on average error in all 8 cities on held-out days. We're just as proud of publishing where it falls short: the accuracy scoreboard shows every weakness we found.

What we learned

  • Averages hide the hours that matter most.
  • Fires and next-day PM2.5 were only weakly to moderately linked this season, and still air led on most days. The popular story is more complicated than it sounds.
  • A fix that looks great on 11 days can fail on 50. Testing on unseen days changed what we shipped.

What's next

More station coverage, a stronger correction built on more years of data, Hindi support, and alerts when the warning fires.

AI tools: built with Claude Code. Details are in our README.

Built With

Share this project:

Updates

Submission history