An AI-powered Streamlit web application to forecast PM2.5 air pollution levels for any Indian city using historical environmental data.
- π City-wise PM2.5 concentration prediction for next 3 months
- π§ Trained on XGBoost Regression Model
- ποΈ Built using Indian air quality & meteorological datasets
- π Auto-reshaping of historical wide-format data to time-series format
- π¦ Real-time visualization & download of forecast data
- π‘ Streamlit UI for easy use and deployment
- Historical air quality data is loaded, cleaned, and reshaped (wide β long format)
- Features like year, month, SO2, NO2, PM10, and previous PM2.5 values are used
- XGBoost Regression is trained to forecast PM2.5 for the next 3 months
- User selects city in Streamlit UI and gets predictions & plots
- Model:
XGBoostRegressor - Target:
PM2.5lagged value - Features:
SO2,NO2,PM10,month,year,lagged PM2.5 - Evaluation: MAE, RMSE on validation set
# Clone the repo
git clone https://github.com/Shraddha-DSA/citywise-pm25-forecast.git
cd citywise-pm25-forecast
# Install dependencies
pip install -r requirements.txt
# Run the app
streamlit run streamlit_app.py