Integrated energy system load prediction method, apparatus and device, and storage medium

Through inverse information entropy causal analysis and Pearson correlation coefficient screening features, combined with the model of multi-gate hybrid expert sub-network and long short-term memory neural network, the problem that traditional methods are difficult to handle multi-dimensional load forecasting is solved, and higher load forecasting accuracy is achieved. .

CN118627677AInactive Publication Date: 2024-09-10HOHAI UNIV

Patent Information

Application Number
CN202410759192.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional load forecasting methods are difficult to adapt to multi-load scenarios, cannot effectively utilize historical multi-load data, and lack learning and extraction of multi-type energy coupling information, resulting in low prediction accuracy.

Method used

The inverse information entropy causal analysis method and the comprehensive indicator of Pearson correlation coefficient are used to screen meteorological characteristics, and a multi-load forecast model of multi-door hybrid expert sub-network and long short-term memory neural network is constructed, combined with the deep information sharing mechanism of the information sharing layer and sub-task layer. , carry out comprehensive energy system load forecasting.

Benefits of technology

It improves the accuracy of comprehensive energy system load forecasting, and effectively improves the accuracy of multi-element load forecasting by comprehensively considering the correlation and causal relationship between meteorological characteristics and loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627677A
    Figure CN118627677A
Patent Text Reader

Abstract

The invention relates to the technical field of load prediction, in particular to an integrated energy system load prediction method, device and equipment and a storage medium, and the method comprises the steps: collecting external meteorological data and system internal load data of a whole integrated energy system, and carrying out the preprocessing; constructing a comprehensive index based on an inverse information entropy causal analysis method and a Pearson's correlation coefficient, and screening out meteorological features for prediction; constructing a multi-load prediction model based on the improved multi-gate hybrid expert subnet and the long-short term memory neural network, and adding a deep information sharing mechanism based on the causal relationship between loads; and using the trained multi-load prediction model to carry out load prediction on each load of the system at the same time to obtain a prediction result. According to the comprehensive index, the correlation and the causal relationship between the meteorological characteristics and the load are considered at the same time, a better characteristic screening effect is achieved, a prediction model added with a deep information sharing mechanism is designed, and the prediction precision of the load of the comprehensive energy system can be further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of load forecasting, and in particular to a method, device, equipment and storage medium for load forecasting of an integrated energy system. Background Art

[0002] Distributed energy has the advantages of flexible local consumption and comprehensive energy utilization, making distributed energy an important model for the development and utilization of new energy. With the continuous development of new energy and Internet technologies, distributed power sources are developing towards an integrated energy system (IES) with multiple energy sources complementing each other. As an important part of IES, the short-term multi-load forecast of IES is an important reference for IES to carry out reasonable and efficient scheduling of different energy flows in the future. Compared with traditional power systems, the more diversified multi-load composition makes the application scenarios of IES load forecasting more complex. The feature set setting and prediction model originally used for predicting a single type of load are obviously no longer applicable to multi-load forecasting. It requires the reasonable and effective use of historical multi-load data as input features, and the learning and extraction of multi-energy coupling information to accurately predict the demand for multiple types of energy. Summary of the invention

[0003] Technical purpose: The present invention provides a method, device, equipment and storage medium for load forecasting of an integrated energy system, thereby effectively solving the problems in the background technology.

[0004] Technical solution: In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0005] A method for load forecasting of an integrated energy system comprises the following steps:

[0006] Collect external meteorological data and internal load data of the entire integrated energy system and perform preprocessing;

[0007] Constructing a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient, and screening out meteorological characteristics for load forecasting based on the comprehensive index;

[0008] Constructing a multi-load forecasting model, the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer and a long short-term memory neural network as a subtask layer;

[0009] Use the trained multi-load forecasting model to simultaneously forecast the day-ahead loads of various loads in the integrated energy system and obtain the load forecasting results;

[0010] The comprehensive index is obtained by the following method:

[0011] Calculate the Pearson correlation coefficient of meteorological data and load data, and preliminarily select the meteorological characteristics involved in causal analysis based on the value of the Pearson correlation coefficient;

[0012] Calculate the inverse information entropy between the initially screened meteorological characteristics and each load data, and use the inverse information entropy causal analysis method to analyze the causal relationship and intensity between the meteorological characteristics and the load data; calculate the inverse information entropy between each load data, and use the inverse information entropy causal analysis method to analyze the causal relationship and intensity between each load data;

[0013] Calculate the comprehensive index according to the calculated Pearson correlation coefficient, the value of inverse information entropy between the meteorological characteristics and each load data;

[0014] During the construction and training of the multi-load forecasting model,

[0015] Inputting relevant load data and meteorological features selected according to the comprehensive index into the information sharing layer for learning shared features to obtain deep feature information of the load data;

[0016] A deep information sharing mechanism based on causality is added to the subtask layer to assign corresponding deep feature information to each task. The deep feature information, load data and time data are used as input of the subtask layer to train the multi-load prediction model.

