A novel method for locating high-resistivity grounding faults in power distribution systems that adapts to topology changes

A new high-resistance ground fault location method for distribution systems that adapts to topology changes, using continuous wavelet transform and Graph Transformer model, solves the problems of high location accuracy and cost in the existing technology, and realizes system topology changes and fault scenarios. Efficient adaptation and accurate positioning.

CN118330386BActive Publication Date: 2024-10-18CHANGSHA UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410434769.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-11
Publication Date
2024-10-18
Estimated Expiration
2044-04-11

AI Technical Summary

Technical Problem

Existing high-resistance ground fault location methods are difficult to achieve accurate location in the face of distributed power access, system topology changes, and high transition resistance, and have high investment costs and low generalization capabilities.

Method used

A new high-resistance ground fault location method for distribution systems that is adaptive to topology changes is adopted. Panoramic waveform feature information is obtained through continuous wavelet transform. Combined with graph random walk and graph Laplacian change, a Graph Transformer model is constructed to achieve fault location.

Benefits of technology

It improves the adaptability to system topology changes and fault scenarios, reduces data dimensions and calculation costs, enhances the accuracy and generalization ability of fault location, and avoids the limitations of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118330386B_ABST
    Figure CN118330386B_ABST
Patent Text Reader

Abstract

The present invention discloses a novel topology change adaptive high-resistance grounding fault location method for a power distribution system, comprising: collecting fault traveling wave samples within a set time window after the fault, performing continuous wavelet transform on the samples to obtain panoramic waveform feature information; establishing a graph structure of the distribution network, obtaining a corresponding adjacency matrix, and obtaining node positions and structural coding information in the graph structure through graph random walk and graph Laplace change; splicing node positions, structural coding information and panoramic waveform feature information to obtain node features, inputting node features and edge features into the graph structure, and establishing a graph sample data set; constructing and training a Graph Transformer model, realizing high-resistance grounding fault location through a graph classification task, and obtaining a trained Graph Transformer model; and calling the trained Graph Transformer model to perform fault location on sample data to be detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of novel power distribution systems, and in particular to a novel high-resistance grounding fault locating method for a power distribution system that is adaptive to topology changes. Background Art

[0002] Based on the current research status of high-resistance grounding fault location methods at home and abroad, the existing high-resistance grounding fault location methods are divided into steady-state method, transient method and artificial intelligence method according to the differences in feature extraction and identification technology. The steady-state method mainly uses line parameters and steady-state signals such as node voltage and current at the time of the fault to calculate the impedance, power and other information of the fault line to determine the location of the fault point, such as the admittance method and the steady-state power direction method. The transient method is mainly represented by the traveling wave method, which determines the fault location by using the initial traveling wave or reflected traveling wave signal generated by the fault point. Most artificial intelligence algorithms use the fault data obtained in the simulation environment to train the model, learn the performance rules of the feature quantities in the simulation fault database through the model, and classify or regress the system operation status to achieve high-resistance grounding fault location. Artificial intelligence algorithms such as neural networks and fuzzy theory are applied in the field of high-resistance grounding fault location.

[0003] The traditional high-resistance grounding fault location method has the following problems:

[0004] 1. The steady-state method estimates impedance value, power direction and other information based on the voltage and current information of the measuring point to achieve positioning. However, due to the access of distributed power sources and other reasons, the traditional unidirectional radial network has been transformed into a two-terminal or multi-terminal active network, and the new distribution system has a flexible operation mode. Therefore, the system flow distribution is complex and the steady-state method is difficult to adapt. In addition, the voltage and current characteristic quantities used depend on the system operation status and fault scenario. The voltage and current characteristic quantities will decay rapidly with the increase of transition resistance, so that when the transition resistance is high to a certain value, the characteristic quantities are difficult to accurately extract due to PT, CT and analog-to-digital conversion errors, making it difficult for the steady-state method to achieve accurate positioning.

[0005] 2. The main representative of transient methods, the traveling wave method, uses the transient characteristics of the fault traveling wave at the moment of the fault to locate the fault. It has good robustness to the system operation mode, fault type and transition resistance. However, the high-frequency transient characteristics of the fault traveling wave of the high-resistance fault will gradually decay as the transition resistance increases, and the transmission speed of the fault traveling wave is close to the speed of light. It is difficult for existing equipment to accurately capture the wave head information. Therefore, methods based on the high-frequency information or wave head information of the traveling wave are prone to failure. In addition, both the single-end traveling wave and the double-end traveling wave positioning method require the installation of traveling wave acquisition devices at more locations in the distribution network, which has a large investment cost and limits the practicality of the algorithm.

