Accurate air quality prediction is essential for air quality assessment, early warning, and effective air pollution management in rapidly urbanizing cities. This study evaluated the performance of conventional machine-learning and deep-learning models for Air Quality Index (AQI) prediction in Hanoi, Vietnam. A dataset comprising 8,784 observations collected during 2024–2025 was used, with 12 input variables including six meteorological parameters (temperature, relative humidity, atmospheric pressure, wind speed, wind direction, and rainfall) and six air pollutants (PM2.5, PM10, NO2, SO2, CO, and O₃). Six models—Linear Regression (LR), Support Vector Regression (SVR), Random Forest (RF), Extreme Gradient Boosting (XGBoost), Long Short-Term Memory (LSTM), and CNN–LSTM—were developed and evaluated using RMSE, MAE, and R2. Pearson correlation analysis showed that AQI was most strongly associated with PM2.5 (r = 0.97) and PM10 (r = 0.93), followed by CO (r = 0.75) and NO₂ (r = 0.61). Among the evaluated models, LR achieved the best predictive performance (RMSE = 5.274, MAE = 4.122, R2 = 0.963), followed by XGBoost (RMSE = 5.665, MAE = 4.484, R2 = 0.957) and RF (RMSE = 5.809, MAE = 4.582, R2 = 0.955). SVR showed moderate performance (RMSE = 11.101, MAE = 7.505, R2 = 0.836), whereas LSTM (RMSE = 20.630, MAE = 16.314, R2 = 0.439) and CNN–LSTM (RMSE = 21.739, MAE = 17.248, R2 = 0.377) performed substantially worse. These findings demonstrate that increasing model complexity does not necessarily improve predictive accuracy and highlight the importance of selecting forecasting algorithms according to the characteristics of the dataset and prediction framework. For the dataset examined, LR, XGBoost, and RF provided the most effective approaches for AQI prediction in Hanoi.
WHO Global Air Quality Guidelines: Particulate Matter (PM2.5 and PM10), Ozone, Nitrogen Dioxide, Sulfur Dioxide and Carbon Monoxide; World Health Organization: Geneva, Switzerland. (accessed on 1 June 2026) Available online: https://www.who.int/publications/i/item/9789240034228.
Horn, S.A.; Dasgupta, P.K. (2024). The Air Quality Index (AQI) in historical and analytical perspective: A tutorial review. Talanta, 267, 125260. https://doi.org/10.1016/j.talanta.2023.125260.
Nghiem, T.-D.; Nguyen, T.T.T.; Nguyen, T.T.H.; Ly, B.-T.; Sekiguchi, K.; Yamaguchi, R.; Pham, C.-T.; Ho, Q.B.; Nguyen, M.-T.; Duong, T.N. (2020). Chemical characterization and source apportionment of ambient nanoparticles: A case study in Hanoi, Vietnam. Environmental Science and Pollution Research, 27, 30661–30672. https://doi.org/10.1007/s11356-020-09417-5.
Ly, B.-T.; Kajii, Y.; Nguyen, T.-Y.-L.; Shoji, K.; Van, D.-A.; Do, T.-N.-N.; Nghiem, T.-D.; Sakamoto, Y. (2020). Characteristics of roadside volatile organic compounds in an urban area dominated by gasoline vehicles, a case study in Hanoi. Chemosphere, 254, 126749. https://doi.org/10.1016/j.chemosphere.2020.126749.
Tran, C.C.; Ta, T.D.; Duong, A.T.; Phan, O.T.K.; Nguyen, D.A. (2020). Analysis on temporal pattern of fine particulate matter (PM2.5) in Hanoi, Vietnam and the impact of meteorological conditions. Journal of Environmental Protection, 11, 246–256. https://doi.org/10.4236/jep.2020.113014.
Thanh, N.V.; Thuong Giang, P.; Thuy, N.T.T. (2026). Applications of artificial intelligence in environmental management in Vietnam: A mini review. Sustainable Environmental Insight, 3. https://doi.org/10.53623/sein.v3i1.1008.
Su, X.; Yan, X.; Tsai, C.L. (2012). Linear regression. WIREs Computational Statistics, 4, 275–294. https://doi.org/10.1002/wics.1198.
Awad, M.; Khanna, R. (2015). Support vector regression. In Efficient Learning Machines: Theories, Concepts, and Applications for Engineers and System Designers; Apress: Berkeley, CA, USA; pp. 67–80. https://doi.org/10.1007/978-1-4302-5990-9_4.
Salman, H.A.; Kalakech, A.; Steiti, A. (2024). Random forest algorithm overview. Babylonian Journal of Machine Learning, 2024, 69–79. https://doi.org/10.58496/BJML/2024/007.
Chen, T.; Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; ACM: New York, NY, USA; pp. 785–794. https://doi.org/10.1145/2939672.2939785.
Karmoude, M.; Munhungewarwa, B.; Chiraira, I.; McKenzie, R.; Kong, J.; Smith, B.; Ayana, G.; Njara, N.; Mathaha, T.; Kumar, M.; Mellado, B. (2025). Machine learning for air quality prediction and data analysis: Review on recent advancements, challenges, and outlooks. Science of the Total Environment, 1002, 180593. https://doi.org/10.1016/j.scitotenv.2025.180593.
Graves, A. (2012). Long short-term memory. In Supervised Sequence Labelling with Recurrent Neural Networks; Studies in Computational Intelligence, Volume 385; Springer: Berlin/Heidelberg, Germany; pp. 37–45. https://doi.org/10.1007/978-3-642-24797-2_4.
Zaini, N.A.; Ean, L.W.; Ahmed, A.N.; Malek, M.A. (2022). A systematic literature review of deep learning neural network for time series air quality forecasting. Environmental Science and Pollution Research, 29, 4958–4990. https://doi.org/10.1007/s11356-021-17442-1.
Zhang, J.; Li, S. (2022). Air quality index forecast in Beijing based on CNN-LSTM multi-model. Chemosphere, 308, 136180. https://doi.org/10.1016/j.chemosphere.2022.136180.
Ly, B.-T.; Matsumi, Y.; Vu, T.V.; Sekiguchi, K.; Nguyen, T.-T.; Pham, C.-T.; Nghiem, T.-D.; Ngo, I.-H.; Kurotsuchi, Y.; Nguyen, T.-H.; Nakayama, T. (2021). The effects of meteorological conditions and long-range transport on PM2.5 levels in Hanoi revealed from multi-site measurement using compact sensors and machine learning approach. Journal of Aerosol Science, 152, 105716. https://doi.org/10.1016/j.jaerosci.2020.105716.
Méndez, M.; Merayo, M.G.; Núñez, M. (2023). Machine learning algorithms to forecast air quality: A survey. Artificial Intelligence Review, 56, 10031–10066. https://doi.org/10.1007/s10462-023-10424-4.
Liu, X.; Guo, H. (2022). Air quality indicators and AQI prediction coupling long-short term memory (LSTM) and sparrow search algorithm (SSA): A case study of Shanghai. Atmospheric Pollution Research, 13, 101551. https://doi.org/10.1016/j.apr.2022.101551.
Pande, C.B.; Kushwaha, N.L.; Alawi, O.A.; Sammen, S.S.; Sidek, L.M.; Yaseen, Z.M.; Pal, S.C.; Katipoğlu, O.M. (2024). Daily scale air quality index forecasting using bidirectional recurrent neural networks: Case study of Delhi, India. Environmental Pollution, 351, 124040. https://doi.org/10.1016/j.envpol.2024.124040.
Chianese, E.; Riccio, A. (2026). Air-quality forecasting across monitoring, predictor, and validation regimes: A systematic mapping review and decision framework. Forecasting, 8, 72. https://doi.org/10.3390/forecast8040072.
Bhatt, D.; Goswami, S.; Verma, G.; Pandey, B.K. (2026). Air quality index prediction using machine learning and deep learning: A comparative analysis of Dehradun and Kashipur in Uttarakhand, India. Advances in Research, 27, 116–130. https://doi.org/10.9734/air/2026/v27i41661.
How is the AQI calculated? (accessed on 1 June 2026) Available online: https://www.epa.gov/outdoor-air-quality-data/how-aqi-calculated.
Chisilev, B.-I.; Pelican, E. (2026). Assessment of machine learning methods for urban air pollution forecasting. Stochastic Environmental Research and Risk Assessment, 40. https://doi.org/10.1007/s00477-026-03331-x.
Lawrence, S.; Bhathmanabhan, S. (2026). Harnessing deep learning for air pollution forecasting: Trends, techniques, and future prospects. Artificial Intelligence Review, 59. https://doi.org/10.1007/s10462-026-11496-8.
SUBMITTED: 28 August 2026
ACCEPTED: 02 November 2026
PUBLISHED:
14 November 2026
SUBMITTED to ACCEPTED: 66 days
DOI:
https://doi.org/10.53623/tebt.v4i2.1386