A Comparative Analysis of LSTM and GRU Models for AQI Forecasting in Tourist Destinations


  • Luluk Ardianto * Mail Universitas Dian Nuswantoro, Semarang, Indonesia
  • Yani Parti Astuti Universitas Dian Nuswantoro, Semarang, Indonesia
  • (*) Corresponding Author
Keywords: AQI; Forecasting; GRU; LSTM; Tourist Destination

Abstract

The Air Quality Index (AQI) is a critical metric for assessing air quality and its impact on human health, particularly in densely populated and tourist-heavy areas such as Malioboro, Yogyakarta. As one of Indonesia's most popular tourist destinations, the region experiences significant air quality fluctuations influenced by human activities, including transportation and tourism. This study evaluates the performance of two advanced deep learning models, Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU), in forecasting AQI and key pollutant parameters, PM10 and PM2.5, using two years of air quality data collected between January 2022 and December 2023. The results demonstrate that the LSTM model consistently outperforms GRU in predicting AQI (MSE: 163.757, RMSE: 12.797, MAE: 7.432, MAPE: 0.133) and PM2.5 (MSE: 32.001, RMSE: 5.657, MAE: 3.005, MAPE: 0.139), indicating its capability to model complex temporal patterns effectively. Conversely, the GRU model achieves better accuracy for PM10 predictions (MSE: 58.592, RMSE: 7.655, MAE: 4.168, MAPE: 0.180), showcasing its computational efficiency with competitive performance. These findings underscore the suitability of LSTM for applications prioritizing accuracy, while GRU provides a viable option for scenarios requiring faster computations. This research highlights the potential of leveraging deep learning models to tackle air quality challenges in urban and tourist areas, paving the way for informed decision-making and sustainable development initiatives

Downloads

Download data is not yet available.

References

M. Chen, “Analyzing the Daily Air Quality Index in the U.S. in Time Series,” Highlights Sci. Eng. Technol., vol. 88, pp. 1297–1302, 2024, doi: 10.54097/m6y2hj11.

S. Rana, “Determination of Air Quality Life Index (Aqli) in Medinipur City of West Bengal(India) During 2019 To 2020 : A contextual Study,” Curr. World Environ., vol. 17, no. 1, pp. 137–145, 2022, doi: 10.12944/cwe.17.1.12.

D. Seng, Q. Zhang, X. Zhang, G. Chen, and X. Chen, “Spatiotemporal prediction of air quality based on LSTM neural network,” Alexandria Eng. J., vol. 60, no. 2, pp. 2021–2032, 2021, doi: 10.1016/j.aej.2020.12.009.

Y. Zhang, M. Yang, F. Yang, and N. Dong, “A Multi-step Prediction Method of Urban Air Quality Index Based on Meteorological Factors Analysis,” E3S Web Conf., vol. 350, 2022, doi: 10.1051/e3sconf/202235001010.

Y. Su and C. C. Lee, “The impact of air quality on international tourism arrivals: a global panel data analysis,” Environ. Sci. Pollut. Res., vol. 29, no. 41, pp. 62432–62446, 2022, doi: 10.1007/s11356-022-20030-6.

M. L. Afandi, J. Wibowo, C. Candraningrat, and A. Supriyanto, “Analisis Hubungan Atribut Destinasi Wisata Terhadap Kepuasan Wisatawan Pada Kawasan Malioboro,” Sadar Wisata J. Pariwisata, vol. 6, no. 2, pp. 89–97, 2023, doi: 10.32528/sw.v6i2.1200.

S. Patimah, A. Shinta, and A. G. Rizqia, “Psikologi Lingkungan : Pentingkah Untuk Dipelajari ?,” Jurnal Psikologi, vol. 20, no. 2, pp. 108–112, 2024.

Michel, “Perbandingan Metode Prophet Dan Long Short Term Memory (Lstm) Dalam Peramalan Kualitas Udara (Studi Kasus Kualitas Udara Kota Bandar Lampung),” Repositori Universitas Lampung, vol. 4, no. 1, pp. 1–23, 2024.

