Cross-City AQI Forecasting Under Distribution Shift: Leakage-Free Leave-One-City-Out Evaluation with Residual LSTM

Accurate forecasting is an arduous challenge because of the non-linear and dynamic behavior of atmospheric pollutants in many urban environments. Most previous research reports high predictive performance; however, much of this research uses either random splits between training and test data or city-specific evaluations which do not adequately assess the ability to generalize out of sample. This study uses a Leave-One-City-Out (LOCO) evaluation method to develop a deep learning-based temporal learning model with Residual Long Short-Term Memory (LSTM) network for predicting cross-city AQI. The framework incorporates PM2.5, PM10, NOx-related gases, CO, SO2, O3 and volatile compounds to model temporal AQI dynamics across multiple cities. It employs a residual prediction mechanism to improve temporal stability. Multi-horizon forecasting performance from 1-hour to 6-hours ahead is also evaluated. All preprocessing and normalization are conducted solely on training cities to maintain methodological rigor by avoiding data leakage during cross-city evaluation. The proposed Residual LSTM model is validated against several baseline and deep learning techniques like Linear Regression, Random Forest, Transformer-based forecasting with scaled residuals and LSTM using attention mechanisms. Experimental results show that proposed Residual LSTM outperforms the competing models in terms of cross-city generalization and predictive robustness against growing forecasting horizons. The results further reveal that accuracy in forecasting tends to decrease as the prediction horizon increases — which can be expected, as accumulated uncertainty is growing with longer time horizons. The final model is able to maintain consistent predictive capability throughout a larger range of forecast periods. This indicates that the spatial generalization to other cities that were unobserved during training will hold up well when tested with the LOCO protocol. In addition to testing for spatial generalization, the model would also need to be evaluated over time frames outside of those used for training if it were to be deployed as an operational early warning system.

Authors

Institutions

Publication Details

Journal
Mesopotamian Journal of Big Data
Published
2026-11-27
DOI
https://doi.org/10.68212/2958-6453.1090
Primary Topic
Air Quality Monitoring and Forecasting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Cross-City AQI Forecasting Under Distribution Shift: Leakage-Free Leave-One-City-Out Evaluation with Residual LSTM

Ayad A. Al-Ani, Halah F. Oleiwi
Mesopotamian Journal of Big Data
Air Quality Monitoring and Forecasting
article

Cross-City AQI Forecasting Under Distribution Shift: Leakage-Free Leave-One-City-Out Evaluation with Residual LSTM

Ayad A. Al-Ani, Halah F. Oleiwi
article en

Abstract

Accurate forecasting is an arduous challenge because of the non-linear and dynamic behavior of atmospheric pollutants in many urban environments. Most previous research reports high predictive performance; however, much of this research uses either random splits between training and test data or city-specific evaluations which do not adequately assess the ability to generalize out of sample. This study uses a Leave-One-City-Out (LOCO) evaluation method to develop a deep learning-based temporal learning model with Residual Long Short-Term Memory (LSTM) network for predicting cross-city AQI. The framework incorporates PM2.5, PM10, NOx-related gases, CO, SO2, O3 and volatile compounds to model temporal AQI dynamics across multiple cities. It employs a residual prediction mechanism to improve temporal stability. Multi-horizon forecasting performance from 1-hour to 6-hours ahead is also evaluated. All preprocessing and normalization are conducted solely on training cities to maintain methodological rigor by avoiding data leakage during cross-city evaluation. The proposed Residual LSTM model is validated against several baseline and deep learning techniques like Linear Regression, Random Forest, Transformer-based forecasting with scaled residuals and LSTM using attention mechanisms. Experimental results show that proposed Residual LSTM outperforms the competing models in terms of cross-city generalization and predictive robustness against growing forecasting horizons. The results further reveal that accuracy in forecasting tends to decrease as the prediction horizon increases — which can be expected, as accumulated uncertainty is growing with longer time horizons. The final model is able to maintain consistent predictive capability throughout a larger range of forecast periods. This indicates that the spatial generalization to other cities that were unobserved during training will hold up well when tested with the LOCO protocol. In addition to testing for spatial generalization, the model would also need to be evaluated over time frames outside of those used for training if it were to be deployed as an operational early warning system.

Mesopotamian Journal of Big DataVol. 6(1)
Nahrain University (IQ)
Air Quality Monitoring and Forecasting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon