OPTIMIZING DEEP LEARNING TECHNIQUES WITH STACKING BILSTM AND BIGRU MODELS FOR GOLD PRICE PREDICTION; [OPTYMALIZACJA TECHNIK GŁĘBOKIEGO UCZENIA SIĘ POPRZEZ ŁĄCZENIE MODELI BILSTM I BIGRU DO PRZEWIDYWANIA CEN ZŁOTA]

Open

Iqbal Kharisudin, Nike Yustina Oktaviani

2025 Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Srodowiska Vol. 15 Issue 3 Article Cited by 2 Quartile

Abstract

Gold, essential in various sectors from jewelry to financial reserves, plays a crucial role as a financial asset and investment. Accurate prediction of gold prices is vital for informed investment decisions and economic management. This study utilizes a Stacking Ensemble approach to enhance gold price prediction accuracy by combining Bidirectional Long Short-Term Memory (BiLSTM) and Bidirectional Gated Recurrent Unit (BiGRU) as base learners, with Random Forest serving as the meta-learner. This method capitalizes on BiLSTM and BiGRU’s strengths in processing sequential data in both directions, capturing intricate patterns in gold price fluctuations. The dataset spans from January 1, 2020, to May 31, 2024. The results reveal that the Stacking Ensemble model with BiLSTM-BiGRU consistently outperforms other models, achieving the lowest Mean Squared Error (MSE) of 0.000, Root Mean Squared Error (RMSE) of 0.0067, Mean Absolute Error (MAE) of 0.0050, Mean Absolute Percentage Error (MAPE) of 0.0083, and a high R-squared value of 0.9984 across various lookback periods (7, 15, and 30 days). These metrics underscore the method’s effectiveness in accurately capturing and predicting gold price trends. This confirms that the Stacking Ensemble approach significantly enhances gold price prediction accuracy. © 2025, Politechnika Lubelska. All rights reserved.

Affiliations

Universitas Negeri Semarang, Department of Statistics and Data Science, Semarang, Indonesia; Universitas Negeri Semarang, Department of Mathematics, Semarang, Indonesia