Keywords: Air Pollution, Machine Learning, Forecasting, Air Quality Index, Urban Analytics, LSTM, Smart Cities.
Abstract
Air pollution has emerged as one of the major environmental problems urban areas face today. This research uses machine learning-based predictive analytics to predict the Air Quality Index in an urban setting. Managerial use cases for the air quality index predictions in the smart city concept are also presented in the paper. A synthetic dataset with 100 daily records from five urban districts is created; there are twelve predictor variables, including pollutant concentrations (PM2.5, PM10, NO₂, SO₂, CO, O₃), meteorological parameters (temperature, humidity, wind speed), and urban activity (traffic density, industrial activity index, population density). Five ML algorithms were created and evaluated: Random Forest, Gradient Boosting, XGBoost, ANN, and LSTM. The LSTM algorithm performed the best in forecasting (MAE = 3.21, RMSE = 4.08, MAPE = 2.71%, R² = 0.956), followed by XGBoost (R² = 0.929), showing the benefits of time-based modeling in predicting the air quality. The analysis of feature importance showed traffic density as the most significant variable impacting the AQI, with PM10 and industrial activity coming next, showing that the urban activity variables are just as important as the pollutants themselves. The findings demonstrate that machine learning-based forecasting can serve as a decision-support instrument for traffic management, industrial regulation, and public health protection, thereby contributing to the achievement of SDG 11 and SDG 13 in sustainable smart cities.