A method for predicting industrial energy load by coupling Copula and LSTM

By coupling Copula and LSTM, using K-Means algorithm clustering and Copula algorithm analysis, key elements are selected as the input of the LSTM network, which solves the problem of insufficient accuracy and stability in energy load forecasting of industrial enterprises, and achieves Efficient energy load forecasting.

CN114004414BActive Publication Date: 2024-08-23STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111311602.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-08-23
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

Existing technologies have problems with insufficient accuracy and stability in energy load forecasting for industrial enterprises. Especially in the absence of a large amount of historical data, traditional methods are difficult to achieve efficient dynamic forecasting of thermal loads.

Method used

The method of coupling Copula and LSTM is used to cluster the historical energy load data through the K-Means algorithm, and the Copula algorithm is used to analyze the nonlinear correlation between clustering and undetermined elements, and the most influential elements are selected as LSTM The input of the network enables accurate prediction of the energy load of industrial enterprises.

Benefits of technology

It improves the accuracy and stability of energy load prediction, can effectively predict the energy load of industrial enterprises accurately, and is suitable for various types of industrial enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114004414B
    Figure CN114004414B
Patent Text Reader

Abstract

The present invention relates to a method for predicting the energy load of industrial enterprises by coupling Copula and LSTM, comprising: collecting real-time data of selected elements of the industrial enterprises to be predicted, and inputting the trained LSTM deep neural network model to obtain the predicted energy load of the industrial enterprises to be predicted; wherein the selection process of the selected elements comprises the following steps: 1) collecting historical data of energy load of various types of industrial enterprises and historical data of several types of elements to be determined at corresponding time points to form a sample data set; 2) preprocessing the sample data set; 3) clustering the historical data of energy load using the K-Means algorithm to obtain several clusters; 4) analyzing the nonlinear correlation between the clusters and the elements to be determined by the Copula algorithm, and selecting the selected elements from all the elements to be determined. Compared with the prior art, the present invention has the advantages of high accuracy and strong stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an energy load forecasting technology, and in particular to an industrial energy load forecasting method coupling Copula and LSTM. Background Art

[0002] With the upgrading of energy systems and energy technologies, integrated energy systems and multi-energy complementary distributed energy systems have been widely developed and applied. At the same time, energy technologies are gradually becoming intelligent and diversified, and the supply and demand system is gradually dominated by the demand side, forming an on-demand energy supply model. Mining the energy consumption characteristics of the demand side, understanding the energy consumption behavior of end users, and flexibly allocating demand-side resources are effective ways to solve the problem of supply and demand balance and improve system energy efficiency. In particular, industrial enterprises have the characteristics of many types, high energy consumption, and obvious energy consumption characteristics. In addition, industrial enterprises have the problem of heat load supply and demand balance in the process of centralized heating. Accurate and efficient heat load dynamic prediction technology is the premise and basis for solving the centralized heating problems of industrial enterprises, and can effectively support the safe and stable operation of energy systems and the formulation of relevant energy management policies.

[0003] There are many forecasting methods used in various industries, but most of them have their own limitations and restrictions on use conditions. Most forecasting methods are based on the analysis of historical data. The difference lies in the way the data is processed and the applicable system. The traditional heat load forecasting methods can basically be divided into time series method and regression analysis method. The time series method requires a large amount of historical data as a basis. Meteorological factors have a greater impact on the accuracy of load forecasting and are generally suitable for short-term load forecasting. The regression analysis method starts from the relationship between various phenomena in the system and calculates the future state quantity of the forecast object through the trend of change. It must use a large amount of historical data as a reference. Due to the lack of a large amount of historical data Support, the traditional forecasting method has developed into gray system forecasting. Gray forecasting is modeled through gray modules and uses correlation analysis instead of regression analysis. It is suitable for small sample data analysis, but the discrete degree of the original data will affect the forecasting effect. It is suitable for medium and long-term forecasting; the current load factor forecasting method is usually combined with load simulation software. By building a user model, the allocation factors for each hour and each month are determined to forecast the energy load; with the introduction of neural network forecasting methods into the field of load forecasting, there is no need to give an analytical relationship between input and output. The energy load is predicted by establishing a nonlinear mapping between input and output, and gradually developed into models such as BP neural network and RBF neural network. A single forecasting method has its advantages, but it cannot avoid defects and deficiencies in certain aspects, and the applicable conditions will also affect the accuracy of load forecasting. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide an industrial energy load forecasting method coupling Copula and LSTM, which has high accuracy and strong stability.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A method for predicting industrial energy load by coupling Copula and LSTM, comprising:

