Rayyan Khan

Featured Project — Forecasting

Lahore Smog Forecast

A machine-learning forecaster for Lahore’s air quality index (AQI), built to give residents and planners a data-driven short-term outlook during smog season.

Black and white photograph of a city skyline in heavy smog — cover image for Lahore Smog Forecast by Rayyan Khan

The Problem

Every winter, Lahore ranks among the most polluted cities on Earth. Schools close, hospitals fill, and daily life is disrupted — yet most people only learn how bad the air is after it is already bad. A reliable short-horizon AQI forecast turns reaction into preparation.

What I Built

Technical Approach

Technologies & Stack

Python Gradient Boosting Pandas Time-Series Features Streamlit

Results

27% lower mean absolute error than the seasonal-naive baseline on held-out time periods — a real, measured improvement, not a cherry-picked one.

Limitations

Forecasts degrade during abrupt events — sudden rain, wind shifts or emission spikes — and depend on the upstream AQI feed staying available and accurate.

Visit Live Demo