[0017] Preferably, the types of load data within the system include electrical load, cooling load and heating load, and the types of external meteorological data include ambient temperature, dew point, humidity, air pressure, wind speed and cloud coverage.

[0018] Preferably, the Pearson correlation coefficient is calculated according to the following formula:

[0019]

[0020] Where: x represents the load data sequence, represents the mean value of load data, y represents the meteorological data sequence, represents the mean of meteorological data, n represents the number of elements contained in x and y, r xy represents the Pearson correlation coefficient between x and y;

[0021] The Pearson correlation coefficient is used to calculate the correlation between the load data and the meteorological characteristics.

[0022] Preferably, the inverse information entropy value is obtained by the following method:

[0023] Normalize and reorder the data sequence x and data sequence y respectively to obtain X NS and Y NS ;

[0024] Calculate X separately NS and Y NS The probability distribution of and

[0025] Use the entropy estimator to calculate and The information entropy of X ) and S(p Y ):

[0026]

[0027]

[0028] Where Ψ(m) is the double gamma function; m is the dimension of X data, and n is the dimension of Y data;

[0029] Calculate the inverse information entropy value

[0030]

[0031] Determine the causal relationship between the target data sequences x and y: If Infer that x is the cause and y is the effect; if Infer that y is the cause and x is the effect;

[0032] The inverse information entropy causal inference method is used to calculate the causal direction and intensity between load data and meteorological characteristics, as well as the causal direction and intensity between each load data.

[0033] Preferably, according to the calculated Pearson correlation coefficient, the value of the inverse information entropy between the meteorological characteristics and each load data, the steps of calculating the comprehensive index are as follows:

[0034] Normalize the Pearson correlation coefficient between the initially screened meteorological characteristics and each load data to obtain the correlation normalization result;

[0035] Normalization is performed on the inverse information entropy between the initially screened meteorological characteristics and each load data to obtain the normalized result of causal relationship;

[0036] According to the correlation normalization results and the causal relationship normalization results, a comprehensive index expression is calculated, namely:

[0037] ICC m,n =(PCC m,n +RIECI m,n ) / 2

[0038] Among them, ICC m,nRepresents a comprehensive index, PCC m,n is the correlation normalization result, RIECI m,n Represents the causal relationship normalization result.

[0039] Preferably, the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer, and a long short-term memory neural network as a subtask layer:

[0040] The multi-gate hybrid expert subnetwork model is expressed as

[0041]

[0042]

[0043] Where: n is the number of expert subnets; k is the task number; x is the input feature of the information sharing layer, and y is the output feature of the information sharing layer; is the weight of the i-th expert subnetwork in the k-th task; f i (x) is the output of the i-th expert subnetwork; is the linear transformation matrix of the kth gating unit corresponding to the i-th expert subnetwork, obtained by network training; softmax(·) represents the softmax activation function;

[0044] The long short-term memory neural network prediction model is expressed as:

[0045] f t =σ(W f ·[h t-1 ,x t ]+b f )

[0046]

[0047] i t =σ(W i ·[h t-1 ,x t ]+b i )

[0048]

[0049] o t =σ(W o ·[h t-1 ,x t ]+bx)

[0050] h t =o t tanh(C t )

[0051] Where: xt is the input vector, h t-1 ,h t are the long-term memory states at time t-1 and time t respectively, σ(·) is the “sigmoid” activation function, W f , W c , W i , W o is the weight matrix, b f 、b c 、b i 、b o is the bias coefficient, f t is the output of the forget gate, C t is the state vector, i t is the input gate output, o t Output of the output gate.

[0052] Preferably, the information sharing layer input includes meteorological factors and load participation factors represented by comprehensive indicators, wherein the load participation factor LPF is calculated as:

[0053] LPF=L τ (t) / L total (t),τ∈{Electricity, Cooling, Heating}

[0054] τ represents the type of load data. Electricity, Cooling, and Heating represent electric load, cooling load, and heating load respectively. L τ (t) represents the load of τ type load data, L total (t) represents the total load of all types of load data.

[0055] Preferably, the deep feature information, load data and time data are used together as the input of the subtask layer for training the multi-load forecasting model. The input load data includes historical load and similar daily load, and the time data includes week and season.

[0056] If the meteorological feature selected according to the comprehensive index is temperature, the system load data of the day before the target day is used as the basis, and the load of similar days is calculated under the conditions of the same week. The specific formula is as follows:

[0057]

[0058] Where: ω represents temperature, L represents load data, f represents the date to be predicted, i represents the historical date, and t represents the time.

[0059] Preferably, in the training of the load forecasting model, the mean absolute percentage error L is used. MAPE% , Root mean square error LRMSE As an evaluation criterion, determine whether the prediction accuracy of the model has been trained to meet expectations:

[0060]

[0061]

