Small hydropower load prediction method based on error correction
By combining the two-stage prediction process of EEMD and MOCOA algorithms with BiLSTM neural network, the randomness and volatility problems in small hydropower load prediction are solved, higher prediction accuracy and iteration speed are achieved, and the reliability of power grid dispatching is improved.
Patent Information
- Application Number
- CN202410894431.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
There is randomness and volatility in small hydropower load forecasting, which increases the difficulty of prediction and makes it difficult for existing algorithms to predict accurately, affecting power grid dispatching and power supply reliability.
A small hydropower load forecasting method based on error correction is adopted, combining ensemble empirical mode decomposition (EEMD) and multi-objective raccoon optimization algorithm (MOCOA) with BiLSTM neural network. Through a two-stage load forecasting process, the model parameters and error correction are optimized to improve forecasting. Accuracy.
The accuracy and iteration speed of small hydropower load forecasting are improved, which is better than the traditional model. The evaluation indicators RMSE, MAPE, MAE and determination coefficient R2 are all improved, significantly improving the forecasting effect.
Smart Images

Figure CN118863152A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of transmission network load prediction, and in particular relates to a small hydropower load prediction method based on error correction. Background Art
[0002] As a world-recognized clean energy, hydropower is an important component of the development of new energy. However, most areas with many small hydropower stations are mountainous, and most of the small hydropower stations are run-of-river hydropower stations with poor regulation capabilities, which are easily disturbed by the weather and present high randomness and volatility, which greatly increases the difficulty of small hydropower load forecasting. Therefore, accurate small hydropower load forecasting is crucial to enhancing the grid dispatching capacity, improving power supply reliability and economy.
[0003] At present, load forecasting mainly adopts intelligent forecasting methods, such as BP neural network, SVM support vector machine and ELM extreme learning machine, which are more effective in dealing with nonlinear problems. Deep learning algorithms have been further expanded and improved on the basis of traditional artificial intelligence algorithms. The combination model can combine the advantages of multiple prediction models and effectively process the linear and nonlinear characteristics in data samples, thereby improving the accuracy of load forecasting. Various hybrid deep learning models are introduced to improve the prediction performance by integrating different technologies and methods. For example, to reduce the complexity of input data, a combination model based on signal decomposition can be used; to obtain the best combination of model parameters, a combination model based on intelligent optimization algorithm is selected; compared with the traditional single model, the combination model has better performance for current load forecasting. Compared with traditional load forecasting, small hydropower load is more random and volatile. Therefore, it is necessary to design a small hydropower load forecasting method based on error correction to solve the above problems. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a small hydropower load forecasting method based on error correction. The method aims to overcome the prediction difficulties caused by the randomness and volatility of small hydropower by building a combined prediction model and a two-stage load forecasting process, thereby improving the accuracy of load forecasting.
[0005] In order to achieve the above technical effects, the technical solution adopted by the present invention is:
[0006] The small hydropower load forecasting method based on error correction includes the following steps:
[0007] S1, using ensemble empirical mode decomposition (EEMD) to preliminarily process small hydropower load data;
[0008] S2, combines the BiLSTM neural network with the multi-objective raccoon optimization algorithm MOCOA:
[0009] The parameter setting training of BiLSTM is optimized by MOCOA algorithm, and the BiLSTM prediction model MOCOA-BiLSTM based on multi-objective raccoon optimization algorithm is obtained;
[0010] S3, preliminary load forecasting of small hydropower based on MOCOA-BiLSTM.
[0011] Preferably, in step S1, the small hydropower load data is preliminarily processed using EEMD. The essence of the EEMD method is a multiple empirical mode decomposition of superimposed Gaussian white noise, which utilizes the statistical property of Gaussian white noise with uniform frequency distribution, and changes the extreme point characteristics of the signal by adding different white noises of the same amplitude each time, and then the corresponding IME obtained by multiple EMDs is generally averaged to offset the added white noise, thereby effectively suppressing the production of modal aliasing; specifically, it includes:
[0012] S101, adding noise: adding random noise to the original signal to obtain a disturbance signal:
[0013] y k (t) = y(t) + δ k (t);
[0014] In the formula, y k (t) represents the new sequence after adding the randomly generated white noise for the kth time at time t, δ k (t) is the random white noise sequence added for the kth time at time t, k∈{1,2,…,M};
[0015] S102, EMD decomposition: Perform EMD decomposition on the disturbance signal to obtain the form of each IMF sum:
[0016]
[0017] In the formula, y k,m (t) is the mth modal component obtained after adding white noise for the kth time, r k,m (t) is the residual sequence, J is the number of modal components;
[0018] S103, the operation is performed M times, where M is the average number of times; each decomposition is performed by adding white noise signals with different amplitudes to obtain the final set:
[0019] y 1,m (t),y 2,m (t),…,y M,m (t);
[0020] Where, m = 1, 2, ..., J;
[0021] S104, average the above set to obtain the final IMF:
[0022]
[0023] In the formula, y m (t) is the mth IMF of EEMD decomposition, k = 1, 2, …, M, m = 1, 2, …, J.
[0024] Preferably, in step S2, a BiLSTM prediction model based on a multi-objective raccoon optimization algorithm is trained, i.e., a multi-objective raccoon optimization algorithm, MOCOA, which breaks the limitation of a single objective and optimizes multiple objectives simultaneously while retaining the efficient optimization of COA. The improved update operator can better maintain the balance between algorithm convergence and diversity, and avoid the algorithm from falling into a local optimum, and has certain competitive advantages compared with existing mainstream algorithms.
[0025] Different from single-objective optimization, the optimal solution in multi-objective optimization is no longer a single solution, but a set of optimal solutions, called Pareto set (PS), and the corresponding objective function is called Pareto front (PF). Therefore, based on the single-objective raccoon optimization algorithm, the fast non-dominated sorting and crowding distance calculation methods are first introduced to establish the elite raccoon retention strategy. Secondly, the original update operator is not suitable for the multi-objective raccoon optimization algorithm, and its adaptability is modified. The elite raccoon retention strategy of the proposed multi-objective raccoon optimization algorithm can better solve the invalid update problem.
[0026] Specific methods include:
[0027] S201, fast non-dominated sorting calculation: There is a mutual constraint relationship between different objective functions in the multi-objective problem. The reduction of one objective function will lead to the increase of another objective function. Therefore, we can only find a compromise solution as much as possible. The fast non-dominated sorting method solves this problem well, as follows:
[0028] By comparing the dominance relationship between different individuals, the frontier levels of all individuals in the population are divided; the dominance relationship is that all objective function values of an individual a in the population are better than another individual b and a≠b, then a is said to dominate b; if no other individual in the population can dominate a, then a is called a non-dominated individual. The specific method is:
[0029] Calculate and obtain the objective function values of all individuals in the population;
[0030] By comparing the dominance relationship of each individual in the population with other individuals one by one, the non-dominated individuals at the first PF level are determined, denoted as x1;
[0031] Then, a second comparison is performed on the population without x1 to select x2;
[0032] Repeat the above steps to determine all frontier levels;
[0033] S202, congestion distance calculation:
[0034] In order to make the individual distribution more uniform, the population needs to be measured by the distribution density; on the basis of fast non-dominated sorting, the crowding distance of each individual in the population is calculated separately; the multi-objective crowding distance calculation formula is as follows:
[0035]
[0036] Where D i It is the sum of the crowding distances between the ith individual and the two adjacent individuals at the frontier level where the individual is located on all objective functions, M is the number of objective functions, and N is the population size; the larger the distance, the fewer individuals in the area where the individual is located, and the lower the density; the smaller the distance, the more individuals in the area, and the greater the density;
[0037] S203, Elite Raccoon Retention Strategy:
[0038] The optimal solution of the multi-objective optimization algorithm is PS, which means that the iguanas are no longer one but a group at the same time. First, all individuals in the population are updated in two stages. The updated raccoons are called offspring individuals, and the raccoons before the update are called parent individuals.
[0039] In MOCOA, the update rules of the first stage of COA are no longer applicable, because the best position of the iguana is no longer unique, but is randomly selected from the first frontier level individuals; therefore, the specific update method of the first stage of COA is as follows:
[0040]
[0041] Where P1 is the exploration phase, representing the position information of the iguana, and x 1,j is a constant between [0,1], r is a random integer in the set {1,2}, I is the population size, and v is the dimension of the individual decision variable. Assume that the landing position of the iguana is random, and after landing, the other half of the raccoons start to move towards the prey to hunt it.
[0042] Secondly, merge the updated parent individuals with the child individuals, perform fast non-dominated sorting together, and determine the non-dominated frontier x at each level l , l=1,2,...,K; finally calculate x l The crowding distance of each raccoon in the population is calculated and a new population is selected. The selection process is as follows:
[0043]
[0044] Among them, P G+1 is the selected new population, P0 is the set of selected solutions, when the number of individuals in the set is less than N, x l Individual frontiers join P0, when |P0+x l |>N, then select the individuals with the largest values according to the crowding distance until the number of individuals in P0 reaches N;
[0045] S204, optimizing the parameter setting of BiLSTM by MOCOA algorithm includes optimizing the hyperparameters of the BiLSTM prediction model, the hyperparameters including the learning rate, the number of iterations, the number of hidden layer nodes, and the number of fully connected layer nodes; while the above hyperparameters are used as MOCOA inputs, the mean square error MSE and the prediction error variance are selected as the objective function, which are specifically defined as follows:
[0046]
[0047] Where N is the number of prediction samples, t i is the actual value, is the predicted value, std is the variance function;
[0048] The specific optimization steps of MOCOA using the elite raccoon retention strategy are as follows:
[0049] a. Initialize the population and set the algorithm parameters, including population size, individual upper and lower bounds, and maximum number of iterations;
[0050] b. Randomly initialize all raccoon individual information and calculate the corresponding fitness values;
[0051] c. Perform fast non-dominated sorting on the population and calculate the individual crowding distance;
[0052] d. Randomly select an individual in x1 as the optimal position information of the iguana, and complete the raccoon individual update according to the formula of step S202 and the formula of mean square error MSE and prediction error variance as the objective function;
[0053] e. Select a new population according to the formula of step S202, i.e., the elite raccoon retention strategy;
[0054] f. Check whether the algorithm meets the termination condition. If not, go to step d until the termination condition is met and output the Pareto frontier.
[0055] Preferably, in step S3, performing preliminary small hydropower load forecasting based on MOCOA-BiLSTM includes:
[0056] S301, preliminary prediction stage:
[0057] For the original load sequence of small hydropower, the EEMD original load data is used to decompose it to reduce its complexity. At the same time, the MOCOA algorithm is used to optimize the hyperparameters of BiLSTM, and the mean square error and error variance are selected as the objective function. Finally, the training of the MOCOA-BiLSTM load forecasting model is completed; then the prediction of each component is carried out, and the predicted values of each component are superimposed to obtain the initial load forecasting result;
[0058] S302, error correction stage:
[0059] By extracting the prediction error sequence of S301 at each time point and considering the external influencing factors, and because both the error sequence and external factors are highly nonlinear and complex, it is necessary to use EEMD to decompose the error sequence, and then input it into the MOCOA-BiLSTM model to obtain the error correction value result. Finally, the prediction results obtained in the two stages are added together to obtain the final load forecast result.
[0060] The beneficial effects of the present invention are as follows:
[0061] 1. The MOCOA algorithm improved by fast non-dominated sorting calculation, congestion calculation and elite raccoon retention strategy is superior to the original raccoon algorithm in terms of solution iteration speed and solution accuracy, and has higher performance in the process of optimizing the hyperparameters of the BiLSTTM network.
[0062] 2. After comprehensively considering the inherent error sequence of the prediction model and the impact of external factors on load forecasting, a two-stage small hydropower load forecasting model was proposed, and the MOCOA algorithm was used to overcome the optimization problem of model parameters, the accuracy of small hydropower load forecasting was improved. Compared with the other five load forecasting models, the evaluation indicators RMSE, MAPE, MAE and determination coefficient of the load forecasting model proposed in this paper are 0.361, 11.207%, 0.303, and 0.985, respectively, which have certain advantages in load forecasting. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a decomposition flow chart based on EEMD in the present invention;
[0064] Figure 2 It is a flow chart of network training based on MOCOA in the present invention;
[0065] Figure 3 The historical load data decomposition result in the third embodiment of the present invention;
[0066] Figure 4 The prediction results of different neural networks in the third embodiment of the present invention;
[0067] Figure 5 is the error sequence decomposition result in the third embodiment of the present invention;
[0068] Figure 6 This is a comparison chart of the prediction results for each situation in the third embodiment of the present invention. DETAILED DESCRIPTION
[0069] Embodiment 1:
[0070] like Figure 1 As shown, the small hydropower load forecasting method based on error correction includes the following steps:
[0071] S1, using ensemble empirical mode decomposition (EEMD) to preliminarily process small hydropower load data;
[0072] S2, combines the BiLSTM neural network with the multi-objective raccoon optimization algorithm MOCOA:
[0073] The parameter setting training of BiLSTM is optimized by MOCOA algorithm, and the BiLSTM prediction model MOCOA-BiLSTM based on multi-objective raccoon optimization algorithm is obtained;
[0074] S3, preliminary load forecasting of small hydropower based on MOCOA-BiLSTM.
[0075] Preferably, in step S1, the small hydropower load data is preliminarily processed using EEMD. The essence of the EEMD method is a multiple empirical mode decomposition of superimposed Gaussian white noise, which utilizes the statistical property of Gaussian white noise with uniform frequency distribution, and changes the extreme point characteristics of the signal by adding different white noises of the same amplitude each time, and then the corresponding IME obtained by multiple EMDs is generally averaged to offset the added white noise, thereby effectively suppressing the production of modal aliasing; specifically, it includes:
[0076] S101, adding noise: adding random noise to the original signal to obtain a disturbance signal:
[0077] y k (t) = y(t) + δ k (t);
[0078] In the formula, y k (t) represents the new sequence after adding the randomly generated white noise for the kth time at time t, δ k (t) is the random white noise sequence added for the kth time at time t, k∈{1,2,…,M};
[0079] S102, EMD decomposition: Perform EMD decomposition on the disturbance signal to obtain the form of each IMF sum:
[0080]
[0081] In the formula, y k,m (t) is the mth modal component obtained after adding white noise for the kth time, r k,m (t) is the residual sequence, J is the number of modal components;
[0082] S103, the operation is performed M times, where M is the average number of times; each decomposition is performed by adding white noise signals with different amplitudes to obtain the final set:
[0083] y 1,m (t),y 2,m (t),…,y M,m (t);
[0084] Where, m = 1, 2, ..., J;
[0085] S104, average the above set to obtain the final IMF:
[0086]
[0087] In the formula, y m (t) is the mth IMF of EEMD decomposition, k = 1, 2, …, M, m = 1, 2, …, J.
[0088] Preferably, in step S2, a BiLSTM prediction model based on a multi-objective raccoon optimization algorithm is trained, i.e., a multi-objective raccoon optimization algorithm, MOCOA, which breaks the limitation of a single objective and optimizes multiple objectives simultaneously while retaining the efficient optimization of COA. The improved update operator can better maintain the balance between algorithm convergence and diversity, and avoid the algorithm from falling into a local optimum, and has certain competitive advantages compared with existing mainstream algorithms.
[0089] Different from single-objective optimization, the optimal solution in multi-objective optimization is no longer a single solution, but a set of optimal solutions, called Pareto set (PS), and the corresponding objective function is called Pareto front (PF). Therefore, based on the single-objective raccoon optimization algorithm, the fast non-dominated sorting and crowding distance calculation methods are first introduced to establish the elite raccoon retention strategy. Secondly, the original update operator is not suitable for the multi-objective raccoon optimization algorithm, and its adaptability is modified. The elite raccoon retention strategy of the proposed multi-objective raccoon optimization algorithm can better solve the invalid update problem.
[0090] Specific methods include:
[0091] S201, fast non-dominated sorting calculation: There is a mutual constraint relationship between different objective functions in the multi-objective problem. The reduction of one objective function will lead to the increase of another objective function. Therefore, we can only find a compromise solution as much as possible. The fast non-dominated sorting method solves this problem well, as follows:
[0092] By comparing the dominance relationship between different individuals, the frontier levels of all individuals in the population are divided; the dominance relationship is that all objective function values of an individual a in the population are better than another individual b and a≠b, then a is said to dominate b; if no other individual in the population can dominate a, then a is called a non-dominated individual. The specific method is:
[0093] Calculate and obtain the objective function values of all individuals in the population;
[0094] By comparing the dominance relationship of each individual in the population with other individuals one by one, the non-dominated individuals at the first PF level are determined, denoted as x1;
[0095] Then, a second comparison is performed on the population without x1 to select x2;
[0096] Repeat the above steps to determine all frontier levels;
[0097] S202, congestion distance calculation:
[0098] In order to make the individual distribution more uniform, the population needs to be measured by the distribution density; on the basis of fast non-dominated sorting, the crowding distance of each individual in the population is calculated separately; the multi-objective crowding distance calculation formula is as follows:
[0099]
[0100] Where D i It is the sum of the crowding distances between the ith individual and the two adjacent individuals at the frontier level where the individual is located on all objective functions, M is the number of objective functions, and N is the population size; the larger the distance, the fewer individuals in the area where the individual is located, and the lower the density; the smaller the distance, the more individuals in the area, and the greater the density;
[0101] S203, Elite Raccoon Retention Strategy:
[0102] The optimal solution of the multi-objective optimization algorithm is PS, which means that the iguanas are no longer one but a group at the same time. First, all individuals in the population are updated in two stages. The updated raccoons are called offspring individuals, and the raccoons before the update are called parent individuals.
[0103] In MOCOA, the update rules of the first stage of COA are no longer applicable, because the best position of the iguana is no longer unique, but is randomly selected from the first frontier level individuals; therefore, the specific update method of the first stage of COA is as follows:
[0104]
[0105] Where P1 is the exploration phase, representing the position information of the iguana, and x 1,j is a constant between [0,1], r is a random integer in the set {1,2}, I is the population size, and v is the dimension of the individual decision variable. Assume that the landing position of the iguana is random, and after landing, the other half of the raccoons start to move towards the prey to hunt it.
[0106] Secondly, merge the updated parent individuals with the child individuals, perform fast non-dominated sorting together, and determine the non-dominated frontier x at each level l , l=1,2,...,K; finally calculate x l The crowding distance of each raccoon in the population is calculated and a new population is selected. The selection process is as follows:
[0107]
[0108] Among them, P G+1 is the selected new population, P0 is the set of selected solutions, when the number of individuals in the set is less than N, x l Individual frontiers join P0, when |P0+x l |>N, then select the individuals with the largest values according to the crowding distance until the number of individuals in P0 reaches N;
[0109] S204, optimizing the parameter setting of BiLSTM by MOCOA algorithm includes optimizing the hyperparameters of the BiLSTM prediction model, the hyperparameters including the learning rate, the number of iterations, the number of hidden layer nodes, and the number of fully connected layer nodes; while the above hyperparameters are used as MOCOA inputs, the mean square error MSE and the prediction error variance are selected as the objective function, which are specifically defined as follows:
[0110]
[0111] Where N is the number of prediction samples, t i is the actual value, is the predicted value, std is the variance function;
[0112] The specific optimization steps of MOCOA using the elite raccoon retention strategy are as follows:
[0113] a. Initialize the population and set the algorithm parameters, including population size, individual upper and lower bounds, and maximum number of iterations;
[0114] b. Randomly initialize all raccoon individual information and calculate the corresponding fitness values;
[0115] c. Perform fast non-dominated sorting on the population and calculate the individual crowding distance;
[0116] d. Randomly select an individual in x1 as the optimal position information of the iguana, and complete the raccoon individual update according to the formula of step S202 and the formula of mean square error MSE and prediction error variance as the objective function;
[0117] e. Select a new population according to the formula of step S202, i.e., the elite raccoon retention strategy;
[0118] f. Check whether the algorithm meets the termination condition. If not, go to step d until the termination condition is met and output the Pareto frontier.
[0119] Preferably, in step S3, performing preliminary small hydropower load forecasting based on MOCOA-BiLSTM includes:
[0120] S301, preliminary prediction stage:
[0121] For the original load sequence of small hydropower, the EEMD original load data is used to decompose it to reduce its complexity. At the same time, the MOCOA algorithm is used to optimize the hyperparameters of BiLSTM, and the mean square error and error variance are selected as the objective function. Finally, the training of the MOCOA-BiLSTM load forecasting model is completed; then the prediction of each component is carried out, and the predicted values of each component are superimposed to obtain the initial load forecasting result;
[0122] S302, error correction stage:
[0123] By extracting the prediction error sequence of S301 at each time point and considering the external influencing factors, and because both the error sequence and external factors are highly nonlinear and complex, it is necessary to use EEMD to decompose the error sequence, and then input it into the MOCOA-BiLSTM model to obtain the error correction value result. Finally, the prediction results obtained in the two stages are added together to obtain the final load forecast result.
[0124] Embodiment 2:
[0125] like Figure 2 As shown in FIG. 1 , a specific process of optimizing the hyperparameters of the BiLSTM prediction model using the MOCOA algorithm is disclosed:
[0126] 1. Set the upper and lower ranges of BiLSTM hyperparameters;
[0127] 2. Initialize population parameters: population size, maximum number of iterations;
[0128] 3. The update of raccoon individuals mainly includes two stages: the exploration stage that simulates the hunting process of raccoons on iguanas and the development stage that simulates the process of raccoons escaping from predators:
[0129] (1) Exploration stage:
[0130] When raccoons are hunting, the entire group has a clear division of labor, good teamwork and attack strategy. Suppose an iguana is resting on a tree, and a raccoon group intends to hunt the iguana. First, half of the raccoons quietly climb up the treetops and force the iguana to fall to the ground. The tree climbing process can be expressed as:
[0131]
[0132] In the formula, P1 is the exploration stage, which indicates the location information of the iguana, Iguana is a constant between [0,1], r is a random integer in the set {1,2}, I is the population size, and v is the dimension of the individual decision variable. Assuming that the landing position of the iguana is random, after landing, the other half of the raccoons begin to move towards the prey to hunt it; this process can be defined by a mathematical formula:
[0133]
[0134] Among them, Iguana G is the position of the iguana after landing. ub and lb are the upper and lower bounds of the decision space respectively;
[0135] (2) When a raccoon encounters a predator, it will quickly leave its current location to complete the evacuation. This process can be described as:
[0136]
[0137] Where P2 is the development phase, m is the current iteration number, and M is the maximum iteration number. The raccoon position needs to be checked after each phase is updated to ensure that the update is valid;
[0138] 4. Fast non-dominated sorting divides the population frontier level and calculates the crowding distance:
[0139]
[0140] Where D i It is the sum of the crowding distances between the ith individual and the two adjacent individuals at the frontier level of the individual on all objective functions, M is the number of objective functions, and N is the population size;
[0141] 5. Select a new population through the elite raccoon retention strategy and pass the current optimal parameters to BiLSTM, including:
[0142] First, all individuals in the population are updated in two stages. The updated raccoons are called offspring individuals, and the raccoons before the update are called parent individuals:
[0143]
[0144] Where P1 is the exploration phase, representing the position information of the iguana, and x 1,j is a constant between [0,1], r is a random integer in the set {1,2}, I is the population size, and v is the dimension of the individual decision variable. Assume that the landing position of the iguana is random, and after landing, the other half of the raccoons start to move towards the prey to hunt it;
[0145] Secondly, the updated parent individuals and child individuals are merged, and a fast non-dominated sort is performed together to determine the non-dominated frontier x at each level. l , l=1,2,...,K. Finally calculate x l The crowding distance of each raccoon in the population is calculated and a new population is selected. The selection process is as follows:
[0146]
[0147] Among them, P G+1 is the selected new population, P0 is the set of selected solutions, when the number of individuals in the set is less than N, x l Individual frontiers join P0, when |P0+x l |>N, the individuals with the largest values are selected in sequence according to the crowding distance until the number of individuals in P0 reaches N.
[0148] Embodiment three:
[0149] The load of run-of-river small hydropower generation is mainly related to the river flow, which often shows strong randomness and volatility. There are three main factors affecting the flow: (1) precipitation. Precipitation will cause the power generation of small hydropower to show "hysteresis" and "cumulativeness", increasing the uncertainty of the output of small hydropower; (2) temperature. The temperature affects the flow of run-of-river small hydropower stations, indirectly affecting the run-of-river small hydropower stations and causing changes in the output of small hydropower stations; (3) the amount of water released by upstream hydropower stations.
[0150] Therefore, the data collected in this paper include meteorological data such as rainfall, maximum temperature, minimum temperature and average temperature of run-of-river small hydropower stations, as well as historical load data and upstream water release of small hydropower stations. Therefore, the experimental data source is selected from a run-of-river small hydropower station in Yichang, Hubei from January 1, 2019 to February 18, 2022, with a time interval of 1h, where the data set includes small hydropower generation and rainfall. Taking 24 points of a day as a sample, the total data set is divided according to a ratio of 8:2, and 916 days of data are selected as the training set, and 229 days of data are selected as the test set.
[0151] (1) The short-term original load sequence of small hydropower has high volatility and randomness. It is difficult for a single network model to directly extract effective features from the original load sequence of small hydropower, and complex network models greatly increase the difficulty of training. Therefore, in order to fully explore the hidden time series characteristics of the original load sequence and reduce the complexity of the load sequence, this paper chooses to use the EEMD decomposition method to decompose the original load sequence. The results are shown in the figure. Figure 3 As shown in the figure, the historical load data of small hydropower stations are finally decomposed by EEMD into 6 components, including 5 intrinsic mode components and 1 residual component.
[0152] (2) Comparison of prediction results of different neural networks: By comparing the prediction results of EEMD-MOCOA-BiGRU, EEMD-MOCOA-BiLSTM and EEMD-MOCOA-BP, Figure 4 And as shown in Table 1.
[0153] Table 1: Evaluation metrics for different neural networks
[0154]
[0155]
[0156] From the above indicators, it can be seen that the prediction model built by BiLSTM is more accurate and the prediction results are more interpretable.
[0157] (3) The final prediction result, after obtaining each modal variable, determines each modal function and uses the MOCOA algorithm to determine the optimal hyperparameter group, thereby determining the prediction model, and then adds each component to obtain the initial prediction value of the load. Considering the randomness and volatility of the error sequence, after extracting the error sequence, the error sequence is decomposed again using EEMD according to the data processing method of the first stage, where the error sequence decomposition is shown in: 5, and finally substituted into the MOCOA-BiLSTM model to predict the error sequence. The initial predicted load sequence is added to the predicted error sequence to obtain the final predicted load sequence; and in order to verify the necessity of variable decomposition and error correction, the prediction results of the three cases of EEMD-MOCOA-BiLSTM, MOCOA-BiLSTM and EEMD-MOCOA-BiLSTM after error correction are compared, as shown in FIG. Figure 6 shown.
[0158] Table 2: Evaluation indicators of different combination methods
[0159]
[0160] like Figure 6 As shown in Table 2, by combining different algorithms to build a hybrid model, the accuracy of small hydropower load forecasting and the speed of model training are improved, making each step of the entire forecast more refined, thereby improving the accuracy of load forecasting. Compared with MOCOA-BiLSTM and EEMD-MOCOA-BiLSTM, the evaluation indicators RMSE, MAPE and MAE of this method have all decreased, and the determination coefficient R 2 It also reached 0.985, proving that the final result has a high degree of explanation.
Claims
1. Small hydropower load forecasting method based on error correction, It is characterized in that The following steps are involved: S1, using ensemble empirical mode decomposition (EEMD) to preliminarily process small hydropower load data; S2, combines the BiLSTM neural network with the multi-objective raccoon optimization algorithm MOCOA: The parameter setting training of BiLSTM is optimized by MOCOA algorithm, and the BiLSTM prediction model MOCOA-BiLSTM based on multi-objective raccoon optimization algorithm is obtained; S3, preliminary load forecasting of small hydropower based on MOCOA-BiLSTM.
2. The small hydropower load forecasting method based on error correction according to claim 1, It is characterized in that In step S1, the small hydropower load data is preliminarily processed using EEMD, including: S101, adding noise: adding random noise to the original signal to obtain a disturbance signal: y k (t)=y(t)+δ k (t); In the formula, y k (t) represents the new sequence after adding the randomly generated white noise for the kth time at time t, δ k (t) is the random white noise sequence added for the kth time at time t, k∈{1,2,…,M}; S102, EMD decomposition: Perform EMD decomposition on the disturbance signal to obtain the form of each IMF sum: In the formula, y k,m (t) is the mth modal component obtained after adding white noise for the kth time, r k,m (t) is the residual sequence, J is the number of modal components; S103, the operation is performed M times, where M is the average number of times; each decomposition is performed by adding white noise signals with different amplitudes to obtain the final set: y 1,m (t),y 2,m (t),…,y M,m (t); Where, m = 1, 2, ..., J; S104, average the above set to obtain the final IMF: In the formula, y m (t) is the mth IMF of EEMD decomposition, k = 1, 2, …, M, m = 1, 2, …, J.
3. The small hydropower load forecasting method based on error correction according to claim 2, It is characterized in that In step S2, the BiLSTM prediction model based on the multi-objective raccoon optimization algorithm is trained to include: S201, fast non-dominated sorting calculation: By comparing the dominance relationship between different individuals, the frontier levels of all individuals in the population are divided; the dominance relationship is that all objective function values of an individual a in the population are better than another individual b and a≠b, then a is said to dominate b; if no other individual in the population can dominate a, then a is called a non-dominated individual. The specific method is: Calculate and obtain the objective function values of all individuals in the population; By comparing the dominance relationship of each individual in the population with other individuals one by one, the non-dominated individuals at the first PF level are determined, denoted as x 1 ; Then remove x 1 The population is compared twice and x is selected 2 ; Repeat the above steps to determine all frontier levels; S202, congestion distance calculation: On the basis of fast non-dominated sorting, the crowding distance of each individual in the population is calculated respectively; the multi-objective crowding distance calculation formula is as follows: Where D i It is the sum of the crowding distances between the ith individual and the two adjacent individuals at the frontier level where the individual is located on all objective functions, M is the number of objective functions, and N is the population size; the larger the distance, the fewer individuals in the area where the individual is located, and the lower the density; the smaller the distance, the more individuals in the area, and the greater the density; S203, Elite Raccoon Retention Strategy: First, all individuals in the population are updated in two stages. The updated raccoons are called offspring individuals, and the raccoons before the update are called parent individuals. In MOCOA, the specific update method for the first phase of COA is as follows: Where P1 is the exploration phase, representing the position information of the iguana, and x 1,j is a constant between [0,1], r is a random integer in the set {1,2}, I is the population size, and v is the dimension of the individual decision variable. Assume that the landing position of the iguana is random, and after landing, the other half of the raccoons start to move towards the prey to hunt it. Secondly, merge the updated parent individuals with the child individuals, perform fast non-dominated sorting together, and determine the non-dominated frontier x at each level l , l=1,2,…,K; finally calculate x l The crowding distance of each raccoon in the population is calculated and a new population is selected. The selection process is as follows: Among them, P G+1 is the selected new population, P 0 is the set of selected solutions. When the number of individuals in the set is less than N, x l Individual frontier joins P 0 , when |P 0 +x l |>N, then select the individuals with the largest values according to the crowding distance until P 0 The number of individuals in is N; S204, optimizing the parameter setting of BiLSTM by MOCOA algorithm includes optimizing the hyperparameters of the BiLSTM prediction model, the hyperparameters including the learning rate, the number of iterations, the number of hidden layer nodes, and the number of fully connected layer nodes; while the above hyperparameters are used as MOCOA inputs, the mean square error MSE and the prediction error variance are selected as the objective function, which are specifically defined as follows: Where N is the number of prediction samples, t i is the actual value, is the predicted value, std is the variance function; The specific optimization steps of MOCOA using the elite raccoon retention strategy are as follows: a. Initialize the population and set the algorithm parameters, including population size, individual upper and lower bounds, and maximum number of iterations; b. Randomly initialize all raccoon individual information and calculate the corresponding fitness values; c. Perform fast non-dominated sorting on the population and calculate the individual crowding distance; d. Randomly select x 1 The individuals in are used as the optimal position information of the iguana, and the raccoon individuals are updated according to the formula of step S202 and the formula of mean square error MSE and prediction error variance as the objective function; e. Select a new population according to the formula of step S202, i.e., the elite raccoon retention strategy; f. Check whether the algorithm meets the termination condition. If not, go to step d until the termination condition is met and output the Pareto frontier.
4. The small hydropower load forecasting method based on error correction according to claim 1, It is characterized in that In step S3, the preliminary load forecasting of small hydropower based on MOCOA-BiLSTM includes: S301, preliminary prediction stage: For the original load sequence of small hydropower, the EEMD original load data is used for decomposition, and the MOCOA algorithm is used to optimize the hyperparameters of BiLSTM. The mean square error and error variance are selected as the objective function, and the training of the MOCOA-BiLSTM load forecasting model is finally completed. Then, the prediction of each component is performed, and the predicted values of each component are superimposed to obtain the initial load forecasting result. S302, error correction stage: By extracting the prediction error sequence of S301 at each time point, and combining the meteorological data such as rainfall, maximum temperature, minimum temperature and average temperature of the run-of-river small hydropower station, as well as the upstream water release, the error sequence is decomposed through EEMD, and then input into the MOCOA-BiLSTM model to obtain the error correction value result. Finally, the prediction results obtained in the two stages are added together to obtain the final load forecast result.
