Distribution network monitoring method, device, equipment and storage medium

Data missing detection and completion processing is performed through smart pole-mounted circuit breakers, combined with topological structure and spatio-temporal correlation analysis, to calculate attack scores and perform circuit breaking operations, which solves the problem of reduced detection accuracy caused by missing data in distribution network monitoring and improves It improves the detection capabilities of complex network attacks and the stability of the distribution network.

CN118316744BActive Publication Date: 2024-09-03SHENZHEN FRIENDCOM TECH DEV
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing distribution network monitoring methods lack effective processing methods when faced with missing data, resulting in reduced detection accuracy and reliability, and are unable to effectively respond to network threats such as load tampering attacks.

Method used

Obtain distribution network node information through smart pole-mounted circuit breakers, perform data missing detection and completion processing, use information completion models and deep learning models to detect data missing, combine topological structure and spatio-temporal correlation analysis to calculate attack scores, and classify attacks. Detect and perform circuit break operations.

Benefits of technology

It significantly improves the detection capability and accuracy of complex network attacks in the distribution network, ensures the stable operation of the distribution network, and prevents large-scale power outages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316744B
    Figure CN118316744B
Patent Text Reader

Abstract

The present invention provides a monitoring method, device, equipment and storage medium for a distribution network, wherein the method comprises: obtaining node information in the distribution network through an intelligent pole-mounted circuit breaker, including the operating data of each node in the distribution network and the topological structure between each node. When it is detected that there is missing data in the distribution network, the missing data is supplemented by a preset information completion model. Based on the supplemented node information and topological structure, the attack score of each node is calculated, and the nodes with attack scores higher than a preset threshold are marked as target nodes. Attack classification detection is performed on the operating data of the target node to obtain the attack detection result, and a circuit breaker operation is performed through the intelligent pole-mounted circuit breaker according to the response strategy corresponding to the attack detection result. This method significantly improves the detection capability and accuracy of complex network attacks in the distribution network by performing effective supplementation processing in the case of missing data, combining topological structure and spatiotemporal correlation data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a monitoring method, device, equipment and storage medium for a distribution network. Background Art

[0002] With the rapid development of smart grid technology, smart devices such as smart pole-mounted circuit breakers are widely used in distribution networks. These smart devices improve the operating efficiency and reliability of distribution networks by real-time monitoring and controlling the status of nodes in the distribution network. However, with the popularization of information and communication technology (ICT) in smart distribution networks, distribution networks are facing increasingly serious cybersecurity threats. In particular, load altering attacks (LAAs) on high-power devices may cause instability in the power system and even cause large-scale power outages.

[0003] In practical applications, cyber attacks may not only directly change the load data in the distribution network, but also cause data loss at some nodes in the distribution network through malicious operations or interference with communication links. Data loss will seriously affect the monitoring and analysis of the operating status of the distribution network. Traditional monitoring methods often lack effective processing methods when faced with data loss, resulting in reduced detection accuracy and reliability. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem that the existing monitoring methods often lack effective processing means when faced with data loss, resulting in reduced detection accuracy and reliability.

[0005] A first aspect of the present invention provides a method for monitoring a distribution network, the method comprising:

[0006] Acquiring node information in the distribution network through the intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node;

[0007] Performing data missing detection on the operating data of each node in the distribution network to obtain missing detection results, and determining whether to perform completion processing on the node information according to the missing detection results;

[0008] If yes, the operation data of each node in the distribution network is input into a preset information completion model for completion processing to obtain completed node information;

[0009] Calculating an attack score of each node in the distribution network according to the topological structure and the completed node information, and taking nodes with attack scores higher than a preset threshold as target nodes;

[0010] Performing attack classification detection on the target node according to the operation data of the target node through a preset post-detection method to obtain an attack detection result;

[0011] A response strategy corresponding to the attack detection result is obtained, and a circuit-breaking operation is performed on the distribution network through the smart pole-mounted circuit breaker according to the response strategy.

[0012] Optionally, in a first implementation manner of the first aspect of the present invention, performing data missing detection on the operating data of each node in the distribution network to obtain a missing detection result, and judging whether to perform completion processing on the node information according to the missing detection result includes:

[0013] Performing statistical characteristic analysis on the historical operating data of each node in the distribution network to obtain statistical characteristics of the historical data, and comparing the statistical characteristics with the operating data of each node to obtain statistical characteristic deviation results;

[0014] According to the statistical feature deviation result, using the trained deep learning model to perform abnormality detection processing on the operating data of each node in the distribution network to obtain a deep learning model detection result, and judging whether there is data missing according to the deep learning model detection result to obtain a data missing judgment result;

[0015] If yes, the redundant data sources of each node in the distribution network are acquired and compared to obtain redundant data comparison results, and the data missing determination results are verified according to the redundant data comparison results, and the nodes that need to be supplemented are determined;

[0016] Preprocessing the operation data of each node in the distribution network, and performing timestamp check processing on the preprocessed operation data to obtain a timestamp continuity detection result;

[0017] Performing data integrity verification processing on the operation data of each node in the distribution network according to the timestamp continuity detection result to obtain a data integrity verification result, and comparing the data integrity verification result with a preset verification rule to obtain a data missing determination result;

