IDEAS home Printed from https://ideas.repec.org/a/spr/minecn/v38y2025i4d10.1007_s13563-025-00520-y.html

Forecasting Gold and Platinum prices with an enhanced GRU model using multi-headed attention and skip connection

Author

Listed:
  • Bilal Ahmed Memon

    (Westminster International University in Tashkent, School of Business and Economics)

  • Rabia Tahir

    (Department of Information Technologies – Software, Tashkent University of Information Technologies named after Muhammad al-Khwarizmi)

  • Hafiz Muhammad Naveed

    (Shenzhen University, College of Management)

  • Keyang Cheng

    (Jiangsu University, School of Computer Science and Communication Engineering)

Abstract

Metal price prediction is a critical task for policymakers, financial analysts and investors because of its significant impact on global markets and economies. This study investigates the effects of precious metal prices including gold and platinum with a multivariate model. In this work, we propose a novel multi-headed attention based GRU with skip connection (MA-GRUS) for metal price prediction. It consists of various steps including data preprocessing, model building, training, evaluation and visualization. The Gated Recurrent Unit (GRU) model is built with a multi-layer architecture to find temporal dependencies while multi-headed attention mechanisms along with skip connection are used to improve the model’s ability to find relevant and significant information. We evaluate the efficiency of the proposed model with the help of Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), R2 and training time providing a comprehensive assessment of its predictive accuracy. The obtained results show that the proposed model outperformed over Long Short-Term Memory (LSTM), Recurrent Neural Network (RNN), GRU, Bi-directional GRU, and attention based GRU in terms of prediction accuracy and error rate. The performance of GRU is enhanced with the help of multi-headed attention mechanism and skip connection. The model is simpler to implement and performs rapid training because of its simple architecture and layers details. It contributes to the field of time series forecasting by leveraging powerful efficiency of GRU to capture complex patterns in financial data.

