Power load combination prediction method
Through the power load combination forecasting method, the CNN-LSTM network and SVR algorithm of sequence decomposition and multi-scale feature extraction are used to build a composite model, which solves the nonlinear and trend data representation problems of power load forecasting in the existing technology, and improves forecasting accuracy and system operation support capabilities.
Patent Information
- Application Number
- CN202410935361.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-29
AI Technical Summary
Existing power load forecasting methods are difficult to accurately represent nonlinear and trend data, resulting in inaccurate forecast results, and low historical data fitting accuracy, which affects future load forecast accuracy.
The power load combination forecasting method is used to obtain linear and nonlinear components through sequence decomposition, and the multi-scale feature extraction CNN-LSTM network and support vector regression SVR algorithm are used to train the model, a composite forecast model is constructed, and the power load forecasting results are superimposed and reconstructed.
It improves the accuracy and generalization of power load forecasting and enhances support for intelligent operation dispatching of the power system and user power market transactions.
Smart Images

Figure CN118868064A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power load forecasting, and more specifically, to a power load combination forecasting method. Background Art
[0002] Urban power load forecasting is a basic work in the field of electrical engineering. Doing a good job in urban power load forecasting can reasonably arrange the maintenance of electrical equipment, scientifically guide power operation and dispatching, achieve peak power consumption, operate at the lowest cost, ensure that users are provided with reliable power and meet safety and quality requirements. In addition, scientific load characteristic forecasting can subdivide the power market, improve the service quality of power supply companies, and meet the power needs of power users. At the same time, power companies strive to grasp the information of regional load changes in a timely and accurate manner, as well as the formulation of bidding mechanisms for third-party power sales companies, raising the importance and urgency of load forecasting to an unprecedented level, and also placing higher requirements on its accuracy.
[0003] The invention patent with announcement number CN112801388B discloses a method and system for predicting power load based on nonlinear time series algorithm. Based on the adaptive nonlinear time series algorithm, a power load prediction model is constructed; based on the evaluation data set, the power load prediction model is evaluated; historical data, additional analysis data and forecast days are input, and the daily power load in the future time period is predicted using the power load prediction model that has passed the evaluation.
[0004] However, in terms of the prediction methods currently used, three problems need to be solved in the actual prediction process of power load. First, the real-time data of power load is generally nonlinear, and this nonlinear data is difficult to accurately represent with a single prediction model, resulting in certain errors. Second, the real-time data of power load contains both the trend of its own rules and the volatility affected by external factors, and these two attributes are difficult to represent by introducing two related variables in the same mathematical model. If a mathematical model that reflects these two characteristics at the same time cannot be established, the prediction results will be inaccurate. Third, the changes in power load data are random, which increases the difficulty of fitting historical data. However, if other models with low fitting accuracy for historical data are used, the prediction accuracy of the model for future power load cannot be guaranteed. Summary of the invention
[0005] In view of this, the present application provides a combined power load forecasting method to make up for the problem that a single model cannot interpret the complexity of the power load sequence, enhance the generalization of the forecasting model, and improve the accuracy of load forecasting.
[0006] The technical solutions provided by this application are as follows:
[0007] A method for combined power load prediction includes: obtaining historical power load data of a preset time period, and performing sequence decomposition on the historical power load data to obtain linear components and nonlinear components; performing zero-crossing rate detection on the linear components and nonlinear components respectively to obtain high-frequency nonlinear components and low-frequency linear components; training a multi-scale feature extraction CNN-LSTM network based on the high-frequency nonlinear component to obtain a first load prediction model for outputting a nonlinear component prediction result of the load in a time period to be predicted; obtaining a second load prediction model based on a support vector regression SVR algorithm and the low-frequency linear component training to output a linear component prediction result of the load in a time period to be predicted; reconstructing the nonlinear component prediction result and the linear component prediction result to obtain a power load prediction result, and obtaining a prediction error of the power load prediction result based on a mean absolute percentage error MAPE, a mean absolute error MAE, a root mean square error RMSE and a determination coefficient R2, and updating the power load prediction result.
[0008] In one possible implementation, before performing sequence decomposition on the historical power load data, the method further includes: dividing the historical power load data into a training set and a test set;
[0009] The obtaining of the linear component and the nonlinear component comprises:
[0010] Based on ensemble empirical mode decomposition (EEMD), the training set and the test set are sequentially decomposed to obtain corresponding linear components and nonlinear components.
[0011] In one possible implementation, the historical power load data is subjected to sequence decomposition to obtain linear components and nonlinear components, including:
[0012] Converting the historical power load data into a signal to be decomposed, and adding Gaussian white noise to the signal to be decomposed i times;
[0013] Perform empirical mode decomposition (EMD) on the signal to be decomposed with Gaussian white noise added to obtain i groups of intrinsic mode function (IMF) components and residual components;
[0014] The IMF components and the residual components are averaged to obtain the linear components and the nonlinear components of the integrated empirical mode decomposition EEMD.
[0015] In one possible implementation, the zero-crossing rate is expressed as:
[0016]
[0017] Where Z represents the zero-crossing rate, n zero represents the number of signal zero crossing points, and N represents the signal length.
[0018] In one possible implementation, performing zero-crossing rate detection on the linear component and the nonlinear component to obtain a high-frequency nonlinear component and a low-frequency linear component includes:
[0019] The zero-crossing rate values of each linear component and nonlinear component are calculated, and the nonlinear components whose zero-crossing rate values are greater than a preset threshold are classified as high-frequency nonlinear components, and the linear components whose zero-crossing rate values are less than or equal to the preset threshold are classified as low-frequency linear components.
[0020] In one possible implementation, a multi-scale feature extraction CNN-LSTM network includes a feature pyramid CNN network and a long short-term memory network LSTM;
[0021] The feature pyramid CNN network includes a convolution layer, a pooling layer and a fully connected layer; the convolution layer is used to perform a convolution operation on the input nonlinear component to obtain local features; the pooling layer is used to reduce the dimension of the local features and output the reduced dimension features to the fully connected layer and / or the long short-term memory network LSTM for load forecasting.
[0022] In one possible implementation, the feature pyramid CNN network includes three causal dilated convolutional layers;
[0023] The training of the multi-scale feature extraction CNN-LSTM network to obtain a first load forecasting model for outputting a nonlinear component forecast result of the load in the time period to be forecasted includes:
[0024] Construct a feature pyramid structure of the time series based on causal dilated convolution, and input the time series X into the pyramid feature CNN module;
[0025] The one-dimensional causal expansion convolution layer uses GELU as the activation function, and generates three time scale feature maps F1, F2 and F3 in turn through three layers of convolution, and outputs the feature map F1 after passing through the pooling layer respectively. * 、F2 * and F3 *
[0026] The feature map F1 * 、F2 * and F3 * The fused features are added and outputted, and the fused features are used to output the nonlinear component prediction results through the LSTM network and the Dense layer.
[0027] In one possible implementation, the dilation coefficients of the three causal dilated convolutional layers are [1, 2, 3];
[0028] When the input sequence length is 12, the convolution kernel length of the causal dilated convolution layer is 3;
[0029] When the input sequence length is 24, the convolution kernel length of the causal dilated convolution layer is 4.
[0030] In one possible implementation, the long short-term memory network LSTM includes two LSTM layers with the number of neurons being [64,32].
[0031] In one possible implementation, the second load forecasting model is obtained based on the support vector regression SVR algorithm and the low-frequency linear component training, including:
[0032] Given a training set D = {(x i ,y i ),i=1,2,...,m} and x i ∈R N ,y i ∈R N , mapped to the high-dimensional feature space through nonlinear transformation, the mapping function is:
[0033] f(x)=w T ·φ(x)+b
[0034] Among them, (x i ,y i ) is the data point, w is the weight, b is the cutoff distance, and φ(x) is the nonlinear transformation;
[0035] According to the general principle of maximum margin band and minimization of loss function, the slack variable ξ is introduced i ≥0,ξ i * ≥0, the optimization objective function is as follows:
[0036]
[0037] sty i -w T x i -b≤ε+ξ i
[0038] w T x i -b-yi≤ε+ξ i *
[0039] ξ i ,ξ i * ≥0,i=1,2,...,m
[0040] Among them, C is the penalty parameter, ε is the insensitive loss function, and the Lagrange multiplier α is introduced i ,α i* and kernel function K(xi,x)=φ(x i )·φ(x), and after solving the partial derivatives, the second load forecasting model is obtained as follows:
[0041]
[0042] Compared with the prior art, the technical solution of this application has the following beneficial effects:
[0043] This application proposes a combined prediction model that integrates sequence decomposition and multi-scale feature extraction. By decomposing the power load sequence, a composite model composed of linear and nonlinear networks is constructed according to the sequence features decomposed in different dimensions, and the superposition and reconstruction are used to form the power load prediction result. The improved combined load prediction model can fully make up for the problem that a single model cannot interpret the complexity of the power load sequence, and enhance the generalization of the prediction model. It can effectively improve the accuracy of load prediction, provide strong guarantee for the intelligent operation and dispatch of the power system, and support online transactions in the user power market. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A flowchart of a power load combination prediction method provided in Example 1 of the present application.
[0046] Figure 2 A flowchart of a sequence decomposition provided in Example 1 of the present application.
[0047] Figure 3 A schematic diagram of the convolution layer and pooling layer of the one-dimensional CNN provided in Example 1 of the present application.
[0048] Figure 4 A schematic diagram of a multi-scale feature extraction CNN-LSTM network provided in an embodiment of the present application.
[0049] Figure 5 A schematic diagram of an LSTM network structure provided in Example 1 of the present application.
[0050] Figure 6 A flowchart of a power load combination prediction method provided in Example 2 of the present application.
[0051] Figure 7A schematic diagram of a training set decomposition result provided in Example 2 of the present application.
[0052] Figure 8 A schematic diagram of a power load forecast result provided in Example 2 of the present application. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] Embodiment 1:
[0055] See also Figure 1 , is a flow chart of a power load combination prediction method provided in Example 1 of the present application. Figure 1 As shown in , the specific implementation steps of the above method include:
[0056] Step 101: Obtain historical power load data for a preset time period, and perform sequence decomposition on the historical power load data to obtain linear components and nonlinear components.
[0057] Optionally, the above preset time period can be set according to actual conditions, and the present application embodiment does not make specific limitations. In a specific application scenario, the hourly load of six days per month from January 2016 to August 2017 in a certain city is selected as the historical power load data.
[0058] Before performing sequence decomposition on the above historical power load data, the method further includes dividing the historical power load data into a training set and a test set. For example, the data division is that the load from January to December 2016 is used as the training set, of which the last 15% of the data is used as the validation set; the load from January to August 2017 is used as the test set. Then, the ensemble empirical mode decomposition (EEMD) algorithm is used to decompose the training set and the test set respectively, and the linear and nonlinear components in the power load are separated.
[0059] It should be noted that traditional EMD decomposition cannot decompose signals without enough extreme points, and it is easy to have mode mixing of the decomposed subsequences. For this reason, white noise is added to the signal to be decomposed, and the uniform distribution characteristics of the white noise spectrum are used. When the signal is added to the white noise background with uniform distribution throughout the entire time-frequency space, the signals of different time scales will automatically be distributed to the appropriate reference scale, and due to the zero mean characteristic of the noise, the noise will cancel each other out after multiple averaging, and the result of the integrated mean can be used as the final result.
[0060] like Figure 2 As shown in FIG. 1 , it is a flowchart of a sequence decomposition provided in Example 1 of the present application. EEMD is essentially a multiple EMD decomposition of a signal with white noise added. The decomposition flowchart is shown in FIG. Figure 1 As shown in the figure, Gaussian white noise is added to the original signal i times, and the sequences with added noise are decomposed by EMD respectively to obtain i groups of IMF components and residual components. The components of each order of EEMD decomposition are obtained by averaging them.
[0061] Step 102: Perform zero-crossing rate detection on the linear component and the nonlinear component respectively to obtain a high-frequency nonlinear component and a low-frequency linear component.
[0062] Specifically, the zero-crossing rate is defined as:
[0063]
[0064] Where Z represents the zero-crossing rate, n zero represents the number of signal zero crossing points, and N represents the signal length.
[0065] According to the above formula, the zero-crossing rate values of each linear component and nonlinear component are calculated, and the nonlinear components with zero-crossing rate values greater than the preset threshold are classified as high-frequency nonlinear components, and the linear components with zero-crossing rate values less than or equal to the preset threshold are classified as low-frequency linear components. Based on the results of multiple experiments, this paper sets the preset threshold of zero-crossing rate to 0.2 to divide high- and low-frequency components.
[0066] Step 103: Based on the high-frequency nonlinear component, a multi-scale feature extraction CNN-LSTM network is trained to obtain a first load forecasting model. The first load forecasting model is used to output a nonlinear component forecast result of the load in the forecasting time period.
[0067] Specifically, a multi-scale feature extraction CNN-LSTM network includes a feature pyramid CNN network and a long short-term memory network LSTM.
[0068] The feature pyramid CNN network consists of convolutional layers, pooling layers, and fully connected layers. The convolutional layer performs convolution operations on the input sequence to extract local features of the input. The pooling layer is used to further extract features, reduce output complexity, and prevent data overfitting. Figure 3 As shown in the figure, the convolution layer is composed of multiple convolution kernels, each of which performs convolution operation with the input, and its parameters are optimized by the back propagation algorithm. After the convolution layer, the pooling layer reduces the dimension of the extracted features, and the final output features can be passed to the fully connected layer or other networks for further calculation.
[0069] The parameters of the multi-scale feature extraction CNN-LSTM network are set as follows: (1) Feature pyramid CNN network: use 3 causal dilated convolutional layers; the dilation coefficient is [1, 2, 3]. When the input sequence length is 12, the convolution kernel length is 3. When the input sequence length is 24, the convolution kernel length is 4. It is necessary to ensure that the receptive field of the last convolution layer can cover the entire input sequence. The number of convolution kernels in the three convolutional layers is 64. Dropout needs to be fine-tuned according to the prediction accuracy of the validation set, and the adjustment range is [0.2, 0.5]. During the training process, the number of iterations epoch and batchsize need to be fine-tuned according to the accuracy of the validation set. It is recommended to adjust the epoch from large to small, generally [100, 600], and the batchsize is generally a power of 2, such as 16, 32, 64, etc.
[0070] Causal dilated convolution has strict time sequence constraints, and the convolution kernel sampling interval is more flexible. Compared with traditional convolution, it will not cause information leakage of future time steps, is more in line with the characteristics of time series data, and can obtain a larger receptive field. In order to extract feature information of different time scales in the power load sequence, this application uses causal dilated convolution to construct a feature pyramid structure of the time series, and combines CNN and LSTM to propose a multi-scale feature extraction CNN-LSTM network, the structure is as follows Figure 4 shown.
[0071] The time series X is first input into the feature pyramid CNN module. The one-dimensional causal expansion convolution layer uses GELU as the activation function. After three layers of convolution, three time scale feature maps F1, F2 and F3 are generated in sequence. After the pooling layer, F1*, F2* and F3* are output respectively. The three feature maps are added to output the fusion feature. The feature pyramid realizes the extraction and fusion of features of different time scales. After that, the fusion feature is output through the LSTM and Dense layers to fit the prediction results.
[0072] The long short-term memory network LSTM consists of two LSTM layers with a neuron number of [64, 32]. LSTM adds three gating units on the basis of the recurrent neural network (RNN), such as Figure 5As shown in the figure, the sigmoid layer in the forget gate can discard useless information from the previous moment, and its output is a number between 0 and 1, which represents the degree to which information passes from the cell state of the previous moment into this moment; the sigmoid layer and tanh layer in the input gate and output gate jointly determine the information to be stored and output in the cell state. The function of the remaining cells in the figure is to calculate the current cell state based on the output state of the forget gate and input gate so as to pass it to the next moment.
[0073] Specifically, assuming the number of hidden units is h, given a mini-batch input X at time step t t ∈Rn×d (the number of samples is n, the number of inputs is d) and the hidden state H of the previous time step t-1 ∈Rn×h. The input gate I at time step t t ∈Rn×h, forget gate F t ∈Rn×h and output gate O t ∈Rn×h are calculated as follows:
[0074] I t =σ(X t W xi +H t-1 W hi +b i )
[0075] F t =σ(X t W xf +H t-1 W hf +b f )
[0076] O t =σ(X t W xo +H t-1 W ho +b o )
[0077] Among them, W xi , W xf , W xo ∈Rd×h and W hi , W hf , W ho ∈Rh×h are all weight parameters, and the rest are b i , b f , b o ∈R1×h is the bias parameter.
[0078] Step 104: Based on the support vector regression (SVR) algorithm and the low-frequency linear component training, a second load forecasting model is obtained. The second load forecasting model is used to output the linear component forecasting result of the load in the time period to be forecasted.
[0079] The traditional linear regression method is to fit samples with linear functions in vector space. The linear regression model uses the comprehensive distance from the actual position of all samples to the linear function as the loss, and obtains the parameters of the linear function by minimizing this loss. Therefore, for the traditional linear regression model, as long as a sample does not fall exactly on the linear function used as the model, it will be calculated as a loss. The SVR algorithm can find the best balance between the complexity of the model and the learning performance, and proposes a different loss calculation principle from linear regression, which greatly avoids the phenomenon of overfitting and makes the model prediction results more in line with the actual situation.
[0080] Given a training set D = {(x i ,y i ),i=1,2,...,m} and x i ∈R N ,y i ∈R N , mapped to the high-dimensional feature space through nonlinear transformation, the mapping function is:
[0081] f(x)=w T ·φ(x)+b
[0082] Among them, (x i ,y i ) is a data point, b is the cutoff distance, φ(x) is a nonlinear transformation, and w represents the weight. More specifically, w is a weight matrix and T is a matrix transpose symbol.
[0083] According to the general principle of maximum margin band and minimization of loss function, the slack variable ξ is introduced i ≥0,ξ i * ≥0, the optimization objective function is as follows:
[0084]
[0085] sty i -w T x i -b≤ε+ξ i
[0086] w T x i -b-yi≤ε+ξ i *
[0087] ξ i ,ξ i * ≥0,i=1,2,...,m
[0088] Among them, C is the penalty parameter, ε is the insensitive loss function, and the Lagrange multiplier α is introduced i ,α i * and kernel function K(xi,x)=φ(x i )·φ(x), and after solving the partial derivatives, the SVR model, i.e. the second load forecasting model, is obtained as follows:
[0089]
[0090] It should be noted that the kernel function of the SVR model is determined using a grid search algorithm.
[0091] Step 105: reconstruct the nonlinear component prediction result and the linear component prediction result to obtain the power load prediction result.
[0092] In the embodiment of the present application, different models are used for prediction of linear and nonlinear components. The multi-scale feature extraction CNN-LSTM network is used as a nonlinear model, and SVR is used as a linear model to predict a series of IMFs obtained by EEMD decomposition. Since the components of EEMD decomposition are superimposed, this solution superimposes the prediction results of components with different frequencies to reconstruct the load prediction results.
[0093] Step 106: Obtain the prediction error of the power load forecast result based on the mean absolute percentage error MAPE, the mean absolute error MAE, the root mean square error RMSE and the determination coefficient R2, and update the power load forecast result.
[0094] Specifically, in order to evaluate the prediction accuracy and related performance of the proposed model and the comparison model, evaluation indicators such as mean absolute percentage error (MAPE), mean absolute error (MAE), root mean square error (RMSE) and determination coefficient (R2) are used. For MAE and RMSE, the closer to zero means the smaller the prediction error, and the closer to 1 R2 means the better the fitting effect, while MAPE requires different models to be compared to be meaningful, and the smaller the value, the higher the prediction accuracy.
[0095] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0096] This patent proposes a combined power load forecasting method that integrates sequence decomposition and multi-scale feature extraction. Through EEMD series decomposition, multiple linear and nonlinear forecasting sub-models are constructed in a targeted and differentiated manner. Finally, the forecast results of each component with different frequencies are superimposed and reconstructed into the load forecasting result, avoiding the problem of nonlinear complexity of power load forecasting by a single model. This method effectively improves the accuracy of power load forecasting, makes the forecast value more in line with the actual operation of the power system, and provides effective method support for power grid dispatching and power trading.
[0097] Embodiment 2:
[0098] The data used in this embodiment are hourly loads of six days per month from January 2016 to August 2017 in a city in Shaanxi Province. The data set is divided into the loads from January to December 2016 as the training set, and the last 15% of the data as the validation set. The loads from January to August 2017 are used as the test set.
[0099] like Figure 6 As shown in, it is a flow chart of a power load combination forecasting method provided in Example 2 of the present application. Power load forecasting mainly consists of three parts: sequence decomposition, modeling prediction and result reconstruction. First, EEMD is used to separate the linear and nonlinear components in the power load, where the high-frequency nonlinear component represents the strong random component of the local characteristics and noise, and the low-frequency linear component represents the overall trend of the load sequence.
[0100] Specifically, the EEMD algorithm is used to decompose the training set and the test set, respectively, to obtain the imf1-7 subsequence and the res residual sequence. After the decomposition of the training set, the subsequences are subjected to zero rate detection, and then the corresponding model prediction is constructed for each component, and finally the prediction results are reconstructed and analyzed. The subsequences with a zero crossing rate greater than 0.2 are modeled using multi-scale CNN-LSTM, and the remaining subsequences are modeled using SVR. The residual sequence uses mean prediction to construct the data set by using the previous 12h load to predict the next 1h load. The time window size is 12 and the moving step size is 1.
[0101] like Figure 7 As shown in Table 1, EEMD decomposes the training set and test set loads into 7 IMFs, including a residual component, and counts the zero-crossing rate of the training set subsequence.
[0102]
[0103] Table 1 Zero-crossing rate of training set
[0104] Starting from imf3, it is lower than the threshold of 0.2 set in this application. IMF1-2 has high frequency and strong volatility. It is predicted using multi-scale feature extraction CNN-LSTM network. IMF3-7 shows strong periodicity and trend. It is predicted using SVR, and the mean of the residual sequence is used as the predicted value.
[0105] The series of IMFs obtained after EEMD decomposition are used to train the model respectively, and the IMFs from January 2017 to August 2017 are predicted. The prediction results of each component are superimposed and reconstructed to obtain the load prediction results. The prediction results of the current model combination model ESCL (EEMD-SVR-CNN-LSTM) are compared and analyzed with the CL model (CNN-LSTM) and the ECL model (EEMD-CNN-LSTM). The prediction curves and indicators are as follows Figure 8 And as shown in Table 2.
[0106]
[0107] Table 2 Power load prediction error
[0108] Electric load usually shows various characteristics under the influence of various factors, such as an annual growth trend with the development of economy and industry, seasonal changes due to climate, and periodic characteristics due to the repeated effects of influencing factors. In addition, electric load has a certain randomness. Therefore, the actual electric load forecasting problem is complex and changeable, and a single model is difficult to apply. It is necessary to use a linear and nonlinear hybrid model to improve the forecasting ability according to the stage characteristics of the electric load curve. This scheme follows the idea of sequence decomposition-combination forecasting, combines the simple and efficient characteristics of SVR and the ability of CNN-LSTM to fit complex sequences to build a combined model for forecasting. At the same time, the advantage of the pyramid structure CNN network in image segmentation and processing research to achieve multi-scale feature extraction at different levels is used, and the feature pyramid is applied to the feature extraction stage of the electric load sequence. The causal dilated convolution is used to improve the traditional convolution kernel in the image pyramid network to more flexibly capture the time correlation of different scales within the electric load sequence.
[0109] The multi-scale CNN-LSTM network uses a feature pyramid CNN structure to capture the different scale features of the load sequence and input them into the LSTM prediction, with high prediction accuracy. The ECL model combines EEMD decomposition to separate different components and predict them separately. Compared with the direct prediction of CL, the error is greatly reduced, indicating that the modeling and prediction method combined with sequence decomposition is effective. ESCL uses a multi-scale feature extraction CNN-LSTM network to predict high-frequency components and uses SVR to predict simple low-frequency components. Compared with ECL, the degree of fit is improved. From the perspective of error comparison, all indicators are the smallest, and the predicted load is basically consistent with the actual data, indicating that the method of modeling according to the characteristics of different sequences is effective and the accuracy is improved compared with a single prediction model.
[0110] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0111] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0112] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A power load combination forecasting method, characterized in that: The method comprises: Obtain historical power load data for a preset time period, and perform sequence decomposition on the historical power load data to obtain linear components and nonlinear components; perform zero-crossing rate detection on the linear components and nonlinear components respectively to obtain high-frequency nonlinear components and low-frequency linear components; train a multi-scale feature extraction CNN-LSTM network based on the high-frequency nonlinear component to obtain a first load forecasting model for outputting a nonlinear component prediction result of the load for the time period to be predicted; obtain a second load forecasting model based on a support vector regression SVR algorithm and the low-frequency linear component training to output a linear component prediction result of the load for the time period to be predicted; reconstruct the nonlinear component prediction result and the linear component prediction result to obtain a power load forecasting result, and obtain the prediction error of the power load forecasting result based on the mean absolute percentage error MAPE, the mean absolute error MAE, the root mean square error RMSE and the determination coefficient R2, and update the power load forecasting result.
2. A power load combination forecasting method according to claim 1, characterized in that: Before performing sequence decomposition on the historical power load data, the method further comprises: dividing the historical power load data into a training set and a test set; The obtaining of the linear component and the nonlinear component comprises: Based on ensemble empirical mode decomposition (EEMD), the training set and the test set are sequentially decomposed to obtain corresponding linear components and nonlinear components.
3. The power load combination forecasting method according to claim 1, characterized in that: The historical power load data is subjected to sequence decomposition to obtain linear components and nonlinear components, including: Converting the historical power load data into a signal to be decomposed, and adding Gaussian white noise to the signal to be decomposed i times; Perform empirical mode decomposition (EMD) on the signal to be decomposed with Gaussian white noise added to obtain i groups of intrinsic mode function (IMF) components and residual components; The IMF components and the residual components are averaged to obtain the linear components and the nonlinear components of the integrated empirical mode decomposition EEMD.
4. A power load combination forecasting method according to claim 1, characterized in that: The zero-crossing rate is expressed as: Where Z represents the zero-crossing rate, n zero represents the number of signal zero crossing points, and N represents the signal length.
5. A power load combination forecasting method according to claim 4, characterized in that: Performing zero-crossing rate detection on the linear component and the nonlinear component to obtain a high-frequency nonlinear component and a low-frequency linear component includes: The zero-crossing rate values of each linear component and nonlinear component are calculated, and the nonlinear components whose zero-crossing rate values are greater than a preset threshold are classified as high-frequency nonlinear components, and the linear components whose zero-crossing rate values are less than or equal to the preset threshold are classified as low-frequency linear components.
6. A power load combination forecasting method according to claim 1, characterized in that: Multi-scale feature extraction CNN-LSTM network, including feature pyramid CNN network and long short-term memory network LSTM; The feature pyramid CNN network includes a convolution layer, a pooling layer and a fully connected layer; the convolution layer is used to perform a convolution operation on the input nonlinear component to obtain local features; the pooling layer is used to reduce the dimension of the local features and output the reduced dimension features to the fully connected layer and / or the long short-term memory network LSTM for load forecasting.
7. The electronic load combination prediction method according to claim 6, characterized in that: The feature pyramid CNN network includes three causal dilated convolutional layers; The training of the multi-scale feature extraction CNN-LSTM network to obtain a first load forecasting model for outputting a nonlinear component forecast result of the load in the time period to be forecasted includes: Construct a feature pyramid structure of the time series based on causal dilated convolution, and input the time series X into the pyramid feature CNN module; The one-dimensional causal expansion convolution layer uses GELU as the activation function, and generates three time scale feature maps F1, F2 and F3 in turn through three layers of convolution, and outputs the feature map F1 after passing through the pooling layer respectively. * 、F2 * and F3 * The feature map F1 * 、F2 * and F3 * The fused features are added and outputted, and the fused features are used to output the nonlinear component prediction results through the LSTM network and the Dense layer.
8. A power load combination forecasting method according to claim 7, characterized in that: The dilation coefficients of the three causal dilated convolutional layers are [1, 2, 3]; When the input sequence length is 12, the convolution kernel length of the causal dilated convolution layer is 3; When the input sequence length is 24, the convolution kernel length of the causal dilated convolution layer is 4.
9. A power load combination forecasting method according to claim 6, characterized in that: The long short-term memory network LSTM includes two LSTM layers, and the number of neurons is [64,32].
10. The method for combined power load forecasting according to claim 1, characterized in that: The second load forecasting model is obtained based on the support vector regression SVR algorithm and the low-frequency linear component training, including: Given a training set D = {(x i ,y i ),i=1,2,...,m} and x i ∈R N ,y i ∈R N , mapped to the high-dimensional feature space through nonlinear transformation, the mapping function is: f(x)=w T ·φ(x)+b Among them, (x i ,y i ) is the data point, w is the weight, b is the cutoff distance, and φ(x) is the nonlinear transformation; According to the general principle of maximum margin band and minimization of loss function, the slack variable ξ is introduced i ≥0,ξ i * ≥0, the optimization objective function is obtained, which is expressed as: s.t.y i -w T x i -b≤ε+ξ i w T x i -b-yi≤ε+ξ i * x i ,x i * ≥0,i=1,2,...,m Among them, C is the penalty parameter, ε is the insensitive loss function, and the Lagrange multiplier α is introduced i ,α i * and kernel function K(xi,x)=φ(x i )·φ(x), and after solving the partial derivatives, the second load forecasting model is obtained as follows:
Citation Information
Cited By
Power load prediction method and system based on improved DBN-LSTM
CN119721760A
Power load prediction method and system based on VMD and MoE system
CN119990474A
Multi-element time series data prediction method and device based on hierarchical frequency model
CN120449106A