[0018] Performing data range and validity check processing on the data missing determination result to obtain a data range detection result and a validity verification result, and determining the cause of the data missing according to the data range detection result and the validity verification result;

[0019] Whether to complete the node information is determined based on the node that needs to be completed and the reason for the missing data.

[0020] Optionally, in a second implementation of the first aspect of the present invention, the inputting the operating data of each node in the distribution network into a preset information completion model for completion processing to obtain the completed node information includes:

[0021] Preprocessing the operation data of each node in the distribution network to generate a mask vector, and combining the mask vector with the operation data to obtain a first input feature vector;

[0022] Inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through a first diagonal mask self-attention mechanism branch in the information completion model, and obtaining first completed output data;

[0023] Performing a secondary combination process on the first completed output data and the mask vector to obtain a second input feature vector, and performing feature extraction processing on the second input feature vector through a second diagonal mask self-attention mechanism branch in the information completion model to obtain second completed output data;

[0024] Performing weighted processing on the first complement output data and the second complement output data to obtain weighted complement data, and generating final complement output data according to the weighted complement data;

[0025] According to the final completed output data, the nodes that need to be completed in the operation data of each node in the distribution network are updated to obtain completed node information.

[0026] Optionally, in a third implementation manner of the first aspect of the present invention, inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through a first diagonal mask self-attention mechanism branch in the information completion model, and obtaining first completed output data includes:

[0027] Inputting the first input feature vector into a preset information completion model, performing mapping processing of a query vector, a key vector and a value vector on the first input feature vector to obtain a query vector, a key vector and a value vector;

[0028] Calculate a scaled dot product attention score based on the query vector and the key vector to obtain an attention map;

[0029] Setting the diagonal elements of the attention map to negative infinity through the diagonal mask mechanism in the first diagonal mask self-attention mechanism branch to obtain a masked attention map;

[0030] Performing softmax processing on the masked attention map to obtain attention weights, and applying the attention weights to the value vector to obtain a weighted value vector;

[0031] Performing position coding processing on the weighted value vector to obtain a weighted value vector with position coding;

[0032] The weighted value vector with position encoding is processed by a fully connected feedforward network to obtain first completed output data.

[0033] Optionally, in a fourth implementation manner of the first aspect of the present invention, calculating the attack score of each node in the distribution network according to the topological structure and the completed node information includes:

[0034] Generate a node feature vector of the corresponding node according to the completed node information, and input the node feature vector and the topological structure into a preset graph attention network model;

[0035] Performing spatial correlation analysis on each node in the distribution network according to the topological structure and the node feature vector through the graph attention network model to obtain the spatial correlation characteristics of each node;

[0036] Performing time series modeling on the spatial correlation features to obtain a time series modeling result, and performing time series correlation analysis on the time series modeling result using a long short-term memory network to obtain a time series correlation feature of each node;

[0037] Input the time series correlation feature into a preset prediction model, perform prediction processing on the next time step of the corresponding node, and obtain a prediction value sequence corresponding to each node;

[0038] The autoencoder performs error analysis on the predicted value sequence of each node and the actual observed value sequence of the next time step to obtain a preset error value for each node, and then performs attack score calculation and processing on the corresponding node according to the preset error value to obtain the attack score of each node.

[0039] Optionally, in a fifth implementation of the first aspect of the present invention, the graph attention network model performs spatial correlation analysis on each node in the distribution network according to the topological structure and the node feature vector, and obtains the spatial correlation characteristics of each node, including:

[0040] Performing adjacency matrix processing on the topological structure through the graph attention network model to obtain an adjacency matrix representing the connection relationship between each node;

[0041] Generate a node feature matrix according to the completed node information, wherein the node feature matrix includes a feature vector of each node;

[0042] Input the adjacency matrix and the node feature matrix into the graph attention network model, perform graph convolution processing, and obtain the initial embedding features of each node;

[0043] Performing attention mechanism processing on the initial embedded features, calculating the attention weight between each node and its neighboring nodes, and obtaining an attention weight matrix between nodes;

[0044] According to the attention weight matrix, weighted summing is performed on the initial embedding features of each node to obtain updated embedding features of each node;

[0045] The updated embedded features are processed with an activation function to obtain the spatial correlation features of each node.

[0046] A second aspect of the present invention provides a monitoring device for a distribution network, the monitoring device for the distribution network comprising:

[0047] An information acquisition module, used to acquire node information in the distribution network through the intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node;

[0048] A missing detection module is used to perform data missing detection on the operation data of each node in the distribution network, obtain missing detection results, and determine whether to perform frame supplement processing on the node information according to the missing detection results;

[0049] A completion module, for inputting the operation data of each node in the distribution network into a preset information frame completion model for frame completion processing to obtain completed node information;

[0050] An attack scoring module, used to calculate the attack score of each node in the distribution network according to the topological structure and the completed node information, and take the nodes with attack scores higher than a preset threshold as target nodes;

[0051] A detection classification module, used to perform attack classification detection on the target node according to the operation data of the target node through a preset post-detection method to obtain an attack detection result;

[0052] The circuit breaker module is used to obtain a response strategy corresponding to the attack detection result, and to perform a circuit breaker operation on the distribution network according to the response strategy through the intelligent pole-mounted circuit breaker.