[0007] Collect the historical data of energy load and selected factors of the industrial enterprises to be predicted, and input them into the trained LSTM deep neural network model to obtain the predicted energy load of the industrial enterprises to be predicted;

[0008] The selection process of the selected elements includes the following steps:

[0009] 1) Collect historical data on energy loads of various types of industrial enterprises and historical data on several undetermined elements at corresponding time points to form a sample data set;

[0010] 2) Preprocess the sample data set;

[0011] 3) Use K-Means algorithm to cluster the energy load historical data and obtain several clusters;

[0012] 4) Analyze the nonlinear correlation between clusters and undetermined elements through the Copula algorithm, and select the selected elements from all undetermined elements;

[0013] The present invention first uses the K-Means algorithm to cluster the historical data of energy load of various types of industrial enterprises, clarifies the energy consumption characteristics of industrial enterprises, and analyzes the nonlinear correlation between clustering and undetermined factors through the Copula algorithm, and selects the factors that most affect the load forecast as the input of the LSTM network with memory function, so as to realize the energy load forecast of industrial enterprises and effectively and accurately predict the energy load of industrial enterprises.

[0014] Furthermore, the training process of the LSTM deep neural network model includes:

[0015] Collect historical data on energy loads of various types of industrial enterprises and historical data on selected elements at corresponding time points to form a training set;

[0016] Use the training set to train the LSTM deep neural network model.

[0017] Furthermore, the step 3) comprises:

[0018] The K-Means algorithm is used to cluster the historical energy load data into hourly clusters throughout the year, annual energy consumption fluctuation clusters, and annual typical day clusters.

[0019] Furthermore, the optimal number of clusters of the K-Means algorithm is determined by the similarity formula;

[0020] The similarity calculation formula is:

[0021]

[0022] k min ≤k≤k max

[0023] Among them, k is the number of clusters, CH(k) is the similarity between clusters, and k min is the set value, n is the number of historical data of energy load, trB(k) is the trace of the intra-class deviation matrix, and trW(k) is the trace of the inter-class deviation matrix;

[0024] When CH(k) takes the maximum value, the corresponding number of clusters is the optimal number of clusters.

[0025] Furthermore, the step 4) comprises:

[0026] Calculate the correlation parameter between each cluster and the undetermined element, and select several undetermined elements from large to small according to the absolute value of the correlation parameter as the selected elements;

[0027] The calculation formula of the correlation parameter ρ is:

[0028]

[0029]

[0030] Where x and y represent clusters and undetermined elements, respectively, N is the total number of sample data sets, F(x) and E(y) are the marginal distribution functions of clusters and undetermined elements, respectively, and I [] Represents the indicative function. When the condition is met, I [] =1, otherwise it is 0.

[0031] Furthermore, the step 2) comprises:

[0032] De-noising the historical data of energy load;

[0033] Normalize the historical data of energy load and historical data of undetermined elements;

[0034] De-noising is used to reduce the impact of data noise on the training process of the LSTM deep neural network model, and normalization is used to reduce the amount of calculation.

[0035] Furthermore, the denoising process includes:

[0036] Find data noise points from historical energy load data and repair them through similarity calculation formula.

[0037] Further, it is determined whether the energy load data point satisfies the judgment inequality, if so, the energy load data point is determined to be a data noise point, otherwise, the energy load data point is determined not to be a data noise point;

[0038] The judgment inequality is:

[0039]

[0040]

[0041]

[0042] Among them, ε is the set threshold, X n,i is the i-th energy load data point on the n-th day.

[0043] Furthermore, the similarity calculation formula is:

[0044]

[0045] Among them, α+β+γ=1, N is the total number of sample data sets, is the correction value of the ith energy load data point on the nth day, X n,i-1 and X n,i+1 X n,i The two most recent energy load data points, For X n,i Four nearby energy load data points.

[0046] Furthermore, the normalization process includes:

[0047] Assume that the sample data set is a matrix X, and the expression of X is:

[0048]

[0049] Among them, u is the total number of sample data sets, and v is the number of sample data in each group;

[0050] Normalize each column of data in matrix X through the normalization calculation formula to obtain the normalized matrix X R , the X R The expression is:

[0051]

[0052] The normalized calculation formula is:

[0053]

[0054] Compared with the prior art, the present invention has the following beneficial effects:

[0055] The method for predicting the energy load of industrial enterprises of the present invention first uses the K-Means algorithm to cluster the historical data of energy loads of various types of industrial enterprises, clarifies the energy consumption characteristics of industrial enterprises, and analyzes the nonlinear correlation between clustering and undetermined factors through the Copula algorithm, and selects the factors that most affect the load prediction as input evidence of the LSTM network with memory function, thereby increasing the ability of LSTM neurons to capture information weights, realizing the prediction of the energy load of industrial enterprises, and being able to effectively and accurately predict the energy load of industrial enterprises, thereby improving the accuracy and stability of energy load prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of the selected process for the selected elements;

[0057] Figure 2 It is a comparison chart of the predicted value and the true value of the first prediction model;

[0058] Figure 3 A comparison chart of the predicted value and the true value of the second prediction model;

[0059] Figure 4 It is a MAPE comparison chart of the prediction results of the first prediction model and the second prediction model;

[0060] Figure 5 This is a structural diagram of the LSTM deep neural network model. DETAILED DESCRIPTION

[0061] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0062] A method for predicting industrial energy load by coupling Copula and LSTM, comprising:

[0063] Collect the historical data of energy load and selected factors of the industrial enterprises to be predicted, and input them into the trained LSTM deep neural network model to obtain the predicted energy load of the industrial enterprises to be predicted;

[0064] Among them, Figure 1 , the selection process of the selected elements includes the following steps:

[0065] 1) Collect historical data on energy loads of various types of industrial enterprises and historical data on several undetermined elements at corresponding time points to form a sample data set;

[0066] 2) Preprocess the sample data set;

[0067] 3) Use K-Means algorithm to cluster the energy load historical data and obtain several clusters;

[0068] 4) The nonlinear correlation between clusters and pending elements is analyzed through the Copula algorithm, and the selected elements are selected from all pending elements.

[0069] In this embodiment, the energy load is the accumulated heat, and the undetermined factors include the annual gas consumption, annual operating hours, maximum flow, average flow, temperature, pressure and density of various industrial enterprises. The annual accumulated heat historical data of various types of industrial enterprises and the historical data of the undetermined factors at the corresponding time points are collected to form a sample data set. The time resolution of the annual accumulated heat is 1 hour.

[0070] The industrial energy load forecasting method proposed in this embodiment can be used to obtain forecast data of the annual accumulated heat of the industrial enterprise.

[0071] Step 2) includes:

[0072] De-noising the historical data of energy load;

[0073] Normalize the historical data of energy load and historical data of undetermined elements;

[0074] De-noising is used to reduce the impact of data noise on the training process of the LSTM deep neural network model, and normalization is used to reduce the amount of calculation.

[0075] The denoising process includes:

[0076] Find data noise points from historical energy load data and repair them through similarity calculation formula.

[0077] Determine whether the energy load data point satisfies the judgment inequality, if so, determine that the energy load data point is a data noise point, otherwise, determine that the energy load data point is not a data noise point;

[0078] The judgment inequality is:

[0079]

[0080]

[0081]

[0082] Among them, ε is the set threshold, X n,i is the ith energy load data point on the nth day. In this embodiment, ε is set to 1.2.

[0083] The similarity calculation formula is:

[0084]

[0085] Among them, α+β+γ=1, N is the total number of sample data sets, is the correction value of the ith energy load data point on the nth day, X n,i-1 and X n,i+1 X n,i The two most recent energy load data points, For X n,i Four nearby energy load data points.

[0086] The normalization process includes:

[0087] Assume that the sample data set is a matrix X, and the expression of X is:

[0088]

[0089] Among them, u is the total number of sample data sets, and v is the number of sample data in each group;

[0090] Normalize each column of data in the matrix X through the normalization calculation formula to obtain the dimensionless normalized matrix X R , X R The expression is:

[0091]

[0092] The normalized calculation formula is:

[0093]

[0094] Step 3) includes:

[0095] The K-Means algorithm is used to cluster the historical energy load data into hourly clusters throughout the year, annual energy consumption fluctuation clusters, and annual typical day clusters.

[0096] The optimal number of clusters for the K-Means algorithm determined by the similarity formula;

[0097] The similarity calculation formula is:

[0098]

[0099] k min ≤k≤k max

[0100] Among them, k is the number of clusters, CH(k) is the similarity between clusters, and k min =2, n is the number of historical data of energy load, trB(k) is the trace of the intra-class deviation matrix, and trW(k) is the trace of the inter-class deviation matrix;