[0006] 3. The artificial intelligence method is based on simulation data and uses different algorithms to associate the fault location with sample features. However, the algorithm design takes into account the topological changes in the actual distribution network, the sparse distribution of signal measurement equipment, and the diverse high-resistance grounding fault scenarios. Therefore, the existing high-resistance grounding fault location method based on artificial intelligence model has low generalization ability in dealing with changes in network topology and fault scenarios. Summary of the invention

[0007] In view of this, the present invention provides a novel distribution system high-resistance grounding fault location method that is adaptive to topology changes, so as to at least solve the limitation problem of location based on node-level classification tasks in the prior art.

[0008] In order to achieve the above object, the present invention adopts the following technical solution:

[0009] The novel topology change adaptive high-resistance grounding fault location method for power distribution system comprises the following steps:

[0010] S1. Collect fault traveling wave samples within a set time window after the fault, and perform continuous wavelet transform on the fault traveling wave samples to obtain panoramic waveform feature information;

[0011] S2. According to the topological structure of the distribution network, with the busbar or feeder as the node and the distribution line between the busbar or feeder as the edge, the graph structure of the distribution network is established, the corresponding adjacency matrix is ​​obtained, and the node position and structure coding information in the graph structure are obtained through graph random walk and graph Laplace transformation; the node position, structure coding information and panoramic waveform feature information are spliced ​​to obtain the node features, the node features and edge features are input into the graph structure, and the graph sample data set is established;

[0012] S3. Build and train a Graph Transformer model in the offline stage, locate high-resistance grounding faults through graph classification tasks, and obtain a trained Graph Transformer model;

[0013] S4. In the online stage, the trained Graph Transformer model is called to locate faults in the sample data to be tested.

[0014] Preferably, the specific content of the panoramic waveform feature information obtained by continuous wavelet transform includes:

[0015] The collected traveling wave data is subjected to continuous wavelet transformation to draw the time-frequency waveform of the voltage traveling wave signal, and the time-frequency waveform is the panoramic waveform of the traveling wave;

[0016] The traveling wave panoramic waveform is input into the autoencoder neural network, where the autoencoder neural network model is:

[0017]

[0018] In the formula, σ represents the sigmoid activation function, X represents the input sample, represents the reconstructed sample, Z is the hidden layer output, L MSE represents the use of the mean square error loss function, W1 and W2 are weight matrices, b1 and b2 are bias terms, X and The dimensions are a×b, X ij and Represents the element in the i-th row and j-th column of the matrix;

[0019] The hidden layer information Z is extracted as the panoramic waveform feature information.

[0020] Preferably, the specific content of S2 includes:

[0021] Get the adjacency matrix A and degree matrix D of the graph, and calculate the random walk matrix M:

[0022] M=D -1 A(2)

[0023] Among them, each element M of the random walk matrix M ij Represents the probability of node i going to node j in one step in a simple random walk;

[0024] Sum the off-diagonal rows of the m-step random walk matrix to get w m :

[0025]

[0026] in, To take the diagonal of the m-step random walk matrix:

[0027]

[0028] w m and Contains the local position and structure information of node i, where the value of m is selected according to the size of the graph topology;

[0029] Calculate the graph Laplacian matrix L based on the adjacency matrix A and degree matrix D sym :

[0030]

[0031] Where I is the identity matrix;

[0032] Calculate L sym Eigenvalue λ k and the corresponding eigenvector φ k, obtain non-zero eigenvalues, and concatenate the eigenvectors corresponding to the non-zero eigenvalues ​​into a matrix H. Each row of the matrix H corresponds to the representation of a node in the feature space, capturing the position information of the node in the global space;

[0033] Find the eigenvector φ k Gradient As the relative position information of the node; the Boolean value of whether it belongs to the same substructure is used as the relative structure information, wherein the cosine similarity of the panoramic waveform feature information of the two nodes is calculated to determine whether they belong to the same substructure. When the similarity is less than the preset threshold, the Boolean value is False, and when the similarity is greater than the preset threshold, the Boolean value is True;

[0034] For w m , φ k , and λ k Perform batch normalization and transform the panoramic waveform feature information Z, w m , φ k and λ k Perform splicing to obtain node features x including node position and structure information and panoramic waveform feature information;

[0035] Will The relative structure information and edge feature information are spliced ​​to obtain the edge feature e;

[0036] The node features and edge features are input into the graph to establish a graph sample data set; the panoramic waveform features of the busbar or feeder without measurement equipment are set to 0, and the w corresponding to the no measurement equipment is m , φ k and λ k The node characteristics of the feeder node without measurement equipment are obtained by splicing.

[0037] Preferably, the specific contents of constructing the Graph Transformer model in S3 include:

[0038] Build the upstream information processing part and the downstream graph classification task part as the Graph Transformer model;

[0039] The upstream information processing part includes f Graph Transformer layers connected in sequence, and each Graph Transformer layer includes a graph neural network with a residual gated graph convolutional network layer as the main structure and a Transformer attention mechanism module;

