IDEAS home Printed from https://ideas.repec.org/a/spr/fininn/v10y2024i1d10.1186_s40854-024-00637-z.html
   My bibliography  Save this article

Deep learning systems for forecasting the prices of crude oil and precious metals

Author

Listed:
  • Parisa Foroutan

    (Concordia University)

  • Salim Lahmiri

    (Concordia University)

Abstract

Commodity markets, such as crude oil and precious metals, play a strategic role in the economic development of nations, with crude oil prices influencing geopolitical relations and the global economy. Moreover, gold and silver are argued to hedge the stock and cryptocurrency markets during market downsides. Therefore, accurate forecasting of crude oil and precious metals prices is critical. Nevertheless, due to the nonlinear nature, substantial fluctuations, and irregular cycles of crude oil and precious metals, predicting their prices is a challenging task. Our study contributes to the commodity market price forecasting literature by implementing and comparing advanced deep-learning models. We address this gap by including silver alongside gold in our analysis, offering a more comprehensive understanding of the precious metal markets. This research expands existing knowledge and provides valuable insights into predicting commodity prices. In this study, we implemented 16 deep- and machine-learning models to forecast the daily price of the West Texas Intermediate (WTI), Brent, gold, and silver markets. The employed deep-learning models are long short-term memory (LSTM), BiLSTM, gated recurrent unit (GRU), bidirectional gated recurrent units (BiGRU), T2V-BiLSTM, T2V-BiGRU, convolutional neural networks (CNN), CNN-BiLSTM, CNN-BiGRU, temporal convolutional network (TCN), TCN-BiLSTM, and TCN-BiGRU. We compared the forecasting performance of deep-learning models with the baseline random forest, LightGBM, support vector regression, and k-nearest neighborhood models using mean absolute error (MAE), mean absolute percentage error, and root mean squared error as evaluation criteria. By considering different sliding window lengths, we examine the forecasting performance of our models. Our results reveal that the TCN model outperforms the others for WTI, Brent, and silver, achieving the lowest MAE values of 1.444, 1.295, and 0.346, respectively. The BiGRU model performs best for gold, with an MAE of 15.188 using a 30-day input sequence. Furthermore, LightGBM exhibits comparable performance to TCN and is the best-performing machine-learning model overall. These findings are critical for investors, policymakers, mining companies, and governmental agencies to effectively anticipate market trends, mitigate risk, manage uncertainty, and make timely decisions and strategies regarding crude oil, gold, and silver markets.

