PREDIKSI HARGA EMAS MENGGUNAKAN ALGORITMA LONG SHORT TERM MEMORY (LSTM) & GATED RECURRENT UNIT (GRU)
DOI:
https://doi.org/10.37859/seis.v6i1.9809
Abstract
Gold is an asset that has a hedge against inflation and global economic volatility, making it interesting to analyze as an investment instrument. This study aims to compare the performance of Long Short Term Memory (LSTM) and Gated Recurrent Unit (GRU) models in predicting gold prices using historical data from 2013 to 2022. The data used includes daily gold prices and goes through a preprocessing stage before being divided into training (80%) and testing (20%) data. LSTM and GRU models were trained with epoch and batch size variations, then evaluated using MAE, RMSE, MSE, and MAPE metrics. The results showed that the GRU model with 50 epochs performed best, with MAE 0.0145, RMSE 0.0186, MSE 0.0003, and MAPE 1.9209%, better than LSTM which produced higher errors. The residual graph also shows that GRU produces stable predictions with a random error distribution that is close to zero. These findings confirm that GRU is more accurate and efficient in modeling gold price time series, and has the potential to be implemented in artificial intelligence-based commodity price prediction systems.
Downloads
References
Alkahfi, I., & Chiuloto, K. (2021). Penerapan Model Gated Recurrent Unit Pada Masa Pandemi Covid-19 Dalam Melakukan Prediksi Harga Emas Dengan Menggunakan Model Pengukuran Mean Square Error. Prosiding SNASTIKOM: Seminar Nasional Teknologi Informasi & Komunikasi, 225–232.
Bidang, P., Sains, K., Informatika, P., Putro, S., Hermawan, A., & Avianto, D. (2023). Prediksi Harga Emas Menggunakan Algoritma Long Short-Term Memory (LSTM) dan Linear Regression (LR). Jurnal Edik Informatika, 9(2), 76–86. http://dx.doi.org/10.22202/ei.2023.v9i2.6990
Dalimuthe, R. A., Adek, R. T., & Agusniar, C. (2024). Prediksi Harga Emas Menggunakan Algoritma Long Short-Term Memory (Lstm). SENASTIKA Universitas Malikussaleh PREDIKSI, 1–10.
Fauzi, F., Aulia, S., Syaifullah, A. R., & Utami, T. W. (2024). Peramalan Harga Emas Menggunakan Pendekatan Long-Short Term Memory (LSTM). Jurnal Edukasi Dan Penelitian Informatika (JEPIN), 10(2), 252. https://doi.org/10.26418/jp.v10i2.78332
Husaini, F., Permana, I., Afdal, M., & Salisah, F. N. (2024). Penerapan Algoritma Long Short-Term Memory untuk Prediksi Produksi Kelapa Sawit. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(2), 366–374. https://doi.org/10.57152/malcom.v4i2.1187
Julian, R., & Pribadi, M. R. (2021). Peramalan Harga Saham Pertambangan Pada Bursa Efek Indonesia (BEI) Menggunakan Long Short Term Memory (LSTM). JATISI (Jurnal Teknik Informatika Dan Sistem Informasi), 8(3), 1570–1580. https://doi.org/10.35957/jatisi.v8i3.1159
Lasijan, T. G., Santoso, R., & Hakim, A. R. (2023). Prediksi Harga Emas Dunia Menggunakan Metode Long-Short Term Memory. Jurnal Gaussian, 12(2), 287–295. https://doi.org/10.14710/j.gauss.12.2.287-295
Marwondo, M., & Hidayah, T. (2023). Perbandingan Algoritma Long Short-Term Memory (LSTM) dan Gated Recurrent Unit (GRU) Untuk Prediksi Harga Emas Dunia. In Search, 21(2), 230–239. https://doi.org/10.37278/insearch.v21i2.600
Sudiatmika, I. P. G. A., Putra, I. M. A. W., & Artana, W. W. (2024). The Implementation of Gated Recurrent Unit (GRU) for Gold Price Prediction Using Yahoo Finance Data: A Case Study and Analysis. Brilliance: Research of Artificial Intelligence, 4(1), 176–184. https://doi.org/10.47709/brilliance.v4i1.3865
Tholib, A., Agusmawati, N. K., & Khoiriyah, F. (2023). Prediksi Harga Emas Menggunakan Metode Lstm Dan Gru. Jurnal Informatika Dan Teknik Elektro Terapan, 11(3), 620–627. https://doi.org/10.23960/jitet.v11i3.3250
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Zana Vania Hendra, Monica Alya Ramadhani, Indri Chintya, Yuvi Rahmatullah, Edi Ismanto

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
An author who publishes in the Journal of Software Engineering and Information System (SEIS) agrees to the following terms:
- Author retains the copyright and grants the journal the right of first publication of the work simultaneously licensed under the Creative Commons Attribution-ShareAlike 4.0 License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal
- Author is able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book) with the acknowledgement of its initial publication in this journal.
- Author is permitted and encouraged to post his/her work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of the published work (See The Effect of Open Access).
Read more about the Creative Commons Attribution-ShareAlike 4.0 Licence here: https://creativecommons.org/licenses/by-sa/4.0/.






