Gold Prices Prediction using Univariate Long Short Term Memory Method

Authors

  • Gustian Aditama Universitas Brawijaya, Malang
  • Novanto Yudistira Universitas Brawijaya, Malang
  • Wayan Firdaus Mahmudy Universitas Brawijaya, Malang

DOI:

https://doi.org/10.25126/jitecs.2025102525

Abstract

Gold is one of the precious metals that serves various purposes beyond being a jewelry material. When it comes to gold, it is often associated with the economy. Before the existence of currency, humans used gold as the base material for coins as a medium of exchange. Currently, one of the commonly utilized functions of gold is as an investment asset. Due to its utility and high demand, the price of gold can fluctuate over time. This research aims to predict the price of gold using the Long Short Term Memory (LSTM) method. LSTM is a deep learning technique that performs well when applied to time series data. The performance of LSTM can be assessed using metrics such as Mean Absolute Percentage Error (MAPE) and Root Mean Squared Error (RMSE). Thus, this study proposes the prediction of gold prices using LSTM with an optimized architecture. In order to achieve it, testing is conducted based on sequence length and hidden size. The best results were achieved using Univariate LSTM with a sequence length of 25 and a hidden size of 150, that produce RMSE of 22.014 and MAPE of 1.133%.

Downloads

Download data is not yet available.

References

1. T. Jiang, "Economic Variables Affecting the Gold Price : The Partial Effects of Linear Models," 2020 2nd International Conference on Economic Management and Model Engineering (ICEMME), pp. 530-537, (2020), doi: 10.1109/ICEMME51517.2020.00112

2. Sugumonrong, D.P., Handinata, A. and Tehja, A., 2019. Prediksi Harga Emas Menggunakan Metode Fuzzy Time Series Model Algoritma Chen. Journal of Informatics Engineering Research and Technology, 1(1), (2019)

3. Sadorsky, P., Predicting gold and silver price direction using tree-based classifiers. Journal of Risk and Financial Management, 14(5), p.198, (2021)

4. Guntur, M., Santony, J. and Yuhandri, Y.. Prediksi harga emas dengan menggunakan metode Naïve Bayes dalam investasi untuk meminimalisasi resiko. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 2(1), pp.354-360, (2018)

5. Wang, P., Fan, E. and Wang, P., Comparative analysis of image classification algorithms based on traditional machine learning and deep learning. Pattern Recognition Letters, 141, pp.61-67, (2021)

6. Chung, H. and Shin, K., 2018. Genetic Algorithm-Optimized Long Short-Term Memory Network for Stock Market Prediction. Sustainability, [online] 10(10), p.3765., (2018) https://doi.org/10.3390/su10103765

7. Alfarisy, GAF, Mahmudy, WF, Natsir, MH , Good Parameters for PSO in Optimizing Laying Hen Diet, International Journal of Electrical and Computer Engineering, vol. 8, no. 4, pp. 2419-2432, (2018)

8. Selle, N., Yudistira, N. and Dewi, C., Perbandingan Prediksi Penggunaan Listrik dengan Menggunakan Metode Long Short Term Memory (LSTM) dan Recurrent Neural Network (RNN). Jurnal Teknologi Informasi dan Ilmu Komputer, 9(1), pp.155-162, (2022)

9. Rizkilloh, M.F. and Widiyanesti, S., Prediksi Harga Cryptocurrency Menggunakan Algoritma Long Short Term Memory (LSTM). Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 6(1), pp.25-31, (2022)

10. Wei, W. Time Analysis Univariate and Multivariate Methods, 2nd Edition. USA: Addison Wesley Publishing Company, Inc, 2006

11. Izati, N.A., Warsito, B. and Widiharih, T., Prediksi Harga Emas Menggunakan Feed Forward Neural Network Dengan Metode Extreme Learning Machine. Jurnal Gaussian, 8(2), pp.171-183, (2019)

12. Mahmudy, WF, Alfiyatin, AN, Ananda, CF, Widodo, AW, Inflation Rate Forecasting using Extreme Learning Machine and Improved Particle Swarm Optimization, International Journal of Intelligent Engineering and Systems, vol. 14, no. 6, pp. 95-104, (2021)

13. Arya, PB, Mahmudy, WF, Basuki, A, Website Visitors Forecasting using Recurrent Neural Network Method, Journal of Information Technology and Computer Science, vol. 6, no. 2, pp. 137–145, (2021)