[0053] A third aspect of the present invention provides a monitoring device for a distribution network, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the monitoring device of the distribution network executes the steps of the above-mentioned distribution network monitoring method.

[0054] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned method for monitoring a power distribution network.

[0055] The above-mentioned distribution network monitoring method, device, equipment and storage medium obtain node information in the distribution network through an intelligent pole-mounted circuit breaker, including the operating data of each node in the distribution network and the topological structure between each node. When it is detected that there is missing data in the distribution network, the missing data is completed through a preset information completion model. Based on the completed node information and topological structure, the attack score of each node is calculated, and the nodes with attack scores higher than the preset threshold are marked as target nodes. Attack classification detection is performed on the operating data of the target node to obtain the attack detection result, and the circuit breaker operation is performed through the intelligent pole-mounted circuit breaker according to the corresponding response strategy of the attack detection result. This method significantly improves the detection capability and accuracy of complex network attacks in the distribution network by performing effective completion processing in the case of missing data, combined with topological structure and spatiotemporal correlation data.

[0056] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a schematic diagram of a first embodiment of a method for monitoring a power distribution network in an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of an embodiment of a monitoring device for a power distribution network in an embodiment of the present invention;

[0060] Figure 3 The figure is a schematic diagram of an embodiment of a monitoring device for a power distribution network in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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.

[0062] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.

[0063] To facilitate understanding of this embodiment, a monitoring method for a distribution network disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:

[0064] 101. Obtain node information in the distribution network through an intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node;

[0065] In one embodiment of the present invention, in a distribution network, a node generally refers to each connection point in the power grid, including a substation, a distribution transformer, a circuit breaker, etc. Each node has its own unique operating data, which includes parameters such as voltage, current, power, and frequency. These parameters reflect the operating status of the node and are the basis for monitoring and controlling the distribution network. The topological structure refers to the connection relationship between the nodes in the distribution network, which determines the transmission path of power and the overall structure of the network. In order to obtain node information in the distribution network, real-time monitoring can be performed through an intelligent pole-mounted circuit breaker, which can collect the operating data of each node in the distribution network in real time and transmit the data to the monitoring center through a communication network. First, the intelligent pole-mounted circuit breaker is installed at the key nodes of the distribution network. Each circuit breaker is equipped with a high-precision power sensor, which can measure the voltage, current, power, frequency and other parameters of the node. Secondly, the built-in microprocessor of the intelligent pole-mounted circuit breaker processes and stores the data collected by the sensor. The processing process includes data filtering, anomaly detection, and data formatting. While obtaining the node operation data, the intelligent pole-mounted circuit breaker can also obtain the topological structure between the nodes. The topology of the distribution network reflects the connection relationship between nodes, which can be determined by the circuit breaker status and the network topology diagram. For example, the circuit breaker switch status can reflect the current power transmission path, thus helping to draw the actual connection relationship between nodes.

[0066] 102. Perform data missing detection on the operation data of each node in the distribution network to obtain missing detection results, and determine whether to perform completion processing on the node information according to the missing detection results;

[0067] In one embodiment of the present invention, the data missing detection is performed on the operating data of each node in the distribution network to obtain a missing detection result, and judging whether to complete the node information according to the missing detection result includes: performing statistical feature analysis on the historical operating data of each node in the distribution network to obtain the statistical features of the historical data, and comparing the statistical features with the operating data of each node to obtain a statistical feature deviation result; according to the statistical feature deviation result, performing anomaly detection on the operating data of each node in the distribution network using a trained deep learning model to obtain a deep learning model detection result, and judging whether there is data missing according to the deep learning model detection result to obtain a data missing judgment result; if so, acquiring and comparing the redundant data sources of each node in the distribution network to obtain a redundant data comparison result, and judging whether there is data missing according to the redundant data comparison result. The method comprises the following steps: verifying the data missing judgment result by comparing the comparison result with the remaining data, and determining the nodes that need to be supplemented; preprocessing the operation data of each node in the distribution network, and performing timestamp check processing on the preprocessed operation data to obtain a timestamp continuity detection result; performing data integrity check processing on the operation data of each node in the distribution network according to the timestamp continuity detection result to obtain a data integrity check result, and comparing the data integrity check result with a preset verification rule to obtain a data missing judgment result; performing data range and validity check processing on the data missing judgment result to obtain a data range detection result and a validity verification result, and judging the cause of the data missing according to the data range detection result and the validity verification result; judging whether to perform the node information supplement processing according to the node that needs to be supplemented and the cause of the data missing.

[0068] Specifically, first, the historical data characteristics of each node in the distribution network are obtained by performing statistical feature analysis on the historical operation data of each node in the distribution network. , its historical voltage data set is , we can calculate the mean of these data and standard deviation To obtain the statistical characteristics of the node. The specific formula is as follows:

[0069] ;

[0070] ;

[0071] Through these calculations, the monitoring of the distribution network can obtain the node The voltage mean and standard deviation of the current node can be calculated to determine the normal range of its operating data. Similarly, the monitoring of the distribution network can calculate the statistical characteristics of other operating parameters such as current, power and frequency. The running data of the system is compared with its historical statistical characteristics. For example, at the current moment Voltage data By comparing with the mean and standard deviation, the statistical characteristic deviation results can be calculated as follows:

[0072] ;

