Load forecasting method, device and equipment for power system

By using the load prediction model in the power system to extract and aggregate features of power dynamic data, the problem of dynamic changes in the power market not being considered is solved, the accuracy of load forecasting is improved, and the operating efficiency and stability of the power system are improved.

CN118316036BActive Publication Date: 2024-09-06FOSHAN POWER SUPPLY BUREAU GUANGDONG POWER GRID
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410728453.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-06
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing power system load forecasting methods fail to effectively consider the dynamic changes in the power market, resulting in low load forecasting accuracy.

Method used

Using the load forecasting model, by obtaining the initial load data and power dynamic data of the power system, the input layer, feature extraction layer, feature aggregation layer and prediction layer are used to extract and aggregate features of the power dynamic data to generate more accurate load forecasting results.

Benefits of technology

It improves the accuracy of load forecasting and can more comprehensively consider dynamic changes in the power market, thereby improving the operating efficiency and stability of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316036B
    Figure CN118316036B
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for load forecasting of an electric power system. The method comprises: obtaining the initial load data and power dynamic data of the electric power system within a preset time period, using the initial load data as the input of a load forecasting model, the load forecasting model extracts features from the initial load data based on the power dynamic data, and forecasts the initial load data through a target time period, thereby achieving the purpose of forecasting using dynamically changing power system data, thereby achieving the technical effect of more comprehensive load forecasting. The present invention solves the technical problem of low load forecasting accuracy caused by the failure of load forecasting to consider the dynamic changes of the power market and extracting load features based on the dynamic guidance of the power market.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems, and in particular to a method, device and equipment for load forecasting of a power system. Background Art

[0002] The load forecasting of the power system refers to the prediction and analysis of the load of the power system in the future period of the power system operation, so that the power system operator can reasonably arrange the power generation and transmission plan to ensure the stable operation of the power system. Among them, the accuracy of load forecasting is crucial to the operation and planning of the power system, which can help the power system operator reasonably arrange the power generation and transmission plan to improve the operating efficiency and stability of the power system.

[0003] The related technologies usually only consider the transient correlation of a single load time series in the time dimension, and basically use a fixed network structure to learn the temporary mode of the load time series. This leads to the related technologies being relatively one-sided for load forecasting, and the prediction results of load forecasting are greatly affected by external interference, so that the accuracy of load forecasting is low.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method, device and equipment for load forecasting of an electric power system, so as to at least solve the technical problem of low load forecasting accuracy caused by the fact that load forecasting fails to take into account the dynamic changes of the electric power market and extracts load characteristics based on the dynamic guidance of the electric power market.

[0006] According to one aspect of an embodiment of the present invention, there is provided a method for load forecasting of an electric power system, comprising: obtaining initial load data and power dynamic data of the electric power system within a preset time period, wherein the power dynamic data is used to represent dynamic load data of other electric power systems in the power market where the electric power system is located; using a load forecasting model to forecast the initial load data based on a target time period and the power dynamic data to obtain a forecast result, wherein the forecast result is used to represent the forecasted load data of the electric power system within the target time period.

[0007] Furthermore, the load forecasting model includes: an input layer, a feature extraction layer, a feature aggregation layer, and a prediction layer.

[0008] Furthermore, the load forecasting model is used to forecast the initial load data based on the target time period and the power dynamic data to obtain a forecast result, including: using the input layer to group the initial load data to obtain multiple load data groups, wherein the dimensions of different load data groups are different; using the feature extraction layer to extract features from the multiple load data groups based on the power dynamic data to obtain load characteristics of the multiple load data groups; using the feature aggregation layer to aggregate the load characteristics of the multiple load data groups to obtain multiple aggregated feature groups, wherein the correlation between different aggregated feature groups is less than a preset threshold; using the prediction layer to predict the multiple aggregated feature groups based on the target time period to obtain a forecast result.

[0009] Furthermore, a feature extraction layer is used to perform feature extraction on multiple load data groups based on the power dynamic data to obtain load characteristics of the multiple load data groups, including: using a gating unit to filter the power dynamic data to obtain filtered data; and performing feature extraction on multiple load data groups based on the filtered data to obtain load characteristics of the multiple load data groups.

[0010] Furthermore, the power dynamic data is screened using a gating unit to obtain screened data, including: extracting features from the power dynamic data to obtain dynamic load features; determining influencing factors on the dynamic load features in the power dynamic data using a gating unit; and screening the dynamic load features based on the influence values ​​of the influencing factors on the dynamic load features to obtain screened data.

[0011] Furthermore, the feature aggregation layer is used to perform feature aggregation on the load features of multiple load data groups to obtain multiple aggregated feature groups, including: internally aggregating the load features at different time points in the multiple load data groups based on preset time periods to obtain first aggregated features of the multiple load data groups; externally aggregating the load features at the same time point in different load data groups of the multiple load data groups based on the preset time period to obtain second aggregated features of the preset time period; and merging the first aggregated features and the second aggregated features to obtain multiple aggregated feature groups.