[0062] Where: y i is the target value of the load data at the i-th moment; is the predicted value of load data at the i-th moment; n P is the number of prediction time steps.

[0063] A comprehensive energy system load forecasting device, which executes the method, is characterized by comprising:

[0064] The collection unit is used to collect external meteorological data of the entire integrated energy system and load data within the system, and perform preprocessing;

[0065] A screening unit, used to construct a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient, and screen out meteorological characteristics for load forecasting based on the comprehensive index;

[0066] A modeling unit, used for constructing a multi-load forecasting model, wherein the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer, a gate control unit, and a long short-term memory neural network as a subtask layer;

[0067] The prediction unit is used to use the trained multi-load prediction model to simultaneously perform day-ahead load prediction on various loads of the integrated energy system and obtain load prediction results.

[0068] An electronic device comprises a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method.

[0069] A storage medium includes a computer program or instructions, which implement the method when the program or instructions are executed by a processor when the program or instructions are run on a computer.

[0070] Technical purpose: The present invention has a good feature screening effect by comprehensively considering the correlation and causal relationship between meteorological characteristics and load; at the same time, combined with the MMoE multi-task learning model, it can effectively learn the shared information between related tasks, and the characteristics of the long short-term memory neural network that is good at capturing the dynamic changes of time series, which can effectively improve the prediction accuracy of the load of the integrated energy system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0072] Figure 1 This is a flow chart of the integrated energy system load forecasting method in Example 1;

[0073] Figure 2 is a flow chart of the method in Example 1;

[0074] Figure 3 It is the Pearson correlation coefficient heat map of meteorological factors and load in Example 1;

[0075] Figure 4 It is the MMoE-LSTM prediction model structure;

[0076] Figure 5 This is the schematic diagram of the MMoE model;

[0077] Figure 6 It is the electric load prediction result;

[0078] Figure 7 It is the cooling load prediction result;

[0079] Figure 8 It is the heat load prediction result;

[0080] Fig. 9 This is a schematic diagram of the structure of the integrated energy system load forecasting device in Example 2. DETAILED DESCRIPTION

[0081] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0082] Embodiment 1:

[0083] like Figure 1 As shown: A method for load forecasting of an integrated energy system comprises the following steps:

[0084] Collect external meteorological data and internal load data of the entire integrated energy system and perform preprocessing;

[0085] When screening features, a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient is innovatively introduced; first, the meteorological features with a high correlation with the load data are preliminarily screened out based on the Pearson correlation coefficient value; then the inverse information entropy causal analysis method is used to analyze the causal relationship between the strongly correlated meteorological data and each load data, and the inverse information entropy value between the meteorological factors and each load data is obtained; finally, a comprehensive selection index is constructed to screen out the meteorological features for load forecasting;

[0086] Construct a multi-load forecasting model based on a multi-gate hybrid expert subnet and a long short-term memory neural network. The expert subnet uses a two-layer fully connected neural network, the gate control unit uses a one-layer fully connected network, and the forecasting model uses a long short-term memory neural network.

[0087] Aiming at the shortcoming of the traditional MMoE prediction model that the usage of input features is not detailed enough, when constructing the multi-load prediction model, input features are selected for the information sharing layer and the sub-task layer according to the characteristics of each layer network of MMoE; the load participation factors and meteorological characteristics are input into the information sharing layer for learning shared features, and a deep information sharing mechanism based on causality is added to the sub-task layer to select the required deep feature information for each task, and the historical load, similar daily load and weekly seasonal factors are used as the sub-task layer input to train the multi-load prediction model;

[0088] The trained multi-load forecasting model is used to simultaneously perform day-ahead load forecasting on each load in the system and obtain the forecast results for each load.

[0089] In this embodiment, a comprehensive screening index that considers correlation and causality is used to effectively screen meteorological characteristics, which has a good screening effect; at the same time, combined with the advantages of multi-gate hybrid expert networks that can realize the mining of coupling relationships between different tasks and the reasonable allocation of shared feature information, and the characteristics of long short-term memory neural networks that are good at capturing dynamic changes in time series, it can effectively improve the load forecasting accuracy of the integrated energy system.

[0090] Among them, external meteorology includes: ambient temperature, dew point, humidity, air pressure, wind speed, and cloud coverage;

[0091] The load data includes: electrical load, cooling load, and heating load.

[0092] Preprocessing includes:

[0093] The load values ​​at the zero and extreme outlier moments are replaced by the average values ​​of the loads at the preceding and following moments;

[0094] The input data is scaled to [0, 1] and normalized.

[0095] Before the pre-processed external meteorological data and load data are subjected to causal analysis, the correlation between the external meteorological factors and the load data is determined by Pearson correlation analysis, including:

[0096]

[0097] Where n is the number of elements in the two time vectors x and y. Represent the load value and its mean, y and They are external meteorological data and their means, and the correlation coefficient r xy ∈[-1,1], r xy The larger the absolute value, the stronger the correlation between the load and meteorological factors.

