Crude oil is one of the world’s most important commodities. Its price can affect the global economy, as well as the economies of importing and exporting countries. As a result, forecasting the price of crude oil is essential for investors. However, crude oil price tends to fluctuate considerably during significant world events, such as the COVID-19 pandemic and geopolitical conflicts. In this paper, we propose a deep learning model for forecasting the crude oil price of one-step and multi-step ahead. The model extracts important features that impact crude oil prices and uses them to predict future prices. The prediction model combines convolutional neural networks (CNN) with long short-term memory networks (LSTM). We compared our one-step CNN–LSTM model with other LSTM models, the CNN model, support vector machine (SVM), and the autoregressive integrated moving average (ARIMA) model. Also, we compared our multi-step CNN–LSTM model with LSTM, CNN, and the time series encoder–decoder model. Extensive experiments were conducted using short-, medium-, and long-term price data of one, five, and ten years, respectively. In terms of accuracy, the proposed model outperformed existing models in both one-step and multi-step predictions.
In this paper, we predict crude oil price using various factors that may influence its price. The factors considered are physical market, financial, and trading market factors, including seven key factors and the dollar index. Firstly, we select the main factors that may greatly influence the prices. Then, we develop a hybrid model based on a convolutional neural network (CNN) and long short-term memory (LSTM) network to predict the prices. Lastly, we compare the CNN–LSTM model with other models, namely gradient boosting (GB), decision trees (DTs), random forests (RFs), neural networks (NNs), CNN, LSTM, and bidirectional LSTM (Bi–LSTM). The empirical results show that the CNN–LSTM model outperforms these models.