[0012] Furthermore, the prediction layer is used to predict multiple aggregate feature groups based on the target time period to obtain prediction results, including: predicting load characteristics of different time scales in multiple aggregate feature groups based on the target time period to obtain a first prediction result, wherein different time scales are used to represent different time points or different time periods in the target time period; predicting load characteristics of the same time scale in different aggregate features in the multiple aggregate features based on the target time period to obtain a second prediction result, wherein the same time scale is used to represent the same time point or the same time period in the target time period; determining the prediction result based on the first prediction result and the second prediction result.

[0013] Furthermore, the method also includes: obtaining sample load data, annotated predicted load data corresponding to the sample load data, and sample power dynamic data; using the input layer in the initial load prediction model to group the sample load data to obtain multiple sample load data groups; using the feature extraction layer in the initial load prediction model to extract features from the multiple sample load data groups based on the sample power dynamic data to obtain sample load features of the multiple sample load data groups; using the feature aggregation layer in the initial load prediction model to aggregate the sample load features of the multiple sample load data groups to obtain multiple sample aggregated feature groups; using the prediction layer in the initial load prediction model to predict the multiple sample aggregated feature groups based on the prediction time period to obtain sample predicted load data; adjusting the model parameters of the initial load prediction model based on the sample predicted load data and the annotated predicted load data to obtain a load prediction model.

[0014] According to one aspect of an embodiment of the present invention, there is provided a load forecasting device for an electric power system, comprising: an acquisition module for acquiring initial load data and power dynamic data of the electric power system within a preset time period, wherein the power dynamic data is used to represent dynamic load data of other electric power systems in the electric power market where the electric power system is located; a prediction module for predicting the initial load data based on a target time period and the power dynamic data using a load prediction model to obtain a prediction result, wherein the prediction result is used to represent the predicted load data of the electric power system within the target time period.

[0015] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.

[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0017] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.

[0018] In an embodiment of the present invention, the initial load data and power dynamic data of the power system within a preset time period are obtained, and the initial load data is predicted based on the power dynamic data through a load prediction model, thereby achieving the purpose of using dynamically changing power system data for prediction, thereby achieving the technical effect of more comprehensive load prediction, and further solving the technical problem of low load prediction accuracy caused by the fact that load prediction fails to take into account the dynamic changes of the power market and extracts load characteristics based on the dynamic guidance of the power market. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 is a flow chart of an optional load forecasting method for a power system according to an embodiment of the present invention;

[0021] Figure 2 is a schematic diagram of a flow chart of an optional feature extraction encoder acquiring load feature correlation according to an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of an optional prediction module structure according to an embodiment of the present invention;

[0023] Figure 4 The figure is a schematic diagram of the structure of an optional load forecasting device for a power system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described 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, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Example 1

[0027] According to an embodiment of the present invention, an embodiment of an optional load forecasting method for an electric power system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0028] Figure 1 is an optional load forecasting method for a power system according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0029] Step S102, obtaining initial load data and power dynamic data of the power system within a preset time period, wherein the power dynamic data is used to represent dynamic load data of other power systems in the power market where the power system is located.

[0030] The above-mentioned dynamic load data refers to the dynamic data of the load in other power systems changing over time. Due to the influence of external factors, the load in other power systems will change with the influence of external factors, and the changes in external factors are random, so the load data of the power system will also change randomly. The randomly changing load data is the dynamic load data.

[0031] The above-mentioned power system refers to a power system composed of a power plant, a transmission network and a distribution network. The power plant can be coal-fired power generation, hydropower generation, nuclear power generation, wind power generation, etc.; the electric energy is transmitted to the distribution network through the transmission network, and the distribution network distributes the electric energy to the end users. The power system in the present invention refers to one of the multiple power systems in an electricity market, such as a power system for supplying electricity to residents, a power system for supplying electricity to factories, or a power system for supplying electricity to agriculture, etc.

[0032] The preset time period is a time period for collecting initial load data and power dynamic data. The preset time period can be any time period on the working time axis of the power system for which load forecasting can be performed using a load forecasting model, and this time period is preset by an operator.

[0033] The above initial load data refers to the power load of the system within the power system, which is the sum of the electric power taken from the power system by the power users at a certain moment. The initial load data can be the initial load data of the industrial power system, the initial load data of the agricultural power system or the initial load data of the residential power system.

[0034] The above-mentioned power dynamic data refers to the dynamic changes of multiple factors in the power market, including but not limited to dynamically changing electricity prices, economic environment, climate factors, etc. The power dynamic data also includes dynamic load data of other power systems in addition to the power market.

[0035] The above-mentioned electricity market refers to the market formed by various links of the power industry, such as power generation, transmission, distribution, and power supply. The electricity market includes multiple power systems, as well as systems related to various links of the power system, such as the power trading market.

[0036] In an optional embodiment, the initial load data and power dynamic data of the power system within a preset time period can be obtained, wherein the initial load data is the load data of different loads of the power system within the preset time period. For example, if the power system is an industrial power system, the initial load data includes the load of the fire pump, the load of the crane, the load of the metal cutting machine tool, etc. The power dynamic data within the preset time period includes the dynamically changing electricity prices, economic environment, climate factors, etc. in the power market, and also includes the dynamic load data of other power systems in the power market, for example, the dynamic load data of the agricultural power system.

[0037] In another optional embodiment, the initial load data of each power system can be monitored by power load monitoring equipment installed in each power system, and power dynamic data such as electricity price, economic environment and climate can be monitored in real time by electronic meters.