[0098] As a preferred embodiment of the above embodiment, according to the correlation analysis results, meteorological factors with strong correlation are selected, and the causal relationship between the meteorological factors and each load is analyzed using the inverse information entropy causal analysis method, including:

[0099] RIECI Causal Indicators as follows:

[0100]

[0101] Where: X NS and Y NS They are the X and Y data after normalization and sorting, and their probability distributions are p Y,NS and p X,NS The denominator is the entropy difference calculated directly from the original sequence data of the two variables.

[0102] In the case of a finite set of points, the entropy S(p X ) and S(p Y ) can be estimated using the entropy estimator, namely

[0103]

[0104] Where: ψ(m) is the double gamma function; m is the dimension of data X.

[0105] RIECI's causal inference criteria:

[0106] Inferring x→y, strong causality corresponds to large

[0107] Inferring y→x, strong causality corresponds to large

[0108] In addition to calculating the inverse information entropy between the initially screened meteorological features and each load data, the present invention also calculates the inverse information entropy between each load data. Then, the inverse information entropy causal analysis method is used to analyze the causal relationship and intensity between the meteorological features and each load data, as well as the causal relationship and intensity between different types of load data. The causal relationship analysis between meteorological data and load data is used for meteorological feature screening at the information sharing layer, and the causal relationship analysis between different types of load data is used for deep information sharing at the subtask layer.

[0109] In this embodiment, the mean absolute percentage error L is used in training the load forecasting model. MAPE , Root mean square error L RMSE As an evaluation criterion, determine whether the prediction accuracy of the model has been trained to meet expectations:

[0110]

[0111]

[0112] Where: y i is the target value of the load at the i-th moment; is the predicted value of the load at the i-th moment; n p For the number of prediction time steps, take 24.

[0113] A multi-load forecasting model based on a multi-gate hybrid expert subnet and a long short-term memory neural network is constructed. The expert subnet uses a two-layer fully connected neural network, the gate control unit uses a one-layer fully connected network, and the forecasting model uses a long short-term memory neural network; the load participation factors and meteorological characteristics are input into the information sharing layer for learning shared features, and a deep information sharing mechanism based on causality is added to the subtask layer. The required deep feature information is selected for each task, and the historical load, similar daily load and weekly seasonal factors are used as subtask layer inputs to train the multi-load forecasting model; in the construction of the integrated energy system load forecasting model based on a multi-gate hybrid expert subnet, the multi-task learning model is expressed as:

[0114]

[0115]

[0116] Where: n is the number of expert subnets; k is the task number; x is the input feature of the model; is the weight of the i-th expert subnetwork in the k-th task; f i (x) is the output of the i-th expert subnetwork; is the linear transformation matrix of the i-th expert subnet corresponding to the k-th gating unit, obtained by network training; softmax(·) represents the softmax activation function. The gating unit maps the input features to n dimensions through linear transformation, and obtains the weight coefficient of each expert subnet through the softmax activation function, so as to realize flexible control of the output of the expert subnet in the task.

[0117] As a preferred embodiment of the above, the inverse information entropy causal inference method is used to calculate the causal direction and strength between the three types of loads: electricity, cooling, and heat, and the deep feature information of each prediction task at the subtask layer is allocated based on this result. Assuming that the cooling load data affects the electric load as a "cause", the deep feature of the electric load prediction task can be expressed as:

[0118]

[0119] Where: M represents the shared layer network, i represents the shared input information, e and c represent the electricity and cooling load prediction tasks, Represents vector concatenation.

[0120] The method for selecting similar day loads is to find similar day loads under the same week conditions based on the temperature meteorological index and the load of the day before the target day. The specific formula is as follows:

[0121]

[0122] Where: ω represents temperature, L represents load data, f represents the date to be predicted, i represents the historical date, and the unit is day; t represents the time of the f / ith day, and the unit is hour.

[0123] Example 1:

[0124] like Figure 2 As shown, a method for load forecasting of an integrated energy system comprises the following steps:

[0125] Step 1: The Tempe campus comprehensive energy public dataset of Arizona State University in the United States is used as the research object. The comprehensive energy system includes power system, cooling station and thermal system, etc. The dataset contains electricity, cooling and heating load data. In addition, local meteorological data is collected from the meteorological website.

[0126] The dataset records the measured data of the Tempe campus of Arizona State University from January 1, 2019 to December 31, 2020, with a sampling time step of 1 hour for a total of 731 days, including power load (kW), cooling load (CHWTON), heating load (HTmmBTU), and external meteorological data including temperature (Temperature), humidity (Humidity), dew point (Dew point), pressure (Pressure), wind speed (Wind speed) and cloud cover (Cloudcover). In terms of data processing, the load and meteorological data are processed separately, and the load values ​​at zero and extreme outlier moments are replaced by the average value of the load in the previous and subsequent periods. Through the maximum and minimum normalization method, the input data is proportionally scaled to [0,1] to eliminate the adverse effects of different dimensions and numerical differences of each input variable on model training and fitting.