[0073] here, Representation Node In time The voltage deviation, Is a node In time Voltage data, Is a node The historical voltage average, Is a node The standard deviation of the historical voltage.

[0074] Then, according to the statistical feature deviation results, the node's operating data is input into the trained deep learning model for anomaly detection. Assume that the long short-term memory network (LSTM) model is used for detection, which can capture the temporal characteristics of time series data. The input of the model is the node's operating data sequence, and the output is the anomaly score. The calculation formula of the anomaly score is:

[0075]

[0076] in, Represents a time window arrive Node operating data. Is a node In time When the deep learning model detection results show that there is data missing, the redundant data sources of each node in the distribution network are acquired and compared. The redundant data sources can include data from other sensors or data from adjacent nodes. The comparison can be achieved by calculating the difference between the redundant data and the current data. The formula is as follows:

[0077]

[0078] in, Indicates the difference between redundant data and current data, Are redundant data sources in time data, Is a node In time Then, the operation data of each node in the distribution network is preprocessed, including data cleaning and formatting. After the preprocessing is completed, the preprocessed data is timestamped to ensure the continuity of the timestamp of the data. According to the timestamp continuity test results, the operation data is checked for data integrity to ensure that there is no data loss. The data integrity check is performed by comparing with the preset verification rules, and the verification rules can be the statistical feature range of the node operation data. Finally, the data range and validity check are performed on the data missing judgment results to ensure that the data is within a reasonable range and verify its validity. By checking the data range and validity, the cause of the data missing can be determined.

[0079] 103. If yes, input the operation data of each node in the distribution network into a preset information completion model for completion processing to obtain completed node information;

[0080] In one embodiment of the present invention, the inputting the operating data of each node in the distribution network into a preset information completion model for completion processing to obtain the completed node information includes: preprocessing the operating data of each node in the distribution network to generate a mask vector, and combining the mask vector with the operating data once to obtain a first input feature vector; inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through a first diagonal mask self-attention mechanism branch in the information completion model to obtain first completed output data; performing secondary combination processing on the first completed output data and the mask vector to obtain a second input feature vector, and performing feature extraction processing on the second input feature vector through a second diagonal mask self-attention mechanism branch in the information completion model to obtain second completed output data; weighting the first completed output data and the second completed output data to obtain weighted completed data, and generating final completed output data according to the weighted completed data; updating the nodes that need to be completed in the operating data of each node in the distribution network according to the final completed output data to obtain completed node information.

[0081] Specifically, first, the operation data of each node in the distribution network is preprocessed. The preprocessing includes data cleaning, normalization and denoising operations to ensure the quality of input data and generate mask vectors. The operating data is , these data need to be preprocessed to generate mask vectors ,in , each Used to indicate whether the corresponding data is missing. If missing, ,otherwise Next, the mask vector is combined with the running data to obtain the first input feature vector. Input the preset information completion model, perform feature extraction processing on it through the first diagonal mask self-attention mechanism branch in the information completion model, and obtain the first complement output data. The core of the self-attention mechanism is to extract important features by calculating the relationship between the elements in the input feature vector. The second input feature vector is similar, and the second complement output data is obtained through the above processing. Subsequently, the first complement output data and the second complement output data are weighted to obtain more accurate complement data. The process of generating the final complement output data according to the weighted complement data is realized by a nonlinear activation function (such as ReLU), and the weighted complement data is activated to generate the final complement output data. Finally, according to the final complement output data, the nodes that need to be complemented in the operating data of each node in the distribution network are updated to obtain the complement node information.

[0082] Furthermore, the step of inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through the first diagonal mask self-attention mechanism branch in the information completion model, and obtaining the first completed output data includes: inputting the first input feature vector into a preset information completion model, performing mapping processing on the first input feature vector into a query vector, a key vector and a value vector, and obtaining a query vector, a key vector and a value vector; calculating the scaled dot product attention score according to the query vector and the key vector to obtain an attention map; setting the diagonal elements of the attention map to negative infinity through the diagonal mask mechanism in the first diagonal mask self-attention mechanism branch to obtain a masked attention map; performing softmax processing on the masked attention map to obtain an attention weight, and applying the attention weight to the value vector to obtain a weighted value vector; performing position encoding processing on the weighted value vector to obtain a weighted value vector with position encoding; performing fully connected feedforward network processing on the weighted value vector with position encoding to obtain the first completed output data.

[0083] Specifically, first, the first input feature vector is input into a preset information completion model, and the first input feature vector is mapped to a query vector, a key vector, and a value vector. Assume that the first input feature vector is , the query vector is obtained through linear transformation , key vector Sum value vector The specific formula is as follows:

[0084] ;

[0085] ;

[0086] ;

[0087] in, , and are the weight matrices of the query vector, key vector, and value vector, respectively. , and They are query vector, key vector and value vector respectively. Next, we calculate the scaled dot product attention score based on the query vector and key vector to get the attention map. The calculation formula is as follows:

[0088] ;