[0101] When CH(k) takes the maximum value, the corresponding number of clusters is the optimal number of clusters.

[0102] Step 4) includes:

[0103] Calculate the correlation parameter between each cluster and the undetermined element, and select several undetermined elements from large to small according to the absolute value of the correlation parameter as the selected elements;

[0104] The calculation formula of the correlation parameter ρ is:

[0105]

[0106]

[0107] Where x and y represent clusters and undetermined elements, respectively, N is the total number of sample data sets, F(x) and E(y) are the marginal distribution functions of clusters and undetermined elements, respectively, and I [] Represents the indicative function. When the condition is met, I [] =1, otherwise it is 0;

[0108] ρ<0 indicates that there is a negative correlation between the tabular clustering and the undetermined elements, ρ>0 indicates that there is a positive correlation between the tabular clustering and the undetermined elements, and ρ=0 indicates that the correlation between the tabular clustering and the undetermined elements is to be determined.

[0109] The structure of the LSTM deep neural network model is as follows Figure 5 As shown, the expression of the LSTM deep neural network model is:

[0110] i t =S·(W xi x t +W hi h t-1 +W ci c t-1 +σ i )

[0111] f t =S·(W xf x t +W hf h t-1 +W cfc t-1 +σ h )

[0112] o t =S·(W xo x t +W ho h t-1 +W co c t-1 +σ o )

[0113]

[0114] h t =T·(c t ) t

[0115] Among them, i t represents the input gate, f t represents the forget gate, o t represents the input gate, U t Represents a memory unit, h t represents the final output, S·() and T·() represent activation functions, which use nonlinear sigmoid function and tanh function respectively; W xi , W xf , W xo , W xc Connect input information separately t The weight matrix, W hi , W hf , W ho and W hc They are the connected neuron activation function output o t and diagonal matrix; σ i , σ h , σ o and σ c are the bias of the input gate, forget gate, output gate and memory unit respectively; U t i t To add to the new cell state c t The candidate value of c t-1 f t is to put the preceding information c t-1 Perform screening and forgetting; U t i t Determine the state of retention of previous information. In short, the LSTM grid has a supervisory feature during training and learning. It uses a special gate structure to judge and determine whether the data of each time step is relevant, thereby determining whether it is stored and passed to the next neural link.

[0116] The training process of the LSTM deep neural network model includes:

[0117] Collect historical energy load data of various types of industrial enterprises and historical data of selected elements at corresponding time points, and divide them into training sets, validation sets and test sets;

[0118] Using the training set, the LSTM deep learning network model is trained in the deep learning framework, and the weight information of the training is saved. When training the network model, the maximum number of training times is set to 5000, the learning rate is set to 0.005, the MiniBatchSize is set to 130, the MaxEpochs is set to 180, the loss function is MSE, the hidden layer activation function defaults to the Rule function, and the Adam solver is used. A two-layer LSTM output structure is used, and the inter-layer output is modified to True through return_sequences to achieve 3D data output.

[0119] Load the trained LSTM deep neural network model, verify the training model through the validation set, perform energy load forecast simulation on the test set while satisfying the model generalization ability, and obtain the forecast data of the industrial enterprise's annual accumulated heat. During the simulation process, continuously optimize the revised parameters until the prediction error is minimized, and obtain the final energy load forecast data;

[0120] The mean absolute error (MAPE) is used to evaluate the forecast results of the annual accumulated load. The calculation formula of MAPE is:

[0121]

[0122] Where n is the number of samples, m(x) is the mean of the samples, and x is i It represents the i-th sample. Since the deviation is converted to an absolute value, there will be no positive and negative offset, because the mean absolute error can better reflect the actual situation of the prediction error.

[0123] In this embodiment, the energy load historical data and the selected factor historical data are used as training sets to train the LSTM deep neural network model to obtain the first prediction model. The comparison results between the predicted value and the true value of the first prediction model are as follows: Figure 2 As shown in Figure 2, only the historical data of energy load is used as the training set. After training the LSTM deep neural network model, the second prediction model is obtained. The comparison results between the predicted value and the true value of the second prediction model are shown in Figure 2. Figure 3 As shown in the figure, the LSTM model is trained and the actual accumulated heat of industrial enterprises in the test set is used for ultra-short-term one-hour verification analysis. Figure 4This is a MAPE comparison chart of the prediction results of the first prediction model and the second prediction model. The overall average prediction errors are 5.57% and 6.08% respectively. The results show that when the energy load historical data and the selected factor historical data are used as training sets, the model has a more accurate prediction ability, which proves that when the selected factors are added as prediction input evidence, the ability of LSTM neurons to capture information weights is increased.

