Residual fusion prediction-based power load data processing method and device

By using a residual fusion forecasting method and using a model composed of CEEMDAN, MLP and GRU modules to perform feature extraction and time series analysis on historical power load data, the problem of low accuracy of short-term power load forecasting is solved and the accuracy of forecasting is improved. and reliability.

CN118535960APending Publication Date: 2024-08-23STATE GRID DIGITAL TECHNOLOGY HOLDING CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410340926.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The accuracy of short-term power load forecasting is low. Traditional deep networks fail to effectively analyze the characteristics of power load data, resulting in inaccurate forecast results.

Method used

A method based on residual fusion prediction is used to conduct feature extraction and time series analysis on historical power load data through a model composed of CEEMDAN, MLP and GRU modules, and the fusion prediction operation is repeatedly performed until the prediction effect reaches the standard.

Benefits of technology

It improves the accuracy and reliability of short-term power load forecasting, can better capture the time series characteristics and detailed characteristics of load data, and enhances the prediction ability and generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535960A
    Figure CN118535960A
Patent Text Reader

Abstract

The invention discloses a residual fusion prediction-based power load data processing method and apparatus. The method comprises the steps of obtaining historical power load data of a to-be-predicted region; based on the historical power load data and a preset prediction effect standard condition, repeatedly executing a fusion prediction operation, obtaining a power load prediction result according to a power load prediction parameter output by the fusion prediction operation, and then changing the power plan; wherein the fusion prediction operation specifically comprises the steps of inputting historical power load data into a residual fusion prediction model, and performing preset processing on a result to obtain a power load prediction parameter; judging whether the current power load prediction parameter is the same as the prediction effect standard reaching condition or not; if yes, the fusion prediction operation is stopped, and the current power load prediction parameters are output; and if not, before executing the next fusion prediction operation, changing the model parameters of the residual fusion prediction model, and re-executing the fusion prediction operation based on the residual fusion prediction model of which the model parameters are changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric digital data processing, and in particular to a method and device for processing electric load data based on residual fusion prediction. Background Art

[0002] Power load is an important indicator of power system operation, which directly affects the stability and power supply capacity of the power grid. Accurate prediction of power load can inform power plant control terminal load information in advance, which helps the power system to better adjust power generation and power grid operation status, thereby achieving a dynamic balance between power demand and supply, while improving power generation efficiency and ensuring the stability and reliability of power supply.

[0003] In short-term power load forecasting, traditional deep networks simply analyze the characteristics of the data without obtaining detailed analysis results, resulting in inaccurate forecasting results.

[0004] Therefore, there is an urgent need for a power load data processing strategy to solve the problem of low accuracy in short-term power load forecasting. Summary of the invention

[0005] The embodiment of the present invention provides a method and device for processing electric load data based on residual fusion prediction to solve the problem of low accuracy of short-term electric load prediction.

[0006] In order to solve the above problem, an embodiment of the present invention provides a method for processing power load data based on residual fusion prediction, comprising:

[0007] Obtain historical power load data for the area to be predicted;

[0008] Based on the historical power load data and the preset prediction effect reaching standard condition, the fusion prediction operation is repeatedly performed, and the power load prediction parameter output by the fusion prediction operation is used as the power load prediction result of the to-be-predicted area, so that the user can change the power plan based on the power load prediction result;

[0009] The fusion prediction operation is specifically as follows:

[0010] Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value;

[0011] Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter;

[0012] Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition;

[0013] If yes, stop executing the fusion prediction operation and output the current power load prediction parameters;

[0014] If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

[0015] As an improvement of the above scheme, the residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the inputting of the historical power load data into the residual fusion prediction model to obtain the power load prediction value includes:

[0016] Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data;

[0017] Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data;

[0018] Subtracting the historical power load data from the power load forecast reference value to obtain residual data;

[0019] Inputting the residual data into the GRU module and outputting the power load prediction hidden value;

[0020] The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

[0021] As an improvement of the above solution, the CEEMDAN module includes:

[0022] The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence;

[0023] The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