[0089] in, represents the attention map, is the dimension of the key vector. This formula calculates the dot product of the query vector and the key vector and scales it to get the attention score. Next, the diagonal elements of the attention map are set to negative infinity through the diagonal mask mechanism in the first diagonal mask self-attention mechanism branch to get the masked attention map. The specific steps are to convert the attention map The diagonal elements in are set to negative infinity, which prevents the self-attention mechanism from paying attention to itself during calculation, thereby forcing the model to pay attention to other elements. Then, the masked attention map is softmaxed to obtain the attention weights, and the attention weights are applied to the value vector to obtain the weighted value vector. Next, the weighted value vector is positionally encoded to obtain a weighted value vector with position encoding. The purpose of position encoding is to retain the position information in the sequence, and the position encoding is added to the weighted value vector to obtain a weighted value vector with position encoding. Finally, the weighted value vector with position encoding is processed by a fully connected feedforward network to obtain the first completed output data. The fully connected feedforward network includes two linear transformations and a nonlinear activation function, such as ReLU.

[0090] 104. Calculate the attack score of each node in the distribution network according to the topological structure and the completed node information, and take the node with the attack score higher than the preset threshold as the target node;

[0091] In one embodiment of the present invention, the calculation of the attack score of each node in the distribution network according to the topological structure and the completed node information includes: generating a node feature vector of the corresponding node according to the completed node information, and inputting the node feature vector and the topological structure into a preset graph attention network model; performing spatial correlation analysis on each node in the distribution network according to the topological structure and the node feature vector through the graph attention network model to obtain spatial correlation characteristics of each node; performing time series modeling on the spatial correlation characteristics to obtain a time series modeling result, and using a long short-term memory network to perform time correlation analysis on the time series modeling result to obtain the time series correlation characteristics of each node; inputting the time series correlation characteristics into a preset prediction model to perform prediction processing on the next time step of the corresponding node to obtain a prediction value sequence corresponding to each node; performing error analysis on the prediction value sequence of each node and the actual observation value sequence of the next time step through an autoencoder to obtain a preset error value of each node, and performing attack score calculation processing on the corresponding node according to the preset error value to obtain an attack score of each node.

[0092] Specifically, first, the node feature vector of the corresponding node is generated according to the completed node information. Assume that the completed node information of a node includes the voltage, current, power and other data of the node, which are converted into feature vectors. After the feature vector is generated, it is input into the preset graph attention network model together with the topological structure of the distribution network. The topological structure of the distribution network can be represented as an adjacency matrix, in which each element of the matrix represents the connection relationship between nodes. The graph attention network uses this information to capture the spatial correlation between nodes and extracts spatial features by calculating the relationship between node feature vectors. In the graph attention network model, each node feature vector generates a new feature vector by weighted summing with the feature vectors of its neighboring nodes. This weighting process is achieved by calculating the attention weights between nodes, which reflect the influence of each neighboring node on the target node. Through the processing of the graph attention network, new feature vectors of each node can be obtained, which contain spatial correlation information. Next, these spatial correlation features are modeled as time series. Assume that in the time series, the feature vectors of each node at different time points are input into the long short-term memory network (LSTM) to capture the temporal correlation. LSTM is a model that can effectively process time series data. It captures long-term dependency features by introducing memory units to store and update dependencies between time steps. Through LSTM processing, the time series features of each node at different time points can be obtained. Then, these time series features are input into the preset prediction model for prediction processing of the next time step. The prediction model can be a simple feedforward neural network used to predict the node state at the next time step. By inputting the time series features of the current time step, the prediction model will output the predicted value sequence of the next time step. After obtaining the predicted value sequence, the autoencoder is used to perform error analysis between the predicted value sequence and the actual observed value sequence of the next time step. The autoencoder consists of an encoder and a decoder. First, the predicted value sequence is converted into a low-dimensional representation by the encoder, and then reconstructed back to the original sequence by the decoder. By comparing the reconstructed sequence with the actual observed value sequence, the prediction error can be calculated. This error reflects the difference between the predicted value and the actual value, and is a key indicator for judging whether the node is attacked. Finally, the attack score of the node is calculated based on the prediction error. The attack score can be obtained by normalizing the prediction error to reflect the degree of abnormality of each node relative to the overall network. The higher the attack score, the greater the possibility that the node is attacked.

[0093] Furthermore, the graph attention network model performs spatial correlation analysis on each node in the distribution network according to the topological structure and the node feature vector to obtain the spatial correlation characteristics of each node, including: performing adjacency matrix processing on the topological structure through the graph attention network model to obtain an adjacency matrix representing the connection relationship of each node; generating a node feature matrix according to the completed node information, the node feature matrix including the feature vector of each node; inputting the adjacency matrix and the node feature matrix into the graph attention network model, performing graph convolution processing, and obtaining the initial embedding features of each node; performing attention mechanism processing on the initial embedding features, calculating the attention weights between each node and its neighboring nodes, and obtaining the attention weight matrix between nodes; performing weighted sum processing on the initial embedding features of each node according to the attention weight matrix to obtain the updated embedding features of each node; performing activation function processing on the updated embedding features to obtain the spatial correlation characteristics of each node.

