RIES load prediction method based on IDBO optimization CNN-BiLSTM model

The CNN-BiLSTM model is optimized through the improved IDBO optimization algorithm, which solves the problem of difficult optimization of hyperparameters in load forecasting in regional integrated energy systems, improves the prediction accuracy and computing efficiency of the model, and achieves more efficient load forecasting.

CN118839722APending Publication Date: 2024-10-25HENAN UNIV OF SCI & TECH
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410807344.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The existing technology has the problem that hyperparameters are difficult to optimize in load forecasting in regional integrated energy systems, resulting in high prediction deviations, and the computational complexity of deep learning methods is high, which affects the training effect of the model.

Method used

The improved dung beetle optimization algorithm IDBO is used to optimize the CNN-BiLSTM model, and the individual positions of the population are initialized through the Sobol sequence. The curve adaptive strategy and the cosine adaptive coefficient are used to improve the position update method of the rolling ball dung beetle and the small dung beetle, and improve the overall performance of the optimization algorithm. Search capability and convergence accuracy.

Benefits of technology

It significantly improves the performance and generalization ability of the CNN-BiLSTM model, reduces the load forecasting deviation caused by improper selection of hyperparameters, and improves the accuracy and computational efficiency of multivariate load forecasting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839722A_ABST
    Figure CN118839722A_ABST
Patent Text Reader

Abstract

The invention provides an RIES load prediction method for optimizing a CNN-BiLSTM model based on IDBO, and the method comprises the steps: firstly, building a prediction method based on CNN-BiLSTM according to the load characteristics of a regional integrated energy system; secondly, a Sobol sequence, a curve self-adaption strategy and a cosine self-adaption coefficient are adopted to improve a population initialization method, a roll dung beetle position updating method and a small dung beetle position updating method in the DBO algorithm, a CEC 2022 function is adopted to conduct related test experiments on an IDBO optimization algorithm, and the result shows that the improved DBO has the advantages of being high in global search ability and high in convergence speed. And finally, the hyper-parameters of the CNN-BiLSTM model are optimized by adopting IDBO, in order to verify the effectiveness of the proposed method, compare different scenes and select different models for comparison experiments, the optimization performance of the IDBO is superior to that of optimization algorithms such as HHO and WOA, the optimal CNN-BiLSTM hyper-parameters can be searched, and the load prediction deviation caused by improper selection of the hyper-parameters is reduced. According to the RIES load prediction method for optimizing the CNN-BiLSTM model through the IDBO provided by the scheme, the precision of RIES multi-element load prediction can be more effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of regional integrated energy forecasting, and in particular to a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model. Background Art

[0002] With the development of regional integrated energy systems (RIES), load forecasting is becoming more and more important in RIES planning, operation optimization, and demand response. The new energy system has put forward higher requirements on the accuracy, real-time and intelligence of load forecasting, and further research and improvement of forecasting methods are needed to better adapt to and respond to future energy challenges.

[0003] At present, there are mainly two methods for RIES load forecasting: classical forecasting method and deep learning forecasting method. The classical forecasting method has the characteristics of simple structure and fast forecasting speed. However, there are problems such as simple forecasting mode, difficulty in mining nonlinear coupling relationship, and poor generalization ability under different application backgrounds, which leads to poor reliability and accuracy of RIES load forecasting. Deep learning has a strong ability to learn and process nonlinear problems. Compared with classical forecasting methods, it can better mine nonlinear and coupling characteristics in historical data. For example, deep learning methods such as long short-term memory network LSTM, gated recurrent unit GRU and convolutional neural network CNN have been gradually applied to regional comprehensive energy load forecasting.

[0004] LSTM is an improved recurrent neural network RNN, which effectively improves the vanishing and explosion problems of traditional RNN during gradient back propagation, and has been widely used in the field of load forecasting. Existing literature has constructed a short-term forecasting model of multi-loads in regional integrated energy systems based on improved LSTM, and analyzed the correlation and coupling between loads and between loads and meteorological factors, but the robustness of the model needs further verification. In order to solve the problem of extracting coupling features in load forecasting, some researchers have adopted a forecasting method combining feature separation and fusion technology with improved CNN. The results show that its prediction accuracy is better than that of separate CNN and LSTM models and other benchmark models. However, this forecasting method only considers historical load data, and does not consider other related factors such as weather that may affect load forecasting. In order to extract the strong coupling between different energy loads and improve the interpretability and accuracy of load forecasting, some researchers have adopted a coupling feature extraction strategy to construct coupling features between loads as the input variables of the model, and used the long short-term memory LSTM model as the shared layer. An interpretable framework forecasting method based on multi-task learning MTL and ShapleyAdditiveEx interpretation is proposed, combining global interpretation with local interpretation to improve the interpretability of RIES load forecasting.