[0024] As an improvement of the above solution, the MLP module includes:

[0025] The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value;

[0026] Wherein, the two hidden layers satisfy the following conditions:

[0027]

[0028] In the formula, represents the weight of the output layer, b mlprepresents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, w ij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

[0029] As an improvement of the above solution, the GRU module includes:

[0030] The GRU module includes a forward propagation process and a backward propagation process;

[0031] In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate;

[0032] During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

[0033] Accordingly, an embodiment of the present invention further provides a power load data processing device based on residual fusion prediction, comprising: a data acquisition module and a result generation module;

[0034] The data acquisition module is used to acquire historical power load data of the area to be predicted;

[0035] The result generation module is used to repeatedly perform the fusion prediction operation based on the historical power load data and the preset prediction effect reaching standard condition, and use the power load prediction parameters output by the fusion prediction operation as the power load prediction result of the area to be predicted, so that the user can change the power plan based on the power load prediction result;

[0036] The fusion prediction operation is specifically as follows:

[0037] Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value;

[0038] Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter;

[0039] Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition;

[0040] If yes, stop executing the fusion prediction operation and output the current power load prediction parameters;

[0041] If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

[0042] As an improvement of the above scheme, the residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the inputting of the historical power load data into the residual fusion prediction model to obtain the power load prediction value includes:

[0043] Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data;

[0044] Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data;

[0045] Subtracting the historical power load data from the power load forecast reference value to obtain residual data;

[0046] Inputting the residual data into the GRU module and outputting the power load prediction hidden value;

[0047] The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

[0048] As an improvement of the above solution, the CEEMDAN module includes:

[0049] The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence;

[0050] The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

[0051] As an improvement of the above solution, the MLP module includes:

[0052] The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value;

[0053] Wherein, the two hidden layers satisfy the following conditions:

[0054]

[0055] In the formula, represents the weight of the output layer, b mlp represents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, w ij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

[0056] As an improvement of the above solution, the GRU module includes:

[0057] The GRU module includes a forward propagation process and a backward propagation process;

[0058] In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate;

[0059] During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

[0060] As can be seen from the above, the present invention has the following beneficial effects:

[0061] The present invention provides a method for processing electric load data based on residual fusion prediction, obtaining historical electric load data of a region to be predicted; based on the historical electric load data and a preset prediction effect reaching standard condition, repeatedly performing a fusion prediction operation, and using the electric load prediction parameter output by the fusion prediction operation as the electric load prediction result of the region to be predicted, so that the user can change the electric power plan based on the electric load prediction result; wherein the fusion prediction operation is specifically: inputting the historical electric load data into a residual fusion prediction model to obtain an electric load prediction value; performing a denormalization process on the electric load prediction value to obtain an electric load prediction parameter; judging whether the current electric load prediction parameter is the same as the prediction effect reaching standard condition; if so, stopping the fusion prediction operation and outputting the current electric load prediction parameter; if not, changing the model parameters of the residual fusion prediction model before performing the next fusion prediction operation, and re-performing the fusion prediction operation based on the residual fusion prediction model after changing the model parameters. The present invention can analyze the detailed features in the historical electric load data through the residual fusion prediction model, thereby improving the accuracy of short-term electric load prediction.

[0062] Furthermore, the CEEMDAN model is used to decompose non-stationary signals into a set of intrinsic mode functions called empirical mode functions (IMFs). For the power load forecasting model, CEEMDAN can perform nonlinear decomposition, data denoising, feature extraction and trend analysis on the signal to improve the accuracy and reliability of the forecast. Both GRU and MLP in the present invention are models that can process time series data. Combining them helps to better capture the time series characteristics of load data and further improve the prediction and generalization capabilities of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a flow chart of a method for processing power load data based on residual fusion prediction provided by an embodiment of the present invention;

[0064] Figure 2 It is a structural schematic diagram of a power load data processing device based on residual fusion prediction provided by an embodiment of the present invention;

[0065] Figure 3 It is a schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0067] Embodiment 1