[0094] Specifically, first, the topological structure is processed by the graph attention network model to obtain the adjacency matrix representing the connection relationship of each node. nodes, adjacency matrix is a The matrix of Representation Node and nodes If the node and nodes If there is a connection between If there is no connection, . This adjacency matrix reflects the topological structure of the distribution network. Next, the node feature matrix is ​​generated based on the completed node information. Assuming that the completed information of each node includes data such as voltage, current, and power, these data can be combined into a feature vector. Combining the feature vectors of all nodes, we get the node feature matrix ,in is a The matrix of is the dimension of each node feature vector. Each row Representation Node The adjacency matrix and the node feature matrix are then input into the graph attention network model for graph convolution. The purpose of graph convolution is to generate new node features through the feature vector of the node and the feature vector of its neighboring nodes. After obtaining the initial embedded features, these initial embedded features are processed by the attention mechanism. The purpose of the attention mechanism is to calculate the attention weights between each node and its neighboring nodes, thereby reflecting the influence of different neighboring nodes on the target node. After calculating the attention score, it is normalized by the softmax function to obtain the attention weight. Next, according to the attention weight matrix, the initial embedded features of each node are weighted summed to obtain the updated embedded features of each node. Finally, the updated embedded features are processed by the activation function to obtain the spatial correlation features of each node.

[0095] 105. Perform attack classification detection on the target node according to the operation data of the target node by using a preset post-detection method to obtain an attack detection result;

[0096] In one embodiment of the present invention, the specific post-detection method includes the steps of data preprocessing, feature extraction, classification model training and attack detection. First, determine the target node. This step depends on the attack score calculated in the previous step. Assume that the attack score of the node is , the preset threshold is .when When Mark as target node. Assuming there are several target nodes, the running data of these nodes are used for subsequent analysis. Then, feature extraction is performed. The purpose of feature extraction is to convert the preprocessed data into feature vectors for input into the classification model. Common feature extraction methods include principal component analysis (PCA), time-frequency analysis, and deep feature extraction. Next, the classification model is trained. The classification model is used to identify whether the target node is under attack. Common classification models include support vector machine (SVM), random forest (RF), neural network (NN), etc. After the model training is completed, the target node data after preprocessing and feature extraction is input into the classification model for attack detection. The attack classification results output by the model include attack type and attack probability. According to the output attack probability and the preset classification threshold, it can be further determined whether the target node is really under attack, as well as the specific type of attack.

[0097] 106. Obtain a response strategy corresponding to the attack detection result, and perform a circuit-breaking operation on the distribution network through the smart pole-mounted circuit breaker according to the response strategy.

[0098] In one embodiment of the present invention, first, the attack detection result is obtained. Through the preset post-detection method, the target node is subjected to attack classification detection to obtain the attack detection result. Assume that the detection result of a certain target node shows that it is attacked by a specific type of attack (such as a load tampering attack). At this time, it is necessary to formulate a corresponding response strategy based on the detection result. The attack detection result includes not only whether the node is attacked, but also the specific type of attack, the severity of the attack and other related information. Then, the response strategy is analyzed according to the attack detection result. The formulation of the response strategy needs to consider multiple factors, including the type of attack, the severity of the attack, the topological structure of the distribution network and the current operating status. Common response strategies include isolating the attacked node, adjusting power distribution, issuing an alarm and performing a circuit breaker operation. Assume that we have formulated a response strategy based on the severity of the attack. When the severity of the attack is detected to exceed the preset threshold, a circuit breaker operation needs to be performed to isolate the attacked node. Once it is determined that a circuit breaker operation needs to be performed, the specific operation needs to be performed through an intelligent pole-mounted circuit breaker. An intelligent pole-mounted circuit breaker is a device that can be remotely controlled and automatically operated, and can perform circuit breaking, closing and other control operations by receiving instructions. According to the response strategy, a circuit-breaking instruction is generated and sent to the corresponding intelligent pole-mounted circuit breaker through the communication network. After receiving the circuit-breaking instruction, the intelligent pole-mounted circuit breaker will perform the following operations: First, the circuit breaker will verify the validity of the instruction to ensure that the instruction has not been tampered with or damaged. Then, the circuit breaker will perform the circuit-breaking operation according to the instruction and cut off the power supply to the attacked node. By cutting off the attacked node, the spread of the attack can be effectively prevented and the normal operation of other parts of the distribution network can be protected.

[0099] In this embodiment, the node information in the distribution network is obtained through the intelligent pole-mounted circuit breaker, including the operating data of each node in the distribution network and the topological structure between each node. When it is detected that there is missing data in the distribution network, the missing data is completed by a preset information completion model. Based on the completed node information and topological structure, the attack score of each node is calculated, and the nodes with attack scores higher than the preset threshold are marked as target nodes. Attack classification detection is performed on the operating data of the target node to obtain the attack detection result, and the circuit breaker operation is performed through the intelligent pole-mounted circuit breaker according to the corresponding response strategy of the attack detection result. This method significantly improves the detection capability and accuracy of complex network attacks in the distribution network by performing effective completion processing in the case of missing data, combining topological structure and spatiotemporal correlation data.

[0100] The above describes the monitoring method of the distribution network in the embodiment of the present invention. The following describes the monitoring device of the distribution network in the embodiment of the present invention. Figure 2 , an embodiment of a monitoring device for a distribution network in an embodiment of the present invention includes:

[0101] An information acquisition module 201 is used to acquire node information in the distribution network through the intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node;

[0102] The missing detection module 202 is used to perform data missing detection on the operation data of each node in the distribution network, obtain missing detection results, and determine whether to perform frame supplementation processing on the node information according to the missing detection results;