[0005] In order to solve the problem of too much repeated data and poor convolution effect, researchers use a combination of multi-task learning methods and deep learning methods to further improve the generalization ability of the model. Existing literature proposes a prediction method that combines multi-task learning with LSTM. Multi-task learning obtains feature coupling relationships, and LSTM learns time series features, which has high prediction accuracy. Some researchers have also established a deep learning framework that integrates CNN and LSTM, using CNN to extract time series features and LSTM to learn time series. In order to avoid the gradient vanishing or exploding during the processing of LSTM and affect the training effect of the model, a method of integrating two bidirectional LSTMs, namely BiLSTM, is used to make full use of the information of bidirectional LSTM.

[0006] Because BiLSTM requires a lot of time and computing resources when processing long sequences, resulting in high computational complexity, in order to solve this problem, some researchers have used other methods to integrate with BiLSTM. Existing literature has proposed a BiLSTM neural network model based on the time pattern attention TPA mechanism to address the problem that existing forecasting methods are difficult to handle multiple influencing factors in short-term power load forecasting. This method effectively saves computing resources. Existing literature has proposed a BiLSTM model based on an improved Transformer structure, using the time-lag cross-correlation analysis method to perform correlation analysis on influencing factors, using BiLSTM to capture time series features, and the proposed model has superior computational complexity. Some researchers have also used a power load forecasting method that combines empirical mode decomposition (EMD) and BiLSTM. First, the time series is decomposed into components of different resolutions, and BILSTM is used to predict each eigenmode. Through comparative experiments, the model has the smallest computing time and occupied resources.

[0007] Studies have shown that when using deep learning methods to predict load, there is a problem that hyperparameters are difficult to optimize. Therefore, intelligent optimization algorithms are widely used in model parameter optimization. Existing literature uses the chaotic sparrow search algorithm CSSA to optimize the hyperparameters of the model. The results show that after optimizing the model parameters using the optimization algorithm, the prediction accuracy is improved. Existing literature uses improved particle swarm optimization technology to optimize the hyperparameters of multiple LSTM models, realizes the prediction of nonlinear load sequences, and improves the prediction accuracy. With the continuous development of intelligent optimization algorithms, the optimization methods of model parameters are also constantly updated. Existing literature constructs a regional distribution network short-term load forecasting model that combines maximum information coefficient, factor analysis, gray wolf optimization and generalized regression neural network. First, the maximum mutual information coefficient MIC is used to quantify the nonlinear correlation between load and input features, and invalid features are eliminated. Then, under the premise of maintaining the main feature information of the input, the input features after screening are reduced in dimension. The generalized regression neural network GRNN is used to perform regression analysis on the input features after screening and dimensionality reduction, and the gray wolf optimization algorithm GWO is used to optimize the parameters of GRNN. It has strong global search capabilities and fast convergence speed. Existing literature proposes a multi-model fusion prediction method of genetic algorithm-long short-term memory GA-LSTM, radial basis fusion-autoencoder RBF-AE and particle swarm optimization-support vector machine PSO-SVM. GA-LSTM is used to predict high-frequency loads, and PSO-SVM is used to predict low-frequency loads. The prediction results are better than LSTM, SVM, and RBF methods. Existing literature combines the advantages of long short-term memory LSTM and swarm intelligence SI optimization algorithm, and proposes a hybrid deep learning CNN-LSTM model based on Coati optimization algorithm for predicting wind power\photovoltaic power, which improves the prediction accuracy. In order to more efficiently mine the feature information of different scales of time series data, some researchers have fused the classic models and then used the optimization algorithm to optimize the hyperparameters. Compared with the traditional time domain analysis method, the model significantly reduces the error accumulation, the average prediction error is reduced by 37.40%, and the prediction efficiency is improved by 30.73%.

[0008] The combination of CNN and BiLSTM can improve the accuracy of RIES load forecasting, but there are a large number of parameters that need to be learned, which affects the forecasting performance. The use of intelligent optimization algorithms to optimize hyperparameters can significantly improve the convergence speed and calculation speed of the hyperparameters of the forecasting method. For example, the whale optimization algorithm WOA, the Harris Hawk optimization algorithm HHO and the dung beetle optimization algorithm DBO. Compared with other algorithms, the DBO algorithm has obvious advantages in convergence speed, scalability, optimization accuracy and elasticity. However, the DBO algorithm uses a random distribution method when initializing the population, which cannot guarantee the uniformity of the population, resulting in the population search being too slow and difficult to converge; at the same time, it has the disadvantages of weak global search ability and easy to fall into local optimality when updating the position, so it is necessary to improve it. Summary of the invention

[0009] The purpose of the present invention is to provide a RIES load forecasting method based on IDBO optimization of CNN-BiLSTM model, by improving DBO to improve the global optimization ability and convergence accuracy of the optimization algorithm.

