Integrated energy system load prediction method based on LASSO regression and LSTM-GRU neural network
By screening meteorological factors through LASSO regression and the error compensation model of LSTM-GRU neural network, the problem of low accuracy of multi-dimensional load forecasting and insufficient consideration of meteorological factors is solved, and higher-precision comprehensive energy system load forecasting is achieved.
Patent Information
- Application Number
- CN202410485494.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-06
AI Technical Summary
In the load forecasting of integrated energy systems with existing technologies, the multi-element load forecasting accuracy is limited, and the meteorological factors are limited, resulting in the loss of key information, and the lack of effective error compensation mechanisms, affecting the accuracy of the forecasting results.
Methods based on LASSO regression and LSTM-GRU neural network are used to screen out meteorological factors related to multivariate loads through LASSO regression, use LSTM neural network to make preliminary predictions, and establish an error compensation model through GRU neural network to eliminate system errors and improve predictions. Accuracy.
It effectively improves the accuracy of multi-element load forecasting of the integrated energy system, screens out key meteorological factors, reduces data complexity, and improves the accuracy of forecast results through the error compensation model.
Smart Images

Figure CN118611023A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated energy system load forecasting, and in particular to an integrated energy system load forecasting method based on LASSO regression and LSTM-GRU neural network. Background Art
[0002] Integrated energy systems have become a hot topic in energy industry research. Integrated energy systems IES take the power system as the core, taking into account the coupling relationship between multiple loads such as electricity, cooling, and heat. By coordinating the application of different energy sources in the same area, it effectively improves energy utilization. Therefore, it is of great significance to conduct scientific and reasonable load forecasting for integrated energy systems IES. First, through the prediction results, the reasonable allocation of various energy sources can significantly improve the economy of integrated energy systems IES; secondly, according to the prediction results, the system demand side analysis and the formulation of response plans can effectively improve the operational reliability of integrated energy systems IES.
[0003] Most of the existing prediction methods are aimed at predicting a single load type. For example, in reference [1], researchers used principal component analysis to reduce the dimensionality of the modal vector and then used a deep bidirectional long short-term memory neural network to predict the load; reference [2] proposed a load prediction model based on BiLSTM, which can obtain more accurate prediction results by learning the input features that play a key role in load prediction. However, the accuracy of predicting only one type of load among multiple loads is often limited. How to use the coupling relationship between multiple energy sources and loads to improve the prediction accuracy is a major research hotspot. In addition, when the above methods predict multiple loads, the meteorological factors considered are relatively limited, which will lead to the loss of key meteorological information. In addition, the current research on combined prediction models mainly focuses on using some novel algorithms to optimize neural network parameters or using machine learning to mine data features. Few studies focus on error compensation for load prediction results.
[0004] The prediction accuracy of traditional power system load forecasting models needs to be improved. One of the important factors is that in the prediction error of load forecasting, in addition to random errors, there are also systematic errors caused by model performance. The latter will bias the measured values in the same direction with a certain regularity.
[0005] References [1]: Chen Jinpeng, Hu Zhijian, Chen Weinan, et al. Comprehensive energy system load forecasting based on quadratic modal decomposition combined with DBiLSTM-MLR [J]. Automation of Electric Power Systems, 2021, 45(13): 85-94.
[0006] Reference [2]: Li Xiao, Lu Xianling. Short-term load forecasting model based on dual attention mechanism and GRU network[J]. Computer Engineering, 2022, 48(2): 291-296,305. Summary of the invention
[0007] Based on the above analysis, in view of the various meteorological factors that affect the accuracy of load forecasting in the integrated energy system, the present invention proposes a method for load forecasting in the integrated energy system based on LASSO regression and LSTM-GRU neural network, and uses the LASSO compression estimation algorithm to compress and reduce the dimensions of various meteorological factors, and screen out meteorological features with strong correlation with multivariate loads. The invention proposes to use the GRU neural network to construct an error compensation model to compensate for the error of the initial prediction of the LSTM neural network, and eliminate the system error through the compensation value, so as to obtain a more accurate load forecasting result. This method can effectively improve the accuracy of multivariate load forecasting in the integrated energy system and has strong practicality.
[0008] The technical solution adopted by the present invention is:
[0009] The integrated energy system load forecasting method based on LASSO regression and LSTM-GRU neural network, such as Figure 5 As shown, the following steps are included:
[0010] Step 1: A large number of meteorological factors are screened and analyzed by the LASSO regression method to select meteorological factors with strong correlation with multivariate loads;
[0011] Step 2: Use the LSTM neural network to learn and train the meteorological factor data and historical sample data selected in step 1 to obtain the preliminary forecast value of the comprehensive energy load, and use the preliminary forecast value to obtain the load forecast error as the input of the error compensation model;
[0012] Step 3: Use the GRU neural network model to establish an error compensation model. Use the GRU neural network model to train the load forecast error in step 2 to obtain the load error forecast value of the integrated energy system, and then obtain the error compensation value to achieve the purpose of compensating the forecast error.
[0013] Step 4: Reconstruct the preliminary prediction value in step 2, input the load prediction value and error compensation value of the same sample data, sum and denormalize the two, and obtain the final load prediction result.
[0014] In step 1, the LASSO regression method is used to screen and analyze various meteorological factors affecting the diversified load of the integrated energy system. The meteorological factors include light, wind speed, rainfall, etc.; the LASSO regression method compresses the coefficient estimates of some noise variables to 0 by imposing constraints and penalties on the linear regression coefficients, so as to eliminate and screen out key variables. The principle is as follows:
[0015] For a set of sample data {x i1 , x i2 , …, x ip ; y i}, where i = 1, 2, …, n, and n is the number of samples; x i1 , x i2 , …, x ip is a set of input sample data, which refers to meteorological data in the present invention; y i represents the selected result.
[0016] Its corresponding regression model can be expressed as:
[0017] y = α + β1x1 + β2x2 + … + β p x p + ε (1);
[0018] In formula (1): α is the constant term; ε is the random disturbance term; β1, β2, …, β p are the regression coefficients of the independent variables; x1, x2, …, x p are the independent variables, that is, the input meteorological data.
[0019] Introduce a penalty parameter s ≥ 0. The LASSO definition expressions of the constant term and the regression coefficients in formula (1) are:
[0020]
[0021] In formula (2): represents the LASSO definition expression; β j represents the column vector of the regression coefficients; x ij represents the independent variable matrix; s represents the penalty parameter; p represents the number of independent variables.
[0022] Let be the regression parameter estimate value obtained by least squares, s0 is the corresponding penalty parameter value; when s ≥ s0, the optimal solution is the least squares solution; when s < s0, compression will occur. The smaller s is, the stronger the compression effect is. As s decreases, the regression coefficients become extremely small or 0, so that the meteorological factor corresponding to the regression coefficient of 0 is deleted, thereby eliminating the meteorological factors with less influence on the diversified load.
[0023] The meteorological factors related to the integrated energy system are input into the LASSO regression through the above method for data selection. The meteorological factor compression process is as follows: Figure 6 shown. Figure 6 In the above figure, the input meteorological factors include: X1-sun azimuth, X2-relative humidity, X3-wind direction, X4-ultraviolet index, X5-solar radiation, X6-air pressure, X7-precipitable water, X8-average temperature, X9-sunrise time, X10-wind speed, X11-pollution index, X12-maximum temperature. As can be seen from the figure, when the penalty parameter is gradually reduced to S=0.37, 8 meteorological factors are compressed to 0, leaving only 4 key meteorological factors, namely X5-solar radiation, X7-precipitable water, X8-average temperature, and X12-maximum temperature.
[0024] In step 2, error prediction includes the following sub-steps:
[0025] Step 2.1: Set the hyperparameters of the LSTM neural network model:
[0026] The hyperparameters set include: number of input nodes N1, number of hidden nodes N2, number of output nodes N3, learning rate α, error threshold cost, number of nuclei z, and maximum number of iterations s;
[0027] Step 2.2: Initialize LSTM neuron bias weights;
[0028] The information transmission process of neurons in the LSTM model is expressed as follows:
[0029]
[0030] In formula (3): i t , o t 、f t are the output signals of the neuron input gate, output gate and forget gate respectively; W f 、b f are the weight and bias of the forget gate respectively; W i 、b i are the weight and bias of the input gate respectively; Represents the candidate state information of the memory unit at time t; W c 、b c are the weight and bias of the memory unit respectively; C t represents the state of the memory unit at time t; W0 and b0 are the weight and bias of the output gate respectively; h t represents the hidden layer state at time t; x t is the input sequence of the neuron at time t; σ and tanh are the sigmoid activation function and the hyperbolic tangent activation function respectively; ht-1 represents the hidden layer state at time t-1; C t-1 Represents the state of the memory unit at time t-1; ⊙ represents point-by-point multiplication operation.
[0031] Step 2.3: forward calculation;
[0032] The forward calculation formula of the LSTM neural network is shown in formula (3). The forward calculation obtains the output value of each neuron, that is, f t 、i t , o t , h t The values of the five vectors;
[0033] Through forward calculation, the LSTM neural network can more effectively determine which information is forgotten and which information is retained, and process long time series more efficiently.
[0034] Step 2.4: Update network weights and biases according to the loss function η;
[0035] The loss function η represents the error size of the network. The smaller its value is, the more accurate the model is, and vice versa.
[0036] The loss function of the model is the mean square error function, and the calculation formula is as follows:
[0037]
[0038] In formula (4): h loss represents the model loss value; t represents the training time; C t , Represent the actual load and predicted load respectively; n represents the number of training each time.
[0039] Step 2.5: Repeat steps 2.3 and 2.4 until the number of iterations is equal to the set value (100 times in the present invention) or the iteration stops when the loss function is less than 0.1. The specific calculation is shown in formula (4).
[0040] In step 3, the GRU neural network model is used to establish an error compensation model, and the error compensation model is specifically:
[0041] Assume that L t is the initial load forecast value at time t, then the initial load forecast value sequence predicted by the LSTM neural network in step 2 can be expressed as {L1,L2,…L t}, L1, L2, … L t They represent the load forecast values at time 1 to t respectively. Error compensation is achieved by the following two steps:
[0042] Step 3.1: Subtract the initial prediction value predicted by the LSTM neural network in step 2 from the actual value of the load point, and you can get the prediction error sequence {Q1, Q2, ... Q t}; {Q1,Q2,…Q t} represent the load forecast errors at time 1 to t respectively.
[0043] Step 3.2: The prediction error sequence {Q1, Q2, …Q t} Through training and learning, the error prediction value W of the next sample, i.e., the time t+1, can be predicted t+1 , which is the compensation value of the load at time t+1. Adding this compensation value to the actual load at that point can compensate for the error.
[0044] In step 4, the preliminary prediction value in step 2 is reconstructed, including the following sub-steps:
[0045] Step 4.1: Reconstruct the preliminary prediction value. Add the preliminary prediction value at time t+1 in step 2 and the error compensation value obtained in step 3.2 to obtain the final prediction result at time t+1.
[0046] P t+1 =L t+1 +W t+1 (5);
[0047] In formula (5): P t+1 is the final prediction result of the load at time t+1; L t+1 is the initial load prediction value at time t+1; W t+1 is the compensation value of the load at time t+1.
[0048] Step 4.2: Repeat steps 2 to 4.1 to obtain the load forecast sequence for the forecast period {P t+1 ,P t+2 ,…P t+n}, where t is the time interval and n is the forecast time period; assuming that the load output of each hour in a certain day needs to be predicted, then t = 0, n = 23; the forecast result is obtained after the obtained result is denormalized. Denormalization is the inverse operation of normalization. Its principle is:
[0049] X=X'×(X max -X min )+X min (6);
[0050] Where: X is the data after anti-normalization; X' is the data before anti-normalization; X max With X minare the maximum and minimum values in the data sequence, respectively.
[0051] The present invention provides a comprehensive energy system load forecasting method based on LASSO regression and LSTM-GRU neural network, and the technical effects are as follows:
[0052] 1) In step 1 of the present invention, the numerous meteorological factors affecting the multivariate loads are screened and analyzed by the LASSO regression method, which can effectively select the meteorological factors with the greatest impact on the multivariate loads, greatly reducing the complexity of the data and ensuring the validity of the data.
[0053] 2) In step 2 of the present invention, a load forecasting model is established, and historical data is trained and learned through LSTM to obtain preliminary forecasting results. LSTM has a good effect in processing long time series forecasting problems, and is very suitable for processing historical load data with strong seasonal trends and long time series in integrated energy systems. Better preliminary forecasting results can be obtained through LSTM neural network prediction.
[0054] 3) In step 3 of the present invention, an error compensation model is established through a GRU neural network, and the prediction error in step 2 is trained and learned to obtain an error compensation value. The system error is eliminated through this compensation value, and the prediction error of the LSTM neural network is further reduced, thereby obtaining a more accurate prediction result. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is the structure diagram of the integrated energy system load forecasting model based on LASSO and LSTM-GRU.
[0056] Figure 2 Schematic diagram of the LSTM neural network structure.
[0057] Figure 3 Schematic diagram of the GRU neural network structure.
[0058] Figure 4 The prediction method flow of the present invention is Figure 1 ;
[0059] Figure 5 The prediction method flow of the present invention is Figure 2 .
[0060] Figure 6 Schematic diagram of the path selection for meteorological factors of the LASSO algorithm.
[0061] Figure 7 The electric load prediction results of different prediction models.
[0062] Figure 8 Cooling load prediction results of different prediction models.
[0063] Fig. 9 Schematic diagram of the impact of error compensation on electric load prediction results.
[0064] Fig.10 Schematic diagram of the impact of error compensation on cooling load prediction results. DETAILED DESCRIPTION
[0065] A load forecasting method for an integrated energy system based on a compression estimation algorithm and LSTM-GRU neural network. First, in order to solve the problem of complex data caused by meteorological factors in the integrated energy system, a big data selection and analysis algorithm based on LASSO regression was studied, and the meteorological factors were selected and analyzed to obtain an effective data set; secondly, a load forecasting model was established, and the historical meteorological data and historical load power after dimensionality reduction were used as the data set of the LSTM neural network forecasting model. The forecasting model was trained and predicted to obtain preliminary forecast values; then, an error compensation model was constructed using the GRU neural network, and the compensation value of the forecast error was obtained through training and learning the forecast error; finally, by reconstructing the outputs of the LSTM neural network and the GRU neural network, a more ideal forecasting result can be obtained.
[0066] like Figure 1 As shown, Figure 1 The structure diagram of the integrated energy system load forecasting model based on LASSO and LSTM-GRU is given in the figure. The functions of each structure in the figure are introduced as follows:
[0067] (1) Data preprocessing: Due to the dimensional differences between the input meteorological data and load data, the input data needs to be normalized before model prediction to facilitate subsequent model prediction and training.
[0068] (2) LASSO variable selection: The meteorological factors are screened and analyzed using the LASSO regression method to select meteorological factors that have a strong correlation with the multivariate loads.
[0069] (3) LSTM load prediction: The function of the load prediction layer is to use the LSTM neural network to learn and train the sample data to obtain the preliminary prediction value of the load, and then use the preliminary prediction value to calculate the load prediction error as the input of the GRU error compensation layer.
[0070] (4) GRU error compensation: The error compensation layer trains the load error through the GRU neural network to obtain the error prediction value of the load, and then obtains the error compensation value.
[0071] (5) Error reconstruction: The input of the error reconstruction layer is the load prediction value and error compensation value of the same sample data. The function of this layer is to denormalize the sum of the two and then output the final load prediction result of the proposed model.
[0072] The error compensation principle based on the GRU neural network proposed in step 3 and step 4 is:
[0073] The principle of error compensation is to find the law of system error and eliminate the system error by constructing a compensation value, thereby improving the accuracy of load forecasting.
[0074] To this end, the present invention introduces error compensation technology in the process of comprehensive energy system load forecasting. The error compensation model is established through a neural network, and the forecast error is trained and learned to obtain an error compensation value. The system error is eliminated through this compensation value, thereby obtaining a more accurate forecast result. The forecasting method based on the GRU error compensation model is carried out in the following two steps:
[0075] Step a: Solve the prediction error, use the constructed LSTM error prediction model to make a preliminary prediction of the comprehensive energy multi-load, and obtain the prediction error of the point to be predicted by subtracting the actual value from the predicted value.
[0076] Step b: Establish an error compensation model, input the prediction error in step a into the GRU neural network, learn and train the prediction error through the GRU network, obtain the error prediction value of the next sample, and sum the preliminary prediction value with the error prediction value to achieve compensation of the prediction result.
[0077] The LSTM neural network and GRU neural network structure diagrams mentioned in the above steps are as follows: Figure 2 and Figure 3 As shown, where:
[0078] The information transmission process of LSTM model neurons can be expressed as:
[0079]
[0080] In formula (3): i t , o t 、f t are the output signals of the neuron input gate, output gate and forget gate respectively; W f 、b f are the weight and bias of the forget gate respectively; W i 、b i are the weight and bias of the input gate respectively; Represents the candidate state information of the memory unit at time t; W c 、b c are the weight and bias of the memory unit respectively; Ct represents the state of the memory unit at time t; W0 and b0 are the weight and bias of the output gate respectively; h t represents the hidden layer state at time t; x tis the input sequence of the neuron at time t; σ and tanh are the sigmoid activation function and the hyperbolic tangent activation function respectively.
[0081] The information transmission process of neurons in the GRU model can be expressed as:
[0082]
[0083] In formula (7): r t is the output value of the reset gate at time t. When its value is 0, the information of the neuron at time t-1 is discarded; Z t Update the output value of the gate at time t, retaining the amount of information transmitted by the neuron at time t-1; is the candidate hidden state at time t; h t is the hidden layer output state of the neuron at time t; W r , W Z , are the weight matrices of the reset gate, update gate, and candidate hidden state respectively; x t is the input gate at time t.
[0084] Figure 4 The flow chart of the integrated energy system load forecasting method based on LASSO and LSTM-GRU is given. The specific implementation steps are as follows:
[0085] Step 1: Input the meteorological data and historical load data of the area to be predicted
[0086] Step 2: Normalize the input data to facilitate subsequent model prediction and training.
[0087] Step 3: The meteorological factors are screened and analyzed by LASSO regression method, and the meteorological factors with strong correlation with multivariate loads are selected.
[0088] Step 4: Use the LSTM neural network to learn and train the meteorological data and historical sample data selected in Step 3 to obtain the preliminary load forecast value.
[0089] Step 5: Optimize model parameters using the Adam algorithm.
[0090] Step 6: Determine whether the loss function meets the conditions.
[0091] Step 7: Obtain the load forecast error by subtracting the initial forecast value from the actual value.
[0092] Step 8: Train the prediction error in step 7 through the GRU neural network model to obtain the load error prediction value.
[0093] Step 9: Optimize model parameters using the Adam algorithm.
[0094] Step 10: Determine whether the loss function meets the conditions.
[0095] Step 11: Reconstruct the initial load prediction value in step 4 and the prediction error value in step 8 to obtain the final prediction result.
[0096] Verification example:
[0097] The present invention uses the MATLAB simulation platform to build a comprehensive energy system load forecasting model, and selects the load and meteorological data from January 1st to July 7th of a certain year from the comprehensive energy system of a certain park to verify the prediction method proposed by the present invention, and the data point collection interval is 1h. The data from January 1st to June 1st is taken as the training set; the data from June 2nd to July 1st is taken as the verification set of the model; the data of the last week is taken as the test set of the model, and the prediction results of the electricity and cooling loads on July 7th are visualized and analyzed and compared.
[0098] In the experiment, the neural network parameters are set as follows: the model is trained 100 times, the initial learning rate is 0.02, it gradually decays after 50 iterations, the decay rate is 0.1, the number of neurons in the hidden layer and the fully connected layer are 200 and 50 respectively. In order to prevent overfitting, the dropout layer parameter is set to 0.5.
[0099] (1) LASSO algorithm data selection and processing
[0100] The collected meteorological factor data affecting the load of the integrated energy system include X1-sun azimuth, X2-relative humidity, X3-wind direction, X4-ultraviolet index, X5-solar radiation, X6-air pressure, X7-precipitable water, X8-average temperature, X9-sunrise time, X10-wind speed, X11-pollution index, and X12-maximum temperature. The above meteorological data are standardized and feature selected through LASSO regression after normalization. The selection path is as follows: Figure 6 shown.
[0101] from Figure 6 It can be seen that when s = 0.27, the model achieves the optimal value. Figure 6 It can be seen that when s = 0.27, 8 meteorological factors are compressed to 0, leaving only 4 key meteorological factors, namely X5-solar radiation, X7-precipitable water, X8-average temperature, and X12-maximum temperature. Therefore, the above 4 sets of meteorological data and cold and hot load data are input into the LSTM-GRU neural network for load forecasting.
[0102] (2) Verify the impact of different models on prediction accuracy:
[0103] In order to compare the influence of different models on the load prediction accuracy of the integrated energy system, the present invention uses the LSTM neural network model, the PSO-LSTM neural network model and the proposed model to carry out three groups of prediction comparison experiments, and predicts the electric load and cooling load of the integrated energy system respectively. The prediction results of the electric load and cooling load of the three models are shown in Figure 2. Figure 2 and Figure 3 shown.
[0104] In order to more intuitively reflect the prediction accuracy of each model, the mean absolute percentage error (MAPE) is used to evaluate the three models, and the results are shown in Table 1.
[0105]
[0106] In formula (8), n represents the number of prediction results; y i represents the predicted value; Indicates actual value.
[0107] Table 1 Comparison of prediction results of different models
[0108]
[0109]
[0110] from Figure 7 and Figure 8 It can be seen that, compared with the LSTM neural network and the PSO-LSTM neural network, the prediction curve obtained by the model of the present invention is closer to the actual curve. It can be seen from Table 1 that the load prediction model proposed in the present invention is compared with the LSTM neural network and the PSO-LSTM neural network. The MAPE values of the electric load prediction are reduced by 2.27% and 1.29%, respectively, and the MAPE values of the cooling load prediction are reduced by 2.45% and 1.37%. Although the three models can effectively predict the multi-load of the integrated energy system, the model proposed in the present invention has a significant improvement in prediction accuracy.
[0111] (3) The impact of verification error compensation on prediction accuracy:
[0112] In order to verify the influence of the proposed GRU error compensation model on the load forecasting results, two groups of model prediction comparison experiments were carried out to compare the prediction effects of the electric and cooling loads with and without error compensation. The prediction results are shown in Table 2.
[0113] Table 2 Comparison of experimental results with and without error compensation
[0114]
[0115] The prediction results of electricity and cooling load with and without error compensation are as follows: Fig. 9 and Fig.10 shown.
[0116] It can be seen from Table 2 that the prediction accuracy of the prediction model considering error compensation is significantly better than that of the prediction model without error compensation. Compared with the prediction model without error compensation, the prediction model with error compensation reduces the MAPE values of electric load and cooling load prediction by 1.95% and 1.79% respectively. Fig. 9 and Fig.10 It can also be seen that the predicted curves of electric load and cooling load considering the error compensation model are closer to the actual curves.
Claims
1. A comprehensive energy system load forecasting method based on LASSO regression and LSTM-GRU neural network, characterized by The following steps are involved: Step 1: Use the LASSO regression method to screen and analyze meteorological factors and select meteorological factors that have a strong correlation with multivariate loads; Step 2: Use the LSTM neural network to learn and train the meteorological factor data and historical sample data selected in step 1 to obtain the preliminary forecast value of the comprehensive energy load, and use the preliminary forecast value to obtain the load forecast error as the input of the error compensation model; Step 3: Use the GRU neural network model to establish an error compensation model, train the load forecast error in step 2 through the GRU neural network model, obtain the load error forecast value of the integrated energy system, and then obtain the error compensation value; Step 4: Reconstruct the preliminary prediction value in step 2, input the load prediction value and error compensation value of the same sample data, sum and denormalize the two, and obtain the final load prediction result.
2. The integrated energy system load forecasting method based on LASSO regression and LSTM-GRU neural network according to claim 1 is characterized by: In the step 1, the LASSO regression method is used to screen and analyze the many meteorological factors that affect the multi-element load of the integrated energy system, wherein the meteorological factors include sunlight, wind speed, and rainfall; The LASSO regression method imposes constraints and penalties on the linear regression coefficients, compressing the coefficient estimates of some noise variables to 0, thereby eliminating and screening out key variables. The principle is as follows: For a set of sample data {x i1 , x i2 , …, x ip ;y i }, where i = 1, 2, ..., n, n is the number of samples; x i1 , x i2 , …, x ip is a set of sample data input, here it refers to meteorological data; i Indicates the filtered results; The corresponding regression model can be expressed as: y=α+β1x1+β2x2+…+β p x p +e (1) ; In formula (1), α is a constant term; ε is a random disturbance term; β1, β2, …, β p is the regression coefficient of the independent variable; x1, x2, …, x p is the independent variable, that is, the input meteorological data; Introducing a penalty parameter s≥0, the LASSO definition expression of the constant term and regression coefficient in formula (1) is: In formula (2): represents the definition expression of LASSO; β j Column vector representing regression coefficients; x ij represents the independent variable matrix; s represents the penalty parameter; p represents the number of independent variables; Let be the regression parameter estimation value obtained by least squares, s0 is the corresponding penalty parameter value; when s ≥ s0, the optimal solution is the least squares solution; when s < s0, compression will occur. The smaller s is, the stronger the compression effect. As s decreases, the regression coefficient becomes extremely small or zero, so that the meteorological factor corresponding to the regression coefficient of zero is deleted, thereby eliminating the meteorological factors with less influence on the multivariate load.
3. The integrated energy system load forecasting method based on LASSO regression and LSTM-GRU neural network according to claim 1 is characterized in that: In step 2, error prediction includes the following sub-steps: Step 2.1: Set the hyperparameters of the LSTM neural network model: The hyperparameters set include: number of input nodes N1, number of hidden nodes N2, number of output nodes N3, learning rate α, error threshold cost, number of nuclei z, and maximum number of iterations s; Step 2.2: Initialize LSTM neuron bias weights; The information transmission process of neurons in the LSTM model is expressed as follows: In formula (3): i t , o t 、f t are the output signals of the neuron input gate, output gate and forget gate respectively; W f , b f are the weight and bias of the forget gate respectively; W i , b i are the weight and bias of the input gate respectively; Represents the candidate state information of the memory unit at time t; W c , b c are the weight and bias of the memory unit respectively; C t represents the state of the memory unit at time t; W0 and b0 are the weight and bias of the output gate respectively; h t represents the hidden layer state at time t; x t is the input sequence of the neuron at time t; σ and tanh are the sigmoid activation function and the hyperbolic tangent activation function respectively; h t-1 represents the hidden layer state at time t-1; C t-1 represents the state of the memory unit at time t-1; ⊙ represents point-by-point multiplication operation; Step 2.3: Forward calculation; The forward calculation formula of the LSTM neural network is shown in formula (3). The forward calculation obtains the output value of each neuron, that is, f t 、i t , o t , h t The values of the five vectors; Step 2.4: Update network weights and biases according to the loss function η; The loss function η represents the error size of the network. The smaller its value is, the more accurate the model is, and vice versa. The loss function of the model is the mean square error function, and the calculation formula is as follows: In formula (4): h loss represents the model loss value; t represents the training time; C t , Represent the actual load and predicted load respectively; n represents the number of training each time; Step 2.5: Repeat steps 2.3 and 2.4 until the number of iterations is equal to the set value or the iteration stops when the loss function is less than 0.
1.
4. The method for comprehensive energy system load forecasting based on LASSO regression and LSTM-GRU neural network according to claim 3 is characterized in that: In step 3, the GRU neural network model is used to establish an error compensation model, and the error compensation model is specifically: Let L t is the initial load forecast value at time t, then the initial load forecast value sequence predicted by the LSTM neural network in step 2 can be expressed as {L1,L2,…L t }, L1, L2,…Lt represent the load forecast values at time 1 to t respectively.
5. The method for comprehensive energy system load forecasting based on LASSO regression and LSTM-GRU neural network according to claim 4 is characterized in that: Error compensation includes the following two steps: Step 3.1: Subtract the initial prediction value predicted by the LSTM neural network in step 2 from the actual value of the load point, and you can get the prediction error sequence {Q1, Q2, ... Q t }; {Q1,Q2,…Q t } respectively represent the load forecast error from time 1 to time t; Step 3.2: The prediction error sequence {Q1, Q2, …Q t } Through training and learning, the error prediction value W of the next sample, i.e., the time t+1, can be predicted t+1 , which is the compensation value of the load at time t+1. By adding this compensation value to the actual load at that point, the error can be compensated.
6. The method for comprehensive energy system load forecasting based on LASSO regression and LSTM-GRU neural network according to claim 5 is characterized in that: The step 4 comprises the following steps: Step 4.1: Reconstruct the preliminary prediction value. Add the preliminary prediction value at time t+1 in step 2 to the error compensation value obtained in step 3.2 to obtain the final prediction result at time t+1. P t+1 =L t+1 +W t+1 (5); In formula (5): P t+1 is the final load prediction result at time t+1; L t+1 is the initial load prediction value at time t+1; W t+1 is the compensation value of the load at time t+1; Step 4.2: Repeat steps 2 to 4.1 to obtain the load forecast sequence for the forecast period {P t+1 ,P t+2 ,…P t+n }, where t is the time interval and n is the prediction time period; the prediction result is obtained after the obtained result is denormalized. Denormalization is the inverse operation of normalization. The principle is: X=X'×(X max -X min )+X min (6); Where: X is the data after anti-normalization; X' is the data before anti-normalization; X max With X min are the maximum and minimum values in the data sequence, respectively.
Citation Information
Cited By
Underground water level prediction method based on KAN network architecture
CN119151065A
