Skip to Content
ProcessesProcesses
  • Article
  • Open Access

16 June 2026

16 Pages

Prediction of Heat Load in Oil and Gas Gathering Stations Based on CNN–LSTM–Attention

,
,
,
,
,
,
and
1
No. 1 Gas Production Plant, Xinjiang Oilfield Company, Karamay 834000, China
2
Mahe Gas Production Operation Area, No. 1 Gas Production Plant, Xinjiang Oilfield Company, Karamay 834000, China
3
Process Research Institute, No. 1 Gas Production Plant, Karamay 834000, China
4
Kelameili Gas Production Operation Area, No. 1 Gas Production Plant, Karamay 834000, China
This article belongs to the Section AI-Enabled Process Engineering

Abstract

Under the national context of energy transition and energy conservation, accurate prediction of thermal load in oil and gas gathering and transportation stations is crucial for ensuring operational safety and reducing energy consumption. To address the limitations of traditional forecasting methods in handling the nonlinear, non-stationary, and long-term temporal dependencies of thermal load data, this paper proposes a hybrid deep learning model that integrates convolutional neural networks (CNNs), long short-term memory (LSTM) networks, and an attention mechanism, namely the CNN–LSTM–Attention model. First, key influencing factors such as ambient temperature, return water temperature, and the previous hour’s thermal load were selected as model inputs through correlation analysis. Subsequently, a CNN was employed to extract spatial features from multi-source data, LSTM to capture temporal dependencies, and an attention mechanism to dynamically focus on critical operational nodes, thereby enhancing the model’s ability to perceive important features. The experimental results show that the proposed model performs excellently in heat load prediction, achieving a root mean square error of 5.98, a mean absolute error of 4.66, and a mean absolute percentage error of 9.66%, with an R-squared (R2) value of 0.9568. Its prediction accuracy and stability are significantly superior to those of the standalone CNN and standalone LSTM models. This study provides an effective algorithmic solution for precise thermal load forecasting in oil and gas gathering and transportation stations and offers insights for optimizing the applicability of deep learning models in industrial scenarios.

1. Introduction

