1. Introduction
With the development of the Chinese economy, the power system is becoming increasingly large and complex. Modern energy systems are rapidly evolving toward AI-driven, digital, and integrated operations. As the intermediate link connecting the main power grid to end users, the safe and stable operation of distribution grids ensures the reliable functioning of the power system [
1,
2,
3]. With the continued growth of distributed generation (DG) such as photovoltaic (PV) systems, its large-scale integration into the grid can alter power-flow directions, transforming distribution networks from traditional single-source radial networks into multi-source networks with bidirectional power flows. As a result, the operating environment of distribution networks becomes more complex, placing higher demands on their safe and stable operation, as well as on operation and maintenance. However, under increasingly complex operating conditions, ensuring the safe operation of the underlying distribution network during faults is essential for supporting the advanced data-driven operation of modern energy systems. Rapid and accurate fault location in power systems is of great significance for shortening power outage durations, reducing economic losses, and improving service quality [
4,
5,
6].
Currently, distribution networks in China mostly employ a low-current grounding system with non-directly grounded neutral points [
7,
8]. In low-current grounding systems, single-phase ground faults take up approximately 80% of all faults. If not addressed immediately, such faults may escalate into more serious phase-to-phase short-circuit faults, which pose significant risks to the safe and stable operation of the power system [
9]. In traditional distribution network fault location methods, Zeng et al. [
10] used injected non-power-frequency characteristic current signals to establish amplitude comparison criteria between faulted and non-faulted sections and thus achieved fault location. However, its reliability is susceptible to high transition resistance. Wang et al. [
11] applied the continuous wavelet transform to aerial-mode traveling wave analysis and identified faulty branches by comparing the similarity between the fault-time–frequency matrix and a preset template. Then, they utilized the energy evolution spectrum of a specific frequency band combined with the double-ended method for fault location. Nevertheless, this application is challenging in distribution networks due to the strict requirements for double-ended synchronous measurements. Chandran et al. [
12] used the synchronous voltage and current phasors provided by the synchronous phasor measurement unit (PMU) for narrowing the fault area using apparent impedance. Next, multi-terminal measurement was employed to construct an extended impedance equation set to solve for the accurate fault location. In high-resistance faults, however, the location error shows a significant increase and may even fail to provide the correct fault location.
To tackle the above issues, artificial intelligence technologies have been applied to fault location [
13,
14]. Mirshekali et al. [
15] performed spectro-frequency analysis on voltage signals to generate two-dimensional features and achieved fault location via a deep learning framework combining convolutional neural networks with capsule networks. Zhou et al. [
16] leveraged cloud theory to enhance the genetic algorithm and optimize the structure of the backpropagation (BP) neural network. In addition, fault state variables were used as the input to achieve fault location in distribution networks. While the methods described in the above literature are effective under certain conditions, their adaptability is limited in complex operating conditions. These methods struggle to make use of the critical network structural characteristics inherent in distribution networks [
17].
For the past few years, researchers have begun to approach the issue of fault location in distribution networks from a new perspective with the rapid advancement of graph neural networks [
18]. Chen et al. [
19] integrated graph convolutional neural networks with node electrical properties and topological features and enhanced adaptability in complex scenarios. Wang et al. [
20] utilized the graph sample and aggregate (GraphSAGE) algorithm to extract power system structure and electrical information and established a mapping relationship between node features and fault labels. This approach reduces computational complexity to diagnose and locate faults. Liang et al. [
21] enhanced the expressive power of the model for neighborhoods by calculating weights between adjacent nodes through a multi-head attention mechanism. The methods employed in the above-mentioned literature all focus on the aggregation of information between nodes, with limited capacity to distinguish the importance of different features within a node. Yang et al. [
22] proposed using a simple attention module (SimAM) for enhancing key features, but SimAM is predominantly applied in convolutional neural networks. Systematic integration within graph neural networks and studies on its application in distribution network fault location scenarios are still relatively scarce [
23]. The summary of the relevant research is presented in
Table 1.
To resolve the above issues, a fault location method for distribution networks is proposed in this paper based on SimAM-GraphSAGE-graph attention network (GAT). Although the increasing grid-connection penetration of distributed generators (DGs) has rendered the operating conditions of distribution networks more dynamic and complex, the underlying physical topology of a standard distribution network still constitutes the fundamental framework for analyzing the state correlation between nodes and fault propagation. On this basis, the validation of the proposed method is mainly carried out for the operating conditions of the benchmark distribution network studied in this paper. The topology of the distribution network is mapped into a graph structure, and three-phase voltage, three-phase current, active power, and reactive power are fed into the model as node features. GraphSAGE is adopted to construct initial node representations with local topological constraints, and SimAM is used to perform parameter-free recalibration on fault-sensitive feature dimensions. The multi-head attention mechanism in GAT is applied to implement differentiated weighted aggregation of information from different neighborhoods so as to compensate for the critical information that may be lost during the aggregation process. Finally, GraphSAGE is used to further integrate high-order local topological information and complete node fault discrimination.
2. Principles of the SimAM–GraphSAGE–GAT Model
2.1. Structured Representation of Distribution Network Diagrams
The distribution network graph model can be expressed as
G = (
V,
E), where
V and
E represent nodes and edges, respectively. The adjacency matrix
A and the node feature matrix
X stand for inputs for a fault localization model. The adjacency matrix
A denotes an
N ×
N symmetric matrix representing the graph topological structure calculated in the following way:
The node feature matrix
X represents an
N × F matrix, where
N stands for the total number of nodes and
F indicates the number of features per node. Node features contain active power, reactive power, three-phase voltage, and three-phase current. They are expressed as
The feature vector for each node is represented as
2.2. GraphSAGE Neighbor Sampling and Preliminary Feature Extraction
When a fault occurs in the distribution network, fault information propagates to adjacent nodes along the lines connected to the faulty node. To characterize the changes in node state correlation caused by single-line-to-ground faults within the local topological range, this layer adopts GraphSAGE to aggregate the electrical information of the node itself and that of its first-order neighborhood, so as to construct initial node feature representations under local topological constraints. The core of the GraphSAGE algorithm lies in its inductive neighbor-sampling and feature-aggregation mechanism. It randomly samples a set number of neighbor nodes, fuses the feature information of the node itself with that of its first-order neighbor nodes, and thus learns the local topological information of the nodes. The learning process of the algorithm is presented in
Figure 1.
For node
i in the graph, its layer
L feature is
In the first layer,
represents the raw features of the node when
L = 0, which correspond to a total of eight-dimensional electrical physical quantities of node
i, including three-phase voltage, three-phase current, active power, and reactive power. The neighbor features of node
i are aggregated using mean aggregation. The aggregated neighbor features can be expressed as
where
N(
i) denotes the set of neighbors of node
i. During the stage of feature update, the raw feature of node
i is concatenated with the mean-aggregated neighbor features, which results in a composite feature vector:
The concatenated features are linearly transformed using the layer
L weight matrix
W(L) and the layer
L bias term
b(L). Then, they are processed by the ReLU activation function to obtain the next layer of features:
All node features are arranged in node order to produce the first-layer node feature representation matrix:
where
N denotes the total number of nodes in the distribution network.
H(1) has integrated the topological correlation information of the distribution network and node electrical features. Compared with the original electrical features, it can better characterize the local correlation changes in node states when a fault occurs, and it provides the input basis for the subsequent enhancement of fault-sensitive dimensions by SimAM.
2.3. SimAM Parameter-Free Attention Feature Enhancement
Once a fault occurs in the distribution network, the features of faulty nodes exhibit significant differences compared with those of normal nodes. The mean aggregation operation of GraphSAGE assigns equal weights to all features, thus failing to distinguish the importance of features in different dimensions for fault discrimination. SimAM defines an energy function to differentiate the importance of features in different dimensions for fault discrimination: the smaller the energy value, the greater the discrepancy between the node features and the global electrical background distribution, which in turn indicates a higher importance for fault discrimination.
On the node feature representation matrix
H(1) output by the first layer of GraphSAGE, the set of feature representations of all nodes in the kth dimension is denoted as {
h1k,
h2k,…,
hNk}. In the kth dimension, SimAM evaluates the anomaly of node features relative to the electrical background distribution. It takes the feature representation
hik of node
i as the target to be evaluated, while the feature values of the remaining nodes in this dimension are regarded as the global electrical background distribution under the current operating state of the distribution network. The mean and variance are used to represent the global background mean and dispersion degree of the node representations of all nodes in the kth dimension, respectively:
Let
λ denote the regularization coefficient. Then, the minimum energy of node
i along the kth feature dimension can be expressed as
The energy value is used to characterize the anomaly significance of node features relative to the global electrical background distribution under the current operating state. The term (hik − μk)2 in the denominator of Equation (10) quantifies the degree of deviation of the feature representation hik of node i in the kth dimension from the background mean μk. When a single-line-to-ground fault occurs in the distribution network, the symmetric operating state of the three-phase system is disrupted. Key electrical quantities such as the fault-phase voltage and fault-phase current of the faulty node change, and such changes are reflected in the corresponding fault-sensitive dimensions, leading to an increase in the term (hik − μk)2. The larger the deviation, the lower the energy value , which indicates that the feature representation of node i in this dimension has higher importance for fault identification and location.
SimAM uses the reciprocal of the minimum energy as a fault-sensitive saliency measure in order to convert energy values into attention weights related to fault importance. Normalization processing is performed via the Sigmoid function, and the normalized result is subjected to element-wise weighting with the node feature representation matrix
H(1), thereby yielding the enhanced feature representation matrix:
where
E represents the minimum energy value. SimAM enhances features using existing data and only taking into account the mean, variance and regularization coefficient of node feature representations, without introducing any trainable parameters.
Traditional attention mechanisms require training additional multi-layer perceptrons to generate weights. This introduces new parameters and can easily lead to overfitting in the presence of limited fault samples. Without introducing extra parameters, SimAM is less prone to overfitting and fully takes advantage of the following fact: the feature performance of a faulty node in key dimensions is changed, while the features of the vast majority of normal nodes remain relatively stable. Furthermore, before being fed into the next layer, all fault-sensitive dimensions are enhanced, which provides more discriminative input for the subsequent layer.
2.4. Multi-Head Attention Mechanism
SimAM realizes the enhancement of fault-sensitive feature dimensions and solves the weight assignment problem of different feature dimensions within the same node. To further distinguish the contribution of different neighbor nodes to the fault discrimination of the current node, this paper introduces a GAT layer after the SimAM module. The feature representations enhanced by SimAM have highlighted the fault-related feature dimensions, and GAT learns differentiated neighborhood weights according to the fault correlation between adjacent nodes and the current node. This enables neighbor nodes more related to the fault propagation path to obtain higher weights, while neighbor nodes with weaker correlation are assigned lower weights. The feature representations enhanced by SimAM are used as the input of the attention layer, which results in
where
N represents the total number of nodes in the distribution network, and
F stands for the dimension of the node feature representations. For the central node
i and its neighbor node
j, the attention coefficient
eij can be obtained through calculation:
The attention coefficient
eij is used to measure the degree of contribution of neighbor node
j to the fault discrimination of node
i. To ensure the comparability of these coefficients across different neighbor nodes, GAT adopts the Softmax function to perform normalization processing on the attention coefficients between node
i and its adjacent nodes. The attention weight
αij is obtained.
where
a represents the attention parameter vector and
W stands for the feature transformation matrix. After the attention weight
αij is obtained, the final output feature vector is updated as follows:
GAT employs a multi-head attention mechanism, which simultaneously characterizes the differences in fault correlation between neighbor nodes and the current node from multiple subspaces, thereby more fully capturing the neighborhood information related to fault discrimination. This mechanism utilizes
K independent attention heads. The final output features can be obtained by concatenating the output results of these
K groups. Below is the formula:
On the basis of the features enhanced by SimAM, the GAT layer performs differentiated weighted processing on neighborhood information, thereby highlighting the information of neighbor nodes more relevant to the fault propagation path and providing more fault-discriminative input for the subsequent deep aggregation of GraphSAGE.
2.5. GraphSAGE Deep Aggregation and Classification Output
After SimAM enhancement and GAT differentiated weighting, the output
H(2) of the second layer can already reflect the fault-related state differences between a node and its first-order neighborhood while it still mainly characterizes the first-order neighborhood information. In the final stage, GraphSAGE is reintroduced as the third layer to perform re-aggregation. Different from the differentiated neighbor weighting of GAT in the second layer, the function of GraphSAGE in the third layer is to integrate higher-order local topological information and comprehensively incorporate the influence of farther neighbor nodes along the fault propagation path on the fault state discrimination of the current node. The third layer of GraphSAGE adopts mean aggregation to sample and aggregate the neighborhood features output by the second layer. Third-layer features are obtained:
After re-aggregation by GraphSAGE, each node is ultimately represented as . It integrates the node’s own electrical state, the weighted information of its first-order neighborhood, and higher-order local topological information. Therefore, provides a more complete feature representation for node-level fault discrimination.
To train model parameters, the problem of fault location is transformed into a problem of node classification, and the cross-entropy loss function is adopted:
where
yi represents the probability distribution predicted by the model, and
stands for the true label. To prevent model overfitting, an
L2 regularization term is introduced to constrain model complexity:
where
λ denotes the regularization strength hyperparameter, and
L2 represents the type of norm. Finally, the total loss function
L of the model is a weighted sum of the
L2 regularization term and the cross-entropy loss. It is defined as
3. SimAM-GraphSAGE-GAT Integrated Distribution Network Fault Location Method
This paper constructs a SimAM-GraphSAGE-GAT architecture for distribution network fault location, as shown in
Figure 2. This architecture is designed targeting the inherent characteristics of distribution network fault location, including local topological correlation, the imbalance of fault-sensitive feature dimensions, and the differences in contributions of different neighbor nodes. First, GraphSAGE is adopted to integrate the electrical information of each node and that of its first-order neighbor nodes and to generate initial node feature representations. Second, SimAM performs weight recalibration on feature dimensions to highlight fault-sensitive information, while GAT applies differentiated weighting to neighbor nodes according to the correlation between their fault states and that of the current node. Finally, a GraphSAGE layer is used to further aggregate high-order topological information, and node classification is performed to identify faulty nodes and normal nodes.
In this model, an undirected graph G is constructed based on the IEEE 33-node distribution network. Measurement data for active power, reactive power, three-phase voltage and three-phase current are concatenated to form the feature matrix X. The first layer employs GraphSAGE and performs neighbor sampling and local aggregation on each node. It preliminarily integrates the topological relationship and electrical features of the node and its first-order neighborhood and obtains the feature representation H(1). To solve the problem that the mean aggregation of GraphSAGE cannot distinguish the importance of different feature dimensions, H(1) is fed into SimAM to perform parameter-free recalibration on the features that contribute greatly to fault discrimination, thereby obtaining the enhanced feature representation. This step aims to enhance the fault-sensitive feature dimensions and reduce the influence of irrelevant background responses.
The second layer adopts the multi-head attention mechanism of GAT and takes the feature representations enhanced by SimAM as its input. This attention mechanism assigns different weights to adjacent nodes according to the correlation between their fault states and that of the current node, thereby obtaining the refined feature aggregation result H(2). The multi-head attention mechanism can characterize the differences in fault correlation between neighbor nodes and the current node from multiple subspaces, thus more fully representing the fault-related neighborhood information.
The third layer adopts the GraphSAGE algorithm to aggregate high-order local topological information from the feature aggregation result
H(2) output by GAT. It outputs the fault category probability of each node through a fully connected layer and the Softmax function and classifies each node as a faulty node or a normal node, thus obtaining the final output result. The operation procedure of the SimAM-GraphSAGE-GAT model encoding is presented in Algorithm 1:
| Algorithm 1. The Operation Procedure of the SimAM-GraphSAGE-GAT Model Encoding |
| Input: , , , , , , , , |
| Output: |
| 1. First GraphSAGE aggregation: |
| 2. SimAM Feature recalibration: |
3. GAT neighborhood weighting: 4. Second GraphSAGE aggregation: 5. Classification: 6. return: |
5. Conclusions
This paper addresses the issue of insufficient fault location performance of traditional fault location methods for distribution networks under complex operating conditions. It proposes a distribution network fault location method on the basis of SimAM-GraphSAGE-GAT. This method employs the SimAM-GraphSAGE-GAT model for the fault location of distribution networks. The following conclusions are drawn through simulation experiments and theoretical analysis:
- (1)
This paper represents the distribution network topology as an adjacency matrix and integrates both the topological structure of the grid and electrical characteristic information. It converts the problem of fault location into a node classification task. SimAM is used to strengthen the information in the dimensions of important features to solve the problem of important feature information being attenuated after average aggregation. Finally, location accuracy is improved.
- (2)
Under complex operating conditions involving varying noise interference, data loss and high-resistance grounding faults, the SimAM-GraphSAGE-GAT model consistently achieves a localization accuracy of over 92%. It outperforms the other models and shows good adaptability under the tested conditions.
- (3)
GraphSAGE is employed as the first and last layer to efficiently sample and aggregate local and high-order neighborhood information. The parameter-free attention mechanism SimAM is introduced on top of GraphSAGE to enhance fault-sensitive features. In the meantime, the multi-head attention mechanism is applied as the intermediate layer to perform different weighting on neighbor nodes and thus shift more attention to fault-related nodes. This achieves an integrated design of the three components, which strikes a balance between accuracy and efficiency and improves fault location performance under the tested conditions.
This paper employs the SimAM-GraphSAGE-GAT model for fault localization. The model achieves high localization accuracy while ensuring computational efficiency on the IEEE 33-node distribution network. In the future, more fault-type data can be collected to strengthen the fault localization ability of the model in more complex and realistic scenarios by combining semi-supervised learning with transfer learning. In future work, more realistic noise models, including correlated PMU measurement errors, will be incorporated to further evaluate the robustness of the proposed method. The performance of the proposed method will also be assessed on larger and more comprehensive systems, such as the IEEE 123-node distribution network. In addition, the development of lightweight modeling methods may facilitate the deployment of the algorithm on terminal devices and support intelligent operation and maintenance in distribution networks.