PREDIKSI HARGA EMAS MENGGUNAKAN ALGORITMA LONG SHORT TERM MEMORY (LSTM) & GATED RECURRENT UNIT (GRU)

Authors

  • Zana Vania Hendra Teknik Informatika, Fakultas Ilmu Komputer, Universitas Muhammadiyah Riau
  • Monica Alya Ramadhani Teknik Informatika, Fakultas Ilmu Komputer, Universitas Muhammadiyah Riau
  • Indri Chintya Teknik Informatika, Fakultas Ilmu Komputer, Universitas Muhammadiyah Riau
  • Yuvi Rahmatullah Teknik Informatika, Fakultas Ilmu Komputer, Universitas Muhammadiyah Riau
  • Edi Ismanto Pendidikan Informatika, Fakultas Keguruan Dan Ilmu Pendidikan, Universitas Muhammadiyah Riau

DOI:

https://doi.org/10.37859/seis.v6i1.9809
Keywords: Gold Price Prediction, GRU, LSTM, Time Series, Model Evaluation

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

Download data is not yet available.

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

2026-01-31

How to Cite

Hendra, Z. V. ., Ramadhani, M. A. ., Chintya, I., Rahmatullah, Y., & Ismanto, E. (2026). PREDIKSI HARGA EMAS MENGGUNAKAN ALGORITMA LONG SHORT TERM MEMORY (LSTM) & GATED RECURRENT UNIT (GRU). Journal of Software Engineering and Information System (SEIS), 6(1), 31–37. https://doi.org/10.37859/seis.v6i1.9809

Issue

Section

Articles