Short-Term and Long-Term Forecasting of Global Gold Prices Using LSTM and GRU Models

Fitria Fitria, Muhammad Syahid Pebriadi, Nitami Lestari Putri

Abstract


Global gold prices exhibit high volatility and complex temporal patterns, making accurate forecasting a challenging task. This study aims to compare the performance of deep learning models for short-term and long-term gold price prediction using daily historical data. Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) were selected because both models can capture temporal dependencies in financial time-series data, while having different architectural complexities and learning characteristics. Comparing these models is important to identify the most suitable approach for different forecasting horizons. The dataset consists of daily global gold prices denominated in USD obtained from an open financial data source covering the period from 2010 to 2024. The models were evaluated under two forecasting horizons, namely short-term prediction (1 day ahead) and long-term prediction (30 days ahead). Model performance was assessed using Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE). Experimental results indicate that the GRU model outperforms LSTM in short-term forecasting by producing lower prediction errors, while LSTM demonstrates slightly better stability in long-term forecasting. These findings suggest that the effectiveness of deep learning models for gold price prediction is highly dependent on the forecasting horizon.

Keywords


Gold price prediction; LSTM; GRU; Time series forecasting; Deep learning

Full Text:

PDF

References


Y. Wang and T. Lin, “A Novel Deterministic Probabilistic Forecasting Framework for Gold Price With a New Pandemic Index Based on Quantile Regression Deep Learning and Multi-Objective Optimization,” 2023. doi: 10.3390/math12010029.

D. Makala and Z. Li, “Prediction of Gold Price With ARIMA and SVM,” 2021. doi: 10.1088/1742-6596/1767/1/012022.

Z. Su, “Gold Price Forecast Based on ARIMA and ETS Models,” 2024. doi: 10.54254/2754-1169/2024.ga18972.

S. Duman, S. Turnacıgil, E. Arık, and M. A. Aktaş, “The Role of International Variables in Predicting Gold Prices: Analysis With Machine Learning Algorithms,” 2025. doi: 10.17233/sosyoekonomi.2025.01.05.

M. Madhavan, M. A. Sharafuddin, P. Piboonrungroj, and C. Yang, “Short-Term Forecasting for Airline Industry: The Case of Indian Air Passenger and Air Cargo,” 2020. doi: 10.1177/0972150920923316.

B. M. Pavlyshenko, “Forecasting of Non-Stationary Sales Time Series Using Deep Learning,” 2022. doi: 10.48550/arxiv.2205.11636.

P.-F. Dai, X. Xiong, and W.-X. Zhou, “The Role of Global Economic Policy Uncertainty in Predicting Crude Oil Futures Volatility: Evidence From a Two-Factor GARCH-MIDAS Model,” 2020. doi: 10.48550/arxiv.2007.12838.

G. Qiao, W. Cui, Y. Zhou, and C. Liang, “Volatility of Volatility and VIX Forecasting: New Evidence Based on Jumps, the Short‐Term and Long‐Term Volatility,” 2024. doi: 10.1002/fut.22553.

A. A. Salisu, R. Gupta, and R. Demirer, “Global Financial Cycle and the Predictability of Oil Market Volatility: Evidence From a GARCH-MIDAS Model,” 2022. doi: 10.1016/j.eneco.2022.105934.

T. M. Hospedales, A. Antoniou, P. Micaelli, and A. Storkey, “Meta-Learning in Neural Networks: A Survey,” 2021. doi: 10.1109/tpami.2021.3079209.

H. Xiao, “Enhanced Separation of Long-Term Memory From Short-Term Memory on Top of LSTM: Neural Network-Based Stock Index Forecasting,” 2025. doi: 10.1371/journal.pone.0322737.

K. Sako, B. N. Mpinda, and P. C. Rodrigues, “Neural Networks for Financial Time Series Forecasting,” 2022. doi: 10.3390/e24050657.

M. Elsaraiti and A. Merabet, “A Comparative Analysis of the ARIMA and LSTM Predictive Models and Their Effectiveness for Predicting Wind Speed,” 2021. doi: 10.3390/en14206782.

D. F. Godoy-Rojas et al., “Attention-Based Deep Recurrent Neural Network to Forecast the Temperature Behavior of an Electric Arc Furnace Side-Wall,” 2022. doi: 10.3390/s22041418.

C. Li, L. Shen, and G. Qian, “Online Hybrid Neural Network for Stock Price Prediction: A Case Study of High-Frequency Stock Trading in the Chinese Market,” 2023. doi: 10.3390/econometrics11020013.

M. E. Karim, M. M. S. Maswood, S. Das, and A. G. Alharbi, “BHyPreC: A Novel Bi-LSTM Based Hybrid Recurrent Neural Network Model to Predict the CPU Workload of Cloud Virtual Machine,” 2021. doi: 10.1109/access.2021.3113714.

A. Lawi, H. Mesra, and S. Amir, “Implementation of Long Short-Term Memory and Gated Recurrent Units on Grouped Time-Series Data to Predict Stock Prices Accurately,” 2022. doi: 10.1186/s40537-022-00597-0.

M. Qin et al., “Deep Learning for Multi‐Timescales Pacific Decadal Oscillation Forecasting,” 2022. doi: 10.1029/2021gl096479.

M. J. Hamayel and A. Y. Owda, “A Novel Cryptocurrency Price Prediction Model Using GRU, LSTM and Bi-LSTM Machine Learning Algorithms,” 2021. doi: 10.3390/ai2040030.

S. Tanwar, N. Patel, S. Patel, J. R. Patel, G. Sharma, and I. E. Davidson, “Deep Learning-Based Cryptocurrency Price Prediction Scheme With Inter-Dependent Relations,” 2021. doi: 10.1109/access.2021.3117848.




DOI: https://doi.org/10.31326/jisa.v9i1.2723

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Fitria Fitria, Muhammad Syahid Pebriadi, Nitami Lestari Putri

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


JOURNAL IDENTITY

Journal Name: JISA (Jurnal Informatika dan Sains)
e-ISSN: 2614-8404, p-ISSN: 2776-3234
Publisher: Program Studi Teknik Informatika Universitas Trilogi
Publication Schedule: June and December 
Language: English
APC: The Journal Charges Fees for Publishing 
IndexingEBSCODOAJGoogle ScholarArsip Relawan Jurnal IndonesiaDirectory of Research Journals Indexing, Index Copernicus International, PKP IndexScience and Technology Index (SINTA, S4) , Garuda Index
OAI addresshttp://trilogi.ac.id/journal/ks/index.php/JISA/oai
Contactjisa@trilogi.ac.id
Sponsored by: DOI – Digital Object Identifier Crossref, Universitas Trilogi

In Collaboration With: Indonesian Artificial Intelligent Ecosystem(IAIE), Relawan Jurnal IndonesiaJurnal Teknologi dan Sistem Komputer (JTSiskom)

 

 


JISA (Jurnal Informatika dan Sains) is Published by Program Studi Teknik Informatika, Universitas Trilogi under Creative Commons Attribution-ShareAlike 4.0 International License.