Suggested Citation

  • Bilal Ahmed Memon & Rabia Tahir & Hafiz Muhammad Naveed & Keyang Cheng, 2025. "Forecasting Gold and Platinum prices with an enhanced GRU model using multi-headed attention and skip connection," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 38(4), pages 891-910, December.
  • Handle: RePEc:spr:minecn:v:38:y:2025:i:4:d:10.1007_s13563-025-00520-y
    DOI: 10.1007/s13563-025-00520-y
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s13563-025-00520-y
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s13563-025-00520-y?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Kuan-Min Wang & Thanh-Binh Nguyen Thi & Yuan-Ming Lee, 2021. "Is gold a safe haven for the dynamic risk of foreign exchange?," Future Business Journal, Springer, vol. 7(1), pages 1-17, December.
    2. Akhtaruzzaman, Md & Boubaker, Sabri & Lucey, Brian M. & Sensoy, Ahmet, 2021. "Is gold a hedge or a safe-haven asset in the COVID–19 crisis?," Economic Modelling, Elsevier, vol. 102(C).
    3. Mahla Nikou & Gholamreza Mansourfar & Jamshid Bagherzadeh, 2019. "Stock price prediction using DEEP learning algorithm and its comparison with machine learning algorithms," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 26(4), pages 164-174, October.
    4. Andrew Ang & Allan Timmermann, 2012. "Regime Changes and Financial Markets," Annual Review of Financial Economics, Annual Reviews, vol. 4(1), pages 313-337, October.
    5. Parbat, Debanjan & Chakraborty, Monisha, 2020. "A python based support vector regression model for prediction of COVID19 cases in India," Chaos, Solitons & Fractals, Elsevier, vol. 138(C).
    6. Vieira, Duarte Saldanha & Carvalho, Paulo Viegas de & Curto, José Dias & Laureano, Luís, 2023. "Gold's hedging and safe haven properties for European stock and bond markets," Resources Policy, Elsevier, vol. 85(PA).
    7. He, Kaijian & Chen, Yanhui & Tso, Geoffrey K.F., 2017. "Price forecasting in the precious metal market: A multivariate EMD denoising approach," Resources Policy, Elsevier, vol. 54(C), pages 9-24.
    8. Xingyu Zhou & Zhisong Pan & Guyu Hu & Siqi Tang & Cheng Zhao, 2018. "Stock Market Prediction on High-Frequency Data Using Generative Adversarial Nets," Mathematical Problems in Engineering, Hindawi, vol. 2018, pages 1-11, April.
    9. Lin, Yu & Liao, Qidong & Lin, Zixiao & Tan, Bin & Yu, Yuanyuan, 2022. "A novel hybrid model integrating modified ensemble empirical mode decomposition and LSTM neural network for multi-step precious metal prices prediction," Resources Policy, Elsevier, vol. 78(C).
    10. Liu, Chang & Hu, Zhenhua & Li, Yan & Liu, Shaojun, 2017. "Forecasting copper prices by decision tree learning," Resources Policy, Elsevier, vol. 52(C), pages 427-434.
    11. Lin, Yu & Lu, Qin & Tan, Bin & Yu, Yuanyuan, 2022. "Forecasting energy prices using a novel hybrid model with variational mode decomposition," Energy, Elsevier, vol. 246(C).
    12. Demiralay, Sercan & Ulusoy, Veysel, 2014. "Non-linear volatility dynamics and risk management of precious metals," The North American Journal of Economics and Finance, Elsevier, vol. 30(C), pages 183-202.
    13. Ozdemir, Ali Can & Buluş, Kurtuluş & Zor, Kasım, 2022. "Medium- to long-term nickel price forecasting using LSTM and GRU networks," Resources Policy, Elsevier, vol. 78(C).
    14. Sinem Guler Kangalli Uyar & Umut Uyar & Emrah Balkan, 2024. "Fundamental predictors of price bubbles in precious metals: a machine learning analysis," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 37(1), pages 65-87, March.
    15. Amirhossein Amini & Robab Kalantari, 2024. "Gold price prediction by a CNN-Bi-LSTM model along with automatic parameter tuning," PLOS ONE, Public Library of Science, vol. 19(3), pages 1-17, March.
    16. Bingzi Jin & Xiaojie Xu, 2025. "Machine learning platinum price predictions," The Engineering Economist, Taylor & Francis Journals, vol. 70(1-2), pages 30-56, April.
    17. Wenjie Lu & Jiazheng Li & Yifan Li & Aijun Sun & Jingyang Wang, 2020. "A CNN-LSTM-Based Model to Forecast Stock Prices," Complexity, Hindawi, vol. 2020, pages 1-10, November.
    18. Li, Yelin & Bu, Hui & Li, Jiahong & Wu, Junjie, 2020. "The role of text-extracted investor sentiment in Chinese stock price prediction with the enhancement of deep learning," International Journal of Forecasting, Elsevier, vol. 36(4), pages 1541-1562.
    19. Hammoudeh, Shawkat M. & Yuan, Yuan & McAleer, Michael & Thompson, Mark A., 2010. "Precious metals-exchange rate volatility transmissions and hedging strategies," International Review of Economics & Finance, Elsevier, vol. 19(4), pages 633-647, October.
    20. Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
    21. Yao HongXing & Hafiz Muhammad Naveed & Bilal Ahmed Memon & Shoaib Ali & Muhammad Haris & Muhammad Akhtar & Muhammad Mohsin, 2024. "Connectedness between Currency Risk Hedging and Firm Value: A Deep Neural Network-based Evaluation," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 599-638, February.
    22. Jiaying Liu & Bin Liu, 2023. "Commodity Pricing and Replenishment Decision Strategy Based on the Seasonal ARIMA Model," Mathematics, MDPI, vol. 11(24), pages 1-14, December.
    23. Saâdaoui, Foued & Rabbouch, Hana, 2024. "Financial forecasting improvement with LSTM-ARFIMA hybrid models and non-Gaussian distributions," Technological Forecasting and Social Change, Elsevier, vol. 206(C).
    24. Parviz Sohrabi & Behshad Jodeiri Shokri & Hesam Dehghani, 2023. "Predicting coal price using time series methods and combination of radial basis function (RBF) neural network with time series," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 36(2), pages 207-216, June.
    25. Zexin Hu & Yiqi Zhao & Matloob Khushi, 2021. "A Survey of Forex and Stock Price Prediction Using Deep Learning," Papers 2103.09750, arXiv.org.
    26. Yang Yujun & Yang Yimei & Xiao Jianhua, 2020. "A Hybrid Prediction Method for Stock Price Using LSTM and Ensemble EMD," Complexity, Hindawi, vol. 2020, pages 1-16, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Cheng Zhang & Nilam Nur Amir Sjarif & Roslina Ibrahim, 2023. "Deep learning models for price forecasting of financial time series: A review of recent advancements: 2020-2022," Papers 2305.04811, arXiv.org, revised Sep 2023.
    2. Zhou, Jianguo & Xu, Zhongtian, 2023. "A novel three-stage hybrid learning paradigm based on a multi-decomposition strategy, optimized relevance vector machine, and error correction for multi-step forecasting of precious metal prices," Resources Policy, Elsevier, vol. 80(C).
    3. Khalifa, Ahmed A.A. & Otranto, Edoardo & Hammoudeh, Shawkat & Ramchander, Sanjay, 2016. "Volatility transmission across currencies and commodities with US uncertainty measures," The North American Journal of Economics and Finance, Elsevier, vol. 37(C), pages 63-83.
    4. Bingzi Jin & Xiaojie Xu, 2026. "Machine learning wholesale white wheat price index forecasts," Quality & Quantity: International Journal of Methodology, Springer, vol. 60(1), pages 277-305, February.
    5. Yuze Lu & Hailong Zhang & Qiwen Guo, 2023. "Stock and market index prediction using Informer network," Papers 2305.14382, arXiv.org.
    6. Qin Lu & Jingwen Liao & Kechi Chen & Yanhui Liang & Yu Lin, 2024. "Predicting Natural Gas Prices Based on a Novel Hybrid Model with Variational Mode Decomposition," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 639-678, February.
    7. Bao, Dun, 2020. "Dynamics and correlation of platinum-group metals spot prices," Resources Policy, Elsevier, vol. 68(C).
    8. Jiawei Wang & Zhen Chen, 2024. "Factor-GAN: Enhancing stock price prediction and factor investment with Generative Adversarial Networks," PLOS ONE, Public Library of Science, vol. 19(6), pages 1-26, June.
    9. Yang, Jiahao & Fang, Ran & Zhang, Ming & Zhang, Wenkai & Zhou, Jun, 2025. "Enhancing stock ranking forecasting by modeling returns with heteroscedastic Gaussian Distribution," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 664(C).
    10. Karanasos, Menelaos & Menla Ali, Faek & Margaronis, Zannis & Nath, Rajat, 2018. "Modelling time varying volatility spillovers and conditional correlations across commodity metal futures," International Review of Financial Analysis, Elsevier, vol. 57(C), pages 246-256.
    11. Al-Yahyaee, Khamis Hamed & Mensi, Walid & Maitra, Debasish & Al-Jarrah, Idries Mohammad Wanas, 2019. "Portfolio management and dependencies among precious metal markets: Evidence from a Copula quantile-on-quantile approach," Resources Policy, Elsevier, vol. 64(C).
    12. Gong, Jue & Wang, Gang-Jin & Zhou, Yang & Xie, Chi, 2025. "Cross-market volatility forecasting with attention-based spatial–temporal graph convolutional networks," Journal of Empirical Finance, Elsevier, vol. 83(C).
    13. Dutta, Anupam, 2018. "A note on the implied volatility spillovers between gold and silver markets," Resources Policy, Elsevier, vol. 55(C), pages 192-195.
    14. Balcilar, Mehmet & Ozdemir, Zeynel Abidin, 2019. "The volatility effect on precious metals price returns in a stochastic volatility in mean model with time-varying parameters," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 534(C).
    15. Chkili, Walid & Ben Rejeb, Aymen & Arfaoui, Mongi, 2021. "Does bitcoin provide hedge to Islamic stock markets for pre- and during COVID-19 outbreak? A comparative analysis with gold," Resources Policy, Elsevier, vol. 74(C).
    16. He, Zhichao & Huang, Jianhua, 2023. "A novel non-ferrous metal price hybrid forecasting model based on data preprocessing and error correction," Resources Policy, Elsevier, vol. 86(PB).
    17. Pincheira Brown, Pablo & Hardy, Nicolás, 2019. "Forecasting base metal prices with the Chilean exchange rate," Resources Policy, Elsevier, vol. 62(C), pages 256-281.
    18. Vigne, Samuel A. & Lucey, Brian M. & O’Connor, Fergal A. & Yarovaya, Larisa, 2017. "The financial economics of white precious metals — A survey," International Review of Financial Analysis, Elsevier, vol. 52(C), pages 292-308.
    19. Li, Wei & Zhang, Junchao & Cao, Xiangye & Han, Wei, 2024. "Is the prediction of precious metal market volatility influenced by internet searches regarding uncertainty?," Finance Research Letters, Elsevier, vol. 62(PB).
    20. Du, Pei & Wang, Jianzhou & Yang, Wendong & Niu, Tong, 2020. "Point and interval forecasting for metal prices based on variational mode decomposition and an optimized outlier-robust extreme learning machine," Resources Policy, Elsevier, vol. 69(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:minecn:v:38:y:2025:i:4:d:10.1007_s13563-025-00520-y. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.