[0010] In order to achieve the above object, the technical solution adopted by the present invention is: a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model, comprising the following steps: Step 1: Preprocess the input data, limit its range to [0,1], and divide the data set into training data set and test data set; Step 2: Use the data in the training dataset to train the CNN-BiLSTM model, and build the CNN-BiLSTM model by learning the patterns and trends of historical energy load data; Step 3: Use the IDBO algorithm to optimize and improve the hyperparameters of the CNN-BiLSTM model. Through the iterative optimization process of the IDBO algorithm, find the optimal hyperparameter configuration to improve the performance and generalization ability of the CNN-BiLSTM model. Step 4: Use the test data set to test the CNN-BiLSTM model optimized by IDBO to evaluate its performance on unseen data and help verify the generalization ability and prediction accuracy of the CNN-BiLSTM model; Step 5: Compare the prediction results of the IDBO optimized CNN-BiLSTM model with the actual observations, and calculate the prediction error to understand the prediction deviation of the model under different circumstances; Step 6: Output the load forecasting results based on the IDBO-CNN-BiLSTM method.

[0011] Preferably, the CNN-BiLSTM model includes an input layer, a convolutional layer, a pooling layer, a BiLSTM layer, a fully connected layer and an output layer.

[0012] Preferably, the sampling method of the IDBO algorithm is to use a Sobol sequence to initialize the positions of individuals in the population. The Sobol sequence is a sequence based on the prime number 2 and is used to generate uniformly distributed points in a high-dimensional space.

[0013] Preferably, the generation process of the Sobol sequence is to select an irreducible polynomial (S) with a maximum degree of n to generate q direction numbers; through a series of transformations and permutations of the direction numbers, they are mapped to the interval [0,1] to form each point of the Sobol sequence.

[0014] Preferably, the rolling ball dung beetle position update mode of the IDBO algorithm is that when the rolling ball dung beetle is in an obstacle-free state, the position update parameter b affects the search range of the dung beetle, and the parameter from large to small corresponds to the change from global to local search. The curve adaptive strategy will reduce the rate of change of parameter b at the beginning and end, which helps to enhance the global search ability of the algorithm at the beginning and the local search ability at the end, and at the same time can increase the search range. The strategy is shown in the following formula: b * =(cosπ·(t / T max )+1)×0.5 In the above formula, t is the current iteration number, T max is the maximum number of iterations, and the position update improvement is as follows: x i (t+1)=x i (t)+α×k×x i (t-1)+b * ×Δx.

[0015] Preferably, the position update method of the dung beetle in the IDBO algorithm is an IDBO algorithm improved by a cosine adaptive coefficient, and the cosine adaptive coefficient ω is calculated as follows: The small dung beetle position update is improved as follows: x i (t+1)=X b +ω×S×g×(x i (t)-X * |+|x i (t)-X b |).

[0016] Preferably, the performance test of the IDBO algorithm adopts the CEC2022 test function set to perform a verification test on the optimization performance of the IDBO algorithm, including four types of functions: unimodal function, multimodal function, hybrid function and combination function.

[0017] The beneficial effects of the present invention are:

[0018] 1. This scheme is aimed at regional integrated energy systems. When deep learning methods are used for load forecasting, there is a problem that hyperparameters are difficult to optimize, resulting in high load forecasting deviation. A RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is proposed. First, according to the load characteristics of the regional integrated energy system, a prediction method based on CNN-BiLSTM is established. Secondly, the population initialization, the position update method of rolling dung beetles and small dung beetles in the DBO algorithm are improved by using Sobol sequence, curve adaptive strategy, and cosine adaptive coefficient, respectively. The IDBO optimization algorithm is tested using CEC2022 function. The results show that the improved DBO has the advantages of strong global search ability and fast convergence speed. Finally, IDBO is used to optimize the hyperparameters of the CNN-BiLSTM model. To verify the effectiveness of the proposed method, different scenarios and different models are compared for comparative experiments. The optimization performance of IDBO is better than that of HHO, WOA and other optimization algorithms. It can search for the best CNN-BiLSTM hyperparameters and reduce the load forecasting deviation caused by improper hyperparameter selection. The RIES load forecasting method based on IDBO optimized CNN-BiLSTM model proposed in this scheme can more effectively improve the accuracy of RIES multivariate load forecasting.

[0019] 2. This scheme improves DBO by adopting Sobol sequence, curve adaptive strategy and cosine adaptive coefficient optimization strategy to improve the global optimization ability and convergence accuracy of the optimization algorithm. Experimental results show that this improvement is better than WOA, HHO and traditional DBO algorithms, and significantly improves the optimization effect. Comparative experiments with prediction methods such as LSTM, GRU, and CNN-LSTM show that the proposed method improves the MAPE, MAE, RMSE, and R2 values ​​of cold, hot, and electricity by 0.73%, 1.05%, 3.21%, 25.04%, 23.38%, 17.63%, 38.73%, 42.26%, 42.25%, 2.08%, 2.11%, and 3.15% respectively. This prediction method significantly improves the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 This is the IDBO-CNN-BiLSTM prediction flow chart of the present invention.

[0022] Figure 2 This is a structural diagram of the LSTM neural network of the present invention.

[0023] Figure 3 This is the BiLSTM structure diagram of the present invention.

