arXiv:2608.23726eess.SYAug 2026

Manuscript Offprint

arXiv:2608.23726

A Hybrid Two-Stage Machine Learning Pipeline for Fault Detection and Classification in Power Transmission Systems

Sahil Manikshete, Atharva Gujarathi, Thanh Long Vu, Akhtar Hussain, Van-Hai Bui

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Abstract—Rapid and accurate fault detection in high-voltage transmission networks is essential for grid reliability and equipment protection. Transmission fault datasets are frequently imbalanced, and certain fault types produce electrical signatures that fall within the normal operating envelope, causing single-model classifiers to fail on safety-critical cases. This paper proposes a hybrid two-stage machine learning pipeline that decouples detection from classification. Stage 1 combines an Isolation Forest anomaly detector with an optional supervised binary detector through an OR-fusion rule; the supervised branch is allocated automatically during training for any fault class the anomaly detector cannot resolve, and is omitted when no such class exists. Stage 2 applies a Random Forest multiclass classifier only to samples flagged by Stage 1. Feature engineering is expressed as a per-measurement-point operator mapping six raw channels to eighteen features, including zero-sequence symmetrical components derived from Fortescue's theorem, yielding 18L features for L measurement points. On the TLFaultDataset (L = 7, 126 features, 578,923 samples) the pipeline raises Line-fault end-to-end accuracy from 31.3% to 95.8%. On an independent single-point dataset (L = 1, 18 features, 12,001 samples) the same framework attains 97.25% end-to-end accuracy across all classes including normal operation, exceeding the TLFed federated benchmark of 94.84% without GPU or federated infrastructure, at 0.05 ms per sample on CPU. Ablation on both datasets shows zero-sequence features resolving the three-phase versus three-phase-to-ground ambiguity, raising the F1-score of that class pair from 0.39 to 0.997. The direction of the zero-sequence signature is found to be system-dependent, motivating a learned decision boundary in place of a fixed relay threshold.

Index Terms—Class imbalance, cross-dataset validation, Isolation Forest, Random Forest, transmission fault detection, two-stage pipeline, zero-sequence current.

1 Introduction

Power transmission systems form the backbone of modern electrical infrastructure, delivering electricity over long distances from generation sources to distribution networks.

Faults caused by lightning strikes, equipment failure, conductor contact, or insulation breakdown can trigger cascading failures, equipment damage, and widespread outages with significant economic and social consequences [1]. Rapid and accurate fault detection and classification is therefore essential for minimizing downtime, enabling targeted corrective action, and maintaining grid reliability. Traditional protection methods such as distance relays, differential protection, and overcurrent relays rely on fixed thresholds and simplified assumptions about system behavior [2]. While effective in conventional systems, these approaches face growing challenges in modern networks characterized by distributed energy resources, bidirectional power flow, inverter-based generation, and dynamically changing fault current levels [7].

The core challenge is twofold. First, transmission fault datasets frequently exhibit severe class imbalance: in the TLFaultDataset used as the primary evaluation system in this study, 88.1% of samples represent normal operation while the rarest fault type accounts for under 1% of all samples. Classifiers trained on such data become biased toward the majority class and fail to detect rare but critical faults. Second, certain fault types—particularly transmission Line faults—produce phase voltage and current signatures that are nearly indistinguishable from normal operation. A single-model approach achieves only 31.3% end-to-end detection accuracy for Line faults, which is insufficient for protection use.

Machine learning has been widely explored as a data-driven complement to traditional protection, and the literature spans classical supervised classifiers, signal-transform front ends, ensemble methods, and, more recently, deep and federated architectures. Supervised methods including Random Forest (RF), Support Vector Machine (SVM), and k-Nearest Neighbors (KNN) have been applied to fault classification, typically achieving high accuracy on balanced or Synthetic Minority Over-sampling Technique (SMOTE) augmented data [8, 9]. These methods perform well when the class distribution is controlled, but their reported accuracies are usually obtained on rebalanced data and do not directly reflect performance under the severe native imbalance of transmission fault records.

