Abstrak
Gold price forecasting is challenging in the financial sector due to its volatile and nonlinear movements, which are influenced by various economic factors. This study aims to implement and optimize a Bidirectional Long Short-Term Memory (BiLSTM) model for forecasting weekly gold prices. The data used consist of weekly world gold closing prices from 2020 to 2024 obtained from Yahoo Finance. The data preprocessing stages include normalization using Min-Max Scaling, sliding window construction, and data splitting into training and testing sets. Model optimization was performed by evaluating combinations of hyperparameters, including the number of neurons, epochs, batch size, and dropout. Model performance was evaluated using Root Mean Squared Error (RMSE) and Mean Absolute Percentage Error (MAPE). The experimental results show that the optimal hyperparameter configuration achieved an RMSE of 83.99 and a MAPE of 2.41%. These results indicate that the BiLSTM model is capable of capturing the weekly gold price movement patterns in the dataset and can be used as an approach for deep learning-based price forecasting.
Referensi
Amini, A., & Kalantari, R. (2024). Gold price prediction by a CNN-Bi-LSTM model along with automatic parameter tuning. PLOS ONE, 19(3), e0298426. https://doi.org/10.1371/journal.pone.0298426
Amri, I. F., Astuti, S. A., Sulistiya, I., Suherdi, A., & Al Haris, M. (2024). Peramalan harga emas Antam menggunakan metode generalized autoregressive conditional heteroskedasticity (GARCH). UJMC (Unisda Journal of Mathematics and Computer Science), 10(1), 26–35. https://doi.org/10.52166/ujmc.v10i1.4679
Asikin, M. Z. (2025). Peran emas sebagai lindung nilai terhadap ketidakpastian pasar keuangan global. Hawalah: Kajian Ilmu Ekonomi Syariah, 3(3), 123–133. https://doi.org/10.57096/hawalah.v3i3.54
Dalimuthe, R. A., Adek, R. T., & Agusniar, C. (2024). Prediksi harga emas menggunakan algoritma long short-term memory (LSTM). Prosiding Seminar Nasional Teknologi dan Teknik Informatika (SENASTIKA), 1(1).
Kushariyadi, K., Apriyanto, H., Herdiana, Y., Asy’ari, F. H., Judijanto, L., Pasrun, Y. P., & Mardikawati, B. (2024). Artificial intelligence: Dinamika perkembangan AI beserta penerapannya. PT Sonpedia Publishing Indonesia.
Madhika, Y. R., Kusrini, K., & Hidayat, T. (2023). Gold price prediction using the ARIMA and LSTM models. Sinkron: Jurnal dan Penelitian Teknik Informatika, 8(3), 1255–1264. https://doi.org/10.33395/sinkron.v8i3.12461
Nurulhuda, E. S., & Kosasih, K. (2019). Pengaruh inflasi, kurs dolar AS, dan suku bunga (BI) terhadap penentuan harga emas. Kinerja, 2(2), 71–94. https://doi.org/10.34005/kinerja.v2i02.797
Sawitri, D. (2025). Peran deep learning dan big data dalam mendeteksi masalah keuangan. Djtechno: Jurnal Teknologi Informasi, 6(1), 193–207. https://doi.org/10.46576/djtechno.v6i1.6037
Widiputra, H., Mailangkay, A., & Gautama, E. (2021). Prediksi indeks BEI dengan ensemble convolutional neural network dan long short-term memory. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 5(3), 456–465. https://doi.org/10.29207/resti.v5i3.3111
Yahoo Finance. (2024). Gold futures (GC=F) historical data. Retrieved January 5, 2025, from https://finance.yahoo.com/quote/GC=F/history
Yurtsever, M. (2021). Gold price forecasting using LSTM, Bi-LSTM and GRU. Avrupa Bilim ve Teknoloji Dergisi, (31), 341–347. https://doi.org/10.31590/ejosat.959405

Artikel ini berlisensiCreative Commons Attribution-ShareAlike 4.0 International License.
Hak Cipta (c) 2026 Anggi Muammar Hanafi, Al-Khowarizmi Al-Khowarizmi