[0040] The downstream graph classification task is used to read out the node feature and edge feature information using the average value method, and obtain a unified graph representation by splicing. i , calculate the graph representation T i is the probability of each category,

[0041] The sum of probabilities is 1, and the category with the largest output probability is represented by the graph T i Category.

[0042] Preferably, the specific contents of the graph neural network with the residual gated graph convolutional network layer as the main structure include:

[0043] The node features and edge features output from the lth Graph Transformer layer are used as the input of the l+1th graph neural network:

[0044]

[0045]

[0046] In the formula, ReLU represents the use of ReLU activation function, and BN represents batch normalization. and Represent the node feature vectors of node i in the lth layer and the l+1th layer respectively, and Represent the edge feature vectors between nodes i and j in the lth layer and the l+1th layer, respectively. is the attention weight of node j to node i, is the self-attention weight of node i, and Calculated by the Transformer attention mechanism module, U l 、V l is the weight parameter to be learned in the lth layer, ⊙ represents the Hadamard product operation, j→i represents the neighboring node j of node i, η ij and It is the gating mechanism in the update of node features and edge features, which controls the feature propagation in nodes and edges; σ represents the sigmoid activation function, is the node feature of node j, X l , Y l , Z l , A l and B l is the weight parameter that needs to be learned in layer l.

[0047] Preferably, the Transformer attention mechanism module specifically includes: a multi-head self-attention structure and a feedforward neural network;

[0048] In the multi-head self-attention structure, each node feature vector x i As a row, all node feature vectors are arranged in sequence to form the input feature matrix X. After X undergoes three different linear transformations, the query matrix Q, key matrix K, and value matrix V are obtained respectively:

[0049]

[0050] Where W Q , W K , W V is a linear transformation matrix, and the linear transformation matrix elements are determined through training and learning;

[0051] Calculate single-head attention h based on Q, K and V eadi and the final attention output M ultihead (X):

[0052]

[0053] Where d K is the number of columns of the Q and K matrices, C oncat (·) represents the concatenation operation, W is the weight matrix learned through training, and B is the bias matrix learned through learning;

[0054] After the operation process of formula (9), the output of the multi-head self-attention structure adopts residual connection and layer normalization, and after residual connection and layer normalization, the output X' is input into the feedforward neural network;

[0055] The feedforward neural network consists of two fully connected layers, each of which linearly maps the input vector. The hidden layer in the middle is activated by the ReLU function. The feedforward neural network is:

[0056] F FN (X')=max(0,X'W3+b3)W4+b4 (10)

[0057] Where W3 and W4 are weight matrices, b3 and b4 are bias terms;

[0058] The output of the feedforward neural network also uses residual connections and layer normalization, where layer normalization specifically includes:

[0059]

[0060] Where T is the feature vector X i dimension; μ is the mean; S is the standard deviation; X i represents the i-th dimension of the input feature vector; α and β are learnable model parameters, which are updated through backpropagation; ε is a decimal set to prevent division by 0;

[0061] Through the layer normalization operation and FFN (X') to calculate the output matrix X of the Transformer module output :

[0062]

[0063] Where L N Representation layer normalization operation.

[0064] Preferably, the specific content of the downstream graph classification task part is:

[0065]

[0066] Where N i 、M i For Figure T i The number of nodes and edges, T i is the i-th graph representation in the dataset, r ix 、r ie Representation graph T i The read node and edge feature information, p and q represent the p-th node and q-th edge; the loss function of the model is as follows:

[0067]

[0068] Where N is the number of samples, E is the number of categories, and y i,e is the true label of the e-th category of the i-th sample, p i,e is the model's predicted probability of the e-th category for the i-th sample.

[0069] Preferably, the specific content of S4 includes:

[0070] The offline trained Graph Transformer model is called to obtain panoramic waveform feature information of the fault traveling wave samples to be detected through continuous wavelet transform. Then, a graph structure is established for the distribution network to be detected to obtain the node position and structure coding information. The panoramic waveform feature information, node position, and structure coding information are spliced ​​to obtain the corresponding node features. The obtained node features and edge features are input into the graph structure, and a graph sample data set corresponding to the fault traveling wave samples to be detected is established and input into the trained Graph Transformer model for classification. The location of the high-resistance grounding fault is determined according to the graph category.

[0071] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a novel high-resistance grounding fault location method for a power distribution system with topology change self-adaptation, which has the following beneficial effects:

[0072] 1. The present invention utilizes continuous wavelet transformation to perform time-frequency conversion on the fault traveling wave data within the selected time window, and obtains a traveling wave panoramic waveform representation containing rich fault characteristic information, which effectively avoids the practical application difficulties of the traditional steady-state method due to the system operation mode and high transition resistance value, solves the dependence of the traveling wave method based on transient information on high-precision wave head information, and uses an automatic encoder to extract the abstract features of the panoramic waveform to reduce the data dimension, effectively reducing the data storage and calculation costs, and improving the method's adaptability to actual distribution network fault conditions.

[0073] 2. The present invention proposes a GraphTransformer high-resistance grounding fault location model that combines a graph neural network with a Transformer global attention mechanism. By mining the correlation between panoramic waveform time-frequency fault characteristics, network topology information and fault location, the fault location is realized, and it has strong adaptability to topology changes and different fault scenarios. The addition of the Transformer global attention mechanism avoids the limitation of traditional graph neural networks that only consider adjacent nodes, and effectively combines the sparsity of the actual measurement point distribution.

[0074] 3. In order to solve the problem of graph structure information and node position information loss caused by the combination of graph neural network and Transformer global attention mechanism, this paper proposes a coding scheme based on graph random walk and graph Laplacian, which enhances the model's ability to express graph structure and node position information from three perspectives: local, global and relative. Finally, the fault location is determined based on the graph-level classification task, avoiding the limitations of the existing method based on node-level classification task positioning, effectively utilizing the fault information of all measurement points, and improving the positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0076] Figure 1 The Graph Transformer layer structure diagram provided by the present invention;

[0077] Figure 2 The structure diagram of the Transformer attention mechanism module provided by the present invention;

[0078] Figure 3 A result comparison line chart provided in an embodiment of the present invention;

[0079] Figure 4A schematic diagram of an IEEE 33 node topology network provided in an embodiment of the present invention;

[0080] Figure 5 A line graph of the result of detecting known topological data provided in an embodiment of the present invention;

[0081] Figure 6 A histogram of the results of detecting unknown topology data provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0083] The present invention provides a novel topology change adaptive high-resistance grounding fault location method for a power distribution system, comprising the following steps:

[0084] S1. Collect fault traveling wave samples within a set time window after the fault, and perform continuous wavelet transform on the fault traveling wave samples to obtain panoramic waveform feature information;

[0085] S2. According to the topological structure of the distribution network, with the busbar or feeder as the node and the distribution line between the busbar or feeder as the edge, the graph structure of the distribution network is established, the corresponding adjacency matrix is ​​obtained, and the node position and structure coding information in the graph structure are obtained through graph random walk and graph Laplace transformation; the node position, structure coding information and panoramic waveform feature information are spliced ​​to obtain the node features, the node features and edge features are input into the graph structure, and the graph sample data set is established;

[0086] S3. Build and train a Graph Transformer model in the offline stage, locate high-resistance grounding faults through graph classification tasks, and obtain a trained Graph Transformer model;

[0087] S4. In the online stage, the trained Graph Transformer model is called to locate faults in the sample data to be tested.

[0088] In order to further implement the above technical solution, the specific content of the panoramic waveform feature information obtained by continuous wavelet transform includes:

[0089] The collected traveling wave data is subjected to continuous wavelet transformation to draw the time-frequency waveform of the voltage traveling wave signal, and the time-frequency waveform is the panoramic waveform of the traveling wave;

[0090] The traveling wave panoramic waveform is input into the autoencoder neural network, where the autoencoder neural network model is:

[0091]

[0092] In the formula, σ represents the sigmoid activation function, X represents the input sample, represents the reconstructed sample, Z is the hidden layer output, L MSE represents the use of the mean square error loss function, W1 and W2 are weight matrices, b1 and b2 are bias terms, X and The dimensions are a×b, X ij and Represents the element in the i-th row and j-th column of the matrix;

[0093] The hidden layer information Z is extracted as the panoramic waveform feature information.

[0094] It should be noted that:

[0095] In this embodiment, the fault traveling wave data within a 100 μs time window after the fault is intercepted, and it can be adjusted as needed in the actual working process.

[0096] The automatic encoder in this embodiment uses the Adam optimizer to update the parameters in the network, and the learning rate is l r Set to 0.001.

[0097] In order to further implement the above technical solution, the specific contents of S2 include:

[0098] Get the adjacency matrix A and degree matrix D of the graph, and calculate the random walk matrix M:

[0099] M=D -1 A (2)

[0100] Among them, each element M of the random walk matrix M ij Represents the probability of node i going to node j in one step in a simple random walk;

[0101] Sum the off-diagonal rows of the m-step random walk matrix to get w m :

[0102]

[0103] in, To take the diagonal of the m-step random walk matrix:

[0104]

[0105] w m and Contains the local position and structure information of node i, where the value of m is selected according to the size of the graph topology;

[0106] Calculate the graph Laplacian matrix L based on the adjacency matrix A and degree matrix D sym :

[0107]

[0108] Where I is the identity matrix;

