Comparative Analysis of LSTM-Based Models for Daily Gold Price Forecasting Using Time Series and Sentiment Features
DOI:
https://doi.org/10.26905/jtmi.v12i1.16309Keywords:
Gold price forecasting, LSTM, Prophet, Sentiment analysis, Time Series PredictionAbstract
This study examines the performance of three forecasting approaches for predicting daily gold prices: a Pure Long Short-Term Memory (LSTM) model, a Hybrid LSTM + Prophet model, and an LSTM model enhanced with sentiment features. Daily price data from 2013 to 2023 were used, and all evaluation metrics were computed on inverse-transformed values to ensure accurate interpretation. The Pure LSTM model shows strong predictive capability, achieving a testing RMSE of 17.4500, MAE of 12.9924, R2 of 0.9431, and a MAPE of 0.72%. The Hybrid LSTM + Prophet model performs considerably worse on unseen data, with a testing RMSE of 71.6272 and an R2 close to zero, indicating that Prophet’s decomposition is unsuitable for highly volatile price movements. The LSTM + Sentiment model provides the best overall performance, with a testing RMSE of 17.2769, MAE of 12.5515, R2 of 0.9442, and a MAPE of 0.70%, showing modest but consistent improvement over the baseline LSTM. These findings highlight the suitability of LSTM-based models for non-seasonal financial time series and demonstrate that sentiment can contribute additional predictive value.
Downloads
References
[1] D. Makala and Z. Li, “Prediction of gold price with ARIMA and SVM,” J. Phys. Conf. Ser., vol. 1767, no. 1, 2021, doi: 10.1088/1742-6596/1767/1/012022.
[2] J. Chai, C. Zhao, Y. Hu, and Z. G. Zhang, “Structural analysis and forecast of gold price returns,” J. Manag. Sci. Eng., vol. 6, no. 2, pp. 135–145, 2021, doi: 10.1016/j.jmse.2021.02.011.
[3] S. Setyowibowo, M. As’ad, S. Sujito, and E. Farida, “Forecasting of Daily Gold Price using ARIMA-GARCH Hybrid Model,” J. Ekon. Pembang., vol. 19, no. 2, pp. 257–270, 2022, doi: 10.29259/jep.v19i2.13903.
[4] N. Tripurana, B. Kar, S. Chakravarty, B. K. Paikaray, and S. Satpathy, “Gold Price Prediction Using Machine Learning Techniques,” CEUR Workshop Proc., vol. 3283, pp. 274–281, 2021, doi: 10.54097/gdm0kc53.
[5] Y. F. Wijaya and A. Triayudi, “Penerapan Data Mining Pada Prediksi Harga Emas dengan Menggunakan Algoritma Regresi Linear Berganda dan ARIMA,” J. Comput. Syst. Informatics, vol. 5, no. 1, pp. 73–81, 2023, doi: 10.47065/josyc.v5i1.4615.
[6] R. A. Dalimuthe, R. T. Adek, and C. Agusniar, “Prediksi Harga Emas Menggunakan Algoritma Long Short-Term Memory (Lstm),” SENASTIKA Univ. Malikussaleh PREDIKSI, pp. 1–10, 2024.
[7] F. Fauzi, S. Aulia, A. R. Syaifullah, and T. W. Utami, “Peramalan Harga Emas Menggunakan Pendekatan Long-Short Term Memory (LSTM),” J. Edukasi dan Penelit. Inform., vol. 10, no. 2, p. 252, 2024, doi: 10.26418/jp.v10i2.78332.
[8] M. Owen, V. Vincent, R. Br Ambarita, and E. Indra, “Implementasi Metode Long Short Term Memory Untuk Memprediksi Pergerakan Nilai Harga Emas,” J. Tek. Inf. dan Komput., vol. 5, no. 1, p. 96, 2022, doi: 10.37600/tekinkom.v5i1.507.
[9] K. A. Rijal, A. V. Vitianingsih, Y. Kristyawan, and A. Lidya, “Jurnal Teknologi dan Manajemen Informatika Forecasting Model of Indonesia ’ s Oil & Gas and Non-Oil & Gas Export Value using Var and LSTM Methods,” vol. 10, no. 1, pp. 59–69, 2024.
[10] A. Amini and R. Kalantari, “Gold price prediction by a CNN-Bi-LSTM model along with automatic parameter tuning,” PLoS One, vol. 19, no. 3 March, pp. 1–17, 2024, doi: 10.1371/journal.pone.0298426.
[11] A. D. Arisandi, L. Atika, Ferdiansyah, E. S. Negara, and K. R. N. Wardani, “Prediksi Mata Uang Bitcoin Menggunakan LSTM dan Analisis Sentimen pada Sosial Media Pendahuluan Metode Penelitian,” J. Ilm. KOMPUTASI, vol. 19, no. 4, pp. 1–9, 2020.
[12] M. Beck et al., “xLSTM: Extended Long Short-Term Memory,” Adv. Neural Inf. Process. Syst., vol. 37, no. NeurIPS, pp. 1–57, 2024.
[13] A. Fernando Pratama et al., “Implementasi Analisis Sentimen dan Model Deep Learning untuk Prediksi Harga Bitcoin,” J. Jupiter, vol. 15 No. 1, pp. 403–412, 2023.
[14] B. Taylor, S. J.Letham, “Forecasting at Scale,” Am. Stat., vol. 72, no. 1, pp. 37–45, 2018, doi: 10.1080/00031305.2017.1380080.
[15] A. Primawati, I. S. Sitanggang, A. Annisa, and D. A. Astuti, “Perbandingan Kinerja LSTM dan Prophet untuk Prediksi Deret Waktu (Studi Kasus Produksi Susu Sapi Harian),” J. Edukasi dan Penelit. Inform., vol. 9, no. 3, p. 428, 2023, doi: 10.26418/jp.v9i3.72031.
[16] D. Rizkya, H. Roosaputri, and C. Dewi, “Perbandingan Algoritma ARIMA , Prophet , dan LSTM dalam Prediksi Penjualan Tiket Wisata Taman Hiburan ( Studi Kasus : Saloka Theme Park ),” vol. 4, no. 3, pp. 507–517, 2023.
[17] G. Jun-gang, “EasyChair Preprint Time-Series Prediction Research Based on Combined Prophet-LSTM Models,” 2023, [Online]. Available: https://easychair.org/publications/preprint/42PsG%0A
[18] M. Costola, O. Hinz, M. Nofer, and L. Pelizzon, “Machine learning sentiment analysis, COVID-19 news and stock market reactions,” Res. Int. Bus. Financ., vol. 64, p. 101881, 2023, doi: 10.1016/j.ribaf.2023.101881.
[19] Christophorus Bintang Saputra and D. P. Koesrindartoto, “Pemanfaatan Analisis Sentimen Youtube untuk Prediksi Harga Saham: Studi pada Investor Retail Indonesia,” J. Manaj., vol. 21, no. 1, pp. 1–17, 2024, doi: 10.25170/jm.v21i1.5184.
[20] S. Darvishan, S. Heidari, and M. Zarei, “Investigating the Impact of Investor Sentiment and Volatility on Investment Behavior in the Gold Market,” J. Accounting, Financ. Econ. Sci., vol. 4, no. 4, pp. 136–143, 2024, doi: 10.61186/jafes.4.4.136.
[21] F. Nekouei, “Gold Price Prediction LSTM 96% Accuracy.” Kaggle, 2022. [Online]. Available: https://www.kaggle.com/code/farzadnekouei/gold-price-prediction-lstm-96-accuracy/notebook#Step-12:-Visualizing-Results
[22] A. Sinha, “Sentiment Analysis of Commodity News (Gold),” 2022. [Online]. Available: https://www.kaggle.com/datasets/ankurzing/sentiment-analysis-in-commodity-market-gold/data
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
(1)Â Copyright of the published articles will be transferred to the journal as the publisher of the manuscripts. Therefore, the author confirms that the copyright has been managed by the journal.
(2) Publisher of JTMI: Jurnal Teknologi dan Manajemen Informatika is University of Merdeka Malang.
(3) The copyright follows Creative Commons Attribution–ShareAlike License (CC BY SA): This license allows to Share — copy and redistribute the material in any medium or format, Adapt — remix, transform, and build upon the material, for any purpose, even commercially.