A Comparative Analysis of the Long Short-Term Memory (LSTM) and Prophet Models in Gold Price Forecasting Using Time Series Data

Authors

DOI:

https://doi.org/10.35870/ijmsit.v6i2.8762

Keywords:

Gold Price Forecasting, Long Short-Term Memory, Prophet Model, Time Series Analysis, PT Antam

Abstract

Gold price forecasting is crucial for investors in mitigating financial risk, particularly due to high market volatility. This study aims to evaluate and compare the performance of two distinct time series modeling approaches, representing additive statistical models. The research utilizes 4,733 daily closing price recods of PT Aneka Tambang Tbk (ANTAM) gols spanning from Januari 4, 2010, to November 20, 2025 partitioned into an 80:20 chronological ratio for training (3,786 days) and testing (947 days) sets. Unlike previos studies that included lag features, this paper evaluates both models in a pure univariate setup using only dates and prices to reflect their true intrinsic forecasting capabilities. Models were configured through systematic hyperparameter tuning: LSTM utilized a 90-day window size, 128 units, a single layer with 0,2 Dropout, and Adam optimizer with a learning rate of 0.001, evaluated via a one-step wal-forward scheme. Prophet was configured with a linear growth, multiplicative seasonality, and a changepoint prior scale of 0,8. Evaluation metrics demonstrate that LSTM significantly outperforms Prophet across all metrics, achieving a Mean Absolute Error (MAE) of Rp15,038, Root Mean Square Error (RMSE) of Rp23,637, and Mean Absolute Percentage Error (MAPE) of 0.89%, compared to Prophet’s MAE of Rp130,982, RMSE of Rp174,014, and MAPE of 8.62%. The findings indicate that LSTM’s dynamic memory cell mechanism is superior in adapting to non-linear market trends, offering valuable technological insights for automated commodity decision-support systems.

Downloads

Download data is not yet available.

Author Biographies

  • Faqih Rifaldy, Universitas Islam Negeri Sumatera Utara

    Computer Science Study Program, Faculty of Science and Technology, Universitas Islam Negeri Sumatera Utara, Deli Serdang Regency, North Sumatra Province, Indonesia

  • Reza Ade Putra, Universitas Islam Negeri Sumatera Utara

    Computer Science Study Program, Faculty of Science and Technology, Universitas Islam Negeri Sumatera Utara, Deli Serdang Regency, North Sumatra Province, Indonesia

References

Dalimunthe, R. A., Adek, R. T., & Agusniar, C. (2025). Gold Price Prediction Using Long-Short Term Memory Algorithm Based on Web Application. International Journal of Engineering Science. 5.1 (2024): 329-339. https://doi.org/10.52088/ijesty.v5i1.724

Michel. (2024). Perbandingan Metode Prophet dan Long Short-Term Memory (LSTM) Dalam Peramalan Kualitas Udara (Studi Kasus Kualitas Udara Kota Bandar Lampung). Universitas Lampung.

Muzakki, M. A., Sabila, M. A., Sundari, S., Wisnuadhi, B., & Kunci, K. (2021). Analisis Algoritma Prophet untuk Memprediksi Harga Pangan di Kota Bandung. In Prosiding Industrial Research Workshop and National Seminar (Vol. 12, pp. 659-664).

Primawati, A. (2025). Analisis tren dan prediksi harga emas menggunakan Prophet dan Long Short-Term Memory (LSTM). Simetris: Jurnal Teknik Mesin, Industri, Elektro dan Ilmu Komputer, 16(2). https://doi.org/10.24176/simet.v16i2.15580

Putra, M. A., & Andryana, S. (2025). Perbandingan Algoritma ARIMA dan LSTM Dalam Peramalan Tingkat Konsentrasi CO2 Emisi Atmosfer Untuk Masa Mendatang. JATI (Jurnal Mahasiswa Teknik Informatika), 9(3), 4150-4157. https://doi.org/10.36040/jati.v9i3.13511

Sagala, J. P., & Dewi, E. T. (2023). Analisis Peramalan Harga Emas Antam Menggunakan ARIMA. In Seminar Nasional Teknologi Informasi dan Matematika (SEMIOTIKA) (Vol. 2, No. 1, pp. 77-84).

Siagian, R. R. A. (2025). Persepsi Masyarakat Indonesia Terhadap Kenaikan Harga Emas Sebagai Instrumen Investasi Jangka Panjang: Sebuah Tinjauan Literatur. Future Academia: The Journal of Multidisciplinary Research on Scientific and Advanced, 3(1), 72–79. https://doi.org/10.61579/future.v3i1.298

Simamora, J. P., Martha, S., & Andani, W. (2024). Penerapan algoritma prophet pada peramalan harga saham. Equator: Journal of Mathematical and Statistical Sciences, 3(2), 94-101.

Sunani, A., Fahim, A., & Sahliyah, F. (2025). Pengaruh Pendapatan, Fluktuasi Harga Emas, dan Persepsi Emas Terhadap Minat Investasi Perhiasan Emas: (Studi pada Pembelian Perhiasan Emas di Toko Bintang Mas Ujungpangkah). (2025). Al-Maqashid: Journal of Economics and Islamic Business, 6(02), 9-20. https://doi.org/10.55352/maqashid.v6i02.2093

Yustiana, I., Khoerunisa, S., & Thohir, M. I. (2026). Gold Price Prediction Based on Long Short-Term Memory (LSTM) For Investment Decision-Making. Jurnal Media Computer Science, 5(1), 413-428. https://doi.org/10.37676/jmcs.v5i1.9233

Downloads

Published

2026-10-13

How to Cite

Rifaldy, F., & Putra, R. A. (2026). A Comparative Analysis of the Long Short-Term Memory (LSTM) and Prophet Models in Gold Price Forecasting Using Time Series Data. International Journal of Management Science and Information Technology, 6(2), 2801-2810. https://doi.org/10.35870/ijmsit.v6i2.8762