Abstract
Accurate fault location in low-observability active distribution networks is hindered by uncertain inter-node relationships, underutilized early transients, and insufficient global context. To address these challenges, this paper proposes an adaptive Mamba-driven spatiotemporal graph neural network (AM-STGNN). It provides a unified task-driven spatiotemporal representation framework that progressively integrates fault-propagation modeling, global dependency modeling, transient-state learning, and topology-aware discriminative enhancement. Specifically, a prior-guided adaptive implicit topology is first learned to characterize task-dependent electrical coupling relationships among sparse observation nodes. Based on the resulting topology, topology-conditioned multi-order feature propagation and a dual-axis linear-attention module based on the spatiotemporal graph transformer (STGformer) are employed to capture local and global spatiotemporal dependencies. The resulting global spatiotemporal representation is subsequently processed by a Mamba selective state-space encoder to model input-dependent temporal evolution and emphasize informative fault transients. Finally, element-wise gated fusion, topology-aware differential output, and a margin constraint are employed to integrate the STGformer and Mamba representations and enhance the separability of adjacent faulted line sections with similar response characteristics. Extensive experiments demonstrate the effectiveness of AM-STGNN, while additional evaluations confirm its applicability to larger-scale networks, strongly phase-unbalanced conditions, and field-measured operating backgrounds. Robustness tests under individual and multi-level joint disturbances further demonstrate the practical relevance of the proposed architecture. Compared with the baseline models, AM-STGNN achieves consistent improvements in the macro-averaged F1 score (Macro-F1), exact accuracy, and one-hop accuracy under the clean IEEE 123-node condition. More importantly, it maintains clear performance advantages under identical mild, moderate, and severe joint disturbances, demonstrating improved robustness and practical relevance under simulated non-ideal operating conditions.
1. Introduction
With the increasing integration of distributed energy resources and power electronic devices, the structural and operational characteristics of distribution networks have undergone substantial changes, accompanied by increasingly complex network topologies [1]. In this context, conventional distribution networks are gradually evolving into active distribution networks, where power flow has shifted from unidirectional transmission to bidirectional exchange. These changes make post-fault transients more sensitive to operating conditions and complicate both state monitoring and fault diagnosis [2]. Although deploying a large number of high-precision measurement devices can improve system observability and facilitate the acquisition of fault information, it inevitably increases equipment investment as well as operation and maintenance costs. Therefore, achieving rapid and accurate fault location in complex active distribution networks under low-observability conditions has become an important issue in current distribution-network operation and maintenance.
To achieve fault location, impedance-based, phasor-measurement-based, and state-estimation-based methods have been extensively investigated. In [3], an impedance-based fault distance estimation method considering the influence of distributed generation was developed to mitigate the increased errors of conventional impedance methods under distributed generation integration. In [4], an adaptive impedance model for active distribution networks was constructed to address the insufficient adaptability of conventional impedance methods to complex operating scenarios. In [5], synchronized phasor measurement information was introduced into extended impedance-based fault distance estimation, thereby improving the limited fault-location accuracy in complex distribution systems. In [6], phasor measurement unit (PMU) measurements were further integrated with power-system state estimation, and distribution-network fault location was formulated as an optimization problem, which improved the identification accuracy of faulted line sections under complex branching conditions. These methods have clear physical interpretations and are relatively straightforward to implement; however, they are sensitive to network parameters, measurement accuracy, and model completeness, which limits their robustness in complex active distribution-network scenarios. Therefore, traveling-wave-based fault-location methods, which can directly exploit the initial transient characteristics of faults, have been widely studied. In [7], a single-ended fault-location method based on reflected traveling waves was proposed to overcome the dependence of conventional traveling-wave methods on double-ended synchronized measurements. In [8], a fault traveling-wave time matrix was constructed, and the arrival times of wavefronts were extracted for fault location, thereby addressing the challenges caused by complex traveling-wave propagation paths, limited location speed, and insufficient reliability in multi-branch distribution networks. Although traveling-wave-based methods can make full use of initial transient fault information and exhibit excellent theoretical location accuracy under long-distance and complex-branch conditions, they impose stringent requirements on sampling frequency, time synchronization, and wavefront identification accuracy. To reduce the dependence on high-end measurement devices and complex physical modeling, deep learning has been increasingly investigated for fault location in distribution networks. In [9], a deep-learning-based fault identification and classification method for active distribution networks was proposed to address the difficulty of manually extracting discriminative features from complex fault waveforms. In [10], a fault classification and location method based on a deep convolutional neural network was developed to effectively fuse multidimensional measurement features under PMU deployment conditions. In [11], variational autoencoder (VAE)-generated synthetic data and multiple machine learning algorithms were introduced into fault classification and location for transmission networks, demonstrating that data augmentation can alleviate the adverse effects of insufficient fault samples on model performance. Meanwhile, fault diagnosis studies for renewable energy devices such as photovoltaic systems have also shown that hybrid deep learning models can extract effective fault features from complex operating data [12]. These studies indicate that data-driven methods have strong feature learning capabilities. However, most conventional deep learning models are designed for Euclidean-structured data, and their ability to represent distribution-network topology and the spatial correlations of fault propagation remains insufficient. To further integrate topological structure with measurement data, graph neural-network methods have been widely investigated. In [13], a graph-neural-network-based fault-location method that simultaneously considers node attributes and line attributes was proposed to address the difficulty of representing line differences and fault-propagation paths in conventional graph models. In [14], a spatiotemporal recurrent graph neural-network fault diagnosis method was developed to jointly model the temporal evolution and spatial propagation of faults. In [15], a fault-location method based on a multi-head graph-attention network was proposed to address the inaccurate modeling of inter-node coupling relationships under complex topological conditions. In [16], a variational graph autoencoder (VGAE)-GraphSAGE-based fault-location method for distribution networks was developed to overcome the limited feature representation capability of shallow graph networks. In [17], a physics-preserving graph network was introduced for fault location, improving real-time location capability in low-observability and few-label scenarios. In [18], a domain-adaptive transfer dynamic graph-attention network was proposed to enhance model generalization under varying operating scenarios and data distribution shifts. In [19], a spatiotemporal correlation graph neural network was developed for large-scale distribution-network fault location, addressing the inaccurate identification of faulted line sections under low-observability conditions. In [20], a two-stage graph spatiotemporal attention network was proposed to handle the changes in fault-feature propagation paths caused by topology reconfiguration in distributed energy systems, as well as the mutual interference among different fault types. In [21], an interpretable physics-informed graph network with a multitask cascaded fault diagnosis framework was developed to address the masking of original fault features by superimposed multiple fault characteristics and the insufficient physical interpretability of the diagnosis process in cascading fault scenarios. In addition, graph-enhanced deep reinforcement learning for distribution-network fault recovery has also employed graph neural networks to extract topological features, thereby improving state perception under complex operating conditions [22]. Although existing graph-neural-network-based methods can improve fault location or fault diagnosis performance by integrating topological relationships with measurement features, several limitations remain under low-observability and complex operating scenarios, including the dependence of node relationships on static structures, insufficient utilization of short-term dynamic fault information, and inadequate modeling of global correlations.
Accordingly, this paper proposes an adaptive Mamba-driven spatiotemporal graph neural network, termed AM-STGNN, for fault location in active distribution networks under low-observability conditions. Specifically, to address the insufficient topology representation of pure sequence models, such as convolutional neural network (CNN)-based methods [10] and VAE-assisted machine learning methods [11], AM-STGNN introduces adaptive implicit topology learning to construct data-driven electrical coupling relationships among sparse observation nodes; to overcome the dependence of graph neural network methods, such as graph convolutional network (GCN) [23], multi-head graph attention network (GAT) [16], VGAE-GraphSAGE [17], and physics-preserved graph network (PPGN) [18], on predefined adjacency matrices, physical connectivity, or local neighborhood aggregation, a direction-sensitive implicit adjacency generation mechanism is designed to adaptively characterize post-fault electrical coupling variations; to improve the insufficient utilization of early-stage transient information in spatiotemporal graph models, such as spatiotemporal recurrent graph neural network (GNN) [15], domain-adaptive dynamic graph attention network [19], spatiotemporal correlation graph neural network (scGNN) [20], and two-stage graphical spatiotemporal attention network (Ts-GSAN) [21], the Mamba selective state-space model is employed to selectively scan topology-conditioned node sequences and enhance the extraction of short-term fault dynamics; to address the limited task specificity of existing Mamba-based spatiotemporal graph models, such as STG-Mamba [24], AM-STGNN introduces fault-propagation-conditioned selective scanning and topology-aware discriminative learning to enhance transient feature extraction and adjacent-section separability; to reduce the local-interaction limitation or high computational cost of attention-based models, such as multi-head GAT [16], dynamic graph attention network [19], Ts-GSAN [21], and Transformer [25], an STGformer-based global linear attention module is introduced to establish long-range node-time dependencies with lower complexity; to alleviate the confusion between adjacent faulted line sections in conventional graph-temporal models, such as PPGN [18], scGNN [20], and GCN [23], gated feature fusion, topology-aware differential output, and a margin constraint are further developed to strengthen feature fusion and enlarge the decision boundary between adjacent sections. AM-STGNN is, therefore, formulated as a unified task-oriented framework that integrates adaptive fault-propagation representation, selective transient-state modeling, global spatiotemporal interaction, and topology-aware discrimination. It is designed to characterize fault-information transmission among sparse observation nodes, early-stage transient evolution, and the separability of adjacent faulted line sections with similar responses. The main contributions are summarized as follows:
- (1)
- A prior-guided adaptive topology is integrated with topology-conditioned multi-order propagation and STGformer-based dual-axis linear attention. This design characterizes task-dependent directional coupling relationships among sparse observation nodes and establishes local and global dependencies among node–time representations.
- (2)
- A Mamba selective state-space encoder is adapted to node-wise fault-transient sequences. It models input-dependent temporal evolution while preserving the global spatiotemporal context generated by STGformer, thereby enhancing informative fault-transient dynamics.
- (3)
- A topology-aware discriminative output mechanism is designed for adjacent line-section separation. Element-wise gated fusion adaptively integrates the STGformer and Mamba representations, while neighborhood-differential features and margin regularization enlarge the decision boundary between the true faulted section and its strongest competing section.
- (4)
- Controlled multi-seed and joint-disturbance experiments verify the repeatability and robustness of AM-STGNN, showing more exact fault locations and fewer topologically distant errors under concurrent non-ideal conditions.
2. Selection Strategy for Observation Nodes
In large-scale active distribution networks, the large number of nodes and the complexity of branches make full-network deployment of high-density monitoring devices economically and technically demanding, as equipment investment, communication burden, and maintenance costs would be substantially increased. For the fault-location task under low-observability conditions, the model inputs in this study are collected not from all network nodes but from a predefined set of observation nodes. Once the observation nodes are determined, the training, validation, and test sets are constructed under identical observation conditions, and all subsequent modeling and result analyses are performed based on these inputs.
Let the node set of the distribution network be defined as
Given an observation rate, , the number of observation nodes is defined as
where denotes the total number of system nodes in the distribution network, and denotes the number of observation nodes to be selected. Since one representative node is finally selected from each region, the full node set is divided into non-overlapping regions:
The number of nodes in each region is kept approximately balanced:
The basic idea of the regional partition is to group nodes that are electrically close and located on the same main feeder or downstream lateral branch along the main propagation direction of the fault unbalanced current or the normal operating current. This prevents observation nodes from clustering locally and improves coverage of the principal fault-information paths.
First, the distribution-network topology is represented as a graph,
where denotes the node set, and denotes the line set. Lines that are closed under the current operating condition are retained as valid edges in the graph. Lines corresponding to normally open switches are not included as connected edges because they do not participate in electrical connectivity under the current operating condition. The original topology is then converted into a directed graph according to the current propagation direction:
For any line-connecting nodes, and , if the current flows from node to node , the directed edge is denoted as Otherwise, it is denoted as
In radial or open-loop distribution networks, this direction is generally consistent with the downstream propagation direction from the source side to the load side. If the current direction of certain branches is ambiguous, the direction is determined according to the topological depth from the source node. Specifically, the node closer to the source side is regarded as the upstream node, whereas the node farther from the source side is regarded as the downstream node.
Next, the source node, substation node, or starting node of the main feeder is selected as the root node . Starting from , the network is traversed downstream along the directed edges. A combination of depth-first search (DFS) and breadth-first search (BFS) is used to complete the regional partition.
DFS is mainly used to identify continuous propagation paths extending from the source side to the downstream network. It searches along a downstream branch until a terminal node is reached or no further downstream expansion is possible, thereby identifying the continuous current propagation paths on the main feeder and lateral branches. For a node with multiple downstream branches, DFS enters each branch separately to identify the corresponding propagation paths.
BFS is then used to maintain local topological integrity and size balance during region construction. After the starting node of the current region is determined, this node is used as the seed node, and the region is expanded layer by layer along the current propagation direction. Nodes that are electrically adjacent to the seed node, located on the same propagation path, or located on neighboring downstream branches are successively included in the current region. When the number of nodes in the current region reaches the target size,
the expansion is stopped, and the current region is fixed. Then, according to the current propagation order obtained by DFS, the next unassigned downstream node is selected as the seed node of a new region, and BFS expansion is repeated until all non-overlapping regions are obtained.
For multi-branch structures, the partition follows the principles of local connectivity and size balance. If a branch node and its adjacent downstream nodes contain only a small number of nodes, they are assigned to the same region to preserve regional connectivity. If a branch is relatively long and its number of nodes exceeds the target size of a single region, the branch is further divided into several consecutive regions along the current propagation direction. If a region still contains fewer nodes than the target size after reaching a terminal node, additional nodes are added from the nearest unassigned neighboring downstream branch in terms of electrical distance.
Through this process, the network is divided into non-overlapping regions,
One representative node is then selected from each region to form the final observation-node set.
To quantify the ability of each candidate node to respond to surrounding fault-propagation information, a correlation coefficient based on the shortest electrical line distance is introduced. Let denote the shortest electrical line distance between node and node , namely the total line length of the shortest electrically connected path between the two nodes, and let denote the average line distance from node to its neighboring nodes. The correlation coefficient is defined as
Here, represents the correlation of fault unbalanced current propagation between nodes and within the same region, namely the strength with which the fault-induced unbalanced-current information is transmitted between the two nodes. A shorter distance corresponds to a larger value of , whereas a longer distance leads to a smaller value. On this basis, the sum of the correlations between node and the other nodes within the same region is used as the node score.
where denotes the fault-propagation coverage score of candidate node within region . The node with the highest score is selected as the observation node of the corresponding region:
Accordingly, the observation-node set is expressed as
This selection strategy ensures that the observation nodes are spatially dispersed across the entire network while covering the main range of fault-information propagation as much as possible.
The system adjacency matrix is defined as
where is used to describe the propagation relationship of system states over the distribution-network topology. The output matrix is defined as
where indicates which nodes are selected as observation nodes. Here, denotes the number of observation nodes. Each row of corresponds to one observation node, and each column corresponds to one system node.
In the observation-node selection stage, the distribution network is approximated as a short-time linear topological system around the operating point:
where denotes the state vector of all nodes in the distribution network at time step , such as nodal voltage, current, or fault-propagation-related states. denotes the output vector obtained from the observation nodes.
First, all eigenvalues of are calculated and denoted as For each eigenvalue , the Popov–Belevitch–Hautus (PBH) observability test matrix is constructed as
where is the -dimensional identity matrix. The term characterizes the structural property of the system adjacency matrix under the state mode corresponding to the eigenvalue .
According to the PBH criterion, if the following rank condition is satisfied for all eigenvalues of ,
then the current observation-node set satisfies the system observability requirement. This means that all state variation modes in the distribution-network topology can be reflected by the selected observation nodes and that the number and locations of the current observation nodes can meet the basic observation requirement for fault location under low-observability conditions.
In contrast, if there exists an eigenvalue, , such that
then at least one state variation mode cannot be captured by the current observation nodes. In this case, the selected observation-node set does not satisfy the observability requirement, and the observation rate or the observation-node selection result should be reconsidered.
It should be noted that the PBH criterion is used only as a topology-level verification tool for observation-node selection; it does not establish the observability of the nonlinear AM-STGNN model itself.
3. Methods
As illustrated in Figure 1, AM-STGNN follows a progressive modeling pipeline consisting of adaptive-topology-guided global representation learning, selective temporal modeling, and topology-aware discriminative learning. Given the low-observability fault-transient input, a prior-guided adaptive implicit topology is first inferred and incorporated into an STGformer block. Through topology-guided feature propagation and dual-axis linear attention, the STGformer stage produces a global spatiotemporal representation. This representation is subsequently processed by a Mamba selective state-space encoder to capture input-dependent temporal evolution. The representations before and after Mamba scanning are then adaptively integrated through a gating mechanism. Finally, a topology-aware differential head generates the faulted-line-section predictions, while a margin-based regularization term is introduced during training to improve the separation between the target class and its hardest competing class.
Figure 1.
Overall spatiotemporal architecture of the proposed AM-STGNN method.
3.1. Adaptive-Topology-Guided STGformer Representation Learning
Once the observation nodes are fixed, the remaining challenge is to construct informative spatiotemporal representations from sparse fault-transient measurements. To this end, a prior-guided adaptive implicit topology is first learned to characterize task-dependent directional coupling relationships among network nodes. Based on the resulting topology, an STGformer block performs topology-guided feature propagation and dual-axis linear attention along the spatial and temporal dimensions, thereby generating global spatiotemporal representations for subsequent selective temporal modeling.
3.1.1. Prior-Guided Adaptive Implicit Topology Generation
Under low-observability conditions, measurements are available from only a subset of network nodes. Nevertheless, the complete node dimension is retained to preserve the spatial alignment between the measurement data and the original distribution-network topology. After data preprocessing, the fault-transient input tensor is represented as
where is the batch size, is the number of sampling steps, is the total number of system nodes, and is the number of input features per node. The measurements of the selected observation nodes are retained, whereas the features of nodes without installed sensors are set to zero to preserve a fixed node dimension. In the standard AM-STGNN input, these zeros serve only as structural placeholders. A physically valid zero-valued measurement remains a valid observation and is not treated as missing. The encoding of temporarily missing measurements is introduced separately in the robustness evaluation in Section 4.4.4.
To characterize inter-node spatial relationships, a static distance-based topology prior is combined with a learnable implicit topology. The static prior preserves the basic network structure and prevents the learned topology from deviating excessively from the original graph, whereas the implicit topology adaptively captures task-dependent directional coupling relationships for fault location.
First, a -nearest-neighbor graph is constructed from the inter-node distance matrix. The resulting distance graph is symmetrized and row-normalized to obtain the static topology prior:
where denotes the set of the nearest neighbors of node . Consequently, represents the normalized static connectivity derived from the inter-node distances.
Although the static prior provides a stable structural constraint, it cannot fully capture the task-dependent electrical coupling revealed by fault-transient signals. Therefore, two trainable node-embedding matrices are introduced [24]:
where is the topology-embedding dimension. The two embeddings characterize the latent roles of each node in information transmission and reception, respectively.
A direction-sensitive node-correlation score matrix is then constructed as
Before nonlinear activation, the matrix satisfies
Thus, the potential influence of node on node can be distinguished from that of node on node , enabling asymmetric fault-information propagation to be represented.
A nonlinear truncation is subsequently applied to remove negative scores and retain positive directional associations. Meanwhile, the diagonal entries are masked to exclude self-connections from the implicit topology:
The adaptive connection probabilities are then obtained through row-wise softmax normalization:
Here, denotes the contribution of node to the feature aggregation of node . Row-wise normalization ensures that the aggregation weights associated with each target node sum to one.
Rather than completely replacing the predefined topology with the learned implicit topology, the two are combined using a constrained learnable coefficient:
where is a trainable scalar and specifies the minimum contribution of the static topology prior. Therefore, , ensuring that the learned topology remains constrained by the predefined network structure.
The static and adaptive topologies are fused as
For numerical stability, the fused matrix is further normalized row-wise:
where is a small positive constant introduced to prevent division by zero. It is used solely for numerical stabilization and is distinct from the distance-scale parameter in Equation (22). The resulting prior-guided adaptive topology is
This matrix preserves the stable neighborhood structure determined by node distances while incorporating task-dependent directional relationships learned from the training data. It is subsequently used for topology-conditioned feature propagation.
3.1.2. Topology-Conditioned Multi-Order Feature Propagation
The resulting adaptive topology is subsequently used to propagate fault-transient features. The original node measurements are first projected into a common hidden space:
where are the learnable input-projection matrix and bias vector, respectively, and is the hidden feature dimension. denotes the zero-order node representation before neighborhood aggregation.
Higher-order topology-conditioned representations are generated recursively:
is the -order node representation of sample at time step . The element determines the contribution of node to the updated representation of node .
The resulting multi-order representation set is
The current implementation adopts , yielding the zero-order representation and the first-order propagated representation . These representations preserve the projected local features and one-hop adaptive neighborhood information, respectively, and are jointly processed by the subsequent dual-axis interaction layer.
3.1.3. Dual-Axis Linear Attention and Global Feature Updating
Multi-order propagation expands the local receptive field but does not directly establish dependencies between distant nodes or nonadjacent sampling instants. Moreover, applying standard self-attention to all node–time positions would incur quadratic computational and memory costs. Therefore, AM-STGNN adopts an STGformer-based kernel-decomposed linear-attention mechanism [26] to perform global interaction along the spatial and temporal axes. As illustrated in Figure 2, the topology-conditioned representations are projected into query, key, and value tensors. Spatial attention captures dependencies among nodes at each sampling instant, whereas temporal attention models dependencies across sampling instants for each node. The resulting spatial and temporal features are subsequently fused to obtain a global spatiotemporal representation.
Figure 2.
Global linear spatiotemporal interaction based on STGformer.
For the -order representation , the query, key, and value tensors are obtained as
where , and is learnable.
Let be the number of attention heads and
be the dimension of each head. For a sequence of length , let , and denote the query, key, and value of position in head . The query and key are first -normalized:
Using the associativity of matrix multiplication, the key–value summary and key summary are precomputed as
The linear-attention output at position is then calculated as
where is a small positive constant. The term provides a direct path for retaining the value feature at the current position.
For spatial interaction, the nodes at each sampling instant are treated as a sequence of length . The resulting spatial representation is
This operation directly establishes global dependencies among all nodes at the same sampling instant.
For temporal interaction, the sampling instants associated with each node are treated as a sequence of length . The resulting temporal representation is
This operation captures global temporal dependencies for each node.
The spatial and temporal outputs are concatenated and projected back to the hidden dimension:
where
This formulation avoids explicitly constructing spatial or temporal attention matrices. With a fixed hidden dimension, its computational cost increases approximately linearly with the number of nodes and the number of sampling steps.
Because fault responses may propagate across nodes and time steps and exhibit different topological ranges of influence, the global interaction results from different propagation orders are fused to obtain a more comprehensive spatiotemporal representation. Accordingly, the accumulated and contextual representations are initialized as follows:
For propagation order , an element-wise modulation term is generated from the current context:
The accumulated and contextual representations are then updated as
where denotes the Hadamard product, and controls the contribution of propagation order . The implementation adopts
where is the scaling factor for higher-order branches. This design prevents higher-order propagated features from dominating the main branch during the early training stage.
After multi-order interaction, residual updating and layer normalization are applied:
A feed-forward network further transforms the representation:
The STGformer output is obtained through a second residual update:
This representation combines adaptive-topology-guided multi-order propagation, global spatial dependencies, and global temporal dependencies, and is subsequently passed to the Mamba temporal encoder.
3.2. Mamba-Based Selective Temporal Modeling
STGformer captures global dependencies across nodes and sampling instants, but attention-based interaction does not explicitly model the recursive temporal evolution of fault states. The transient sequence considered in this study contains 20 sampling points spanning 0.04 s. Voltage sags, current surges, and phase-angle variations immediately after fault inception generally provide strong discriminative information, whereas later responses gradually become smoother. Therefore, a Mamba selective state-space encoder is introduced to adaptively regulate state retention, information writing, and state readout at each time step [27]. As illustrated in Figure 3, the topology-conditioned STGformer representation is reorganized into node-wise temporal sequences and processed by the Mamba selective state-space encoder. The resulting representation retains the global spatiotemporal context while enhancing fault-transient dynamics relevant for fault-section discrimination.
Figure 3.
Topology-guided selective temporal modeling.
The STGformer output is represented as where , , , and denote the number of samples, time steps, nodes, and hidden feature dimensions, respectively. To independently scan the temporal sequence of each node, is reorganized into node-wise sequences:
Here, changes only the tensor organization without modifying the feature values. Each sequence of length corresponds to one node in one fault sample:
These node-wise sequences retain the adaptive-topology propagation and dual-axis spatiotemporal information encoded in . Mamba subsequently models their input-dependent temporal evolution.
The temporal encoder consists of cascaded Mamba blocks. The input to the -th block is denoted as
To reduce feature-scale variations and stabilize the subsequent state recursion, root mean square (RMS) normalization is first applied:
where denotes averaging over the feature dimension, is a small constant for numerical stability, and is a learnable scaling vector.
The normalized representation is linearly projected and divided into a state-space branch and a gating branch:
where and is the internal expansion factor. The state-space branch performs selective temporal modeling, whereas the gating branch adaptively modulates its output.
A depth-wise one-dimensional convolution and sigmoid linear unit (SiLU) activation are first applied to the state-space branch:
The depth-wise convolution independently captures short-term variations within each feature channel. Since convolutional padding may extend the temporal dimension, restores the original sequence length .
For time step , let denote the corresponding feature vector in . For clarity, the merged sequence index and current block index are omitted in the following state-space equations. A joint linear projection generates the intermediate step-size representation and the input-dependent state-space parameters:
where and
Here, and denote the step-size projection dimension and state dimension, respectively. The selective step size is obtained as
The Softplus function ensures a positive step size. The parameters , , and , respectively, regulate the state-update scale, input writing, and state readout. Because they are generated from , the state-update behavior varies with the temporal input.
Each Mamba block also contains the globally learnable state-transition parameter and direct-transmission parameter , which are shared across all time steps within the block. The elements of are constrained to be negative through negative-exponential parameterization to stabilize temporal recursion.
The continuous-time state-space model is expressed as
where , , and denote the input, hidden state, and output, respectively. governs state transition, controls information writing, controls state readout, and provides a direct input–output path.
At time step , , , and correspond to , , and , respectively. Using the input-dependent step size , the continuous parameters are discretized as
where the operations are broadcast across the internal feature channels and state dimensions. The hidden state and output are then updated as
with the initial state set to zero. The input dependence of , , and enables Mamba to selectively retain historical states, incorporate current information, and extract relevant temporal features. Consequently, discriminative fault-transient variations are emphasized, whereas repetitive or weakly varying responses exert less influence on subsequent states.
Combining the state-space outputs of all node-wise sequences and time steps yields
The gating branch then modulates the state-space output:
After output projection and residual updating, the output of the -th Mamba block is
where
The output projection restores the hidden dimension , while the residual connection preserves the preceding representation and improves optimization stability.
After all Mamba blocks have been applied, the node-wise temporal sequences are restored to the original sample–time–node–feature arrangement:
The resulting captures the input-dependent temporal evolution of each node and is subsequently fused with .
3.3. Gated Spatiotemporal Feature Fusion and Topology-Aware Differential Output
The preceding stages produce the STGformer representation and the Mamba-enhanced representation
The former preserves adaptive-topology propagation and global spatiotemporal interaction, whereas the latter captures selective temporal-state evolution. As illustrated in Figure 4, the two representations are adaptively combined through an element-wise gate to obtain the fused representation . A topology-aware differential operator then characterizes the deviations between each candidate fault section and its physical neighborhood. The original and differential features are jointly used for fault-section prediction, while margin regularization enlarges the score gap between the true class and its strongest competing class.
Figure 4.
Gated feature fusion and topology-aware discriminative output mechanism.
3.3.1. Gated Bilinear Spatiotemporal Feature Fusion
An element-wise gate is generated from the concatenated representations:
where and
The fused representation is
A larger gate value preserves more STGformer information, whereas a smaller value assigns greater weight to the Mamba-enhanced representation. Because the gate is generated independently for each sample, sampling instant, node, and feature dimension, it can adaptively balance the two representations according to the current fault input.
To stabilize the initial training stage, the gate-projection weights are initialized to zero and the bias is initialized positively, causing the model to initially favor the STGformer representation. The gate is subsequently adjusted through end-to-end optimization.
The fault-induced unbalanced current is , which is further processed by the topology-aware differential classifier.
3.3.2. Topology-Aware Differential Output
Topologically adjacent fault sections often exhibit similar voltage, current, and phase-angle responses. Classification based solely on absolute features may, therefore, lead to confusion between neighboring sections. A neighborhood set is consequently constructed in the label space according to the physical topology and the fault-label mapping.
Let denote the set of fault sections adjacent to section . Under the adopted label mapping, the ordered output positions correspond to the candidate fault sections. The topology-difference matrix is defined as
Thus,
If a section has no valid neighbor, only its diagonal entry is retained.
For sample at time step , the fused representation is Its topology-difference feature is calculated as
For fault section , this is equivalent to
The resulting feature describes the deviation of the current section from the mean representation of its topological neighborhood.
The original and differential features are concatenated:
and flattened into a global vector:
Rather than classifying each node independently, the classifier jointly uses the original and differential features of all nodes. The first fully connected transformation is
where
The time-step-level fault-section logits are then obtained as
where . Here, Dropout applies an element-wise Bernoulli mask to the hidden representation during training. Each feature is independently set to zero with probability , while the retained features are scaled by to preserve the expected activation magnitude. During inference, Dropout is disabled and the hidden representation is passed unchanged. This operation reduces feature co-adaptation and alleviates overfitting.
LogSoftmax normalization gives
yielding the time-step-level log-probability tensor
This output jointly exploits the global node representations and their relative differences from the physical neighborhoods, thereby improving the separability of fault sections with similar transient responses.
3.3.3. Margin-Based Decision-Boundary Enhancement
Each fault scenario contains multiple consecutive sampling instants. The model, therefore, generates time-step-level predictions and aggregates them over a predefined fault window. Let
denote the aggregation window and its length.
The scene-level log probability is obtained by averaging the time-step-level probabilities:
In implementation, the scene-level aggregation is evaluated using LogSumExp for numerical stability. The predicted fault section is
Let denote the true fault-section label of sample . The basic classification loss is the average time-step-level negative log-likelihood over the selected window:
With the classification loss alone, optimization weakens once the true-class score exceeds the remaining scores, even when the decision gap remains small. The strongest competing class is, therefore, selected from the scene-level predictions:
The margin loss is defined as
where is the prescribed safety margin. The penalty becomes zero when
Otherwise, it increases the true-class score while suppressing the strongest competitor.
Let be the weight of the margin term and the weight assigned to sample . The final training objective is
When sample weighting is not used, .
The topology-difference mechanism and margin constraint improve fault-section discrimination from complementary perspectives. The former emphasizes relative abnormalities between physically adjacent sections in the feature space, whereas the latter enlarges the decision gap between the true class and the strongest competing class. Their joint use reduces confusion caused by similar transient responses and improves fault-location robustness under low-observability conditions.
4. Results and Analysis
4.1. Experimental Settings and Computational Configuration
4.1.1. Experimental Settings and Simulation Validation Methodology
The experiments in this study are conducted based on fault data from the IEEE 123-node distribution network. The original dataset contains samples, where 128 denotes the faulted lines traversed sequentially, 10 denotes the ten fault types considered on three-phase lines, and 20 denotes the consecutive sampling points during the fault period. The ten fault types include single-phase-to-ground faults , phase-to-phase faults , phase-to-phase-to-ground faults , and three-phase short-circuit faults .
The original data contain 128 nodes, and 12 feature variables are recorded for each node, corresponding to the three-phase voltages and their phase angles, as well as the three-phase currents and their phase angles, with the phase order arranged as ABC. Each feature variable contains 25,600 data points along the sample dimension. Therefore, the overall dataset can be represented as 128 nodes 12 features 25,600 samples. The sampling frequency is 500 Hz, corresponding to a sampling interval of 0.002 s. Therefore, the 20 consecutive sampling points cover a 0.04 s fault-transient interval. This short interval retains the temporal propagation and attenuation of the fault-induced voltage and current variations while reducing the influence of slower operating-condition changes. For temporal modeling, the samples are reorganized by faulted line, fault type, and sampling instant to form a complete 20-step transient sequence. The full 0:20 interval represents the available fault-transient record, and the shorter intervals are defined as candidate aggregation windows within this sequence. Their starting indices are treated as predefined sequence positions rather than exact physically measured fault-inception times.
In terms of the observation setting, the inputs of all non-observation nodes are set to zero, so as to evaluate the fault-location capability of the proposed model under low-observability conditions.
Two evaluation protocols are used. The baseline-comparison protocol retains the original data organization as closely as possible, whereas the independent-scenario protocol uses mutually exclusive training, validation, and test fault scenarios and selects no parameters using test data. The baseline-comparison results are presented in the following section, whereas the results obtained under the independent-scenario protocol are reported separately.
For performance evaluation, the macro-averaged F1 score (Macro-F1), absolute location accuracy (Acc), and one-hop-tolerant accuracy (Acc 1-hop) are adopted. Macro-F1 is used to measure the overall recognition performance across different classes, Acc reflects whether the faulted section is accurately located, and Acc 1-hop indicates whether the predicted result falls within the one-hop neighborhood of the true faulted section. All performance comparisons and ablation studies in this work are conducted using these three metrics.
To evaluate the repeatability and statistical significance of the performance improvement, additional paired multi-seed experiments were conducted under a unified controlled protocol. For each of ten random seeds, scGNN and AM-STGNN were independently trained from scratch using the same data split, observation-node configuration, training budget, and model-selection criterion. Each run consisted of 24 epochs, including 12 epochs of full-model optimization followed by 12 epochs of classifier-only refinement. For each metric, the mean and sample standard deviation were reported. The 95% confidence interval was calculated for the paired performance difference between AM-STGNN and scGNN. In addition, a paired t-test and a Wilcoxon signed-rank test were conducted at a significance level of 0.05. The IEEE 123-node test system and its simulation configuration are illustrated in Figure 5.
Figure 5.
IEEE 123-node active distribution network for fault-location simulation validation.
4.1.2. Model Configuration and Computational Environment
For the IEEE 123-node experiments, the graph encoder of AM-STGNN consists of three hidden representation layers with dimensions , producing a 32-dimensional representation for each node. The Mamba temporal encoder contains one Mamba block with a state dimension of 16, an expansion ratio of 2, and a convolution width of 4. The graph-diffusion order is set to . These architectural settings are kept unchanged unless otherwise specified.
To ensure an objective and reproducible comparison, two complementary evaluation protocols are adopted. Under the independently optimized protocol, each model is optimized separately within a predefined model-specific hyperparameter space using the same fixed data partition, consisting of 1024 training samples, 256 validation samples, and 1280 independent-test samples. Hyperparameter and checkpoint selection are based exclusively on validation Macro-F1. The test set is disabled throughout hyperparameter tuning and is not used for configuration comparison or checkpoint selection. Only the validation-selected checkpoint of each model is evaluated once on the independent-test set.
For AM-STGNN, the hyperparameter search space was fixed before independent-test evaluation. The candidate settings comprised base learning rates of 0.0005, 0.001, and 0.002, AdamW and Adam optimizers, aggregation windows of 5:20 and 7:20, and temporal-branch learning-rate scales of 0.5 and 1.0. The batch size, weight-decay coefficient, total training budget, and Mamba state dimension were fixed to 8, 0.005, 44 outer epochs, and 16, respectively. The 44-epoch budget consisted of 24 epochs of full-model training followed by 20 epochs of classifier-only refinement.
Within this predefined space, a validation-only staged search was performed over 12 complete AM-STGNN candidate configurations. The preliminary optimizer screening compared Adam and AdamW under the same setting, yielding validation Macro-F1 values of 0.655344 and 0.584990, respectively. The remaining predefined configurations were then evaluated according to the staged search procedure, including the branch using Adam with a base learning rate of 0.002 across the predefined aggregation windows and temporal-branch learning-rate scales. All candidate configurations and checkpoints were compared exclusively according to validation Macro-F1. No independent-test metric was accessed during candidate screening, staged pruning, or final configuration selection.
Among the evaluated configurations, the configuration using Adam, a base learning rate of 0.002, and an aggregation window of 7:20 achieved the highest validation Macro-F1 at epoch 25. Therefore, the 7:20 window was retained for the main experiment. The same 7:20 aggregation window was retained for the subsequent AM-STGNN experiments on the Portuguese rural distribution-network model, the Rural dataset, and the Southern California (SoCal) 28-Bus dataset. The consistently strong results obtained under this fixed setting provide additional empirical support for the suitability of the selected window.
Under the strictly matched protocol, all compared models use the same principal training controls, including AdamW with a base learning rate of 0.0005, a weight-decay coefficient of 0.005, a batch size of 8, and the same 44-epoch two-stage training budget. The aggregation window is fixed to 7:20. During classifier-only refinement, AdamW is used with a learning rate of 0.001 and a weight-decay coefficient of 0.0005. The independently optimized and strictly matched results are reported separately because the two protocols serve different purposes and should not be directly mixed in interpretation.
For the models and evaluation protocols adopting two-stage training, the graph encoder, temporal module, and classifier are jointly optimized in the first stage to learn fault-related spatiotemporal representations. In the subsequent classifier-only refinement stage, the feature-extraction modules are frozen and only the final classifier is updated to refine the decision boundaries among faulted line sections. The separate paired multi-seed comparison between scGNN and AM-STGNN follows a 24-epoch schedule, consisting of 12 epochs of full-model optimization and 12 epochs of classifier-only refinement, whereas the strictly matched baseline comparison follows the 44-epoch schedule defined above. Unless otherwise specified, the random seed is set to 842 and is consistently applied to Python, NumPy, PyTorch, and CUDA-related random processes.
AM-STGNN contains 2,163,585 trainable parameters. Computational profiling is conducted using the actual IEEE 123-node data rather than synthetic inputs. Under the 24-epoch profiling setting, the total training time is approximately 1250.6 s. With an evaluation batch size of 16, the average inference time is 378.8484 ms per batch, corresponding to 23.6780 ms per sample, and the peak GPU memory consumption is 586.97 MB.
For the reproduced scGNN baseline, the GraphSAGE/GAT architecture from the source implementation is retained. It consists of three graph-encoding layers and employs mean neighborhood aggregation. Its training configuration is independently selected from the predefined graph-model search space using validation Macro-F1. The validation-selected configuration uses Adam with a learning rate of 0.001, a weight-decay coefficient of 0.005, a batch size of 8, and an aggregation window of 5:20. The model is trained for 44 outer epochs, consisting of 24 supervised-training epochs and 20 classifier-only refinement epochs. The checkpoint at epoch 43 achieves the highest validation Macro-F1 of 0.5543 and is used for the final independent-test evaluation.
Each scGNN input contains 20 sampling steps, 128 node positions, and 12 electrical features per node. The same 32 observation nodes are retained, while the features of uninstrumented nodes are represented by fixed zero placeholders. scGNN independently applies graph encoding and fault-location classification to each sampling step and averages the resulting class probabilities over the fault-response window . Therefore, it uses the complete fault-transient sequence but does not explicitly model cross-time state evolution using a recurrent, transformer, or state-space temporal encoder. The final model is selected according to the best recorded performance during training. It contains 1,093,568 trainable parameters. Under the unified profiling protocol, its average inference time is 8.4035 ms per sample, and its training-step latency is 327.57 ms per batch.
For the additional extended long short-term memory (xLSTM) baseline, six predefined candidate configurations are compared. The investigated settings include the representation dimension, temporal-window starting point, normalization strategy, learning rate, dropout rate, and the use of regularization and data augmentation. All configurations use AdamW with a weight-decay coefficient of , a batch size of 64, a maximum of 60 epochs, a minimum of 20 epochs, an early-stopping patience of 10 epochs, cosine learning-rate annealing, and a gradient-clipping threshold of 2.0.
The selected xLSTM configuration uses a representation dimension of 96, two mLSTM blocks, four attention heads, a projection factor of 2, and a convolution kernel width of 4. A learning rate of , a dropout rate of 0.1, and a label-smoothing coefficient of 0.02 are adopted. The complete temporal window is retained. For each scenario, the 12-dimensional measurements of the 32 observation nodes are organized into a 20-step sequence. The standardized raw measurements are concatenated with their differences relative to the first sampling step, resulting in a 768-dimensional input at each time step. This input is projected to a 96-dimensional representation before being processed by the two mLSTM blocks. The classifier combines the representation at the final sampling step with an attention-pooled sequence representation.
The six xLSTM configurations are ranked according to validation Macro-F1. The selected configuration reaches its highest validation Macro-F1 at epoch 39, and the final training length is set to 40 epochs. The resulting xLSTM model contains 233,896 trainable parameters. The six configuration trials require 3515.348 s in total, while the three final training and testing runs require an additional 1064.342 s.
For gated transformer network (GTN), a fixed sequence-model search space is used, including learning rates of 0.001 and 0.002, AdamW and Adam optimizers, and one or two representation layers. The hidden dimension, batch size, dropout rate, weight-decay coefficient, and total training budget are fixed to 128, 32, 0.1, 0.0005, and 50 epochs, respectively. The selected configuration uses Adam with a learning rate of 0.001 and two representation layers. It reaches its highest validation Macro-F1 of 0.2013 at epoch 26, and the corresponding checkpoint is used for the final independent-test evaluation.
GCN and Graph Attention Network v2 (GATv2) + GCN are independently optimized using the common graph-model search space, which includes learning rates of 0.0005 and 0.001, AdamW and Adam optimizers, and aggregation windows of 5:20 and 7:20. Both models use a batch size of 8, a weight-decay coefficient of 0.005, and a total of 44 outer epochs, comprising 24 supervised-training epochs and 20 classifier-only refinement epochs. For GCN, the validation-selected configuration uses AdamW with a learning rate of 0.001 and an aggregation window of 5:20. The highest validation Macro-F1 is 0.5473 at epoch 30. For GATv2 + GCN, the selected configuration uses Adam with a learning rate of 0.001 and an aggregation window of 5:20, and its highest validation Macro-F1 of 0.4834 is obtained at epoch 25.
PPGN is optimized using the same validation-only graph-model-selection procedure. Its selected configuration uses AdamW with a learning rate of 0.001, a weight-decay coefficient of 0.005, a batch size of 8, and an aggregation window of 7:20. PPGN is trained for 44 outer epochs, including 24 supervised-training epochs and 20 classifier-only refinement epochs. During classifier-only refinement, AdamW is used with a learning rate of 0.001 and a weight-decay coefficient of 0.0005. The checkpoint at epoch 26 achieves the highest validation Macro-F1 of 0.9319 and is, therefore, selected for the final independent-test evaluation.
All experiments are implemented in Python 3.12.3 and PyTorch 2.7.0 with CUDA 12.8 support. The computational platform is equipped with an NVIDIA GeForce RTX 3080 Ti GPU.
4.2. Comparative Performance, Statistical Validation, and Computational Cost
4.2.1. Performance Comparison of Different Fault-Location Methods
To further demonstrate the fault-location performance of the proposed method, six different types of fault-location methods are employed for comparative investigation, including the gated transformer network (GTN) [28], graph convolutional network (GCN) [23], GATv2 + GCN based on Graph Attention Network v2 (GATv2) [29], physics-preserved graph network (PPGN) [17], spatiotemporal correlation graph neural network (scGNN) [19], and extended long short-term memory network (xLSTM) [30]. These methods cover transformer-based sequence modeling, graph convolution, graph-attention learning, physics-preserved graph modeling, spatiotemporal graph learning, and advanced recurrent temporal modeling.
The present study is developed on the basis of the IEEE 123-node fault-location task established in the preceding work [19]. The same distribution-network system, observation-node configuration, electrical input features, fault labels, and evaluation metrics are retained to maintain task consistency. However, the results of GTN, GCN, GATv2 + GCN, and PPGN reported in this study are not inherited from the preceding work. All four models are reimplemented and rerun in the present revision.
These models are evaluated using the same fixed train/validation/test partition, preprocessing procedure, observation rate, input data, evaluation scripts, software environment, and hardware platform as the other compared methods. Their model-specific configurations are independently selected using validation Macro-F1 according to the procedure described in Section 4.1.2. The independent-test set is excluded from hyperparameter tuning and checkpoint selection, and only the validation-selected checkpoint of each model is evaluated once on the test set. Therefore, the results reported for GTN, GCN, GATv2 + GCN, and PPGN represent newly generated independently optimized results under the current experimental environment.
In addition to these four rerun and independently optimized baselines, scGNN is reproduced using its source implementation, and xLSTM is introduced as an additional temporal-modeling baseline. Their model-specific configurations are also selected using the validation set, while the independent-test set remains unavailable during model selection. The reproduced scGNN retains the GraphSAGE/GAT graph encoder and independently processes each of the 20 sampling steps before aggregating the prediction probabilities over . The xLSTM baseline directly encodes the complete 20-step sequence using two mLSTM blocks and combines raw measurement features with temporal-difference features. AM-STGNN is evaluated using the same IEEE 123-node task, the same 25% observation rate, and the same electrical measurement information. The distinction between the independently optimized and strictly matched protocols clarifies the origin and purpose of the two sets of reported results.
Under the reported comparison setting, AM-STGNN achieves a Macro-F1 of 0.9684, an Acc of 0.9711, and an Acc 1-hop of 0.9938. These results demonstrate that the proposed method maintains high exact fault-location accuracy while confining most remaining localization deviations to the immediate topological neighborhood of the true faulted section.
Figure 6 reports the independent-test results obtained using the validation-selected configuration of each model. Under this independently optimized protocol, AM-STGNN demonstrates competitive overall performance. GTN and xLSTM primarily focus on temporal dependency modeling without explicitly exploiting the electrical topology of the distribution network, which limits their ability to distinguish faulted line sections with similar transient responses. In contrast, AM-STGNN introduces adaptive implicit topology learning to construct data-driven electrical dependencies among sparsely observed nodes, thereby incorporating spatial coupling information into temporal fault-feature representations. Although GCN and GATv2 + GCN incorporate graph-structured spatial information, their local neighborhood aggregation mechanisms are insufficient to fully capture fault-related temporal evolution and long-range spatiotemporal interactions. AM-STGNN addresses this limitation by combining Mamba-based selective temporal modeling with global spatiotemporal interaction, enabling the simultaneous extraction of fault-induced transient dynamics and long-range dependencies among node–time representations. PPGN preserves the predefined physical topology of the distribution network; however, its reliance on a fixed graph structure limits its adaptability to fault-dependent latent electrical couplings. By jointly exploiting the physical topology and a learnable implicit topology, AM-STGNN can adaptively adjust spatial dependencies according to the observed fault responses.
Figure 6.
Performance indicators of different fault-location methods.
Among the six comparison methods, scGNN achieves the strongest overall baseline performance and is, therefore, selected for further comparison with AM-STGNN. Specifically, scGNN obtains Macro-F1, Acc, and Acc 1-hop values of 0.9674, 0.9662, and 0.9703, respectively, whereas AM-STGNN achieves 0.9684, 0.9711, and 0.9938 under the same IEEE 123-node baseline-comparison setting. AM-STGNN, therefore, outperforms scGNN across all three metrics. The improvement in Acc 1-hop is particularly pronounced, indicating that AM-STGNN provides greater localization stability when topologically adjacent line sections exhibit similar transient responses and are, therefore, prone to confusion.
A subsequent hyperparameter sensitivity analysis further reveals a slight trade-off between exact localization performance and one-hop-tolerant accuracy. An alternative configuration achieves a Macro-F1 of 0.9745, an Acc of 0.9758, and an Acc 1-hop of 0.9891, indicating that the exact localization metrics can be further improved through parameter adjustment. The configuration reported in Figure 6 achieves a higher Acc 1-hop of 0.9938, while maintaining competitive Macro-F1 and Acc values of 0.9684 and 0.9711, respectively. These results indicate that different hyperparameter settings may produce different relative performance patterns across the three evaluation metrics. It should be emphasized that this sensitivity analysis is used only to examine the effects of parameter variation. The configuration reported in Figure 6 is selected exclusively according to validation Macro-F1 under the predefined model-selection protocol, and the independent-test metrics are not used during configuration selection. The resulting Acc 1-hop of 0.9938 further demonstrates that AM-STGNN can effectively exploit spatiotemporal features to confine residual misclassifications to a limited topological neighborhood, which helps narrow the candidate range for subsequent fault inspection.
The error analysis further shows that the remaining errors of AM-STGNN are mainly concentrated among a small number of faulted line sections with adjacent topologies or similar response characteristics, rather than being distributed as large-scale misclassifications among unrelated sections. This indicates that AM-STGNN can provide correct fault location results in most fault scenarios, and that the residual errors mainly arise from samples with close decision boundaries and highly similar features, rather than from insufficient overall discrimination capability.
Overall, AM-STGNN achieves the best overall performance among the reported graph-based and sequence-based fault-location methods under the common IEEE 123-node baseline framework. The results demonstrate that the proposed framework can effectively improve both exact fault-section identification and topological localization stability under low-observability conditions.
In addition to the independently optimized comparison presented in Figure 6, the compared models are further evaluated under the strictly matched protocol defined in Section 4.1.2. The corresponding independent-test results are summarized in Table 1. This comparison controls the effects of unequal training epochs, optimizers, batch sizes, temporal windows, and classifier-refinement strategies, thereby providing a more controlled assessment of architectural competitiveness.
Table 1.
Strictly matched comparison on the IEEE 123-Node System.
As shown in Table 1, AM-STGNN achieves the highest Macro-F1, Acc, and 1-hop Acc under the strictly matched protocol, reaching 0.8686, 0.8695, and 0.9203, respectively. Compared with scGNN, the corresponding improvements are 0.0594, 0.0601, and 0.0391. AM-STGNN also consistently outperforms GCN, GATv2 + GCN, GTN, and PPGN under the same training and model-selection settings. These results indicate that the performance advantage of AM-STGNN cannot be attributed solely to unequal training budgets or optimization strategies.
Figure 6 and Table 1 provide complementary comparisons: Figure 6 reports the performance obtained using each model’s independently optimized, validation-selected configuration, whereas Table 1 evaluates the major models under strictly matched conditions. The results obtained under the two protocols are, therefore, reported separately and are not directly compared.
In the preceding IEEE 123-node comparison, multiple fault-location methods were compared, and the relative limitations of the competing approaches were analyzed based on the corresponding results. To avoid unnecessary experimental redundancy and an unnecessary computational burden, the subsequent comparative analyses retain only scGNN, which achieves the best overall performance among all baseline methods, as the representative baseline.
4.2.2. Statistical Significance and Repeatability Analysis
Although the single-run improvements of AM-STGNN over scGNN in Macro-F1 and Acc are relatively modest, the improvement in Acc 1-hop is more pronounced and practically meaningful for adjacent-section localization. To further determine whether the observed performance advantage is robust to random initialization and stochastic optimization, a paired multi-seed analysis is conducted below under a unified controlled protocol.
Specifically, scGNN and AM-STGNN are independently trained from scratch using ten random seeds. For each paired experiment, the two models use the same random seed, data split, observation-node configuration, training budget, and model-selection criterion. Each experiment consists of 24 training epochs, including 12 epochs of full-model optimization followed by 12 epochs of classifier-only refinement. For each evaluation metric, the mean and standard deviation over the ten independent runs are reported. The mean paired difference and its 95% confidence interval are further calculated based on the results obtained under the same random seeds. In addition, a paired -test and a Wilcoxon signed-rank test are conducted to evaluate the statistical significance of the performance differences, with the significance level set to 0.05.
As shown in Table 2, AM-STGNN consistently outperforms scGNN across all three metrics under the unified controlled protocol. The mean improvements in Macro-F1, Acc, and Acc 1-hop are 0.1099, 0.1022, and 0.0677, respectively. More importantly, the corresponding 95% confidence intervals are entirely above zero, indicating that the performance advantage remains stable across different random initializations and is not dominated by a small number of individual runs.
Table 2.
Paired multi-seed comparison of scGNN and AM-STGNN.
For Macro-F1, Acc, and Acc 1-hop, the paired -test yields -values of , , and , respectively. The Wilcoxon signed-rank test produces a -value of 0.001953 for all three metrics. Since all -values are lower than the significance threshold of 0.05, the hypothesis that no systematic performance difference exists between the two models can be rejected. The consistent conclusions obtained from both the parametric and non-parametric tests further confirm that the performance improvement of AM-STGNN is statistically significant.
In addition, AM-STGNN exhibits lower standard deviations than scGNN for all three metrics, and the paired Macro-F1 difference remains positive under all ten random seeds. These results indicate that the proposed method is less sensitive to random initialization and stochastic optimization and consistently outperforms scGNN across independent runs.
It should be noted that Table 2 reports the results obtained under the unified 24-epoch protocol specifically designed for statistical evaluation, whereas Figure 6 presents the results under the baseline-comparison protocol. Therefore, their absolute values should not be directly compared. Nevertheless, the confidence intervals and both statistical tests confirm that the performance advantage of AM-STGNN under controlled conditions is repeatable and statistically significant.
4.2.3. Computational Cost and Practical Applicability
Following the fault-location performance and statistical analyses, the accuracy–cost trade-off of AM-STGNN is further evaluated to provide a more comprehensive assessment of its practical applicability. As discussed in Section 4.2.1, scGNN achieves the best overall performance among the considered baseline methods and is, therefore, retained as the representative comparison model. To ensure a fair comparison, both models are profiled under the same hardware environment, input dimensions, batch size, and timing protocol. The results are summarized in Table 3.
Table 3.
Computational cost comparison between scGNN and AM-STGNN.
As shown in Table 3, AM-STGNN contains approximately 1.98 times the number of trainable parameters and 2.00 times the model size of scGNN. Its single-sample inference latency and single-batch training-step latency are approximately 2.82 and 3.74 times those of scGNN, respectively. This additional computational cost is introduced not by redundant model expansion but results from the explicit modeling of several factors that are critical to fault location under low-observability conditions. Specifically, adaptive-topology learning captures latent electrical coupling relationships among sparse observation nodes, the Mamba module characterizes the temporal evolution of fault transients, STGformer establishes long-range node–time dependencies, and the gated fusion and topology-aware differential head enhance feature integration and adjacent-section discrimination.
It should also be emphasized that the STGformer module employs kernel-decomposed linear attention to avoid explicitly constructing a complete pairwise attention matrix. Therefore, although the complete AM-STGNN remains computationally heavier than the relatively lightweight scGNN baseline, STGformer limits the additional cost introduced by global spatiotemporal interaction and provides more favorable scalability than standard quadratic self-attention.
The increased training cost mainly affects the offline model-development stage and does not directly increase the response time during online deployment. Once training is completed, only forward inference is required for fault-location diagnosis. Despite its more comprehensive architecture, AM-STGNN requires approximately 23.6780 ms per sample on a GPU, remaining within the millisecond-level range. Since distribution-network fault location is generally a post-fault diagnostic task rather than a high-frequency closed-loop control task, this inference latency is acceptable for rapid diagnosis on distribution automation master stations, control-center servers, or edge-computing platforms.
More importantly, the additional computational cost is accompanied by improved fault-location performance. Compared with scGNN, AM-STGNN increases Acc from 0.9662 to 0.9711 and Acc 1-hop from 0.9703 to 0.9938, corresponding to a 2.35-percentage-point improvement in topology-tolerant localization accuracy. Combined with the robustness results reported in the subsequent experiments, these findings indicate that AM-STGNN achieves a practical trade-off between computational efficiency, localization accuracy, and robustness. Therefore, the increased computational cost can be regarded as a reasonable expense for obtaining more comprehensive spatiotemporal representations and more reliable fault-location results under low-observability conditions.
4.3. Influence of Observation Rate, Sensor Placement, and Extreme Measurement Missingness
The preceding experiments are conducted under the default 25% observation setting. However, in practical distribution networks, the number and spatial distribution of measurement devices may vary significantly due to installation cost, communication constraints, maintenance conditions, and sensor failures. Therefore, it is necessary to further evaluate whether the proposed AM-STGNN can maintain reliable fault-location performance under different observability levels, sensor-placement conditions, and incomplete measurement scenarios.
To this end, five observation rates are considered in the IEEE 123-node system, namely 15%, 25%, 35%, 45%, and 55%, corresponding to 19, 32, 45, 58, and 70 observation nodes, respectively. For each observation rate, the corresponding observation-node set is kept fixed during training, validation, and testing to ensure a fair comparison under the same observability condition. The features of all non-observation nodes are masked to zero. Higher observation-rate settings preserve the observation basis of lower-rate settings while introducing additional spatially distributed measurement nodes. In this way, the effects of both the number and spatial placement of observation nodes on fault-location performance can be jointly analyzed.
Compared with the default 25% observation setting, the 15% setting represents a sparser sensor-deployment condition, whereas the 35%, 45%, and 55% settings introduce more distributed observation nodes along the feeder. The few-sensor and regional-dropout scenarios further represent two more severe cases of incomplete measurements, corresponding to globally sparse sensing and local regional measurement loss, respectively.
As shown in Table 4, AM-STGNN maintains reliable fault-location performance under all observation rates. In addition, the Acc and Acc 1-hop values of AM-STGNN generally increase as the number of available measurement nodes increases.
Table 4.
Fault-location performance under different observation rates.
When the observation rate is reduced to 15%, only 19 observation nodes are available in the system, making the fault-location task substantially more challenging. Even under this highly sparse observation condition, AM-STGNN still achieves a Macro-F1 of 0.9440, an Acc of 0.9469, and an Acc 1-hop of 0.9758. This indicates that the proposed method can effectively extract fault-related features from limited nodal measurements. As the observation rate increases from 15% to 55%, the overall performance of AM-STGNN improves. Specifically, Macro-F1 increases from 0.9440 to 0.9919, Acc increases from 0.9469 to 0.9930, and Acc 1-hop increases from 0.9758 to 1.0000. This trend demonstrates that the proposed model can adapt to different sensor-deployment densities and effectively exploit the additional information brought by improved observability, thereby enhancing fault-location performance.
It should be noted that the 25% result in this observation-rate sensitivity analysis differs slightly from the default 25% result reported above. The difference arises from independent training runs and the stochastic nature of neural-network optimization, including random parameter initialization, mini-batch shuffling, dropout operations, and possible non-deterministic GPU computations. Therefore, slight numerical variations between different runs under the same observation rate are expected. The focus of this analysis is the overall performance trend under different observation rates rather than the exact reproduction of a single run.
In addition to different observation rates, two more severe missing-measurement scenarios are further considered to evaluate model robustness. The first is the few-sensor scenario, in which only 13 effective observation nodes are retained, representing an extremely sparse monitoring condition. The second is the regional-dropout scenario, in which measurements in a local region are unavailable, leaving 24 effective observation nodes. This setting is used to simulate local communication interruption, sensor failure, or concentrated data loss in a specific feeder area.
As shown in Figure 7, the fault-location performance decreases when the available measurement information becomes severely incomplete. Nevertheless, AM-STGNN still maintains a clear advantage over scGNN in terms of Macro-F1. In the few-sensor scenario, AM-STGNN improves the Macro-F1 from 0.5287 to 0.7382 compared with scGNN, while still achieving an Acc 1-hop of 0.8102 under severely limited measurement conditions. In the regional-dropout scenario, AM-STGNN achieves a Macro-F1 of 0.8267, an Acc of 0.8359, and an Acc 1-hop of 0.8938, further indicating that the proposed model remains effective when local measurement information is unavailable.
Figure 7.
Robustness under extreme measurement-missing scenarios.
These results demonstrate that the proposed method is more robust to sparse and spatially incomplete measurements. This advantage can be attributed to three aspects. First, adaptive implicit topology learning can reconstruct latent correlations among the remaining observation nodes, thereby reducing the dependence on a fixed sensor layout. Second, Mamba-based selective temporal scanning enhances the extraction of short-term transient features from limited measurement sequences. Third, the topology-aware differential output further improves the discrimination between adjacent faulted line sections, even when part of the spatial measurement information is missing.
4.4. Additional-System Validation and Robustness Analysis
The additional fault-location experiments in this section are conducted under dataset-specific training and evaluation protocols. For each distribution-system dataset, AM-STGNN and scGNN are independently initialized, trained using the corresponding training partition, and evaluated on its held-out test partition. Therefore, these experiments assess the applicability of the proposed architecture under different network scales, phase-unbalance conditions, and measurement backgrounds.
4.4.1. Evaluation on the Portuguese Rural Distribution-Network Model
To further evaluate whether the proposed architecture remains effective under engineering characteristics different from those of the standard IEEE test feeders, a simulation-based case study is conducted using the open-source low-voltage active distribution-network model reported in [9]. The network is implemented in MATLAB/Simulink R2024a and represents a rural distributed energy system associated with Portugal. It adopts a three-phase four-wire configuration with the neutral grounded through an arc-suppression coil and comprises 33 voltage-metering nodes, 48 consumer loads, five photovoltaic generation units, three main feeders, and 32 candidate faulted lines. This experiment constitutes simulation-based validation on a rural distribution-network model with different engineering characteristics.
The original consumer-load and photovoltaic active-power profiles have a temporal resolution of one minute and are interpolated to five-second operating points to increase the diversity of the simulated operating conditions. During data preparation, nonpositive or abnormally low load values are replaced using the corresponding mean value or the preceding valid operating value, while negative photovoltaic outputs are clipped to zero. During each simulation run, the consumer loads vary between two adjacent operating points, thereby introducing time-varying load conditions rather than maintaining a completely static operating state.
For each fault scenario, the faulted line and the faulted section within that line are selected from the 32 candidate lines. The fault type, fault resistance, fault-inception time, and fault duration are also varied by the scenario generator. The source simulation system supports one healthy condition and eleven phase-specific short-circuit configurations, namely A-G, B-G, C-G, A-B, B-C, A-C, A-B-G, B-C-G, A-C-G, A-B-C, and A-B-C-G. In the processed dataset used in this study, these fault configurations are organized into four physical categories: single-phase-to-ground faults, phase-to-phase faults, phase-to-phase-to-ground faults, and three-phase faults. The learning target is the faulted line rather than the fault category, resulting in 32 fault-location classes.
The fault resistance is randomly generated from a log-normal distribution. The fault duration is generated from a Weibull distribution and constrained to be longer than 20 ms, while the fault-inception time is randomly selected within the valid simulation interval. Each MATLAB/Simulink run lasts approximately 5 s, with an internal simulation step of 0.5 ms. The three-phase voltage and current signals are exported at a sampling interval of 20 ms. After removal of the initial simulation output point, each fault scenario contains 250 recorded sampling instants.
The raw record of each scenario contains the three-phase voltages measured at the 33 voltage-metering nodes and the three-phase currents measured at three current-monitoring locations. Therefore, each sampling instant initially contains 99 voltage channels and nine current channels. For AM-STGNN, these signals are reorganized according to their physical measurement locations into a node-aligned temporal tensor, where the three dimensions correspond to the sampling instants, network nodes, and electrical features, respectively. The six node-level features are the three-phase voltage and three-phase current signals. The available current channels are assigned to their corresponding monitoring nodes, while the current features at nodes without current-monitoring devices are set to zero. This representation preserves a fixed node dimension and maintains alignment with the physical network topology.
Several preprocessing and data-quality-control operations are performed before model training. The first simulation output point is removed to reduce the influence of the initial numerical settling process. Non-finite values are detected channel by channel. If a non-finite value occurs at the first retained sampling instant, it is replaced by zero; if it occurs at a subsequent sampling instant, it is replaced by the preceding valid value. The processed records are then checked for complete and consistent sequence length, finite numerical values, valid fault-location labels, and consistent measurement-channel ordering. The dataset used in this experiment is a processed subset of the simulation-generated fault pool. After excluding the healthy condition and retaining only records that satisfy the above preprocessing and quality requirements, 11,483 valid fault scenarios are used, covering all 32 fault-location classes and the four aggregated physical fault categories.
The final dataset is divided into training and test sets at the complete-scenario level, with 70% of the fault scenarios used for feeder-specific training and the remaining 30% retained for testing. All sampling instants originating from the same MATLAB/Simulink run are assigned to the same partition, thereby preventing temporal records from the same simulated event from appearing in both the training and test sets. AM-STGNN and scGNN are independently initialized and trained on this rural-network simulation dataset. Both models use the same scenario partition, feature-construction procedure, observation setting, and evaluation metrics to ensure a fair comparison.
The observation rate is set to 25%. The electrical features of the selected observation nodes are retained, whereas all corresponding features of the non-observation nodes are masked to zero. This setting evaluates whether the two models can identify the simulated faulted line from spatially incomplete fault-transient information.
As shown in Figure 8, AM-STGNN achieves an Acc of 95.2685%, a Macro-F1 of 95.2581%, and an Acc 1-hop of 96.0522%. The corresponding results of scGNN are 94.6589%, 95.0135%, and 95.4427%, respectively. Therefore, AM-STGNN improves Acc, Macro-F1, and Acc 1-hop by 0.6096, 0.2446, and 0.6096 percentage points, respectively. Although the improvements are relatively moderate, AM-STGNN consistently outperforms scGNN across all three evaluation metrics under the same simulation, preprocessing, and feeder-specific training protocol.
Figure 8.
Fault-location performance in the rural distribution-network simulation case study.
The improvement in Acc indicates that AM-STGNN more accurately identifies the simulated faulted line, while the higher Acc 1-hop indicates that a larger proportion of the remaining prediction errors are confined to the true faulted line or its immediate topological neighborhood. These results indicate that, when trained using feeder-specific simulation-generated samples, the proposed architecture can effectively exploit sparse fault-transient features and achieve reliable fault-location performance on a MATLAB/Simulink network model with a different grounding mode, network structure, load distribution, and photovoltaic integration.
Overall, the results demonstrate that the AM-STGNN architecture can be independently trained and effectively evaluated on a MATLAB/Simulink model representing a Portuguese rural distributed energy system beyond the standard IEEE test feeder used in the main experiment. This experiment provides supplementary evidence of the feeder-specific applicability of the proposed architecture under different simulation-based engineering characteristics.
4.4.2. Evaluation on the Rural Distribution Network
To further evaluate the performance of the proposed architecture on a larger-scale feeder and under more spatially heterogeneous phase-unbalanced operating conditions, an additional faulted line-section localization experiment is conducted using the Rural dataset [31]. Compared with the IEEE 123-node system used in the main experiment, the rural-network representation used in this experiment contains 1081 modeled nodes and 811 candidate faulted line sections. The source network contains 4650 bus records, 4291 lines, 322 switches, 68 transformers, and 2731 m. The available operating data comprise 168 hourly active- and reactive-power points for each meter profile, corresponding to seven days of operating records.
Among the 2731 m, 699, 734, and 732 are connected to phases A, B, and C, respectively, whereas 566 are three-phase meters. Single-phase meters, therefore, account for approximately 79.27% of all meters. Although the numbers of meters connected to the three individual phases are relatively balanced at the system level, their spatial locations, node-level load profiles, and phase-specific operating states are heterogeneous. Consequently, the Rural network provides a more strongly phase-unbalanced and operationally heterogeneous setting than a nominally balanced standard test feeder.
In the Rural network, active- and reactive-power profiles are directly mapped to network nodes through the available meter, phase, and bus relationships. A single-phase profile is assigned only to its corresponding phase. For a three-phase meter, the active and reactive powers are distributed equally among phases A, B, and C. Nodes without directly mapped profiles retain zero baseline loads. The active- and reactive-power values are normalized using their respective global 95th percentiles of absolute magnitude and are subsequently clipped to the interval to reduce the influence of extreme values.
An observation rate of 25% is selected in this experiment. The electrical features of the observation nodes are retained, whereas the corresponding features of the non-observation nodes are masked to zero. This configuration is consistent with the low-observability setting used in the main IEEE 123-node experiment and prevents the observation nodes from being excessively concentrated in a limited local region.
The original Rural dataset provides network topology, equipment records, meter-phase information, and hourly active- and reactive-power profiles, but it does not contain field-recorded fault transients, fault-inception times, fault resistances, or labeled faulted line sections. Therefore, controlled proxy line-fault responses are constructed using the Rural network topology, mapped operating profiles, and phase information.
Based on the approximately radial topology of the Rural network, 811 spatially distributed candidate faulted line sections are defined. Each candidate line section corresponds to the unique upstream incident line of a non-root node and is assigned an independent fault-location label. Consequently, the experiment is formulated as an 811-class faulted line-section localization task.
For a candidate faulted line section, , the topological distance from an arbitrary node to the faulted line is defined as
where and denote the shortest topological distances from node to the two endpoints of the candidate line section.
The proxy response at node and time step is then expressed as
where denotes the time-varying fault-severity profile, and denotes the scenario-specific severity or equivalent-resistance factor. The proxy event begins at the seventh time step. The response first increases toward its peak and then gradually decreases. Five severity or equivalent-resistance levels are considered. The faulted phase receives the complete response, whereas each nonfaulted phase receives a reduced coupled response. A small zero-mean Gaussian perturbation is further introduced to represent limited random measurement variation.
The proxy response is applied to the voltage magnitude, voltage-angle-related quantity, current magnitude, and current-angle-related quantity of each phase. Each sample is, therefore, represented as a tensor with 20 time steps, 1081 nodes, and 12 phase-specific electrical features. The 12 features consist of three-phase voltage magnitudes, three-phase voltage-angle-related quantities, three-phase current magnitudes, and three-phase current-angle-related quantities.
Ten operating scenarios are generated for each of the 811 candidate faulted line sections, producing a total of 8110 samples. For each faulted line-section class, six scenarios are assigned to the training set, two to the validation set, and two to the test set. The resulting training, validation, and test sets contain 4866, 1622, and 1622 samples, respectively. Each subset, therefore, contains samples from all 811 candidate line-section classes. The validation set is used for checkpoint selection, whereas the test set is not used for model selection or hyperparameter tuning.
Both scGNN and AM-STGNN are trained for at most 60 epochs. The two models use the same line-section labels, input samples, data partition, observation-node configuration, preprocessing procedure, and evaluation metrics. For each model, the checkpoint with the highest validation Macro-F1 is selected. If multiple checkpoints achieve the same validation Macro-F1, validation exact accuracy and validation Acc 1-hop are used successively as secondary selection criteria. The selected checkpoint is frozen before one final evaluation is conducted on the test set.
As shown in Figure 9, AM-STGNN consistently outperforms scGNN across all three evaluation metrics on the Rural dataset. Specifically, the Macro-F1 increases from 64.21% to 92.22%, the exact accuracy increases from 70.83% to 93.75%, and the Acc 1-hop increases from 79.17% to 97.92%, corresponding to absolute improvements of 28.01, 22.92, and 18.75 percentage points, respectively. The substantial improvement in Macro-F1 indicates that AM-STGNN achieves more balanced localization performance across different faulted line-section classes. The improvement in exact accuracy demonstrates that the model more effectively distinguishes candidate line sections with similar electrical responses, while the higher Acc 1-hop indicates a considerable reduction in predictions falling outside the immediate topological neighborhood of the true faulted line.
Figure 9.
Faulted line-section localization performance on the rural dataset.
Overall, the results demonstrate that the explicit temporal modeling and global spatiotemporal representation mechanisms of AM-STGNN remain effective on a substantially larger feeder with stronger phase-specific load heterogeneity and nonuniform node-level operating conditions. Compared with scGNN, AM-STGNN exhibits clear advantages in class-balanced performance, exact faulted line-section identification, and topology-tolerant localization. These findings provide further evidence that the proposed architecture can be independently trained and effectively applied to distribution networks with different scales and phase-unbalance characteristics.
4.4.3. Fault-Location Evaluation on the SoCal 28-Bus System
To further evaluate the applicability of the proposed architecture under actual distribution-system measurement conditions, an additional experiment is conducted using the SoCal 28-Bus dataset released by California Institute of Technology Netlab [32]. The measurements were collected from an operating microgrid and distribution-system environment in Southern California. The dataset contains field-measured voltage and current quantities, synchronized phasors, point-on-wave signals, and an anonymized representation of the network topology. The synchronized phasors and topology information are used in the present experiment.
The field measurements were obtained through voltage transformers, current transformers, and eGauge measurement devices. The correspondence between measurement registers and physical network elements is determined from the topology metadata. Voltage channels are generally represented by L1, L2, and L3. Depending on the instrument configuration, current channels are represented by CT1, CT2, and CT3, or by S1, S2, and S3. Because the numerical channel order does not always correspond directly to phases A, B, and C, the phase assignments are determined from the recorded equipment relationships rather than inferred solely from channel names.
The synchronized phasor measurements contain voltage and current magnitudes together with their fundamental phase angles. All valid measurements are aligned to a uniform 10-s temporal grid over a common seven-day measurement interval, resulting in 60,480 synchronized measurement instants. This temporal resolution retains variations in system loading, measurement conditions, and operating points over the observation period.
The original physical topology contains 187 bus objects, 58 lines, 38 switches, 57 circuit breakers, 18 transformers, and 22 eGauge meters. After zero-impedance connections and electrically equivalent buses are merged, the electrical graph contains 32 nodes and 33 edges distributed among three connected components. For the present experiment, 28 electrical nodes are selected using a deterministic measurement-centered procedure. Nodes with directly mapped measurements are retained preferentially, and the remaining nodes are selected according to their topological proximity to measured locations. The original electrical connectivity among the selected nodes is preserved, and the selection procedure does not use fault labels or model-performance information.
The measurement data are subsequently processed through channel mapping, temporal alignment, missing-value handling, normalization, and pre-event baseline correction. First, voltage and current channels are mapped to their corresponding electrical nodes and phases according to the equipment relationships in the topology information. Invalid or incomplete measurement records are excluded from subsequent processing.
Second, repeated measurements associated with the same node, phase, and electrical quantity are merged after temporal alignment. Short gaps of no more than three consecutive measurement instants are filled through linear interpolation. Long-duration gaps are not interpolated without restriction, thereby avoiding excessive reconstruction of unavailable measurements.
For spatially missing channels, the corresponding measurement from the topologically nearest valid node within the same connected component is used. When no valid channel is available within the component, physically neutral values are assigned. The per-unit voltage magnitude is set to 1, whereas the current magnitude and phase-angle variation are set to 0. This procedure uses only the network topology and the available measurements.
The voltage magnitudes are normalized using the temporal median of the corresponding node and phase:
and the normalized values are limited to the interval . The current magnitudes are normalized using their channel-wise 95th percentiles:
and are limited to the interval . This percentile-based normalization reduces the influence of abnormal relative values caused by lightly loaded circuits or oversized current-transformer ranges.
Because phase angles are periodic, a circular difference relative to the temporal median angle is used:
where denotes the temporal median angle of the corresponding channel. This operation avoids artificial discontinuities near the boundary.
Each sample contains 20 time steps, and the controlled fault response begins at the eighth time step. The mean value of the first seven time steps is used as the pre-event operating baseline:
where denotes the electrical-feature channel. The baseline correction reduces the influence of differences in loading level, measurement scale, and instrument operating point. After preprocessing, each input sample has a dimension of , containing normalized three-phase voltage and current magnitudes and phase-angle information over a 200-s measurement window.
Because event-level fault-location labels are not provided with the measured operating data, the synchronized phasors are used as pre-event operating backgrounds, and controlled topology-dependent fault responses are introduced to construct the supervised comparison task. Each of the 28 candidate locations is assigned 20 operating scenarios, resulting in 560 samples. The fault response begins at the eighth time step and attenuates with the shortest topological distance from the candidate fault location:
where is the shortest topological distance between node and candidate fault location , describes the temporal evolution of the response, and represents the scenario-specific severity factor. Five severity levels and different inter-phase coupling conditions are considered, together with small measurement perturbations generated using a fixed random seed.
The training, validation, and test sets are divided according to the chronological positions of the field-measured operating backgrounds. For each candidate location, 12 scenarios from the first 60% of the measurement period are used for training, four scenarios from the subsequent 20% are used for validation, and four scenarios from the final 20% are used for testing. The resulting training, validation, and test sets contain 336, 112, and 112 samples, respectively. This chronological partition reduces the possibility that adjacent operating backgrounds occur in different subsets.
Both scGNN and AM-STGNN are trained for at most 60 epochs using AdamW. The batch size is set to 28, the weight-decay coefficient is , and CosineAnnealingLR is used for learning-rate scheduling. The gradient norm is clipped to 5, and the random seed is set to 842. The final checkpoint of each model is selected according to the highest validation Macro-F1. When the validation Macro-F1 values are identical, validation accuracy and validation Acc 1-hop are used successively as secondary criteria. The selected checkpoint is then evaluated on the test set.
To improve optimization stability under the field-measurement setting, the spatial encoder and output head of AM-STGNN were initialized using the validation-selected scGNN checkpoint, while the temporal module was randomly initialized and subsequently fine-tuned. The field measurements retain practical data-quality characteristics, including synchronization uncertainty, measurement errors, occasional missing observations, sparse instrumentation, and nonuniform channel availability.
As shown in Figure 10, scGNN achieves a Macro-F1 of 96.28%, an accuracy of 96.43%, and an Acc 1-hop of 100%. AM-STGNN achieves corresponding values of 97.28%, 97.32%, and 100%, respectively. AM-STGNN, therefore, improves Macro-F1 and exact accuracy by 1.00 and 0.89 percentage points, while maintaining the same Acc 1-hop.
Figure 10.
Fault-location performance under SoCal field measurements.
The improvement in Macro-F1 indicates that AM-STGNN provides more balanced localization performance across the candidate fault classes. The higher exact accuracy shows that the temporal-modeling mechanism reduces confusion among candidate locations with similar spatial measurement responses. Although both models achieve 100% Acc 1-hop, AM-STGNN produces fewer exact localization errors and more accurately distinguishes electrically adjacent candidates.
Overall, the results demonstrate that AM-STGNN can effectively extract spatiotemporal representations from field-measured voltage and current data containing operating-point variation, measurement uncertainty, missing observations, and sparse instrumentation. Compared with scGNN, AM-STGNN achieves higher class-balanced performance and exact fault-location accuracy, further demonstrating the effectiveness of selective temporal modeling under field-measurement-informed operating conditions.
4.4.4. Robustness Under Individual and Joint Disturbances
In practical power-system monitoring, fault-transient data may be degraded by measurement uncertainty, communication delay and packet loss, temporal inconsistency, measurement-device or communication-channel outages, and topology-information errors. Synchrophasor data-quality studies attribute these problems to the combined effects of measurement devices, communication networks, and intermediate data concentrators. Field-oriented communication studies have also reported latency and data dropouts in synchrophasor transmission, while distribution-system monitoring research has considered unsynchronized and missing measurements, topology errors, and equipment outages [33,34].
The exact magnitudes and occurrence probabilities of these disturbances depend on the measurement devices, communication infrastructure, network configuration, and operating environment of a specific system. Therefore, the disturbances adopted in this study are designed as controlled, mechanism-informed robustness tests rather than as an exact reproduction of the empirical failure distribution of a particular field system. The evaluation is conducted in two stages. First, each disturbance is evaluated individually. Subsequently, the disturbances are combined into progressively intensified settings to assess model performance under concurrent information degradation.
All robustness experiments are conducted using the complete IEEE 123-node test set and the fixed AM-STGNN checkpoint selected in the main experiment. The observation-node configuration and the parameters of the original AM-STGNN remain unchanged. Unless otherwise stated, the disturbances are introduced only during test-time inference. Each condition is evaluated using five perturbation seeds, namely 842–846, and all 1280 test scenarios are evaluated under each seed. The reported means and standard deviations, therefore, reflect perturbation randomness and inference-time graph sampling rather than variations among independently trained checkpoints. The clean condition is evaluated using the same seeds and serves as the paired reference for the disturbed conditions.
- •
- Measurement Noise and Communication Delay.
Gaussian measurement noise is evaluated at levels of 0.01, 0.03, and 0.05 on the normalized electrical-feature scale. Measurement noise is considered because practical measurement accuracy may be affected by sensor characteristics, signal acquisition, and subsequent data-processing stages. The three values are selected as progressively increasing sensitivity-test levels rather than as physical error specifications for a particular measurement device.
Communication-induced measurement-arrival delay is simulated by shifting the sequence of each observation node backward by up to one or two sampling steps without circular wrapping. Because the sampling interval is 0.002 s, these settings correspond to maximum offsets of approximately 2 and 4 ms, respectively. The parameter values are determined from the temporal resolution of the model input and are used to evaluate sensitivity to short data-delivery delays rather than to represent a universal field-latency distribution.
As shown in Figure 11a, AM-STGNN remains stable under moderate measurement noise. Under the clean condition, the model achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of . At a Gaussian noise level of 0.01, the corresponding values are , , and . When the noise level increases to 0.03, AM-STGNN obtains , , and , respectively. Even at a noise level of 0.05, the three metrics remain , , and . The gradual rather than abrupt decrease indicates that moderate measurement noise does not substantially disrupt the learned fault representations.
Figure 11.
(a) Gaussian measurement noise; (b) communication delay.
As shown in Figure 11b, short communication delays have only a limited influence. With a maximum delay of one sampling step, AM-STGNN achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of . With a maximum delay of two sampling steps, the corresponding results are , , and . These results suggest that the temporal convolution, Mamba-based state evolution, and temporal prediction aggregation provide tolerance to short measurement-arrival delays.
- •
- Missing-Data Encoding and Packet-Loss Robustness.
Before introducing the missing-data experiments, the measurement-availability encoding is defined to distinguish temporarily missing-measurement packets, zero placeholders at uninstrumented nodes, and physically valid zero-valued measurements. The numerical measurement value itself is not used to determine whether a measurement is missing. Instead, the measurement state is determined from the known sensor-deployment map and the measurement-packet arrival record.
Let indicate whether node is equipped with a sensor, where denotes an instrumented node. Let indicate whether the complete measurement packet from node , sample , and time step is successfully received. Three mutually exclusive states are defined as
which satisfy
When the complete measurement packet from an instrumented node is successfully received, its actual normalized values are retained and . The same rule applies when one or more physically valid measurements in the packet are exactly zero. Therefore, a physically valid zero-valued measurement remains part of a valid packet and is not treated as missing.
When a sensor is installed, but its current measurement packet is unavailable, . For each of the 12 electrical features, the latest available value from the same node is used as the replacement. If the packet is missing before any valid measurement has been received, the mean of the corresponding feature calculated only from the training set is used.
When no sensor is installed at a node, , and the fixed zero placeholder used in the standard low-observability input is retained. This placeholder preserves the complete node dimension and its alignment with the distribution-network topology, but it is explicitly distinguished from both successfully received measurements and communication-induced packet loss.
Consequently, even when different input entries have the same numerical value of zero, their acquisition states remain distinguishable. Missingness is not inferred using a numerical condition, such as . A physical zero contained in a successfully received packet, an imputed value associated with a missing packet and a fixed placeholder at an uninstrumented node are identified using different state indicators.
The processed 12-dimensional electrical measurement vector is combined with the three state indicators and the normalized time elapsed since the latest valid packet:
where contains the 12 retained or temporally imputed electrical features. Each node and sampling instant is, therefore, represented by 16 quantities.
To preserve the original AM-STGNN architecture, the missing-aware representation is converted back to the original 12-dimensional input using a lightweight residual state adapter:
where
The matrices and are two bias-free linear mappings that generate state-dependent scale and offset corrections, respectively. The adapter contains only 96 trainable parameters. Both mappings are initialized with zero weights, so the adapter initially leaves the processed electrical input unchanged.
During adaptation, all parameters of the pretrained AM-STGNN backbone are frozen, and only the state adapter is optimized. This missing-aware variant is denoted as AM-STGNN-MA. It is used only in the packet-loss robustness analysis and does not replace the original AM-STGNN in the main fault-location comparison experiments.
The adapter is trained using 1024 training scenarios and selected using 256 validation scenarios. Training is performed for at most three epochs using Adam with a learning rate of 0.005 and a batch size of 64. Thirty percent of the training batches remain complete, while the remaining batches use node–time packet-loss rates randomly selected from 1%, 3%, 5%, 10%, and 20%. Model selection jointly considers the clean validation Macro-F1 and the average validation Macro-F1 under 3%, 5%, and 10% packet loss. The best validation score is obtained after the second training epoch. The test set is not used for adapter training or checkpoint selection.
Based on this measurement-state definition, two packet-level missing-data mechanisms are evaluated. First, random node–time measurement-packet loss is simulated at rates of 5%, 10%, and 20%. These values are selected to span progressively increasing levels of packet unavailability, with the 20% condition serving as a high-loss stress test. A lost packet means that all 12 electrical features from the same observation node and sampling instant are unavailable simultaneously. The packet-loss rate is calculated only over the packets originally available from the 32 observation nodes. Nodes without installed sensors are excluded because their measurements are unavailable by design rather than lost during communication.
Second, short-duration burst loss is simulated by making the complete 12-feature measurement packet from an observed node unavailable for four consecutive sampling steps. With a sampling interval of 0.002 s, this setting represents an 8 ms interval of consecutive packet unavailability. It is used to distinguish temporally correlated burst loss from independently generated random packet loss.
For each missing-data condition, the original AM-STGNN directly replaces an unavailable packet with zeros and serves as the zero-filling baseline. AM-STGNN-MA uses the same packet-loss masks but additionally receives the explicit acquisition-state indicators, the elapsed-time information, and the state-guided replacement values.
As shown in Figure 12, the original AM-STGNN remains stable under low and moderate node–time packet-loss rates. At a loss rate of 5%, the model achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of . At a loss rate of 10%, the corresponding values are , , and . When the packet-loss rate increases to 20%, the three metrics decrease to , , and , respectively.
Figure 12.
Fault-location robustness to node–time packet loss.
These results indicate that the original model can tolerate a certain proportion of complete measurement-packet loss. Nevertheless, its performance decreases as a larger number of spatial and temporal measurements become unavailable, particularly when the packet-loss rate reaches 20%.
AM-STGNN-MA exhibits greater stability as the packet-loss rate increases. At loss rates of 5%, 10%, and 20%, it achieves Macro-F1 values of , , and , respectively. Its corresponding Acc values are , , and , while its Acc 1-hop values are , , and .
Under the 20% packet-loss condition, AM-STGNN-MA improves Macro-F1, Acc, and Acc 1-hop over the original zero-filling baseline by 0.0353, 0.0323, and 0.0270, respectively. It also remains stable under four-step burst packet loss, achieving a Macro-F1 of , an Acc of , and an Acc 1-hop of .
These results demonstrate that explicit acquisition-state encoding and state-guided temporal replacement improve robustness to node–time measurement-packet loss and short-duration burst loss. More importantly, the state representation enables the model to distinguish temporarily missing packets from successfully received packets containing physically valid zero-valued measurements and from fixed placeholders at uninstrumented nodes.
- •
- Node-Wise Temporal Misalignment, Persistent Sensor Failures, and Graph-Information Corruption.
The third group of individual-disturbance experiments considers node-wise temporal misalignment, persistent sensor failures, and graph-information corruption.
Node-wise temporal misalignment is simulated by independently shifting the measurement sequence of each observation node within a maximum range of one or two sampling steps. This perturbation represents input-level temporal inconsistency caused by asynchronous data arrival, timestamp anomalies, sample-index mismatch, or buffer-alignment errors; it should not be interpreted as the physical clock-synchronization accuracy of a specific measurement device. The one- and two-step settings are determined from the 2 ms sampling resolution and provide progressively intensified sample-level misalignment tests.
Persistent sensor failure is simulated by removing all measurements from one, three, or five observation nodes throughout the complete 20-step fault-transient sequence. Relative to the 32 observation nodes, these settings correspond to the persistent loss of approximately 3.1%, 9.4%, and 15.6% of the spatial observations. They are used to represent a single-sensor contingency and progressively greater reductions in spatial observability.
Graph-information corruption is simulated by removing one or three edges from the graph supplied to the spatial encoder and renormalizing the remaining edge weights. One removed edge represents a localized graph-information inconsistency, whereas three removed edges provide a multi-location stress test. These perturbations approximate inconsistencies caused by incorrect switch-state reporting or delayed topology updates.
It should be emphasized that the graph-information experiment changes only the graph supplied to the model. The voltage and current measurements are not regenerated after an edge is removed. Therefore, this experiment evaluates the tolerance of AM-STGNN to incorrect or outdated graph information rather than its performance under a physically reconfigured distribution network.
As shown in Figure 13a, time-synchronization errors have only a minor influence on fault-location performance. Under a maximum node-wise jitter of sampling step, AM-STGNN achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of . Under a maximum jitter of sampling steps, the corresponding values are , , and . These values remain close to the clean results, indicating that moderate temporal misalignment among observation nodes does not substantially affect the final prediction.
Figure 13.
(a) Time-synchronization errors; (b) persistent sensor failures; (c) graph-information corruption.
By contrast, Figure 13b shows that persistent sensor failure causes substantially greater degradation. When one observation sensor fails, the Macro-F1 decreases to , while the Acc and Acc 1-hop decrease to and , respectively. When three sensors fail, the corresponding values decrease to , , and . With five failed sensors, they further decrease to , , and .
Unlike random or short-duration packet loss, a permanently failed sensor provides no measurements throughout the complete transient sequence and continuously reduces the spatial coverage of fault information. Persistent sensor failure is, therefore, identified as the most damaging individual disturbance among the considered conditions.
The packet-loss-aware adapter does not solve persistent sensor failure. When one, three, and five observation sensors remain unavailable throughout the complete sequence, AM-STGNN-MA obtains Macro-F1 values of , , and , respectively, which are lower than those of the original AM-STGNN.
The adapter is trained using random node–time packet loss and short-duration burst loss, for which recent valid packets are usually available. By contrast, a sensor that fails from the beginning of the sequence provides no reliable earlier measurement. Repeatedly propagating an initially imputed value may, therefore, introduce a larger distribution shift than the zero placeholder used by the original model. AM-STGNN-MA should consequently be interpreted as a method for transient packet unavailability rather than as a complete solution for persistent sensor failure.
As shown in Figure 13c, limited graph-information corruption causes negligible performance variation. After one graph edge is removed, AM-STGNN achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of . After three graph edges are removed, the corresponding values remain , , and . This stability suggests that combining the predefined topology prior with the learned implicit topology reduces the model’s dependence on a small number of individual graph connections.
- •
- Joint-Disturbance Evaluation.
The preceding experiments isolate the influence of each disturbance. However, several non-ideal conditions may occur simultaneously in an operational distribution network. Therefore, three multi-level joint-disturbance scenarios are constructed. The disturbances are applied in a fixed order: graph-information corruption, measurement noise, time-synchronization jitter, communication delay, packet loss, and persistent sensor failure.
The mild scenario J1 combines Gaussian noise of 0.01, a maximum one-step communication delay, node-wise time jitter within step, 1% node–time packet loss, one failed observation sensor, and one corrupted graph edge.
The moderate scenario J2 combines Gaussian noise of 0.03, a maximum two-step communication delay, node-wise time jitter within steps, 5% node–time packet loss, three failed observation sensors, and one corrupted graph edge.
The severe scenario J3 combines Gaussian noise of 0.05, a maximum three-step communication delay, node-wise time jitter within steps, 10% node–time packet loss, five failed observation sensors, and three corrupted graph edges. J3 is designed as a severe stress-test condition rather than as a representation of a typical operating state.
Because random packet loss and persistent sensor failure may affect overlapping node–time packets, the actual proportions of unavailable packets are approximately 4.1%, 13.9%, and 24.1% under J1, J2, and J3, respectively.
As shown in Figure 14, AM-STGNN achieves a Macro-F1 of , an Acc of , and an Acc 1-hop of under the mild joint-disturbance scenario J1. The Macro-F1 retains 94.93% of its clean-condition value, indicating that the model can tolerate several low-level disturbances occurring simultaneously.
Figure 14.
Fault-location performance under joint disturbances.
Under the moderate scenario J2, the Macro-F1, Acc, and Acc 1-hop decrease to , , and , respectively. The Macro-F1 retention rate decreases to 83.42%.
Under the severe stress-test scenario J3, the corresponding metrics further decrease to , , and , with 70.25% of the clean Macro-F1 retained.
The gradual performance decline from J1 to J3 shows that the effects of simultaneous disturbances accumulate as measurement quality, temporal consistency, and spatial observation coverage deteriorate. Nevertheless, the model retains comparatively high performance under the mild scenario and exhibits progressive degradation rather than an immediate collapse as the overall disturbance severity increases.
AM-STGNN-MA does not improve the three joint-disturbance scenarios because each scenario contains persistent sensor failure. Its Macro-F1 values under J1, J2, and J3 are , , and , respectively, which are lower than those of the original AM-STGNN.
This result is consistent with the individual sensor-failure experiment and confirms that a missing-aware mechanism trained on random node–time packet loss and short-duration burst loss cannot be expected to generalize automatically to permanent observation loss. The reduction in spatial observability caused by persistent sensor outages, therefore, remains the dominant factor in the moderate and severe joint-disturbance scenarios.
Overall, the experiments support three conclusions. First, the original AM-STGNN remains stable under moderate measurement noise, short communication delays, time-synchronization errors, low-to-moderate node–time measurement-packet loss, and limited graph-information corruption. Second, the measurement-state representation explicitly distinguishes successfully received packets—including packets containing physically valid zero-valued measurements—from temporarily missing node–time packets and fixed placeholders at uninstrumented nodes. Combined with state-guided temporal replacement, the missing-aware adapter improves robustness to random packet-level loss and short-duration burst loss. Third, persistent sensor failure remains the principal robustness limitation and dominates the degradation under moderate and severe joint-disturbance conditions. Addressing this limitation requires sensor-outage-aware training, redundant observation-node deployment, or a dedicated graph-temporal measurement-reconstruction mechanism.
4.4.5. Comparative Robustness Under Joint Disturbances
Although AM-STGNN outperforms scGNN in the main IEEE 123-node experiment, the improvements in Macro-F1 and exact accuracy under the clean condition are numerically modest. Specifically, AM-STGNN improves Macro-F1 from 0.9674 to 0.9684 and Acc from 0.9662 to 0.9711, corresponding to absolute improvements of 0.0010 and 0.0049, respectively. However, practical distribution networks do not continuously operate under ideal measurement conditions. Measurement noise, communication delay, time-synchronization errors, packet loss, sensor outages, and incorrect or outdated graph information may occur simultaneously. Therefore, the practical significance of a fault-location model should also be evaluated according to its ability to maintain reliable performance under concurrent non-ideal conditions.
To investigate this issue, the strongest scGNN baseline and the original AM-STGNN are evaluated under the same J1, J2, and J3 joint-disturbance settings defined in Section 4.4.4. The scGNN checkpoint used in this comparison is the same checkpoint that achieves the clean performance reported in the main experiment, namely a Macro-F1 of 0.9674, an Acc of 0.9662, and an Acc 1-hop of 0.9703. Therefore, the comparison does not use a deliberately weakened baseline.
Both models are evaluated using the same 1280 test scenarios, 32 observation nodes, prediction-aggregation window, disturbance functions, and perturbation seeds 842–846. For each model, the clean and disturbed evaluations use the same frozen checkpoint, and all disturbances are introduced only during test-time inference. The comparison, therefore, reflects the sensitivity of the two trained models to the same measurement, communication, sensing, and graph-information disturbances. The results are reported as the mean and sample standard deviation over five perturbation seeds. These repetitions reflect disturbance-generation and inference-time sampling randomness rather than five independently trained checkpoints.
J1 represents a mild joint-disturbance condition, J2 represents a moderate condition, and J3 represents a severe stress-test condition. Each scenario simultaneously includes Gaussian measurement noise, communication delay, time-synchronization errors, node–time measurement-packet loss, persistent sensor failure, and graph-information corruption.
As shown in Table 5, AM-STGNN consistently achieves higher Macro-F1, Acc, and Acc 1-hop than scGNN under all three joint-disturbance scenarios. Under J1, AM-STGNN improves Macro-F1, Acc, and Acc 1-hop by 0.1070, 0.0990, and 0.0719, respectively. Under J2, the corresponding improvements are 0.1122, 0.1026, and 0.0670. Under J3, AM-STGNN continues to outperform scGNN by 0.0824 in Macro-F1, 0.0721 in Acc, and 0.0419 in Acc 1-hop.
Table 5.
Performance under joint disturbances.
These differences are substantially larger than those observed under the clean IEEE 123-node condition. In particular, the exact-accuracy advantage increases from 0.0049 under the clean benchmark to 0.0990, 0.1026, and 0.0721 under J1, J2, and J3, respectively. In operational terms, the clean-condition difference corresponds to approximately 4.9 additional exact fault locations per 1000 scenarios. By contrast, the advantages under J1, J2, and J3 correspond to approximately 99.0, 102.6, and 72.1 additional exact fault locations per 1000 scenarios, respectively. This comparison shows that the benefit of AM-STGNN becomes considerably more evident when several non-ideal conditions occur simultaneously.
The Acc 1-hop results provide a further interpretation of the operational significance of the proposed model. The proportion of predictions falling outside the true faulted section and its immediate topological neighborhood can be calculated as . Under J1, this error rate decreases from 12.22% for scGNN to 5.03% for AM-STGNN, corresponding to a relative reduction of 58.8%. Under J2, it decreases from 21.73% to 15.03%, representing a relative reduction of 30.8%. Under J3, it decreases from 30.28% to 26.09%, representing a relative reduction of 13.8%.
Therefore, AM-STGNN not only produces more exact fault-location results under joint disturbances but also reduces predictions located far from the true faulted section. Such topologically distant errors may unnecessarily enlarge the fault-search, inspection, or isolation range. Reducing these errors is particularly important for limiting field investigation effort and supporting more focused post-fault decision-making.
Taken together, the results in Table 4 demonstrate that the practical advantage of AM-STGNN is not limited to the modest improvement observed under the clean benchmark. Under simultaneous measurement, communication, sensing, and graph-information disturbances, AM-STGNN maintains substantially higher Macro-F1, exact accuracy, and one-hop accuracy than the strongest scGNN baseline. These results indicate that the proposed architecture is less sensitive to degraded input information and can provide more reliable fault-location results under non-ideal operating conditions.
Under clean conditions, both models already operate in a high-performance region, leaving limited room for further numerical improvement in Macro-F1 and exact accuracy. The joint-disturbance comparison reveals a clearer difference in their ability to preserve useful fault representations when the quality, timeliness, completeness, and structural consistency of the input information deteriorate. The practical value of AM-STGNN, therefore, lies primarily in improving fault-location reliability under realistic non-ideal conditions rather than merely increasing clean-condition performance.
4.5. Ablation, Training-Sensitivity, and Temporal-Window Stability Analysis
4.5.1. Ablation Analysis of Core Modules
To isolate the contribution of each architectural component of AM-STGNN, ablation experiments are conducted based on the complete model. Only one component is removed or simplified at a time, while the data split, observation-node configuration, training schedule, and evaluation protocol remain unchanged. The complete model achieves a Macro-F1 of 0.9684, an Acc of 0.9711, and an Acc 1-hop of 0.9938. Figure 15 visualizes the decrease in Macro-F1 caused by different architectural modifications.
Figure 15.
Ablation study on core modules of the proposed AM-STGNN method.
As shown in Figure 15, all ablated variants exhibit lower Macro-F1 scores than the complete model, confirming that the final performance is jointly supported by the spatial and temporal components rather than dominated by a single module. Removing the entire temporal branch causes the largest decrease, reducing Macro-F1 from 0.9684 to 0.8333. This result indicates that short-term transient evolution provides essential discriminative information for faulted line-section identification.
Within the temporal branch, removing the raw-input KFGN branch decreases Macro-F1 to 0.9055, showing that directly preserving the original transient measurements is important for retaining abrupt fault signatures. Removing the graph-filter branch reduces Macro-F1 to 0.9306, confirming that topology-filtered features provide complementary propagation-aware dynamic information. In addition, removing the graph-conditioned delta and the Mamba mixer decreases Macro-F1 to 0.9196 and 0.9199, respectively. These results indicate that graph-conditioned state updating introduces spatial context into temporal evolution, whereas selective state-space mixing emphasizes input-dependent transient information. Restricting graph diffusion to first-order neighborhoods further reduces Macro-F1 to 0.9273, demonstrating that higher-order diffusion is beneficial for capturing multi-hop fault propagation.
For spatial modeling, removing self-neighbor aggregation and graph attention reduces Macro-F1 to 0.8718 and 0.8823, respectively. Self-neighbor aggregation preserves local node abnormalities and propagates information within the immediate neighborhood, whereas graph attention adaptively models nonuniform correlations among nodes. Their comparable performance degradation suggests that local neighborhood propagation and adaptive inter-node interaction provide complementary spatial representations.
Overall, the ablation results clarify the specific contribution of each component. The temporal branch captures short-term fault evolution. The raw-input and graph-filter branches preserve original transient cues and topology-aware dynamic information, respectively. The graph-conditioned delta and Mamba mixer support spatially guided selective state updating; higher-order diffusion models multi-hop propagation, and the spatial aggregation and graph-attention mechanisms jointly extract local and adaptive inter-node relationships. Therefore, the improvement of AM-STGNN results from the coordinated effects of spatial propagation, selective temporal modeling, and complementary dual-branch feature extraction.
To further evaluate the repeatability and uncertainty of the principal architectural ablation findings, the complete AM-STGNN and three representative architectural variants were independently trained from scratch using ten random seeds. All settings used the same data partition, training budget, model-selection criterion, and evaluation procedure, with only the investigated architectural component changed. The mean, sample standard deviation, and Student-t 95% confidence interval of Macro-F1 are reported in Table 6. The preceding single-run experiments provide a fine-grained analysis of individual components, whereas the multi-seed experiments assess the statistical stability of the principal architectural trends.
Table 6.
Multi-seed statistical results for the core architectural ablations.
As shown in Table 6, the complete AM-STGNN achieves the highest mean Macro-F1 of 0.9604, with a relatively small standard deviation of 0.0097, indicating stable performance across the ten random seeds. Removing the temporal branch causes the largest mean reduction in Macro-F1, from 0.9604 to 0.8578, corresponding to a decrease of 0.1026. Removing the KFGN graph input and the Mamba mixer also decreases the mean Macro-F1 by 0.0445 and 0.0268, respectively. Moreover, the No Mamba mixer variant exhibits the largest standard deviation, indicating greater sensitivity to random initialization. Overall, these multi-seed results support the contributions of temporal evolution modeling, graph-conditioned input information, and Mamba-based selective feature mixing to the performance and stability of AM-STGNN.
4.5.2. Training-Configuration Sensitivity and Controlled Comparison
To distinguish the influence of the training configuration from that of the model architecture, the complete AM-STGNN architecture is kept unchanged in the following experiments, while only one training-related setting is modified at a time. The investigated settings include removing the second-stage classifier refinement, using the full 20-step temporal window, replacing AdamW with Adam, and adopting scenario-level supervision. The complete AM-STGNN achieves a Macro-F1 of 0.9684, and the corresponding performance variations under different training configurations are presented in Figure 16.
Figure 16.
Sensitivity of Macro-F1 to different training configurations.
As shown in Figure 16, removing the second-stage classifier refinement causes the largest performance degradation, reducing the Macro-F1 from 0.9684 to 0.8216, corresponding to a decrease of 14.68 percentage points. In the adopted two-stage training procedure, the entire model is first optimized to learn spatiotemporal fault representations, after which only the final classifier is further optimized to refine the decision boundaries among faulted line sections. The substantial performance decrease observed after removing the second stage indicates that classifier refinement has an important influence on the final localization performance.
Using the full 20-step temporal window reduces the Macro-F1 to 0.9002, corresponding to a decrease of 6.82 percentage points. This result indicates that temporal-window selection also affects fault-feature extraction. Compared with directly using all sampling points, the selected fault-response window places greater emphasis on the more discriminative transient variations, whereas including relatively less informative temporal samples may weaken their relative contribution.
Replacing AdamW with Adam decreases the Macro-F1 to 0.9337, representing a reduction of 3.47 percentage points. This result suggests that the optimizer and regularization strategy affect the convergence and generalization of the model. In the current experiments, AdamW provides more favorable optimization performance than Adam. By contrast, replacing the original supervision strategy with scenario-level supervision only slightly reduces the Macro-F1 to 0.9638, corresponding to a decrease of 0.46 percentage points. Although this influence is smaller than those of the training stage, temporal window, and optimizer, it still indicates that the form of supervision contributes to the final performance.
To further examine the statistical stability of the training-related observations, the complete model, the full-window variant, and the Adam-based variant are independently trained from scratch using ten random seeds under the same unified 44-epoch protocol. The mean, sample standard deviation, and Student-t 95% confidence interval are reported in Table 7.
Table 7.
Multi-seed results for training-sensitivity settings.
As shown in Table 7, using the full temporal window reduces the mean Macro-F1 from 0.9604 to 0.8881, corresponding to a decrease of 0.0723. Replacing AdamW with Adam results in a smaller decrease of 0.0248. The full-window variant also exhibits greater variation across random seeds. These results indicate that the selected fault-response window has a stronger influence on model performance than the choice between AdamW and Adam under the evaluated settings.
The above results demonstrate that training-related settings have a non-negligible influence on the absolute performance of AM-STGNN. Therefore, evaluating the proposed architecture only against a baseline trained with a different optimization procedure would make it difficult to determine whether the observed improvement originates from the model structure or from the training strategy. To isolate the architectural contribution, an additional controlled comparison is conducted in which scGNN and AM-STGNN use the same data split, observation-node configuration, optimizer, number of training epochs, stage-wise training schedule, and model-selection criterion. It should be emphasized that this controlled comparison does not adopt the individually best-performing training configuration of either model. Instead, both models are evaluated under the same predefined training protocol to ensure that the model architecture is the only major variable. Applying the configuration optimized for one model to the other may be unfair because the optimal training settings can depend on the model architecture, whereas allowing each model to use its own best configuration would mix architectural contributions with the effects of hyperparameter selection, training budget, and optimization strategy. Therefore, the controlled results are used specifically to evaluate the contribution of the model architecture, while the final performance obtained under the validation-selected settings is reported separately in the main comparative experiment.
As shown in Table 8, AM-STGNN outperforms scGNN under the identical training setting, with improvements of 0.0615, 0.0625, and 0.0398 in Macro-F1, Acc, and Acc 1-hop, respectively. Since the two models are trained and evaluated using the same experimental conditions, these differences primarily reflect the contribution of the proposed model architecture rather than differences in temporal-window selection, optimizer, stage-wise training, or supervision strategy. The controlled comparison, therefore, confirms that the performance improvement of AM-STGNN cannot be attributed solely to training-related techniques.
Table 8.
Controlled comparison under identical training settings.
It should be noted that the controlled comparison is specifically designed to isolate the contribution of the model architecture. Therefore, its absolute performance values serve a different purpose from the final performance reported in the main comparative experiment and should not be directly compared. Overall, the sensitivity results confirm that the training configuration affects the attainable performance, while the controlled comparison demonstrates that AM-STGNN retains a clear advantage over scGNN under identical training conditions. Consequently, the final performance improvement results from both an appropriate training configuration and the independent contribution of the proposed architecture.
4.5.3. Multi-Seed Evaluation Without Classifier-Only Refinement
To further determine whether the performance advantage of AM-STGNN depends on the classifier-only refinement stage, additional multi-seed experiments are conducted after completely removing this stage. To provide a concise yet representative evaluation, two competitive baseline models are selected from the main comparison. Specifically, scGNN is retained because it achieves the strongest overall performance among the baseline methods, while GCN is included as a representative graph-convolution baseline with relatively competitive performance among the remaining conventional graph-based models. These two baselines and the proposed AM-STGNN are independently trained from scratch using random seeds 1–5, without initialization from pretrained checkpoints.
In this experiment, each model is jointly optimized for 44 supervised-training epochs. The feature-extraction modules and the final classifier remain jointly trainable throughout the entire training process, without freezing the feature-extraction modules or introducing a separate classifier-only refinement stage. The three models use the same data partition, observation-node configuration, total training budget, optimizer, batch size, aggregation window, and model-selection criterion. The mean, sample standard deviation, and Student-t 95% confidence interval over the five random seeds are reported in Table 9. The experimental protocol, therefore, directly evaluates the models under the complete removal of classifier-only refinement while maintaining an equivalent total training budget.
Table 9.
Multi-seed results without classifier-only refinement.
As shown in Table 9, AM-STGNN achieves the highest mean Macro-F1, Acc, and Acc 1-hop after the classifier-only refinement stage is completely removed, reaching 0.8492, 0.8523, and 0.9130, respectively. Compared with scGNN, AM-STGNN improves Macro-F1, Acc, and Acc 1-hop by 0.0727, 0.0648, and 0.0411, respectively. Compared with GCN, the corresponding improvements are 0.1327, 0.1168, and 0.0821. For Macro-F1, the paired t-tests yield p-values of 0.0231 and 0.0021 for the comparisons with scGNN and GCN, respectively.
These results demonstrate that AM-STGNN retains its performance advantage over the selected competitive baselines when classifier-only refinement is not used. Therefore, the performance improvement observed in the main experiments cannot be attributed solely to the classifier-only refinement stage, further supporting the independent contribution of the proposed model architecture.
4.5.4. Temporal-Window Stability Under Different Test Conditions and Datasets
To further examine the stability of the validation-selected 7:20 aggregation window, a separate temporal-window experiment was conducted using four predefined candidate windows: 0:20, 5:20, 7:20, and 10:20. For each window, AM-STGNN was trained using the same data partition, optimization settings, and model-selection criterion. The validation-selected checkpoint of each window was then evaluated under the Clean, Noise 0.03, and Missing 0.10 conditions without condition-specific retraining.
As shown in Table 10, the 7:20 window achieves the highest Macro-F1 under all three evaluated conditions. Under the Clean condition, its Macro-F1 reaches 0.9631, exceeding those of the 0:20, 5:20, and 10:20 windows by 0.0737, 0.0330, and 0.0964, respectively. This result indicates that the 7:20 window retains a more discriminative portion of the fault-transient sequence than the other evaluated windows.
Table 10.
Macro-F1 under different temporal windows.
Under Noise 0.03, the Macro-F1 of the 7:20 window decreases slightly from 0.9631 to 0.9589, corresponding to a reduction of only 0.0042. By comparison, the reductions of the 0:20, 5:20, and 10:20 windows are 0.0410, 0.0616, and 0.0123, respectively. Therefore, the 7:20 window exhibits the lowest sensitivity to the evaluated Gaussian measurement noise.
Under Missing 0.10, the 7:20 window maintains a Macro-F1 of 0.9332 and continues to outperform the other candidate windows. Relative to the Clean condition, its Macro-F1 decreases by 0.0299, whereas the corresponding decreases for the 0:20, 5:20, and 10:20 windows are 0.0965, 0.0819, and 0.0945, respectively. Although missing measurements cause a greater performance reduction than Gaussian noise, the 7:20 window shows substantially smaller degradation than the other candidate windows.
To further examine the cross-dataset stability of the 7:20 temporal window, the results obtained using the same aggregation window on the IEEE 123-node system and the three additional datasets are summarized. AM-STGNN achieves Macro-F1 values of 0.9684 on the IEEE 123-node system, 0.952581 on the Portuguese rural distribution-network model, 0.9222 on the Rural dataset, and 0.9728 on the SoCal 28-Bus dataset.
Despite substantial differences in network scale, phase-unbalance characteristics, transient-response patterns, and measurement backgrounds, the Macro-F1 remains above 0.92 on all four datasets. In particular, AM-STGNN achieves a Macro-F1 of 0.9728 under the SoCal field-measurement setting. On the substantially larger Rural dataset, which contains 1081 nodes and 811 candidate faulted line sections, it still achieves a Macro-F1 of 0.9222. These results indicate that the fixed 7:20 window consistently retains informative fault-transient features across the evaluated datasets.
Overall, the 7:20 aggregation window achieves the highest Macro-F1 and the smallest performance degradation among the evaluated windows under the Clean, Noise 0.03, and Missing 0.10 conditions. Its consistently strong performance across the four datasets further indicates that this window provides stable temporal aggregation under both measurement disturbances and heterogeneous network conditions.
4.6. Interpretability and Physical-Consistency Analysis
To clarify whether AM-STGNN learns meaningful fault-propagation patterns rather than relying solely on statistical correlations, the final model is analyzed from four perspectives: adaptive-topology learning, Mamba-based temporal modeling, STGformer-based global interaction, and topology-related physical consistency.
4.6.1. Interpretation of the Learned Topology
The topology used for feature propagation is formulated as
where denotes the physical-topology prior, denotes the data-driven component, and in the final model.
As shown in Figure 17, Figure 17a presents the physical-topology prior, Figure 17b shows the fused topology used for feature propagation, and Figure 17c visualizes the learned changes relative to the physical prior. The similar connection patterns in Figure 17a,b indicate that the fused topology remains strongly anchored to the physical feeder. In Figure 17c, positive and negative values correspond to connections strengthened and weakened by adaptive learning, respectively, revealing additional data-driven modifications beyond the predefined topology.
Figure 17.
(a) Physical-topology prior; (b) fused adaptive topology; (c) learned correction relative to the physical prior.
Among the 512 strongest connections in the fused topology, 94.34% coincide with physical network edges, and 80.69% of the total topology weight is assigned to physical connections. In addition, the fused edge weight is negatively correlated with the shortest electrical distance, with a Pearson coefficient of , indicating that stronger connections generally occur between electrically closer nodes.
By contrast, only 3.52% of the strongest adaptive-only connections overlap with physical edges, and their correlation with electrical distance is close to zero. Therefore, the adaptive component should not be interpreted as reconstructing the feeder topology independently. Instead, it supplements the physical graph with non-local residual dependencies that may reflect similar transient responses or shared propagation paths.
When the adaptive component is removed and only the physical prior is retained, the Macro-F1 decreases from 0.9684 to 0.9536. This modest but consistent degradation indicates that the adaptive topology provides complementary information while preserving the physical feeder as the primary propagation structure.
4.6.2. Temporal Interpretation of the Mamba Module
The temporal behavior of Mamba is examined through its internal-state evolution and temporal occlusion. As shown in Figure 18a, the hidden-state norm increases rapidly during the first several sampling steps and subsequently stabilizes, indicating that Mamba first accumulates transient fault information and then maintains a relatively stable temporal representation. The selective step-size parameter changes slightly during the initial stage before becoming stable, while the mixer gate remains comparatively steady.
Figure 18.
(a) Mamba internal-state evolution; (b) temporal-occlusion sensitivity.
Figure 18b presents the input-level temporal-occlusion results. Each time step is successively replaced with the corresponding initial-step value, and the resulting decrease in the true-class log probability and the prediction-change rate are evaluated. The model is most sensitive to time steps 9–16, with the maximum effect occurring at step 13. Occluding this step decreases the mean true-class log probability by 0.01201 and changes the predicted class for 3.91% of the evaluated samples.
Given a sampling interval of 0.002 s, this informative interval approximately corresponds to 18–32 ms after the beginning of the sequence. The shaded interval in Figure 18a,b also coincides with the aggregation window used by the final model. These results indicate that AM-STGNN does not use all sampling points uniformly but concentrates on a specific transient interval containing stronger fault-location information.
Because the occlusion is applied at the model input, Figure 18b reflects the temporal sensitivity of the complete AM-STGNN rather than the isolated contribution of Mamba. Nevertheless, its agreement with the Mamba state evolution in Figure 18a supports the effectiveness of selective temporal modeling.
4.6.3. Global Interaction and Feature Fusion
Because STGformer employs kernel-decomposed linear attention, it does not explicitly generate a conventional softmax attention matrix. Its behavior is, therefore, interpreted using the response norms of the intermediate spatial and temporal representations rather than normalized attention weights.
As shown in Figure 19a, the mean spatial and temporal response norms of the order-0 branch are 8.9976 and 0.8279, respectively, corresponding to a spatial-to-temporal response ratio of 10.87. This branch, therefore, primarily captures global spatial context. For the order-1 branch, the ratio decreases to 1.10, indicating a more balanced integration of spatial propagation and temporal variation after topology-based feature diffusion.
Figure 19.
(a) STGformer responses at different propagation orders; (b) nodes with the highest aggregated responses.
Figure 19b presents the nodes with the highest aggregated STGformer responses. Among the top 20 response nodes, 19 are observation nodes. Since observation nodes account for only 25% of the network but 95% of the high-response nodes, their enrichment factor reaches 3.8. This result indicates that STGformer primarily extracts informative representations from sparse measured nodes and propagates them through global interaction.
An inference-time diagnostic intervention is further conducted by suppressing the order-1 branch while retaining the remaining trained parameters. The Macro-F1 decreases from 0.9684 to 0.8517, demonstrating that the higher-order branch provides important complementary information. This intervention is used only to verify the contribution of the branch in the final checkpoint and is not treated as a retrained architectural ablation.
Figure 20 further illustrates the behavior of the learned feature-fusion gate. As shown in Figure 20a, most gate values are concentrated in the high-value region, with a mean spatial weight of 0.8165 and a corresponding mean temporal weight of 0.1835. This indicates that the final prediction relies primarily on topology-conditioned spatial information.
Figure 20.
(a) Distribution of the spatial fusion weight; (b) temporal evolution of the spatial and temporal fusion weights.
As shown in Figure 20b, the spatial weight increases during the first several time steps and then stabilizes at approximately 0.82, while the temporal weight decreases correspondingly and remains near 0.18. The distribution in Figure 20a also shows that the gate is not fixed across samples and feature dimensions. Therefore, temporal information is retained adaptively rather than combined with spatial features using a constant ratio.
4.6.4. Margin Enhancement and Physical Consistency
The effect of margin-based refinement is evaluated using the difference between the true-class score and the largest competing-class score. As shown in Figure 21, the margin distribution after refinement shifts toward the positive region, while the number of negative-margin samples is reduced.
Figure 21.
Decision-margin distributions before and after refinement.
The mean decision margin increases from 4.5089 to 5.3954, and the proportion of samples with a positive margin increases from 89.77% to 95.55%. Moreover, the 5th-percentile margin increases from 0.9063 to 0.0781. The change near the zero-margin boundary in Figure 21 indicates that the refinement primarily improves difficult samples whose true and competing classes initially have similar scores.
Physical consistency is assessed at both the representation and prediction levels. At the representation level, Figure 17 shows that the fused topology retains a high overlap with physical connections and generally assigns stronger weights to electrically closer nodes.
At the prediction level, the model correctly locates 1243 of the 1280 test samples. Among the 37 exact-location errors, 78.38% remain within one topological hop of the true section. Consequently, the overall Acc 1-hop reaches 0.9938.
These results indicate that most residual errors remain close to the actual fault location rather than being randomly distributed across the network. Typical confusion pairs, such as faulted line sections 63 and 64, also correspond to adjacent or electrically close regions, which is consistent with the similarity of their transient responses.
It should be emphasized that the present physical-consistency analysis is based on feeder connectivity, electrical distance, learned graph structure, and error topology distance.
Overall, the interpretability results show that AM-STGNN preserves the physical feeder as its primary spatial structure, supplements it with data-driven residual dependencies, selectively extracts informative transient intervals, and establishes global interactions from sparse observation nodes. These findings provide evidence that the learned representations are both task-relevant and physically meaningful.
5. Discussion
AM-STGNN and scGNN are evaluated using the same observation nodes, fault-transient inputs, data partitions, and evaluation metrics. Therefore, their performance differences mainly arise from their representation and prediction mechanisms rather than from differences in the available input information. Compared with scGNN, AM-STGNN combines a physical-topology prior with a task-adaptive implicit topology, topology-conditioned feature propagation, global linear spatiotemporal interaction, and Mamba-based selective temporal modeling. Gated feature fusion, topology-aware differential classification, and margin regularization further improve the separation of faulted sections with similar transient responses.
On the IEEE 123-node system, AM-STGNN achieves a Macro-F1 of 0.9684, an Acc of 0.9711, and an Acc 1-hop of 0.9938, compared with 0.9674, 0.9662, and 0.9703 for scGNN, respectively. Although the improvements in Macro-F1 and exact accuracy are numerically modest, the increase in Acc 1-hop has a clearer operational implication. The proportion of predictions outside the true faulted section and its immediate topological neighborhood decreases from 2.97% to 0.62%, corresponding to a relative reduction of approximately 79.1%. Thus, the main clean-condition benefit is not merely an increase in exact matches, but a substantial reduction in topologically distant localization errors. The paired multi-seed experiments further confirm that the performance improvement is repeatable and statistically significant.
The interpretability results support the roles of the proposed components. The fused topology remains anchored to the physical feeder while introducing a limited number of task-relevant data-driven relationships, indicating that the learned topology supplements rather than replaces the predefined network structure. The temporal analysis shows that the model emphasizes informative fault-transient intervals instead of treating all sampling instants equally. The additional experiments provide complementary evidence of feeder-specific applicability under different data and operating conditions. The Portuguese case evaluates the architecture under different simulation-based engineering characteristics, the Rural experiment extends the analysis to a substantially larger and more strongly phase-unbalanced distribution network, and the SoCal experiment demonstrates its ability to exploit field-measured operating backgrounds containing practical measurement uncertainty, missing observations, and sparse instrumentation. These experiments support architectural applicability across different simulated network structures.
The individual-disturbance experiments show that AM-STGNN remains stable under moderate measurement noise, short communication delays, time-synchronization errors, node–time measurement-packet loss, and limited graph-information corruption. The explicit measurement-state representation distinguishes successfully received packets, temporarily missing packets, and fixed placeholders at uninstrumented nodes without inferring missingness from the numerical value itself. Consequently, physically valid zero-valued measurements remain distinguishable from missing or unavailable measurements. Combined with state-guided temporal replacement, the missing-aware adapter improves robustness to random packet loss and short-duration burst loss.
The joint-disturbance results further highlight the practical relevance of AM-STGNN. Under the same J1, J2, and J3 settings, AM-STGNN consistently achieves higher Macro-F1, Acc, and Acc 1-hop than the strongest scGNN baseline. Its exact-accuracy advantages are 0.0990, 0.1026, and 0.0721, corresponding to approximately 99.0, 102.6, and 72.1 additional exact fault locations per 1000 scenarios, respectively. Moreover, AM-STGNN reduces the proportion of predictions outside the true section and its one-hop neighborhood by 58.8%, 30.8%, and 13.8% relative to scGNN under J1, J2, and J3. These results indicate that AM-STGNN maintains more reliable fault-location performance when measurement quality, communication timeliness, spatial coverage, and graph information deteriorate simultaneously.
This robustness benefit is accompanied by additional computational cost. AM-STGNN contains approximately 2.16 million trainable parameters and requires approximately 23.6780 ms per sample under the reported profiling protocol, corresponding to approximately 1.98 times the parameter count and 2.82 times the inference latency of scGNN. Therefore, AM-STGNN is particularly relevant to applications in which reliable fault location and the reduction of topologically distant errors under degraded measurement conditions are prioritized over minimum model size or computational expenditure. Hardware-specific deployment tests are still required before drawing conclusions about real-time field implementation. Future research will also take the lightweight deployment of AM-STGNN as an important direction. Model compression and lightweight variants will be investigated to reduce parameter count, inference latency, and memory usage while preserving fault-location accuracy and robustness, followed by hardware-specific evaluations of real-time field applicability.
Despite the supplementary evaluations under larger-scale, more strongly phase-unbalanced, and field-measurement-informed operating conditions, three important limitations remain. First, the proposed faulted line-section localization method has not yet been evaluated in a task-aligned hardware-in-the-loop environment, in which real measurement or protection devices participate in the closed-loop generation and acquisition of labeled fault-transient responses. Second, the models used for the additional distribution systems are independently trained on their corresponding datasets. Therefore, the current results demonstrate feeder-specific architectural applicability rather than direct generalization to genuinely unseen network configurations. Third, although the disturbance mechanisms considered in the robustness evaluation are motivated by documented measurement-data-quality, communication, sensing, timing, and topology-information problems in practical power-system monitoring, their numerical severity levels were determined from the normalized feature scale, sampling resolution, observation-node configuration, and controlled sensitivity-test design rather than from task-aligned field statistics. Therefore, the robustness results should be interpreted as comparative evidence within the adopted simulated perturbation space rather than as estimates of absolute reliability under a specific field-failure distribution. Future work will develop a hardware-in-the-loop fault-location test platform, investigate graph-size-independent prediction, topology-invariant representation learning, and cross-network training strategies, and use field-measurement-device logs, communication records, sensor-availability statistics, and topology-update histories to construct empirically calibrated disturbance models.
6. Conclusions
This study proposes AM-STGNN for faulted line-section location in low-observability active distribution networks. The method integrates a prior-guided adaptive implicit topology, topology-conditioned feature propagation, STGformer-based global interaction, Mamba selective temporal modeling, gated feature fusion, and topology-aware discriminative learning. These mechanisms jointly model fault-information propagation, global spatiotemporal dependencies, transient-state evolution, and the differences between adjacent faulted sections.
On the IEEE 123-node system, AM-STGNN achieves a Macro-F1 of 0.9684, an Acc of 0.9711, and an Acc 1-hop of 0.9938. Relative to the strongest scGNN baseline, it improves all three metrics and reduces the one-hop-outside error rate from 2.97% to 0.62%. Multi-seed and ablation experiments confirm the repeatability of the performance improvement and the complementary contributions of the proposed components. Additional evaluations further demonstrate the feeder-specific applicability of the proposed architecture under different simulation-based engineering characteristics, substantially larger and more strongly phase-unbalanced network conditions, and field-measured operating backgrounds.
The joint-disturbance comparison further demonstrates the practical significance of AM-STGNN. Under identical J1, J2, and J3 disturbances, AM-STGNN consistently achieves higher Macro-F1, exact accuracy, and one-hop accuracy than the strongest scGNN baseline, while producing more exact fault locations and fewer topologically distant errors. The proposed measurement-state representation also improves robustness to node–time packet loss and short-duration burst loss. These results indicate that AM-STGNN can maintain reliable fault-location performance and limit topologically distant errors under simulated non-ideal measurement and communication conditions. This robustness benefit is obtained at the cost of increased model size and inference time.
Two limitations remain to be addressed. The proposed method has not yet undergone task-aligned hardware-in-the-loop validation for faulted line-section localization, and its ability to generalize directly to genuinely unseen network configurations without retraining or fine-tuning has not been established. Future work will, therefore, focus on constructing a closed-loop hardware-in-the-loop fault-location platform and developing topology-invariant, graph-size-independent learning mechanisms for zero-shot evaluation across previously unseen distribution networks.
Author Contributions
Conceptualization, Z.H. and J.M.; methodology, Z.H.; software, Z.H.; validation, Z.H.; formal analysis, Z.H.; investigation, Z.H. and J.M.; resources, J.M.; data curation, Z.H. and J.M.; writing—original draft preparation, Z.H.; writing—review and editing, Z.H.; visualization, Z.H.; supervision, X.H.; project administration, Z.H.; funding acquisition, X.H. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by the National Natural Science Foundation of China under Grant 62303103.
Data Availability Statement
Part of the core implementation code and the minimal data supporting the findings of this study were provided at the time of submission. The complete source code, preprocessing scripts, configuration files, random-seed settings, trained checkpoints, and data-generation utilities were jointly developed within the laboratory and are subject to laboratory-level copyright and release authorization; therefore, they cannot currently be archived in an unrestricted public repository. For non-commercial academic reproduction, the complete implementation package, raw simulation datasets, and related supporting materials are available from the corresponding author upon reasonable request and after the required authorization has been obtained. Any additional materials required by the editorial office can also be provided for confidential internal evaluation upon request.
Acknowledgments
The authors would like to sincerely thank the supervisor for the guidance and support provided throughout the experimental research process, especially for the valuable advice and patient explanations offered during the design of the experimental scheme, the refinement of the research ideas, and the difficulties encountered during the study. This support was of great importance to the successful completion of this research and manuscript. During the preparation of this manuscript, the authors used Google AI-3.7 for the purpose of checking the accuracy of the English translation. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Orozco-Henao, C.; Bretas, A.S.; Herrera-Orozco, A.R.; Pulgarín-Rivera, J.D.; Dhulipala, S.; Wang, S. Towards active distribution networks fault location: Contributions considering DER analytical models and local measurements. Int. J. Electr. Power Energy Syst. 2018, 99, 454–464. [Google Scholar] [CrossRef] [Scilit]
- Pattanaik, V.; Malika, B.K.; Panda, S.; Rout, P.K.; Sahu, B.K.; Samanta, I.S.; Bajaj, M.; Blazek, V.; Prokop, L. A critical review on phasor measurement units installation planning and application in smart grid environment. Results Eng. 2024, 24, 103559. [Google Scholar] [CrossRef] [Scilit]
- Dashti, R.; Ghasemi, M.; Daisy, M. Fault location in power distribution network with presence of distributed generation resources using impedance based method and applying π line model. Energy 2018, 159, 344–360. [Google Scholar] [CrossRef] [Scilit]
- Orozco-Henao, C.; Suman Bretas, A.; Marín-Quintero, J.; Herrera-Orozco, A.; Pulgarín-Rivera, J.D.; Velez, J.C. Adaptive Impedance-Based Fault Location Algorithm for Active Distribution Networks. Appl. Sci. 2018, 8, 1563. [Google Scholar] [CrossRef] [Scilit]
- Chandran, S.; Gokaraju, R.; Narendra, K. An extended impedance-based fault location algorithm in power distribution system with distributed generation using synchrophasors. IET Gener. Transm. Distrib. 2023, 18, 479–490. [Google Scholar] [CrossRef] [Scilit]
- Dashtdar, M.; Hussain, A.; Al Garni, H.Z.; Mas’ud, A.A.; Haider, W.; AboRas, K.M.; Kotb, H. Fault Location in Distribution Network by Solving the Optimization Problem Based on Power System Status Estimation Using the PMU. Machines 2023, 11, 109. [Google Scholar] [CrossRef] [Scilit]
- Shi, Y.; Zheng, T.; Yang, C. Reflected Traveling Wave Based Single-Ended Fault Location in Distribution Networks. Energies 2020, 13, 3917. [Google Scholar] [CrossRef] [Scilit]
- Cheng, L.; Wang, T.; Wang, Y. A novel fault location method for distribution networks with distributed generations based on the time matrix of traveling-waves. Prot. Control Mod. Power Syst. 2022, 7, 46. [Google Scholar] [CrossRef] [Scilit]
- Rizeakos, V.; Bachoumis, A.; Andriopoulos, N.; Birbas, M.; Birbas, A. Deep learning-based application for fault location identification and type classification in active distribution grids. Appl. Energy 2023, 338, 120932. [Google Scholar] [CrossRef] [Scilit]
- Siddique, M.N.I.; Shafiullah, M.; Mekhilef, S.; Pota, H.; Abido, M.A. Fault classification and location of a PMU-equipped active distribution network using deep convolution neural network (CNN). Electr. Power Syst. Res. 2024, 229, 110178. [Google Scholar] [CrossRef] [Scilit]
- Khan, M.A.; Asad, B.; Vaimann, T.; Kallaste, A.; Pomarnacki, R.; Hyunh, V.K. Improved Fault Classification and Localization in Power Transmission Networks Using VAE-Generated Synthetic Data and Machine Learning Algorithms. Machines 2023, 11, 963. [Google Scholar] [CrossRef] [Scilit]
- Bougoffa, M.; Benmoussa, S.; Djeziri, M.; Palais, O. Hybrid Deep Learning for Fault Diagnosis in Photovoltaic Systems. Machines 2025, 13, 378. [Google Scholar] [CrossRef] [Scilit]
- Sun, H.; Kawano, S.; Nikovski, D.N.; Takano, T.; Mori, K. Distribution system fault location analysis using graph neural network with node and link attributes. In Proceedings of the ISGT Europe, Espoo, Finland, 18–21 October 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 1–6. [Google Scholar]
- Nguyen, B.L.H.; Vu, T.V.; Nguyen, T.-T.; Panwar, M.; Hovsapian, R. Spatial-Temporal Recurrent Graph Neural Networks for Fault Diagnostics in Power Distribution Systems. IEEE Access 2023, 11, 46039–46050. [Google Scholar] [CrossRef] [Scilit]
- Liang, L.; Zhang, H.; Cao, S.; Zhao, X.; Li, H.; Chen, Z. Fault location method for distribution networks based on multi-head graph attention networks. Front. Energy Res. 2024, 12, 1395737. [Google Scholar] [CrossRef] [Scilit]
- Fan, M.; Xia, J.; Zhang, H.; Zhang, X. Fault Location Method of Distribution Network Based on VGAE-GraphSAGE. Processes 2024, 12, 2179. [Google Scholar] [CrossRef] [Scilit]
- Li, W.; Deka, D. PPGN: Physics-preserved graph networks for real-time fault location in distribution systems with limited observation and labels. arXiv 2021, arXiv:2107.02275. [Google Scholar]
- Lu, T.; Hou, S. Fault Location Algorithm for Distribution Network With Distributed Generation Based on Domain-Adaptive TGATv2. IET Gener. Transm. Distrib. 2025, 19, e70033. [Google Scholar] [CrossRef] [Scilit]
- Ma, J.; Hu, X.; Wang, J.; Zhang, Z.; Ma, D.; Sun, Q. Research on Spatiotemporal Correlation Graph Neural Network Fault Location Method for Large-Scale Distribution Network. Sci. China Technol. Sci. 2026, 56, 453–470. (In Chinese) [Google Scholar] [CrossRef] [Scilit]
- Hu, X.; Ma, J.; Zhang, R.; Ma, D.; Wang, Q. Ts-GSAN: A Two-Stage Graphical Spatiotemporal Attention Network Fault Localization Method for Distributed Energy Systems. IEEE Trans. Instrum. Meas. 2025, 74, 1–8. [Google Scholar] [CrossRef] [Scilit]
- Ma, J.; Hu, X.; Chu, T.; Zhao, H.; Ma, D. IPIGN: An Interpretable Physics-Informed Graph Network Multitask Cascading Failure Diagnosis Method for Distributed Energy Systems. IEEE Trans. Ind. Electron. 2026, 73, 7960–7971. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Liao, P.; Wang, Y. Using Graph-Enhanced Deep Reinforcement Learning for Distribution Network Fault Recovery. Machines 2025, 13, 543. [Google Scholar] [CrossRef] [Scilit]
- Kipf, T.N.; Welling, M. Semi-Supervised Classification with Graph Convolutional Networks. In Proceedings of the 5th International Conference on Learning Representations, Toulon, France, 24–26 April 2017; pp. 1–14. [Google Scholar]
- Liu, J.; Huang, Y.; Chen, K.; Liu, G.; Yan, J.; Chen, S.; Xie, Y.; Yu, Y.; Huang, T. Graph Neural Networks for Fault Diagnosis in Photovoltaic-Integrated Distribution Networks with Weak Features. Sensors 2025, 25, 5691. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Wang, H.; Chen, J.; Pan, T.; Dong, Z.; Zhang, L.; Jiang, R.; Song, X. STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecasting. arXiv 2024, arXiv:2410.00385. [Google Scholar]
- Li, L.; Wang, H.; Zhang, W. STG-Mamba: Spatial-Temporal Graph Learning via Selective State Space Model. arXiv 2024, arXiv:2403.12418. [Google Scholar]
- Liu, M.; Ren, S.; Ma, S.; Jiao, J.; Chen, Y.; Wang, Z.; Song, W. Gated Transformer Networks for Multivariate Time Series Classification. arXiv 2021, arXiv:2103.14438. [Google Scholar]
- Brody, S.; Alon, U.; Yahav, E. How Attentive are Graph Attention Networks? arXiv 2021, arXiv:2105.14491. [Google Scholar]
- Beck, M.; Pöppel, K.; Spanring, M.; Auer, A.; Prudnikova, O.; Kopp, M.; Klambauer, G.; Brandstetter, J.; Hochreiter, S. xLSTM: Extended Long Short-Term Memory. Adv. Neural Inf. Process. Syst. 2024, 37, 107547–107603. [Google Scholar] [CrossRef] [Scilit]
- Taye, T.; Mohamed, B.; Suarez-Ramon, L.; Arboleyá, P. A set of Non-Synthetic test systems of European LV Rural, LV urban and hybrid MV/LV industrial distribution networks. Int. J. Electr. Power Energy Syst. 2024, 158, 109941. [Google Scholar] [CrossRef] [Scilit]
- Xie, Y.; Werner, L.; Chen, K.; Le, T.-L.; Ortega, C.; Low, S. Synchrophasors and Synchrowaveforms for the Distribution Grid: The SoCal 28-Bus Dataset. In Proceedings of the ACM e-Energy, Banff, AB, Canada, 2026; pp. 704–711. [Google Scholar]
- Lackner, C.; Wilches-Bernal, F.; Pierre, B.J.; Schoenwald, D.A. A Tool to Characterize Delays and Packet Losses in Power Systems With Synchrophasor Data. IEEE Power Energy Technol. Syst. J. 2018, 5, 117–128. [Google Scholar] [CrossRef] [Scilit]
- Soltani, Z.; Ma, S.; Khorsand, M.; Vittal, V. Simultaneous Robust State Estimation, Topology Error Processing, and Outage Detection for Unbalanced Distribution Systems. IEEE Trans. Power Syst. 2023, 38, 2018–2034. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




