[0068] See also Figure 1 , Figure 1 is a flow chart of a method for processing power load data based on residual fusion prediction provided by an embodiment of the present invention, such as Figure 1 As shown, this embodiment includes step 101 to step 102, and each step is specifically as follows:

[0069] Step 101: Obtain historical power load data of the area to be predicted.

[0070] In this embodiment,

[0071] Step 102: Based on the historical power load data and the preset prediction effect reaching standard condition, the fusion prediction operation is repeatedly performed, and the power load prediction parameter output by the fusion prediction operation is used as the power load prediction result of the to-be-predicted area, so that the user can change the power plan based on the power load prediction result;

[0072] The fusion prediction operation is specifically as follows:

[0073] Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value;

[0074] Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter;

[0075] Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition;

[0076] If yes, stop executing the fusion prediction operation and output the current power load prediction parameters;

[0077] If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

[0078] In a specific embodiment, the prediction effect reaching standard condition may be: the weighted average precision reaches 96% and the accuracy rate reaches 95%. It should be noted that the specific precision value and accuracy rate can be adaptively adjusted according to the needs of the user.

[0079] In a specific embodiment, the model parameters of the residual fusion prediction model are specifically: the number of nodes in the input layer, hidden layer and output layer in the MLP model, and the activation function type of the node; the dimension size of the hidden state in the GRU model, the weight and bias parameters of the input gate, forget gate and output gate. It should be noted that the above model parameters can be adaptively adjusted according to user needs.

[0080] In this embodiment, the residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the inputting of the historical power load data into the residual fusion prediction model to obtain the power load prediction value includes:

[0081] Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data;

[0082] Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data;

[0083] Subtracting the historical power load data from the power load forecast reference value to obtain residual data;

[0084] Inputting the residual data into the GRU module and outputting the power load prediction hidden value;

[0085] The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

[0086] In a specific embodiment, a residual fusion prediction model based on a multilayer perceptron (MLP, i.e., the MLP module described in the present invention), a gated recurrent unit (GRU, i.e., the GRU module described in the present invention) and a complete ensemble empirical mode decomposition with adaptive noise (CEEMDAN, i.e., the CEEMDAN module described in the present invention) is used. It is possible to differentiate low-frequency components by fully considering the influence of trend and seasonal factors on the prediction results; at the same time, the network is optimized by utilizing the periodicity of the intermediate frequency components; for high-frequency components, a bidirectional liquid neural network is proposed by utilizing the strong nonlinearity and generalization ability of the liquid network, and is optimized in combination with the attention mechanism; in the multi-model fusion strategy, the optimal time series information of different components is obtained by utilizing different input sequence lengths to further improve the prediction accuracy and stability.

[0087] In a specific embodiment, the historical power load data is used to obtain a prediction benchmark through the MLP module, and then the prediction benchmark is subtracted from the original data to obtain a residual signal. The specific results are as follows:

[0088] y mlp =f mlp (x t ,θ mlp );

[0089] res t =x t ―y mlp ;

[0090] Among them, f mlp Represents the function expression of the MLP module, θ mlp represents the parameters of the MLP module, x t and res t Represent the historical power load data and residual data at time step t, y mlp It is the benchmark value for power load prediction.

[0091] The GRU recurrent layer receives the residual signal as input, and updates and retains the hidden state information through its internal gating mechanism to obtain a series of hidden state output values. The specific calculation formula is as follows:

[0092] h t =f gru (res t ,θ);

[0093] Among them, f gru is the GRU model expression, y gru Represents the parameters of the GRU model to be learned.

[0094] In the MGRF network, the hidden state of the GRU module is input into the fully connected layer for nonlinear mapping to obtain the output result. The fully connected layer can transform the temporal features extracted by the GRU module into more expressive features, thereby further improving the accuracy of the prediction. The formula is as follows:

[0095] y gru =σ(W out h t +b out );

[0096] Among them, W out is the connection weight, b out is the bias, σ is the Sigmoid activation function, y gru Hidden value for power load prediction of GRU module.

