Short-term power generation prediction method based on ensemble learning
By employing multi-scale time series decomposition and combined prediction methods, the problem of neglecting periodicity in short-term power generation prediction was solved, resulting in higher prediction accuracy and model performance.
Patent Information
- Application Number
- CN202310147820.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-02-22
AI Technical Summary
Existing short-term power generation forecasting models fail to adequately consider the periodicity of historical power generation data, resulting in low forecast accuracy.
The original data was decomposed into trend, seasonal, annual and residual terms using multiscale time series decomposition (MSTL). Multiple linear regression (MLR), long short-term memory network (LSTM) and variational mode decomposition (VMD) were used for prediction, respectively. The feature set was analyzed by combining autocorrelation function (ACF) to reconstruct the prediction results.
It improves the accuracy and performance of short-term power generation forecasts. By refining the processing of different components, it reduces forecast errors and enhances the overall forecasting capability of the model.
Smart Images

Figure CN116307119B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of short-term power generation forecasting technology, and in particular to a short-term power generation forecasting method based on ensemble learning. Background Technology
[0002] Accurate short-term power generation forecasting is crucial for improving the economic efficiency of power generation, especially in helping the grid to rationally reserve reserve capacity, adjust unit combination schemes and power dispatch schemes, and optimize power generation plans. Traditional short-term power generation forecasting mainly relies on single models based on time series algorithms, machine learning algorithms, and deep neural network algorithms. Because power generation is influenced by various factors and exhibits volatility, variability, and nonlinearity, single models struggle to achieve high forecast accuracy. To address these issues, many researchers combine two or more single models with data preprocessing methods to improve forecast accuracy. For example:
[0003] Reference (1) [A Short-Term Power Combination Forecasting Method Combining Time Series Decomposition] proposes a combination forecasting model based on an improved singular spectrum analysis method. It uses multiple linear regression and long short-term memory neural network methods to predict the separated trend load and random load, and then superimposes them to obtain the forecast results.
[0004] Reference (2) [Short-term power load forecasting method based on mode decomposition and ensemble learning] proposes a short-term power load forecasting model based on mode decomposition. The original load is decomposed into high-frequency and low-frequency components using the ensemble empirical mode decomposition method. The high-frequency and low-frequency components are predicted by LSTM and extreme learning machine models respectively, so as to achieve load forecasting.
[0005] Reference (3) [Short-term load forecasting of power system based on VMD-CNN-BIGRU] proposes a short-term load forecasting method based on a hybrid network of bidirectional gated recurrent units of convolutional neural network based on variational mode decomposition, which improves training time and forecasting effect;
[0006] Reference (4) [Short-term power prediction method combining GRU and STL decomposition] The original power data is decomposed into three components: trend, period and residual by seasonal local weighted regression algorithm, and then each component is predicted by gated cyclic unit model. Finally, the components are superimposed to realize short-term power prediction.
[0007] Although there are many existing combined prediction models, none of them fully consider the periodicity of historical electricity data, which leads to low prediction accuracy and reduces the overall performance of the models. Summary of the Invention
[0008] The purpose of this invention is to provide a short-term power generation prediction method based on ensemble learning. By fully extracting the trend term, periodic term, and residual term of the original sequence through MSTL, different components are predicted separately, improving the prediction accuracy of the model. For the periodic term, the method fully considers the historical data adjacent to the observation point and the historical time data of several periods far away from the observation point, which is the key to reducing the error of short-term power generation prediction. By further decomposing the residual term of MSTL using the VMD algorithm, the complexity of the residual term is reduced, and the components are predicted separately, further improving the performance of the model, thereby solving the problems mentioned in the background art.
[0009] To achieve the above objectives, the present invention provides the following technical solution:
[0010] A short-term power generation prediction method based on ensemble learning, the prediction method comprising the following steps:
[0011] S1: Decompose the original data. Use MSTL to decompose the original data, extracting inherent trend terms, quarterly cycle terms, annual cycle terms, and decomposition residuals. Specific steps include: extracting small-cycle terms and their corresponding trend terms and residuals using STL decomposition; superimposing the extracted trend terms and residuals; and performing STL decomposition again on the superimposed sequence to extract large-cycle terms and their corresponding trend terms and residuals. The MSTL decomposition result is shown in the equation:
[0012] Y(t)=T(t)+S1(t)+S2(t)+…+S n Y(t) + R(t), where n is the number of periodic terms in the original data, Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, R(t) is the residual term, and Si(t), i = 1, 2, ..., n;
[0013] S2: Predicting the trend term. The trend term is predicted using MLR. The specific steps are as follows: Take the time t of the observation point in the trend term as the dependent variable, and the n lagged data t-1, t-2, ..., tn as the independent variables. Use multiple linear regression theory to establish a mathematical model of multiple linear equations. Use relevant theories or statistical software to perform statistical tests on the significance, confidence, goodness of fit, and standard error of this model. The general expression of the multiple regression model is shown in the following formula:
[0014] y = β0 + β1x1 + β2x2 + ... + β k x k +ε, where β i ,i=0,1,…k are undetermined parameters, β0 is the intercept term, β1…β k Here, ε is the coefficient of the independent variable, and ε is a random variable that can be ignored in practical applications.
[0015] S3: Predicting the periodic items. For both quarterly and annual periodic items, we consider both historical data adjacent to the observation point and historical data from several periods far from the observation point to fully explore the potential patterns in historical power generation data. We use an LSTM model to predict the two periodic items.
[0016] S4: Predict the residual term. The residual term is further decomposed through VMD. The specific operation steps include two parts: constructing the variational problem and solving the variational problem. The LSTM model is still used to predict the VMD components.
[0017] S5: Reconstruct the prediction results. Reconstruct the prediction results of all components to obtain the short-term power generation prediction value.
[0018] Furthermore, the specific steps of the STL decomposition method in S1 are as follows:
[0019] By using Loess to extract smoothed estimates of the three components, the time series is decomposed into three main components: a trend term, a seasonal term, and a residual term, as shown in the equation:
[0020] Y(t) = T(t) + S(t) + R(t), where Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, and R(t) is the residual term.
[0021] Furthermore, in S3, before predicting the periodic term, it is necessary to use the autocorrelation function (ACF) to analyze its autocorrelation coefficient, select the number of lag periods with high correlation with itself, and use the adjacent data lagging behind the observation point and the historical time data of several periods lagging far behind the observation point as the feature set of the periodic term of MSTL decomposition, and predict the periodic term based on the feature set.
[0022] Furthermore, the periodic feature set includes two parts: one part consists of historical moment data adjacent to the observation point, and the second part consists of historical moment data from several periods that are far from the observation point.
[0023] One set of features includes the recent variation patterns of data at the observation points; the other set includes the periodic patterns of the time series, taking into account both recent changes and historical changes to improve the accuracy of series prediction.
[0024] Furthermore, the LSTM structure in S3 can be used to solve long-term and short-term dependencies in time series. The computation process of the LSTM neural network is as follows:
[0025] S3.1: The new information and the output value of the hidden layer neuron from the previous time step are sent to the input gate. Based on the activation state of the input gate, the input information at this time step is selectively stored in the storage unit. The activation state of the input gate and the input and output formulas of the input gate are shown in the following equation:
[0026] i t =σ(W i ·[h t-1 ,x t ]+b i );
[0027]
[0028]
[0029] Among them, h t-1 Let x be the output value of the hidden layer output gate at time t-1. t Let W be the information of the original sequence at time t, σ be the Sigmoid function, so the activation state of the gate takes the value [0,1]. i W c These are the weights of the input gate and the cell state, respectively, b. i ,b c These are the bias terms for the input gate and the cell state, respectively;
[0030] S3.2: The information c from the previous time step, filtered by the input gate and forget gate... t-1 The information is sent to the Forget Gate. Based on the Forget Gate's activation status, the information passing through the Forget Gate is selected to be forgotten. The Forget Gate's status and output formula are shown in the following equation:
[0031] f t =σ(W f ·[h t-1 ,x t ]+b f );
[0032]
[0033] Among them, W f and b f These are the weights and biases of the forget gate unit state, respectively;
[0034] S3.3: The output values of the input gate and the forget gate are superimposed to obtain the filtered information at time t, which is also the input value of the output gate. The new information filtered by the input gate and the forget gate at the current time is shown in the following formula:
[0035] c t =f t '+i t ';
[0036] S3.4: The information filtered by the input gate and forget gate is sent to the output gate. Based on the activation state of the output gate, the filtered information is propagated to the final state. The state of the output gate and the output formula of the output gate are shown in the following equation:
[0037] o t =σ(W o [h t-1 ,x t ]+b o );
[0038]
[0039] Among them, W o and b o These are the weights and bias terms of the output gate unit state, respectively;
[0040] S3.5: Calculate h t and c t Pass in the next time step for loop operation;
[0041] S3.6: Set the output value h of the hidden layer t The input is fed into the output layer, and after passing through the activation function, the output value of the neuron at time t is obtained. The output formula is shown in the following equation:
[0042] y t =g(V·h) t ), where V is the weight matrix from the hidden layer to the output layer, and g is the activation function.
[0043] Furthermore, the specific steps of VMD decomposition in S4 are as follows:
[0044] S4.1: Constructing a variational problem
[0045] The constraint condition for this variational problem is that all components u k The sum of (t) is equal to the original signal s(t). The goal is to minimize the sum of the estimated bandwidths of each mode while ensuring that each IMF is a finite bandwidth modal component with a center frequency. This variational problem is shown in the following equation.
[0046]
[0047] Among them, u k (t) represents the k-th modal component, ω K Let k be the center frequency of the k-th component. Let s(t) be the Dirac function, s(t) be the original signal, and * be the convolution operation.
[0048] S4.2: Solving variational problems
[0049] To transform the constrained variational problem in equation (3) into an unconstrained variational problem, a penalty factor α and a Lagrange multiplication operator λ(t) are introduced, resulting in the extended Lagrange expression shown below.
[0050]
[0051] Then, the alternating multiplier algorithm is used to solve for the "saddle point" in the above equation, i.e., the optimal solution, u. k (t), ω k The iterative expression for λ(t) is shown in the following equation.
[0052]
[0053]
[0054]
[0055] When the following formula is satisfied, k narrowband IMFs are obtained.
[0056]
[0057] Furthermore, the performance evaluation criteria for MSTL are based on: root mean square error, mean absolute error, and symmetrical mean absolute percentage error. The calculation formulas for each index are shown in the following equations:
[0058]
[0059]
[0060]
[0061] Where E is the error, n is the number of observation points in the test set, and y i The actual value at observation point i. These are predicted values.
[0062] Furthermore, the performance gains obtained by MSTL on root mean square error, mean absolute error, and symmetric mean absolute percentage error are expressed as follows:
[0063]
[0064] Among them, P index V represents the performance gain value for a certain metric. O V is the index value of this indicator in the comparison model. P These are the index values of the model in this application.
[0065] Compared with the prior art, the beneficial effects of the present invention are:
[0066] By fully extracting the trend, periodic, and residual terms from the original sequence using MSTL, and predicting different components separately, the model's prediction accuracy is improved. For the periodic term, the model fully considers the historical data adjacent to the observation point and the historical time data of several periods far from the observation point, which is the key to reducing short-term power generation prediction errors. By further decomposing the residual terms of MSTL using the VMD algorithm, the complexity of the residual terms is reduced, and the components are predicted separately, further improving the model's performance. Attached Figure Description
[0067] Figure 1 This is a diagram of the hidden layer structure of the LSTM of the present invention;
[0068] Figure 2 This is a flowchart of the MSTLEnsemble model prediction process of the present invention;
[0069] Figure 3 This is the first STL decomposition diagram of the present invention;
[0070] Figure 4 This is the second STL exploded view of the present invention;
[0071] Figure 5 This is a diagram showing the VMD decomposition results of the present invention;
[0072] Figure 6 This is the ACF diagram of the quarterly periodic items of this invention;
[0073] Figure 7 This is the annual periodic term ACF diagram of the present invention;
[0074] Figure 8 This is a comparison diagram of the experimental model of the present invention;
[0075] Figure 9 This is a comparison diagram of the experimental model of the present invention;
[0076] Figure 10 This is a comparison diagram of Experiment 3 models of the present invention;
[0077] Figure 11 This is a comparison diagram of Experiment 4 of the present invention;
[0078] Figure 12 This is a performance gain diagram obtained from the model of the present invention. Detailed Implementation
[0079] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0080] To address the technical issue of low prediction accuracy in existing models due to their failure to fully consider the periodicity of historical electricity data, please refer to [link to relevant documentation]. Figure 1-2 This embodiment provides the following technical solution:
[0081] A short-term power generation prediction method based on ensemble learning, the prediction method comprising the following steps:
[0082] S1: Decompose the original data. In order to fully consider the periodicity of the power generation sequence, this application decomposes the original data using MSTL to extract the inherent trend term, seasonal periodic term, annual periodic term and decomposition residue term.
[0083] Secondly, the specific steps of the MSTL decomposition method in S1 are as follows: By using Loess to extract smoothed estimates of the three components, the time series is decomposed into three main components: the trend term, the seasonal term, and the residual term, as shown in the equation:
[0084] Y(t) = T(t) + S(t) + R(t), where Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, and R(t) is the residual term; STL is divided into an outer loop and an inner loop. The inner loop mainly fits the trend and calculates the period, while the outer loop mainly uses the trend term and period term generated by the inner loop to calculate the residual components, thereby obtaining the robust weights of the data points needed for Loess;
[0085] The small-period terms and their corresponding trend and residual terms are extracted by STL decomposition. The extracted trend and residual terms are then superimposed, and the superimposed sequence is subjected to STL decomposition again to extract the large-period terms and their corresponding trend and residual terms. The STL decomposition result is shown in the equation:
[0086] Y(t)=T(t)+S1(t)+S2(t)+…+S n Y(t) + R(t), where n is the number of periodic terms in the original data, Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, R(t) is the residual term, and Si(t), i = 1, 2, ..., n;
[0087] In a preferred embodiment: for example, power generation data of a certain province from January 1, 2008 to August 24, 2022 were collected, with a data collection time interval of 24 hours, totaling 5350 data points. The last 450 data points were used as the test set, and the rest were used as the training set for training.
[0088] like Figure 3 As shown, the raw power generation data is decomposed using MSTL. Figure 3 The first sequence is the raw power generation data. Its seasonal cycle is extracted to obtain the following: Figure 3 The trend term, quarterly cycle term, and residual term shown indicate a clear annual periodicity in both the trend term and residual term. Therefore, the trend term and residual term obtained from the first decomposition are superimposed, and further decomposition is performed. The superimposed sequence is as follows: Figure 4 The first sequence is the trend term, annual cycle term and residual term obtained from the decomposition. It can be seen that the trend term of the second decomposition shows an approximately linear relationship, and the residual term has a certain degree of randomness.
[0089] S2: Predicting the trend term. The trend term is predicted using MLR. The specific steps are as follows: Take the time t of the observation point in the trend term as the dependent variable, and the n lagged data t-1, t-2, ..., tn as the independent variables. Use multiple linear regression theory to establish a mathematical model of multiple linear equations. Use relevant theories or statistical software to perform statistical tests on the significance, confidence, goodness of fit, and standard error of this model. The general expression of the multiple regression model is shown in the following formula:
[0090] y = β0 + β1x1 + β2x2 + ... + β k x k +ε, where β i ,i=0,1,…k are undetermined parameters, β0 is the intercept term, β1…β k Here, ε represents the coefficients of the independent variables, and ε is a random variable that can be ignored in practical applications. The principle of the MLR model is to establish a regression equation, fit the dependent variable with multiple independent variables, and interpret and predict the value of the dependent variable by calculating the coefficients and intercepts of the independent variables. When the data shows an approximately linear relationship, MLR training speed is more advantageous than neural networks.
[0091] S3: Predicting the periodic items. For both quarterly and annual periodic items, we consider both historical data adjacent to the observation point and historical data from several periods far from the observation point to fully explore the potential patterns in historical power generation data. We use an LSTM model to predict the two periodic items.
[0092] S4: Predict the residual term. The residual term is further decomposed using VMD. The specific steps include constructing the variational problem and solving the variational problem. The VMD components are still predicted using the LSTM model. (Continuing from the previous embodiment...)
[0093] like Figure 4 As shown, the residual terms obtained from the final decomposition are affected by random factors and still have high complexity. If this information is not considered, it will affect the overall performance of the model. This application uses the VMD decomposition method to decompose the residual terms after MSTL decomposition in order to improve the prediction accuracy of the residual terms.
[0094] like Figure 5 As shown: The residual terms of the MSTL decomposition are decomposed into 11 intrinsic mode components (IMF) and one residual component (Res).
[0095] S5: Reconstruct the prediction results. Reconstruct the prediction results of all components to obtain the short-term power generation prediction value.
[0096] In S3, such as Figure 1 As shown: the three rectangles represent neurons at times (t-1), (t), and (t+1), respectively. Each neuron consists of an input gate, a forget gate, and an output gate. Therefore, the LSTM structure can effectively solve the problem of long-term and short-term dependencies in time series. The computation process of the LSTM neural network is as follows:
[0097] S3.1: The new information and the output value of the hidden layer neuron from the previous time step are sent to the input gate. Based on the activation state of the input gate, the input information at this time step is selectively stored in the storage unit. The activation state of the input gate and the input and output formulas of the input gate are shown in the following equation:
[0098] i t =σ(W i ·[h t-1 ,x t ]+b i );
[0099]
[0100]
[0101] Among them, h t-1 Let x be the output value of the hidden layer output gate at time t-1. t Let W be the information of the original sequence at time t, σ be the Sigmoid function, so the activation state of the gate takes the value [0,1]. i W c These are the weights of the input gate and the cell state, respectively, b. i ,b c These are the bias terms for the input gate and the cell state, respectively;
[0102] S3.2: The information c from the previous time step, filtered by the input gate and forget gate... t-1 The information is sent to the Forget Gate. Based on the Forget Gate's activation status, the information passing through the Forget Gate is selected to be forgotten. The Forget Gate's status and output formula are shown in the following equation:
[0103] f t =σ(W f ·[h t-1 ,x t ]+b f );
[0104]
[0105] Among them, W f and b f These are the weights and biases of the forget gate unit state, respectively;
[0106] S3.3: The output values of the input gate and the forget gate are superimposed to obtain the filtered information at time t, which is also the input value of the output gate. The new information filtered by the input gate and the forget gate at the current time is shown in the following formula:
[0107] c t =f t '+i t ';
[0108] S3.4: The information filtered by the input gate and forget gate is sent to the output gate. Based on the activation state of the output gate, the filtered information is propagated to the final state. The state of the output gate and the output formula of the output gate are shown in the following equation:
[0109] o t =σ(W o [h t-1 ,x t ]+b o );
[0110]
[0111] Among them, W o and b o These are the weights and bias terms of the output gate unit state, respectively;
[0112] S3.5: Calculate h t and c t Pass in the next time step for loop operation;
[0113] S3.6: Set the output value h of the hidden layer t The input is fed into the output layer, and after passing through the activation function, the output value of the neuron at time t is obtained. The output formula is shown in the following equation:
[0114] y t =g(V·h) t ), where V is the weight matrix from the hidden layer to the output layer, and g is the activation function; through the above process, the information input to the LSTM network is selectively forgotten and retrieved, enabling the network to connect with historical related data and realize the memory function, effectively solving the problems of gradient vanishing, exploding, and inability to handle long-distance dependent data in existing technologies.
[0115] Before predicting the periodic term in S3, the autocorrelation function (ACF) is used to analyze its autocorrelation coefficient. The number of lag periods with high correlation with itself is selected. The adjacent data lagging behind the observation point and the historical time data of several periods lagging far behind the observation point are used as the feature set of the periodic term of MSTL decomposition. The periodic term is predicted based on this feature set.
[0116] The periodic feature set consists of two parts: one part consists of historical moment data adjacent to the observation point, and the second part consists of historical moment data for several periods that are far from the observation point.
[0117] One set of features includes: the recent variation patterns of data at the observation points; the second set of features includes: the periodic patterns of the time series, considering both recent changes and historical periodic variations to improve the accuracy of series prediction; following the aforementioned embodiment,
[0118] like Figures 6-7 As shown: Autocorrelation analysis was performed on the quarterly and annual periodic terms respectively. Through multiple experiments, the model performance was optimal when historical data with an autocorrelation coefficient greater than 0.6 and lagged by three periods and an autocorrelation coefficient greater than 0.7 and lagged by three periods were selected as the feature sets for the quarterly and annual periodic terms respectively.
[0119] If the observation point is at time t, the characteristic set of the quarterly periodic term can be obtained through analysis as {d}. t-1 ,...,d t-4 ,d t-88 ,...,d t-94 ,d t-180 ,d t-181 ,d t-270}, where {d t-1 ,...,d t-4 The first part consists of}, and the remaining data constitute the second part of the features;
[0120] The feature set of the annual periodic term is {d} t-1 ,...,d t-21 ,d t-347 ,...,d t-381 ,d t-720,...,d t-739 ,d t-1095}, where {d t-1 ,...,d t-21 The first part consists of}, and the remaining data constitute the second part of the features.
[0121] The specific steps of VMD decomposition in S4 are as follows:
[0122] S4.1: Constructing a variational problem
[0123] The constraint condition for this variational problem is that all components u k The sum of (t) is equal to the original signal s(t). The goal is to minimize the sum of the estimated bandwidths of each mode while ensuring that each IMF is a finite bandwidth modal component with a center frequency. This variational problem is shown in the following equation.
[0124]
[0125] Among them, u k (t) represents the k-th modal component, ω K Let k be the center frequency of the k-th component. Let s(t) be the Dirac function, s(t) be the original signal, and * be the convolution operation.
[0126] S4.2: Solving variational problems
[0127] To transform the constrained variational problem in equation (3) into an unconstrained variational problem, a penalty factor α and a Lagrange multiplication operator λ(t) are introduced, resulting in the extended Lagrange expression shown below.
[0128]
[0129] Then, the alternating multiplier algorithm is used to solve for the "saddle point" in the above equation, i.e., the optimal solution, u. k (t), ω k The iterative expression for λ(t) is shown in the following equation.
[0130]
[0131]
[0132]
[0133] When the following formula is satisfied, k narrowband IMFs are obtained.
[0134]
[0135] MSTL's performance evaluation criteria are based on: root mean square error, mean absolute error, and symmetrical mean absolute percentage error. The calculation formulas for each index are shown in the following equations:
[0136]
[0137]
[0138]
[0139] Where E is the error, n is the number of observation points in the test set, and y i The actual value at observation point i. These are predicted values.
[0140] To more intuitively represent the performance improvement of the model in this application, the performance gain of MSTL on the above three evaluation metrics is expressed as follows:
[0141]
[0142] Among them, P index V represents the performance gain value for a certain metric. O V is the index value of this indicator in the comparison model. P These are the index values of the model in this application;
[0143] In a preferred embodiment, the performance gain obtained by the model in this application is verified by designing four sets of experiments and calculating the evaluation index value of each model in each set of experiments, thereby verifying the effectiveness of the model proposed in this application.
[0144] like Figure 8 As shown in Table 1, Experiment 1: To verify the performance of the combined model in this application, four single models were selected: Least Squares Support Vector Regression (LSSVR), Backpropagation Neural Network (BP), Multiple Linear Regression (MLR), and Long Short-Term Memory Network (LSTM) prediction models, and comparative experiments were conducted on 450 test sets. The combined prediction model performed significantly better than the single model because the daily power generation sequence exhibits strong volatility and randomness due to the influence of multiple factors. The single model cannot fully explore the nonlinear relationships of historical moments in the sequence, while the combined model fully utilizes the complementary advantages of different prediction models and data preprocessing algorithms, enabling it to extract both linear and nonlinear relationships, resulting in higher prediction performance.
[0145] Table 1 shows the error values of the Experiment 1 model of this invention:
[0146]
[0147]
[0148] like Figure 9 As shown in Table 2, Experiment 2: In order to verify the advantages of combining MSTL, MLR, LSTM and VMD algorithms in the model presented in this paper, two commonly used combined models, EEMD-LSTM and VMD-LSTM, were selected for comparative experiments. The MSTLEnsemble model in this application has higher prediction accuracy because it uses the MSTL decomposition algorithm to decompose the potential patterns of the electricity data into different components and uses a better prediction model for different components.
[0149] Table 2 shows the error values of the experimental model of the present invention:
[0150] Model RMSE MAE SMAPE EEMD-LSTM 1540.06 1257.79 1.55% VMD-LSTM 971.62 734.58 0.88% MSTLEnsemble 820.19 604.59 0.75%
[0151] like Figure 10 As shown in Table 3, Experiment 3: To verify the impact of the second part of the feature set in this paper (i.e., considering the changes in the sequence over historical periods) on the prediction performance, the model in this paper was compared with the model that does not consider the second part of the feature set (MSTLEnsemble-1). The results show that the model in this application is significantly better than MSTLEnsemble-1 because the data of the daily power generation observation point is affected not only by the changes in adjacent historical data, but also by the data that is several periods apart from the observation point. Therefore, considering this part of the feature will significantly improve the performance of the model.
[0152] Table 3 shows the error values of Experiment 3 model of the present invention:
[0153] Model RMSE MAE SMAPE STLEnsemble-1 1436.91 1063.34 1.30% MSTLEnsemble 820.19 604.59 0.75%
[0154] like Figure 11As shown in Table 4, Experiment 4: To verify the impact of MSTL and VMD decomposition on model performance, the MSTLEnsemble model was compared with models that only decomposed the quarterly cycle (STLEnsemble-1), models that only decomposed the annual cycle (STLEnsemble-2), models that did not decompose the residual term (MSTLEnsemble-2), and models that performed EEMD decomposition on the residual term (MSTLEnsemble-3). The results show that the model in this application is significantly better than other models because: the daily power generation sequence contains both quarterly and annual cycles. If only one is considered, some historical information affecting the observation point data will be lost, resulting in a decrease in prediction accuracy. The residual term after MSTL decomposition contains information affected by random factors, exhibiting strong volatility and randomness. If it is decomposed into a stationary sequence, the volatility and nonlinearity of the sequence will be reduced, thereby improving the model prediction accuracy. VMD decomposition can overcome the mode mixing effect and other effects that occur in the EEMD decomposition results. Therefore, the VMD decomposition method can make the model prediction accuracy higher.
[0155] Table 4 shows the error values of Experiment 3 model of the present invention:
[0156] Model RMSE MAE SMAPE STLEnsemble-1 938.05 702.28 0.86% STLEnsemble-2 1130.00 824.72 1.01% MSTLEnsemble-2 1415.34 1064.37 1.30% MSTLEnsemble-3 856.80 662.44 0.82% MSTLEnsemble 820.19 604.59 0.75%
[0157] like Figure 12 It can be seen that, based on the relevant formulas and the error values of each model in the above three sets of experiments, the performance gain value obtained by the MSTLEnsemble model is calculated, and it is concluded that the performance of the model in this application is significantly improved compared with other models. Taking RMSE as an example, the performance gains obtained by the model in this application compared with other models are 0.80, 0.70, 0.69, 0.68, 0.47, 0.16, 0.43, 0.42, 0.04, 0.13 and 0.27, respectively. This is because the daily power generation sequence contains multiple cycles, which are not only affected by the historical data of the time adjacent to the observation point, but also related to the historical information of several cycles far away from the observation point. In addition, the residual term is highly complex. The model in this application comprehensively considers these influences, thereby significantly improving its prediction performance.
[0158] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A short-term power generation prediction method based on ensemble learning, characterized in that: The prediction method includes the following steps: S1: Decompose the original data. Use MSTL to decompose the original data, extracting inherent trend terms, quarterly cycle terms, annual cycle terms, and decomposition residuals. Specific steps include: extracting small-cycle terms and their corresponding trend terms and residuals using STL decomposition; superimposing the extracted trend terms and residuals; and performing STL decomposition again on the superimposed sequence to extract large-cycle terms and their corresponding trend terms and residuals. The MSTL decomposition result is shown in the equation: Where n is the number of periodic terms in the original data, Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, R(t) is the residual term, and S i (t), i=1,2,…n; S2: Predict the trend term. The trend term is predicted using MLR. The specific steps are as follows: Take the time t of the observation point in the trend term as the dependent variable, and lag n data points... Using multiple linear regression theory as the independent variable, a mathematical model of a multiple linear equation is established. The model is then statistically tested for significance, reliability, goodness of fit, and standard error using relevant theories or statistical software. The expression for the multiple regression model is shown in the following equation: ,in, These are parameters to be determined. For the intercept term, The coefficient of the independent variable. It is a random variable and is ignored in practical applications; S3: Predicting the periodic items. For both quarterly and annual periodic items, we consider both historical data adjacent to the observation point and historical data from several periods far from the observation point to fully explore the potential patterns in historical power generation data. We use an LSTM model to predict the two periodic items. S4: Predict the residual term. The residual term is further decomposed through VMD. The specific operation steps include two parts: constructing the variational problem and solving the variational problem. The LSTM model is still used to predict the VMD components. S5: Reconstruct the prediction results. Reconstruct the prediction results of all components to obtain the short-term power generation prediction value. Before predicting the periodic term in S3, the autocorrelation function (ACF) is used to analyze its autocorrelation coefficient. The number of lag periods with high correlation with itself is selected. The adjacent data lagging behind the observation point and the historical time data of several periods lagging far behind the observation point are used as the feature set of the periodic term in MSTL decomposition. The periodic term is predicted based on this feature set.
2. The short-term power generation prediction method based on ensemble learning as described in claim 1, characterized in that: The specific steps of the STL decomposition method in S1 are as follows: By using Loess to extract smoothed estimates of the three components, the time series is decomposed into three main components: a trend term, a seasonal term, and a residual term, as shown in the equation: , where Y(t) is the original sequence, T(t) is the decomposed trend term, S(t) is the seasonal term, and R(t) is the residual term.
3. The short-term power generation prediction method based on ensemble learning as described in claim 1, characterized in that: The periodic feature set consists of two parts: one part consists of historical moment data adjacent to the observation point, and the second part consists of historical moment data for several periods that are far from the observation point. One set of features includes the recent variation patterns of data at the observation points; the other set includes the periodic patterns of the time series, taking into account both recent changes and historical changes to improve the accuracy of series prediction.
4. The short-term power generation prediction method based on ensemble learning as described in claim 1, characterized in that: The LSTM structure in S3 is used to solve the problem of long-term and short-term dependencies in time series. The computation process of the LSTM neural network is as follows: S3.1: The new information and the output value of the hidden layer neuron from the previous time step are sent to the input gate. Based on the activation state of the input gate, the input information at this time step is selectively stored in the storage unit. The activation state of the input gate and the input and output formulas of the input gate are shown in the following equation: ; ; ; in, The output value of the hidden layer output gate at time t-1. This provides information about the original sequence at time t. Since it's a Sigmad function, the gate's activation state is [0, 1]. , These are the weights for the input gate and the cell state, respectively. , These are the bias terms for the input gate and the cell state, respectively; S3.2: Filter the information from the previous time step using the input gate and forget gate. The information is sent to the Forget Gate. Based on the Forget Gate's activation status, the information passing through the Forget Gate is selected to be forgotten. The Forget Gate's status and output formula are shown in the following equation: ; ; in, and These are the weights and biases of the forget gate unit state, respectively; S3.3: The output values of the input gate and the forget gate are superimposed to obtain the filtered information at time t, which is also the input value of the output gate. The new information filtered by the input gate and the forget gate at the current time is shown in the following formula: ; S3.4: The information filtered by the input gate and forget gate is sent to the output gate. Based on the activation state of the output gate, the filtered information is propagated to the final state. The state of the output gate and the output formula of the output gate are shown in the following equation: ; ; in, and These are the weights and bias terms of the output gate unit state, respectively; S3.5: The calculated and Pass in the next time step for loop operation; S3.6: Convert the output value of the hidden layer The input is fed into the output layer, and after passing through the activation function, the output value of the neuron at time t is obtained. The output formula is shown in the following equation: , where V is the weight matrix from the hidden layer to the output layer, and g is the activation function.
5. The short-term power generation prediction method based on ensemble learning as described in claim 1, characterized in that: The specific steps of VMD decomposition in S4 are as follows: S4.1: Constructing a variational problem The constraint condition for this variational problem is that all components... The sum of the original signal The goal is to minimize the sum of the estimated bandwidths of each mode while ensuring that each IMF is a finite-bandwidth modal component with a center frequency. This variational problem is shown in the following equation: ; in, For the k-th modal component, Let k be the center frequency of the k-th component. For the Dirac function, The original signal, This is a convolution operation; S4.2: Solving variational problems To transform the constrained variational problem in equation (3) into an unconstrained variational problem, a penalty factor is introduced. Lagrange multiplication operator The resulting extended Lagrange expression is shown below: ; Then, the alternating multiplier algorithm is used to solve for the "saddle point" in the above equation, i.e., the optimal solution. , and The iterative expression is shown in the following equation: ; ; ; When the following formula is satisfied, k narrowband IMFs are obtained; 。 6. The short-term power generation prediction method based on ensemble learning as described in claim 1, characterized in that: MSTL's performance evaluation criteria are based on: root mean square error, mean absolute error, and symmetrical mean absolute percentage error. The calculation formulas for each index are shown in the following equations: ; ; ; Where E is the error, and n is the number of observation points in the test set. The actual value at observation point i. These are predicted values.
7. The short-term power generation prediction method based on ensemble learning as described in claim 6, characterized in that: The performance gains of MSTL on root mean square error, mean absolute error, and symmetric mean absolute percentage error are expressed as follows: ; in, This refers to the performance gain value on a certain metric. The index value of this indicator is used as a reference for the model. These are the index values of the model in this application.
