Skip to content
Open access

Machine Learning-Based Electricity Theft Detection in Smart Grids using Class Imbalance Handling and Shapley Additive Explanations (Shap) Explainability

Sep 2026 · Ethiopian International Journal of Engineering and Technology · 0 citations

TL;DR

The results make clear that ignoring class imbalance renders theft detection systems ineffective in practice, and that SHAP explanations are a meaningful bridge between statistical performance and the operational confidence utilities need to act on model outputs.

Abstract

Among the various forms of non-technical losses plaguing power distribution networks, electricity theft stands out as particularly damaging draining utility revenues and undermining grid stability, with the worst effects felt in developing countries where oversight infrastructure is weak. Smart meter data opens a practical path to automated detection, one that scales far better than manual field inspections. Four supervised classifiers were evaluated in this work: Logistic Regression, Random Forest, Support Vector Machine, and XGBoost. All four were tested on the publicly available State Grid Corporation of China (SGCC) dataset, which covers consumption records for 42,372 customers across roughly 1,035 days. Customers missing more than 50% of their daily readings were excluded, leaving 31,188 usable records. Of these, 7.7% were labelled as theft cases — a ratio that closely mirrors real-world distribution network conditions. From each customer's consumption history, nine statistical features were extracted: daily mean, daily standard deviation, daily maximum, daily minimum, load factor, weekday-to-weekend consumption ratio, peak load, load variance, and coefficient of variation. The class imbalance was addressed through three distinct strategies — leaving it uncorrected, applying cost-sensitive class weighting, and generating synthetic minority samples through oversampling. Baseline models hit accuracy figures above 92%, yet their recall stayed below 6%, meaning nearly all theft cases went undetected. Once cost-sensitive weighting was introduced, recall climbed to 58.3% for the Support Vector Machine — a tenfold improvement over baseline — and 51.0% for Logistic Regression, with AUC-ROC values holding steady around 72%. Among tree-based models, XGBoost with class weighting delivered the best recall-F1 balance at 42.3% and 25.0% respectively. SHapley Additive exPlanations (SHAP) analysis on the XGBoost model pointed to peak load, daily maximum consumption, and load variance as the three features with the greatest influence on theft predictions, giving the results a degree of physical interpretability that raw metrics alone cannot provide. Taken together, the results make clear that ignoring class imbalance renders theft detection systems ineffective in practice, and that SHAP explanations are a meaningful bridge between statistical performance and the operational confidence utilities need to act on model outputs. The framework presented here provides a transparent, reproducible starting point for future work in this area. Keywords: Electricity Theft Detection, Smart Grid, Machine Learning, Class Imbalance, SHAP Explainability

Read PDF

Similar papers

Open access Sep 2026

Comparing Machine and Deep Learning for Electricity Theft Detection from Monthly Billing Data in an Emerging Energy Market

The results support ensembles and compact dense networks for monthly theft screening and indicate that AMI-oriented sequential gains do not transfer automatically to 53-point billing vectors under the present protocol.

O. W. Orozco-Cerón, Orlando Joaqui-Barandica, D. F. Manotas-Duque · 0 citations
#reinforcement learning Review Open access Sep 2026

A Review of Machine Learning-Based Theft Detection for Smart Energy Meters

A literature review of Machine Learning applications in the domain of Electricity Theft Detection (ETD) that is grounded in 71 scholarly studies produced between 2021 and 2026 and selected according to criteria of machine learning application in the process of theft/NTL detection and accompanying empirical validation.

Oladipupo Olatunji, Victor Edibo, Olumide Alamu · 0 citations
#federated learning Review Open access Oct 2026

AI-Based Electricity Theft Detection System: A Comparative Performance Analysis of Machine Learning and Deep Learning Models

Electricity theft is a worldwide challenge that causes significant losses for utility companies, with annual revenue losses estimated at USD 89.3 billion globally. The widespread rollout of Advanced Metering Infrastructure (AMI) and smart meters has made it easier to access large amounts of high-frequency consumption d...

Mmeli Dube, Rito Clifford Maswanganyi, Philani Khumalo · 0 citations
Conference Sep 2026

Application of the Random Forest Method in Predicting the Risk of Power Network Disruption Based on PLN UP3 Lhokseumawe Maintenance Data

Maintaining the reliability of electricity distribution systems remains a major challenge for PT PLN (Persero), Indonesia's state-owned electricity utility, particularly in minimizing unplanned outages caused by equipment degradation and operational disturbances. Conventional maintenance strategies based on corrective...

Rio Setiawan, Arnawan Hasibuan, Muhammad Daud et al. · 0 citations
Review Open access Aug 2026

SUPERVISED MACHINE LEARNING FOR ELECTRICITY THEFT DETECTION: A SYSTEMATIC REVIEW OF TRENDS, CHALLENGES, AND FUTURE DIRECTIONS

Electricity theft causes substantial financial losses and grid instability, requiring data-driven detection solutions, especially through supervised machine learning (SML) techniques. This review systematically examines 50 studies (2012–2024) from Scopus, IEEE Xplore, and Web of Science, following PRISMA guidelines to...

Ateequr Rahaman Mohammed, R. Mohamad Idris · 0 citations
Conference Sep 2026

Big-data mining-based identification of abnormal electricity consumption behavior for urban transport-energy distribution networks

A big-data mining framework that combines chronological AMI cleaning, feeder-relative consistency analysis, temporal convolutional representation, gradient-boosted tabular learning and isolation-based anomaly scoring is proposed that provides a reproducible decision-support approach for abnormal-consumption identificat...

Hao Wu, Mei-Han Chen, Qing-Yuan Dong et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.