Under the strategic background of energy structure transformation and energy conservation and consumption reduction, oil and gas gathering and transfer stations, as key nodes in the energy supply chain, exhibit strongly fluctuating heat loads influenced by multiple factors such as ambient temperature and medium flow rate. Accurate prediction of these loads is of significant practical importance for ensuring safe system operation and reducing energy costs [1,2]. Current traditional prediction methods, such as time series models and single machine learning models, struggle to effectively capture the complex nonlinear relationships and long-term temporal dependencies inherent in heat load data. This leads to insufficient prediction accuracy and pronounced lag, failing to meet the requirements for refined regulation and control [3,4]. The development of deep learning technology offers a new pathway to address this issue. Specifically, Convolutional Neural Networks (CNNs) excel at extracting local spatial features, while Long Short-Term Memory (LSTM) networks can effectively capture temporal dependencies. Their combination has shown potential in the energy forecasting domain, yet limitations remain regarding the insufficient focus on critical features [5,6]. Attention mechanisms can assign higher weights to important temporal features, further enhancing model prediction performance.
In the realm of temporal feature modeling, Long Short-Term Memory (LSTM) networks, due to their unique gating mechanism, can effectively capture long-range dependencies in time series and have become a foundational model in the load forecasting field. Wang et al. combined LSTM with Dilated LSTM structures, capturing multi-dimensional temporal dependencies through multi-layer dilated units, demonstrating superior performance compared to traditional Recurrent Neural Networks (RNN) in both single-step and multi-step predictions [7]. To further enhance the model’s capability in representing temporal characteristics, Zhao et al. designed a three-channel LSTM-Convolutional Neural Network (CNN) model to process time, meteorological, and historical load data separately. After extracting temporal features through independent channels, they utilized CNN for cross-modal fusion, achieving high prediction accuracy in power load forecasting [8]. However, relying solely on temporal models makes it difficult to fully extract deep features from the data. CNNs, with their properties of local perception and weight sharing, exhibit unique advantages in feature extraction. Addressing the issue of sparse data for industrial and commercial buildings, Liu et al. employed a Time-series Generative Adversarial Network (TimeGAN) to generate synthetic data for augmenting the training set and constructed a CNN-LSTM hybrid model, validating the effectiveness of combining data augmentation with feature extraction across multiple real-world cases [9]. Wang et al. introduced Wavelet Threshold Denoising (WTD) for cooling load prediction, reducing noise interference through preprocessing and, by combining the strengths of CNN and LSTM, outperformed traditional machine learning methods across different time granularities [10].
The fusion of multi-source heterogeneous features is a critical pathway to improving prediction accuracy. Targeting the multi-load coupling characteristics of integrated energy systems, Yao et al. proposed a short-term power forecasting model based on an Attention Mechanism integrated with CNN and Deep Bidirectional Long Short-Term Memory (DBILSTM). They quantified the correlations among electricity, heat, and gas loads using the Pearson Correlation Coefficient and introduced the attention mechanism to strengthen key information, thereby verifying the positive effect of multi-load correlation on prediction accuracy [11]. Yi et al. focused on the dimensionality of input data and designed a deep LSTM-CNN model based on a Self-Attention Mechanism (SAM). Relying solely on load data itself, they extracted the randomness of user behavior through convolution operations, addressing the prediction challenges posed by non-stationary time series [12].
Research on optimization algorithms and interpretability provides new insights for enhancing model performance. An et al. integrated the Sparrow Search Algorithm (SSA) with CNN-SVM for residential building heat load prediction, demonstrating the impact of parameter optimization on prediction accuracy and enriching the feature dimension by incorporating indoor temperature variables [13]. Zhang et al. extended the CNN-LSTM-Attention model to the field of hydrological forecasting, utilizing Shapley Additive Explanations (SHAP) to analyze the contribution of each input feature, thereby providing a methodological reference for research on the interpretability of load forecasting models [14].
In summary, existing research has progressively evolved from single models to hybrid architectures, from single-source data to multi-modal fusion, and from accuracy optimization towards exploring interpretability. However, for the specific scenario of oil and gas gathering and transfer stations, where heat load is influenced by the coupled effects of multiple factors including production processes, environmental parameters, and equipment status, systematic predictive research is currently lacking.
It is worth noting that two recent related studies have further demonstrated the application potential of hybrid models in different domains. Reference [15] proposed a motor bearing fault detection method based on empirical mode decomposition denoising, detrended fluctuation analysis, LSTM-based multimodal feature fusion, and K-means clustering. This method achieved an accuracy of 98.46% on the HUST bearing dataset, verifying the effectiveness of preprocessing and clustering in enhancing feature space separability. Another study focused on public transportation, using LSTM for passenger flow prediction combined with K-means for mobility pattern segmentation, achieving a low prediction error (MSE = 0.0304) on the Jepara bus terminal dataset [16]. Although the above studies have achieved good results in their respective scenarios, their application targets (fault diagnosis and passenger flow prediction) are fundamentally different from heat load prediction in oil and gas gathering and transportation stations. The latter is influenced by the coupled effects of multiple physical factors such as ambient temperature, medium flow rate, and equipment status, exhibiting stronger volatility and more complex nonlinear characteristics. Therefore, directly transferring existing models cannot meet the requirements of refined control.
To address this, this paper applies the CNN-LSTM-Attention architecture to the heat load prediction scenario of oil and gas gathering and transportation stations for the first time using a deep learning approach, and designs a feature recalibration strategy based on SE attention for this scenario. The method extracts spatiotemporal features from multiple dimensions, including meteorological parameters and oil outlet temperature, via convolutional layers, and combines an attention mechanism to enhance the weight allocation of key operating condition parameters, ultimately achieving time-series prediction of hourly heat load. This provides algorithmic support for constructing a heating system tailored to oil and gas gathering and transportation stations.

2. Analysis of Influencing Factors of Heat Load and Data Processing

2.1. Heat Load Data Source and Description

Heat load refers to the total amount of heat that needs to be supplied per unit time, typically measured in kilowatts or watts (kW or W). In oil and gas gathering and transportation stations, the core objective of managing heat load is to ensure the continuous operation of production and living facilities. It primarily consists of three components: crude oil heating, pipeline heat tracing, and station living area heating. Its calculation must consider multiple factors such as ambient temperature, medium physical properties, pipeline insulation efficiency, and equipment heat loss.
This study selected an oil and gas gathering station located in the Zhidan Oil Production Plant, Yan’an City, Shaanxi Province. Historical heat load data from 15 November 2023 to 15 March 2024, were collected, with recordings taken hourly. Table 1 presents a sample of the acquired heat load data details. The heat load trend diagram for the station, plotted based on the obtained data, is shown in Figure 1.
Table 1. Heat Load Data of the Target Oil and Gas Gathering Station (Partial Raw Data).
Figure 1. Hourly Heat Load Trend of the Target Oil and Gas Gathering Station (Raw Data).

2.2. Heat Load Data Preprocessing