[0038] Step S104, using the load forecasting model to forecast the initial load data based on the target time period and the power dynamic data to obtain a forecast result, wherein the forecast result is used to represent the forecast load data of the power system within the target time period.

[0039] The load forecasting model is a pre-established model for forecasting initial load data through target time period and power dynamic data. The load forecasting model pre-established in the present invention obtains the forecasting result by extracting features, integrating and forecasting data.

[0040] The above prediction results are the output results of the load prediction model. The prediction results are load data, which are the predicted load data of the power system within the target time period.

[0041] The above-mentioned target time period is the time period for load data to be predicted, and can be a pre-set time period for load data prediction, wherein the corresponding relationship can be that the predicted power system load, predicted electricity price, predicted temperature changes, etc. of the target time period are roughly the same as the power system load, electricity price, temperature changes, etc. of the preset time period.

[0042] In an optional embodiment, a pre-established load forecasting model can be used to forecast the initial load data of the power system based on the target time period and the power dynamic data to obtain a forecast result. The forecast result is the forecast load data of the power system in the target time period. After obtaining the initial load data and the power dynamic data of the power system, the initial load data of the power system is used as input, and features of the initial load data are extracted through the power dynamic data, and forecasting is performed based on the initial load data of the target time period to obtain a forecast result for representing the power system in the target time period.

[0043] In another optional embodiment, a big data analysis method may be used to predict the load data of the power system within the target time period by combining the target time period, power dynamic data and the initial load data of the power system.

[0044] Through the above steps, the initial load data and power dynamic data of the power system within the preset time period are obtained, wherein the power dynamic data is used to represent the dynamic load data of other power systems in the power market where the power system is located; the initial load data is predicted based on the target time period and the power dynamic data using the load forecasting model to obtain a prediction result, wherein the prediction result is used to represent the predicted load data of the power system within the target time period, and the initial load data and power dynamic data of the power system within the preset time period can be obtained, and the initial load data is used as the input of the load forecasting model, so that the initial load data of the power system is used to predict the load data; the load forecasting model extracts features from the initial load data based on the power dynamic data, so that the power dynamic data in the power market is also used to predict the load data; based on the target time period, the initial load data is predicted in combination with the initial load data of the power system and the power dynamic data in the power market, so as to more comprehensively predict the load data, thereby achieving the purpose of combining the initial load data of the power system with the power dynamic data in the power market to jointly predict the load, thereby achieving the technical effect of more comprehensive load forecasting, and further solving the technical problem of low load forecasting accuracy caused by one-sided load forecasting.

[0045] Optionally, the load forecasting model includes: an input layer, a feature extraction layer, a feature aggregation layer, and a prediction layer.

[0046] The above-mentioned input layer is the part of the load forecasting model that preprocesses the initial load data, and is used to preprocess the initial load data before feature extraction to obtain data that is convenient for feature processing.

[0047] The feature extraction layer is the part of the load forecasting model that extracts features from the preprocessed initial load data. The feature extraction layer extracts important features from the data to make the forecasting results more accurate.

[0048] The feature aggregation layer is the part of the load forecasting model that aggregates the features of the initial load data obtained after feature extraction. By aggregating the features of the initial load data, the feature information of the initial load can be retained, and the features of the initial load data can be ensured not to be lost, and the continuous transmission of the features of the initial load data can be maintained, so that more comprehensive features of the initial load data can be formed.

[0049] The above-mentioned prediction layer is the part of the load prediction model that predicts the initial load data. The prediction layer of the load prediction model provided by the present invention obtains the prediction result based on the time scale through the improved Long Short-Term Memory (LSTM) network.

[0050] In an optional embodiment, the pre-established load prediction model includes: an input layer for preprocessing initial load data; a feature extraction layer for extracting features from the initial load data; a feature aggregation layer for aggregating features of the initial load data; and a prediction layer for predicting the initial load data.

[0051] Optionally, a load forecasting model is used to forecast the initial load data based on the target time period and the power dynamic data to obtain a forecast result, including: using the input layer to group the initial load data to obtain multiple load data groups, wherein different load data groups have different dimensions; using the feature extraction layer to extract features from the multiple load data groups based on the power dynamic data to obtain load characteristics of the multiple load data groups; using the feature aggregation layer to aggregate the load characteristics of the multiple load data groups to obtain multiple aggregated feature groups, wherein the correlation between different aggregated feature groups is less than a preset threshold; using the prediction layer to predict the multiple aggregated feature groups based on the target time period to obtain a forecast result.

[0052] The above-mentioned load data group is grouped initial load data, wherein the grouping method is to decompose the initial load data into load data groups of different dimensions.

[0053] The above dimensions may be different types of loads in the power system. For example, if the power system is an industrial power system, the dimensions used to decompose the initial load data may be different loads in different industrial power systems. For example, the load of a high-pressure water pump is different from the load of a machine tool, so the dimension of the high-pressure water pump load is different from the dimension of the machine tool load.

[0054] The above preset threshold is the maximum value of the correlation between the preset aggregation feature groups, so as to screen the aggregation features with high influence.

[0055] The above-mentioned aggregated feature group is an aggregated feature group generated by aggregating the load features of multiple load data groups.

