IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0298426.html
   My bibliography  Save this article

Gold price prediction by a CNN-Bi-LSTM model along with automatic parameter tuning

Author

Listed:
  • Amirhossein Amini
  • Robab Kalantari

Abstract

Banking and stock markets consider gold to be an important component of their economic and financial status. There are various factors that influence the gold price trend and its fluctuations. Accurate and reliable prediction of the gold price is an essential part of financial and portfolio management. Moreover, it could provide insights about potential buy and sell points in order to prevent financial damages and reduce the risk of investment. In this paper, different architectures of deep neural network (DNN) have been proposed based on long short-term memory (LSTM) and convolutional-based neural networks (CNN) as a hybrid model, along with automatic parameter tuning to increase the accuracy, coefficient of determination, of the forecasting results. An illustrative dataset from the closing gold prices for 44 years, from 1978 to 2021, is provided to demonstrate the effectiveness and feasibility of this method. The grid search technique finds the optimal set of DNNs’ parameters. Furthermore, to assess the efficiency of DNN models, three statistical indices of RMSE, RMAE, and coefficient of determination (R2), were calculated for the test set. Results indicate that the proposed hybrid model (CNN-Bi-LSTM) outperforms other models in total bias, capturing extreme values and obtaining promising results. In this model, CNN is used to extract features of input dataset. Furthermore, Bi-LSTM uses CNN’s outputs to predict the daily closing gold price.