[0024] Figure 4 This is the CNN structure diagram of the present invention.

[0025] Figure 5 This is a structural diagram of the CNN-BiLSTM model of the present invention.

[0026] Figure 6 A comparison diagram of individual distributions generated by random sampling and Sobol sequence generation of the present invention.

[0027] Figure 7 It is a test function convergence curve diagram of IDBO, DBO, WOA and HHO of the present invention on the CEE-BC-2022 standard function.

[0028] Figure 8 It is the historical load curve diagram of the present invention.

[0029] Fig. 9 It is a meteorological data curve chart of the present invention.

[0030] Fig.10 This is a graph of the load forecasting results of the integrated energy system using different optimization methods in the present invention.

[0031] Fig.11 The iterative graph is optimized for the present invention.

[0032] Fig.12 This is a comparison chart of the results of different prediction methods of the present invention. DETAILED DESCRIPTION

[0033] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] The present invention discloses a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model. Figure 1 As shown, the embodiment includes the following steps: Step 1: Preprocess the input data, limit its range to [0,1], and divide the data set into training data set and test data set; Step 2: Use the data in the training dataset to train the CNN-BiLSTM model, and build the CNN-BiLSTM model by learning the patterns and trends of historical energy load data; Step 3: Use the IDBO algorithm to optimize and improve the hyperparameters of the CNN-BiLSTM model. Through the iterative optimization process of the IDBO algorithm, find the optimal hyperparameter configuration to improve the performance and generalization ability of the CNN-BiLSTM model. Step 4: Use the test data set to test the CNN-BiLSTM model optimized by IDBO to evaluate its performance on unseen data and help verify the generalization ability and prediction accuracy of the CNN-BiLSTM model; Step 5: Compare the prediction results of the IDBO optimized CNN-BiLSTM model with the actual observations, and calculate the prediction error to understand the prediction deviation of the model under different circumstances; Step 6: Output the load forecasting results based on the IDBO-CNN-BiLSTM method.

[0035] LSTM is a recurrent neural network with a gating mechanism that can effectively process time series or sequential data, solve the gradient vanishing and gradient exploding problems in traditional RNN models, and efficiently capture long-term dependencies in sequences. Figure 2 As shown, Figure 2 In, C t-1 , C t Respectively represent the state of the previous moment and the current moment; h t-1 、h t are the outputs of the previous moment and the current moment respectively; x t is the input at the current moment; f t 、i t , o t They are the signals of forget gate, input gate and output gate respectively; is the candidate state information, and the input and output calculation process is shown in formula (1):

[0036] In the above formula, tanh is the hyperbolic tangent activation function; σ is the sigmoid activation function; W f , W i , W C , W o is the weight of the forget gate, input gate, memory unit and output gate; b f 、b i 、b C 、b o They represent the bias of the forget gate, input gate, memory unit and output gate respectively; ⊙ is the point-by-point multiplication operation.

[0037] BiLSTM is a bidirectional recurrent neural network composed of two LSTMs, forward and reverse. Figure 3 shown.

[0038] Figure 3 middle, are the positive output and reverse output of the previous moment respectively, The forward output and reverse output at the current moment, respectively, h t is the output of BiLSTM at the current moment. BiLSTM can better mine the positive and negative dependencies in the time series and further improve the completeness and accuracy of time series feature extraction.

[0039] CNN is a convolutional neural network that can deeply mine the characteristics of input information and effectively reduce the number of network parameters and data dimensions. The basic structure is as follows: Figure 4 shown.

[0040] CNN is mainly composed of input layer, convolution layer, pooling layer, fully connected layer and output layer. The input layer is used to obtain the input data of the convolutional neural network, where N is the time series length of the data and M is the load power and meteorological data information at each moment; the convolution layer is used to extract the spatial distribution characteristics of the input data; the pooling layer is used to reduce the dimensionality of the input high-dimensional feature data to improve the calculation speed of the convolutional neural network and prevent the network from overfitting; the fully connected layer fully connects each neuron with all neurons in the previous layer to fuse local features into global features; the output layer outputs the extracted feature information of the load forecast data and meteorological data.

[0041] The CNN-BiLSTM model includes an input layer, a convolutional layer, a pooling layer, a BiLSTM layer, a fully connected layer and an output layer. Figure 5 shown.

[0042] (1) Input layer: The training data is input into the prediction model in the form of an N × M matrix, where N is the length of the time series and M is the feature information of each time point in the time series.

[0043] (2) Convolutional layer: extracts the spatial features of the input data. In this embodiment, the number of convolution kernels is set to 50, the size is 3×3, and the step size is 1.

[0044] (3) Pooling layer: Reduce the dimension of high-dimensional feature data to improve the calculation speed and avoid overfitting. This embodiment uses the max-pooling method for pooling, the size of the pooling kernel is 2×2, and the step size is 1.