14. Sugiartawan, P., Permana, A.A.J. and Prakoso, P.I., Forecasting Kunjungan Wisatawan Dengan Long Short Term Memory (LSTM). Jurnal Sistem Informasi dan Komputer Terapan Indonesia (JSIKTI), 1(1), pp.43-52.Broughton, J.M., 2002a. The Brettow Woods proposal: a brief look. Political Science Quarterly, 42(6), p.564, (2018)

15. Sen, J. and Mehtab, S., Long‐and‐Short‐Term Memory (LSTM)

NetworksArchitectures and Applications in Stock Price Prediction. Emerging Computing Paradigms: Principles, Advances and Applications, pp.143-160, (2022)

16. Alhirmizy, S. and Qader, B., March. Multivariate time series forecasting with LSTM for Madrid, Spain pollution. In 2019 international conference on computing and information science and technology and their applications (ICCISTA) (pp. 1-5), (2019)

17. Chang, P. C., Wang, Y. W. & Liu, C. H., The Development of A Weighted Evolving Fuzzy Neural Network for PCB Sales Forecasting. Expert Systems with Applications, Vol 32, No.1 : pp. 86-89, (2007)

18. K. Greff, R. K. Srivastava, J. Koutník, B. R. Steunebrink and J. Schmidhuber, "LSTM: A Search Space Odyssey," in IEEE Transactions on Neural Networks and Learning Systems, vol. 28, no. 10, pp. 2222-2232, 2017, doi: 10.1109/TNNLS.2016.2582924.

19. London Bullion Market Association. LBMA Gold Price. http://www.lbma.org.uk/lbmagold-price

20. Mahena, Y., Rusli, M. and Winarso, E., Prediksi Harga Emas Dunia Sebagai Pendukung Keputusan Investasi Saham Emas Menggunakan Teknik Data Mining. Kalbiscentia J. Sains dan Teknol, 2(1), pp.36-51.Brodjonegoro, A., 2009a. Dunia teknologi informasi bagi komunitas open source. Bandung: Bandung Indah Press, (2015)

21. Rizal, A.A. and Soraya, S., Multi Time Steps Prediction dengan Recurrent Neural Network Long Short Term Memory. MATRIK: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, 18(1), pp.115-124.Angriawan, B., 2014. Sistem pakar untuk penentuan kondisi tubuh ideal atlet sepakbola usia remaja. S1. Universitas Malang Raya, (2018)

22. Sautomo, S. and Pardede, H.F., Prediksi belanja pemerintah Indonesia menggunakan long short-term memory (LSTM). Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 5(1), pp.99-106, (2021)

23. Wang, X. and Zhang, Y., May. Multi-step-ahead time series prediction method with stacking LSTM neural network. In 2020 3rd International Conference on Artificial Intelligence and Big Data (ICAIBD) (pp. 51-55), (2020)

24. Wantono, S., Prediksi Penyelesaian Studi Mahasiswa Baru dengan Metode Fuzzy Tsukamoto (Study Kasus di Universitas Muhammadiyah Gresik) (Doctoral dissertation, Universitas Muhammadiyah Gresik), (2014)

25. Yu, Y., Si, X., Hu, C. and Zhang, J., A review of recurrent neural networks: LSTM cells and network architectures. Neural computation, 31(7), pp.1235-1270, (2019)

26. Yulianto, F, Mahmudy, Soebroto, AA, Comparison of Regression, Support Vector Regression (SVR), and SVR-Particle Swarm Optimization (PSO) for Rainfall Forecasting, Journal of Information Technology and Computer Science, vol. 5, no. 3, pp. 235-246, (2020)

27. K. Chen, Y. Zhou and F. Dai, "A LSTM-based method for stock returns prediction: A case study of China stock market," 2015 IEEE International Conference on Big Data (Big Data), Santa Clara, CA, USA, 2015, pp. 2823-2824, doi: 10.1109/BigData.2015.7364089.

Downloads

Published

2025-09-01

Issue

Section

Articles

How to Cite

Gold Prices Prediction using Univariate Long Short Term Memory Method. (2025). Journal of Information Technology and Computer Science, 10(2), 139-149. https://doi.org/10.25126/jitecs.2025102525