Mustafa, Ghulam, Nawaz, Asif, Abbas, Muhammad Azeem, Babar, Muhammad and Khan, Zahid (2026). TRANS-DEEP: an optimized deep learning framework for electricity theft detection in smart grids. PeerJ Computer Science, 12 ,
Abstract
Electricity theft significantly impacts power utilities, causing financial losses and compromising system reliability. Traditional detection methods, such as manual inspections and basic comparisons, lack scalability and accuracy when applied to large datasets. This article introduces TRANS-DEEP, an advanced methodology that integrates sophisticated techniques to effectively detect electricity theft and overcome these limitations. The proposed approach includes data collection and preprocessing, followed by Variational Autoencoder (VAE)-based anomaly detection to identify irregularities in consumption data. The Adaptive Synthetic Sampling (ADASYN) method is employed for data balancing to address class imbalance, complemented by Generative Adversarial Networks (GANs) for dataset enrichment. A Bidirectional Long Short-Term Memory Network (BiLSTM) is used for feature extraction, capturing sequential and temporal dependencies. Finally, a Transformer-based model leverages self-attention mechanisms for effective theft detection by focusing on the critical features identified by BiLSTM. TRANS-DEEP was trained and tested to evaluate its ability to enhance detection accuracy and robustness, outperforming existing computer-based methods. The experimental results demonstrate the superiority of the proposed methodology, achieving high accuracy rates of 94.66% for Smart Meter Datasets (SMD)-I, 96.34% for SMD-II, and 95.12% for SMD-III in detecting electricity theft.
| Publication DOI: | https://doi.org/10.7717/peerj-cs.3402 |
|---|---|
| Divisions: | College of Business and Social Sciences College of Business and Social Sciences > Aston Business School |
| Funding Information: | Prince Sultan University paid the Article Processing Charges (APC) of this publication. |
| Additional Information: | Copyright © 2026 Mustafa et al. Distributed under Creative Commons CC-BY 4.0. |
| Uncontrolled Keywords: | Smart grids,Electricity theft,BiLSTM,Transformer model,Self-attention mechanism |
| Publication ISSN: | 2376-5992 |
| Data Access Statement: | The code is available in the article Supplemental Files: https://peerj.com/articles/cs-3402/#supplemental-information.<br/><br/>The data is available at GitHub: https://github.com/henryRDlab/ ElectricityTheftDetection. <br/><br/>The data is available at Mendeley: https://data.mendeley.com/datasets/c3c7329tjj/3. <br/><br/>The data is available at Kaggle: https://www.kaggle.com/datasets/ahmedrady66/theft-<br/>detection-scheme-in-smart-grids. |
| Last Modified: | 25 Feb 2026 15:47 |
| Date Deposited: | 24 Feb 2026 13:37 |
| Full Text Link: | |
| Related URLs: |
https://peerj.c ... ticles/cs-3402/
(Publisher URL) |
PURE Output Type: | Article |
| Published Date: | 2026-02-09 |
| Published Online Date: | 2026-02-09 |
| Accepted Date: | 2025-10-28 |
| Authors: |
Mustafa, Ghulam
Nawaz, Asif Abbas, Muhammad Azeem (
0000-0001-9536-0065)
Babar, Muhammad Khan, Zahid |
0000-0001-9536-0065