[0045] (4) BiLSTM layer: used to mine the temporal correlation of time series. The forward LSTM mines the temporal correlation in the forward direction of the time series; the backward LSTM mines the temporal correlation in the reverse direction of the time series. The number of neurons is set to 256.

[0046] (5) Fully connected layer: A dual fully connected layer structure is used to fuse the local features in the pooling layer into global features.

[0047] (6) Output layer: outputs the model’s prediction results.

[0048] The Dung Beetle Optimization Algorithm DBO is based on the life habits of dung beetles and finds the target value in space by simulating the position update methods of different members in the dung beetle population. The population contains four members with different functions: rolling dung beetles, egg-laying dung beetles, small dung beetles, and stealing dung beetles. Their respective position update processes are described as follows:

[0049] (1) Ball-rolling dung beetle:

[0050] By simulating the behavior of dung beetles rolling dung balls, they will choose different directions and paths when rolling dung balls to find the best rolling path. The solution space in the optimization problem is regarded as the path of rolling dung balls. The process of individuals searching for the optimal solution in the solution space is similar to the behavior of dung beetles in the process of rolling dung balls. During the rolling process, dung beetles sometimes encounter obstacles. There are two ways to update their positions: with and without obstacles:

[0051] (a) Obstacle-free update method x i (t+1)=x i (t)+α×k×x i (t-1)+b×Δx(2) Δx=|x i (t)-X W |(3) In the above formula, t represents the current iteration number, x i (t) represents the position information of the i-th dung beetle at the t-th iteration, k is the deflection coefficient, and its value range is k∈(0,0.2]; b is a constant, and its value range is b∈(0,1), α deviates from the original method, if there is no deviation, then α=1, otherwise α=-1, Δx simulates the change of light intensity, X W represents the global worst position.

[0052] (b) Update method with obstacles x i (t+1)=x i (t)+tan(θ)|x i (t)-x i (t-1)|(4) θ∈[0,π](5) x i (t)-x i (t-1)| represents the difference between the position of the i-th dung beetle at the t-th iteration and the position at the t-1-th iteration, and tan(θ) is the deflection system angle. , the position of the dung beetle will not be updated.

[0053] (2) Egg-laying dung beetles

[0054] Female dung beetles will hide their dung balls in a safe place to lay eggs, using the following boundary selection strategy to define the activity area of ​​​​the egg-laying cockroaches. Lb * =max(X * ×(1-R),Lb)(6) Ub * =min(X * ×(1+R),Ub) (7) R=1-t / T max (8) X * is the current local optimal position; Lb * and Ub * Respectively represent the lower and upper limits of the spawning area. max represents the maximum number of iterations, Lb and Ub represent the lower and upper bounds of the optimization problem respectively, and the boundary range of the spawning area is dynamically changing and is mainly determined by the R value. The position update of the egg ball is defined as follows: B i (t+1)=X * +b1×(B i (t)-Lb * )+b2×(B i (t)-Ub * )(9) B i (t) is the position information of the i-th egg ball at the t-th iteration, b1 and b2 represent two independent random vectors of size 1×D, and D is the dimension of the optimization problem.

[0055] (3) Small dung beetle

[0056] As the young dung beetles grow, they will come out to look for food. We need to establish an optimal foraging area to guide the young dung beetles. The optimal foraging area is defined as follows: Lb b =max(X b ×(1-R),Lb)(10) Ub b =min(X b ×(1+R),Ub)(11) X b is the global optimal position, Lb b ,Ub b Respectively represent the lower and upper limits of the optimal foraging area. The position of the dung beetle is updated as follows: x i(t+1)=x i (t)+C1×(x i (t)-Lb b )+C2×(x i (t)-Ub b )(12) where x i (t) is the position information of the i-th dung beetle at the t-th iteration. C1 is a random number that obeys the normal distribution: C2 is a random vector from 0 to 1.

[0057] (4) Thief

[0058] To compete for the dung ball, the thief dung beetle will constantly change positions. b is the best place to compete, and the surrounding areas represent the best locations to compete for food. The position of the thief dung beetle is updated as follows: x i (t+1)=X b +S×g×(x i (t)-X * |+x i (t)-X b ) (13) x i (t) represents the position information of the i-th thief dung beetle at the t-th iteration, g is a random vector of normal distribution with mean 0 and variance 1, and S is a constant.

[0059] (5) DBO algorithm implementation steps

[0060] In the DBO algorithm, the population initialization is generated randomly, which cannot guarantee the uniformity of the population, resulting in the population search being too slow and difficult to converge. It has the disadvantages of weak global search ability and easy to fall into local optimum. In view of the above shortcomings, the improved dung beetle optimization algorithm IDBO is introduced to improve it.

[0061] (1) Improve the sampling method