The historical heat load data for the target station often contain missing or abnormal values due to random factors such as sensor failures and communication interruptions during acquisition. Retaining these anomalies can compromise data sample accuracy and fail to reflect true data characteristics, ultimately affecting prediction accuracy. Therefore, a systematic data cleaning process is necessary to improve data quality.
For anomaly detection in the heat load data, this study employs the box plot method to construct a multi-dimensional statistical framework. Firstly, Q1, Q3 and Δ are calculated based on the original data, and the box structure is drawn to reflect the trend and dispersion of the data. Secondly, the discrete points beyond the upper and lower thresholds (Q3 + 1.5Δ and Q1−1.5Δ) are visually located. These outliers may result from instantaneous distortion caused by sensor failure or communication interference. The advantages of this method are: ① It does not require assumptions about data distribution, making it suitable for non-Gaussian scenarios; ② Computational complexity is low, requiring only quantile calculations for synchronous multi-dimensional statistical display; ③ It supports the classification of outliers, facilitating rapid assessment of anomaly severity. In contrast, the Pauta criterion relies on normality assumptions and is sensitive to extreme values, while isolation forests, though suitable for high-dimensional data, are computationally expensive. Therefore, this paper employs the box plot method for outlier processing, enabling collaborative analysis of data distribution characteristics and anomaly patterns while ensuring algorithmic efficiency.
The box plot method is a classical tool for data quality control. As shown in Figure 2, its core components include upper limit, upper quartile (Q3), median (Q2), lower quartile (Q1) and lower limit. The abnormal value determination interval is defined as [Q1−1.5Δ, Q3 + 1.5Δ] by quartile distance (Δ = IQR = Q3−Q1) [17]. It requires no assumptions about data distribution and has low computational complexity, making it suitable for anomaly detection in industrial data with non-Gaussian distributions [17]. Piecewise cubic Hermite interpolation preserves data smoothness while avoiding overshoot, making it suitable for time-series data imputation.
Figure 2. Box Line Diagram.
In this study, the box plot method was used to identify outliers in all collected historical heat load data. Following identification, a phased data repair strategy was adopted: first, detected abnormal data points were marked as missing (Null values), and then dynamic interpolation was performed based on time series characteristics. Piecewise cubic Hermite interpolation was employed during this process to maintain data smoothness while avoiding overshoot. This interpolation method requires not only that the interpolating polynomial’s value matches the original function value at given nodes but also that its first derivative (up to a specified order) equals the corresponding derivative of the interpolated function at those nodes, ensuring data integrity. After completing these steps, the historical heat load data preprocessing was finalized. Figure 3 illustrates the data preprocessing workflow. Table 2 and Figure 4 present the processed hourly heat load data for the target oil and gas gathering and transportation station.
Figure 3. Data Preprocessing Diagram.
Table 2. Heat Load Data of the Target Oil and Gas Gathering Station (Processed Data Subset).
Figure 4. Hourly Heat Load Trend of the Target Oil and Gas Gathering Station (Processed Data).

2.3. Analysis of Influencing Factors of Heat Load

Analyzing the factors influencing heat load is a crucial research method for heating system design. Its core objective is to quantify the impact of variables such as crude oil physical parameters and climatic conditions on heat load, thereby identifying key influencing factors to optimize design or operational strategies.
The heat load of oil and gas gathering and transportation stations is affected by multiple factors. This study focuses primarily on external meteorological conditions and internal system variables. A quantitative analysis is conducted using mathematical methods to evaluate the influence of seven factors on heat load: ambient temperature, solar radiation intensity, relative humidity, wind speed, return water temperature, supply water temperature, and the heat load from the previous hour. The goal of this analysis is to provide a more accurate basis for selecting input parameters for the heat load prediction model.
Usually, correlation analysis will use the correlation coefficient to measure the degree of correlation between variables. The correlation coefficient is between −1 and 1, which is used to characterize the strength and direction of the linear relationship between variables. When the correlation coefficient is 1, it means that the two variables are completely positively correlated; when −1, it means that the two variables are completely negatively correlated; if the correlation coefficient is 0, it shows that there is no linear relationship between the two variables. The specific calculation formula of the correlation coefficient is:
r = σ x y 2 σ x σ y
σ x y 2 = 1 n Σ x − x ¯ y − y ¯
σ x σ y = 1 n Σ x − x ¯ 2 1 n Σ y − y ¯ 2
In the formula:
  • x —Variable one;
  • y —Variable two;
  • σ x y 2 —The covariance of x and y ;
  • σ x —The standard deviation x ;
  • σ y —The standard deviation y ;
  • x ¯ —The arithmetic mean value of x ;
  • y ¯ —The arithmetic mean value of y .
