A Deep Learning-Based Ensemble System for Brent and WTI Crude Oil Price Analysis and Prediction
Abstract
1. Introduction
- (a)
- We propose a deep learning-based ensemble model for crude oil market price forecasting; a sequential least squares programming algorithm is employed to aggregate the forecasts.
- (b)
- We apply a diverse set of deep learning models (CNN, LSTM, BiLSTM, GRU, BiGRU, DNN) and standard ensemble methods (XGBoost, RT) for comparison purposes. This is designed to identify market-specific model performance.
- (c)
- We employ BO to fine-tune model parameters to reduce prediction errors and enhance model performance across individual and ensemble models.
- (d)
- We test all models on two major crude oil markets: Brent and WTI.
- (e)
- We provide a detailed comparison between ensemble models and standalone deep learning models, based on various performance metrics.
- (f)
- We utilize a robust dataset spanning from 2010 to 2024, covering Brent and WTI markets. This ensures that all models are trained and validated on real-world data, thereby enhancing their practical applicability.
- (g)
- We seek to develop a forecasting tool that provides actionable insights for policymakers, investors, and energy companies, aiding in better risk management and decision-making processes.
2. Materials and Methods
2.1. CNN
2.2. LSTM and BiLSTM
2.3. GRU and BiGRU
2.4. DFFNN
2.5. XGBoost
2.6. Random Forest
2.7. Bayesian Optimization
2.8. Proposed Deep Learning-Based Ensemble Model
2.9. Performance Measures
3. Results
4. Discussion and Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| CNN | Convolutional neural network |
| LSTM | Long short-term memory |
| BiLSTM | Bidirectional LSTM |
| GRU | Gated recurrent unit |
| BiGRU | Bidirectional GRU |
| DFFNN | Deep feedforward neural network |
| BO | Bayesian optimization |
| SLSQP | Sequential least squares programming |
| XGBoost | Extreme gradient boosting |
| RT | Random forest |
| WTI | West Texas Intermediate |
| RMSE | Root mean of squared error |
| MAE | Mean absolute error |
| MAPE | Mean absolute percentage error |
References
- Gupta, S.; Pahwa, M.S. Analysis of price volatility in energy commodities. FIIB Bus. Rev. 2011, 1, 68–74. [Google Scholar] [CrossRef]
- Al-Roubaie, A. An assessment of international liquidity and higher oil prices. World J. Entrep. Manag. Sustain. Dev. 2010, 6, 161–180. [Google Scholar] [CrossRef]
- Lee, J. How Negative Oil Prices Revealed the Dangers of the Futures Market. 2020. Available online: https://www.cnbc.com/2020/06/16/how-negative-oil-prices-revealed-the-dangers-of-futures-trading.html (accessed on 10 April 2023).
- Alam, M.S.; Murshed, M.; Manigandan, P.; Pachiyappan, D.; Abduvaxitovna, S.Z. Forecasting oil, coal, and natural gas prices in the pre-and post-covid scenarios: Contextual evidence from India using time series forecasting tools. Resour. Policy 2023, 81, 103342. [Google Scholar] [CrossRef] [PubMed]
- Haque, M.I.; Shaik, A.R. Predicting crude oil prices during a pandemic: A comparison of ARIMA and GARCH models. Montenegrin J. Econ. 2021, 17, 197–207. [Google Scholar] [CrossRef]
- Kristjanpoller, W.; Minutolo, M.C. Forecasting volatility of oil price using an artificial neural network-GARCH model. Expert Syst. Appl. 2016, 65, 233–241. [Google Scholar] [CrossRef]
- Abdollahi, H. A novel hybrid model for forecasting crude oil price based on time series decomposition. Appl. Energy 2020, 267, 115035. [Google Scholar] [CrossRef]
- Gupta, R.; Pierdzioch, C.; Salisu, A.A. Oil-price uncertainty and the UK unemployment rate: A forecasting experiment with random forests using 150 years of data. Resour. Policy 2022, 77, 102662. [Google Scholar] [CrossRef]
- Busari, G.A.; Lim, D.H. Crude oil price prediction: A comparison between AdaBoost-LSTM and AdaBoost-GRU for improving forecasting performance. Comput. Chem. Eng. 2021, 155, 107513. [Google Scholar] [CrossRef]
- Huang, Y.; Deng, Y. A new crude oil price forecasting model based on variational mode decomposition. Knowl.-Based Syst. 2021, 213, 106669. [Google Scholar] [CrossRef]
- Lahmiri, S. Fossil energy market price prediction by using machine learning with optimal hyper-parameters: A comparative study. Resour. Policy 2024, 92, 105008. [Google Scholar] [CrossRef]
- Li, J.; Zhu, S.; Wu, Q. Monthly crude oil spot price forecasting using variational mode decomposition. Energy Econ. 2019, 83, 240–253. [Google Scholar] [CrossRef]
- Ding, X.; Fu, L.; Ding, Y.; Wang, Y. A novel hybrid method for oil price forecasting with ensemble thought. Energy Rep. 2022, 8, 15365–15376. [Google Scholar] [CrossRef]
- Dritsaki, C. The performance of hybrid ARIMA-GARCH modeling and forecasting oil price. Int. J. Energy Econ. Policy 2018, 8, 14–21. [Google Scholar]
- Lévesque, J.C.; Gagné, C.; Sabourin, R. Bayesian Hyperparameter Optimization for Ensemble Learning. arXiv 2016. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
- Kim, J.; Oh, S.; Kim, H.; Choi, W. Tutorial on time series prediction using 1d-cnn and BiLSTM: A case example of peak electricity demand and system marginal price prediction. Eng. Appl. Artif. Intell. 2023, 126, 106817. [Google Scholar] [CrossRef]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
- Cho, K. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv 2014, arXiv:1406.1078. [Google Scholar]
- Faraji, A.; Sadrossadat, S.A.; Na, W.; Feng, F.; Zhang, Q.-J. A new macro modeling method based on deep gated recurrent unit regularized with gaussian dropout for nonlinear circuits. IEEE Trans. Circuits Syst. I Regul. Pap. 2023, 70, 2904–2915. [Google Scholar] [CrossRef]
- Lau, M.M.; Phang, J.T.S.; Lim, K.H. Convolutional deep feedforward network for image classification. In Proceedings of the 2019 7th International Conference on Smart Computing & Communications (ICSCC), Miri, Sarawak, Malaysia, 28–30 June 2019; pp. 1–4. [Google Scholar]
- Koutsoukas, A.; Monaghan, K.J.; Li, X.; Huan, J. Deep-learning: Investigating deep neural networks hyper-parameters and comparison of performance to shallow methods for modeling bioactivity data. J. Cheminform. 2017, 9, 42. [Google Scholar] [CrossRef]
- Zhang, R.; Li, B.; Jiao, B. Application of XGboost algorithm in bearing fault diagnosis. Iop Conf. Ser. Mater. Sci. Eng. 2019, 490, 072062. [Google Scholar] [CrossRef]
- Lahmiri, S.; Bekiros, S.; Giakoumelou, A.; Frank Bezzina, F. Performance assessment of ensemble learning systems in financial data classification. Intell. Syst. Account. Financ. Manag. 2020, 27, 3–9. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016. [Google Scholar]
- Heath, D.; Kasif, S.; Salzberg, S. k-DT: A multi-tree learning method. In Proceedings of the Second International Workshop on Multistrategy Learning, Harpers Ferry, WV, USA, 26–29 May 1993; pp. 138–149. [Google Scholar]
- Snoek, J.; Larochelle, H.; Adams, R.P. Practical Bayesian optimization of machine learning algorithms. In Advances in Neural Information Processing Systems; Morgan Kaufmann Publishers, Inc.: Burlington, MA, USA, 2012; Volume 25. [Google Scholar]
- Victoria, A.H.; Maragatham, G. Automatic tuning of hyperparameters using Bayesian optimization. Evol. Syst. 2021, 12, 217–223. [Google Scholar] [CrossRef]
- Wang, L.; Dernoncourt, F.; Bui, T. Bayesian optimization for selecting efficient machine learning models. arXiv 2020, arXiv:2008.00386. [Google Scholar] [CrossRef]
- Kraft, D. A Software Package for Sequential Quadratic Programming; Tech. Rep. DFVLR-FB 88-28; DLR German Aerospace Center—Institute for Flight Mechanics: Koln, Germany, 1988. [Google Scholar]
- Schittkowski, K. The nonlinear programming method of Wilson, Han, and Powell with an augmented Lagrangian type line search function. Numer. Math. 1982, 38, 115–127. [Google Scholar] [CrossRef]
- Mahmoud, E.; Pegels, C.C. An approach for selecting times series forecasting models. Int. J. Oper. Prod. Manag. 1990, 10, 50–60. [Google Scholar] [CrossRef]
- Astatkie, T. Absolute and relative measures for evaluating the forecasting performance of time series models for daily streamflows. Hydrol. Res. 2006, 37, 205–215. [Google Scholar] [CrossRef]
- Available online: https://www.eia.gov/ (accessed on 10 April 2023).
- Chuang, H.-M.; He, H.-C.; Hu, M.-C. Chinese Financial News Analysis for Sentiment and Stock Prediction: A Comparative Framework with Language Models. Big Data Cogn. Comput. 2025, 9, 263. [Google Scholar] [CrossRef]
- Ghosh, R.K.; Gupta, B.K.; Nayak, A.K.; Ghosh, S.K. Deep Learning-Based Hybrid Model with Multi-Head Attention for Multi-Horizon Stock Price Prediction. J. Risk Financial Manag. 2025, 18, 551. [Google Scholar] [CrossRef]
- Khansama, R.R.; Priyadarshini, R.; Nanda, S.K.; Barik, R.K.; Saikia, M.J. SGR-Net: A Synergistic Attention Network for Robust Stock Market Forecasting. Forecasting 2025, 7, 50. [Google Scholar] [CrossRef]
- Chen, Y.; Shen, W.; Liu, H.; Cao, X. EMAT: Enhanced multi-aspect attention transformer for financial time series forecasting. Entropy 2025, 27, 1029. [Google Scholar] [CrossRef] [PubMed]
- Liu, Z.; Zhang, Z.; Zhang, W. A hybrid framework integrating traditional models and deep learning for multi-scale time series forecasting. Entropy 2025, 27, 695. [Google Scholar] [CrossRef] [PubMed]
- Kim, D.-J.; Kim, D.-H.; Choi, S.-Y. Modeling stylized facts in FX markets with FINGAN-BiLSTM: A deep learning approach to financial time series. Entropy 2025, 27, 635. [Google Scholar] [CrossRef] [PubMed]
- Mao, W.; Liu, P.; Huang, J. SF-Transformer: A mutual information-enhanced transformer model with spot-forward parity for forecasting long-term Chinese stock index futures prices. Entropy 2024, 26, 478. [Google Scholar] [CrossRef]
- Li, Y.-C.; Huang, H.-Y.; Yang, N.-P.; Kung, Y.-H. Stock market forecasting based on spatiotemporal deep learning. Entropy 2023, 25, 1326. [Google Scholar] [CrossRef]
- Liapis, C.M.; Karanikola, A.; Kotsiantis, S. Investigating deep stock market forecasting with sentiment analysis. Entropy 2023, 25, 219. [Google Scholar] [CrossRef]
- Nabipour, M.; Nayyeri, P.; Jabani, H.; Mosavi, A.; Salwana, E.; S, S. Deep learning for stock market prediction. Entropy 2020, 22, 840. [Google Scholar] [CrossRef]
- Gu, S.; Kelly, B.; Xiu, D. Empirical asset pricing via machine learning. Rev. Financ. Stud. 2020, 33, 2223–2273. [Google Scholar] [CrossRef]
- Raza, H.; Akhtar, Z. Predicting stock prices in the Pakistan market using machine learning and technical indicators. Mod. Financ. 2024, 2, 46–63. [Google Scholar] [CrossRef]
- Zhou, X.; Zhou, H.; Long, H. Forecasting the equity premium: Do deep neural network models work? Mod. Financ. 2023, 1, 1–11. [Google Scholar] [CrossRef]
- Lahmiri, S.; Bekiros, S. Cryptocurrency forecasting with deep learning chaotic neural networks. Chaos Solitons Fractals 2019, 118, 35–40. [Google Scholar] [CrossRef]
- Lahmiri, S.; Bekiros, S. Intelligent forecasting with machine learning trading systems in chaotic intraday Bitcoin market. Chaos Solitons Fractals 2020, 133, 109641. [Google Scholar] [CrossRef]
- Tian, N.; Shao, B.; Zeng, H.; Ren, M.; Zhao, W.; Zhao, X.; Wu, S. Multi-step natural gas load forecasting incorporating data complexity analysis with finite features. Entropy 2025, 27, 671. [Google Scholar] [CrossRef]
- Lu, W.; Huang, Z. Crude Oil Prices Forecast Based on Mixed-Frequency Deep Learning Approach and Intelligent Optimization Algorithm. Entropy 2024, 26, 358. [Google Scholar] [CrossRef] [PubMed]
- Zhang, L.; Shi, J.; Wang, L.; Xu, C. Electricity, Heat, and Gas Load Forecasting Based on Deep Multitask Learning in Industrial-Park Integrated Energy System. Entropy 2020, 22, 1355. [Google Scholar] [CrossRef] [PubMed]
- Lu, Y.-S.; Lai, K.-Y. Deep-Learning-Based Power Generation Forecasting of Thermal Energy Conversion. Entropy 2020, 22, 1161. [Google Scholar] [CrossRef] [PubMed]
- Foroutan, P.; Lahmiri, S. Deep learning-based spatial-temporal graph neural networks for price movement classification in crude oil and precious metal markets. Mach. Learn. Appl. 2024, 16, 100552. [Google Scholar] [CrossRef]
- Foroutan, P.; Lahmiri, S. Deep learning systems for forecasting the prices of crude oil and precious metals. Financ. Innov. 2024, 10, 111. [Google Scholar] [CrossRef]
- Lahmiri, S. Forecasting international electricity market prices by using optimized machine learning systems. Smart Grids Energy 2025, 10, 16. [Google Scholar] [CrossRef]
- Karim, A.A.; Pardede, E.; Mann, S. A Model Selection Approach for Time Series Forecasting: Incorporating Google Trends Data in Australian Macro Indicators. Entropy 2023, 25, 1144. [Google Scholar] [CrossRef]







