Improving Air Quality Forecasts with LSTM and SHAP Explainability: A Case Study in Jakarta

Accurate air-quality forecasting is essential for public-health advisories in large tropical megacities such as Jakarta. This study develops an explainable deep-learning pipeline to predict Indonesia’s Air Pollution Standard Index (ISPU) at the DKI-5 station using daily data from 2017–2021. After handling missing values and integrating meteorological variables, all features were min–max normalized and framed with a lag window of five days. A stacked LSTM (128 and 64 units, dropout 0.2, Adam optimizer, MSE loss) was trained with an 80/20 train–test split. Model performance was assessed using MAE, RMSE, and R2R^2R2. To open the “black box,” SHAP was applied to quantify each feature’s contribution to the predictions. Results show stable convergence of training and validation losses and good generalization. The best configuration achieved MAE ≈ 7.96, RMSE ≈ 10.26, and R2≈ 0.52 on the test set. SHAP analysis indicates that PM10_lag1 is the most influential predictor, followed by wind speed (ff_avg_lag1), relative humidity (RH_avg_lag1), and average temperature (Tavg_lag1), confirming the joint role of recent pollutant levels and meteorology in driving ISPU variability. Compared with a previous LSTM configuration on the same site, the proposed model lowers RMSE by ≈25%, evidencing a more accurate and reliable ISPU forecast while providing transparent feature attributions. The proposed LSTM–SHAP framework offers an interpretable decision-support tool for air-quality management in Jakarta.

Institutions

Publication Details

Journal
Journal of Embedded Systems Security and Intelligent Systems
Published
2025-09-12
DOI
https://doi.org/10.59562/jessi.v6i3.9512
Primary Topic
Higher Education Research Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Improving Air Quality Forecasts with LSTM and SHAP Explainability: A Case Study in Jakarta

Journal of Embedded Systems Security and Intelligent Systems
Higher Education Research Studies
article

Improving Air Quality Forecasts with LSTM and SHAP Explainability: A Case Study in Jakarta

article en

Abstract

Accurate air-quality forecasting is essential for public-health advisories in large tropical megacities such as Jakarta. This study develops an explainable deep-learning pipeline to predict Indonesia’s Air Pollution Standard Index (ISPU) at the DKI-5 station using daily data from 2017–2021. After handling missing values and integrating meteorological variables, all features were min–max normalized and framed with a lag window of five days. A stacked LSTM (128 and 64 units, dropout 0.2, Adam optimizer, MSE loss) was trained with an 80/20 train–test split. Model performance was assessed using MAE, RMSE, and R2R^2R2. To open the “black box,” SHAP was applied to quantify each feature’s contribution to the predictions. Results show stable convergence of training and validation losses and good generalization. The best configuration achieved MAE ≈ 7.96, RMSE ≈ 10.26, and R2≈ 0.52 on the test set. SHAP analysis indicates that PM10_lag1 is the most influential predictor, followed by wind speed (ff_avg_lag1), relative humidity (RH_avg_lag1), and average temperature (Tavg_lag1), confirming the joint role of recent pollutant levels and meteorology in driving ISPU variability. Compared with a previous LSTM configuration on the same site, the proposed model lowers RMSE by ≈25%, evidencing a more accurate and reliable ISPU forecast while providing transparent feature attributions. The proposed LSTM–SHAP framework offers an interpretable decision-support tool for air-quality management in Jakarta.

Journal of Embedded Systems Security and Intelligent Systems
University of Pattimura (ID)
Openalex Percentile: Top 35%
Higher Education Research Studies
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.