[0056] In an optional embodiment, the initial load data is input into the input layer as input, and the input layer preprocesses the initial load data by decomposing the initial load data into load data groups of different dimensions. Decompose into load data groups of different dimensions, namely:

[0057] ,

[0058] in, is the initial load data; are load data groups of different dimensions; is the determinant of the initial load data The transpose of .

[0059] After obtaining load data groups of different dimensions, the load data groups of different dimensions are input into the feature extraction layer. The feature extraction layer extracts features from multiple load data groups based on power dynamic data to obtain load features of multiple load data groups. The load features of multiple load data groups are input into the feature aggregation layer. The load features of multiple load data groups are aggregated by the feature aggregation layer to obtain multiple aggregated feature groups, wherein the correlation between different aggregated feature groups is less than a preset threshold, so as to screen out aggregated features with high influence. Multiple aggregated feature groups are input into the prediction layer to obtain prediction results.

[0060] Optionally, the feature extraction layer is used to perform feature extraction on multiple load data groups based on the power dynamic data to obtain load characteristics of the multiple load data groups, including: using a gating unit to filter the power dynamic data to obtain filtered data; and performing feature extraction on multiple load data groups based on the filtered data to obtain load characteristics of the multiple load data groups.

[0061] The above-mentioned gating unit is a power market-oriented gating mechanism, which uses the power market-oriented gating mechanism to reduce the dimension of power dynamic data to retain high-impact feature information. By extracting features from power dynamic data and determining the influencing factors of power dynamic data features, the power dynamic data is screened by the influencing factors to obtain screened data.

[0062] The above-mentioned load characteristics are characteristics of multiple load data groups, and are used to characterize representative properties or features of the multiple load data groups.

[0063] In an optional embodiment, the power dynamic data is feature extracted by the gate control unit, and the power dynamic data is screened based on the influencing factors of the power dynamic data features to obtain screened data with greater influence. Feature extraction is performed on multiple load data groups based on the screened data to obtain load features of multiple load data groups. The expressions of the load features of multiple load data groups obtained by feature extraction on multiple load data groups based on the screened data are as follows:

[0064] ,

[0065] in, For the load characteristics of multiple load data groups, To filter the data, are multiple load data groups. Among them, load characteristics is the feature matrix, It can also be expressed as:

[0066] ,

[0067] in, is the load feature after feature extraction.

[0068] Optionally, the above-mentioned use of the gating unit to filter the power dynamic data to obtain filtered data includes: extracting features from the power dynamic data to obtain dynamic load features; using the gating unit to determine the influencing factors on the dynamic load features in the power dynamic data; and filtering the dynamic load features based on the influence values ​​of the influencing factors on the dynamic load features to obtain filtered data.

[0069] The above-mentioned influencing factors are indicators for measuring the influence of dynamic load characteristics on power dynamic data, and are used to screen dynamic load characteristics to obtain dynamic load characteristics with greater influence.

[0070] In an optional embodiment, feature extraction is performed on the power dynamic data to obtain dynamic load features. The expression of the dynamic load features is as follows:

[0071] ,

[0072] in, For power dynamic data, are the dynamic load characteristics of different dimensions, is the dimension of the dynamic load characteristic.

[0073] The influencing factors of the dynamic load characteristics in the power dynamic data are determined by the gate control unit, where the expression of the influencing factors is as follows:

[0074] ,

[0075] in, is the influencing factor of dynamic load characteristics, To filter the data, is the dimension of the dynamic load characteristic, for Activation function, is the weight of the neural network, is the bias of the neural network, is the screening parameter. Used to control the shape of load characteristic distribution and filter parameters The size of determines whether a feature variable is screened, and the screening parameter The smaller the value of , the greater the possibility that the corresponding feature variable will become the screening data. Conversely, the screening parameter The larger the value of , the greater the possibility that the corresponding feature variable will be eliminated.

[0076] Optionally, the feature aggregation layer is used to perform feature aggregation on the load features of multiple load data groups to obtain multiple aggregated feature groups, including: internally aggregating the load features at different time points in the multiple load data groups based on preset time periods to obtain first aggregated features of the multiple load data groups; externally aggregating the load features at the same time point in different load data groups of the multiple load data groups based on the preset time period to obtain second aggregated features of the preset time period; and merging the first aggregated features and the second aggregated features to obtain multiple aggregated feature groups.

[0077] The first aggregate feature is an aggregate feature obtained by internally aggregating load features at different time points.

[0078] The second aggregate feature is an aggregate feature obtained by externally aggregating load features at the same time point in different load data groups.

[0079] The above-mentioned aggregated feature groups are multiple aggregated feature groups obtained by globally and temporarily aggregating the first aggregated features and the second aggregated features.

[0080] The above internal aggregation is to retain the important load data in the time axis and merge it with the load characteristics at the current moment to achieve local dimensionality reduction of the load characteristics, that is, to aggregate the important historical load characteristics in the time axis with the load characteristics at the current moment.

[0081] The above external aggregation is to establish a short-term and dynamic correlation between the load characteristics of different loads at the same time or the same period, that is, to externally aggregate the load characteristics of different loads at the same time or the same period.

[0082] The above-mentioned global temporary aggregation is to effectively integrate the results of internal aggregation and external aggregation of load characteristics to obtain more comprehensive load characteristic information.