| Model | Parameter | Value Range and Setup |
|---|---|---|
| Conv1D | Filters | (16, 256, 16) |
| Kernel size | [3, 5] | |
| Dense units | (8, 128, 8) | |
| Learning rate | (0.0001, 0.01, Log-uniform) | |
| Uni/BiLSTM | Units | (16, 256, 16) |
| Learning rate | (0.0001, 0.01, Log-uniform) | |
| Uni/BiGRU | Units | (16, 256, 16) |
| Learning rate | (0.0001, 0.01, Log-uniform) | |
| DFFNN | Hidden layers | (1, 5) |
| Network neurons | (10, 100) | |
| Activation | (0, 2) | |
| XGBoost | Max depth | (3, 10) |
| Learning rate | (0.01, 0.3, Log-uniform) | |
| N estimators | (100, 1000) | |
| Min child weight | (1, 10) | |
| Subsample | (0.5, 1.0, Uniform) | |
| Colsample bytree | (0.5, 1.0, Uniform) | |
| Random forest | Max depth | (3, 20) |
| N estimators | (100, 1000) | |
| Min samples split | (2, 10) | |
| Min samples leaf | (1, 4) | |
| Max features | [‘sqrt’, ‘log2’, None] | |
| Bootstrap | [True, False] |
| Models | Pre-BO | Post-BO | ||||
|---|---|---|---|---|---|---|
| RMSE | MAE | MAPE | RMSE | MAE | MAPE | |
| 1D-CNN | 3.754 | 2.720 | 3.050% | 2.905 | 1.981 | 2.218% |
| LSTM | 3.726 | 2.666 | 3.010% | 2.504 | 1.751 | 1.979% |
| BiLSTM | 4.523 | 3.250 | 3.690% | 3.059 | 2.480 | 2.805% |
| GRU | 2.876 | 2.046 | 2.290% | 2.299 | 1.655 | 1.851% |
| BiGRU | 2.768 | 1.977 | 2.210% | 2.606 | 1.846 | 2.090% |
| DFFNN | 3.292 | 2.297 | 2.570% | 3.836 | 2.740 | 3.072% |
| XGBoost | 2.736 | 1.997 | 2.230% | 2.317 | 1.693 | 1.898% |
| Random forest | 2.377 | 1.737 | 1.950% | 2.356 | 1.713 | 1.925% |
| Our model: weighted ensemble deep learning | 3.276 | 2.314 | 2.600% | 2.289 | 1.637 | 1.833% |
| Models | Pre-BO | Post-BO | ||||
|---|---|---|---|---|---|---|
| RMSE | MAE | MAPE | RMSE | MAE | MAPE | |
| 1D-CNN | 3.477 | 2.525 | 3.010% | 4.061 | 3.054 | 3.720% |
| LSTM | 4.139 | 3.105 | 3.680% | 2.855 | 2.323 | 2.789% |
| BiLSTM | 3.778 | 2.725 | 3.270% | 3.133 | 2.261 | 2.729% |
| GRU | 2.720 | 2.053 | 2.430% | 2.363 | 1.804 | 2.157% |
| BiGRU | 3.348 | 2.608 | 3.130% | 2.266 | 1.610 | 1.923% |
| DFFNN | 3.508 | 2.658 | 3.190% | 4.914 | 4.010 | 5.013% |
| XGBoost | 3.112 | 2.118 | 2.440% | 2.637 | 1.813 | 2.094% |
| Random forest | 2.491 | 1.796 | 2.100% | 2.474 | 1.764 | 2.057% |
| Our model: weighted ensemble deep learning | 3.307 | 2.452 | 2.930% | 2.207 | 1.604 | 1.905% |
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. |
© 2025 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
Zhang, Y.; Lahmiri, S. A Deep Learning-Based Ensemble System for Brent and WTI Crude Oil Price Analysis and Prediction. Entropy 2025, 27, 1122. https://doi.org/10.3390/e27111122
Zhang Y, Lahmiri S. A Deep Learning-Based Ensemble System for Brent and WTI Crude Oil Price Analysis and Prediction. Entropy. 2025; 27(11):1122. https://doi.org/10.3390/e27111122
Chicago/Turabian StyleZhang, Yiwen, and Salim Lahmiri. 2025. "A Deep Learning-Based Ensemble System for Brent and WTI Crude Oil Price Analysis and Prediction" Entropy 27, no. 11: 1122. https://doi.org/10.3390/e27111122
APA StyleZhang, Y., & Lahmiri, S. (2025). A Deep Learning-Based Ensemble System for Brent and WTI Crude Oil Price Analysis and Prediction. Entropy, 27(11), 1122. https://doi.org/10.3390/e27111122
