Can weather data warn us, a day ahead, which winter days will disrupt city bus service? We built a fully automated pipeline on Google Cloud to find out.
Daily weather (CSV)
Environment and Climate Change Canada, station SUDBURY A · 664 winter days.
Transit schedule (GTFS) · 1,100 stops, 25 routes
City open-data API (JSON) · live service announcements every 15 min
Open-Meteo API (JSON) · 16-day forecast, daily
Public storm notices and news
Turned into a labelled list of 8 events. The pipeline marks every day inside an event as a disruption day.
Cleaning rules, in short: an unmeasured wind gust ("<31") becomes 30 km/h, blank snow cover becomes 0, duplicate and future dates are dropped, only November–April is kept, and placeholder or invalid storm dates are skipped and logged.
Cloud Run functionsCloud SchedulerEventarc Cloud StorageBigQueryBigQuery ML Secret ManagerLooker StudioFirebase Hosting
| Metric | Full model | Baseline (snowfall only) | ||
|---|---|---|---|---|
| Recall | 0.80 | 0.60 | ||
| Precision | 0.24 | 0.06 | ||
| ROC AUC | 0.97 | 0.57 | ||
| F1 score | 0.36 | 0.10 |
Accuracy (0.92) is not used as the main measure: about 97% of winter days are normal, so it would flatter any model.
Connected directly to BigQuery: past risk scores against real storm days, plus the upcoming 16-day risk forecast, refreshed every morning at 6 a.m. Use the page selector at the bottom of the dashboard to switch pages.
https://datastudio.google.com:/embed/reporting/45dc0b93-aac2-412a-8196-70a100e28b9f/page/s47AG in index.html.
Risk scores are relative, built for November to April, and the first 7 forecast days are the most reliable.