[0127] Step 2: Analyze the correlation between external meteorological data and each load based on the Pearson correlation method, and preliminarily screen out meteorological features with strong correlation.

[0128] The Pearson correlation coefficient calculation formula is as follows:

[0129]

[0130] Where n is the number of elements in the two time vectors x and y. Represent the load value and its mean, y and They are external meteorological data and their means, and the correlation coefficient r xy ∈[-1,1], r xy The larger the absolute value, the stronger the correlation between the load and meteorological factors.

[0131] According to the above formula, the Pearson correlation coefficient between external meteorological data and each load is calculated. The results are shown in Figure 3 .according to Figure 3 Based on the calculation results of the correlation coefficient, external meteorological features with an absolute value of the correlation coefficient greater than 0.4 can be selected as the object of causal analysis.

[0132] Step 3: Calculate the causal direction and causal strength of each load and meteorological factor based on the reverse information entropy causal inference (RIECI) method.

[0133] RIECI Causal Indicators as follows:

[0134]

[0135] Where: X NS and Y NSThey are the X and Y data after normalization and sorting, and their probability distributions are p Y,NS and p X,NS The denominator is the entropy difference calculated directly from the original sequence data of the two variables.

[0136] In the case of a finite set of points, the entropy S(p X ) and S(p Y ) can be estimated using the entropy estimator, namely

[0137]

[0138] Where: ψ(m) is the double gamma function; m is the dimension of data X.

[0139] RIECI's causal inference criteria:

[0140] Inferring x→y, strong causality corresponds to large

[0141] Inferring y→x, strong causality corresponds to large

[0142] The RIECI index reveals the causal relationship between meteorological factors and load, but lacks the correlation information required for the forecast task. Therefore, this paper proposes a new index ICC to simultaneously describe the correlation and causal relationship between variables. The definition is as follows:

[0143]

[0144] Where, PCC m,n is the normalized result of Pearson correlation coefficient, RIECI m,n is the normalized inverse information entropy causal index. m is the load type, and n is the meteorological factor.

[0145] The final comprehensive index value range is 0 to 1. m,n and RIECI m,n When both are 1, it means that the correlation and causal relationship between the two variables are the strongest, and the comprehensive correlation is 1; if the value is smaller, the comprehensive relationship is relatively weaker among all factors. m,n or RIECI m,n When the correlation or causal relationship between the two variables is 1, the correlation or causal relationship between the two variables is the strongest, and the comprehensive index ICC is at least 0.5. The calculated RIECI results and comprehensive index results are shown in Tables 1 and 2. The text finally selects meteorological factors with ICC values ​​greater than 0.5 as prediction input features. In Tables 1 and 2, kW, CHWTON, HTmmBTU, and Total represent electricity, cooling, heating, and total loads, respectively.

[0146] Table 1 RIECI inverse information entropy value

[0147]

[0148] Table 2 ICC comprehensive indicators

[0149]

[0150] The present invention first performs a preliminary screening through correlation, and the subsequent inverse information entropy calculation, normalization, and comprehensive index calculation are all performed on the meteorological characteristics after the preliminary screening, and finally a secondary screening is performed based on the comprehensive index results.

[0151] Step 4: Establish a multi-load forecasting model based on multi-gate mixture of experts (MMoE) and long short-term memory neural network (LSTM). The expert subnets of the information sharing layer of this model use two layers of fully connected neural networks, and the gate control unit uses a layer of fully connected network; the subtask layer uses a long short-term memory neural network for prediction. The overall structure of the model is shown in Figure 4 .

[0152] The information sharing layer of MMoE-LSTM is used to learn the coupling relationship between multiple tasks, extract the effective information of shared input, and obtain deep feature information for subsequent prediction; the subtask layer is composed of a deep learning neural network, which takes the deep feature information obtained by the sharing layer and other information required for prediction as input to complete load forecasting.

[0153] The MMoE model includes a parameter sharing layer and a subtask learning layer. The parameter sharing layer consists of several expert subnets. Each expert subnet is a multi-layer perceptron, which is responsible for independently learning the coupling relationship between multiple tasks. Different expert subnets do not share parameters. At the same time, MMoE sets a gating unit for each subtask, which is responsible for calculating the weight of each expert subnet in the subtask, making the selection of expert subnets for different tasks more flexible.

[0154] The information sharing layer input includes meteorological factors represented by comprehensive indicators and load participation factors, among which the load participation factor LPF is calculated as:

[0155] LPF=L τ (t) / L total (t),τ∈{Electricity, Cooling, Heating}

[0156] τ represents the type of load data. Electricity, Cooling, and Heating represent electric load, cooling load, and heating load respectively. Lτ (t) represents the load of τ type load data, L total (t) represents the total load of all types of load data.

