2026
VayuCast
Tomorrow's air, forecast for nine Indian cities.
- Python
- XGBoost
- SHAP
- FastAPI
- Streamlit
- MLflow
- GitHub Actions
±15.8AQI average error, one day ahead
78%of days in the right AQI category
16–28%better than “same as today”, days 1–3
Problem
Air pollution is one of India's largest health risks, yet AQI is usually reported after the air is already bad. A reliable forecast lets people plan outdoor time and lets schools and hospitals prepare.
Approach
- Four years of hourly pollution and weather for Belagavi, Kolhapur, Pune, Mumbai, Bengaluru, Hyderabad, Kurnool, Lucknow and Delhi, combined into daily rows with the official CPCB AQI method.
- Data checks first: it detects and repairs a nationwide sensor glitch where every city reads near zero on the same days.
- 54 engineered features: lags, rolling statistics, the target day's forecast weather, a cyclical calendar and Diwali proximity.
- Honest evaluation: time-based cross-validation, a locked test year (Nov 2025 – Oct 2026) and baselines. A built-in demo shows how a shuffled split would overstate accuracy (12.1 vs the true 15.8).
- Every forecast comes with a likely range (quantile XGBoost) and its reasons (SHAP): wind, rain, today's level, Diwali.
Architecture
- fetch → features → train (cross-validation, test, SHAP, MLflow) → saved models, used by one forecast function.
- FastAPI service (/forecast/{city}, /metrics) and a Streamlit dashboard, both on the same forecast code; Docker for deployment.
- Monitoring logs every forecast, scores it once the day has passed and detects seasonal drift per city.
- GitHub Actions: daily forecasts, weekly retraining and 33 tests on every push.
Decisions
Prove there is no leakage
An automated test scrambles all future data and checks that no feature changes, so the model can't quietly peek at tomorrow.
Say how wrong it is
The 80% ranges actually cover 73–76% of days. That's stated openly, with conformal calibration as the planned fix.
My role
Solo — data, modelling, API, dashboard and automation.