Suggested Citation

  • Parisa Foroutan & Salim Lahmiri, 2024. "Deep learning systems for forecasting the prices of crude oil and precious metals," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-40, December.
  • Handle: RePEc:spr:fininn:v:10:y:2024:i:1:d:10.1186_s40854-024-00637-z
    DOI: 10.1186/s40854-024-00637-z
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1186/s40854-024-00637-z
    File Function: Abstract
    Download Restriction: no

    File URL: https://libkey.io/10.1186/s40854-024-00637-z?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. Reboredo, Juan C., 2013. "Is gold a safe haven or a hedge for the US dollar? Implications for risk management," Journal of Banking & Finance, Elsevier, vol. 37(8), pages 2665-2676.
    2. Chung Baek, 2019. "How are gold returns related to stock or bond returns in the U.S. market? Evidence from the past 10-year gold market," Applied Economics, Taylor & Francis Journals, vol. 51(50), pages 5490-5497, October.
    3. Phan, Dinh Hoang Bach & Sharma, Susan Sunila & Narayan, Paresh Kumar, 2016. "Intraday volatility interaction between the crude oil and equity markets," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 40(C), pages 1-13.
    4. Zhao, Yang & Li, Jianping & Yu, Lean, 2017. "A deep learning ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 66(C), pages 9-16.
    5. Xiuzhen, Xie & Zheng, Wenxiu & Umair, Muhammad, 2022. "Testing the fluctuations of oil resource price volatility: A hurdle for economic recovery," Resources Policy, Elsevier, vol. 79(C).
    6. Li, Xuerong & Shang, Wei & Wang, Shouyang, 2019. "Text-based crude oil price forecasting: A deep learning approach," International Journal of Forecasting, Elsevier, vol. 35(4), pages 1548-1560.
    7. Lahmiri, Salim & Bekiros, Stelios, 2020. "Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market," Chaos, Solitons & Fractals, Elsevier, vol. 133(C).
    8. Dylan Norbert Gono & Herlina Napitupulu & Firdaniza, 2023. "Silver Price Forecasting Using Extreme Gradient Boosting (XGBoost) Method," Mathematics, MDPI, vol. 11(18), pages 1-15, September.
    9. 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.
    10. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    11. Kou, Gang & Yüksel, Serhat & Dinçer, Hasan, 2022. "Inventive problem-solving map of innovative carbon emission strategies for solar energy-based transportation investment projects," Applied Energy, Elsevier, vol. 311(C).
    12. Tim Pullen & Karen Benson & Robert Faff, 2014. "A Comparative Analysis of the Investment Characteristics of Alternative Gold Assets," Abacus, Accounting Foundation, University of Sydney, vol. 50(1), pages 76-92, March.
    13. Liang, Xuedong & Luo, Peng & Li, Xiaoyan & Wang, Xia & Shu, Lingli, 2023. "Crude oil price prediction using deep reinforcement learning," Resources Policy, Elsevier, vol. 81(C).
    14. Junttila, Juha & Pesonen, Juho & Raatikainen, Juhani, 2018. "Commodity market based hedging against stock market risk in times of financial crisis: The case of crude oil and gold," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 56(C), pages 255-280.
    15. Fang, Tianhui & Zheng, Chunling & Wang, Donghua, 2023. "Forecasting the crude oil prices with an EMD-ISBM-FNN model," Energy, Elsevier, vol. 263(PA).
    16. Tang, Ling & Zhang, Chengyuan & Li, Ling & Wang, Shouyang, 2020. "A multi-scale method for forecasting oil price with multi-factor search engine data," Applied Energy, Elsevier, vol. 257(C).
    17. Swamy, Vighneswara & Lagesh, M.A., 2023. "Does happy Twitter forecast gold price?," Resources Policy, Elsevier, vol. 81(C).
    18. Bai, Yun & Li, Xixi & Yu, Hao & Jia, Suling, 2022. "Crude oil price forecasting incorporating news text," International Journal of Forecasting, Elsevier, vol. 38(1), pages 367-383.
    19. Sarwar, Suleman & Shahbaz, Muhammad & Anwar, Awais & Tiwari, Aviral Kumar, 2019. "The importance of oil assets for portfolio optimization: The analysis of firm level stocks," Energy Economics, Elsevier, vol. 78(C), pages 217-234.
    20. Lutao Zhao & Lei Cheng & Yongtao Wan & Hao Zhang & Zhigang Zhang, 2015. "A VAR-SVM model for crude oil price forecasting," International Journal of Global Energy Issues, Inderscience Enterprises Ltd, vol. 38(1/2/3), pages 126-144.
    21. Zhao, Lu-Tao & Wang, Yi & Guo, Shi-Qiu & Zeng, Guan-Rong, 2018. "A novel method based on numerical fitting for oil price trend forecasting," Applied Energy, Elsevier, vol. 220(C), pages 154-163.
    22. Lahmiri, Salim & Bekiros, Stelios, 2019. "Cryptocurrency forecasting with deep learning chaotic neural networks," Chaos, Solitons & Fractals, Elsevier, vol. 118(C), pages 35-40.
    23. Krzysztof Drachal, 2022. "Forecasting the Crude Oil Spot Price with Bayesian Symbolic Regression," Energies, MDPI, vol. 16(1), pages 1-29, December.
    24. Gang Kou & Özlem Olgu Akdeniz & Hasan Dinçer & Serhat Yüksel, 2021. "Fintech investments in European banks: a hybrid IT2 fuzzy multidimensional decision-making approach," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-28, December.
    25. Wang, Jue & Athanasopoulos, George & Hyndman, Rob J. & Wang, Shouyang, 2018. "Crude oil price forecasting based on internet concern using an extreme learning machine," International Journal of Forecasting, Elsevier, vol. 34(4), pages 665-677.
    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. Hao, Jun & Feng, Qianqian & Yuan, Jiaxin & Sun, Xiaolei & Li, Jianping, 2022. "A dynamic ensemble learning with multi-objective optimization for oil prices prediction," Resources Policy, Elsevier, vol. 79(C).
    2. Zhao, Geya & Xue, Minggao & Cheng, Li, 2023. "A new hybrid model for multi-step WTI futures price forecasting based on self-attention mechanism and spatial–temporal graph neural network," Resources Policy, Elsevier, vol. 85(PB).
    3. Xu, Kunliang & Niu, Hongli, 2023. "Denoising or distortion: Does decomposition-reconstruction modeling paradigm provide a reliable prediction for crude oil price time series?," Energy Economics, Elsevier, vol. 128(C).
    4. Abdollahi, Hooman, 2020. "A novel hybrid model for forecasting crude oil price based on time series decomposition," Applied Energy, Elsevier, vol. 267(C).
    5. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    6. Maghyereh, Aktham & Awartani, Basel & Virk, Nader S., 2022. "Asymmetric risk transmissions between oil, gold and US equities: Recent evidence from the realized variance of the futures prices," Resources Policy, Elsevier, vol. 79(C).
    7. Abdollahi, Hooman & Ebrahimi, Seyed Babak, 2020. "A new hybrid model for forecasting Brent crude oil price," Energy, Elsevier, vol. 200(C).
    8. Marcus Vinicius Santos & Fernando Morgado-Dias & Thiago C. Silva, 2023. "Oil Sector and Sentiment Analysis—A Review," Energies, MDPI, vol. 16(12), pages 1-29, June.
    9. Mensi, Walid & Shafiullah, Muhammad & Vo, Xuan Vinh & Kang, Sang Hoon, 2021. "Volatility spillovers between strategic commodity futures and stock markets and portfolio implications: Evidence from developed and emerging economies," Resources Policy, Elsevier, vol. 71(C).
    10. Manickavasagam, Jeevananthan & Visalakshmi, S. & Apergis, Nicholas, 2020. "A novel hybrid approach to forecast crude oil futures using intraday data," Technological Forecasting and Social Change, Elsevier, vol. 158(C).
    11. Guan, Keqin & Gong, Xu, 2023. "A new hybrid deep learning model for monthly oil prices forecasting," Energy Economics, Elsevier, vol. 128(C).
    12. Zhao, Lu-Tao & Wang, Dai-Song & Ren, Zhong-Yuan, 2024. "The impact of joint events on oil price volatility: Evidence from a dynamic graphical news analysis model," Economic Modelling, Elsevier, vol. 130(C).
    13. Syed Abul, Basher & Perry, Sadorsky, 2022. "Forecasting Bitcoin price direction with random forests: How important are interest rates, inflation, and market volatility?," MPRA Paper 113293, University Library of Munich, Germany.
    14. Zhao, Zhengling & Sun, Shaolong & Sun, Jingyun & Wang, Shouyang, 2024. "A novel hybrid model with two-layer multivariate decomposition for crude oil price forecasting," Energy, Elsevier, vol. 288(C).
    15. Karasu, Seçkin & Altan, Aytaç & Bekiros, Stelios & Ahmad, Wasim, 2020. "A new forecasting model with wrapper-based feature selection approach using multi-objective optimization technique for chaotic crude oil time series," Energy, Elsevier, vol. 212(C).
    16. Thampanya, Natthinee & Nasir, Muhammad Ali & Huynh, Toan Luu Duc, 2020. "Asymmetric correlation and hedging effectiveness of gold & cryptocurrencies: From pre-industrial to the 4th industrial revolution✰," Technological Forecasting and Social Change, Elsevier, vol. 159(C).
    17. Li, Mingchen & Cheng, Zishu & Lin, Wencan & Wei, Yunjie & Wang, Shouyang, 2023. "What can be learned from the historical trend of crude oil prices? An ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 123(C).
    18. Shao, Zhen & Zheng, Qingru & Yang, Shanlin & Gao, Fei & Cheng, Manli & Zhang, Qiang & Liu, Chen, 2020. "Modeling and forecasting the electricity clearing price: A novel BELM based pattern classification framework and a comparative analytic study on multi-layer BELM and LSTM," Energy Economics, Elsevier, vol. 86(C).
    19. Tachibana, Minoru, 2022. "Safe haven assets for international stock markets: A regime-switching factor copula approach," Research in International Business and Finance, Elsevier, vol. 60(C).
    20. Ling Tang & Chengyuan Zhang & Tingfei Li & Ling Li, 2021. "A novel BEMD-based method for forecasting tourist volume with search engine data," Tourism Economics, , vol. 27(5), pages 1015-1038, August.

    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:fininn:v:10:y:2024:i:1:d:10.1186_s40854-024-00637-z. 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.