Power distribution network line loss situation prediction method and system
By constructing a historical data set of factors affecting line loss and using graph neural network and bidirectional LSTM network, a distribution network line loss situation prediction model is established, which solves the problem that traditional line loss prediction methods are difficult to adapt to complex changes in the distribution network, and achieves line alignment. Accurate prediction of losses and improvement of management efficiency.
Patent Information
- Application Number
- CN202410746056.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional line loss prediction methods are mainly based on physical models and are difficult to adapt to the volatility of distributed energy resources and the complexity of data collection in distribution networks, causing the accuracy and efficiency of line loss management to be affected.
By obtaining the historical data of line loss influencing factors and historical line loss values of the distribution network, a training data set is constructed, and the improved Im-GNN graph neural network and Im-Bi-LSTM bidirectional long short-term memory neural network are used to establish the line loss situation. Prediction model to predict the current line loss situation.
It achieves accurate prediction of line losses in the distribution network, improves the efficiency and accuracy of line loss management, and adapts to the complex changes in the distribution network.
Smart Images

Figure CN118780415A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of line loss prediction, and in particular to a method and system for predicting line loss situation in a distribution network. Background Art
[0002] In the current power system, with the rapid development of new energy technologies and their widespread application in power grids, the operation and management of distribution networks face unprecedented challenges. In particular, the access of distributed energy resources (such as wind power, solar energy, energy storage systems, and electric vehicles) has greatly increased the complexity of distribution network operation. The volatility and uncertainty of these distributed energy sources have a significant impact on the stability, reliability, and economy of the distribution network. Therefore, how to effectively predict and manage line losses in distribution networks has become one of the key issues in improving the efficiency of power systems. In addition, data collection and social user systems will also have an impact on line losses, including the accuracy of data collected, the fluctuation of user loads, and the interaction between supply and demand.
[0003] Line loss refers to the energy loss caused by resistance during the transmission and distribution of electricity. Line loss not only reduces the operating efficiency of the power grid, but also increases the operating costs of power companies and the comprehensive cost of electricity. Therefore, reducing line loss is an important way to improve the economy and reliability of the power system. The access of distributed energy resources, especially the large-scale utilization of renewable energy such as wind and solar energy, has a high degree of randomness and volatility in output. In addition, data collection and social systems inevitably have an impact on line loss. These factors make the power flow distribution of the distribution network more complex, and traditional line loss calculation and prediction models are difficult to adapt to new changes, thus affecting the accuracy and efficiency of line loss management.
[0004] In order to meet these challenges, line loss prediction technology has developed rapidly in recent years. Traditional line loss prediction methods are mainly based on physical models, which calculate line loss values through the topological structure and electrical parameters of the power grid, making it difficult to predict line loss in distribution networks. Summary of the invention
[0005] The present invention provides a method and system for predicting the line loss situation of a distribution network, which solves the technical problem that the traditional line loss prediction method is mainly based on a physical model, calculates the line loss value through the topological structure and electrical parameters of the power grid, and is difficult to predict the line loss of the distribution network.
[0006] In view of this, a first aspect of the present invention provides a method for predicting line loss status of a distribution network, comprising:
[0007] Acquire historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and construct a first training data set, wherein the historical data of line loss influencing factors include historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network;
[0008] The first training data set is trained based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model;
[0009] The prediction data of the line loss influencing factors of the current distribution network is input into the line loss situation prediction model to obtain the line loss situation prediction result.
[0010] Preferably, the method further comprises:
[0011] Determine error-free data sampling points at different time scales based on historical line loss values of the distribution network at different time scales and preset theoretical line loss values;
[0012] Determine a data integrity ratio according to the ratio of the number of error-free data sampling points to the number of total data sampling points;
[0013] The data time continuity ratio is determined according to the ratio of the longest time period of continuous non-missing data of the historical line loss value of the distribution network at different time scales to the total observation time period at the corresponding time scale;
[0014] Performing weighted processing on the data integrity ratio and the data time continuity ratio to determine a data integrity index;
[0015] The historical data of line loss influencing factors of the distribution network and the historical line loss values of the distribution network whose data integrity index is higher than a preset data integrity index threshold are screened out to construct a first training data set.
[0016] Preferably, the improved Im-GNN graph neural network includes a graph structure encoding layer, a time perception layer, a multi-scale graph attention layer, a fusion layer and an output layer connected in sequence;
[0017] The line loss influencing factor data is input into the graph structure encoding layer to construct the graph structure of the distribution network at time t. The graph structure is:
[0018]
[0019] In the formula, G t is the graph structure, V t is a node set, E t is an edge set, which contains the electrical connection relationship between nodes. is a node feature matrix, wherein the node feature matrix includes line loss influencing factor data;
[0020] The time-aware layer captures the time-aware features of the graph structure;
[0021] The multi-scale graph attention layer extracts graph features of the graph structure at different scales based on the graph attention mechanism;
[0022] The fusion layer fuses the time-aware features of the graph structure and the graph features to output node features;
[0023] The output layer is based on a fully connected network and predicts the line loss value of the distribution network according to the node characteristics. The fully connected network is used to map the node feature representation to the predicted line loss value.
[0024] Preferably, before the step of inputting the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result, the step further includes:
[0025] Obtain historical output data of various distributed resources of the distribution network and their corresponding historical weather data, and construct a second training data set;
[0026] Preprocessing the second training data set;
[0027] The preprocessed second training data set is trained based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain a resource output prediction model;
[0028] The current weather data is input into the resource output prediction model, and the predicted output data of various distributed resources of the distribution network are output.
[0029] Preferably, before the step of inputting the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result, the step further includes:
[0030] Obtain historical output data of load nodes of the distribution network and their corresponding historical weather data, and construct a third training data set;
[0031] Preprocessing the third training data set;
[0032] The preprocessed third training data set is trained based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain the load output prediction model;
[0033] The current weather data is input into the load output prediction model, and the predicted output data of each load node of the distribution network is output.
[0034] Preferably, the improved Im-Bi-LSTM bidirectional long short-term memory neural network comprises an input layer, a Bi-LSTM layer, a dynamic attention mechanism layer and an output layer connected in sequence;
[0035] Inputting the historical weather data with time series into the Bi-LSTM layer through the input layer;
[0036] The Bi-LSTM layer includes two LSTM networks, one LSTM network is used to forward process historical weather data, and the other LSTM network is used to reversely process historical weather data to obtain forward context information and backward context information with temporal sequence;
[0037] The dynamic attention mechanism layer calculates the attention weight and context vector of each time step for the forward context information and the backward context information with temporal sequence, and inputs the attention weight and the context vector into the output layer;
[0038] The output layer is used to predict output data through the context vector based on the attention weight.
[0039] In a second aspect, the present invention further provides a distribution network line loss situation prediction system, comprising:
[0040] A training set module, used to obtain historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and construct a first training data set, wherein the historical data of line loss influencing factors includes historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network;
[0041] A training module, used for training the first training data set based on an improved Im-GNN graph neural network to obtain a line loss situation prediction model;
[0042] The line loss prediction module is used to input the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result.
[0043] In a third aspect, the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the distribution network line loss situation prediction method as described above.
[0044] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the steps of the distribution network line loss situation prediction method as described above are implemented.
[0045] In a fifth aspect, the present invention also provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the distribution network line loss situation prediction method as described above.
[0046] It can be seen from the above technical solutions that the present invention has the following advantages:
[0047] The present invention constructs a first training data set through the historical data of line loss influencing factors of the distribution network and the historical line loss values of the distribution network, and trains the first training data set based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model. The line loss situation prediction model is used to predict the current line loss situation prediction result, thereby achieving accurate prediction of line loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A flow chart of a method for predicting line loss in a distribution network provided by an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of the structure of a distribution network line loss situation prediction system provided by an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] 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 are within the scope of protection of the present invention.
[0052] 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.
[0053] Traditional line loss prediction methods are mainly based on physical models, which calculate line loss values through the topological structure and electrical parameters of the power grid, making it difficult to predict line loss in distribution networks.
[0054] In view of this, an embodiment of the present invention provides a distribution network line loss situation prediction method. The embodiment of the present invention can be applied to the situation of distribution network line loss situation prediction. The method can be executed by a distribution network line loss situation prediction device. The distribution network line loss situation prediction device can be implemented in the form of hardware and / or software. The distribution network line loss situation prediction device can be configured in a computer device.
[0055] like Figure 1 As shown, Figure 1 The present invention illustrates a flow chart of a method for predicting line loss in a distribution network.
[0056] The present invention provides a method for predicting line loss in a distribution network, comprising:
[0057] Step S1, obtaining historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and constructing a first training data set, wherein the historical data of line loss influencing factors include historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network.
[0058] The historical data of line loss influencing factors refers to the data of factors that affect line loss changes, including but not limited to the historical output data of various distributed resources of the distribution network, the historical output data of each load node and the topological structure data of the distribution network.
[0059] Among them, distributed resources include but are not limited to photovoltaic, wind power, energy storage, etc. There is a mapping relationship between the historical data of line loss influencing factors and the historical line loss values of the distribution network.
[0060] In order to reduce the error in data collection, the process of constructing the first training data set in this embodiment includes:
[0061] Step S101: determining error-free data sampling points at different time scales according to historical line loss values of the distribution network at different time scales and preset theoretical line loss values.
[0062] Among them, since there are certain errors in the historical line loss values of the distribution network at different time scales, in order to make the training more accurate, the embodiment of the present invention compares the historical line loss values of the distribution network at different time scales with the preset theoretical line loss values. The historical line loss values of the distribution network within the error range of the preset theoretical line loss values are the error-free data sampling points.
[0063] Step S102: determine a data integrity ratio according to the ratio of the number of error-free data sampling points to the number of total data sampling points.
[0064] Among them, the data integrity ratio reflects the proportion of error-free data sampling points in the collected data, that is, the ratio of the number of error-free data sampling points to the total number of data sampling points.
[0065] Step S103: determine the data time continuity ratio according to the ratio of the longest time period of continuous non-missing data of historical line loss values of the distribution network at different time scales to the total observation time period at the corresponding time scale.
[0066] Among them, the data time continuity ratio reflects the continuity of the collected data in the time series, that is, the proportion of data without time gaps, which is the ratio of the longest time period of continuous data without missing data to the total observation time period.
[0067] Step S104: weight the data integrity ratio and the data time continuity ratio to determine a data integrity index.
[0068] Among them, the data integrity index is calculated as:
[0069] ISII=α1∈1+β1∈2
[0070] Where ISII is the data integrity index, α1 and β1 are adjustable weights, ∈1 is the data integrity ratio, and ∈2 is the data temporal continuity ratio.
[0071] Step S105: Filter out historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network whose data integrity index is higher than a preset data integrity index threshold to construct a first training data set.
[0072] It can be understood that the first training data set is constructed by screening out historical data of line loss influencing factors of the distribution network with a higher data integrity index and historical line loss values of the distribution network, thereby improving the accuracy of the training data set.
[0073] Step S2: training the first training data set based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model.
[0074] Among them, the improved Im-GNN (Insertion Mutation-Convolutional Neural Network) graph neural network includes a graph structure encoding layer, a time perception layer, a multi-scale graph attention layer, a fusion layer and an output layer connected in sequence;
[0075] The data of line loss influencing factors are input into the graph structure encoding layer to construct the graph structure of the distribution network at time t. The graph structure is:
[0076]
[0077] In the formula, G t is the graph structure, V t is a node set, E t is an edge set, which contains the electrical connection relationship between nodes. is the node feature matrix, which contains the data of line loss influencing factors.
[0078] Among them, the graph structure encoding layer is the graph of the distribution network at time t Each node in the v,t , where the node set V t Includes power generation nodes and load nodes.
[0079] The time-aware layer captures the time-aware features of the graph structure.
[0080] Among them, the time perception layer captures the characteristics of the graph evolving over time, such as the changing trends of power output and load, which can be expressed as
[0081]
[0082] In the formula, It represents the feature representation of node v after being processed by the time perception module at time t, reflecting the dynamic changes of the node over time; LSTM (LSTM, Long Short-Term Memory) is a long short-term memory network used to process time series data.
[0083] The multi-scale graph attention layer extracts graph features of graph structures at different scales based on the graph attention mechanism.
[0084] Among them, the multi-scale graph attention layer applies the graph attention mechanism at different scales, focusing on local and global dependencies at the same time, which can be expressed as
[0085]
[0086] In the formula, The feature representation of node v at time t and scale s is the output after considering the information of s-hop neighbor nodes; Represents the set of s-hop neighbor nodes of node v; represents the attention weight of node v to its s-hop neighbor node u, which determines the contribution of neighbor node u to the feature representation of node v; W sRepresents the weight matrix of scale s, which is used to linearly transform the features of neighbor nodes; σ is the activation function.
[0087] The fusion layer fuses the time-aware features of the graph structure and the graph features, and outputs node features.
[0088] Among them, the fusion method of the fusion layer can be to fuse the outputs of different scales and the outputs of the time perception layer by splicing or weighted averaging.
[0089] The output layer is based on a fully connected network to predict the line loss value of the distribution network according to the node characteristics. The fully connected network is used to map the node feature representation to the predicted line loss value.
[0090] Among them, the line loss value of the distribution network is predicted based on the fused node characteristics, which can be expressed as
[0091]
[0092] Where f is a fully connected network used to map node feature representations to predicted line loss values. After integrating the multi-scale graph structure information and time dynamic information, the final feature representation of node v at time t, y t The line loss value of the distribution network at time t is predicted based on the fused graph features.
[0093] Step S3: input the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result.
[0094] It should be noted that the embodiment of the present invention also needs to predict the data of the factors affecting the line loss of the distribution network.
[0095] The specific predictions are:
[0096] The prediction process for obtaining the predicted output data of various distributed resources in the distribution network is as follows:
[0097] Step S301: Obtain historical output data of various distributed resources of the distribution network and their corresponding historical weather data, and construct a second training data set;
[0098] Step S302, preprocessing the second training data set;
[0099] Step S303: training the preprocessed second training data set based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain a resource output prediction model;
[0100] Step S304: input the current weather data into the resource output prediction model, and output the predicted output data of various distributed resources of the distribution network.
[0101] The prediction process of obtaining the predicted output data of each load node in the distribution network is as follows:
[0102] Step S311, obtaining historical output data of load nodes of the distribution network and their corresponding historical weather data, and constructing a third training data set;
[0103] Step S312, preprocessing the third training data set;
[0104] Step S313: training the preprocessed third training data set based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain a load output prediction model;
[0105] Step S314: input the current weather data into the load output prediction model, and output the predicted output data of each load node of the distribution network.
[0106] Among them, the improved Im-Bi-LSTM (Insertion Mutation-Bidirectional-Long Short-Term Memory) bidirectional long short-term memory neural network includes an input layer, a Bi-LSTM layer, a dynamic attention mechanism layer and an output layer connected in sequence;
[0107] The historical weather data with time series is input into the Bi-LSTM layer through the input layer.
[0108] Among them, the operation process of the input layer is expressed as:
[0109] x={x1,…,x T}
[0110] Where T is the length of the time series, x i is the observed value at time i; the output is the processed time series data X′.
[0111] The Bi-LSTM layer contains two LSTM networks, one LSTM network is used to forward process historical weather data, and the other LSTM network is used to reversely process historical weather data to obtain forward context information and backward context information with temporal sequence.
[0112] The operation process of the Bi-LSTM layer is expressed as:
[0113]
[0114] In the formula, the hidden state of the forward LSTM is expressed as The hidden state of the reverse LSTM is represented as For time step t, the output h of the Bi-LSTM layer t It is the concatenation of the hidden states in two directions.
[0115] The dynamic attention mechanism layer calculates the attention weight and context vector for each time step for the forward context information and backward context information with temporal sequence, and inputs the attention weight and context vector into the output layer.
[0116] The dynamic attention mechanism layer outputs h for each time step of the Bi-LSTM layer. t Calculate an attention weight α t , to determine the importance of each time step to predict the target. The attention score α t The calculation of involves a softmax function that normalizes the attention scores of all time steps as:
[0117]
[0118] where score(·) is a function used to calculate the raw attention score. The context vector c is the hidden state h at all time steps. t The corresponding attention weight α t The weighted sum of .
[0119]
[0120] The output layer is used to predict the output data through the context vector based on the attention weights.
[0121] Among them, the output layer can be a fully connected layer, and its output is a continuous value.
[0122] It should be noted that after the above-mentioned line loss situation prediction model for the power distribution system is trained, it is configured in the data processing center of the early warning system to continuously receive the output of each distributed prediction module and give the final line loss value of the power distribution system at the future moment.
[0123] It should be noted that the present invention constructs a first training data set through the historical data of line loss influencing factors of the distribution network and the historical line loss values of the distribution network, and trains the first training data set based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model, and predicts the current line loss situation prediction result through the line loss situation prediction model, thereby achieving accurate prediction of line loss.
[0124] The above is a detailed description of an embodiment of a distribution network line loss situation prediction method provided by the present invention. The following is a detailed description of an embodiment of a distribution network line loss situation prediction system provided by the present invention.
[0125] like Figure 2 As shown, Figure 2 The structure of a distribution network line loss situation prediction system provided by the present invention is illustrated.
[0126] The present invention provides a distribution network line loss situation prediction system, comprising:
[0127] The training set module 100 is used to obtain historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and construct a first training data set, wherein the historical data of line loss influencing factors includes historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network;
[0128] A training module 200 is used to train the first training data set based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model;
[0129] The line loss prediction module 300 is used to input the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result.
[0130] like Figure 3 As shown, the present invention also provides an electronic device 10, including a memory 20 and a processor 30, wherein the memory 20 stores a computer program, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the distribution network line loss situation prediction method as described above.
[0131] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the steps of the distribution network line loss situation prediction method as described above are implemented.
[0132] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes the steps of the distribution network line loss situation prediction method as described above.
[0133] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, electronic devices, computer storage media and computer program products can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0134] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0135] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices, computer storage media, computer program products and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only 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 devices or units, which can be electrical, mechanical or other forms.
[0136] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] 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.
[0138] 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, and the computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0139] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for predicting line loss in a distribution network, characterized in that: include: Acquire historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and construct a first training data set, wherein the historical data of line loss influencing factors include historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network; The first training data set is trained based on the improved Im-GNN graph neural network to obtain a line loss situation prediction model; The prediction data of the line loss influencing factors of the current distribution network is input into the line loss situation prediction model to obtain the line loss situation prediction result.
2. The method for predicting line loss in a distribution network according to claim 1, characterized in that: Also includes: Determine error-free data sampling points at different time scales based on historical line loss values of the distribution network at different time scales and preset theoretical line loss values; Determine a data integrity ratio according to the ratio of the number of error-free data sampling points to the number of total data sampling points; The data time continuity ratio is determined according to the ratio of the longest time period of continuous non-missing data of the historical line loss value of the distribution network at different time scales to the total observation time period at the corresponding time scale; Performing weighted processing on the data integrity ratio and the data time continuity ratio to determine a data integrity index; The historical data of line loss influencing factors of the distribution network and the historical line loss values of the distribution network whose data integrity index is higher than a preset data integrity index threshold are screened out to construct a first training data set.
3. The method for predicting line loss situation in a distribution network according to claim 1, characterized in that: The improved Im-GNN graph neural network includes a graph structure encoding layer, a time perception layer, a multi-scale graph attention layer, a fusion layer and an output layer connected in sequence; The line loss influencing factor data is input into the graph structure coding layer to construct the graph structure of the distribution network at time t. The graph structure is: In the formula, G t is the graph structure, V t is the node set, E t is an edge set, which contains the electrical connection relationship between nodes. is a node feature matrix, wherein the node feature matrix includes line loss influencing factor data; The time-aware layer captures the time-aware features of the graph structure; The multi-scale graph attention layer extracts graph features of the graph structure at different scales based on the graph attention mechanism; The fusion layer fuses the time-aware features of the graph structure and the graph features to output node features; The output layer is based on a fully connected network and predicts the line loss value of the distribution network according to the node characteristics. The fully connected network is used to map the node feature representation to the predicted line loss value.
4. The method for predicting line loss situation in a distribution network according to claim 1, characterized in that: Before the step of inputting the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result, the step further includes: Obtain historical output data of various distributed resources of the distribution network and their corresponding historical weather data, and construct a second training data set; Preprocessing the second training data set; The preprocessed second training data set is trained based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain a resource output prediction model; The current weather data is input into the resource output prediction model, and the predicted output data of various distributed resources of the distribution network are output.
5. The method for predicting line loss situation in a distribution network according to claim 1, characterized in that: Before the step of inputting the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result, the step further includes: Obtain historical output data of load nodes of the distribution network and their corresponding historical weather data, and construct a third training data set; Preprocessing the third training data set; The preprocessed third training data set is trained based on the improved Im-Bi-LSTM bidirectional long short-term memory neural network to obtain the load output prediction model; The current weather data is input into the load output prediction model, and the predicted output data of each load node of the distribution network is output.
6. The method for predicting line loss situation in a distribution network according to claim 4 or 5, characterized in that: The improved Im-Bi-LSTM bidirectional long short-term memory neural network includes an input layer, a Bi-LSTM layer, a dynamic attention mechanism layer and an output layer connected in sequence; Inputting the historical weather data with time series into the Bi-LSTM layer through the input layer; The Bi-LSTM layer includes two LSTM networks, one LSTM network is used to forward process historical weather data, and the other LSTM network is used to reversely process historical weather data to obtain forward context information and backward context information with temporal sequence; The dynamic attention mechanism layer calculates the attention weight and context vector of each time step for the forward context information and the backward context information with temporal sequence, and inputs the attention weight and the context vector into the output layer; The output layer is used to predict output data through the context vector based on the attention weight.
7. A distribution network line loss situation prediction system, characterized in that: include: A training set module, used to obtain historical data of line loss influencing factors of the distribution network and historical line loss values of the distribution network, and construct a first training data set, wherein the historical data of line loss influencing factors includes historical output data of various distributed resources of the distribution network, historical output data of each load node, and topological structure data of the distribution network; A training module, used for training the first training data set based on an improved Im-GNN graph neural network to obtain a line loss situation prediction model; The line loss prediction module is used to input the prediction data of the line loss influencing factors of the current distribution network into the line loss situation prediction model to obtain the line loss situation prediction result.
8. An electronic device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the distribution network line loss situation prediction method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the distribution network line loss situation prediction method as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer is caused to execute the steps of the distribution network line loss situation prediction method as described in any one of claims 1-6.
Citation Information
Cited By
Active power distribution area line loss prediction method, system and device and storage medium
CN119416099A