[0103] A completion module 203 is used for inputting the operation data of each node in the distribution network into a preset information frame completion model for frame completion processing to obtain completed node information;

[0104] An attack scoring module 204, configured to calculate an attack score of each node in the distribution network according to the topological structure and the completed node information, and to take nodes with attack scores higher than a preset threshold as target nodes;

[0105] The detection classification module 205 is used to perform attack classification detection on the target node according to the operation data of the target node through a preset post-detection method to obtain an attack detection result;

[0106] The circuit breaking module 206 is used to obtain a response strategy corresponding to the attack detection result, and to perform a circuit breaking operation on the distribution network according to the response strategy through the smart pole-mounted circuit breaker.

[0107] In an embodiment of the present invention, the monitoring device of the distribution network runs the above-mentioned distribution network monitoring method, and the monitoring device of the distribution network obtains the node information in the distribution network through the intelligent pole-mounted circuit breaker, including the operating data of each node in the distribution network and the topological structure between each node. When it is detected that there is missing data in the distribution network, the missing data is supplemented by a preset information completion model. Based on the completed node information and topological structure, the attack score of each node is calculated, and the node with an attack score higher than the preset threshold is marked as a target node. Attack classification detection is performed on the operating data of the target node to obtain the attack detection result, and according to the response strategy corresponding to the attack detection result, the circuit breaker is disconnected through the intelligent pole-mounted circuit breaker. This method significantly improves the detection capability and accuracy of complex network attacks in the distribution network by performing effective completion processing in the case of missing data, combining topological structure and spatiotemporal correlation data.

[0108] above Figure 2 The monitoring device of the distribution network in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The monitoring device of the distribution network in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0109] Figure 3 : is a structural diagram of a monitoring device for a distribution network provided by an embodiment of the present invention. The monitoring device 300 for the distribution network may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 may be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the monitoring device 300 for the distribution network. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the monitoring device 300 for the distribution network to implement the steps of the above-mentioned distribution network monitoring method.

[0110] The monitoring device 300 of the power distribution network may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 3 The structure of the monitoring device for the distribution network shown does not constitute a limitation on the monitoring device for the distribution network provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0111] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the distribution network monitoring method.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0113] 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 is essentially or the part that contributes to the prior art or the whole 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 to enable 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, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0114] As described above, 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 thereof 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 monitoring a distribution network, characterized in that: The monitoring method of the distribution network comprises: Acquiring node information in the distribution network through the intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node; Performing data missing detection on the operating data of each node in the distribution network to obtain missing detection results, and determining whether to perform completion processing on the node information according to the missing detection results; If yes, the operation data of each node in the distribution network is input into a preset information completion model for completion processing to obtain completed node information; Generate a node feature vector of the corresponding node according to the completed node information, and input the node feature vector and the topological structure into a preset graph attention network model; perform adjacency matrix processing on the topological structure through the graph attention network model to obtain an adjacency matrix representing the connection relationship of each node; generate a node feature matrix according to the completed node information, and the node feature matrix includes the feature vector of each node; input the adjacency matrix and the node feature matrix into the graph attention network model, perform graph convolution processing, and obtain the initial embedding features of each node; perform attention mechanism processing on the initial embedding features, calculate the attention weights between each node and its neighboring nodes, and obtain the attention weight matrix between nodes; perform weighted sum processing on the initial embedding features of each node according to the attention weight matrix, and obtain the weight matrix of each node. The updated embedding features of the points are processed by an activation function to obtain the spatial correlation features of each node; the spatial correlation features are modeled in a time series to obtain a time series modeling result, and the time series modeling result is analyzed in a time correlation manner using a long short-term memory network to obtain the time series correlation features of each node; the time series correlation features are input into a preset prediction model to perform a prediction process on the next time step of the corresponding node to obtain a prediction value sequence corresponding to each node; an error analysis is performed on the prediction value sequence of each node and the actual observation value sequence of the next time step by an autoencoder to obtain a preset error value for each node, and an attack score calculation process is performed on the corresponding node according to the preset error value to obtain an attack score for each node, and nodes with attack scores higher than a preset threshold are taken as target nodes; Performing attack classification detection on the target node according to the operation data of the target node through a preset post-detection method to obtain an attack detection result; A response strategy corresponding to the attack detection result is obtained, and a circuit-breaking operation is performed on the distribution network through the smart pole-mounted circuit breaker according to the response strategy.

2. The method for monitoring a power distribution network according to claim 1, characterized in that: The performing data missing detection on the operation data of each node in the distribution network to obtain missing detection results, and judging whether to perform the node information completion processing according to the missing detection results includes: Performing statistical characteristic analysis on the historical operating data of each node in the distribution network to obtain statistical characteristics of the historical data, and comparing the statistical characteristics with the operating data of each node to obtain statistical characteristic deviation results; According to the statistical feature deviation result, using the trained deep learning model to perform abnormality detection processing on the operating data of each node in the distribution network to obtain a deep learning model detection result, and judging whether there is data missing according to the deep learning model detection result to obtain a data missing judgment result; If yes, the redundant data sources of each node in the distribution network are acquired and compared to obtain redundant data comparison results, and the data missing determination results are verified according to the redundant data comparison results, and the nodes that need to be supplemented are determined; Preprocessing the operation data of each node in the distribution network, and performing timestamp check processing on the preprocessed operation data to obtain a timestamp continuity detection result; Performing data integrity verification processing on the operation data of each node in the distribution network according to the timestamp continuity detection result to obtain a data integrity verification result, and comparing the data integrity verification result with a preset verification rule to obtain a data missing determination result; Performing data range and validity check processing on the data missing determination result to obtain a data range detection result and a validity verification result, and determining the cause of the data missing according to the data range detection result and the validity verification result; Whether to complete the node information is determined based on the node that needs to be completed and the reason for the missing data.

