Data-Driven Approaches for Predicting and Forecasting Air Quality in Urban Areas
Source abstract
Abstract
Air quality (AQ) is one of the most important urban environment indicators for the quality of life. The paper proposes a software solution for predicting and forecasting the air quality index (AQI) in urban areas. The study integrates pollutant factors (CO, NO2, SO2, PM2.5), meteorological parameters (temperature, humidity, wind speed), and traffic data to determine air quality. For this purpose, 19 predictive models were developed and compared: 12 machine learning algorithms, 7 deep learning, and 1 forecasting model based on structural component analysis. The Random Forest Regression model, customized within the study, achieved the best results, with an R2 score of 99.59%, an MAE of 0.22%, an MAPE of 0.68%, and an OP (Overall Precision) score of 95.61%. It was subsequently validated on unseen data and recorded a mean deviation of 0.58%. For short-term AQI forecasting (5 days), the AQIF model achieved an R2 of 71.62%, an MAE of 0.4%, and an MAPE of 0.9%. The proposed solution was integrated into a web application with IoT infrastructure and real-time alert mechanisms. Future directions include expanding the dataset and optimizing hyperparameters for the deep learning models to increase accuracy, as well as integrating PM10 and O3 factors, along with the degree of industrialization and demographic level.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Air Quality Monitoring and Forecasting · Air Quality and Health Impacts · Vehicle emissions and performance
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Automatic Control, Computers, and Electronics, Faculty of Mechanical and Electrical Engineering, Petroleum-Gas University of Ploiesti, 39 Bucharest Avenue, 100680 Ploiesti, Romania
Department of Business Administration, Faculty of Economic Sciences, Petroleum-Gas University of Ploiesti, 39 Bucharest Avenue, 100680 Ploiesti, Romania
Funding
Petroleum-Gas University of Ploiesti, Romania
References (99)
Show source-provided references
1. Air Pollution Assessment in the Main Roads of Surabaya-Indonesia During Post COVID-19
2. Carbon Monoxide Pollution and Limited Health Service Access in Third-world Countries10.56557/jogee/2024/v20i18541 ↗
3. Rosca, C.-M., Stancu, A., Neculaiu, C.-F., and Gortoescu, I.-A. (2024). Designing and Implementing a Public Urban Transport Scheduling System Based on Artificial Intelligence for Smart Cities. Appl. Sci., 14.10.3390/app14198861 ↗
4. Approaches Regarding Environmental Kuznets Curve in the European Union from the Perspective of Sustainable Development
5. Effects of Ambient Exposure to Nitrogen Dioxide on Outpatient Visits for Psoriasis in Rapidly Urbanizing Areas10.4209/aaqr.220166 ↗
6. Zhang, Y., Yang, D., Wu, R., Li, Y., Yang, X., Wang, R., and Xu, H. (2022, January 23–24). Characterization of roadside air pollutants: An artery road of Lanzhou city in northwest China. Proceedings of the 8th International Symposium on Vehicle Emission Supervision and Environment Protection, Wuhan, China.
7. 21-Day Lockdown in India Dramatically Reduced Air Pollution Indices in Lucknow and New Delhi, India10.1007/s00128-020-02895-w ↗
8. The relationship between air pollutants and COVID-19 cases and its implications for air quality in Jakarta, Indonesia
9. A review of low-level air pollution and adverse effects on human health: Implications for epidemiological studies and public policy10.1590/S1807-59322011000400025 ↗
10. Comparative Analysis of pH Level Between Pasteurized and UTH Milk Using Dedicated Developed Application10.37358/RC.19.11.7672 ↗
11. Anwar, M.Z., Rindarjono, M.G. (2022, January 27). The impact of transportation growth on the increase SO2 and NO2 gases in Surakarta City during 2013–2020. Proceedings of the International Conference on Anthropocene, Global Environmental Change and Powerful Geography, Online, Indonesia.10.1088/1755-1315/1190/1/012028 ↗
12. Changes in ambient air quality and atmospheric composition and reactivity in the South East of the UK as a result of the COVID-19 lockdown10.1016/j.scitotenv.2020.142526 ↗
13. Apostu, S.A., Gigauri, I., Panait, M., and Martín-Cervantes, P.A. (2023). Is Europe on the Way to Sustainable Development? Compatibility of Green Environment, Economic Growth, and Circular Economy Issues. Int. J. Environ. Res. Public Health, 20.10.3390/ijerph20021078 ↗
14. Erokhin, V., Tianming, G., and Andrei, J.V. (2021). Impact of COVID-19 Pandemic on International Agricultural Trade in European Countries. Shifting Patterns of Agricultural Trade, Springer.10.1007/978-981-16-3260-0 ↗
15. Akan, A.P., and Coccia, M. (2022). Changes of Air Pollution between Countries Because of Lockdowns to Face COVID-19 Pandemic. Appl. Sci., 12.10.3390/app122412806 ↗
16. Investigating the impact of COVID-19 lockdowns on environmental health in Kuwait
17. Air quality index variation before and after the onset of COVID-19 pandemic: A comprehensive study on 87 capital, industrial and polluted cities of the world10.1186/s12302-021-00575-y ↗
18. Schiavo, B., Morton-Bermea, O., Arredondo-Palacios, T.E., Meza-Figueroa, D., Robles-Morua, A., García-Martínez, R., Valera-Fernández, D., Inguaggiato, C., and Gonzalez-Grijalva, B. (2022). Analysis of COVID-19 Lockdown Effects on Urban Air Quality: A Case Study of Monterrey, Mexico. Sustainability, 15.10.3390/su15010642 ↗
19. Air quality during three COVID-19 lockdown phases: AQI, PM2.5 and NO2 assessment in cities with more than 1 million inhabitants10.1016/j.scs.2021.103170 ↗
20. Global impact of COVID-19 restrictions on the surface concentrations of nitrogen dioxide and ozone10.5194/acp-21-3555-2021 ↗
21. Jacob, D., Stowe, S., Babarinde, I., Sharma, A., Christopher, A., and Vilcassim, M.J.R. (2022). The Impact of COVID-19 Related Changes on Air Quality in Birmingham, Alabama, United States. Int. J. Environ. Res. Public Health, 19.10.3390/ijerph19063168 ↗
22. Yang, X.-S. (2025). Convergence Catalysts: Exploring the Fusion of Embedded Systems, IoT, and Artificial Intelligence. Engineering Applications of AI and Swarm Intelligence, Springer Nature.10.1007/978-981-97-5979-8 ↗
23. Artificial Intelligence—Powered Video Content Generation Tools
24. Waseem, K.H., Mushtaq, H., Abid, F., Abu-Mahfouz, A.M., Shaikh, A., Turan, M., and Rasheed, J. (2022). Forecasting of Air Quality Using an Optimized Recurrent Neural Network. Processes, 10.10.3390/pr10102117 ↗
25. Air Pollution Forecasting Using a Deep Learning Model Based on 1D Convnets and Bidirectional GRU10.1109/ACCESS.2019.2921578 ↗
26. Zhang, T., and Dick, R.P. (2022, January 16–19). Image-Based Air Quality Forecasting Through Multi-Level Attention. Proceedings of the IEEE International Conference on Image Processing, Bordeaux, France.10.1109/ICIP46576.2022.9897241 ↗
27. Murad, A., Kraemer, F.A., Bach, K., and Taylor, G. (2021). Probabilistic Deep Learning to Quantify Uncertainty in Air Quality Forecasting. Sensors, 21.10.3390/s21238009 ↗
28. An Investigation on the Use of Air Quality Models in Ship Emission Forecasts
29. Low-cost sensors and microscale land use regression: Data fusion to resolve air quality variations with high spatial and temporal resolution10.1016/j.atmosenv.2019.06.019 ↗
30. Wang, D., Wang, H.-W., Lu, K.-F., Peng, Z.-R., and Zhao, J. (2022). Regional Prediction of Ozone and Fine Particulate Matter Using Diffusion Convolutional Recurrent Neural Network. Int. J. Environ. Res. Public Health, 19.10.3390/ijerph19073988 ↗
31. Rosca, C.-M., and Stancu, A. (2024). Earthquake Prediction and Alert System Using IoT Infrastructure and Cloud-Based Environmental Data Analysis. Appl. Sci., 14.10.3390/app142210169 ↗
32. Sekula, P., Ustrnul, Z., Bokwa, A., Bochenek, B., and Zimnoch, M. (2022). Random Forests Assessment of the Role of Atmospheric Circulation in PM10 in an Urban Area with Complex Topography. Sustainability, 14.10.3390/su14063388 ↗
33. Assessing the impact of clean air action on air quality trends in Beijing using a machine learning technique10.5194/acp-19-11303-2019 ↗
34. Hamami, F., and Dahlan, I.A. (2021, January 9). Air Quality Classification in Urban Environment using Machine Learning Approach. Proceedings of the International Conference on Disaster Management and Climate Change, Surakarta, Indonesia.
35. Badrakh, O., and Choimaa, L. (2021, January 22–26). Air quality predictions of Ulaanbaatar using machine learning approach. Proceedings of the International Symposium on Grids & Clouds, Taipei, Taiwan.10.22323/1.378.0012 ↗
36. Deep Air Quality Forecasting Using Hybrid Deep Learning Framework10.1109/TKDE.2019.2954510 ↗
37. Huang, C.-J., and Kuo, P.-H. (2018). A Deep CNN-LSTM Model for Particulate Matter (PM2.5) Forecasting in Smart Cities. Sensors, 18.10.3390/s18072220 ↗
38. Liu, Y., Wang, P., Li, Y., Wen, L., and Deng, X. (2022). Air quality prediction models based on meteorological factors and real-time data of industrial waste gas. Sci. Rep., 12.10.1038/s41598-022-13579-2 ↗
39. Modeling and forecasting of monthly PM2.5 emission of Paris by periodogram-based time series methodology10.1007/s10661-021-09399-y ↗
40. Rosca, C.-M., Stancu, A., and Popescu, M. (2025). The Impact of Cloud Versus Local Infrastructure on Automatic IoT-Driven Hydroponic Systems. Appl. Sci., 15.10.3390/app15074016 ↗
41. Liu, Q., Cui, B., and Liu, Z. (2024). Air Quality Class Prediction Using Machine Learning Methods Based on Monitoring Data and Secondary Modeling. Atmosphere, 15.10.3390/atmos15050553 ↗
42. Development of a regional feature selection-based machine learning system (RFSML v1.0) for air pollution forecasting over China10.5194/gmd-15-7791-2022 ↗
43. IQAir (2025, April 10). Air Quality in The Bronx. Available online: https://www.iqair.com/us/usa/new-york/the-bronx.
44. Algorithm for child adoption process using artificial intelligence and monitoring system for children10.1016/j.iot.2024.101170 ↗
45. System Design, Automatic Data Collection Framework and Embedded Software Development of Internet of Things (IoT) for Air Pollution Monitoring of Nagpur Metropolis10.1007/s12524-024-01943-w ↗
46. IoT based monitoring of air quality and traffic using regression analysis10.1016/j.asoc.2021.108282 ↗
47. Shahid, I., Shahzad, M.I., Tutsak, E., Mahfouz, M.M.K., Al Adba, M.S., Abbasi, S.A., Rathore, H.A., Asif, Z., and Chen, Z. (2024). Carbon based sensors for air quality monitoring networks; middle east perspective. Front. Chem., 12.10.3389/fchem.2024.1391409 ↗
48. Kumar, Y.J.N., Chandan, R., Somanini, S.H., Vadtya, S., and Dangi, D. (2023, January 5–8). Ecosense: An IoT System for Detecting Suitable and Sustainable Living Conditions. Proceedings of the 15th International Conference on Materials Processing and Characterization, Newcastle, UK.
49. Marques, G., and Pitarma, R. (2019). A Cost-Effective Air Quality Supervision Solution for Enhanced Living Environments through the Internet of Things. Electronics, 8.10.3390/electronics8020170 ↗
50. Development of an IoT-Based Indoor Air Quality Monitoring Platform10.1155/2020/8749764 ↗
51. Rosca, C.-M., and Stancu, A. (2025). A Comprehensive Review of Machine Learning Models for Optimizing Wind Power Processes. Appl. Sci., 15.10.3390/app15073758 ↗
52. Air Pollution Monitoring System Using Micro Controller Atmega 32A and MQ135 Gas Sensor at Chandragiri Municipality of Kathmandu City10.30564/ssid.v4i2.4884 ↗
53. Field evaluation of low-cost particulate matter sensors in high- and low-concentration environments10.5194/amt-11-4823-2018 ↗
54. Particulate matter in a lockdown home: Evaluation, calibration, results and health risk from an IoT enabled low-cost sensor network for residential air quality monitoring10.1039/D2EA00124A ↗
55. Rosca, C.-M., Stancu, A., and Tănase, M.R. (2025). A Comparative Study of Azure Custom Vision Versus Google Vision API Integrated into AI Custom Models Using Object Classification for Residential Waste. Appl. Sci., 15.10.3390/app15073869 ↗
56. Implementation of a sustainable real-time air quality monitoring system using the Internet of Things for Kaduna metropolis, Nigeria10.36108/laujet/4202.81.0211 ↗
57. Air Quality Monitoring System Based on ISO/IEC/IEEE 21451 Standards10.1109/JSEN.2016.2555935 ↗
58. Recurrent Air Quality Predictor Based on Meteorology- and Pollution-Related Factors10.1109/TII.2018.2793950 ↗
59. Toward Massive Scale Air Quality Monitoring10.1109/MCOM.001.1900515 ↗
60. Real Time Localized Air Quality Monitoring and Prediction Through Mobile and Fixed IoT Sensing Network10.1109/ACCESS.2020.2993547 ↗
61. Rosca, C.-M., Rădulescu, G., and Stancu, A. (2025). Artificial Intelligence of Things Infrastructure for Quality Control in Cast Manufacturing Environments Shedding Light on Industry Changes. Appl. Sci., 15.10.3390/app15042068 ↗
62. Development of real time internet of things (IoT) based air quality monitoring system
63. (2019, January 30–31). The Monitoring System of Sulfur Dioxide Gas Using a Web-based Wireless Sensor. Proceedings of the 13th International Interdisciplinary Studies Seminar, Malang, Indonesia.
64. DiNapoli, T.P., and Bleiwas, K.B. (2024, October 08). An Economic Snapshot of the Bronx, Available online: https://www.osc.ny.gov/files/reports/osdc/pdf/report-4-2019.pdf.
65. State of New York (2024, October 09). Transportation, Available online: https://data.ny.gov/browse?category=Transportation&sortBy=relevance&page=1&pageSize=20.
66. Open-Meteo (2024, October 10). Open-Meteo API. Available online: https://archive-api.open-meteo.com/v1/era5?latitude=40.8527&longitude=73.8770&start_date=2020-01-01&end_date=2023-01-31&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m.
67. U.S. Environmental Protection Agency (2024, October 12). Outdoor Air Quality Data, Available online: https://www.epa.gov/outdoor-air-quality-data/download-daily-data.
68. U.S. Environmental Protection Agency (2025, April 10). Interactive Map of Air Quality, Available online: https://gispub.epa.gov/airnow/?contours=none&monitors=ozonepm&basemap=basemap_1&xmin=-8234563.212844915&xmax=-8216294.763084781&ymin=4988514.852448748&ymax=4996426.084876254.
69. The State-of-the-Art in Air Pollution Monitoring and Forecasting Systems Using IoT, Big Data, and Machine Learning10.1007/s11277-023-10351-1 ↗
70. American Lung Association (2024, October 20). Air Quality Index. Available online: https://www.lung.org/clean-air/outdoors/air-quality-index.
71. Roșca, C.-M., and Cărbureanu, M. (2024, January 27–28). A Comparative Analysis of Sorting Algorithms for Large-Scale Data: Performance Metrics and Language Efficiency. Proceedings of the Emerging Trends and Technologies on Intelligent Systems. ETTIS 2024. Lecture Notes in Networks and Systems, Noida, India.10.1007/978-981-97-5703-9_8 ↗
72. Random forest in remote sensing: A review of applications and future directions10.1016/j.isprsjprs.2016.01.011 ↗
73. Sammut, C., and Webb, G.I. (2017). Encyclopedia of Machine Learning and Data Mining, Springer. [2nd ed.].10.1007/978-1-4899-7687-1 ↗
74. A Consolidated Tree Structure Combining Multiple Regression Trees With Varying Depths, Resulting in an Efficient Ensemble Model
75. Wood, S.N. (2017). Generalized Additive Models, Chapman and Hall/CRC. [2nd ed.].10.1201/9781315370279 ↗
76. Link Adaptation on an Underwater Communications Network Using Machine Learning Algorithms: Boosted Regression Tree Approach10.1109/ACCESS.2020.2981973 ↗
77. Machine learning methods for short-term bid forecasting in the renewable energy market: A case study in Italy10.1002/we.2166 ↗
78. A working guide to boosted regression trees10.1111/j.1365-2656.2008.01390.x ↗
79. Microsoft (2024, November 04). Microsoft.ML.Trainers.FastTree Namespace. Available online: https://learn.microsoft.com/en-us/dotnet/api/microsoft.ml.trainers.fasttree?view=ml-dotnet.
80. Rosca, C.-M., and Stancu, A. (2024). Fusing Machine Learning and AI to Create a Framework for Employee Well-Being in the Era of Industry 5.0. Appl. Sci., 14.10.3390/app142310835 ↗
81. Fast Prediction of Deterioration and Death Risk in Patients With Acute Exacerbation of Chronic Obstructive Pulmonary Disease Using Vital Signs and Admission History: Retrospective Cohort Study10.2196/13085 ↗
82. FFTrees: A toolbox to create, visualize, and evaluate fast-and-frugal decision trees10.1017/S1930297500006239 ↗
83. Dynamic Streamflow Simulation via Online Gradient-Boosted Regression Tree10.1061/(ASCE)HE.1943-5584.0001822 ↗
84. New Algorithm to Prevent Online Test Fraud Based on Cognitive Services and Input Devices Events
85. Sun, F., He, M., and Gao, Q. (2011, January 16–18). Double-paralleled ridgelet neural network with IFPSO training algorithm. Proceedings of the International Conference on Electrical and Control Engineering, Yichang, China.10.1109/ICECENG.2011.6057548 ↗
86. Comparative effectiveness of convolutional neural network (CNN) and recurrent neural network (RNN) architectures for radiology text report classification10.1016/j.artmed.2018.11.004 ↗
87. Comparison of RNN Architectures and Non-RNN Architectures in Sentiment Analysis10.33395/sinkron.v8i4.13048 ↗
88. Ororbia, A., Elsaid, A., and Desell, T. (2019, January 13–17). Investigating recurrent neural network memory structures using neuro-evolution. Proceedings of the GECCO ’19: Genetic and Evolutionary Computation Conference, Prague, Czech Republic.10.1145/3321707.3321795 ↗
89. Performance Evaluation of Deep Neural Networks Applied to Speech Recognition: RNN, LSTM and GRU10.2478/jaiscr-2019-0006 ↗
90. Prognosis Method of Unfavorable Airborne Events during Flight Based On Convolutional and Recurrent Neural Networks
91. Neural Approximators for Variable-Order Fractional Calculus Operators (VO-FC)10.1109/ACCESS.2022.3143893 ↗
92. Trainable Delays in Time Delay Neural Networks for Learning Delayed Dynamics10.1109/TNNLS.2024.3379020 ↗
93. Zhang, Y., and Liu, F. (2020). An Improved Deep Belief Network Prediction Model Based on Knowledge Transfer. Future Internet, 12.10.3390/fi12110188 ↗
94. Rosca, C.-M., Stancu, A., and Iovanovici, E.M. (2025). The New Paradigm of Deepfake Detection at the Text Level. Appl. Sci., 15.10.3390/app15052560 ↗
95. Ayilu, J., Dhivya, S., and Saravanane, M. (2023, January 17–18). Performance Analysis of Machine Learning Singular Spectrum Analysis for Forecasting Air Contamination. Proceedings of the International Conference on System, Computation, Automation and Networking, Puducherry, India.
96. Microsoft (2024, November 02). TimeSeriesCatalog.ForecastBySsa Method. Available online: https://learn.microsoft.com/en-us/dotnet/api/microsoft.ml.timeseriescatalog.forecastbyssa?view=ml-dotnet.
97. Panaite, F.A., Rus, C., Leba, M., Ionica, A.C., and Windisch, M. (2024). Enhancing Air-Quality Predictions on University Campuses: A Machine-Learning Approach to PM2.5 Forecasting at the University of Petroșani. Sustainability, 16.10.20944/preprints202407.2290.v1 ↗
98. Chan, K., Matthews, P., and Munir, K. (2025). Time Series Forecasting for Air Quality with Structured and Unstructured Data Using Artificial Neural Networks. Atmosphere, 16.10.3390/atmos16030320 ↗
99. Cican, G., Buturache, A.-N., and Mirea, R. (2023). Applying Machine Learning Techniques in Air Quality Prediction—A Bucharest City Case Study. Sustainability, 15.10.3390/su15118445 ↗