[0097] Finally, the power load forecast benchmark value y obtained by the MLP modulemlp The hidden value y of power load prediction obtained by the GRU module gru The final prediction result is obtained by fusion and addition. Its expression is as follows:

[0098] y=y gru +y mlp .

[0099] In this embodiment, the CEEMDAN module includes:

[0100] The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence;

[0101] The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

[0102] In a specific embodiment, the intrinsic mode function group (IMFs) can be regarded as the characteristics of different time scales in the original power load data, and each intrinsic mode function (IMF) in the intrinsic mode function group represents a specific frequency component. These IMFs can be used to analyze the characteristics of seasonality, periodicity and trend in the load data. The noise component contains the randomness and the part that cannot be decomposed in the load data. CEEMDAN can decompose the non-stationary time series into several intrinsic mode functions (IMF) and a trend term, use adaptive white noise to smooth the pulse interference, and use the characteristic of Gaussian white CEEMDAN noise with a mean of 0 to make the decomposition of the sequence more complete, thereby effectively avoiding the modal aliasing problem in the EMD algorithm. The decomposition process of CEEMDAN is as follows:

[0103] Add Gaussian white noise sequence: Add several groups of Gaussian white noise sequences to the original sequence (i.e. historical power load data) x(t) to form a new sequence with noise. The number of groups added with white noise is called the realization number:

[0104] x i (t) = x(t) + γ0G i ;

[0105] Where G i represents the i-th group of Gaussian white noise that follows normal distribution added to the original sequence; x i (t) is the corresponding sequence after adding white noise; γ0 is a constant, controlling x i (t) is the ratio of the original signal to noise.

[0106] Calculate the first IMF. Use the original EMD algorithm to obtain the first IMF:

[0107]

[0108] Where T represents the total number of groups with added white noise; E1[x i (t)] represents the extraction of x using the original EMD algorithm i (t)The first IMF.

[0109] Calculate the first residual r1(t), the calculation formula of r1(t):

[0110] r1(t)=x(t)―c1(t);

[0111] Calculate the second IMF. The calculation formula for the second IMF is as follows:

[0112]

[0113] Where E1(.) represents the first mode function extracted using the original EMD algorithm.

[0114] Calculate the kth residual r k (t), r k The calculation formula of (t) is as follows:

[0115] r k (t) = r k―1 (t)―c k (t);

[0116] Calculate the k+1th IMF, the calculation formula is as follows:

[0117]

[0118] Where E1(.) represents the kth mode function extracted using the original EMD algorithm.

[0119] Repeat the steps until the final residual r K (t) can no longer be decomposed. Finally, the original signal can be decomposed into the following formula:

[0120]

[0121] In this embodiment, the MLP module includes:

[0122] The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value;

[0123] Wherein, the two hidden layers satisfy the following conditions:

[0124]

[0125] In the formula, represents the weight of the output layer, b mlp represents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, w ij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

[0126] In a specific embodiment, the MLP network is usually composed of three parts, namely, an input layer, an output layer and several hidden layers. The residual fusion prediction model does not include the input layer, which has a total of three layers. It is used to extract features from the power load data to obtain a prediction result. The following are the output results of different neural network layers in the forward propagation of the MLP module.

[0127] The input to the i-th neuron in the first hidden layer is:

[0128] netI i =∑ j=1 w ij x j +θ i ;

[0129] Among them, x j Represents the input power load data, w ij represents the weight of the hidden layer, θ i It represents the bias of the hidden layer.

[0130] The output of the i-th neuron in the first hidden layer is:

[0131] outl i =f2(netl i )=f2(∑ j=1 w ij x j +θ i );

[0132] Among them, f2(.) represents the activation function. In order to solve the problem of gradient disappearance, the ReLU activation function is selected.

[0133] The input to the kth neuron in the second hidden layer is:

[0134] net2 k =∑ i=1 w ki y i +a k =∑ i=1 w ki outl i +a k ;

[0135] Among them, y i represents the input data, w ki represents the weight of the hidden layer, a k It represents the bias of the hidden layer.

[0136] The output of the kth neuron in the second hidden layer is:

[0137] out2 k =f2(net2 k )=f2(∑ i=1 w ki γ i +a k )=f2(∑ i=1 w ki outl i +a k );

[0138] Among them, f2(.) represents the ReLU activation function.

[0139] The output expression in the MLP module is as follows:

[0140]

[0141] in, represents the weight of the output layer, b mlp It represents the bias of the output layer, and f1(.) represents the Sigmoid activation function.

[0142] By extracting features from the original power data through the MLP module, a prediction value can be obtained. At the same time, it can serve as a benchmark for subsequent predictions, thereby enhancing the generalization ability and prediction accuracy of the model.

[0143] In this embodiment, the GRU module includes:

[0144] The GRU module includes a forward propagation process and a backward propagation process;

[0145] In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate;

[0146] During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

[0147] In a specific embodiment, in order to extract more detailed temporal features, the residual fusion model uses the nonlinear mapping ability and temporal feature extraction ability of GRU to extract detailed temporal features in the residual information.

[0148] During the forward propagation process, the GRU prediction module calculates the output result by gradually updating the hidden state. The specific steps are as follows:

[0149] r t It is a reset gate with an output range of [0,1], which is used to control the candidate state Whether it depends on the hidden state of the previous moment, the formula is as follows:

[0150] net r =W r res t +U r h t―1 ;

[0151] r t =σ(net r );

[0152] Among them, W r and U r is the connection weight, h t―1 is the hidden state at time t-1, and σ is the Sigmoid activation function.

[0153] z t It is an update gate with an output range of [0,1]. It is used to control how much information the current state retains from the historical state and how much information is accepted from the candidate state, thereby controlling the balance between input and forgetting. The formula is as follows:

[0154] net z =W z res t +U z h t―1 .;

[0155] z t =σ(net z );

[0156] Among them, W z and U z is the connection weight, h t―1 is the hidden state at time t-1, and σ is the Sigmoid activation function.

[0157] is the candidate state, and its formula is as follows:

[0158]

[0159]

[0160] Among them, W and U are connection weights, h t―1 is the hidden state at time t-1, is the Tanh activation function, and “×” is the matrix Hadamard product operation.

[0161] When t = 0, candidate state It is only related to the current input and has nothing to do with the historical state; when r t =1, candidate state Accept all historical status information.

[0162] h t is the hidden state of the output, and its expression is as follows:

[0163]

[0164] y t For the output of the GRU model, the fully connected layer can be used to calculate the final output result. The calculation formula is as follows:

[0165] y t =σ(W y h t );

[0166] Among them, W y Output connection weight, σ is the Sigmoid activation function.

[0167] After completing the forward propagation, the model needs to minimize the loss function and use error back propagation to update the model parameters. The time-based back propagation algorithm is used, and the gradient of each parameter is calculated using the chain rule to update the model parameters. The loss function at time t is defined as:

[0168]

[0169] The cumulative forecast error over the entire T period is:

[0170]

[0171] The gradient of each parameter is calculated through the loss function, and each parameter in the GRU network is updated according to the gradient direction to obtain the final weight. The gradient of each model parameter is as follows:

[0172]

[0173] in

[0174]

[0175] Among them, σ′ is the derivative of the Sigmoid activation function, φ′ is the derivative of the Tanh activation function, and “×” is the matrix Hadamard product operation.

[0176] See also Figure 2 , Figure 2 It is a structural schematic diagram of a power load data processing device based on residual fusion prediction provided by an embodiment of the present invention, comprising: a data acquisition module 201 and a result generation module 202;

[0177] The data acquisition module is used to acquire historical power load data of the area to be predicted;

[0178] The result generation module is used to repeatedly perform the fusion prediction operation based on the historical power load data and the preset prediction effect reaching standard condition, and use the power load prediction parameters output by the fusion prediction operation as the power load prediction result of the area to be predicted, so that the user can change the power plan based on the power load prediction result;

[0179] The fusion prediction operation is specifically as follows:

[0180] Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value;

[0181] Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter;

[0182] Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition;

