Machine Learning for Urban Air Quality Prediction and Environmental Sustainability
DOI:
https://doi.org/10.33050/zt405q65Keywords:
Machine Learning, Urban Air Quality, Environmental Sustainability, XGBoost, Random ForestAbstract
Rapid urbanization, industrial activities, and increasing vehicle emissions have intensified air pollution problems in urban areas, creating challenges for environmental quality, public health, and sustainable city development. This study aims to develop a machine learning based prediction framework for urban air quality by identifying relationships between main pollutants in the air and surrounding weather conditions to improve the accuracy of air quality prediction. The proposed quantitative approach utilizes historical concentrations of PM2.5, PM10, CO, NO₂, SO₂, and O₃ together with temperature, humidity, wind speed, and atmospheric pressure as predictive variables. Random Forest, Support Vector Regression, and XGBoost models are applied to capture nonlinear relationships between environmental conditions and urban air quality, while model performance is evaluated using Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). The experimental results indicate that XGBoost provides the strongest predictive capability, achieving an RMSE of 8.47, an MAE of 5.92, a MAPE of 7.18%, and an R² value of 0.934, demonstrating a high level of agreement between predicted and observed air quality conditions. Feature analysis further indicates that PM2.5, PM10, temperature, humidity, and wind speed contribute substantially to variations in predicted urban air quality. These findings demonstrate that machine learning can effectively support urban air quality prediction by integrating pollutant and meteorological information, providing useful predictive insights for environmental monitoring, pollution management, urban planning, and sustainable city development.
References
[1] I. Essamlali, H. Nhaila, and M. El Khaili, “Supervised machine learning approaches for predicting key pollutants and for the sustainable enhancement of urban air quality: A systematic review,” Sustainability, vol. 16, no. 3, p. 976, 2024.
[2] Z. Shahbazi, Z. Shahbazi, and S. Nowaczyk, “Enhancing air quality forecasting using machine learning techniques,” IEEE access, vol. 12, pp. 197 290–197 299, 2024.
[3] M. Mujtaba, M. A. Munir, S. Ali, J. Petr, T. Ansar, W. Akhlaq, M. Ahmad, H. Iqbal, F. Ali, M. N. Bashir et al., “Using machine learning for air quality prediction and sustainable urban planning,” Sustainable Futures, vol. 10, p. 100981, 2025.
[4] R. Janarthanan, P. Partheeban, K. Somasundaram, and P. N. Elamparithi, “A deep learning approach for prediction of air quality index in a metropolitan city,” Sustainable Cities and Society, vol. 67, p. 102720, 2021.
[5] U. Rahardja, Q. Aini, D. Manongga, I. Sembiring, and Y. Sanjaya, “Enhancing machine learning with low-cost p m2. 5 air quality sensor calibration using image processing,” APTISI Transactions on Management, vol. 7, no. 3, pp. 201–209, 2023.
[6] N. I. Molina-G´omez, J. L. D´ıaz-Ar´evalo, and P. A. L´opez-Jim´enez, “Air quality and urban sustainable development: the application of machine learning tools,” International Journal of Environmental Science and Technology, vol. 18, no. 4, pp. 1029–1046, 2021.
[7] M. Zareba, S. Cogiel, T. Danek, and E. Weglinska, “Machine learning techniques for spatio-temporal air pollution prediction to drive sustainable urban development in the era of energy and data transformation,” Energies, vol. 17, no. 11, p. 2738, 2024.
[8] Y. ¨Oz¨upak, F. Alpsalaz, and E. Aslan, “Air quality forecasting using machine learning: comparative analysis and ensemble strategies for enhanced prediction,” Water, Air, & Soil Pollution, vol. 236, no. 7, p. 464, 2025.
[9] M. Salmi, H. Newell, and W. X. Tan, “Sustainable educational technology transformation through green information technology in higher education,” International Transactions on Education Technology (ITEE), vol. 5, no. 1, pp. 25–35, 2026.
[10] O. Taylan, A. S. Alkabaa, M. Alamoudi, A. Basahel, M. Balubaid, M. Andejany, and H. Alidrisi, “Air quality modeling for sustainable clean environment using anfis and machine learning approaches,” Atmosphere, vol. 12, no. 6, p. 713, 2021.
[11] M. Imam, S. Adam, S. Dev, and N. Nesa, “Air quality monitoring using statistical learning models for sustainable environment,” Intelligent Systems with Applications, vol. 22, p. 200333, 2024.
[12] A. SK, G. Ravindiran et al., “Integrating machine learning techniques for air quality index forecasting and insights from pollutant-meteorological dynamics in sustainable urban environments,” Earth Science Informatics, vol. 17, no. 4, pp. 3733–3748, 2024.
[13] I. Sembiring, D. Manongga, U. Rahardja, and Q. Aini, “Understanding data-driven analytic decision making on air quality monitoring an empirical study,” Aptisi Transactions on Technopreneurship (ATT), vol. 6, no. 3, pp. 418–431, 2024.
[14] G. Ravindiran, S. Rajamanickam, K. Kanagarathinam, G. Hayder, G. Janardhan, P. Arunkumar, S. Arunachalam, A. A. AlObaid, I. Warad, and S. K. Muniasamy, “Impact of air pollutants on climate change and prediction of air quality index using machine learning models,” Environmental Research, vol. 239, p. 117354, 2023.
[15] A. Binbusayyis, M. A. Khan, M. M. Ahmed A, and W. S. Emmanuel, “A deep learning approach for prediction of air quality index in smart city,” Discover Sustainability, vol. 5, no. 1, p. 89, 2024.
[16] M. A. Alloghani, “Harnessing ai for sustainability: applied ai and machine learning algorithms for air quality prediction,” in Artificial Intelligence and Sustainability. Springer, 2023, pp. 1–32.
[17] N. Sarkar, R. Gupta, P. K. Keserwani, and M. C. Govil, “Air quality index prediction using an effective hybrid deep learning model,” Environmental Pollution, vol. 315, p. 120404, 2022.
[18] E. R. Rahayu, R. Raihan, Z. Ndlovu, S. V. Sihotang, N. Malika, and A. Fitriani, “Long term aging effects on polymer materials photovoltaic modules durability and safety,” International Journal of Cyber and IT Service Management (IJCITSM), vol. 4, no. 2, pp. 155–166, 2024.
[19] N. S. Gupta, Y. Mohta, K. Heda, R. Armaan, B. Valarmathi, and G. Arulkumaran, “Prediction of air quality index using machine learning techniques: a comparative analysis,” Journal of Environmental and Public Health, vol. 2023, no. 1, p. 4916267, 2023.
[20] A. Pratama, C. Gudiato, A. Maulana, and W. Prayitno, “SVM-driven ISPU prediction for jakarta’s sustainable future,” SISFOTENIKA, vol. 15, no. 1, Feb. 2025. [Online]. Available: https://garuda.kemdiktisaintek.go.id/documents/detail/4870050
[21] M. T. Udristioiu, Y. E. Mghouchi, and H. Yildizhan, “Prediction, modelling, and forecasting of pm and aqi using hybrid machine learning,” Journal of Cleaner Production, vol. 421, p. 138496, 2023.
[22] D. R. Saputra, H. Nugroho, D. Julianingsih, and Z. Queen, “Understanding air pollution through machine learning: Predictive analytics for urban management,” IAIC Transactions on Sustainable Digital Innovation (ITSDI), vol. 6, no. 1, pp. 75–85, 2024.
[23] Q. Liu, B. Cui, and Z. Liu, “Air quality class prediction using machine learning methods based on monitoring data and secondary modeling,” Atmosphere, vol. 15, no. 5, p. 553, 2024.
[24] B. Zhao, L. Yu, C. Wang, C. Shuai, J. Zhu, S. Qu, M. Taiebat, and M. Xu, “Urban air pollution mapping using fleet vehicles as mobile monitors and machine learning,” Environmental Science & Technology, vol. 55, no. 8, pp. 5579–5588, 2021.
[25] A. Aggarwal and D. Toshniwal, “A hybrid deep learning framework for urban air quality forecasting,” Journal of Cleaner Production, vol. 329, p. 129660, 2021.
[26] Q. Aini, D. Manongga, U. Rahardja, I. Sembiring, and Y.-M. Li, “Understanding behavioral intention to use of air quality monitoring solutions with emphasis on technology readiness,” International Journal of Human–Computer Interaction, vol. 41, no. 8, pp. 5079–5099, 2025.
[27] L. Mampitiya, N. Rathnayake, L. P. Leon, V. Mandala, H. M. Azamathulla, S. Shelton, Y. Hoshino, and U. Rathnayake, “Machine learning techniques to predict the air quality using meteorological data in two urban areas in sri lanka,” Environments, vol. 10, no. 8, p. 141, 2023.
[28] M. Hardini, M. H. R. Chakim, L. Magdalena, H. Kenta, A. S. Rafika, and D. Julianingsih, “Image-based air quality prediction using convolutional neural networks and machine learning,” Aptisi Transactions on Technopreneurship (ATT), vol. 5, no. 1Sp, pp. 109–123, 2023.
[29] G. Suthar, N. Kaul, S. Khandelwal, and S. Singh, “Predicting land surface temperature and examining its relationship with air pollution and urban parameters in bengaluru: A machine learning approach,” Urban Climate, vol. 53, p. 101830, 2024.
[30] S. K. Natarajan, P. Shanmurthy, D. Arockiam, B. Balusamy, and S. Selvarajan, “Optimized machine learning model for air quality index prediction in major cities in india,” Scientific reports, vol. 14, no. 1, p. 6795, 2024.
[31] D. Kothandaraman, N. Praveena, K. Varadarajkumar, B. Madhav Rao, D. Dhabliya, S. Satla, and W. Abera, “Intelligent forecasting of air quality and pollution prediction using machine learning,” Adsorption Science & Technology, vol. 2022, p. 5086622, 2022.
[32] H. Ke, S. Gong, J. He, L. Zhang, B. Cui, Y. Wang, J. Mo, Y. Zhou, and H. Zhang, “Development and application of an automated air quality forecasting system based on machine learning,” Science of The Total Environment, vol. 806, p. 151204, 2022.
[33] G. Ravindiran, G. Hayder, K. Kanagarathinam, A. Alagumalai, and C. Sonne, “Air quality prediction by machine learning models: A predictive study on the indian coastal city of visakhapatnam,” Chemosphere, vol. 338, p. 139518, 2023.
[34] L. A. Senduk, C. T. Hua, and I. N. Fathiyah, “The role of green innovation in strengthening the sustainability performance of digital startups in indonesia,” Startupreneur Business Digital (SABDA Journal), vol. 5, no. 1, pp. 33–41, 2026.
[35] E. X. Neo, K. Hasikin, K. W. Lai, M. I. Mokhtar, M. M. Azizan, H. F. Hizaddin, S. A. Razak et al., “Artificial intelligence-assisted air quality monitoring for smart city management,” PeerJ Computer Science, vol. 9, p. e1306, 2023.
[36] T. M. Lei, S. W. Siu, J. Monjardino, L. Mendes, and F. Ferreira, “Using machine learning methods to forecast air quality: A case study in macao,” Atmosphere, vol. 13, no. 9, p. 1412, 2022.
[37] M. M´endez, M. G. Merayo, and M. N´u˜nez, “Machine learning algorithms to forecast air quality: a survey: M. m´endez et al.” Artificial intelligence review, vol. 56, no. 9, pp. 10 031–10 066, 2023.
[38] O. Bianchi and H. P. Putro, “Artificial intelligence in environmental monitoring: Predicting and managing climate change impacts,” International Transactions on Artificial Intelligence, vol. 3, no. 1, pp. 85–96, 2024.
[39] R. S. Pamungkas, A. Kanivia, A. Aprillia, and K. A. Al-Farouqi, “Optimizing blockchain based iot integration for sustainable mobility in smart cities,” Blockchain Frontier Technology, vol. 4, no. 2, pp. 132–144, 2025.
[40] C.-C. Liu, T.-C. Lin, K.-Y. Yuan, and P.-T. Chiueh, “Spatio-temporal prediction and factor identification of urban air quality using support vector machine,” Urban climate, vol. 41, p. 101055, 2022.
[41] A. Tella and A.-L. Balogun, “Gis-based air quality modelling: Spatial prediction of pm10 for selangor state, malaysia using machine learning algorithms,” Environmental Science and Pollution Research, vol. 29, no. 57, pp. 86 109–86 125, 2022.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Tino Theodor, Marviola Hardini

This work is licensed under a Creative Commons Attribution 4.0 International License.