[0083] In an optional embodiment, based on a preset time period, the load characteristics at different time points in multiple load data groups are internally aggregated. In the process of internal aggregation, the load characteristics at the current moment are fused with important historical load characteristics to achieve local dimensionality reduction of the load characteristics. , a single-layer neural network is used as the embedding layer to transform the feature space. The transformation expression is as follows:

[0084] ,

[0085] in, is a single-layer neural network, is the load feature after feature extraction, is the feature vector after feature space transformation.

[0086] Get the feature vector after feature space transformation After that, the Transformer encoder is used to obtain the converted load features. The correlation with the load characteristics at the current moment. Among them, the Transformer encoder is an encoder composed of a multi-head attention mechanism, a fully connected feedforward network layer, a residual connection, and a normalization layer. The role of the residual connection is to prevent network degradation, and the role of the normalization layer is to normalize the activation values ​​of each layer to improve the generalization ability of the network. The multi-head attention mechanism is composed of multiple self-attention mechanisms, and the multi-head attention mechanism is used to calculate the attention distribution between each input position and other positions.

[0087] Among them, the Transformer encoder is used to obtain the converted load characteristics The method of correlation with the current load characteristics is as follows Figure 2 As shown, the method comprises the following steps:

[0088] S201, input vector.

[0089] In an optional embodiment, the converted load characteristic Enter the Transformer encoder.

[0090] S202, obtaining a position code.

[0091] In an optional embodiment, the Transformer model uses position encoding to save the relative or absolute position of the time series, as expressed as follows:

[0092] ,

[0093] in, represents the input feature position, represents an even-numbered dimension, represents odd dimensions, Represents the dimension of the input features.

[0094] S203, calculation using multi-head attention mechanism.

[0095] In an optional embodiment, the input of a single attention mechanism is:

[0096] ,

[0097] in, Represents the concatenation of different matrices, is the input of a single attention mechanism.

[0098] The self-attention mechanism uses the query, key, and value mode to calculate the similarity between multiple elements and other elements, and extracts the dependency of data through correlation. The calculation formula of the self-attention mechanism is as follows:

[0099] ,

[0100] in, is the query matrix, is the key matrix, is the value matrix, is the dimension of the data in the matrix. , key matrix With value matrix Obtained by multiplying the same input by three different weight matrices.

[0101] In order to utilize the full power of the self-attention mechanism in extracting dependencies, the encoder adopts a multi-head self-attention mechanism. In the multi-head self-attention mechanism, each query matrix , key matrix With value matrix The outputs of all self-attention mechanisms are connected together and passed through a feedforward neural network to produce the result of the multi-head self-attention mechanism. The formula of the multi-head self-attention mechanism is as follows:

[0102] ,

[0103] in, Indicates The query matrix of the head The weight of Indicates Key matrix of heads The weight of Indicates The value matrix of the head The weight of represents the attachment weight matrix, Represents the concatenation of different matrices. , which represents the first The subspace of the head, is the number of heads in the multi-head self-attention mechanism. , and is the weight vector of the feature embedding layer.

[0104] S204, residual connection and normalization.

[0105] In an optional embodiment, the calculation result of the multi-head attention mechanism is processed by residual connection and normalization to prevent network degradation and improve the generalization ability of the network. The calculation result of the multi-head attention mechanism after residual connection and normalization can enter step S205 to extract information using a feedforward neural network, or enter step S207 to output directly.

[0106] S205, enter the fully connected feedback layer.

[0107] In an optional embodiment, a feedforward neural network is used to extract the output information of the multi-head attention mechanism, namely:

[0108] ,

[0109] in, Indicates load exist The local characteristics of the moment, Represents different local features Perform splicing operations. represents a feedforward neural network, where Including residual connection and ReLU activation function, the expression of ReLU activation function is as follows:

[0110] .

[0111] S206, residual connection and normalization.

[0112] In an optional embodiment, residual connection and normalization processing are performed on the output of the feedforward neural network to prevent network degradation and improve the generalization ability of the network.

[0113] S207, output.

[0114] In an optional embodiment, the output information of the feedforward neural network after residual connection and normalization is output as the first aggregated feature of the internal aggregation. .

[0115] Load feature external aggregation extracts feature information between different load time series. For any time, load feature external aggregation will establish a series of transient and dynamic correlations of loads. The load forecasting model also uses the attention mechanism to mine the dynamic external correlations of load data. The load feature external aggregation operation is implemented through the attention mechanism.

[0116] Given a moment After that, the local characteristics of different loads are obtained, and the formula is as follows:

[0117] .

[0118] The number of heads in the multi-head attention mechanism in the default Transformer model is , the query matrix is ​​calculated , key matrix Sum Matrix ,Right now:

[0119] .

[0120] The load feature information extracted by the multi-head attention mechanism is passed through the feedforward neural network for the next step of learning:

[0121] ,

[0122] in, represents the load features extracted by the transient embedding layer, With load Has a strong short-term correlation and also retains the load The effective information itself, This is the second aggregation feature.

[0123] The merging of the first aggregated feature and the second aggregated feature is to effectively integrate the load features extracted by internal aggregation of the load features with the load features extracted by external aggregation to obtain more comprehensive load feature information. The merging of the first aggregated feature and the second aggregated feature adopts a short-term attention mechanism to screen high-impact load features according to the contribution score of the load features. The expression is as follows:

