A Hybrid Deep Learning Approach for Crude Oil Price Prediction
<p>Calculation of the output <math display="inline"><semantics> <mrow> <msub> <mrow> <mi>v</mi> </mrow> <mrow> <mn>1,1</mn> </mrow> </msub> </mrow> </semantics></math> by applying a convolution filter <math display="inline"><semantics> <mrow> <mi>F</mi> <mo>×</mo> <mi>F</mi> </mrow> </semantics></math> to an input layer represented by the <math display="inline"><semantics> <mrow> <mi>N</mi> <mo>×</mo> <mi>N</mi> </mrow> </semantics></math> matrix.</p> "> Figure 2
<p>An unrolled recurrent neural network.</p> "> Figure 3
<p>One memory cell of a long short-term memory network.</p> "> Figure 4
<p>The proposed hybrid model.</p> "> Figure 5
<p>The vector output LSTM model.</p> "> Figure 6
<p>The encoder–decoder LSTM model.</p> "> Figure 7
<p>Daily crude oil prices for the long-term period.</p> "> Figure 8
<p>Daily crude oil prices for the medium-term period.</p> "> Figure 9
<p>Daily crude oil prices for the short-term period.</p> "> Figure 10
<p>The training and testing data for long-, medium-, and short-term datasets.</p> "> Figure 11
<p>The actual versus the predicted oil price using the hybrid model on the long-term dataset.</p> "> Figure 12
<p>The actual versus the predicted oil price using the hybrid model on the medium-term dataset.</p> "> Figure 13
<p>The actual versus the predicted oil price using the hybrid model on the short-term dataset.</p> "> Figure 14
<p>(<b>a</b>) Simple moving average of the actual prices versus the predicted prices on the short-term dataset. (<b>b</b>) Simple moving average of the actual prices versus the predicted prices on medium-term dataset.</p> "> Figure 15
<p>Simple moving average of the actual prices versus the predicted prices on the long-term dataset with an enlarged view of six time-intervals.</p> "> Figure 16
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the long-term dataset for the t+1 day price prediction.</p> "> Figure 17
<p>The actual versus the predicted oil price, using the encoder–decoder model on the long-term dataset for the t+1 day price prediction.</p> "> Figure 18
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the long-term dataset for the t+7 day price prediction.</p> "> Figure 19
<p>The actual versus the predicted oil price, using the encoder–decoder LSTM model on the long-term dataset for the t+7 day price prediction.</p> "> Figure 20
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the medium-term dataset for the t+1 day price prediction.</p> "> Figure 21
<p>The actual versus the predicted oil price, using the encoder–decoder model on the medium-term dataset for the t+1 day price prediction.</p> "> Figure 22
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the medium-term dataset for the t+7 day price prediction.</p> "> Figure 23
<p>The actual versus the predicted oil price, using the encoder–decoder LSTM model on the medium-term dataset for the t+7 day price prediction.</p> "> Figure 24
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the short-term dataset for the t+1 day price prediction.</p> "> Figure 25
<p>The actual versus the predicted oil price, using the encoder–decoder model on the short-term dataset for the t+1 day price prediction.</p> "> Figure 26
<p>The actual versus the predicted oil price, using the vector output CNN–LSTM model on the short-term dataset for the t+7 day price prediction.</p> "> Figure 27
<p>The actual versus the predicted oil price, using the encoder–decoder LSTM model on the short-term dataset for the t+7 day price prediction.</p> ">
Abstract
:1. Introduction
2. Literature Review
3. A Hybrid Deep Learning Model
3.1. Convolutional Neural Network
3.2. Long Short-Term Memory
3.3. The Hybrid Model Architecture
3.4. Multi-Step Prediction
3.4.1. Multi-Step Vector Output LSTM Model
3.4.2. Encoder–Decoder LSTM Model
4. Experimental Evaluation and Result Analysis
4.1. Dataset Description
- (1)
- The mean crude oil prices in the long- and medium- terms were close to USD 65 per barrel, while they increased in the short-term period during 2022, hitting a mean of USD 94. This can be explained by the fact that, during the initial months of 2022, crude oil prices surged to levels surpassing USD 120 per barrel, marking the highest price in the 10-year period. These elevated prices were considered as a potential source of inflationary pressure on economic growth. This scenario stands in contrast to the sharp decline in crude oil prices observed during the Spring of 2020, which was a direct response to the onset of the COVID-19 pandemic.
- (2)
- The price distribution is not normal, since the skewness is greater than zero and kurtosis is less than three, which yields to skewness towards right with thickened tails.
- (3)
- Fluctuations in oil prices exhibit diverse magnitudes and durations, implying the possible presence of a dynamic nonlinear nature of the data. This suggests the need for nonlinear models capable of accommodating these irregularities.
4.2. Evaluation Criteria
4.3. Parameter Tuning and Optimization
4.4. Exprimental Results
4.4.1. One-Step-Ahead Prediction
4.4.2. Multi-Step-Ahead Prediction
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Abiodun, Oludare Isaac, Aman Jantan, Abiodun Esther Omolara, Kemi Victoria Dada, Nachaat AbdElatif Mohamed, and Humaira Arshad. 2018. State-of-the-art in artificial neural network applications: A survey. Heliyon 4: e00938. [Google Scholar] [CrossRef] [PubMed]
- Baldi, Pierre. 2012. Autoencoders, unsupervised learning, and deep architectures. Proceedings of ICML Workshop on Un-supervised and Transfer Learning, PMLR 27: 37–49. [Google Scholar]
- Behmiri, Niaz Bashiri, and José Ramos Pires Manso. 2013. Crude Oil Price Forecasting Techniques: A Comprehensive Review of Literature. Available online: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2275428 (accessed on 23 November 2023).
- Cen, Zhongpei, and Jun Wang. 2019. Crude oil price prediction model with long short term memory deep learning based on prior knowledge data transfer. Energy 169: 160–71. [Google Scholar] [CrossRef]
- Cervantes, Jair, Farid García-Lamont, Lisbeth Rodríguez, and Asdrubal Lopez-Chau. 2020. A comprehensive survey on support vector machine classification: Applications, challenges and trends. Neurocomputing 408: 189–215. [Google Scholar] [CrossRef]
- Chen, Yu-Chen, and Wen-Chen Huang. 2021. Constructing a stock-price forecast CNN model with gold and crude oil indicators. Applied Soft Computing 112: 107760. [Google Scholar] [CrossRef]
- Daneshvar, Amir, Maryam Ebrahimi, Fariba Salahi, Maryam Rahmaty, and Mahdi Homayounfa. 2022. Brent crude oil price forecast utilizing deep neural network architectures. Computational Intelligence and Neuroscience 2022: 6140796. [Google Scholar] [CrossRef] [PubMed]
- Fan, Liwei, Sijia Pan, Zimin Li, and Huiping Li. 2016. An ICA-based support vector regression scheme for forecasting crude oil prices. Technological Forecasting and Social Change 112: 245–53. [Google Scholar] [CrossRef]
- Ghojogh, Benyamin, Ali Ghodsi, Fakhri Karray, and Mark Crowley. 2021. Restricted boltzmann machine and deep belief network: Tutorial and survey. arXiv arXiv:2107.12521. [Google Scholar]
- Ghojogh, Benyamin, and Ali Ghodsi. 2023. Recurrent Neural Networks and Long Short-Term Memory Networks: Tutorial and Survey. Available online: https://arxiv.org/abs/2304.11461 (accessed on 23 November 2023).
- Guo, Xiaopeng, DaCheng Li, and Anhui Zhang. 2012. Improved support vector machine oil price forecast model based on genetic algorithm optimization parameters. AASRI Procedia 1: 525–30. [Google Scholar] [CrossRef]
- Hochreiter, Sepp, and Jürgen Schmidhuber. 1996. LSTM can solve hard long time lag problems. Paper presented at 9th International Conference on Neural Information Processing Systems, Denver, CO, USA, December 3–5; pp. 473–79. [Google Scholar]
- Hu, Zhenda. 2021. Crude oil price prediction using CEEMDAN and LSTM-attention with news sentiment index. Oil and Gas Science and Technology 76: 28. [Google Scholar] [CrossRef]
- Jahanshahi, Hadi, Süleyman Uzun, Sezgin Kaçar, Qijia Yao, and Madini O. Alassafi. 2022. Artificial intelligence-based prediction of crude oil prices using multiple features under the effect of Russia–Ukraine war and COVID-19 pandemic. Mathematics 10: 4361. [Google Scholar] [CrossRef]
- Krichen, Moez. 2023. Convolutional neural networks: A survey. Computers 12: 151. [Google Scholar] [CrossRef]
- Lakshmanan, Indhurani, and Subburaj Ramasamy. 2015. An artificial neural-network approach to software reliability growth modeling. Procedia Computer Science 57: 695–702. [Google Scholar] [CrossRef]
- LeCun, Yann, and Yoshua Bengio. 1998. Convolutional networks for images, speech, and time-series. In The Handbook of Brain Theory and Neural Networks. Edited by Michael A. Arbib. Cambridge, MA: MIT Press. [Google Scholar]
- Li, Xuerong, Wei Shang, and Shouyang Wang. 2019. Text-based crude oil price forecasting: A deep learning approach. International Journal of Forecasting 35: 1548–60. [Google Scholar] [CrossRef]
- Liang, Shengbin, Bin Zhu, Yuying Zhang, Suying Cheng, and Jiangyong Jin. 2020. A double channel CNN-LSTM model for text classification. Paper presented at 2020 IEEE 22nd International Conference on High Performance Computing and Communications, IEEE 18th International Conference on Smart City, and IEEE 6th International Conference on Data Science and Systems (HPCC/SmartCity/DSS), Cuvu, Fiji, December 14–16; pp. 1316–21. [Google Scholar]
- Panopoulou, Ekaterini, and Theologos Pantelidis. 2015. Speculative behaviour and oil price predictability. Economic Modelling 47: 128–36. [Google Scholar] [CrossRef]
- Saltik, Omur, Suleyman Degirmen, and Mert Ural. 2016. Volatility modelling in crude oil and natural gas prices. Procedia Economics and Finance 38: 476–91. [Google Scholar] [CrossRef]
- Smith, Tim. 2023. Random Walk Theory: Definition, How It’s Used, and Example. Investopedia. Available online: https://www.investopedia.com/terms/r/randomwalktheory.asp (accessed on 23 November 2023).
- Wang, Jie, and Jun Wang. 2016. Forecasting energy market indices with recurrent neural networks: Case study of crude oil price fluctuations. Energy 102: 365–74. [Google Scholar] [CrossRef]
- Wu, Binrong, Lin Wang, Sheng-Xiang Lv, and Yu-Rong Zeng. 2021. Effective crude oil price forecasting using new text-based and big-data-driven model. Measurements 168: 108468. [Google Scholar] [CrossRef]
- Xia, Feng, Jiaying Liu, Hansong Nie, Yonghao Fu, Liangtian Wan, and Xiangjie Kong. 2020. Random walks: A review of algorithms and applications. IEEE Transactions on Emerging Topics in Computational Intelligence 4: 95–107. [Google Scholar] [CrossRef]
- Yu, Lean, Wei Dai, and Ling Tang. 2016. A novel decomposition ensemble model with extended extreme learning machine for crude oil price forecasting. Engineering Applications of Artificial Intelligence 47: 110–21. [Google Scholar] [CrossRef]
- Zhang, Junhao. 2023. Crude oil price prediction based on multiple ensemble learning algorithms. BCP Business & Management 38: 444–51. [Google Scholar]
Mean | Std. Dev. | Skewness | Kurtosis |
---|---|---|---|
65.78 | 22.49 | 0.44 | 0.82 |
Mean | Std. Dev. | Skewness | Kurtosis |
---|---|---|---|
64.75 | 19.77 | 0.39 | 0.40 |
Mean | Std. Dev. | Skewness | Kurtosis |
---|---|---|---|
94.3 | 12.36 | 0.36 | −0.77 |
Adam | Nadam | Adadelta | Adagrad | Adamax | Ftrl | RMSprop | |
---|---|---|---|---|---|---|---|
ELU | 2.45 | 2.42 | 3.82 | 3.36 | 2.39 | 3.5 | 3.06 |
ReLU | 2.47 | 2.36 | 3.48 | 3.35 | 2.5 | 3.5 | 3.16 |
SELU | 2.6 | 2.4 | 3.54 | 2.76 | 2.45 | 3.27 | 3.05 |
tanh | 3.10 | 2.95 | 36.62 | 56.77 | 2.97 | 53.91 | 3.06 |
Softplus | 2.51 | 2.44 | 3.68 | 3.10 | 2.42 | 3.37 | 2.55 |
Softsign | 3.11 | 3.36 | 40.32 | 59.91 | 3.32 | 61.70 | 4.05 |
Dataset (2013–2022) | RMSE | MAPE |
---|---|---|
Vanilla LSTM | 2.51 | 3.0% |
Stacked LSTM | 2.52 | 3.0% |
CNN–LSTM | 2.36 | 2.7% |
SVM | 2.87 | 3.9% |
CNN | 2.54 | 2.9% |
ARIMA | 2.50 | 2.8% |
Dataset (2018–2022) | RMSE | MAPE |
---|---|---|
Vanilla LSTM | 2.88 | 2.3% |
Stacked LSTM | 2.88 | 2.2% |
CNN–LSTM | 2.75 | 2.1% |
SVM | 19.7 | 12.9% |
CNN | 2.82 | 2.3% |
ARIMA | 3.06 | 2.5% |
Dataset (2022) | RMSE | MAPE |
---|---|---|
Vanilla LSTM | 2.72 | 2.7% |
Stacked LSTM | 2.81 | 2.8% |
CNN–LSTM | 2.18 | 2.2% |
SVM | 2.58 | 2.6% |
CNN | 2.35 | 2.4% |
ARIMA | 2.35 | 2.3% |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 3.65 | 4.22 | 4.66 | 5.04 | 5.32 | 5.63 | 5.83 |
LSTM | 2.79 | 3.59 | 4.19 | 4.52 | 4.93 | 5.24 | 5.49 |
CNN–LSTM | 2.54 | 3.29 | 3.89 | 4.39 | 4.87 | 5.21 | 5.48 |
Encoder–Decoder | 2.48 | 3.54 | 5.01 | 7.00 | 9.86 | 13.90 | 21.08 |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 4.02 | 4.71 | 5.27 | 5.81 | 6.16 | 6.37 | 6.58 |
LSTM | 3.15 | 3.96 | 4.83 | 5.48 | 6.08 | 6.37 | 6.86 |
CNN–LSTM | 2.74 | 3.83 | 4.58 | 5.19 | 5.78 | 6.21 | 6.46 |
Encoder–Decoder | 2.74 | 4.00 | 4.72 | 5.43 | 5.97 | 6.36 | 6.61 |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 3.59 | 4.13 | 4.65 | 5.04 | 5.29 | 5.46 | 5.73 |
LSTM | 4.36 | 5.21 | 6.52 | 6.30 | 6.81 | 7.43 | 7.35 |
CNN–LSTM | 2.60 | 3.43 | 4.10 | 4.64 | 4.96 | 5.28 | 5.49 |
Encoder–Decoder | 2.42 | 4.04 | 5.14 | 6.17 | 7.11 | 8.00 | 8.60 |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 4.25% | 4.94% | 5.45% | 5.96% | 6.53% | 6.98% | 7.34% |
LSTM | 3.25% | 4.17% | 4.84% | 5.23% | 5.73% | 6.15% | 6.47% |
CNN–LSTM | 2.75% | 3.66% | 4.52% | 5.09% | 5.60% | 6.01% | 6.49% |
Encoder–Decoder | 2.66% | 4.08% | 5.11% | 5.79% | 6.37% | 6.87% | 7.34% |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 3.38% | 3.98% | 4.38% | 4.74% | 5.08% | 5.43% | 5.75% |
LSTM | 2.56% | 3.36% | 4.10% | 4.62% | 5.11% | 5.33% | 5.96% |
CNN–LSTM | 2.20% | 3.16% | 3.79% | 4.29% | 4.63% | 5.06% | 5.47% |
Encoder–Decoder | 2.28% | 3.49% | 4.11% | 4.73% | 5.10% | 5.48% | 5.81% |
Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|
CNN | 3.61% | 4.15% | 4.67% | 5.24% | 5.44% | 5.61% | 5.88% |
LSTM | 4.13% | 4.96% | 6.29% | 5.98% | 6.56% | 7.10% | 6.96% |
CNN–LSTM | 2.55% | 3.38% | 3.88% | 4.31% | 4.63% | 5.07% | 5.39% |
Encoder–Decoder | 2.34% | 3.87% | 4.76% | 5.77% | 6.72% | 7.63% | 8.27% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Aldabagh, H.; Zheng, X.; Mukkamala, R. A Hybrid Deep Learning Approach for Crude Oil Price Prediction. J. Risk Financial Manag. 2023, 16, 503. https://doi.org/10.3390/jrfm16120503
Aldabagh H, Zheng X, Mukkamala R. A Hybrid Deep Learning Approach for Crude Oil Price Prediction. Journal of Risk and Financial Management. 2023; 16(12):503. https://doi.org/10.3390/jrfm16120503
Chicago/Turabian StyleAldabagh, Hind, Xianrong Zheng, and Ravi Mukkamala. 2023. "A Hybrid Deep Learning Approach for Crude Oil Price Prediction" Journal of Risk and Financial Management 16, no. 12: 503. https://doi.org/10.3390/jrfm16120503
APA StyleAldabagh, H., Zheng, X., & Mukkamala, R. (2023). A Hybrid Deep Learning Approach for Crude Oil Price Prediction. Journal of Risk and Financial Management, 16(12), 503. https://doi.org/10.3390/jrfm16120503