Explainable Self-Supervised Temporal Contrastive Learning for Electricity Theft Detection in Smart Grids (SSTCL-AD-XAI)
Jalalud Din, Guo Wang
Key points
From the paper's conclusion- The framework demonstrates promising potential for transparent electricity theft detection and provides a foundation for future validation in operational smart-grid environments.
Abstract
Electricity theft imposes substantial revenue losses on utility operators and threatens smart-grid stability. Existing detection methods struggle with scarce labelled anomalies, distribution shift, and opaque decision boundaries that hinder forensic auditing. This paper proposes SSTCL-AD-XAI, a self-supervised temporal contrastive learning framework with explainable artificial intelligence for anomaly detection in hourly electricity consumption data. A two-layer LSTM encoder is first pre-trained via InfoNCE contrastive loss with stochastic augmentations — random hour masking, multiplicative scaling, and additive Gaussian noise — and then fine-tuned with Focal Loss under a leakage-safe protocol in which validation data serve only for model and threshold selection. Evaluated on a combined synthetic and SGCC corpus of 42,872 samples over 10 independent seeds, the framework attains a mean F1-score of 0.914, a mean ROC-AUC of 0.975, and a mean PR-AUC of 0.949. It significantly outperforms six unsupervised detectors — LOF, One-Class SVM, HBOS, Deep Autoencoder, DAGMM-like Autoencoder, and Transformer Autoencoder — at Wilcoxon p=0.002, and exceeds a supervised BiLSTM reference in ROC-AUC and PR-AUC while matching its F1-score. Source-wise evaluation confirms that performance is carried by the real SGCC data (SGCC-only F1 0.914), and a 5% prevalence stress test quantifies the deployment operating point (Recall 0.955, Precision 0.357). Multi-seed ablation identifies self-supervised pre-training as the dominant performance driver. Sequence-aware attribution via Integrated Gradients and temporal occlusion, computed exclusively on SGCC samples, confirms midnight consumption (H1) as the most discriminative forensic feature, and quantitative embedding metrics (silhouette 0.548; Davies-Bouldin 0.786) verify moderate and consistent class structure. The framework demonstrates promising potential for transparent electricity theft detection and provides a foundation for future validation in operational smart-grid environments.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Robust Approach to Electricity Theft Detection via Tensor Representation-Driven Contrastive DistillationIEEE Transactions on Industrial Informatics · 2026
- A Hierarchical Recursive Detection Method for Intelligent Electricity Theft Integrating Self‐Attention Imputation and Feature Distillation DefenseInternational Transactions on Electrical Energy Systems · 2026
- AI-Based Electricity Theft Detection System: A Comparative Performance Analysis of Machine Learning and Deep Learning ModelsMachine Learning and Knowledge Extraction · 2026
- Benchmark-grounded self-supervised contrastive learning for AMI-based distribution grid monitoring.Frontiers in artificial intelligence · 2026
- Dataset Separability Versus Model Architecture in Electricity Theft Detection: A Rigorous Comparison of Four Machine Learning Models Across Two DatasetsAlgorithms · 2026
- An Adaptive Reconstruction and Branch-Interaction Network for False Data Injection Attack Detection in Smart GridsAutomation · 2026