[0183] If yes, stop executing the fusion prediction operation and output the current power load prediction parameters;

[0184] If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

[0185] As an improvement of the above scheme, the residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the inputting of the historical power load data into the residual fusion prediction model to obtain the power load prediction value includes:

[0186] Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data;

[0187] Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data;

[0188] Subtracting the historical power load data from the power load forecast reference value to obtain residual data;

[0189] Inputting the residual data into the GRU module and outputting the power load prediction hidden value;

[0190] The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

[0191] As an improvement of the above solution, the CEEMDAN module includes:

[0192] The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence;

[0193] The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

[0194] As an improvement of the above solution, the MLP module includes:

[0195] The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value;

[0196] Wherein, the two hidden layers satisfy the following conditions:

[0197]

[0198] In the formula, represents the weight of the output layer, b mlp represents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, wij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

[0199] As an improvement of the above solution, the GRU module includes:

[0200] The GRU module includes a forward propagation process and a backward propagation process;

[0201] In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate;

[0202] During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

[0203] This embodiment obtains the historical power load data of the area to be predicted; based on the historical power load data and the preset prediction effect reaching standard conditions, repeatedly performs the fusion prediction operation, and uses the power load prediction parameters output by the fusion prediction operation as the power load prediction result of the area to be predicted, so that the user can change the power plan based on the power load prediction result; wherein the fusion prediction operation is specifically: inputting the historical power load data into the residual fusion prediction model to obtain the power load prediction value; performing denormalization processing on the power load prediction value to obtain the power load prediction parameter; judging whether the current power load prediction parameter is the same as the prediction effect reaching standard conditions; if so, stopping the fusion prediction operation and outputting the current power load prediction parameter; if not, before performing the next fusion prediction operation, changing the model parameters of the residual fusion prediction model, and re-performing the fusion prediction operation based on the residual fusion prediction model after changing the model parameters. The present invention can analyze the detailed features in the historical power load data through the residual fusion prediction model, thereby improving the accuracy of short-term power load prediction.

[0204] Embodiment 2

[0205] See also Figure 3 , Figure 3 It is a schematic diagram of the structure of a terminal device provided in one embodiment of the present invention.

[0206] A terminal device of this embodiment includes: a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program, the steps of the above-mentioned power load data processing method based on residual fusion prediction in the embodiment are implemented, for example Figure 1 All steps of the power load data processing method based on residual fusion prediction shown in the figure. Alternatively, when the processor executes the computer program, the functions of each module in the above-mentioned device embodiments are realized, for example: Figure 2 All modules of the power load data processing device based on residual fusion prediction are shown.

[0207] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the power load data processing method based on residual fusion prediction as described in any of the above embodiments.

[0208] Those skilled in the art will understand that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0209] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 301 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0210] The memory 302 can be used to store the computer program and / or module. The processor 301 implements various functions of the terminal device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory 302. The memory 302 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0211] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0212] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0213] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for processing power load data based on residual fusion prediction, characterized in that: include: Obtain historical power load data for the area to be predicted; Based on the historical power load data and the preset prediction effect reaching standard condition, the fusion prediction operation is repeatedly performed, and the power load prediction parameter output by the fusion prediction operation is used as the power load prediction result of the to-be-predicted area, so that the user can change the power plan based on the power load prediction result; The fusion prediction operation is specifically as follows: Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value; Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter; Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition; If yes, stop executing the fusion prediction operation and output the current power load prediction parameters; If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

2. The method for processing power load data based on residual fusion prediction according to claim 1 is characterized in that: The residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the historical power load data is input into the residual fusion prediction model to obtain the power load prediction value, including: Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data; Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data; Subtracting the historical power load data from the power load forecast reference value to obtain residual data; Inputting the residual data into the GRU module and outputting the power load prediction hidden value; The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

3. The method for processing power load data based on residual fusion prediction according to claim 2 is characterized in that: The CEEMDAN module includes: The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence; The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

