MACHINE LEARNING–BASED PREDICTION OF AIR QUALITY LEVELS ACROSS INDIAN CITIES USING ENVIRONMENTAL MONITORING DATA
DOI:
https://doi.org/10.69980/zjd1mp66Keywords:
Air Quality Index, machine learning, air pollution forecasting, Indian cities, environmental monitoringAbstract
Air pollution is a key environmental and public health problem in rapidly urbanizing Indian cities. The present study aimed to design and assess the performance of machine learning models for the prediction of the next day’s air-quality categories, based on the environmental monitoring data available at large-scale. The data set includes 235,785 observations from 291 cities in 32 states and union territories in India for the period of April 2022 to April 2025. Following the calculation of lagged AQI values and moving-average indicators, 219,888 AQI model ready observations were retained. The predictors included temporal and geographical variables, pollutants, and monitoring variables, and the train-test split was a chronological split to avoid information leakage. Models evaluated were multinomial logistic regression, decision tree, random forest and histogram gradient boosting models with respect to performance metrics including accuracy, balanced accuracy, precision, recall, macro F1 score, weighted F1 score and confusion matrices. The highest overall accuracy was obtained by histogram gradient boosting, while the highest macro F1 score was obtained by the random forest algorithm and the performance was most balanced across the six AQI categories. Random forest model gave the best prediction for Good, Satisfactory and Moderate conditions, but reduced prediction accuracy for Very Poor and Severe conditions due to significant class imbalance. The majority of errors in the AQI range were between neighbouring categories. The results prove that machine learning is very useful for the air-quality forecasting in multiple cities, early-warning systems and evidence-based environmental management in India.
References
1.Abirami, S., & Chitra, P. (2021). Regional air quality forecasting using spatiotemporal deep learning. Journal of cleaner production, 283, 125341.
2.Essamlali, I., Nhaila, H., & El Khaili, M. (2024). Supervised machine learning approaches for predicting key pollutants and for the sustainable enhancement of urban air quality: A systematic review. Sustainability, 16(3), 976.
3.Gangwar, A., Singh, S., Mishra, R., & Prakash, S. (2023). The state-of-the-art in air pollution monitoring and forecasting systems using IoT, big data, and machine learning. Wireless Personal Communications, 130(3), 1699-1729.
4.Gokul, P. R., Mathew, A., Bhosale, A., & Nair, A. T. (2023). Spatio-temporal air quality analysis and PM2. 5 prediction over Hyderabad City, India using artificial intelligence techniques. Ecological Informatics, 76, 102067.
5.Gupta, N. S., Mohta, Y., Heda, K., Armaan, R., Valarmathi, B., & Arulkumaran, G. (2023). Prediction of air quality index using machine learning techniques: a comparative analysis. Journal of Environmental and Public Health, 2023(1), 4916267.
6.Hussain, A., Draz, U., Ali, T., Tariq, S., Glowacz, A., Irfan, M., ... & Rahman, S. (2020). Waste management and prediction of air pollutants using IoT and machine learning approach. Energies, 13(15), 1-22.
7.Imam, M., Adam, S., Dev, S., & Nesa, N. (2024). Air quality monitoring using statistical learning models for sustainable environment. Intelligent Systems with Applications, 22, 200333.
8.Iskandaryan, D., Ramos, F., & Trilles, S. (2020). Air quality prediction in smart cities using machine learning technologies based on sensor data: a review. Applied Sciences, 10(7), 2401.
9.Janarthanan, R., Partheeban, P., Somasundaram, K., & Elamparithi, P. N. (2021). A deep learning approach for prediction of air quality index in a metropolitan city. Sustainable Cities and Society, 67, 102720.
10.Karnati, H. (2023). IoT-based air quality monitoring system with machine learning for accurate and real-time data analysis. arXiv preprint arXiv:2307.00580.
11.Kothandaraman, D., Praveena, N., Varadarajkumar, K., Madhav Rao, B., Dhabliya, D., Satla, S., & Abera, W. (2022). Intelligent forecasting of air quality and pollution prediction using machine learning. Adsorption Science & Technology, 2022, 5086622.
12.Kumar, K., & Pande, B. P. (2023). Air pollution prediction with machine learning: a case study of Indian cities. International Journal of Environmental Science and Technology, 20(5), 5333-5348.
13.Kumar, S., Mishra, S., & Singh, S. K. (2020). A machine learning-based model to estimate PM2. 5 concentration levels in Delhi's atmosphere. Heliyon, 6(11).
14.Kumari, S., & Singh, S. K. (2023). Machine learning-based time series models for effective CO2 emission prediction in India. Environmental Science and Pollution Research, 30(55), 116601-116616.
15.Liu, Q., Cui, B., & Liu, Z. (2024). Air quality class prediction using machine learning methods based on monitoring data and secondary modeling. Atmosphere, 15(5), 553.
16.Maltare, N. N., & Vahora, S. (2023). Air Quality Index prediction using machine learning for Ahmedabad city. Digital Chemical Engineering, 7, 100093.
17.Mampitiya, L., Rathnayake, N., Leon, L. P., Mandala, V., Azamathulla, H. M., Shelton, S., ... & Rathnayake, U. (2023). Machine learning techniques to predict the air quality using meteorological data in two urban areas in Sri Lanka. Environments, 10(8), 141.
18.Masood, A., & Ahmad, K. (2023). Data-driven predictive modeling of PM2. 5 concentrations using machine learning and deep learning techniques: a case study of Delhi, India. Environmental Monitoring and Assessment, 195(1), 60.
19.Mathew, A., Gokul, P. R., Raja Shekar, P., Arunab, K. S., Ghassan Abdo, H., Almohamad, H., & Abdullah Al Dughairi, A. (2023). Air quality analysis and PM2. 5 modelling using machine learning techniques: A study of Hyderabad city in India. Cogent Engineering, 10(1), 2243743.
20.Natarajan, S. K., Shanmurthy, P., Arockiam, D., Balusamy, B., & Selvarajan, S. (2024). Optimized machine learning model for air quality index prediction in major cities in India. Scientific reports, 14(1), 6795.
21.Pande, C. B., Radwan, N., Heddam, S., Ahmed, K. O., Alshehri, F., Pal, S. C., & Pramanik, M. (2025). Forecasting of monthly air quality index and understanding the air pollution in the urban city, India based on machine learning models and cross-validation. Journal of Atmospheric Chemistry, 82(1), 1.
22.Rautela, K. S., & Goyal, M. K. (2024). Transforming air pollution management in India with AI and machine learning technologies. Scientific Reports, 14(1), 20412.
23.Ravindiran, G., Hayder, G., Kanagarathinam, K., Alagumalai, A., & Sonne, C. (2023). Air quality prediction by machine learning models: A predictive study on the indian coastal city of Visakhapatnam. Chemosphere, 338, 139518.
24.Ravindiran, G., Rajamanickam, S., Kanagarathinam, K., Hayder, G., Janardhan, G., Arunkumar, P., ... & Muniasamy, S. K. (2023). Impact of air pollutants on climate change and prediction of air quality index using machine learning models. Environmental Research, 239, 117354.
25.Sarkar, N., Gupta, R., Keserwani, P. K., & Govil, M. C. (2022). Air quality index prediction using an effective hybrid deep learning model. Environmental Pollution, 315, 120404.
26.Suthar, G., Kaul, N., Khandelwal, S., & Singh, S. (2024). Predicting land surface temperature and examining its relationship with air pollution and urban parameters in Bengaluru: A machine learning approach. Urban Climate, 53, 101830.
27.Udayana, S. K. (2025). India Air Quality Index (AQI) Dataset [2023–2025] [Data set]. Kaggle. https://www.kaggle.com/datasets/saikiranudayana/india-air-quality-index-aqi-dataset






