Journal of Embedded Systems, Security and Intelligent Systems
Vol 6, No 3 (2025): September 2025

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

Radjabaycolle, Jefri E. T. (Unknown)
Wattimena, Emanuella M C (Unknown)
Pattiradjawane, Victor Eric (Unknown)



Article Info

Publish Date
12 Sep 2025

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.

Copyrights © 2025






Journal Info

Abbrev

JESSI

Publisher

Subject

Computer Science & IT

Description

The Journal of Embedded System Security and Intelligent System (JESSI), ISSN/e-ISSN 2745-925X/2722-273X covers all topics of technology in the field of embedded system, computer and network security, and intelligence system as well as innovative and productive ideas related to emerging technology ...