A second line of work improves the input representation rather than the classifier. Feature extraction based on the Discrete Wavelet Transform (DWT) coupled with an Artificial Neural Network (ANN) has been used for fast transmission-line fault detection [17], and time-frequency descriptors derived from the Hilbert–Huang Transform have been combined with a Convolutional Neural Network (CNN) for distribution-system fault classification [18]. Ensemble methods that combine several base classifiers through voting and stacking have reported accuracy approaching 99% on controlled benchmarks [10]. Two-stage sequential architectures, in which an unsupervised step precedes a supervised classifier, have also been explored [11], as have anomaly-detection approaches using the Isolation Forest for power-quality monitoring and photovoltaic fault localization [12]. These studies establish that both detection and classification can be handled by learned models, but they generally treat all fault classes as equally separable and do not isolate the classes whose signatures overlap with normal operation. A further limitation shared across this literature is that methods are typically reported on a single dataset, so it is rarely established whether an architecture or a feature set transfers to a different network.

A directly relevant prior work is TLFed [3], a federated learning system using a one-dimensional Convolutional Neural Network with Long Short-Term Memory (1D-CNN-LSTM) architecture across local client nodes with Federated Averaging (FedAvg) aggregation. TLFed uses the same TLFaultDataset and seven fault classes, achieving 94.84% classification accuracy and 92.50% location accuracy across 21 federated clients, motivated by data-privacy concerns in smart grids. It provides the closest baseline for the present study because it shares the dataset and class definitions, but it treats all seven classes uniformly and relies on GPU-trained deep models distributed across clients.

Despite these advances, existing approaches share several limitations. Methods relying on SMOTE or class weighting improve average accuracy but still struggle with fault types whose signatures overlap with normal operation, since synthetic oversampling cannot capture the true distribution of rare faults. Single-model architectures must simultaneously solve detection (fault versus no fault, requiring maximum recall) and classification (which fault type, requiring per-class precision), two objectives that are difficult to optimize jointly. The Isolation Forest, despite being designed for anomaly detection, achieves only 0.9% detection on Line faults because these do not appear anomalous in the raw feature space. TLFed achieves strong overall accuracy but treats all seven classes uniformly, with no mechanism to handle the structural blind spot of near-normal Line faults. Finally, generic statistical features such as mean and standard deviation do not encode the physical mechanisms that distinguish fault types; in particular, distinguishing three-phase faults with and without ground involvement requires zero-sequence symmetrical components grounded in Fortescue's decomposition theorem [6].

This paper proposes a hybrid two-stage machine learning pipeline that addresses these limitations. The central premise is that different fault types require different detection strategies, and that detection and classification are better solved as two sequential but independent problems. In Stage 1, an Isolation Forest trained exclusively on normal data detects general faults as anomalies; where a fault class remains invisible to this detector, a dedicated supervised binary classifier is allocated for that class and fused by OR logic to maximize recall. In Stage 2, a Random Forest multiclass classifier receives only the samples flagged by Stage 1 and determines the fault type. The pipeline is supported by physics-informed feature engineering that augments the raw per-point measurements with features capturing signal energy, phase asymmetry, and zero-sequence components. The framework is evaluated on two independent datasets differing in network size, voltage scale, simulation software, and class balance.

The principal contributions of this work are as follows.

  1. A two-stage architecture with conditional supervised detection. An unsupervised Isolation Forest is fused by OR logic with a dedicated supervised detector that is allocated automatically, during training, for any fault class the anomaly detector fails to resolve. On the TLFaultDataset this rule identifies the Line-fault class, raising its end-to-end accuracy from 31.3% to 95.8%; on the second dataset it identifies a different class, indicating that the mechanism is not specific to one system.

  2. A network-size-independent feature construction. Feature engineering is expressed as a per-measurement-point operator mapping six raw channels to eighteen features root-mean-square (RMS) energy measures, phase imbalance ratios, and zero-sequence symmetrical components applied identically at each of L measurement points to give 18L features. The same construction is applied without modification at L = 7 and L = 1.

  3. Zero-sequence components as the discriminator for ground involvement, with a learned rather than fixed boundary. Zero-sequence features supply the information that separates three-phase from three-phase-to-ground faults, an ambiguity that raw phase measurements cannot resolve; ablation raises the F1-score of this class pair from 0.39 to 0.997 on the second dataset. The magnitude and direction of the zero-sequence signature are shown to be system-dependent, since the residual current depends on fault balance and grounding impedance as well as on the presence of a ground path. A learned decision boundary therefore generalizes across systems where a fixed threshold does not.