[0124] ,

[0125] in, are multiple aggregation feature groups, is the transformation matrix.

[0126] Optionally, the above-mentioned prediction layer is used to predict multiple aggregate feature groups based on the target time period to obtain prediction results, including: predicting load characteristics of different time scales in multiple aggregate feature groups based on the target time period to obtain a first prediction result, wherein different time scales are used to represent different time points or different time periods in the target time period; predicting load characteristics of the same time scale in different aggregate features in the multiple aggregate features based on the target time period to obtain a second prediction result, wherein the same time scale is used to represent the same time point or the same time period in the target time period; determining the prediction result based on the first prediction result and the second prediction result.

[0127] The above time scales are time points or time periods.

[0128] In an optional embodiment, the prediction layer uses an improved long short-term memory network to predict load characteristics of different time scales in multiple aggregated feature groups based on a target time period to obtain a first prediction result, predict load characteristics of the same time scale in different aggregated features in the multiple aggregated features based on the target time period to obtain a second prediction result, and obtain a prediction result based on the first prediction result and the second prediction result.

[0129] Multiple Aggregate Feature Groups The representation at different time scales is:

[0130] ,

[0131] in, Represents the original input , Indicates time scale The representation form of and represents the dimension of the aggregated features, represents the longest time scale, and The load characteristic time scale under different time scales is The input is represented as:

[0132] ,

[0133] when hour, .when hour, The results are obtained by the load characteristics on the same time scale. Time scale generation. Figure 3 is a schematic diagram of an optional prediction module structure according to an embodiment of the present invention, such as Figure 3 As shown, the calculation process of the first prediction result under the same time scale is as follows:

[0134] ,

[0135] in, is the output of the first linear layer at the same time scale, is the hidden unit state of the long short-term memory network, is the function representation of the long short-term neural network, and Represents the function expression of the linear layer, Indicates the abandonment of layer expression. Among them, Dimensions and The dimensions are the same, Used to change the dimension of input variables, and The combined effect allows the input variables of different channels to be reintegrated, so that the dimensions of the input variables return to the initial dimensions.

[0136] The long short-term memory network is a neural network with memory function, which consists of a forget gate , input gate and output gate The calculation formula of the long short-term memory network is as follows:

[0137] ,

[0138] in, , , and is the weight matrix, , , and is the bias term of the neuron, is the activation function, for The input layer state at time for The control unit status at the moment, for The hidden unit state at time t.

[0139] The expression of the first prediction result is as follows:

[0140] ,

[0141] in, is the activation function.

[0142] Based on the target time period, the load characteristics of the same time scale in different aggregated features among the multiple aggregated features are predicted respectively to obtain a second prediction result. Figure 3 As shown, the process of obtaining the second prediction result is as follows:

[0143] The load characteristics of the same time scale pass through the third linear layer, the fourth linear layer, the fifth linear layer and the abandonment layer respectively. Among them, the third linear layer is used to extract the global information of the load, the fourth linear layer is used to deeply mine the information of different dimensions of the global information, and further improve the transmission capacity of the global characteristic variables. The fifth linear layer establishes the mapping relationship of the characteristics at different time scales. The specific expression is as follows:

[0144] ,

[0145] in, represents the third linear layer, represents the fourth linear layer, represents the fifth linear layer, For time scale The following input, Represents global information, represents the correlation of loads at adjacent time scales. is the predicted value after feature extraction, that is, the second prediction result.

[0146] The load aggregation layer is used to aggregate the first prediction result and the second prediction result to obtain the prediction result:

[0147] The linear layer is used to perform load forecasting at each time scale, and the expression is as follows:

[0148] ,

[0149] in, Load forecast value for each time scale.

[0150] The linear layer is used to aggregate the predicted values ​​obtained at different time scales to obtain the prediction result, which is expressed as follows:

[0151] ,

[0152] in, represents a linear layer, Represents stack operations, For the prediction results.

[0153] Optionally, the method also includes: obtaining sample load data, annotated predicted load data corresponding to the sample load data, and sample power dynamic data; using the input layer in the initial load prediction model to group the sample load data to obtain multiple sample load data groups; using the feature extraction layer in the initial load prediction model to extract features from the multiple sample load data groups based on the sample power dynamic data to obtain sample load features of the multiple sample load data groups; using the feature aggregation layer in the initial load prediction model to aggregate the sample load features of the multiple sample load data groups to obtain multiple sample aggregated feature groups; using the prediction layer in the initial load prediction model to predict the multiple sample aggregated feature groups based on the prediction time period to obtain sample predicted load data; adjusting the model parameters of the initial load prediction model based on the sample predicted load data and the annotated predicted load data to obtain a load prediction model.

[0154] In an optional embodiment, pre-establishing a load prediction model includes obtaining sample load data, annotated predicted load data corresponding to the sample load data, and sample power dynamic data, and using the input layer in the initial load prediction model to group the sample load data to obtain multiple sample load data groups, and then using the feature extraction layer in the initial load prediction model to extract features from the multiple sample load data groups based on the sample power dynamic data to obtain sample load features of the multiple sample load data groups, and performing feature aggregation on the sample load features of the multiple sample load data groups through the feature aggregation layer in the initial load prediction model to obtain multiple sample aggregated feature groups, and then predicting the multiple sample aggregated feature groups based on the prediction time period through the prediction layer in the initial load prediction model to obtain sample predicted load data, and finally adjusting the model parameters of the initial load prediction model based on the sample predicted load data and the annotated predicted load data to obtain the load prediction model.