[0124] This embodiment proposes a method for predicting the energy load of industrial enterprises by coupling Copula and LSTM. First, the K-Means algorithm is used to cluster the historical data of energy loads of various types of industrial enterprises to clarify the energy consumption characteristics of industrial enterprises. The Copula algorithm is used to analyze the nonlinear correlation between clustering and undetermined factors, and the factors that most affect the load prediction are selected as the input of the LSTM network with memory function to realize the energy load prediction of industrial enterprises, which can effectively and accurately predict the energy load of industrial enterprises.

[0125] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A method for predicting industrial energy load by coupling Copula and LSTM. It is characterized in that include: Collect the historical data of energy load and selected factors of the industrial enterprises to be predicted, and input them into the trained LSTM deep neural network model to obtain the predicted energy load of the industrial enterprises to be predicted; The selection process of the selected elements includes the following steps: 1) Collect historical data on energy loads of various types of industrial enterprises and historical data on several undetermined elements at corresponding time points to form a sample data set; 2) Preprocess the sample data set; 3) Use K-Means algorithm to cluster the energy load historical data and obtain several clusters; 4) Analyze the nonlinear correlation between clusters and undetermined elements through the Copula algorithm, and select the selected elements from all undetermined elements; The optimal number of clusters for the K-Means algorithm determined by the similarity formula; The similarity calculation formula is: k min ≤k≤k max Among them, k is the number of clusters, CH(k) is the similarity between clusters, and k min is the set value, n is the number of historical data of energy load, trB(k) is the trace of the intra-class deviation matrix, and trW(k) is the trace of the inter-class deviation matrix; When CH(k) takes the maximum value, the corresponding number of clusters is the optimal number of clusters; The step 4) comprises: Calculate the correlation parameter between each cluster and the undetermined element, and select several undetermined elements from large to small according to the absolute value of the correlation parameter as the selected elements; The calculation formula of the correlation parameter ρ is: Where x and y represent clusters and undetermined elements, respectively, N is the total number of sample data sets, F(x) and E(y) are the marginal distribution functions of clusters and undetermined elements, respectively, and I [] Represents the indicative function. When the condition is met, I [] =1, otherwise it is 0; The step 2) comprises: De-noising the historical data of energy load; Normalize the historical data of energy load and historical data of undetermined elements; The denoising process includes: Find data noise points from historical energy load data and repair the data noise points using similarity calculation formulas; Determine whether the energy load data point satisfies the judgment inequality, if so, determine that the energy load data point is a data noise point, otherwise, determine that the energy load data point is not a data noise point; The judgment inequality is: Among them, ε is the set threshold, X n,i is the ith energy load data point on the nth day; The similarity calculation formula is: Among them, α+β+γ=1, N is the total number of sample data sets, is the correction value of the ith energy load data point on the nth day, X n,i-1 and X n,i+1 X n,i The two most recent energy load data points, For X n,i Four nearby energy load data points; The normalization process includes: Assume that the sample data set is a matrix X, and the expression of X is: Among them, u is the total number of sample data sets, and v is the number of sample data in each group; Normalize each column of data in matrix X through the normalization calculation formula to obtain the normalized matrix X R , the X R The expression is: The normalized calculation formula is:

2. According to the method for predicting the energy load of industrial enterprises by coupling Copula and LSTM according to claim 1, It is characterized in that The training process of the LSTM deep neural network model includes: Collect historical data on energy loads of various types of industrial enterprises and historical data on selected elements at corresponding time points to form a training set; Use the training set to train the LSTM deep neural network model.

3. According to the method for predicting industrial energy load by coupling Copula and LSTM in claim 1, It is characterized in that The step 3) comprises: The K-Means algorithm is used to cluster the historical energy load data into hourly clusters throughout the year, annual energy consumption fluctuation clusters, and annual typical day clusters.

Citation Information

Patent Citations

  • Copula and stacked LSTM network coupled park multivariate load joint prediction method coupled with

    CN112116153A

  • Short-term reactive load prediction method and device based on ensemble empirical mode

    CN112163710A

  • Short-term electrical load prediction method

    CN112766537A

  • Copula-DBiLSTM-based multi-element load accurate prediction method for integrated energy system

    CN112836884A

  • Multi-energy load prediction method and system for integrated energy system

    CN113591368A