4. The method for processing power load data based on residual fusion prediction according to claim 2 is characterized in that: The MLP module comprises: The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value; Wherein, the two hidden layers satisfy the following conditions: In the formula, represents the weight of the output layer, b mlp represents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, w ij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

5. The method for processing power load data based on residual fusion prediction according to claim 2 is characterized in that: The GRU module includes: The GRU module includes a forward propagation process and a backward propagation process; In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate; During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

6. A power load data processing device based on residual fusion prediction, characterized in that: include: Data acquisition module and result generation module; The data acquisition module is used to acquire historical power load data of the area to be predicted; The result generation module is used to repeatedly perform the fusion prediction operation based on the historical power load data and the preset prediction effect reaching standard condition, and use the power load prediction parameters output by the fusion prediction operation as the power load prediction result of the area to be predicted, so that the user can change the power plan based on the power load prediction result; The fusion prediction operation is specifically as follows: Inputting the historical power load data into the residual fusion prediction model to obtain a power load prediction value; Performing a denormalization process on the power load prediction value to obtain a power load prediction parameter; Determine whether the current power load forecast parameters are the same as the forecast effect reaching the standard condition; If yes, stop executing the fusion prediction operation and output the current power load prediction parameters; If not, before executing the next fusion prediction operation, the model parameters of the residual fusion prediction model are changed, and the fusion prediction operation is re-executed based on the residual fusion prediction model after the model parameters are changed.

7. The power load data processing device based on residual fusion prediction according to claim 6 is characterized in that: The residual fusion prediction model includes: a CEEMDAN module, an MLP module and a GRU module; the historical power load data is input into the residual fusion prediction model to obtain the power load prediction value, including: Inputting the historical power load data into the CEEMDAN module, and outputting an intrinsic mode function group corresponding to the historical power load data; Inputting the intrinsic mode function group into the MLP module, and outputting the power load prediction reference value corresponding to the historical power load data; Subtracting the historical power load data from the power load forecast reference value to obtain residual data; Inputting the residual data into the GRU module and outputting the power load prediction hidden value; The power load prediction reference value and the power load prediction hidden value are merged and added to obtain a power load prediction value.

8. The power load data processing device based on residual fusion prediction according to claim 7 is characterized in that: The CEEMDAN module includes: The CEEMDAN module adds several groups of Gaussian white noise sequences to the historical power load data to obtain a noise sequence; The CEEMDAN module performs residual calculation on the noise sequence until the last calculated residual is 0, and then outputs the intrinsic mode function group corresponding to the historical power load data at this time.

9. The power load data processing device based on residual fusion prediction according to claim 7 is characterized in that: The MLP module comprises: The MLP module inputs the intrinsic mode function group into a double hidden layer to extract features and obtain a power load prediction reference value; Wherein, the two hidden layers satisfy the following conditions: In the formula, represents the weight of the output layer, b mlp represents the bias of the output layer, f1(.) represents the Sigmoid activation function, and w ki represents the weight of the second hidden layer, a k represents the bias of the second hidden layer, x j represents the input intrinsic mode function group, w ij represents the weight of the first hidden layer, θ i It represents the bias of the first hidden layer, which is the reference value of power load prediction, out2 k is the output of the i-th neuron in the second hidden layer, net2 k is the input of the i-th neuron in the second hidden layer, outl i is the output of the i-th neuron in the first hidden layer, netl i is the input of the i-th neuron in the first hidden layer.

10. The power load data processing device based on residual fusion prediction according to claim 7, characterized in that: The GRU module includes: The GRU module includes a forward propagation process and a backward propagation process; In the forward propagation process, the GRU module outputs a hidden value of power load prediction for the residual data through a reset gate and an update gate; During the back propagation process, the GRU module uses a time-based back propagation algorithm and applies the chain rule to calculate the gradient of each parameter of the GRU module itself to update the model parameters.

Citation Information

Patent Citations

  • Short-term load prediction method and device based on neural network combination model, and medium

    CN113239624A

  • Power load prediction method and device, equipment and storage medium

    CN116307060A

  • Power load forecasting system based on long short-term memory neural network

    WO2018161723A1