[0155] In order to verify the effectiveness of an optional load forecasting method for a power system provided by an embodiment of the present invention, the mean square error (MSE) and the mean absolute error (MEA) are used as performance indicators of the prediction model, and the prediction results of the long short-term memory neural network, the prediction results of the long short-term memory neural network considering the dynamics of the power market, and the prediction results of an optional load forecasting method for a power system provided by an embodiment of the present invention are compared to prove the feasibility and effectiveness of this scheme.

[0156] The calculation formula of mean square error is as follows:

[0157] ,

[0158] The mean absolute error is calculated as follows:

[0159] ,

[0160] The mean square error of the prediction results of the long short-term memory neural network is 0.3849, and the mean absolute error is 0.5115; the mean square error of the prediction results of the long short-term memory neural network considering the power market dynamics is 0.1671, and the mean absolute error is 0.2506; the mean square error of the prediction results of an optional load forecasting method for a power system provided by an embodiment of the present invention is 0.1156, and the mean absolute error is 0.2013. The above values ​​are for illustration only and are not specifically limited.

[0161] It is easy to see that, no matter the mean square error or the mean absolute error, the optional load forecasting method for the power system provided by the embodiment of the present invention is more accurate.

[0162] Example 2

[0163] The embodiment of the present application also provides a load forecasting device for a power system, Figure 4 FIG. 1 is a schematic diagram of a load forecasting device for an optional power system according to an embodiment of the present invention. Figure 4 As shown, the load forecasting device of the power system includes:

[0164] The acquisition module 40 is used to acquire the initial load data and power dynamic data of the power system within a preset time period, wherein the power dynamic data is used to represent the dynamic load data of other power systems in the power market where the power system is located.

[0165] The prediction module 42 is used to predict the initial load data based on the target time period and the power dynamic data using the load prediction model to obtain a prediction result, wherein the prediction result is used to represent the predicted load data of the power system within the target time period.

[0166] Optionally, the acquisition module includes an input unit, a feature extraction unit, a feature aggregation unit, and a prediction unit. The input unit is used to group the initial load data to obtain multiple load data groups, wherein different load data groups have different dimensions; the feature extraction unit extracts features from multiple load data groups based on power dynamic data to obtain load features of multiple load data groups; the feature aggregation unit aggregates the load features of multiple load data groups to obtain multiple aggregated feature groups, wherein the correlation between different aggregated feature groups is less than a preset threshold; the prediction unit predicts multiple aggregated feature groups based on the target time period to obtain prediction results.

[0167] Optionally, the feature extraction unit further includes a gating unit, which is used to filter the power dynamic data to obtain filtered data. The feature extraction unit also extracts features from multiple load data groups based on the filtered data to obtain load features of the multiple load data groups.

[0168] Optionally, the gating unit is also used to extract features from the power dynamic data to obtain dynamic load features; determine the influencing factors on the dynamic load features in the power dynamic data; and screen the dynamic load features based on the influence values ​​of the influencing factors on the dynamic load features to obtain screened data.

[0169] Optionally, the feature aggregation unit internally aggregates the load features at different time points in the multiple load data groups based on a preset time period to obtain a first aggregation feature of the multiple load data groups; externally aggregates the load features at the same time point in different load data groups of the multiple load data groups based on the preset time period to obtain a second aggregation feature of the preset time period; and merges the first aggregation feature and the second aggregation feature to obtain multiple aggregation feature groups.

[0170] Optionally, the prediction unit predicts the load characteristics of different time scales in multiple aggregated feature groups based on the target time period to obtain a first prediction result, wherein different time scales are used to represent different time points or different time periods in the target time period; based on the target time period, the load characteristics of the same time scale in different aggregated features in the multiple aggregated features are predicted respectively to obtain a second prediction result, wherein the same time scale is used to represent the same time point or the same time period in the target time period; and determines the prediction result based on the first prediction result and the second prediction result.

[0171] Optionally, the load prediction device of the power system also includes a load prediction model establishment unit, which is used to obtain sample load data, annotated predicted load data corresponding to the sample load data, and sample power dynamic data; use the input layer in the initial load prediction model to group the sample load data to obtain multiple sample load data groups; use the feature extraction layer in the initial load prediction model to extract features from the multiple sample load data groups based on the sample power dynamic data to obtain sample load features of the multiple sample load data groups; use the feature aggregation layer in the initial load prediction model to aggregate the sample load features of the multiple sample load data groups to obtain multiple sample aggregated feature groups; use the prediction layer in the initial load prediction model to predict the multiple sample aggregated feature groups based on the prediction time period to obtain sample predicted load data; adjust the model parameters of the initial load prediction model based on the sample predicted load data and the annotated predicted load data to obtain a load prediction model.

[0172] Example 3

[0173] An embodiment of the present application further provides an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of the present invention when running.

[0174] Example 4