[0157] The basic structure of MMoE is as follows Figure 5 As shown:

[0158] The output y of the kth subtask in the MMoE multi-task learning model k It can be expressed as:

[0159]

[0160]

[0161] Where n is the number of expert subnetworks; k is the task number; x is the input feature of the model, and y represents the output feature of the information sharing layer, which serves as the input of the subsequent subtask layer; is the weight of the i-th expert subnetwork in the k-th task; f i (x) is the output of the i-th expert subnetwork; is the linear transformation matrix of the i-th expert subnet corresponding to the k-th gating unit, obtained by network training; softmax(·) represents the softmax activation function. The gating unit maps the input features to n dimensions through linear transformation, and obtains the weight coefficient of each expert subnet through the softmax activation function, so as to realize flexible control of the output of the expert subnet in the task.

[0162] The prediction model of the long short-term memory neural network LSTM is expressed as:

[0163] f t =σ(W f ·[h t-1 ,x t ]+b f )

[0164]

[0165] i t =σ(W i ·[h t-1 ,x t ]+b i )

[0166]

[0167] o t =σ(W o ·[h t-1 ,x t ]+b o )

[0168] ht =o t tanh(C t )

[0169] Where: x t is the input vector, h t-1 ,h t are the long-term memory states at time t-1 and time t respectively, σ(·) is the “sigmoid” activation function, W f , W c , W i , W o is the weight matrix, b f 、b c 、b i 、b o is the bias coefficient, f t is the output of the forget gate, C t is the state vector, i t is the input gate output, o t It is the output of the output gate. After passing through the LSTM network, the final prediction value is obtained.

[0170] The MMoE multi-task learning model can train the weight coefficients of the expert subnetwork separately for the cold, hot and electric load prediction subtasks under the premise of sharing multi-load information, thereby ensuring that each subtask can learn the most effective information during network training. Therefore, it is more suitable to use the MMoE multi-task learning model for modeling.

[0171] Step 5: Input the load participation factors of electricity, cooling and heating loads and the screened meteorological characteristics into the information sharing layer of the prediction model to learn the common information.

[0172] Among them, the load participation factor in the input data is obtained by calculating the proportion of each type of load in the total load, the meteorological characteristics are obtained by selecting the set comprehensive indicators, and the output of the information sharing layer is three vectors, corresponding to the deep feature information of the electricity, cooling and heating load prediction tasks.

[0173] Step 6: At the subtask layer, the required deep feature information is selected for each task according to the deep information sharing mechanism, and is input into the LSTM prediction model of each task together with the historical load, similar daily load, and weekly seasonal factors.

[0174] The output of the prediction model is three 1×24 vectors, corresponding to the electricity, cooling and heating load prediction sequences with a time interval of 1 hour throughout the day on the predicted day.

[0175] Step 7: Use the MMoE-LSTM model to perform a comprehensive energy system load forecast for each load on the day before, and you can get the forecast results for each load in the system at each time on the forecast day.

[0176] Construct a load forecasting data set and divide it into a training set and a test set at a ratio of 9:1. Set the MMoE-LSTM model hyperparameters, such as the number of expert subnets, the number of neurons, the number of LSTM layers, etc. After initializing the neural network weights, perform model training based on the training set data. After the training, use the output of the MMoE-LSTM multi-task learning model as the load forecasting results based on the test set. After denormalization, obtain the load forecasting results of the system at each time on the forecast day. Figures 6 to 8 .

[0177] The mean absolute percentage error (MAPE) and root mean square error (RMSE) are used as the standards for measuring the accuracy of the model. Since each measurement standard has different characteristics, combining the two comprehensive evaluation indicators can obtain better accuracy measurement results. The smaller the error value, the higher the prediction accuracy. The function expressions of each indicator are as follows:

[0178]

[0179]

[0180] Where: y i is the target value of the load at the i-th moment; is the predicted value of the load at the i-th moment; n p For the number of prediction time steps, take 24.

[0181] To prove the effectiveness of the present invention, the measured data and predicted data of each load from the 642th to the 648th day (October 11th to October 17th, 2020) in the test set were randomly selected as verification samples. To verify the effectiveness of the feature screening method and the multi-task learning model of the present invention, the prediction accuracy of the method of the present invention and the meteorological features selected according to the Pearson correlation coefficient were compared under the traditional time series prediction model LSTM (long short-term memory neural network) and the MMoE-LSTM multi-task model. In addition, in order to verify the effectiveness of the deep information sharing mechanism and similar day pair prediction at the sub-task layer of the present invention, the prediction accuracy under different methods was compared while maintaining the principle of control variables. The results are shown in Tables 3 and 4. It can be seen that the feature screening method proposed in the present invention and the addition of a deep information sharing mechanism based on the MMoE-LSTM multi-task learning model can effectively improve the prediction results.

[0182] Case 1: LSTM prediction alone, selecting meteorological features based on the Pearson correlation coefficient;

