Optimizing deep learning techniques with stacking BiLSTM and BIGRU models for gold price prediction
Open Access
- 30 September 2025
- journal article
- Published by Politechnika Lubelska in Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska
- Vol. 15 (3) , 123-130
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.Keywords
This publication has 20 references indexed in Scilit:
- Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020–2022WIREs Data Mining and Knowledge Discovery, 2023
- Forecasting gold price using machine learning methodologiesChaos, Solitons & Fractals, 2023
- Deep Heuristic Evolutionary Regression Model Based on the Fusion of BiGRU and BiLSTMCognitive Computation, 2023
- A Comparative Study of non-deep Learning, Deep Learning, and Ensemble Learning Methods for Sunspot Number PredictionApplied Artificial Intelligence, 2022
- Prediction in Traffic Accident Duration Based on Heterogeneous Ensemble LearningApplied Artificial Intelligence, 2022
- A novel ensemble deep learning model for stock prediction based on stock prices and newsInternational Journal of Data Science and Analytics, 2021
- Financial time series forecasting with deep learning : A systematic literature review: 2005–2019Applied Soft Computing, 2020
- A CNN–LSTM model for gold price time-series forecastingNeural Computing and Applications, 2020
- Random Forests with R2020
- Bidirectional recurrent neural networksIEEE Transactions on Signal Processing, 1997