[0175] An embodiment of the present application further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0176] Example 5

[0177] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present invention when executed by a processor.

[0178] Example 6

[0179] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.

[0180] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0181] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0184] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0185] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0186] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A load forecasting method for a power system, characterized in that: include: Acquire initial load data and power dynamic data of the power system within a preset time period, wherein the power dynamic data is used to represent dynamic load data of other power systems in the power market where the power system is located; The load forecasting model is used to forecast the initial load data based on the target time period and the power dynamic data to obtain a forecast result, wherein the forecast result is used to represent the forecasted load data of the power system within the target time period, and the load forecasting model includes: an input layer, a feature extraction layer, a feature aggregation layer, and a forecasting layer; The load forecasting model is used to forecast the initial load data based on the target time period and the power dynamic data to obtain a forecast result, including: Using the input layer to group the initial load data to obtain a plurality of load data groups, wherein different load data groups have different dimensions; Extracting features from the power dynamic data to obtain dynamic load features; Determine the influencing factors of the dynamic load characteristics in the power dynamic data by using a gating unit; filter the dynamic load characteristics based on the influencing values ​​of the influencing factors on the dynamic load characteristics to obtain filtered data; extract features from the multiple load data groups based on the filtered data to obtain load characteristics of the multiple load data groups; Using the feature aggregation layer to internally aggregate the load features at different time points in the multiple load data groups based on the preset time period to obtain first aggregate features of the multiple load data groups; externally aggregate the load features at the same time point in different load data groups of the multiple load data groups based on the preset time period to obtain second aggregate features of the preset time period; merging the first aggregate features and the second aggregate features to obtain multiple aggregate feature groups, wherein the correlation between different aggregate feature groups is less than a preset threshold; The prediction layer is used to predict the multiple aggregated feature groups based on the target time period to obtain a prediction result.

2. The load forecasting method for the power system according to claim 1, characterized in that: The prediction layer is used to predict the multiple aggregated feature groups based on the target time period to obtain prediction results, including: Based on the target time period, load characteristics of different time scales in the multiple aggregated feature groups are predicted to obtain a first prediction result, wherein the different time scales are used to represent different time points or different time periods in the target time period; Based on the target time period, respectively predict the load characteristics of the same time scale in different aggregated characteristics in the multiple aggregated characteristic groups to obtain a second prediction result, wherein the same time scale is used to represent the same time point or the same time period in the target time period; A prediction result is determined based on the first prediction result and the second prediction result.

3. The load forecasting method for a power system according to claim 1, characterized in that: The method further comprises: Acquire sample load data, annotated predicted load data corresponding to the sample load data, and sample power dynamic data; Using the input layer in the initial load forecasting model to group the sample load data to obtain a plurality of sample load data groups; Using the feature extraction layer in the initial load forecasting model to extract features from the multiple sample load data groups based on the sample power dynamic data, to obtain sample load features of the multiple sample load data groups; Performing feature aggregation on the sample load features of the plurality of sample load data groups using the feature aggregation layer in the initial load forecasting model to obtain a plurality of sample aggregation feature groups; Using the prediction layer in the initial load prediction model to predict the multiple sample aggregation feature groups based on the prediction time period, to obtain sample prediction load data; The model parameters of the initial load prediction model are adjusted based on the sample prediction load data and the annotated prediction load data to obtain the load prediction model.

4. A load forecasting device for a power system, characterized in that: include: An acquisition module, used to acquire initial load data and power dynamic data of the power system within a preset time period, wherein the power dynamic data is used to represent dynamic load data of other power systems in the power market where the power system is located; A prediction module, used for predicting the initial load data based on the target time period and the power dynamic data using a load prediction model to obtain a prediction result, wherein the prediction result is used to represent the predicted load data of the power system within the target time period, and the load prediction model includes: an input layer, a feature extraction layer, a feature aggregation layer, and a prediction layer; Among them, the load prediction model is used to predict the initial load data based on the target time period and the power dynamic data to obtain a prediction result, including: using the input layer to group the initial load data to obtain multiple load data groups, wherein different load data groups have different dimensions; extracting features from the power dynamic data to obtain dynamic load features; using a gating unit to determine the influencing factors of the dynamic load features in the power dynamic data; filtering the dynamic load features based on the influencing values ​​of the influencing factors on the dynamic load features to obtain filtered data; extracting features from the multiple load data groups based on the filtered data to obtain the multiple load load characteristics of the data group; using the feature aggregation layer to internally aggregate the load characteristics at different time points in the multiple load data groups based on the preset time period to obtain the first aggregation characteristics of the multiple load data groups; externally aggregate the load characteristics at the same time point in different load data groups of the multiple load data groups based on the preset time period to obtain the second aggregation characteristics of the preset time period; merging the first aggregation characteristics and the second aggregation characteristics to obtain multiple aggregation characteristic groups, wherein the correlation between different aggregation characteristic groups is less than a preset threshold; using the prediction layer to predict the multiple aggregation characteristic groups based on the target time period to obtain prediction results.

5. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 3 when running.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 3.

7. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Electric vehicle charging station load prediction method and system of time-space multi-graph convolutional network based on attention

    CN117273076A

  • Device and method for controlling complex facility air-conditioning system

    JP2014178058A