Building of Informatics, Technology and Science
Vol 8 No 2 (2026): September 2026

Model Hibrida PSO-LSTM dan Interpretasi SHAP untuk Peramalan Harga Emas Domestik Multivariat

Fajar Arafat (Universitas PGRI Semarang, Semarang)
Nugroho Dwi Saputro (Universitas PGRI Semarang, Semarang)
Aris Tri Joko Harjanto (Universitas PGRI Semarang, Semarang)



Article Info

Publish Date
27 Sep 2026

Abstract

Forecasting volatile domestic gold prices requires a predictive model that is not only accurate but also transparent. Although the Long Short-Term Memory (LSTM) architecture excels at capturing temporal dependencies in time-series data, its performance is highly sensitive to hyperparameter tuning and suffers from a black-box nature. To overcome the limitations of manual optimization and lack of transparency, this study proposes a hybrid multivariate PSO-LSTM forecasting model integrated with the SHapley Additive exPlanations (SHAP) method. Built upon the CRISP-DM framework using daily historical data from 2020 to 2026, the Particle Swarm Optimization (PSO) algorithm is employed to automatically optimize the number of neurons, learning rate, and batch size. Furthermore, the SHAP method with K-Means background reduction is applied to map the contribution of input features. Experimental results demonstrate that the PSO-LSTM model outperforms the baseline LSTM by reducing Root Mean Squared Error (RMSE) by 11.70% and Mean Absolute Error (MAE) by 14.08%, while achieving a highly accurate Mean Absolute Percentage Error (MAPE) of 2.62%. Statistical testing using the Diebold-Mariano test confirms that the predictive superiority of the PSO-LSTM model is statistically significant. SHAP analysis indicates that historical memory of domestic gold prices provides the highest marginal contribution to model predictions, followed by USD/IDR exchange rate adjustments and global gold price sentiment. Overall, this study contributes an integrated financial modeling framework that not only enhances accuracy on highly volatile data but also provides rational feature interpretability as a foundation for hedging decisions by investors and policymakers.

Copyrights © 2026






Journal Info

Abbrev

bits

Publisher

Subject

Computer Science & IT

Description

Building of Informatics, Technology and Science (BITS) is an open access media in publishing scientific articles that contain the results of research in information technology and computers. Paper that enters this journal will be checked for plagiarism and peer-rewiew first to maintain its quality. ...