A method and system for joint prediction of multi-type loads in multi-energy systems
By calculating the seasonal coupling correlation in the multi-energy system and building a two-way long short-term memory neural network model, the complexity and lack of accuracy in the cooling, heating and electric load forecasting of the multi-energy system are solved, and more accurate and efficient load forecasting is achieved.
Patent Information
- Application Number
- CN202210054342.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-01-18
AI Technical Summary
The cooling, heating and electric load forecasting of multi-energy systems has problems such as complex coupling relationships, large impacts of seasonal changes, and insufficient accuracy of existing forecasting models. Moreover, traditional methods ignore global historical data, resulting in poor forecasting performance.
By acquiring and preprocessing historical meteorological data and load measurement data, we calculate coupling correlations in different seasons, build a two-way long short-term memory neural network model, and use maximum mutual information coefficient analysis and joint feature selection to generate high-quality cold, hot, and electricity Load forecast value.
It improves the accuracy and efficiency of multi-energy system load forecasting, enhances the generalization ability of the model, and is suitable for load forecasting in different seasons.
Smart Images

Figure CN114548509B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated energy systems, and more specifically, to a method and system for joint prediction of multi-type loads in a multi-energy system. Background Art
[0002] In recent years, multi-energy systems have become a research hotspot due to their advantages of flexible and efficient energy utilization. Compared with traditional independent energy systems, multi-energy systems achieve energy supply and demand balance through energy conversion and storage, and energy connections are closer. Therefore, it is necessary to accurately predict the load in advance to ensure the efficient operation and economic dispatch of the multi-energy system. However, the load forecasting of cooling, heating and electricity in multi-energy systems is different from the load forecasting in traditional independent energy systems. Due to the energy conversion of multi-energy systems, there is a complex coupling relationship between loads. In addition, the cooling, heating and electricity loads fluctuate in different seasons, which brings challenges to the load forecasting of multi-energy systems.
[0003] Prior to the technology of the present invention, in traditional multi-energy systems, the load influencing factors mainly include historical load, weather and date type. Therefore, the traditional prediction technology of multi-energy systems has many defects, as follows: 1) Due to the mutual conversion between multiple energy sources, there is a coupling relationship between different loads in the multi-energy system. The load of the multi-energy system is greatly affected by seasonal changes, but existing research cannot take into account the changes in the coupling relationship of loads in different seasons; 2) There are few load forecasts for the coupling characteristics of the loads of multi-energy systems, and the existing prediction models have insufficient prediction accuracy; 3) The existing prediction method combines historical data and long-short-term memory neural network algorithms, and uses the nonlinear mapping and self-learning ability of the model to transmit effective time information and achieve better short-term load prediction results, but the global historical data information will be ignored during the training process, and there are some limitations, resulting in poor generalization of the prediction model. These reasons lead to poor performance of traditional load prediction and insufficient prediction accuracy. Summary of the invention
[0004] In view of the above problems, the present invention proposes a method and system for joint prediction of multi-type loads in a multi-energy system. The scheme fully explores the load prediction based on multi-type information by considering the load coupling correlation in different seasons, thereby improving the load prediction performance of the multi-energy system.
[0005] According to a first aspect of an embodiment of the present invention, a method for jointly predicting multiple types of loads in a multi-energy system is provided.
[0006] In one or more embodiments, preferably, the multi-energy system multi-type load joint prediction method includes:
[0007] Obtain historical meteorological data and load measurement data, remove abnormal time series data and fill in missing data, and then normalize each data separately to generate a time series sample set;
[0008] Obtaining seasonal time division nodes, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating input data for a multi-energy prediction model;
[0009] Build a bidirectional long short-term memory neural network load forecasting model for each season, input training samples to conduct forecasting model learning and training, and adjust and optimize model parameters;
[0010] The test samples are input into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values.
[0011] In one or more embodiments, preferably, the obtaining of historical meteorological data and load measurement data, after eliminating abnormal time series data and completing missing data, normalizing each data separately to generate a time series sample set, specifically includes:
[0012] Obtaining historical meteorological data and load measurement data, wherein the historical meteorological data includes temperature, humidity, air pressure, wind speed, dew point, and precipitation; the load measurement data includes cooling load, heating load, and electric load data, and both the historical meteorological data and the load measurement data are time series data;
[0013] The historical meteorological data and the load measurement data are subjected to the quartile method to eliminate abnormal time series data, and the least squares regression method is used to fill in the missing time series data to generate high-quality meteorological data and load data;
[0014] The high-quality meteorological data and load measurement data are normalized to generate a time series sample set, wherein the time span of the time series sample set is 3 years.
[0015] In one or more embodiments, preferably, the obtaining of the seasonal time division nodes, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating the input data of the multi-energy prediction model specifically includes:
[0016] Obtaining seasonal time division nodes, and dividing the time series sample set into four seasonal sample sets according to the seasonal time nodes;
[0017] The maximum mutual confidence coefficients of cooling load, heating load and electric load in the four season samples are calculated to measure the coupling correlation of cooling, heating and electric loads in each season;
[0018] According to the statistical value of mutual information coefficient between loads, a joint feature selection method is established;
[0019] Selecting the load with the largest coupling correlation as input data of the multi-energy prediction model;
[0020] The input data of the multi-energy prediction model is divided into a training sample set, a verification sample set, and a test sample set, wherein the training sample set accounts for 80%, the verification sample set accounts for 10%, and the test sample set accounts for 10%;
[0021] The calculation formula of the maximum mutual trust coefficient is as follows:
[0022]
[0023] Among them, x is the comparison object representing the load characteristic data being analyzed, y is the reference object representing the referenced load characteristic data, n is the number of data samples contained, p is the joint probability calculation, a represents the number of grids divided in the x direction in the two-dimensional space, b represents the number of grids divided in the y direction in the two-dimensional space, MIC(x,y) represents the maximum mutual information coefficient between the comparison object data x and the reference data y, and its value range is between 0 and 1.
[0024] In one or more embodiments, preferably, the building of a bidirectional long short-term memory neural network load forecasting model for each season, inputting training samples to perform forecasting model learning training and adjusting and optimizing model parameters specifically includes:
[0025] Building a bidirectional long short-term memory neural network load forecasting model corresponding to each season, wherein the hyperparameters of the bidirectional long short-term memory neural network load forecasting model include the number of hidden layers of the bidirectional neural network, the number of hidden layer neurons, the learning rate, and the L2 regularization parameter;
[0026] Taking the training sample set as input data and taking the corresponding load forecast sample data of each type as output data;
[0027] The grid method is used to determine the optimal hyperparameters of the prediction model and input them into the bidirectional long short-term memory neural network load prediction model.
[0028] In one or more embodiments, preferably, the step of inputting the test sample into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values specifically includes:
[0029] Adding the data in the test sample set to the bidirectional long short-term memory neural network load forecasting model to obtain a normalized forecast value;
[0030] The normalized predicted values are denormalized to obtain the cold, heat and electricity load prediction values of the multi-energy system.
[0031] In one or more embodiments, preferably, the establishing of a joint feature selection method according to the statistical value of the mutual information coefficient between loads specifically includes:
[0032] Calculate the maximum mutual information coefficient between each load feature, and count the number of load features that meet the maximum mutual information coefficient greater than the threshold value of 0.3;
[0033] When the number of load characteristics is greater than or equal to 2, it indicates that the coupling correlation between the cold, hot and electric load characteristics is strong, and the cold, hot and electric loads are jointly selected as the input characteristics of the prediction model;
[0034] When the number of load characteristics is 1, it means that there are two load characteristics with strong coupling correlation in the cooling, heating and electricity loads, and the two load characteristics with strong coupling correlation are jointly selected as the input characteristics of its prediction model, and the other load is predicted separately;
[0035] When the number of load characteristics is 0, it indicates that the coupling correlation between the cold, hot and electric loads is weak, and the cold, hot and electric loads are predicted separately.
[0036] In one or more embodiments, preferably, the method of using the grid method to determine the optimal hyperparameters of the prediction model specifically includes:
[0037] Propose the number of hidden layers, the number of neurons in each layer, the learning rate and the range of L2 regularization parameters of the bidirectional long short-term memory neural network;
[0038] Load forecasting and cross-validation are performed by setting different hyperparameters in a loop within a range of values;
[0039] The hyperparameter value with the smallest average load prediction error is selected as the optimal hyperparameter of the multi-energy system load forecasting model.
[0040] According to a second aspect of an embodiment of the present invention, a system for joint prediction of multi-type loads in a multi-energy system is provided.
[0041] In one or more embodiments, preferably, the multi-energy system multi-type load joint prediction system includes:
[0042] The sample generation module is used to obtain historical meteorological data and load measurement data. After eliminating abnormal time series data and completing missing data, each data is normalized separately to generate a time series sample set.
[0043] A season division module is used to obtain the time division nodes of the seasons, divide the time series sample set into four seasons, calculate the coupling correlation of each season, and generate input data for the multi-energy prediction model;
[0044] The parameter setting module is used to build a bidirectional long short-term memory neural network load forecasting model for each season, input training samples to conduct forecasting model learning and training, and adjust and optimize model parameters;
[0045] The parameter prediction module is used to input the test samples into the bidirectional long short-term memory neural network load prediction model to generate cold, hot and electric load prediction values.
[0046] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0047] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement any one of the steps described in the first aspect of the embodiment of the present invention.
[0048] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0049] 1) In the embodiment of the present invention, the multi-energy system data is cleaned, abnormal load values are removed, and missing load values are filled, so as to improve the data quality of the multi-energy system and provide basic data for load forecasting.
[0050] 2) In the embodiment of the present invention, the time span selected includes 3 years of historical actual data, the training sample includes multi-energy load data for a longer period of time, and includes historical multi-energy system load data for the same period, which can be applicable to load forecasting in different seasons; since the load is time series data with temporal variation laws, the future multi-energy system load variation laws can be comprehensively mined based on the comprehensive data of different time scales of historical data of the same period of previous years and the most recent period.
[0051] 3) In the embodiment of the present invention, the maximum mutual information coefficient analysis method is used to analyze and mine the coupling correlation between the loads of the multi-energy system, and the input features of the load prediction model are selected through the joint feature selection method, thereby improving the efficiency and accuracy of load prediction.
[0052] 4) In the embodiment of the present invention, a load forecasting model is established based on a bidirectional long short-term memory neural network. Effective time series data information is transmitted bidirectionally through neurons. The global data rules of the multi-energy system load are fully mined according to the self-learning ability of the model. The prediction accuracy is high and it is not easy to overfit.
[0053] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0054] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 The present invention is a flowchart of a method for joint prediction of multi-type loads in a multi-energy system according to an embodiment of the present invention.
[0057] Figure 2 It is a flowchart of obtaining historical meteorological data and load measurement data in a multi-energy system multi-type load joint prediction method in an embodiment of the present invention, and after eliminating abnormal time series data and completing missing data, each data is normalized separately to generate a time series sample set.
[0058] Figure 3 It is a flowchart of obtaining seasonal time division nodes in a method for joint prediction of multi-type loads in a multi-energy system according to an embodiment of the present invention, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating input data of a multi-energy prediction model.
[0059] Figure 4 This is the energy interaction structure diagram of the multi-energy system.
[0060] Figure 5 It is a flowchart of building a bidirectional long short-term memory neural network load forecasting model for each season in a multi-energy system multi-type load joint forecasting method in an embodiment of the present invention, inputting training samples to perform forecasting model learning and training, and adjusting and optimizing model parameters.
[0061] Figure 6 This is a structural diagram of a bidirectional long short-term memory neural network.
[0062] Figure 7 It is a flowchart of inputting test samples into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values in a multi-energy system multi-type load joint forecasting method according to an embodiment of the present invention.
[0063] Figure 8 The present invention is a flowchart of establishing a joint feature selection method according to the statistical value of the mutual information coefficient between loads in a joint prediction method for multi-type loads in a multi-energy system according to an embodiment of the present invention.
[0064] Fig. 9 The present invention is a flowchart of using a grid method to determine the optimal hyperparameters of a prediction model in a method for joint prediction of multi-type loads in a multi-energy system according to an embodiment of the present invention.
[0065] Fig.10 It is a structural diagram of a multi-energy system multi-type load joint prediction system according to an embodiment of the present invention.
[0066] Fig.11 This is the result of eliminating abnormal data using the quartile method according to an embodiment of the present invention.
[0067] Fig.12 It is the result of least squares regression filling missing data in one embodiment of the present invention.
[0068] Fig.13 It is a maximum mutual information coefficient diagram between seasonal loads in one embodiment of the present invention.
[0069] Fig.14 This is a load forecast result diagram of a multi-energy system in four seasons in one embodiment of the present invention.
[0070] Fig.15 It is a structural diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0071] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0073] In recent years, multi-energy systems have become a research hotspot due to their advantages of flexible and efficient energy utilization. Compared with traditional independent energy systems, multi-energy systems achieve energy supply and demand balance through energy conversion and storage, and energy connections are closer. Therefore, it is necessary to accurately predict the load in advance to ensure the efficient operation and economic dispatch of the multi-energy system. However, the load forecasting of cooling, heating and electricity in multi-energy systems is different from the load forecasting in traditional independent energy systems. Due to the energy conversion of multi-energy systems, there is a complex coupling relationship between loads. In addition, the cooling, heating and electricity loads fluctuate in different seasons, which brings challenges to the load forecasting of multi-energy systems.
[0074] Prior to the technology of the present invention, in traditional multi-energy systems, the load influencing factors mainly include historical load, weather and date type. Therefore, the traditional prediction technology of multi-energy systems has many defects, as follows: 1) Due to the mutual conversion between multiple energy sources, there is a coupling relationship between different loads in the multi-energy system. The load of the multi-energy system is greatly affected by seasonal changes, but existing research cannot take into account the changes in the coupling relationship of loads in different seasons; 2) There are few load forecasts for the coupling characteristics of the loads of multi-energy systems, and the existing prediction models have insufficient prediction accuracy; 3) The existing prediction method combines historical data and long-short-term memory neural network algorithms, and uses the nonlinear mapping and self-learning ability of the model to transmit effective time information and achieve better short-term load prediction results, but the global historical data information will be ignored during the training process, and there are some limitations, resulting in poor generalization of the prediction model. These reasons lead to poor performance of traditional load prediction and insufficient prediction accuracy.
[0075] In an embodiment of the present invention, a method and system for joint prediction of multi-type loads in a multi-energy system is provided. The solution fully exploits load prediction based on multi-type information by considering load coupling associations in different seasons, thereby improving the load prediction performance of the multi-energy system.
[0076] According to a first aspect of an embodiment of the present invention, a method for jointly predicting multiple types of loads in a multi-energy system is provided.
[0077] Figure 1 The present invention is a flowchart of a method for joint prediction of multiple types of loads in a multi-energy system according to an embodiment of the present invention.
[0078] like Figure 1In one or more embodiments, preferably, the method for joint prediction of multi-type loads in a multi-energy system includes:
[0079] S101, obtaining historical meteorological data and load measurement data, after eliminating abnormal time series data and filling missing data, normalizing each data separately to generate a time series sample set;
[0080] S102, obtaining seasonal time division nodes, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating input data for a multi-energy prediction model;
[0081] S103, building a bidirectional long short-term memory neural network load forecasting model for each season, inputting training samples to perform forecasting model learning and training, and adjusting and optimizing model parameters;
[0082] S104: Input the test sample into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values.
[0083] Figure 2 It is a flowchart of obtaining historical meteorological data and load measurement data in a multi-energy system multi-type load joint prediction method in an embodiment of the present invention, and after eliminating abnormal time series data and completing missing data, each data is normalized separately to generate a time series sample set.
[0084] like Figure 2 As shown, in one or more embodiments, preferably, the acquisition of historical meteorological data and load measurement data, after eliminating abnormal time series data and completing missing data, normalizes each data separately to generate a time series sample set, specifically including:
[0085] S201, acquiring historical meteorological data and load measurement data, wherein the historical meteorological data includes temperature, humidity, air pressure, wind speed, dew point, and precipitation; the load measurement data includes cooling load, heating load, and electric load data, and both the historical meteorological data and the load measurement data are time series data;
[0086] S202, using the quartile method to remove abnormal time series data from the historical meteorological data and the load measurement data, and using the least squares regression method to fill in the missing time series data, to generate high-quality meteorological data and load data;
[0087] S203: Normalize the high-quality meteorological data and load measurement data to generate a time series sample set, wherein the time span of the time series sample set is 3 years.
[0088] In the embodiment of the present invention, preliminary preprocessing of the data is specifically performed. During this preprocessing process, the abnormal data is mainly eliminated and the missing data is supplemented. However, in this process, since the benchmarks of different data are different, normalization processing is finally performed, and the generated data is ultimately a time series sample data.
[0089] Specifically, considering that the recent data of different seasons and the historical data of the same period last year contain a more comprehensive multi-energy system load change law, this embodiment selects the historical actual multi-energy load data with a longer time span of 3 years. In addition to the historical load data, the main influencing factors of the multi-energy system load also include weather and date information. Therefore, time series data with non-electrical characteristics such as time and weather are selected to enhance the applicability of the load forecasting model in different seasons and under different environmental conditions.
[0090] Specifically, the process of detecting abnormal values of multi-energy system data by quartile method is as follows: detect abnormal data of multi-energy system according to the degree of deviation of data from the average level, calculate the upper quartile Q1 and lower quartile Q3 of the sample, and calculate the quartile range QR. The formula is as follows:
[0091] Q R =Q1-Q3
[0092] Among them, the data outside the interval [Q3—1.5QR, Q1+1.5QR] are judged as outliers and eliminated, and then the least squares regression method is used to fill the missing data of the multi-energy system. The data samples adjacent to the missing interval are used as training data, and the regression model is established and trained. Finally, the local missing parts are filled with the model regression results.
[0093] Through data cleaning, we can solve the problems of abnormal and missing collected values caused by measurement equipment failure, noise interference and data transmission errors in multi-energy systems, and provide high-quality basic data for the load forecasting model of multi-energy systems.
[0094] Specifically, the process of generating a time series sample set is as follows: Considering that the dimensions of the load forecast input data are not uniform and the magnitude differences between different feature data are large, in order to eliminate the influence of feature unit and scale differences, each feature is treated equally and normalized. The data sample set normalization formula is as follows:
[0095]
[0096] In the formula, x is the sample data of each feature, x max and x min are the maximum and minimum values of the feature sample respectively, and x′ is the normalized feature value.
[0097] like Figure 3 As shown, in one or more embodiments, preferably, the obtaining of the time division node of the season, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating the input data of the multi-energy prediction model specifically includes:
[0098] S301, obtaining seasonal time division nodes, and dividing the time series sample set into four seasonal sample sets according to the four seasons time nodes;
[0099] For example, considering that the changes and fluctuations of cooling, heating and electricity loads are different in different seasons, the time series data are divided according to the season, where spring is from March to May, summer is from June to August, autumn is from September to November, and winter is from December to February of the following year. The data of the same season are arranged in chronological order to obtain time series data of four seasons.
[0100] S302, calculating the maximum mutual confidence coefficients of cooling load, heating load, and electric load in the four season samples, and measuring the coupling correlation of cooling, heating, and electric loads in each season;
[0101] S303, establishing a joint feature selection method according to the statistical value of the mutual information coefficient between loads;
[0102] S304, selecting the load with the largest coupling correlation as input data of the multi-energy prediction model;
[0103] S305, dividing the input data of the multi-energy prediction model into a training sample set, a verification sample set, and a test sample set, wherein the training sample set accounts for 80%, the verification sample set accounts for 10%, and the test sample set accounts for 10%;
[0104] In the embodiment of the present invention, considering that the bidirectional long short-term memory neural network needs to perform model training and parameter adjustment, the total prediction sample set is divided, 80% of the training sample set is input for load forecasting model learning and training, the prediction model hyperparameters are adjusted according to the 10% verification sample set, and finally 10% of the test sample set is input to verify the load forecasting effect of the model.
[0105] The calculation formula of the maximum mutual trust coefficient is as follows:
[0106]
[0107] Among them, x is the comparison object representing the load characteristic data being analyzed, y is the reference object representing the referenced load characteristic data, n is the number of data samples contained, p is the joint probability calculation, a represents the number of grids divided in the x direction in the two-dimensional space, b represents the number of grids divided in the y direction in the two-dimensional space, MIC(x,y) represents the maximum mutual information coefficient between the comparison object data x and the reference data y, and its value range is between 0 and 1.
[0108] like Figure 4 The diagram shows the energy interaction structure of a multi-energy system, which provides the energy interaction relationship between the input layer, the middle layer and the output layer. In the embodiment of the present invention, different levels of data analysis are performed for different seasons. After this analysis, different types of load information respectively complete the calculation of the coupling correlation of the proportion of cold, hot and electric loads. The calculated data will be respectively distributed as a sample set, a verification set and a test set.
[0109] Figure 5 It is a flowchart of building a bidirectional long short-term memory neural network load forecasting model for each season in a multi-energy system multi-type load joint forecasting method in an embodiment of the present invention, inputting training samples to perform forecasting model learning and training, and adjusting and optimizing model parameters.
[0110] like Figure 5 As shown, in one or more embodiments, preferably, the bidirectional long short-term memory neural network load forecasting model for each season is built, training samples are input to perform forecasting model learning training and adjust and optimize model parameters, specifically including:
[0111] S501, building a bidirectional long short-term memory neural network load forecasting model corresponding to each season, wherein the hyperparameters of the bidirectional long short-term memory neural network load forecasting model include the number of hidden layers of the bidirectional neural network, the number of hidden layer neurons, the learning rate, and the L2 regularization parameter;
[0112] S502, taking the training sample set as input data, and taking the corresponding load forecast sample data of each type as output data;
[0113] S503: Determine the optimal hyperparameters of the prediction model using a grid method, and input the optimal hyperparameters into the bidirectional long short-term memory neural network load prediction model.
[0114] In the embodiment of the present invention, in order to be able to predict each season separately, a bidirectional long short-term memory neural network load forecasting model is built for each season, and training samples are input to perform prediction model learning training and adjust the optimization model parameters, wherein the model parameters are obtained by optimization. Specifically, the bidirectional long short-term memory neural network structure is shown in FIG. Figure 6Specifically, the bidirectional long short-term memory neural network load forecasting model has the following steps:
[0115] First, the input gate inputs the state information x at the current moment (t) and the state information y of the hidden layer at the previous moment (t-1) After the nonlinear function transformation, the state information is filtered through the forget gate to determine the redundant state information that needs to be forgotten and clear, and at the same time determine the useful information to enter the new neuron state. Finally, the output gate uses the new neuron state to establish the connection between the time series and the output load prediction final result. Among them, the specific calculation formula between the variables is as follows:
[0116] f (t) =σ(W fy y (t-1) +W fx x (t) +b f )
[0117] i (t) =σ(W iy y (t-1) +W ix x (t) +b i )
[0118] u (t) =tanh(W uy y (t-1) +W ux x (t) +b u )
[0119] c (t) =i (t) gu (t) +f t ·c (t-1)
[0120] o (t) =σ(W oy y (t-1) +W ox x (t) +b o )
[0121] y (t) =o (t) gtanh(c (t) )
[0122] y' (t) =g(W y'f y f (t) +W y'b y b(t) +b y' )
[0123] Among them, Wfy, Wfx, Wix, Wiy, Wuy, Wux, Woy, and Wox correspond to the forget gate f, the input gates i and u, and the output gate o respectively. The hidden layer state y is determined by the output of the output gate and the current neuron state c. The prediction result y' is determined by the forward y f and backward y b The prediction results are jointly determined. In addition, σ, g, and tanh in the formula are activation functions.
[0124] In order to compare the load forecasting effect, the forecast result evaluation index is established, and the mean absolute percentage error MAPE and root mean square error RMSE are used to measure the deviation between the predicted value and the actual value. The specific error formula is shown as follows:
[0125]
[0126]
[0127] Where n is the number of samples, y′ i Represents the predicted value of the model, y i Indicates actual value.
[0128] like Figure 7 As shown, in one or more embodiments, preferably, the step of inputting the test sample into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values specifically includes:
[0129] S701, adding the data in the test sample set to the bidirectional long short-term memory neural network load forecasting model to obtain a normalized forecast value;
[0130] Specifically, considering that the test set samples are input into the trained bidirectional long short-term memory neural network model, the prediction results of the model can be obtained by calculating the weights and bias parameters saved by the model.
[0131] S702: Denormalize the normalized prediction value to obtain cold, hot and electric load prediction values of the multi-energy system.
[0132] In the embodiment of the present invention, since the model is obtained by training with normalized data, it is also necessary to output normalized predicted values in the process of executing calculations on actual sample data. However, the output data also needs to be fed back as actual values of various loads. Therefore, on this basis, denormalization is performed to obtain actual predicted values of various loads.
[0133] like Figure 8As shown, in one or more embodiments, preferably, the joint feature selection method is established according to the statistical value of the mutual information coefficient between loads, specifically including:
[0134] S801, calculating the maximum mutual information coefficient between each load feature, and counting the number of load features satisfying the maximum mutual information coefficient greater than a threshold value of 0.3;
[0135] S802, when the number of the load characteristics is greater than or equal to 2, it indicates that the coupling correlation between the cold, hot and electric load characteristics is strong, and the cold, hot and electric loads are jointly selected as the input characteristics of the prediction model;
[0136] S803, when the number of load characteristics is 1, it means that there are two load characteristics with strong coupling correlation in the cooling, heating and electricity loads, and the two load characteristics with strong coupling correlation are jointly selected as input characteristics of the prediction model, and the other load is predicted separately;
[0137] S804: When the number of load characteristics is 0, it indicates that the coupling correlation between the cold, heating and electric loads is weak, and the cold, heating and electric loads are predicted separately.
[0138] In the embodiment of the present invention, a detailed joint feature selection is performed based on the statistical value of the mutual trust coefficient between loads, and different prediction methods are selected under different numbers of load features.
[0139] like Fig. 9 As shown, in one or more embodiments, preferably, the grid method is used to determine the optimal hyperparameters of the prediction model, specifically including:
[0140] S901, determine the number of hidden layers of the bidirectional long short-term memory neural network, the number of neurons in each layer, the learning rate, and the value range of the L2 regularization parameter;
[0141] S902, performing load forecasting and cross-validation by cyclically setting different hyperparameters within a value range;
[0142] S903. Select the hyperparameter value with the smallest average load prediction error as the optimal hyperparameter of the multi-energy system load prediction model.
[0143] According to a second aspect of an embodiment of the present invention, a system for joint prediction of multi-type loads in a multi-energy system is provided.
[0144] In one or more embodiments, preferably, the multi-energy system multi-type load joint prediction system includes:
[0145] The sample generation module 1001 is used to obtain historical meteorological data and load measurement data, and after eliminating abnormal time series data and completing missing data, normalize each data separately to generate a time series sample set;
[0146] Seasonal division module 1002, used to obtain seasonal time division nodes, divide the time series sample set into four seasons, calculate the coupling correlation of each season, and generate input data for the multi-energy prediction model;
[0147] The parameter setting module 1003 is used to build a bidirectional long short-term memory neural network load forecasting model for each season, input training samples to perform forecasting model learning and training, and adjust and optimize model parameters;
[0148] The parameter prediction module 1004 is used to input the test samples into the bidirectional long short-term memory neural network load prediction model to generate cold, hot and electric load prediction values.
[0149] The following specific embodiments are provided to further explain the technical solution of the present invention:
[0150] Based on the 1095 days of data from 2017 to 2019 for the actual multi-energy system in a certain region, including one point of data every 30 minutes for the cooling, heating and electricity loads, as well as one point of data every 30 minutes for the temperature, humidity, precipitation, wind speed, dew point and air pressure of the main meteorological stations where the multi-energy system is located, a short-term load forecast is conducted half an hour in advance for the multi-energy system data. The specific process of the forecast is as follows:
[0151] S1101. To improve the data quality of the multi-energy system, the embodiment of the present invention cleans the data of the multi-energy system. The results of removing abnormal data using the quartile method are as follows: Fig.11 As shown in the figure, the least squares regression to fill in the missing data results are as follows Fig.12 shown.
[0152] S1102. Considering the data of the same period last year, the multi-energy system dataset is divided according to seasons, 276 days in spring, 276 days in summer, 273 days in autumn, and 270 days in winter.
[0153] S1103, analyzing the seasonal coupling relationship between the loads of the multi-energy system to perform joint feature selection, the embodiment of the present invention calculates the maximum mutual information coefficient of the multi-energy system cooling, heating and electricity, and the maximum mutual information coefficient between the seasonal loads is as follows: Fig.13 As shown in Table 1, the load feature selection threshold is set to 0.3, and the results of multi-energy system load joint feature selection are obtained.
[0154] Table 1
[0155]
[0156] Among them, the statistical number of maximum mutual information coefficients between cold, hot and electric loads in spring and autumn greater than the threshold of 0.3 is greater than or equal to 2, indicating that there is a strong coupling correlation between the cold, hot and electric loads in the spring and autumn multi-energy system, so the cold, hot and electric loads are jointly selected as the input features of the load forecasting model. In summer, the maximum mutual information coefficient of cold and electric loads is 0.44, which is greater than 0.3, indicating that the coupling correlation of cold and electric loads is strong, so cold load and electric load are jointly selected as the input of the cold and electric load prediction model for joint prediction, while the maximum mutual information coefficients of heat load and the other two types of loads are less than 0.3, indicating that the coupling correlation of heat load and the other two types of loads is weak, so separate prediction is performed. In winter, the maximum mutual information coefficient of cold and hot loads is 0.47, indicating that the coupling correlation of cold and hot loads is strong, so cold load and hot load are jointly selected as the input features of the cold and hot load prediction model for joint prediction, while the maximum mutual information coefficient of electric load and other loads is small, and the degree of coupling correlation is weak, so it is predicted separately.
[0157] S1104. The embodiment of the present invention is written in Python code, and a bidirectional long short-term memory neural network is built based on the Kears framework. The activation function of the bidirectional long short-term memory neural network is set to relu, the loss function is the mean square error MSE, the batch_size is 24, and the remaining parameters are shown in Table 2. They are determined by the grid method cyclic search and tuning within the value range.
[0158] Table 2
[0159]
[0160] S1105. The load of the multi-energy system in different seasons is predicted by the trained bidirectional long short-term memory neural network load forecasting model. In order to compare the improvement of the joint feature selection method and the bidirectional long short-term memory neural network in prediction accuracy in this paper, 4 groups of experiments are set up for comparison. Experiment 1: Without considering the correlation between the loads, a long short-term memory neural network (LSTM) is used to establish a separate prediction model for cold, hot and electric loads. Experiment 2: According to the coupling relationship between cold, hot and electric loads, the input features are jointly selected, and the long short-term memory neural network (LSTM) is used to establish a load joint prediction model. Experiment 3: Without considering the correlation between the loads, a bidirectional long short-term memory neural network (BiLSTM) is used to establish a separate prediction model for cold, hot and electric loads. Experiment 4: According to the coupling relationship between cold, hot and electric loads, the input features are jointly selected, and the bidirectional long short-term memory neural network (BiLSTM) is used to establish a load joint prediction model. Through the above experiments, the load prediction results of the multi-energy system in four seasons are as follows. Fig.14 As shown, the prediction errors for each season are shown in Tables 3 to 6.
[0161] It can be seen from the joint feature selection load forecasting results of the embodiment of the present invention that the joint selection of loads with a high degree of coupling correlation as the input of the prediction model has a better prediction effect. The average RMSE and MAPE of Experiment 2 were 88.52kW and 0.4% smaller than Experiment 1, respectively. The average RMSE and MAPE of Experiment 4 were 111.82kW and 0.5% smaller than Experiment 3, respectively. Especially in autumn, the load forecasting accuracy is greatly improved, indicating that there is a close coupling relationship between the autumn loads of multi-energy systems. Therefore, the superiority of combined feature selection in load forecasting is verified. In order to reflect the advantages of the bidirectional long short-term memory neural network prediction model, the performance of the BiLSTM and LSTM load forecasting models are compared. The prediction errors in each season of Experiments 3 and 4 are significantly smaller than those of Experiments 1 and 2. In addition, from Fig.14 It can be seen that the load forecast curve of BiLSTM is more consistent with the actual load curve, which shows that BiLSTM can more effectively learn the fluctuation law of time series, thereby improving the accuracy of cooling, heating and electricity load forecasting in multi-energy systems.
[0162] Table 3
[0163]
[0164] Table 4
[0165]
[0166]
[0167] Table 5
[0168]
[0169] Table 6
[0170]
[0171] The load forecasting results of the multi-energy system in different seasons show that the load fluctuations in spring, summer and winter are relatively regular, and the forecasting effect is good. The forecast error of summer load is the smallest, while the cold load fluctuations in autumn and winter are large, resulting in a small increase in MAPE, between 5% and 7%. From the forecasting results of load types, it can be seen that the forecast errors of electric load and thermal load are small, and the changes are relatively stable within 5%.
[0172] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0173] According to a fourth aspect of an embodiment of the present invention, an electronic device is provided. Fig.15It is a structural diagram of an electronic device in one embodiment of the present invention. Fig.15 The electronic device shown is a general load joint prediction device, which includes a general computer hardware structure, which at least includes a processor 1501 and a memory 1502. The processor 1501 and the memory 1502 are connected via a bus 1503. The memory 1502 is suitable for storing instructions or programs executable by the processor 1501. The processor 1501 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 1501 executes the instructions stored in the memory 1502, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 1503 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 1504 and the display device and the input / output (I / O) device 1505. The input / output (I / O) device 1505 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 1505 is connected to the system through an input / output (I / O) controller 1506.
[0174] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0175] 1) In the embodiment of the present invention, the multi-energy system data is cleaned, abnormal load values are removed, and missing load values are filled, so as to improve the data quality of the multi-energy system and provide basic data for load forecasting.
[0176] 2) In the embodiment of the present invention, the time span selected includes 3 years of historical actual data, the training sample includes multi-energy load data for a longer period of time, and includes historical multi-energy system load data for the same period, which can be applicable to load forecasting in different seasons; since the load is time series data with temporal variation laws, the future multi-energy system load variation laws can be comprehensively mined based on the comprehensive data of different time scales of historical data of the same period of previous years and the most recent period.
[0177] 3) In the embodiment of the present invention, the maximum mutual information coefficient analysis method is used to analyze and mine the coupling correlation between the loads of the multi-energy system, and the input features of the load forecasting model are selected through the joint feature selection method, thereby improving the efficiency and accuracy of load forecasting.
[0178] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0179] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0180] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0181] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0182] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for joint prediction of multi-type loads in a multi-energy system, characterized in that: The method includes: Obtain historical meteorological data and load measurement data, remove abnormal time series data and fill in missing data, normalize each data separately, and generate a time series sample set; Obtaining seasonal time division nodes, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating input data for a multi-energy prediction model; Build a bidirectional long short-term memory neural network load forecasting model for each season, input training samples to conduct forecasting model learning and training, and adjust and optimize model parameters; Input the test sample into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values; The step of obtaining the time division nodes of the seasons, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating the input data of the multi-energy prediction model specifically includes: Obtaining seasonal time division nodes, and dividing the time series sample set into four seasonal sample sets according to the seasonal time nodes; The maximum mutual information coefficient of cooling load, heating load and electricity load in the four season samples is calculated to measure the coupling correlation of cooling, heating and electricity loads in each season; According to the statistical value of mutual information coefficient between loads, a joint feature selection method is established; Selecting the load with the largest coupling correlation as input data of the multi-energy prediction model; The input data of the multi-energy prediction model is divided into a training sample set, a validation sample set, and a test sample set, wherein the training sample set accounts for 80%, the validation sample set accounts for 10%, and the test sample set accounts for 10%; The calculation formula of the maximum mutual information coefficient is as follows: in, x The load characteristic data analyzed is represented as the comparison object. y The reference object represents the load characteristic data to which it refers. n is the number of data samples, p For joint probability calculation, a Representation in two-dimensional space x The number of grids divided in the direction, b Represented in two-dimensional space y The number of grids divided in the direction, MIC ( x , y ) indicates the comparison object data x and reference data y The maximum mutual information coefficient between , the value range is between 0 and 1; The joint feature selection method is established according to the statistical value of the mutual information coefficient between loads, specifically including: Calculate the maximum mutual information coefficient between each load feature, and count the number of load features that meet the maximum mutual information coefficient greater than the threshold value of 0.3; When the number of load characteristics is greater than or equal to 2, it indicates that the coupling correlation between the cold, hot and electric load characteristics is strong, and the cold, hot and electric loads are jointly selected as the input characteristics of the prediction model; When the number of load characteristics is 1, it means that there are two load characteristics with strong coupling correlation in the cooling, heating and electricity loads, and the two load characteristics with strong coupling correlation are jointly selected as the input characteristics of its prediction model, and the other load is predicted separately; When the number of load characteristics is 0, it indicates that the coupling correlation between the cold, hot and electric loads is weak, and the cold, hot and electric loads are predicted separately.
2. A method for joint prediction of multi-type loads in a multi-energy system according to claim 1, characterized in that: The historical meteorological data and load measurement data are obtained, and after removing abnormal time series data and completing missing data, each data is normalized separately to generate a time series sample set, which specifically includes: Obtaining historical meteorological data and load measurement data, wherein the historical meteorological data includes temperature, humidity, air pressure, wind speed, dew point, and precipitation; the load measurement data includes cooling load, heating load, and electric load data, and both the historical meteorological data and the load measurement data are time series data; The historical meteorological data and the load measurement data are subjected to the quartile method to eliminate abnormal time series data, and the least squares regression method is used to fill in the missing time series data to generate high-quality meteorological data and load data; The high-quality meteorological data and load measurement data are normalized to generate a time series sample set, wherein the time span of the time series sample set is 3 years.
3. A method for joint prediction of multi-type loads in a multi-energy system according to claim 1, characterized in that: The bidirectional long short-term memory neural network load forecasting model for each season is constructed, training samples are input to perform forecasting model learning and training, and model parameters are adjusted and optimized, specifically including: Building a bidirectional long short-term memory neural network load forecasting model corresponding to each season, wherein the hyperparameters of the bidirectional long short-term memory neural network load forecasting model include the number of hidden layers of the bidirectional neural network, the number of hidden layer neurons, the learning rate, and the L2 regularization parameter; Taking the training sample set as input data and taking the corresponding load forecast sample data of each type as output data; The grid method is used to determine the optimal hyperparameters of the prediction model and input them into the bidirectional long short-term memory neural network load prediction model.
4. A method for joint prediction of multi-type loads in a multi-energy system according to claim 3, characterized in that: The step of inputting the test sample into the bidirectional long short-term memory neural network load forecasting model to generate cold, hot and electric load forecast values specifically includes: Adding the data in the test sample set to the bidirectional long short-term memory neural network load forecasting model to obtain a normalized forecast value; The normalized predicted values are denormalized to obtain the cold, heat and electricity load prediction values of the multi-energy system.
5. A method for joint prediction of multi-type loads in a multi-energy system according to claim 3, characterized in that: The grid method is used to determine the optimal hyperparameters of the prediction model, specifically including: Propose the number of hidden layers, the number of neurons in each layer, the learning rate and the range of L2 regularization parameters of the bidirectional long short-term memory neural network; Load forecasting and cross-validation are performed by setting different hyperparameters in a loop within a range of values; The hyperparameter value with the smallest average load prediction error is selected as the optimal hyperparameter of the multi-energy system load forecasting model.
6. A multi-energy system multi-type load joint prediction system, characterized in that: The system includes: The sample generation module is used to obtain historical meteorological data and load measurement data. After eliminating abnormal time series data and completing missing data, each data is normalized separately to generate a time series sample set. A season division module is used to obtain the time division nodes of the seasons, divide the time series sample set into four seasons, calculate the coupling correlation of each season, and generate input data for the multi-energy prediction model; The parameter setting module is used to build a bidirectional long short-term memory neural network load forecasting model for each season, input training samples to conduct forecasting model learning and training, and adjust and optimize model parameters; A parameter prediction module, used to input the test samples into the bidirectional long short-term memory neural network load prediction model to generate cold, hot and electric load prediction values; The step of obtaining the time division nodes of the seasons, dividing the time series sample set into four seasons, calculating the coupling correlation of each season, and generating the input data of the multi-energy prediction model specifically includes: Obtaining seasonal time division nodes, and dividing the time series sample set into four seasonal sample sets according to the seasonal time nodes; The maximum mutual information coefficient of cooling load, heating load and electricity load in the four season samples is calculated to measure the coupling correlation of cooling, heating and electricity loads in each season; According to the statistical value of mutual information coefficient between loads, a joint feature selection method is established; Selecting the load with the largest coupling correlation as input data of the multi-energy prediction model; The input data of the multi-energy prediction model is divided into a training sample set, a validation sample set, and a test sample set, wherein the training sample set accounts for 80%, the validation sample set accounts for 10%, and the test sample set accounts for 10%; The calculation formula of the maximum mutual information coefficient is as follows: in, x The load characteristic data analyzed is represented as the comparison object. y The reference object represents the load characteristic data to which it refers. n is the number of data samples, p For joint probability calculation, a Representation in two-dimensional space x The number of grids divided in the direction, b Represented in two-dimensional space y The number of grids divided in the direction, MIC ( x , y ) indicates the comparison object data x and reference data y The maximum mutual information coefficient between , the value range is between 0 and 1; The joint feature selection method is established according to the statistical value of the mutual information coefficient between loads, specifically including: Calculate the maximum mutual information coefficient between each load feature, and count the number of load features that meet the maximum mutual information coefficient greater than the threshold value of 0.3; When the number of load characteristics is greater than or equal to 2, it indicates that the coupling correlation between the cold, hot and electric load characteristics is strong, and the cold, hot and electric loads are jointly selected as the input characteristics of the prediction model; When the number of load characteristics is 1, it means that there are two load characteristics with strong coupling correlation in the cooling, heating and electricity loads, and the two load characteristics with strong coupling correlation are jointly selected as the input characteristics of its prediction model, and the other load is predicted separately; When the number of load characteristics is 0, it indicates that the coupling correlation between the cold, hot and electric loads is weak, and the cold, hot and electric loads are predicted separately.
7. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 5 when executed by a processor.
8. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the steps according to any one of claims 1 to 5.
Citation Information
Patent Citations
Short-term Load Forecasting Method Based on TCN and IPSO-LSSVM Combined Model
AU2020104000A4
Clustering and trend index-based power distribution network line load prediction method and device
CN112508275A
Improved neural network short-term resident load prediction method based on autoregression selection
CN113191559A
Regional power grid short-term load prediction method and system
CN113505923A
Power distribution network medium-term load decomposition-set prediction method and system
CN115062864A