[0062] The DBO algorithm cannot guarantee the uniformity of the population, which causes the population search to be too slow and difficult to converge. This embodiment introduces the Sobol sequence to initialize the positions of the individuals in the population, which better controls the distribution state of the individuals in the population and avoids the population being too dense or sparse. The Sobol sequence is a sequence based on the prime number 2, which is used to generate uniformly distributed points in high-dimensional space. The generation process is as follows: select an irreducible polynomial (S) with a maximum degree of n to generate q direction numbers; through a series of transformations and permutations of the direction numbers, it is mapped to the interval [0,1] to form each point in the Sobol sequence. Compared with traditional random sampling methods, the Sobol sequence has the characteristics of low variability and low repeatability, and provides an effective sampling scheme for numerical calculations in high-dimensional space. In order to compare the spatial distribution of random numbers generated by random sampling and the Sobol sequence, a population of 500 is generated in the range of [0,1]. The random distribution in two-dimensional space is shown as follows. Figure 6 As shown by Figure 6 It can be seen that the population generated by the Sobol sequence is more uniform and covers the space more completely.

[0063] (2) Improve location update method

[0064] The DBO algorithm still has the disadvantages of being easily trapped in the local optimal solution, low convergence accuracy and slow convergence speed during optimization. In order to further improve the performance, the following improvements are made to the positioning methods of the rolling ball dung beetle and the small dung beetle in the DBO algorithm.

[0065] (a) Improve the way the rolling dung beetle updates its position

[0066] When the rolling ball dung beetle is in an obstacle-free environment, the position update parameter b affects the dung beetle's search range. The parameter changes from large to small, corresponding to the change from global to local search. The curve adaptive strategy will reduce the rate of change of parameter b at the beginning and end, which helps to enhance the algorithm's global search ability at the beginning and local search ability at the end, and at the same time can increase the search range. The strategy is shown in the following formula: b * =(cosπ·(t / T max )+1)×0.5(14) In the above formula, t is the current iteration number, T max is the maximum number of iterations, and the position update improvement is as follows: x i (t+1)=x i (t)+α×k×x i (t-1)+b * ×Δx(15)

[0067] (b) Improve the way the dung beetle updates its position:

[0068] The optimization algorithm improved by the cosine adaptive coefficient can usually converge to the optimal solution faster because it can be dynamically adjusted according to the current search direction and step size. The cosine adaptive coefficient ω is calculated as follows: The small dung beetle position update is improved as follows: x i (t+1)=X b +ω×S×g×(x i (t)-X * |+|x i (t)-X b |)(17).

[0069] (3) IDBO optimization algorithm process:

[0070] (4) IDBO algorithm performance test

[0071] The CEC2022 test function set is used to verify the optimization performance of the proposed improved algorithm, including four types of functions: unimodal function F1, multimodal functions F2-F5, hybrid functions F6-F8, and combined functions F9-F12. The test function type Type, description Description, range Range, dimension Dimension, minimum value f min The information is shown in Table 1. Table 1 Test functions

[0072] WOA, HHO, DBO and IDBO were selected for comparative experiments. The performance of the IDBO algorithm was examined through data comparison. In order to avoid the influence of accidental factors and ensure the accuracy and fairness of the test results, the same experimental environment and parameters were used. The population size was set to 50, the maximum number of iterations was 500, the dimension was 20, and each function was run independently 50 times. The performance parameters standard deviation std and mean mean were selected as comparison criteria to verify the superiority of the algorithm. The average fitness change curve is used to reflect the convergence speed and optimization performance of each algorithm, such as Figure 7 shown.

[0073] On 12 selected standard test functions, whether it is a unimodal function or a multimodal function, the performance of the IDBO algorithm is significantly better than other comparison algorithms. By observing the average fitness change curve, it can be found that the average performance of the IDBO algorithm on the test function is more outstanding. The average value and standard deviation are used as evaluation criteria to evaluate the performance of the algorithm. Among them, the standard deviation reflects the stability of the optimization process, while the average value represents the convergence accuracy of the algorithm. The specific data is shown in Table 2. Table 2: Test results of IDBO, DBO, WOA, and HHO on CEE-BC-2022 standard functions

[0074] As can be seen from Table 2, the IDBO algorithm quickly found the optimal value in F1-F12, and had better search ability in the process of finding the optimal solution. From the average value and standard deviation, it can be seen that the IDBO algorithm has better overall effect, which shows that the IDBO algorithm has better stability, robustness and superior optimization performance.

[0075] In summary, IDBO performs significantly better than other comparison algorithms on the above different types of benchmark functions.

[0076] This example uses the load operation history data of Arizona State University to experiment with the proposed prediction method and compare it with other prediction methods. The proposed prediction method is evaluated through the following two experiments:

[0077] (1) Comparative experiment on hyperparameter prediction methods of CNN-BiLSTM model optimized by IDBO and DBO;

[0078] (2) Comparative experiment between IDBO optimized CNN-BiLSTM prediction method and other prediction methods.