[0109] Calculate L sym Eigenvalue λ k and the corresponding eigenvector φ k , obtain non-zero eigenvalues, and concatenate the eigenvectors corresponding to the non-zero eigenvalues ​​into a matrix H. Each row of the matrix H corresponds to the representation of a node in the feature space, capturing the position information of the node in the global space;

[0110] Find the eigenvector φ k Gradient As the relative position information of the node; the Boolean value of whether it belongs to the same substructure is used as the relative structure information, wherein the cosine similarity of the panoramic waveform feature information of the two nodes is calculated to determine whether they belong to the same substructure. When the similarity is less than the preset threshold, the Boolean value is False, and when the similarity is greater than the preset threshold, the Boolean value is True;

[0111] For w m , φ k , and λ k Perform batch normalization and transform the panoramic waveform feature information Z, w m , φ k and λ k Perform splicing to obtain node features x including node position and structure information and panoramic waveform feature information;

[0112] Will The relative structure information and edge feature information are spliced ​​to obtain the edge feature e;

[0113] The node features and edge features are input into the graph to establish a graph sample data set; the panoramic waveform features of the busbar or feeder without measurement equipment are set to 0, and the w corresponding to the no measurement equipment is m , φ k and λ k The node characteristics of the feeder node without measurement equipment are obtained by splicing.

[0114] It should be noted that:

[0115] wm and Contains the local location and structural information of the node. The value of m needs to be selected according to the size of the graph topology. The larger m is, the larger the local coverage is. Generally, it takes half of the longest path.

[0116] L sym The eigenvalue λ of the matrix k Contains global structural information about the connectivity and separation of the graph. k = 0, indicating that the graph is connected. For non-zero λ k , its size can be used to measure the separability of the graph, that is, the relative isolation of different parts of the graph.

[0117] In the nodes without measuring devices, since there is no traveling wave signal, the panoramic feature information is 0, but the topological information such as the location information and structural information of the nodes without measuring devices in the network can still help determine the fault location. In each layer of Graph Transformer, the node will be a non-zero feature after updating. In essence, the features are supplemented through training, and then this part of information is also included in the final graph classification task. If the nodes without measuring devices are not considered, the graph structure and the distribution network structure will not match, resulting in the loss of topological structure information, especially the heavy dependence of traveling waves on topological information. At the same time, this is also the defect of traditional graph neural networks that only consider the characteristics of neighborhood nodes and the node classification method for fault location. The global attention of Transformer can use the node information with fault signals to assist the nodes without signals.

[0118] In this embodiment, the preset threshold is set to 0.8. In actual use, the value is set as needed.

[0119] To further implement the above technical solution, the specific contents of building the Graph Transformer model in S3 include:

[0120] Build the upstream information processing part and the downstream graph classification task part as the Graph Transformer model;

[0121] The upstream information processing part includes f Graph Transformer layers connected in sequence, such as Figure 1 As shown in the figure, each Graph Transformer layer includes a graph neural network with a residual gated graph convolutional network layer as the main structure and a Transformer attention mechanism module;

[0122] The downstream graph classification task is used to read out the node feature and edge feature information using the average value method, and obtain a unified graph representation by splicing. i , calculate the graph representation T iis the probability of each category,

[0123] The sum of probabilities is 1, and the category with the largest output probability is represented by the graph T i Category.

[0124] It should be noted that:

[0125] In this embodiment, the graph representation T is calculated by softmax i is the probability of each category.

[0126] In order to further implement the above technical solution, the specific contents of the graph neural network with the residual gated graph convolutional network layer as the main structure include:

[0127] The node features and edge features output from the lth Graph Transformer layer are used as the input of the l+1th graph neural network:

[0128]

[0129]

[0130] In the formula, ReLU represents the use of ReLU activation function, and BN represents batch normalization. and Represent the node feature vectors of node i in the lth layer and the l+1th layer respectively, and Represent the edge feature vectors between nodes i and j in the lth layer and the l+1th layer, respectively. is the attention weight of node j to node i, is the self-attention weight of node i, and Calculated by the Transformer attention mechanism module, U l 、V l is the weight parameter to be learned in the lth layer, ⊙ represents the Hadamard product operation, j→i represents the neighboring node j of node i, η ij and It is the gating mechanism in updating node features and edge features, which controls the feature propagation in nodes and edges to better adapt to the complex relationship between different graph structures and features and improve the representation and generalization capabilities of the model; σ represents the sigmoid activation function, is the node feature of node j, X l , Y l , Z l , A l and B l is the weight parameter that needs to be learned in layer l.

[0131] In order to further implement the above technical solution, Figure 2 As shown in the figure, the Transformer attention mechanism module specifically includes: multi-head self-attention structure and feedforward neural network;

[0132] In the multi-head self-attention structure, each node feature vector x i As a row, all node feature vectors are arranged in sequence to form the input feature matrix X. After X undergoes three different linear transformations, the query matrix Q, key matrix K, and value matrix V are obtained respectively:

[0133]

[0134] Where W Q , W K , W V is a linear transformation matrix, and the linear transformation matrix elements are determined through training and learning;

[0135] Calculate single-head attention h based on Q, K and V eadi and the final attention output M ultihead (X):

[0136]

[0137] Where d K is the number of columns of the Q and K matrices, C oncat (·) represents the concatenation operation, W is the weight matrix learned through training, and B is the bias matrix learned through learning;

[0138] After the operation process of formula (9), the output of the multi-head self-attention structure adopts residual connection and layer normalization, and after residual connection and layer normalization, the output X' is input into the feedforward neural network;

[0139] The feedforward neural network consists of two fully connected layers, each of which linearly maps the input vector. The hidden layer in the middle is activated by the ReLU function. The feedforward neural network is:

[0140] F FN (X')=max(0,X'W3+b3)W4+b4 (10)

[0141] Where W3 and W4 are weight matrices, b3 and b4 are bias terms;

[0142] The output of the feedforward neural network also uses residual connections and layer normalization, where layer normalization specifically includes:

[0143]

[0144] Where T is the feature vector X i dimension; μ is the mean; S is the standard deviation; X irepresents the i-th dimension of the input feature vector; α and β are learnable model parameters, which are updated through backpropagation; ε is a decimal set to prevent division by 0;

[0145] Through the layer normalization operation and F FN (X') to calculate the output matrix X of the Transformer module output :

[0146]

[0147] Where L N Representation layer normalization operation.

[0148] In order to further implement the above technical solution, the specific content of the downstream graph classification task is as follows:

[0149]

[0150] Where N i 、M i For Figure T i The number of nodes and edges, T i is the i-th graph representation in the dataset, r ix 、r ie Representation graph T i The read node and edge feature information, p and q represent the p-th node and q-th edge; the loss function of the model is as follows:

[0151]

[0152] Where N is the number of samples, E is the number of categories, and y i,e is the true label of the e-th category of the i-th sample, p i,e is the model's predicted probability of the e-th category for the i-th sample.

[0153] It should be noted that:

[0154] In this embodiment, the upstream network in this embodiment is composed of 10 Graph Transformer layers, and the structure of each layer is as follows: Figure 2 As shown in the figure, sum represents the sum operation, BN is the batch normalization operation, and the hidden layer of the feedforward neural network is 2 layers. The downstream graph classification task is divided into two steps. First, the node feature and edge feature information are read out using the average value method, and a unified graph representation is obtained by splicing. The calculation formula is shown in Formula 13; then, Softmax is used to calculate T i The probability of each class.

[0155] The dataset is divided into training set, test set and validation set in a ratio of 8:1:1. Each edge of the graph is numbered, and the number of the edge where the high-resistance grounding fault occurs is used as the graph label. The multi-classification cross entropy loss function is used for training, as shown in Formula 14. Finally, the AdamW optimization algorithm is used to train the model offline and save the trained model.

[0156] In order to further implement the above technical solution, the specific contents of S4 include:

[0157] The offline trained Graph Transformer model is called to obtain panoramic waveform feature information of the fault traveling wave samples to be detected through continuous wavelet transform. Then, a graph structure is established for the distribution network to be detected to obtain the node position and structure coding information. The panoramic waveform feature information, node position, and structure coding information are spliced ​​to obtain the corresponding node features. The obtained node features and edge features are input into the graph structure, and a graph sample data set corresponding to the fault traveling wave samples to be detected is established and input into the trained Graph Transformer model for classification. The location of the high-resistance grounding fault is determined according to the graph category.

[0158] The present invention uses continuous wavelet changes to convert the fault traveling wave data in the selected time window into time-frequency data, and obtains a panoramic waveform representation of the traveling wave containing rich fault feature information, which effectively avoids the difficulty of practical application of the traditional steady-state method due to the system operation mode and high transition resistance value, solves the problem of the dependence of the traveling wave method based on transient information on high-precision wave head information, and uses an automatic encoder to extract the abstract features of the panoramic waveform to reduce the data dimension, reduce data storage and calculation costs; the proposed Graph Transformer high-resistance grounding fault location model combining the graph neural network and the Transformer global attention mechanism realizes fault location by mining the correlation between the panoramic waveform time-frequency fault characteristics, network topology structure information and fault location, and improves the adaptability of the method to topology changes; using the coding scheme based on graph random walk and graph Laplace, the model's expression ability of graph structure and node location information is enhanced from three perspectives: local, global and relative. Finally, the fault location is determined based on the graph-level classification task, avoiding the limitations of the traditional node-level classification task and effectively utilizing the fault information of all measuring points.

[0159] The present invention will be further described below through simulation experiments:

[0160] In the same dataset containing 10 topological structures, 9 of them are used as training sets and validation sets, and the other one is used as a test set. The test set accuracy of the graph attention neural network and the graph transformer network model method is compared as follows: Figure 3 As shown. Figure 3It can be seen that the accuracy of the graph attention model for untrained topological data is maintained at about 0.88, and the accuracy of the Graph Transformer network model proposed in the present invention is maintained at about 0.98, which is nearly 10% higher than that of the graph attention model. It can be seen that the Graph Transformer network model proposed in the present invention has better adaptability to untrained topological structure data samples.

[0161] As Figure 4 Take the IEEE33 node network as an example, where node 1 is connected to the main grid substation, nodes 18, 22, 25 and 33 are connected to distributed power sources, and the dotted lines between nodes 8 and 21, 9 and 15, 12 and 22, 18 and 33, and 25 and 29 represent switchable distribution lines, which can be closed or cut off as needed. Traveling wave measurement devices are installed at nodes 3, 6, 9, 12, 15, 20 and 29, with a sampling rate of 1MHz.

[0162] Five topologies are considered: 1) Normal operating topology: the distribution lines between nodes 8 and 21, 9 and 15, 12 and 22, 18 and 33, and 25 and 29 are disconnected, and the distribution lines between other nodes are connected normally; 2) Faulty reconstruction: on the basis of the normal operating structure, the distribution lines between nodes 5 and 6, 9 and 10, 3 and 23, and 2 and 19 are disconnected respectively, and four faulty reconstruction topologies are obtained.