3. The method for monitoring a power distribution network according to claim 2, characterized in that: The inputting the operation data of each node in the distribution network into a preset information completion model for completion processing to obtain the completed node information includes: Preprocessing the operation data of each node in the distribution network to generate a mask vector, and combining the mask vector with the operation data to obtain a first input feature vector; Inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through a first diagonal mask self-attention mechanism branch in the information completion model, and obtaining first completed output data; Performing a secondary combination process on the first completed output data and the mask vector to obtain a second input feature vector, and performing feature extraction processing on the second input feature vector through a second diagonal mask self-attention mechanism branch in the information completion model to obtain second completed output data; Performing weighted processing on the first complement output data and the second complement output data to obtain weighted complement data, and generating final complement output data according to the weighted complement data; According to the final completed output data, the nodes that need to be completed in the operation data of each node in the distribution network are updated to obtain completed node information.

4. The method for monitoring a power distribution network according to claim 3, characterized in that: The step of inputting the first input feature vector into a preset information completion model, performing feature extraction processing on the first input feature vector through a first diagonal mask self-attention mechanism branch in the information completion model, and obtaining first completion output data includes: Inputting the first input feature vector into a preset information completion model, performing mapping processing of a query vector, a key vector and a value vector on the first input feature vector to obtain a query vector, a key vector and a value vector; Calculate a scaled dot product attention score based on the query vector and the key vector to obtain an attention map; Setting the diagonal elements of the attention map to negative infinity through the diagonal mask mechanism in the first diagonal mask self-attention mechanism branch to obtain a masked attention map; Performing softmax processing on the masked attention map to obtain attention weights, and applying the attention weights to the value vector to obtain a weighted value vector; Performing position coding processing on the weighted value vector to obtain a weighted value vector with position coding; The weighted value vector with position encoding is processed by a fully connected feedforward network to obtain first completed output data.

5. A monitoring device for a distribution network, characterized in that: The monitoring device of the distribution network comprises: An information acquisition module, used to acquire node information in the distribution network through the intelligent pole-mounted circuit breaker in the distribution network, wherein the node information includes operation data of each node in the distribution network and a topological structure between each node; A missing detection module is used to perform data missing detection on the operation data of each node in the distribution network, obtain missing detection results, and determine whether to perform frame supplement processing on the node information according to the missing detection results; A completion module, for inputting the operation data of each node in the distribution network into a preset information frame completion model for frame completion processing to obtain completed node information; The attack scoring module is used to generate a node feature vector of the corresponding node according to the completed node information, and input the node feature vector and the topological structure into a preset graph attention network model; perform adjacency matrix processing on the topological structure through the graph attention network model to obtain an adjacency matrix representing the connection relationship of each node; generate a node feature matrix according to the completed node information, and the node feature matrix includes the feature vector of each node; input the adjacency matrix and the node feature matrix into the graph attention network model, perform graph convolution processing, and obtain the initial embedded features of each node; perform attention mechanism processing on the initial embedded features, calculate the attention weight between each node and its neighboring nodes, and obtain the attention weight matrix between nodes; perform weighted sum processing on the initial embedded features of each node according to the attention weight matrix, Obtain updated embedded features of each node; perform activation function processing on the updated embedded features to obtain spatial correlation features of each node; perform time series modeling on the spatial correlation features to obtain time series modeling results, and use a long short-term memory network to perform time correlation analysis on the time series modeling results to obtain time series correlation features of each node; input the time series correlation features into a preset prediction model, perform prediction processing on the next time step of the corresponding node, and obtain a predicted value sequence corresponding to each node; perform error analysis on the predicted value sequence of each node and the actual observed value sequence of the next time step through an autoencoder to obtain a preset error value for each node, and perform attack score calculation processing on the corresponding node according to the preset error value to obtain an attack score for each node, and use nodes with attack scores higher than a preset threshold as target nodes; A detection classification module, used to perform attack classification detection on the target node according to the operation data of the target node through a preset post-detection method to obtain an attack detection result; The circuit breaker module is used to obtain a response strategy corresponding to the attack detection result, and to perform a circuit breaker operation on the distribution network according to the response strategy through the intelligent pole-mounted circuit breaker.

6. A monitoring device for a distribution network, characterized in that: The monitoring device of the power distribution network comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the monitoring device of the power distribution network to execute the steps of the monitoring method of the power distribution network as described in any one of claims 1-4.

7. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the method for monitoring the power distribution network as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Power distribution network state estimation method under PMU measurement data missing condition

    CN116361617A

  • Power grid attack detection model test method and device, equipment and storage medium

    CN117370914A

  • Power grid topology automatic identification and construction method and system

    CN118133068A

  • Method and system for detecting complex multi-step attack in electric power system

    US20240187446A1