[0079] The data collection time range is the complete annual data from 00:00 on January 1, 2023 to 24:00 on December 31, 2023. The historical load curve is as follows: Figure 8 shown. Figure 8 In the data, EL represents electric load, CL represents cooling load, and HL represents heating load. The selected data volume is 8760, totaling 365 days. The data set is divided into training set, test set, and validation set, of which the training set is 70%, the test set is 15%, and the validation set is 15%. Meteorological data mainly include temperature, humidity, air pressure, wind speed, and solar irradiance. Because the meteorological data sometimes has less than 24 data in a day, in order to ensure that the daily meteorological data corresponds to the load data, the missing items of the meteorological data are filled by linear interpolation. The historical meteorological data curve is as follows: Fig. 9 As shown, Temperature, Irradiance, Humidity, Pressure, Precipitation and windspeed respectively represent temperature, irradiance, humidity, pressure, precipitation and wind speed.

[0080] Due to the problem of inconsistent dimensions of multi-energy loads, the data was dimensionlessly normalized and calculated according to the following formula to make it normalized between (0,1).

[0081] where y i is the result of dimensionless normalization, x i is the original data, x min Indicates the minimum value, x max Indicates the maximum value. Since there are abnormal data in the original historical data, data preprocessing such as abnormal data detection, selection, and replacement is required.

[0082] In order to evaluate the prediction performance, four indicators are set: mean absolute error (MAE), root mean square error (RMSE), mean absolute percentage error (MAPE), and determination coefficient (R2), as shown in equations (19)-(22). y i and are the actual value and the predicted value, respectively. is the average value, N is the number of samples in the prediction.

[0083] In order to verify the effectiveness of IDBO optimized CNN-BiLSTM prediction method, two modes, DBO optimized Model1 and IDBO optimized Model2, were set, and one week of data was selected to demonstrate the effect of the proposed prediction method. Fig.10 And as shown in Table 3. Table 3 Comparison of prediction results of different optimization methods

[0084] Depend on Fig.10 As shown in Table 3, the MAPE, RMSE, MAE, and R2 of Model 2 are 43.24%, 14.41%, 21.29%, and 4.25% higher than those of Model 1, the MAPE, RMSE, MAE, and R2 of cooling load are 45.55%, 14.53%, 24.62%, and 6.5% higher, and the MAPE, RMSE, MAE, and R2 of heat load are 64.26%, 22.24%, 34.50%, and 7.78% higher, respectively. The main reason for improving the prediction performance is that the IDBO algorithm is used to optimize the model in Model 2. Compared with DBO, IDBO has better convergence and optimization performance, so it can more effectively adjust the model parameters and improve the accuracy and stability of the prediction.

[0085] In order to verify the effectiveness of IDBO in optimizing the hyperparameters of CNN-BiLSTM, the HHO, WOA, and DBO algorithms are used to optimize the hyperparameters of the CNN-BiLSTM model and compared with IDBO. The population size of the algorithms used is 50, the number of iterations is 300, and the fitness value is the mean square error of the prediction results. The hyperparameter optimization range of the CNN-BiLSTM model is shown in Table 4, and the optimization iteration curve is shown in Fig.11 shown. Table 4 CNN-BiLSTM model hyperparameters

[0086] Depend on Fig.11 It can be seen that WOA falls into the local optimal solution at the beginning of the iteration, HHO and DBO have a certain ability to jump out of the local optimal solution, and IDBO can quickly jump out of the local optimal solution. It reaches the optimal fitness value after 30 iterations and quickly converges to the minimum fitness value, which verifies the effectiveness of IDBO in optimizing CNN-BiLSTM. The hyperparameter optimization results are shown in Table 5. Table 5 Hyperparameter optimization results

[0087] In order to verify the performance of the prediction method, five prediction methods including LSTM, GRU, BiLSTM, CNN-LSTM and CNN-BiLSTM were selected for comparison. The prediction results are shown in the figure. Fig.12 As shown in Table 6: Table 6 Overall error of regional comprehensive energy load forecast

[0088] from Fig.12 As can be seen from Table 6, the proposed prediction method can better extract the fluctuation characteristic information of multi-loads, has the smallest relative error distribution range and the highest prediction accuracy, and the prediction results of the BiLSTM model for the three loads are better than those of the LSTM. The prediction accuracy of the GRU model is higher than that of the BiLSTM. After integrating CNN into the LSTM, its prediction accuracy is improved compared with that of a single model. The reason is that CNN has a strong spatial feature mining capability, which fully extracts the spatial correlation features between different types of loads and improves the prediction accuracy of multi-loads. On this basis, the prediction method combining BiLSTM and CNN is used to predict multi-loads, mining the temporal coupling feature information between different energy systems to further improve the accuracy of the prediction.