Suggested Citation

  • 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.
  • Handle: RePEc:plo:pone00:0298426
    DOI: 10.1371/journal.pone.0298426
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0298426
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0298426&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0298426?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
    ---><---

    References listed on IDEAS

    as
    1. Madziwa, Lawrence & Pillalamarry, Mallikarjun & Chatterjee, Snehamoy, 2022. "Gold price forecasting using multivariate stochastic model," Resources Policy, Elsevier, vol. 76(C).
    2. Wanbo Lu & Tingting Qiu & Wenhui Shi & Xiaojun Sun & Eric Campos, 2022. "International Gold Price Forecast Based on CEEMDAN and Support Vector Regression with Grey Wolf Algorithm," Complexity, Hindawi, vol. 2022, pages 1-12, December.
    3. Kulshrestha, Anurag & Krishnaswamy, Venkataraghavan & Sharma, Mayank, 2020. "Bayesian BILSTM approach for tourism demand forecasting," Annals of Tourism Research, Elsevier, vol. 83(C).
    4. Perry Sadorsky, 2021. "Predicting Gold and Silver Price Direction Using Tree-Based Classifiers," JRFM, MDPI, vol. 14(5), pages 1-21, April.
    5. Agga, Ali & Abbou, Ahmed & Labbadi, Moussa & El Houm, Yassine, 2021. "Short-term self consumption PV plant power production forecasts based on hybrid CNN-LSTM, ConvLSTM models," Renewable Energy, Elsevier, vol. 177(C), pages 101-112.
    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. Henriques, Irene & Sadorsky, Perry, 2023. "Forecasting rare earth stock prices with machine learning," Resources Policy, Elsevier, vol. 86(PA).
    2. Liu, Xingdou & Zhang, Li & Wang, Jiangong & Zhou, Yue & Gan, Wei, 2023. "A unified multi-step wind speed forecasting framework based on numerical weather prediction grids and wind farm monitoring data," Renewable Energy, Elsevier, vol. 211(C), pages 948-963.
    3. 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).
    4. Liao, Zhouyi & Coimbra, Carlos F.M., 2024. "Hybrid solar irradiance nowcasting and forecasting with the SCOPE method and convolutional neural networks," Renewable Energy, Elsevier, vol. 232(C).
    5. Neethu Elizabeth Michael & Manohar Mishra & Shazia Hasan & Ahmed Al-Durra, 2022. "Short-Term Solar Power Predicting Model Based on Multi-Step CNN Stacked LSTM Technique," Energies, MDPI, vol. 15(6), pages 1-20, March.
    6. Zheng, Lingwei & Su, Ran & Sun, Xinyu & Guo, Siqi, 2023. "Historical PV-output characteristic extraction based weather-type classification strategy and its forecasting method for the day-ahead prediction of PV output," Energy, Elsevier, vol. 271(C).
    7. Negri, Simone & Giani, Federico & Blasuttigh, Nicola & Massi Pavan, Alessandro & Mellit, Adel & Tironi, Enrico, 2022. "Combined model predictive control and ANN-based forecasters for jointly acting renewable self-consumers: An environmental and economical evaluation," Renewable Energy, Elsevier, vol. 198(C), pages 440-454.
    8. Xue-Bo Jin & Wen-Tao Gong & Jian-Lei Kong & Yu-Ting Bai & Ting-Li Su, 2022. "PFVAE: A Planar Flow-Based Variational Auto-Encoder Prediction Model for Time Series Data," Mathematics, MDPI, vol. 10(4), pages 1-17, February.
    9. Li, Xuan & Zhang, Wei, 2022. "Physics-informed deep learning model in wind turbine response prediction," Renewable Energy, Elsevier, vol. 185(C), pages 932-944.
    10. Bingzi Jin & Xiaojie Xu, 2025. "Machine learning price index forecasts of flat steel products," Mineral Economics, Springer;Raw Materials Group (RMG);Luleå University of Technology, vol. 38(1), pages 97-117, March.
    11. Shi, Tao & Li, Chongyang & Zhang, Wei & Zhang, Yi, 2023. "Forecasting on metal resource spot settlement price: New evidence from the machine learning model," Resources Policy, Elsevier, vol. 81(C).
    12. Dounia El Bourakadi & Hiba Ramadan & Ali Yahyaouy & Jaouad Boumhidi, 2023. "A robust energy management approach in two-steps ahead using deep learning BiLSTM prediction model and type-2 fuzzy decision-making controller," Fuzzy Optimization and Decision Making, Springer, vol. 22(4), pages 645-667, December.
    13. Belqasem Aljafari & Siva Rama Krishna Madeti & Priya Ranjan Satpathy & Sudhakar Babu Thanikanti & Bamidele Victor Ayodele, 2022. "Automatic Monitoring System for Online Module-Level Fault Detection in Grid-Tied Photovoltaic Plants," Energies, MDPI, vol. 15(20), pages 1-28, October.
    14. Mirza, Adeel Feroz & Mansoor, Majad & Usman, Muhammad & Ling, Qiang, 2023. "A comprehensive approach for PV wind forecasting by using a hyperparameter tuned GCVCNN-MRNN deep learning model," Energy, Elsevier, vol. 283(C).
    15. Robert Basmadjian & Amirhossein Shaafieyoun, 2023. "Assessing ARIMA-Based Forecasts for the Percentage of Renewables in Germany: Insights and Lessons for the Future," Energies, MDPI, vol. 16(16), pages 1-19, August.
    16. Dušan P. Nikezić & Uzahir R. Ramadani & Dušan S. Radivojević & Ivan M. Lazović & Nikola S. Mirkov, 2022. "Deep Learning Model for Global Spatio-Temporal Image Prediction," Mathematics, MDPI, vol. 10(18), pages 1-15, September.
    17. Huang, Songtao & Zhou, Qingguo & Shen, Jun & Zhou, Heng & Yong, Binbin, 2024. "Multistage spatio-temporal attention network based on NODE for short-term PV power forecasting," Energy, Elsevier, vol. 290(C).
    18. Emrah Kocak & Fevzi Okumus & Mehmet Altin, 2023. "Global pandemic uncertainty, pandemic discussion and visitor behaviour: A comparative tourism demand estimation for the US," Tourism Economics, , vol. 29(5), pages 1225-1250, August.
    19. Ding, Jiaqi & Zhao, Pu & Liu, Changjun & Wang, Xiaofang & Xie, Rong & Liu, Haitao, 2024. "From irregular to continuous: The deep Koopman model for time series forecasting of energy equipment," Applied Energy, Elsevier, vol. 364(C).
    20. Hu, Yusha & Man, Yi, 2023. "Energy consumption and carbon emissions forecasting for industrial processes: Status, challenges and perspectives," Renewable and Sustainable Energy Reviews, Elsevier, vol. 182(C).

    More about this item

    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:plo:pone00:0298426. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.