A hybrid LSTM-XGBoost model with residual correction for air quality prediction using SSA
Sergio Díaz, Maria Fernanda Carvalho de Camargo, JC Castiblanco, H. M. Sánchez, Johan S. Duque, Ella Cecilia Escandón Dussan, Omar F. Rojas-Moreno, Alejandra Baena
Universidad Antonio Nariño · Escuela Colombiana de Ingenieria Julio Garavito
Key points
From the paper's conclusion- These findings attest to the robustness and strong generalisability of the proposed framework for reliable PM $$_{\varvec{2.5}}$$ forecasting.
Abstract
Abstract Air pollution is a major contributor to respiratory and cardiovascular diseases, prompting recent studies to adopt AI models for forecasting pollutant levels. In this work, we introduce a hybrid framework—SSA-LSTM-XGBoost—that applies a residual-correction strategy in four stages: (i) data preprocessing, (ii) training an LSTM network optimised with the Sparrow Search Algorithm (SSA), (iii) modelling the residuals with an SSA-optimised XGBoost learner, and (iv) fusing both outputs to obtain the final prediction. The framework is assessed on test and out-of-sample datasets and benchmarked against SVR, BiGRU, random forest, BiLSTM, and GRU. On the test set, SSA-LSTM-XGBoost attains the highest accuracy, recording an R $$^{\varvec{2}}$$ of 0.9554 and the lowest errors (RMSE = 2.5194, MAE = 1.4885, MAPE = 0.0635), amounting to an average error reduction of roughly 8.2% relative to the runner-up SSA-SVR. When validated on unseen data, it remains superior (R $$^{\varvec{2}}$$ = 0.8830, RMSE = 2.4838), achieving an average error decrease of about 3.5% compared with SSA-SVR despite the harsher evaluation conditions. These findings attest to the robustness and strong generalisability of the proposed framework for reliable PM $$_{\varvec{2.5}}$$ forecasting. In practice, such forecasts enable near-real-time hotspot alerts, short-term exposure advisories for vulnerable groups, and preventive traffic or industrial controls, thereby supporting municipal air-quality management and policy decisions in Duitama.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Air Pollution Prediction Based on Stacked Deep Autoencoder Network ModelElectronics · 2026
- Designing a residual-enhanced hybrid Prophet–LSTM framework for urban air pollution forecasting in BeijingScientific Reports · 2025
- Air quality prediction model based on deep learning hybrid frameworkScientific Reports · 2026
- Semiparametric hybrid air quality forecasting using prophet ensemble and feature selection.Scientific reports · 2026
- Predictions of City-based Respiratory Hospital Visits: Developing and Validating a Machine Learning Model with a Novel Composite Air Pollution Index.Biomedical and environmental sciences : BES · 2026
- Air quality prediction using multi-source remote sensing data integration with hybrid deep learning frameworkScientific Reports · 2025