The correlation coefficient has the following characteristics:
(1)
r > 0, There is positive correlation between x and y ; r < 0, x and y are negatively correlated; r = 0, x and y are completely independent.
(2)
0 < x ≤ 0.3, x and y are weakly correlated.
(3)
0.3 < x ≤ 0.5, x and y are lowly correlated.
(4)
0.5 < x ≤ 0.8, There is significant correlation between x and y .
(5)
0.8 < x ≤ 01, x and y are highly correlated.
Using SPSS (Statistical Package for the Social Sciences) software (IBM SPSS Statistics (IBM Corp., Armonk, NY, USA), a correlation analysis was performed between the hourly heat load and the following factors: ambient temperature, solar horizontal radiation intensity, relative humidity, wind speed, heating end return water temperature, heating end outlet water temperature, and the heat load from one hour prior. The results are presented in Table 3.
Table 3. Correlation Analysis Between Heat Load and Influencing Factors.
From Table 3, it can be concluded that ambient temperature, heating end return water temperature, heating end outlet water temperature, and the heat load from one hour prior exhibit a high correlation with the current heat load. Solar horizontal radiation intensity shows a significant correlation, while relative humidity and wind speed show a weak correlation. Therefore, this study selects ambient temperature, heating end return water temperature, heating end outlet water temperature, the heat load from one hour prior, and solar horizontal radiation intensity as input variables for the heat load prediction model of the oil and gas gathering station.

3. Construction of the CNN-LSTM-Attention Hybrid Prediction Model

3.1. Theoretical Basis of the CNN-LSTM-Attention Model

The Convolutional Neural Network (CNN) is a deep neural network with a hierarchical structure. Its core characteristic is the efficient processing of gridded data through local connections and parameter-sharing mechanisms [18]. As shown in Figure 5, compared to traditional fully connected neural networks, CNN adopts a cross-stacking architecture comprising an input layer, convolutional layers, pooling layers, and fully connected layers. A typical structure consists of alternating convolutional and pooling layers. Local features are extracted via convolutional kernel sliding, while the pooling layer performs down-sampling to enhance translation invariance and reduce dimensionality [19]. For the activation function, the convolutional layers typically use the ReLU (Rectified Linear Unit) function. Its sparse activation characteristic alleviates the vanishing gradient problem by suppressing negative outputs while also reducing the risk of model overfitting. CNN can be divided into one-dimensional and two-dimensional according to the input dimension: two-dimensional CNN is widely used in the field of image processing, using two-dimensional convolution kernel to capture spatial features; because the input data of time series tasks such as thermal load forecasting are one-dimensional time series, one-dimensional convolutional neural network is needed to realize feature extraction and dimension matching [20]. The architecture maps abstract features to the output space through a fully connected layer, which significantly reduces the number of parameters while retaining local correlation, making it the cornerstone of computer vision and spatio-temporal sequence modeling.
Figure 5. Typical CNN Structure Diagram.
Long Short-Term Memory (LSTM) is a type of recurrent neural network architecture specifically designed to address the long-term dependency problem in time-series data. Its core mechanism involves dynamically regulating information flow through gated units, making it particularly suitable for scenarios with strong temporal dependencies, such as thermal load forecasting. In engineering implementation, after receiving multi-dimensional time-series features at the input layer, the LSTM layer extracts cross-time-step correlation patterns. The fully connected layer then maps these high-order temporal features into the load forecasting space, and finally, a single node in the output layer produces the daily load prediction. Compared to standard Recurrent Neural Networks (RNNs), the LSTM network retains the basic recurrent structure while redesigning the memory unit. The architecture maintains long-term state memory through “memory cells” and incorporates a triple-gating mechanism consisting of a forget gate f t , an input gate i t , and an output gate o t . The forget gate filters redundant information from historical load data; the input gate integrates multi-source features at the current time step, such as meteorological parameters, crude oil transportation volume, and physical property indicators; and the output gate extracts key states relevant to the prediction target [7,21]. The error correction parameters, updated via gradient descent during selective memory feedback, optimize the weights of the self-recurrent connections, ensuring their dynamic adaptability. The structure of the LSTM neural network is illustrated in Figure 6. The input data of the LSTM at time step t is x t , the output value is h t , and the memory cell state is c t .
Figure 6. LSTM Neural Network Structure Diagram.

3.2. CNN-LSTM-Attention Hybrid Model Architecture Design

As shown in Figure 7, the CNN-LSTM-Attention fusion model proposed in this study possesses multi-dimensional collaborative advantages and holds significant research importance for heat load prediction in oil and gas gathering stations. The model deeply excavates the spatial distribution characteristics of the sensor network through the Convolutional Neural Network (CNN), capturing the spatial correlation between equipment group heat conduction patterns and the regional temperature field. The Long Short-Term Memory network (LSTM) accurately models the time-lag effect of heat load changes with process flow, analyzing the cumulative impact of operations like heat pump start-stop and oil pump frequency conversion on the system’s thermodynamic state. The attention mechanism dynamically focuses on key operating condition nodes, adaptively strengthening the weight distribution of sensitive parameters-such as sudden ambient temperature changes and pipeline wax deposition risk-during special scenarios like extreme winter cold or equipment maintenance periods [2,22].
Figure 7. Schematic of the CNN-LSTM-Attention Prediction Model Structure.
Each layer in the prediction model is described as follows:
(1)
Input Layer: A time-series feature matrix is constructed from the gathering station’s multi-source heterogeneous data, incorporating ambient temperature, return water temperatures on the heating side, horizontal solar radiation intensity, and the heat load from the preceding hour.
(2)
CNN Layer: A two-layer two-dimensional convolutional network is adopted, with a kernel size of [1 × 1] and a stride of [1]. The first convolutional layer outputs 32 feature channels, and the second layer expands this to 64 channels. Each convolutional layer is followed by a ReLU activation function. This architecture is designed to extract local features from the input time-series data.
(3)
LSTM Layer: A bidirectional gated recurrent unit models the dynamic process. The forget gate filters out non-critical temporal noise (e.g., interference from short-term pressure fluctuations); the input gate strengthens the temporal effects of core operating conditions like heating power adjustments and crude oil flow rate changes. The output hidden state matrix fuses long-period equipment operation patterns.
(4)
Attention Layer: A condition-aware attention mechanism is designed. It assigns different weights to the hidden states of the LSTM layer through mapping, weighting, and a learnable parameter matrix, enabling the network to focus on critical feature relationships for improved modeling. A self-correction mechanism suppresses abnormal weight distributions caused by sensor failures, enhancing robustness in industrial settings and making the model’s function more closely align with reality [23].
(5)
Fully Connected Layer: Deep feature fusion is achieved via a multi-layer perceptron. Neurons in the first layer receive attention-weighted spatio-temporal features, and activation functions are used to enhance nonlinear expression capability.
(6)
Output Layer: A multi-scale prediction output is designed for engineering applications. The main output channel predicts the hourly heat load variation curve for the future period, while the auxiliary output channel generates load fluctuation intervals to assist operators in decision-making.
The model is implemented using the MATLAB deep learning framework, with key parameters configured as follows: The model is implemented using a deep learning framework, with key parameters configured as follows: The input data dimension is [T, f], where T is the time step length and f is the number of features (f = 5 in this study). The convolutional layer consists of two layers with [1 × 1] kernels and a stride of [1], with the number of channels expanding from 32 to 64. The SE attention mechanism is introduced, which applies global average pooling, compresses the channels to 16 dimensions via a fully connected layer with ReLU activation, restores them to 64 dimensions via another fully connected layer, and generates channel weights using a Sigmoid function. These weights are then multiplied channel-wise with the convolutional features. The LSTM layer is configured with 6 hidden units and uses ‘last’ as the output mode. The loss function is the mean squared error.

4. Experimental Verification and Result Analysis

4.1. Experimental Evaluation Metric Selection

For the systematic evaluation of deep learning model prediction performance, a multi-dimensional evaluation system is typically constructed, consisting of Root Mean Square Error (RMSE, representing dimensional normalized deviation), Mean Absolute Error (MAE, representing absolute deviation), Coefficient of Determination (R2, representing explanatory power of data variation), and Mean Absolute Percentage Error (MAPE, representing adaptability to specific data). Analyzing multiple dimensions such as deviation magnitude, accuracy stability, and statistical fit provides a scientific basis for model optimization decisions. The expressions for each metric are as follows [24,25]:
R M S E = 1 n Σ i = 1 n y i − y ^ i 2
M A E = 1 n Σ i = 1 n y i − y ^ i
M A P E = 1 n ∑ i = 1 n y ^ i − y i y ^ i × 100 %
In the formula:
  • n —sample size;
  • y ^ i —predicted value;
  • y i —true value;
R 2 = S S R / S S T
In the formula:
  • S S R —regression sum of squares;
  • S S T —total sum of square.
R2 measures the model’s fit by the variance contribution of the explanatory variable to the dependent variable, with a range of [0, 1]. A value closer to 1 indicates stronger explanatory power of the regression equation. RMSE emphasizes the influence of outliers on model performance based on squared error. MAE reflects the average absolute deviation between predicted and actual values. MAPE evaluates the model’s adaptability to operating conditions through relative error. The collaborative verification of these four metrics can comprehensively assess the model’s applicability in the context of oil and gas gathering and transportation [26].

4.2. Comparative Analysis of Experimental Prediction Results

During data preprocessing, a sliding window method is used to construct training samples. Based on the time granularity of the input features (hourly), the time step length is set to 24. Thus, each sample contains 24 consecutive hours of multi-dimensional features (5 feature dimensions) and is used to predict the heat load value for the next hour. The sliding step size is set to 1, generating samples in a rolling manner hour by hour. To verify the model’s prediction accuracy, this study determined the optimal parameter configuration for the CNN-LSTM-Attention hybrid model through comparative analysis of multiple parameter optimization experiments under consistent dataset and experimental environment conditions. The configuration uses a two-dimensional convolutional structure with a kernel size of [−1,1], input and output channels of 32 and 64 respectively, an initial learning rate of 0.01, a decay mechanism applied every 100 epochs, and the Adam optimizer for the attention unit. Based on an 8:2 training set-test set partitioning scheme, the CNN-LSTM-Attention model is compared with benchmark CNN and LSTM models for thermal load forecasting. The results are visualized through prediction curve comparison charts and error scatter plots, intuitively demonstrating the prediction performance differences among the models (Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15 and Figure 16).
Figure 8. Comparison of CNN Prediction Performance.
Figure 9. Comparison of LSTM Model Prediction Performance.
Figure 10. Comparison of Prediction Performance for the CNN-LSTM-Attention Model.
Figure 11. Scatter Plot of CNN Prediction Errors.
Figure 12. Probability Distribution of CNN Prediction Errors.
Figure 13. Scatter Plot of LSTM Prediction Errors.
Figure 14. Probability Distribution of LSTM Prediction Errors.
Figure 15. Scatter Plot of Prediction Errors for the CNN-LSTM-Attention Model.
Figure 16. Probability Distribution of Prediction Errors for the CNN-LSTM-Attention Model.
As shown in Table 4 below, the CNN-LSTM-Attention prediction model achieves an RMSE of 5.98, MAE of 4.66, MAPE of 9.66%, and R2 of 0.9568, outperforming both the CNN and LSTM models. Furthermore, visualization analysis shows that the prediction curve of the CNN-LSTM-Attention model aligns highly with the actual heat load curve, exhibiting excellent goodness of fit in terms of fluctuation patterns, extreme point distribution, and time series change rules. This near-synchronous curve matching characteristic intuitively confirms the significant advantages of the hybrid model in heat load forecasting. By integrating the synergistic effects of convolutional feature extraction, LSTM time series modeling, and the dynamic weight distribution of the attention mechanism, it effectively improves the accuracy and stability of prediction results, providing a reliable technical pathway for complex time series data modeling.
Table 4. Comparison of Model Performance Based on Prediction Evaluation Metrics.

5. Conclusions

This paper addresses the core requirement of thermal load forecasting for oil and gas gathering stations by systematically developing a deep learning prediction model based on a CNN-LSTM-Attention architecture. A comprehensive investigation is conducted into its theoretical framework, model design, and predictive performance. Within the theoretical framework section, the quantitative definition of the thermal load objective and the standardized design of the forecasting process clarify the coupling relationship between temporal features and external influencing factors. Key input variables are selected based on correlation analysis, establishing a data-driven foundation for model construction. However, the experimental data were collected from only one oil and gas gathering and transportation station over a single heating season, so the findings represent only a preliminary validation. Future work is needed to further verify the generalization capability of the model using data from multiple stations and across multiple seasons.
At the model design level, an innovative CNN-LSTM-Attention hybrid architecture is proposed. This framework integrates the spatial feature extraction capability of Convolutional Neural Networks (CNN), the sequential modeling advantage of Long Short-Term Memory networks (LSTM), and the adaptive weight allocation characteristic of the attention mechanism. The Adam optimization algorithm is also introduced to enhance parameter learning efficiency. The effectiveness of multi-mechanism synergy in capturing complex thermal load fluctuation patterns is validated through comparative experiments against standalone CNN and standalone LSTM benchmark models. For the experimental phase, an 8:2 dataset splitting strategy is employed. A multi-dimensional evaluation is performed using metrics such as Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Mean Absolute Percentage Error (MAPE), and the Coefficient of Determination (R2).
The results demonstrate that the CNN-LSTM-Attention model achieves a notably high R2 value of 95.68% between its prediction curve and the actual thermal load. This represents an improvement of 9.71% and 5.53% compared to the standalone CNN and LSTM models, respectively. Furthermore, the error scatter distribution is more concentrated, confirming the model’s significant enhancement in both prediction accuracy and stability. This work not only provides algorithmic technical support for thermal load forecasting in oil and gas gathering stations but also contributes to the adaptive optimization of deep learning models for industrial applications.

Author Contributions

Conceptualization, Z.H. and Z.W. (Zhiguo Wang); methodology, Z.H. and Z.W. (Zhiguo Wang); software, Z.H., B.R. and Z.Z.; validation, B.R., X.R., M.L. and Z.Z.; formal analysis, X.R., M.L. and Z.Z.; investigation, P.M. and Z.Z.; resources, P.M. and Z.W. (Zhiguo Wang); data curation, Z.H. and P.M.; writing—original draft preparation, Z.H. and Z.Z.; writing—review and editing, Z.W. (Ziyi Wu); supervision, Z.W. (Zhiguo Wang); project administration, Z.W. (Zhiguo Wang); funding acquisition, Z.W. (Zhiguo Wang). All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science and Technology Major Project (No. 2025ZD1408600).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The authors appreciate the guidance from Zhiguo Wang and the contributions of the co-authors.

Conflicts of Interest

The author Zhonglin Hu was employed by No. 1 Gas Production Plant, Xinjiang Oilfield Company, Karamay City, Xinjiang Uygur Autonomous Region, China. The author Pengzheng Mu was employed by Mahe Gas Production Operation Area, No. 1 Gas Production Plant, Xinjiang Oilfield Company, Karamay City, Xinjiang Uygur Autonomous Region, China. The authors Binyuan Rao and Xiaozhe Ru were employed by Process Research Institute, No. 1 Gas Production Plant, Karamay City, Xinjiang Uygur Autonomous Region, China. The author Mengkai Lv was employed by Kelameili Gas Production Operation Area, No. 1 Gas Production Plant, Karamay City, Xinjiang Uygur Autonomous Region, China. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.

References

  1. Wang, Z.; Duan, J.; Luo, F.; Qiu, X. Collaborative Forecasting of Multiple Energy Loads in Integrated Energy Systems Based on Feature Extraction and Deep Learning. Energies 2025, 18, 1048. [Google Scholar] [CrossRef] [Scilit]
  2. Zhu, J.; Yang, J.; Peng, M.; Cui, X.; Liang, X. A CNN-LSTM-attention (CLA) hybrid model with PID-based search algorithm (PSA) for heat load forecasting in district heating system. J. Build. Eng. 2025, 111, 113325. [Google Scholar] [CrossRef] [Scilit]
  3. Huang, J.; He, T.; Zhu, W.; Liao, Y.; Zeng, J.; Xu, Q.; Niu, Y. A lithium-ion battery SOH estimation method based on temporal pattern attention mechanism and CNN-LSTM model. Comput. Electr. Eng. 2025, 122, 109930. [Google Scholar] [CrossRef] [Scilit]
  4. Hee, W.C.; Hyeon, Y.G.; Joon, S.Y. District heater load forecasting based on machine learning and parallel CNN-LSTM attention. Energy 2022, 246, 123350. [Google Scholar] [CrossRef] [Scilit]
  5. Cui, X.; Zhu, J.; Jia, L.; Wang, J.; Wu, Y. A novel heat load prediction model of district heating system based on hybrid whale optimization algorithm (WOA) and CNN-LSTM with attention mechanism. Energy 2024, 312, 133536. [Google Scholar] [CrossRef] [Scilit]
  6. Wan, A.; Chang, Q.; Khalil, A.L.B.; He, J. Short-term power load forecasting for combined heat and power using CNN-LSTM enhanced by attention mechanism. Energy 2023, 282, 128274. [Google Scholar] [CrossRef] [Scilit]
  7. Wang, C.; Li, X.; Shi, Y.; Jiang, W.; Song, Q.; Li, X. Load forecasting method based on CNN and extended LSTM. Energy Rep. 2024, 12, 2452–2461. [Google Scholar] [CrossRef] [Scilit]
  8. Zhao, X.; Peng, H.; Zhang, L.; Ma, H. Research on a Short-Term Power Load Forecasting Method Based on a Three-Channel LSTM-CNN. Electronics 2025, 14, 2262. [Google Scholar] [CrossRef] [Scilit]
  9. Liu, Y.; Liang, Z.; Li, X. Enhancing short-term power load forecasting for industrial and commercial buildings: A hybrid approach using TimeGAN, CNN, and LSTM. IEEE Open J. Ind. Electron. Soc. 2023, 4, 451–462. [Google Scholar] [CrossRef] [Scilit]
  10. Wang, F.; Cen, J.; Yu, Z.; Deng, S.; Zhang, G. Research on a hybrid model for cooling load prediction based on wavelet threshold denoising and deep learning: A study in China. Energy Rep. 2022, 8, 10950–10962. [Google Scholar] [CrossRef] [Scilit]
  11. Yao, Z.; Zhang, T.; Wang, Q.; Zhao, Y. Short-Term Power Load Forecasting of Integrated Energy System Based on Attention-CNN-DBILSTM. Math. Probl. Eng. 2022, 2022, 1075698. [Google Scholar] [CrossRef] [Scilit]
  12. Yi, S.; Liu, H.; Chen, T.; Zhang, J.; Fan, Y. A deep LSTM-CNN based on self-attention mechanism with input data reduction for short-term load forecasting. IET Gener. Transm. Distrib. 2023, 17, 1538–1552. [Google Scholar] [CrossRef] [Scilit]
  13. An, W.; Gao, B.; Liu, J.; Ni, J.; Liu, J. Predicting hourly heating load in residential buildings using a hybrid SSA–CNN–SVM approach. Case Stud. Therm. Eng. 2024, 59, 104516. [Google Scholar] [CrossRef] [Scilit]
  14. Zhang, C.; Zhou, Y.; Lu, F.; Liu, J.; Zhang, J.; Yin, Z.; Ji, M.; Li, B. Assessing the performance and interpretability of the CNN-LSTM-Attention model for daily streamflow forecasting in typical basins of the eastern Qinghai-Tibet Plateau. Sci. Rep. 2025, 15, 82. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Er, B.M.; Koca, T. A Novel Approach for Motor Bearing Fault Detection Using EMD-Based Denoising and Detrended Fluctuation Analysis & LSTM Multimodal Hybrid Features with K-Means Clustering. J. Vib. Eng. Technol. 2026, 14, 103. [Google Scholar] [CrossRef] [Scilit]
  16. Khairunnisa, H.R.; Hendrawan, A. LSTM Forecasting and K-Means Clustering for Passenger Mobility Management at Bus Terminals. J. Inf. Syst. Inform. 2025, 7, 2129–2146. [Google Scholar] [CrossRef] [Scilit]
  17. Yu, X.B.; Li, C.L.; Chen, H.; Yu, X. Evaluate the effectiveness of multiobjective evolutionary algorithms by box plots and fuzzy TOPSIS. Int. J. Comput. Intell. Syst. 2019, 12, 733–743. [Google Scholar] [CrossRef] [Scilit]
  18. Liu, W. Cooling, Heating and Electric Load Forecasting for Integrated Energy Systems Based on CNN-LSTM. In Proceedings of the 2021 6th International Conference on Power and Renewable Energy (ICPRE), Shanghai, China, 17–20 September 2021; pp. 808–812. [Google Scholar] [CrossRef] [Scilit]
  19. Guo, W.; Liu, S.; Weng, L.; Liang, X. Power Grid Load Forecasting Using a CNN-LSTM Network Based on a Multi-Modal Attention Mechanism. Appl. Sci. 2025, 15, 2435. [Google Scholar] [CrossRef] [Scilit]
  20. Liu, X.; Song, J.; Tao, H.; Wang, P.; Mo, H.; Du, W. Quarter-Hourly Power Load Forecasting Based on a Hybrid CNN-BiLSTM-Attention Model with CEEMDAN, K-Means, and VMD. Energies 2025, 18, 2675. [Google Scholar] [CrossRef] [Scilit]
  21. Zhang, X.; Zhang, C.; Ma, Y.; Liu, K. Building Cooling Load Prediction Based on GWO-CNN-LSTM. Energies 2026, 19, 498. [Google Scholar] [CrossRef] [Scilit]
  22. Jung, S.; Moon, J.; Park, S.; Hwang, E. An attention-based multilayer GRU model for multistep-ahead short-term load forecasting. Sensors 2021, 21, 1639. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Cui, J.; Lv, C.; Qu, X.; Du, J.; Wang, H. Development of an intelligent CNN-LSTM-attention model for acoustic emission-based fracture detection and structural health monitoring in marine steel structures. Ocean Eng. 2025, 339, 122002. [Google Scholar] [CrossRef] [Scilit]
  24. Chen, H.; Zhang, Z.; Tong, S.; Chen, P.; Wang, Z.; Huang, H. An Ultra-Short-Term Wind Power Prediction Method Based on Quadratic Decomposition and Multi-Objective Optimization. EAI Endorsed Trans. Energy Web 2024, 11, 123–134. [Google Scholar] [CrossRef] [Scilit]
  25. Chen, J.; Zheng, L.; Che, W.; Liu, L.; Huang, H.; Liu, J.; Xing, C.; Qiu, P. A method for measuring carbon emissions from power plants using a CNN-LSTM-Attention model with Bayesian optimization. Case Stud. Therm. Eng. 2024, 63, 105334. [Google Scholar] [CrossRef] [Scilit]
  26. Tang, J.; Li, Y.; Ding, M.; Liu, H.; Yang, D.; Wu, X. An Ionospheric TEC Forecasting Model Based on a CNN-LSTM-Attention Mechanism Neural Network. Remote Sens. 2022, 14, 2433. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.