[0183] Case 2: LSTM prediction alone, selecting meteorological features based on comprehensive indicators;

[0184] Case 3: MMoE-LSTM joint prediction, no deep information sharing at the subtask level;

[0185] Case 4: MMoE-LSTM joint prediction, no similar day at the subtask level;

[0186] Case 5: MMoE-LSTM joint prediction, selecting meteorological features based on the Pearson correlation coefficient;

[0187] Case 6: MMoE-LSTM joint prediction, using the method and model proposed in this invention.

[0188] Table 3 Comparison of prediction results

[0189]

[0190]

[0191] Table 4 Comparison of prediction results

[0192]

[0193] Embodiment 2:

[0194] like Fig. 9 As shown, this embodiment also includes a comprehensive energy system load forecasting model, using the method of the above embodiment 1, including:

[0195] The collection unit is used to collect external meteorological data of the entire integrated energy system and load data within the system, and perform preprocessing;

[0196] A screening unit, used to construct a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient, and screen out meteorological characteristics for load forecasting based on the comprehensive index;

[0197] A modeling unit, used for constructing a multi-load forecasting model, wherein the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer, a gate control unit, and a long short-term memory neural network as a subtask layer;

[0198] The prediction unit is used to use the trained multi-load prediction model to simultaneously perform day-ahead load prediction on various loads of the integrated energy system and obtain load prediction results.

[0199] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0200] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0201] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art.

[0202] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0203] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0204] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0205] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0206] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0207] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A method for load forecasting of an integrated energy system, characterized in that: The steps include: Collect external meteorological data and internal load data of the entire integrated energy system and perform preprocessing; Constructing a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient, and screening out meteorological characteristics for load forecasting based on the comprehensive index; Constructing a multi-load forecasting model, the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer and a long short-term memory neural network as a subtask layer; Use the trained multi-load forecasting model to simultaneously forecast the day-ahead loads of various loads in the integrated energy system and obtain the load forecasting results; The comprehensive index is obtained by the following method: Calculate the Pearson correlation coefficient of meteorological data and load data, and preliminarily select the meteorological characteristics involved in causal analysis based on the value of the Pearson correlation coefficient; Calculate the inverse information entropy between the initially screened meteorological characteristics and each load data, and use the inverse information entropy causal analysis method to analyze the causal relationship and intensity between the meteorological characteristics and the load data; calculate the inverse information entropy between each load data, and use the inverse information entropy causal analysis method to analyze the causal relationship and intensity between each load data; Calculate the comprehensive index according to the calculated Pearson correlation coefficient, the value of inverse information entropy between the meteorological characteristics and each load data; During the construction and training of the multi-load forecasting model, Inputting relevant load data and meteorological features selected according to the comprehensive index into the information sharing layer for learning shared features to obtain deep feature information of the load data; A deep information sharing mechanism based on causality is added to the subtask layer to assign corresponding deep feature information to each task. The deep feature information, load data and time data are used as input of the subtask layer to train the multi-load prediction model.

2. The integrated energy system load forecasting method according to claim 1, characterized in that: The types of load data within the system include electric load, cooling load and heating load, and the types of external meteorological data include ambient temperature, dew point, humidity, air pressure, wind speed and cloud coverage.

3. The integrated energy system load forecasting method according to claim 1, characterized in that: The Pearson correlation coefficient was calculated according to the following formula: Where: x represents the load data sequence, represents the mean value of load data, y represents the meteorological data sequence, represents the mean of meteorological data, n represents the number of elements contained in x and y, r xy represents the Pearson correlation coefficient between x and y; The Pearson correlation coefficient is used to calculate the correlation between the load data and the meteorological characteristics.

4. The integrated energy system load forecasting method according to claim 1, characterized in that: The inverse information entropy value is obtained by the following method: Normalize and reorder the data sequence x and data sequence y respectively to obtain X NS and Y NS ; Calculate X separately NS and Y NS The probability distribution of and Use the entropy estimator to calculate and The information entropy of S(p X ) and S(p Y ): Where Ψ(m) is the double gamma function; m is the dimension of X data, and n is the dimension of Y data; Calculate the inverse information entropy value Determine the causal relationship between the target data sequences x and y: If Infer that x is the cause and y is the effect; if Infer that y is the cause and x is the effect; The inverse information entropy causal inference method is used to calculate the causal direction and intensity between load data and meteorological characteristics, as well as the causal direction and intensity between each load data.

5. The integrated energy system load forecasting method according to claim 1, characterized in that: According to the calculated Pearson correlation coefficient, the inverse information entropy value between the meteorological characteristics and each load data, the steps of calculating the comprehensive index are as follows: Normalize the Pearson correlation coefficient between the initially screened meteorological characteristics and each load data to obtain the correlation normalization result; Normalization is performed on the inverse information entropy between the initially screened meteorological characteristics and each load data to obtain the normalized result of causal relationship; According to the correlation normalization results and the causal relationship normalization results, a comprehensive index expression is calculated, namely: ICC m,n =(PCC m,n +WORDS m,n ) / 2 Among them, ICC m,n Represents a comprehensive index, PCC m,n is the correlation normalization result, RIECI m,n Represents the causal relationship normalization result.