A. Pant, S. Sharma, and K. Pant, “Evaluation of Machine Learning Algorithms for Air Quality Index (AQI) Prediction,” J. Reliab. Stat. Stud., vol. 16, no. 2, pp. 229–242, 2023, doi: 10.13052/jrss0974-8024.1621.

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,” J. Environ. Public Health, vol. 2023, pp. 1–26, 2023, doi: 10.1155/2023/4916267.

N. N. Maltare and S. Vahora, “Air Quality Index prediction using machine learning for Ahmedabad city,” Digit. Chem. Eng., vol. 7, no. November 2022, p. 100093, 2023, doi: 10.1016/j.dche.2023.100093.

M. AL-Ghamdi, A. A. M. AL-Ghamdi, and M. Ragab, “A Hybrid DNN Multilayered LSTM Model for Energy Consumption Prediction,” Appl. Sci., vol. 13, no. 20, 2023, doi: 10.3390/app132011408.

G. Isam Drewil and R. Jabbar Al-Bahadili, “Multicultural Education Forecast Air Pollution in Smart City Using Deep Learning Techniques: A Review,” Multicult. Educ., vol. 7, no. 5, pp. 38–47, 2021, doi: 10.5281/zenodo.4737746.

J. Wang, X. Li, L. Jin, J. Li, Q. Sun, and H. Wang, “An air quality index prediction model based on CNN-ILSTM,” Sci. Rep., vol. 12, no. 1, pp. 1–16, 2022, doi: 10.1038/s41598-022-12355-6.

S. Nosouhian, F. Nosouhian, and A. K. Khoshouei, “A review of recurrent neural network architecture for sequence learning: Comparison between LSTM and GRU,” Preprints.org, no. July, pp. 1–7, 2021, doi: 10.20944/preprints202107.0252.v1.

S. Raut, “Stock Market Price Prediction and Forecasting Using Stacked LSTM,” Interantional J. Sci. Res. Eng. Manag., vol. 08, no. 03, pp. 1–5, 2024, doi: 10.55041/ijsrem29832.

Z. Wang, “Stock price prediction using LSTM neural networks: Techniques and applications,” Appl. Comput. Eng., vol. 86, no. 1, pp. 294–300, 2024, doi: 10.54254/2755-2721/86/20241605.

W. A. Degife and B. S. Lin, “Deep-Learning-Powered GRU Model for Flight Ticket Fare Forecasting,” Appl. Sci., vol. 13, no. 10, 2023, doi: 10.3390/app13106032.

N. Hussein and A. M. Abdulazeez, “Bitcoin Price Prediction Using Hybrid LSTM-GRU Models,” Indones. J. Comput. Sci., vol. 13, no. 1, pp. 94–101, 2024, doi: 10.33022/ijcs.v13i1.3725.

K. Paul, “Data Expedition: Travel Through Data Preprocessing, EDA And PCA,” Educ. Adm. Theory Pract., vol. 30, no. 6, pp. 2576–2590, 2024, doi: 10.53555/kuey.v30i6.5828.

S. BUYRUKOĞLU and A. AKBAŞ, “Machine Learning based Early Prediction of Type 2 Diabetes: A New Hybrid Feature Selection Approach using Correlation Matrix with Heatmap and SFS,” Balk. J. Electr. Comput. Eng., vol. 10, no. 2, pp. 110–117, 2022, doi: 10.17694/bajece.973129.

F. A. Kusuma, “Pemodelan Klasifikasi Anemia Aplastik Menggunakan Teknik Oversampling Dan K-Nearest Neighbors,” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 3, 2024, doi: 10.23960/jitet.v12i3.4326.

Das Pankaj, “Performance Metrics in Predictive Modeling,” 2024, [Online]. Available: https://orcid.org/0000-0003-1672-2502

T. O. Hodson, “Root-mean-square error (RMSE) or mean absolute error (MAE): when to use them or not,” Geosci. Model Dev., vol. 15, no. 14, pp. 5481–5487, 2022, doi: 10.5194/gmd-15-5481-2022.

S. M. Robeson and C. J. Willmott, “Decomposition of the mean absolute error (MAE) into systematic and unsystematic components,” PLoS One, vol. 18, no. 2 February, pp. 1–8, 2023, doi: 10.1371/journal.pone.0279774.

