Air Quality Index Forecasting in the HRcity Smart City System Based on an LSTM Prediction Model
Received: 22 April 2025 | Revised: 19 May 2025 | Accepted: 1 June 2025 | Online: 2 August 2025
Corresponding author: Bruno Trstenjak
Abstract
The HRcity project aims to implement various digital technologies for the needs of cities in the Republic of Croatia. The system itself consists of several different components specialized for the needs of citizens and various institutions operating in the city areas. One of these components monitors air quality and measures the Air Quality Index (AQI). This paper presents the structure of the AQI component and the principles for measuring and monitoring pollution values and determining the AQI. Air quality prediction models, based on LSTM, were implemented based on pollutant measurements collected during three years of system use. RMSE, MAE, and MAPE metrics were used to evaluate the performance of the LSTM models. The experimental evaluation shows that the LSTM models implemented with other elements of the AQI achieved very good accuracy.
Keywords:
smart city, LSTM prediction, air quality index, HRcity systemDownloads
References
Decision (EU) 2022/591 of the European Parliament and of the Council of 6 April 2022 on a General Union Environment Action Programme to 2030. European Union, 2022.
A. Alwabli, "Federated Learning for Privacy-Preserving Air Quality Forecasting using IoT Sensors," Engineering, Technology & Applied Science Research, vol. 14, no. 4, pp. 16069–16076, Aug. 2024. DOI: https://doi.org/10.48084/etasr.7820
Z. Karavas, V. Karayannis, and K. Moustakas, "Comparative study of air quality indices in the European Union towards adopting a common air quality index," Energy & Environment, vol. 32, no. 6, pp. 959–980, Sep. 2021. DOI: https://doi.org/10.1177/0958305X20921846
B. Trstenjak, L. Butkovic, and S. Brekalo, "HRcity smart city as support in Business decision making for waste disposal," presented at the 98th International Scientific Conference on Economic and Social Development, 2023.
M. Méndez, M. G. Merayo, and M. Núñez, "Machine learning algorithms to forecast air quality: a survey," Artificial Intelligence Review, vol. 56, no. 9, pp. 10031–10066, Sep. 2023. DOI: https://doi.org/10.1007/s10462-023-10424-4
A. Sotomayor-Olmedo et al., "Evaluating trends of airborne contaminants by using support vector regression techniques," in CONIELECOMP 2011, 21st International Conference on Electrical Communications and Computers, San Andres Cholula, Puebla, Mexico, Feb. 2011, pp. 137–141. DOI: https://doi.org/10.1109/CONIELECOMP.2011.5749350
B. Ngom, M. Diallo, M. R. Seyc, M. S. Drame, C. Cambier, and N. Marilleau, "PM10 Data Assimilation on Real-time Agent-based Simulation using Machine Learning Models: case of Dakar Urban Air Pollution Study," in 2021 IEEE/ACM 25th International Symposium on Distributed Simulation and Real Time Applications (DS-RT), Valencia, Spain, Sep. 2021, pp. 1–4. DOI: https://doi.org/10.1109/DS-RT52167.2021.9576143
X. Sun, W. Xu, H. Jiang, and Q. Wang, "A deep multitask learning approach for air quality prediction," Annals of Operations Research, vol. 303, no. 1, pp. 51–79, Aug. 2021. DOI: https://doi.org/10.1007/s10479-020-03734-1
X. Yi, J. Zhang, Z. Wang, T. Li, and Y. Zheng, "Deep Distributed Fusion Network for Air Quality Prediction," in Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Apr. 2018, pp. 965–973. DOI: https://doi.org/10.1145/3219819.3219822
N. Jin, Y. Zeng, K. Yan, and Z. Ji, "Multivariate Air Quality Forecasting With Nested Long Short Term Memory Neural Network," IEEE Transactions on Industrial Informatics, vol. 17, no. 12, pp. 8514–8522, Sep. 2021. DOI: https://doi.org/10.1109/TII.2021.3065425
S. M. Choi, H. Choi, and W. Paik, "Multivariate Regression Modeling for Coastal Urban Air Quality Estimates," Applied Sciences, vol. 13, no. 19, Sep. 2023, Art. no. 10556. DOI: https://doi.org/10.3390/app131910556
P. W. Chiang and S. J. Horng, "Hybrid Time-Series Framework for Daily-Based PM2.5 Forecasting," IEEE Access, vol. 9, pp. 104162–104176, 2021. DOI: https://doi.org/10.1109/ACCESS.2021.3099111
M. H. Nguyen, P. L. Nguyen, K. Nguyen, V. A. Le, T. H. Nguyen, and Y. Ji, "PM2.5 Prediction Using Genetic Algorithm-Based Feature Selection and Encoder-Decoder Model," IEEE Access, vol. 9, pp. 57338–57350, 2021. DOI: https://doi.org/10.1109/ACCESS.2021.3072280
D. Zhang and S. S. Woo, "Real Time Localized Air Quality Monitoring and Prediction Through Mobile and Fixed IoT Sensing Network," IEEE Access, vol. 8, pp. 89584–89594, 2020. DOI: https://doi.org/10.1109/ACCESS.2020.2993547
"Standards for Air Quality Indices in Different Countries (AQI)," Atmotech. https://atmotube.com/blog/standards-for-air-quality-indices-in-different-countries-aqi.
Isam Drewil and R. J. Al-Bahadili, "Forecast Air Pollution in Smart City Using Deep Learning Techniques: A Review," Multicultural Education, vol. 7, no. 5, pp. 38–47, May 2021.
H. He and F. Luo, "Study of LSTM Air Quality Index Prediction Based on Forecasting Timeliness," IOP Conference Series: Earth and Environmental Science, vol. 446, no. 3, Oct. 2020, Art. no. 032113. DOI: https://doi.org/10.1088/1755-1315/446/3/032113
F. Aljuaydi, M. Zidan, and A. M. Elshewey, "A Deep Learning CNN-GRU-RNN Model for Sustainable Development Prediction in Al-Kharj City," Engineering, Technology & Applied Science Research, vol. 15, no. 1, pp. 20321–20327, Feb. 2025. DOI: https://doi.org/10.48084/etasr.9247
G. Y. V. Tang, K. G. Pillay, and A. Mustapha, "The Impact of Data Preprocessing Order on LASSO and Elastic Net Capabilities," Engineering, Technology & Applied Science Research, vol. 15, no. 1, pp. 20264–20270, Feb. 2025. DOI: https://doi.org/10.48084/etasr.9611
K. Qu, J. Xu, Q. Hou, K. Qu, and Y. Sun, "Feature selection using Information Gain and decision information in neighborhood decision system," Applied Soft Computing, vol. 136, Mar. 2023, Art. no. 110100. DOI: https://doi.org/10.1016/j.asoc.2023.110100
Y. Liu, P. Wang, Y. Li, L. Wen, and X. Deng, "Air quality prediction models based on meteorological factors and real-time data of industrial waste gas," Scientific Reports, vol. 12, no. 1, Jun. 2022, Art. no. 9253. DOI: https://doi.org/10.1038/s41598-022-13579-2
M. Niu, Y. Zhang, and Z. Ren, "Deep Learning-Based PM2.5 Long Time-Series Prediction by Fusing Multisource Data—A Case Study of Beijing," Atmosphere, vol. 14, no. 2, Feb. 2023, Art. no. 340. DOI: https://doi.org/10.3390/atmos14020340
Downloads
How to Cite
License
Copyright (c) 2025 Bruno Trstenjak, Sanja Brekalo, Jurica Trstenjak

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