6. The integrated energy system load forecasting method according to claim 1, characterized in that: The multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer and a long short-term memory neural network as a subtask layer: The multi-gate hybrid expert subnetwork model is expressed as Where: n is the number of expert subnets; k is the task number; x is the input feature of the information sharing layer, and y is the output feature of the information sharing layer; is the weight of the i-th expert subnetwork in the k-th task; f i (x) is the output of the i-th expert subnetwork; is the linear transformation matrix of the kth gating unit corresponding to the i-th expert subnetwork, obtained by network training; softmax(·) represents the softmax activation function; The long short-term memory neural network prediction model is expressed as: f t =σ(W f ·[h t-1 ,x t ]+b f ) i t =σ(W i ·[h t-1 ,x t ]+b i ) the t =σ(W o ·[h t-1 ,x t ]+b o ) h t =o t ·tanh(C t ) Where: x t is the input vector, h t-1 ,h t are the long-term memory states at time t-1 and t respectively, σ(·) is the "sigmoid" activation function, W f , W c , W i , W o is the weight matrix, b f , b c , b i , b o is the bias coefficient, f t is the output of the forget gate, C t is the state vector, i t is the input gate output, o t Output of the output gate.

7. The integrated energy system load forecasting method according to claim 6, characterized in that: The information sharing layer input includes meteorological factors and load participation factors represented by comprehensive indicators, wherein the load participation factor LPF is calculated as: LPF=L τ (t) / L total (t),τ∈{Electricity,Cooling,Heating} τ represents the type of load data. Electricity, Cooling, and Heating represent electric load, cooling load, and heating load respectively. L τ (t) represents the load of τ type load data, L total (t) represents the total load of all types of load data.

8. The integrated energy system load forecasting method according to claim 6, characterized in that: The deep feature information, load data and time data are used together as the input of the subtask layer for training the multi-load forecasting model. The input load data includes historical load and similar daily load, and the time data includes week and season. If the meteorological feature selected according to the comprehensive index is temperature, the system load data of the day before the target day is used as the basis, and the load of similar days is calculated under the conditions of the same week. The specific formula is as follows: Where: ω represents temperature, L represents load data, f represents the date to be predicted, i represents the historical date, and t represents the time.

9. The method for load forecasting of an integrated energy system according to claim 1, characterized in that: In the training of the load forecasting model, the mean absolute percentage error L is used. MAPE% , Root mean square error L RMSE As an evaluation criterion, determine whether the prediction accuracy of the model has been trained to meet expectations: Where: y i is the target value of the load data at the i-th moment; is the predicted value of load data at the i-th moment; n P is the number of prediction time steps.

10. A device for predicting load of an integrated energy system, executing the method according to any one of claims 1 to 9, characterized in that: include: The collection unit is used to collect external meteorological data of the entire integrated energy system and load data within the system, and perform preprocessing; A screening unit, used to construct a comprehensive index based on the inverse information entropy causal analysis method and the Pearson correlation coefficient, and screen out meteorological characteristics for load forecasting based on the comprehensive index; A modeling unit, used for constructing a multi-load forecasting model, wherein the multi-load forecasting model includes a multi-gate hybrid expert subnet as an information sharing layer, a gate control unit, and a long short-term memory neural network as a subtask layer; The prediction unit is used to use the trained multi-load prediction model to simultaneously perform day-ahead load prediction on various loads of the integrated energy system and obtain load prediction results.

11. An electronic device, characterized in that: The invention comprises a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1 to 9.

12. A storage medium, characterized in that: The method comprises a computer program or an instruction, and when the program or the instruction is executed by a processor when the program or the instruction is run on a computer, the method as claimed in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Comprehensive energy load prediction method based on multi-task learning strategy and deep learning

    CN113822481A

  • Load prediction method based on comprehensive energy data processing and multi-task deep learning

    CN115759458A

  • Comprehensive energy load short-term prediction method considering temperature and humidity indexes and coupling characteristics

    CN116845882A

  • Multi-element load prediction method for integrated energy system

    CN117439045A

  • Multi-modal data prediction method based on causal markov model

    US20240143999A1

Cited By

  • Photovoltaic power generation day-ahead prediction method based on causal inference and multi-scale feature fusion

    CN119578669A

  • MMoE-LSTM-based diesel engine nitrogen oxide emission prediction method

    CN119886419A

  • A diesel engine nitrogen oxide emission prediction method based on MMoE-LSTM

    CN119886419B

  • Comprehensive energy system multi-element load short-term prediction method based on multi-task learning

    CN119940603A

  • Energy demand prediction method and device, equipment, storage medium and program product

    CN120745942A