C. Tofallis, “A better measure of relative prediction accuracy for model selection and model estimation,” J. Oper. Res. Soc., vol. 66, no. 8, pp. 1352–1362, 2015, doi: 10.1057/jors.2014.103.

O. E. C. Mary, “a Framework for Decoding Physiological and Neural Signal Using Long Short-Term Memory (Lstm),” Int. J. Adv. Res. Comput. Sci., vol. 14, no. 03, pp. 114–118, 2023, doi: 10.26483/ijarcs.v14i3.6986.

I. W. Ramadhani et al., “Forecasting Air Quality Indeks Using Long Short Term Memory,” J. Appl. Informatics Comput., vol. 8, no. 1, pp. 22–29, 2024, doi: 10.30871/jaic.v8i1.7402.

X. Wang, J. Wang, Y. Cao, Z. Ye, and W. Zhang, “Principle Analysis of Voiceprint Identification and Authentication System Based on LSTM,” Acad. J. Comput. Inf. Sci., vol. 5, no. 7, pp. 85–89, 2022, doi: 10.25236/ajcis.2022.050714.

J. Wang, S. Hong, Y. Dong, Z. Li, and J. Hu, “Predicting Stock Market Trends Using LSTM Networks: Overcoming RNN Limitations for Improved Financial Forecasting,” J. Comput. Sci. Softw. Appl., vol. 4, no. 3, pp. 1–7, 2024, [Online]. Available: https://mfacademia.org/index.php/jcssa/article/view/100

M. A. Moradi, S. A. Sadrossadat, and V. Derhami, “Long Short-Term Memory Neural Networks for Modeling Nonlinear Electronic Components,” IEEE Trans. Components, Packag. Manuf. Technol., vol. 11, no. 5, pp. 840–847, 2021, doi: 10.1109/TCPMT.2021.3071351.

P. Lazcano-Muñoz, “An approach to optimization of Gated Recurrent Unit with Greedy Algorithm,” J. Comput. Forensic Sci., vol. 3, no. 1, pp. 22–32, 2024, doi: 10.5937/jcfs3-48703.

B. Subramanian, B. Olimov, S. M. Naik, S. Kim, K. H. Park, and J. Kim, “An integrated mediapipe-optimized GRU model for Indian sign language recognition,” Sci. Rep., vol. 12, no. 1, pp. 1–16, 2022, doi: 10.1038/s41598-022-15998-7.

C. Ding et al., “Accurate Air-Quality Prediction Using Genetic-Optimized Gated-Recurrent-Unit Architecture,” MDPI, pp. 1–21, 2022.

Z. Liu, W. Li, J. Feng, and J. Zhang, “Research on Satellite Network Traffic Prediction Based on Improved GRU Neural Network,” Sensors, vol. 22, no. 22, pp. 815–827, 2022, doi: 10.3390/s22228678.

W. Li, H. Wu, N. Zhu, Y. Jiang, J. Tan, and Y. Guo, “Prediction of dissolved oxygen in a fishery pond based on gated recurrent unit (GRU),” Inf. Process. Agric., vol. 8, no. 1, pp. 185–193, 2021, doi: 10.1016/j.inpa.2020.02.002.

R. Cahuantzi, X. Chen, and S. Güttel, “A Comparison of LSTM and GRU Networks for Learning Symbolic Sequences,” Lect. Notes Networks Syst., vol. 739 LNNS, pp. 771–785, 2023, doi: 10.1007/978-3-031-37963-5_53.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel A Comparative Analysis of LSTM and GRU Models for AQI Forecasting in Tourist Destinations

Dimensions Badge
Article History
Submitted: 2025-01-06
Published: 2025-06-01
Abstract View: 458 times
PDF Download: 378 times
How to Cite
Ardianto, L., & Astuti, Y. (2025). A Comparative Analysis of LSTM and GRU Models for AQI Forecasting in Tourist Destinations. Building of Informatics, Technology and Science (BITS), 7(1), 75-83. https://doi.org/10.47065/bits.v7i1.6633
Section
Articles