[0089] Table 6 summarizes the evaluation indicators of the six models. Compared with the prediction results of the CNN-LSTM model, after the introduction of BiLSTM, the MAPE of the electric load prediction results increased by 4.59, MAE increased by 12.40%, RMSE increased by 6.21%, and R2 increased by 1.06%. The evaluation indicators of cold and hot loads have been improved accordingly, indicating that CNN-BiLSTM has stronger learning ability and prediction accuracy than traditional prediction methods. From the evaluation indicators of the prediction results of CNN-BiLSTM, it can be seen that the MAPE values ​​of cold, hot and electric loads increased by 0.73%, 1.05% and 3.21% respectively, the MAE values ​​increased by 25.04%, 23.38% and 17.63% respectively, the RMSE values ​​increased by 38.73%, 42.26% and 42.25% respectively, and the R2 values ​​increased by 2.08%, 2.11% and 3.15% respectively. It shows that the prediction curves of cold, hot and electric loads are closer to the actual operation curves, indicating that the use of IDBO to optimize the CNN-BiLSTM prediction model can enhance the overall prediction of the system, improve the learning ability during various load fluctuations, achieve effective learning of nonlinear and fluctuating loads, and further improve the multivariate load prediction accuracy of RIES.

[0090] In summary, the RIES load forecasting method based on IDBO optimized CNN-BiLSTM model proposed in this embodiment has higher prediction accuracy and can provide effective prediction services for energy management of regional integrated energy systems.

[0091] It should be noted that the parts not described in detail in the above embodiments are all prior art.

[0092] The above description is only a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention should be covered within the protection scope of the present invention.

Claims

1. A RIES load forecasting method based on IDBO optimized CNN-BiLSTM model, characterized by: The following steps are involved: Step 1: Preprocess the input data, limit its range to [0,1], and divide the data set into training data set and test data set; Step 2: Use the data in the training dataset to train the CNN-BiLSTM model, and build the CNN-BiLSTM model by learning the patterns and trends of historical energy load data; Step 3: Use the IDBO algorithm to optimize and improve the hyperparameters of the CNN-BiLSTM model. Through the iterative optimization process of the IDBO algorithm, find the optimal hyperparameter configuration to improve the performance and generalization ability of the CNN-BiLSTM model. Step 4: Use the test data set to test the CNN-BiLSTM model optimized by IDBO to evaluate its performance on unseen data and help verify the generalization ability and prediction accuracy of the CNN-BiLSTM model; Step 5: Compare the prediction results of the IDBO optimized CNN-BiLSTM model with the actual observations, and calculate the prediction error to understand the prediction deviation of the model under different circumstances; Step 6: Output the load forecasting results based on the IDBO-CNN-BiLSTM method.

2. According to claim 1, a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is characterized in that: The CNN-BiLSTM model includes an input layer, a convolutional layer, a pooling layer, a BiLSTM layer, a fully connected layer and an output layer.

3. According to claim 1, a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is characterized in that: The sampling method of the IDBO algorithm is to use the Sobol sequence to initialize the positions of the individuals in the population. The Sobol sequence is a sequence based on the prime number 2 and is used to generate uniformly distributed points in a high-dimensional space.

4. According to claim 3, a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is characterized in that: The generation process of the Sobol sequence is to select an irreducible polynomial (S) with a maximum degree of n to generate q direction numbers; through a series of transformations and permutations of the direction numbers, they are mapped to the interval [0,1] to form each point of the Sobol sequence.

5. According to claim 1, a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is characterized in that: The rolling ball dung beetle position update method of the IDBO algorithm is that when the rolling ball dung beetle is in an obstacle-free state, the position update parameter b affects the search range of the dung beetle, and the parameter from large to small corresponds to the change from global to local search. The curve adaptive strategy will reduce the rate of change of parameter b at the beginning and end, which helps to enhance the global search ability of the algorithm at the beginning and the local search ability at the end, and at the same time can increase the search range. The strategy is shown in the following formula: b * =(cosπ·(t / T max )+1)×0.5 In the above formula, t is the current iteration number, T max is the maximum number of iterations, and the position update improvement is as follows: x i (t+1)=x i (t)+α×k×x i (t-1)+b * ×Δx。 6. According to claim 1, a RIES load forecasting method based on IDBO optimized CNN-BiLSTM model is characterized in that: The position update method of the dung beetle in the IDBO algorithm is an IDBO algorithm improved by a cosine adaptive coefficient. The cosine adaptive coefficient ω is calculated as follows: The position update of the dung beetle is improved as follows: x i (t+1)=X b +ω×S×g×(x i (t)-X * |+|x i (t)-X b |)。 7. The RIES load forecasting method based on IDBO optimized CNN-BiLSTM model according to claim 1 is characterized in that: The performance test of the IDBO algorithm adopts the CEC2022 test function set to verify the optimization performance of the IDBO algorithm, including four types of functions: unimodal function, multimodal function, hybrid function and combination function.

Citation Information

Cited By

  • Data processing method and device for predicting replacement cycle of lubricating oil of vehicle

    CN119067271A

  • Cloud system load prediction method based on multi-model optimization

    CN119718861A

  • Underwater passive electric field positioning method and system

    CN119757892A

  • Photovoltaic power prediction method and device for traction power supply system, terminal and medium

    CN120373913A

  • Comprehensive energy system load prediction method and system based on multi-task migration

    CN121965512A