[0163] The number of graph random walk steps m is set to 16, the weight decay parameter in the AdamW optimization algorithm is set to 0.00001, and the learning rate is set to 0.0005. When all topological data are known, all topological structure data are randomly divided into training set, validation set and test set in a ratio of 8:1:1. The test set data curve of the Graph Transformer network model is as follows Figure 5 As shown in Figure 2, after 40 iterations, the positioning accuracy is stable at more than 99%. When detecting unknown topological structures, the topological structure data to be tested in the faulty reconstruction is put into the test set, and the remaining data is put into the training set and the validation set. The detection results are shown in Figure 2. Figure 6 As shown, the positioning accuracy is above 97%.

[0164] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 application, and should all be included in the protection scope of the present application.

Claims

1. A novel high-resistance grounding fault location method for power distribution system with topology change self-adaptation, characterized in that: The following steps are involved: S1. Collect fault traveling wave samples within a set time window after the fault, and perform continuous wavelet transform on the fault traveling wave samples to obtain panoramic waveform feature information; S2. According to the topological structure of the distribution network, the busbar or feeder is used as the node, and the distribution line between the busbar or feeder is used as the edge. The graph structure of the distribution network is established, and the corresponding adjacency matrix is ​​obtained. The node position and structure information in the graph structure are obtained through graph random walk and graph Laplace transformation; the node position, structure information and panoramic waveform feature information are spliced ​​to obtain the node features, and the node features and edge features are input into the graph structure to establish a graph sample data set; The specific contents of S2 include: Get the adjacency matrix of a graph Sum degree matrix , calculate the random walk matrix : (2) Among them, the random walk matrix Every element of Represents a node in a simple random walk One step to The probability of the node; right The non-diagonal elements of the random walk matrix are summed up to get : (3) in, To obtain The diagonal of the random walk matrix: (4) and Contains nodes The local position and structure information of The value is selected based on the size of the graph topology; According to the adjacency matrix Sum degree matrix Compute the graph Laplacian matrix : (5) in, is the identity matrix; calculate Eigenvalue and the corresponding eigenvector , obtain non-zero eigenvalues, and concatenate the eigenvectors corresponding to the non-zero eigenvalues ​​into a matrix ,matrix Each row of corresponds to the representation of a node in the feature space, capturing the node's global position information; Find the eigenvector Gradient As the relative position information of the node; the Boolean value of whether it belongs to the same substructure is used as the relative structure information, wherein the cosine similarity of the panoramic waveform feature information of the two nodes is calculated to determine whether they belong to the same substructure. When the similarity is less than the preset threshold, the Boolean value is False, and when the similarity is greater than the preset threshold, the Boolean value is True; right , , , and Perform batch normalization and convert the panoramic waveform feature information , , , and Splicing is performed to obtain node features including node position and structure information and panoramic waveform feature information ; Will , relative structure information and edge feature information are spliced ​​to obtain edge features ; The node features and edge features are input into the graph to establish a graph sample data set; the panoramic waveform features of the busbar or feeder without measurement equipment are set to 0, and the corresponding , , and Perform splicing to obtain the node characteristics of the feeder node without measurement equipment; S3. Build and train a Graph Transformer model in the offline stage, locate high-resistance grounding faults through graph classification tasks, and obtain a trained Graph Transformer model; S4. In the online stage, the trained Graph Transformer model is called to locate faults in the sample data to be tested.

2. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 1 is characterized in that: The specific contents of the panoramic waveform feature information obtained by continuous wavelet transform include: The collected traveling wave data is subjected to continuous wavelet transformation to draw the time-frequency waveform of the voltage traveling wave signal, and the time-frequency waveform is the panoramic waveform of the traveling wave; The traveling wave panoramic waveform is input into the autoencoder neural network, where the autoencoder neural network model is: (1) In the formula, represents the sigmoid activation function, represents the input sample, represents the reconstructed sample, is the hidden layer output, Represents the use of mean square error loss function, and is the weight matrix, and is the bias term, and The dimension is , and Represents the matrix Line Elements of a column; Extract hidden layer information As panoramic waveform feature information.

3. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 1 is characterized in that: The specific contents of building the Graph Transformer model in S3 include: Build the upstream information processing part and the downstream graph classification task part as the Graph Transformer model; Among them, the upstream information processing part includes Graph Transformer layers are connected in sequence, and each Graph Transformer layer includes a graph neural network with a residual gated graph convolutional network layer as the main structure and a Transformer attention mechanism module; The downstream graph classification task is used to read out the node feature and edge feature information using the average value method, and obtain a unified graph representation using the splicing method. , calculate the graph representation is the probability of each category, the total probability is 1, and the category with the largest output probability is represented by the graph Category.

4. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 3 is characterized in that: The specific contents of the graph neural network with the residual gated graph convolutional network layer as the main structure include: No. The node features and edge features output from the Graph Transformer layer are used as the Input of layer graph neural network: (6) (7) In the formula, ReLU represents the use of ReLU activation function. represents batch normalization, and Respectively represent Layer and Layer Node The node feature vector of and Respectively represent Layer and Layer Node With Node The edge eigenvector between for Node Pair The attention weight of the node, for The self-attention weight of the node, and Calculated by the Transformer attention mechanism module, , For the The weight parameters to be learned in the layer, represents the Hadamard product operation, Representation Node Neighboring nodes , and It is a gating mechanism in node feature and edge feature update to control feature propagation in nodes and edges; represents the sigmoid activation function, For Node The node characteristics of , , , and for The weight parameters that need to be learned in the layer.

5. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 3 is characterized in that: The Transformer attention mechanism module specifically includes: multi-head self-attention structure and feedforward neural network; In the multi-head self-attention structure, each node feature vector As a row, all node feature vectors are arranged in sequence to form the input feature matrix , After three different linear transformations, we get the query matrix , the bond matrix Sum Matrix : (8) In the formula , , is a linear transformation matrix, and the linear transformation matrix elements are determined through training and learning; according to , and Calculating single-head attention And the final attention output : (9) In the formula for and The number of columns in the matrix, Represents a splicing operation, is the weight matrix obtained by training, is the bias matrix obtained by learning; After the operation process of formula (9), the output of the multi-head self-attention structure adopts residual connection and layer normalization. After residual connection and layer normalization, the output Input feedforward neural network; The feedforward neural network consists of two fully connected layers, each of which linearly maps the input vector. The hidden layer in the middle is activated by the ReLU function. The feedforward neural network is: (10) In the formula , is the weight matrix, , is the bias term; The output of the feedforward neural network also uses residual connections and layer normalization, where layer normalization specifically includes: (11) In the formula is the feature vector Dimensions; is the mean; is the standard deviation; The first character vector of the input dimension; and are learnable model parameters, updated via backpropagation; A decimal number is set to prevent division by 0; Through layer normalization operations and To calculate the output matrix of the Transformer module X output : (12) In the formula Representation layer normalization operation.

6. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 3 is characterized in that: The specific content of the downstream graph classification task is as follows: (13) In the formula , For the picture The number of nodes and edges, For the data set The figure shows that , Representation diagram The read node and edge feature information, , Indicates Nodes and The loss function of the model is as follows: (14) In the formula is the sample size, is the number of categories, It is The sample The true label of the category, The model is The sample The predicted probability of the class.

7. The novel topology change adaptive high-resistance grounding fault location method for power distribution system according to claim 1 is characterized in that: The specific contents of S4 include: The offline trained Graph Transformer model is called to obtain panoramic waveform feature information of the fault traveling wave samples to be detected through continuous wavelet transform. Then, a graph structure is established for the distribution network to be detected to obtain the node position and structure information. The panoramic waveform feature information, node position and structure information are spliced ​​to obtain the corresponding node features. The obtained node features and edge features are input into the graph structure, and a graph sample data set corresponding to the fault traveling wave samples to be detected is established and input into the trained Graph Transformer model for classification. The location of the high-resistance grounding fault is determined according to the graph category.

Citation Information

Patent Citations

  • Method and device for positioning high-resistance grounding fault section of power distribution network and storage medium

    CN110542833A

  • High-resistance grounding fault detection method

    CN113759287A