Application of stacked Transformer-XGBoost model and SHAP interpretability in air quality index prediction in Linfen City.
Jiafang Wei, Tianci Zhao, Rongsheng Wei, Xinjian Fan, Penghui Ji, Xiaohui Zhang
School of Civil Engineering and Hydraulic Engineering, Lanzhou University of Technology, Lanzhou, Gansu 730050, China. · School of Computer and Artificial Intelligence, Lanzhou University of Technology, Lanzhou, Gansu 730050, China.
Key points
From the paper's conclusion- This study proposes a stacked Transformer-XGBoost framework with Shapley Additive Explanations (SHAP) interpretability to improve Air Quality Index prediction in Linfen City, a heavily industrialized region characterized by complex pollution dynamics and strong seasonal variability.
Abstract
This study proposes a stacked Transformer-XGBoost framework with Shapley Additive Explanations (SHAP) interpretability to improve Air Quality Index prediction in Linfen City, a heavily industrialized region characterized by complex pollution dynamics and strong seasonal variability. The model combines Transformer-based temporal feature extraction with XGBoost nonlinear regression through a temporally consistent out-of-fold stacking strategy, enabling effective learning of sequential dependencies and pollutant-meteorology interactions. Using historical air quality and meteorological data from 2013 to 2024, the proposed framework achieved superior predictive performance (R2 = 0.955, RMSE = 9.05, MAE = 2.91), outperforming conventional machine learning and deep learning models. SHAP analysis revealed that PM2.5, NO2, lagged AQI, and seasonal temporal factors were the dominant drivers of AQI variation, highlighting the importance of pollution persistence and meteorological stagnation. The findings provide both an accurate forecasting framework and interpretable insights to support early warning systems, adaptive emission control, and sustainable urban air-quality management.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Deep learning-based AQI forecasting: a CNN-LSTM model with visual insights from SHAP-LIME and PDPDiscover Applied Sciences · 2025
- Ensemble learning for air quality index prediction: integrating gradient boosting, XGBoost, and stacking with SHAP-based interpretabilityScientific Reports · 2026
- An explainable hybrid stacked deep learning framework for forecasting PM10 concentrations in urban airExplora Environment and Resource · 2025
- Interpretable machine learning framework for air quality prediction in Istanbul using Shapley additive explanations (SHAP)Stochastic Environmental Research and Risk Assessment · 2026
- Factors influencing surface ozone concentrations in Wuhan: an interpretable machine learning analysis.Environmental monitoring and assessment · 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