TSFPTD: A Multimodal Model Integrating Temporal and Spectral Features for Electricity Theft Detection
Abstract
1. Introduction
2. Materials and Methods
2.1. Data Pre-Processing
2.2. Obtaining Spectrum Images Using Deep Wavelet Transform Network
2.3. Multimodal Feature Fusion for Electricity Theft Detection
3. Results and Discussion
3.1. Experimental Design
3.2. Dataset and Data Preprocessing
3.3. Evaluation on the SGCC Dataset
3.4. Ablation Experiment
3.5. Testing of Different Versions of RepViT Models
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Stracqualursi, E.; Rosato, A.; Di Lorenzo, G.; Panella, M.; Araneo, R. Systematic review of energy theft practices and autonomous detection through artificial intelligence methods. Renew. Sustain. Energy Rev. 2023, 184, 113544. [Google Scholar] [CrossRef]
- Yan, Z.; Peng, L.; Feng, W.; Yang, L.T. Social-Chain: Decentralized Trust Evaluation Based on Blockchain in Pervasive Social Networking. ACM Trans. Internet Technol. 2021, 21, 17. [Google Scholar] [CrossRef]
- Li, S.; Han, Y.; Yao, X.; Yingchen, S.; Wang, J.; Zhao, Q. Electricity theft detection in power grids with deep learning and random forests. J. Electr. Comput. Eng. 2019, 2019, 4136874. [Google Scholar] [CrossRef]
- Haq, E.U.; Huang, J.; Xu, H.; Li, K.; Ahmad, F. A hybrid approach based on deep learning and support vector machine for the detection of electricity theft in power grids. Energy Rep. 2021, 7, 349–356. [Google Scholar] [CrossRef]
- Jindal, A.; Dua, A.; Kaur, K.; Singh, M.; Kumar, N.; Mishra, S. Decision tree and SVM-based data analytics for theft detection in smart grid. IEEE Trans. Ind. Inf. 2016, 12, 1005–1016. [Google Scholar] [CrossRef]
- Feng, Z.; Huang, J.; Tang, W.H.; Shahidehpour, M. Data mining for abnormal power consumption pattern detection based on local matrix reconstruction. Int. J. Electr. Power Energy Syst. 2020, 123, 106315. [Google Scholar] [CrossRef]
- Ismail, M.; Shaaban, M.F.; Naidu, M.; Serpedin, E. Deep learning detection of electricity theft cyber-attacks in renewable distributed generation. IEEE Trans. Smart Grid 2020, 11, 3428–3437. [Google Scholar] [CrossRef]
- Dhaked, D.K.; Dadhich, S.; Birla, D. Power output forecasting of solar photovoltaic plant using LSTM. Green Energy Intell. Transp. 2023, 2, 100113. [Google Scholar] [CrossRef]
- Markovska, M.; Gerazov, B.; Zlatkova, A.; Taskovski, D. Electricity theft detection based on temporal convolutional networks with self-attention. In Proceedings of the 2023 30th International Conference on Systems, Signals and Image Processing, Ohrid, Macedonia, 27–29 June 2023; IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef]
- Sun, Y.; Lee, J.; Kim, S.; Seon, J.; Lee, S.; Kyeong, C.; Kim, J. Energy Theft Detection Model Based on VAE-GAN for Imbalanced Dataset. Energies 2023, 16, 1109. [Google Scholar] [CrossRef]
- Bai, Y.; Sun, H.; Zhang, L.; Wu, H. Hybrid CNN–Transformer Network for Electricity Theft Detection in Smart Grids. Sensors 2023, 23, 8405. [Google Scholar] [CrossRef]
- Hasan, N.; Toma, R.N.; Nahid, A.-A.; Islam, M.M.M.; Kim, J.-M. Electricity Theft Detection in Smart Grid Systems: A CNN-LSTM Based Approach. Energies 2019, 12, 3310. [Google Scholar] [CrossRef]
- Djaghloul, C.; Tehrani, K.; Vurpillot, F. Open-Circuit Fault Detection in a 5-Level Cascaded H-Bridge Inverter Using 1D CNN and LSTMJ. Energies 2025, 18, 5004. [Google Scholar] [CrossRef]
- Nirmal, S.; Patil, P.; Raja Kumar, J.R. CNN-AdaBoost based hybrid model for electricity theft detection in smart grid. e-Prime Adv. Electr. Eng. Electron. Energy 2024, 7, 100452. [Google Scholar] [CrossRef]
- Guo, T.; Zhang, T.; Lim, E.; Lopez-Benitez, M.; Ma, F.; Yu, L. A review of wavelet analysis and its applications: Challenges and opportunities. IEEE Access 2022, 10, 58869–58903. [Google Scholar] [CrossRef]
- Siami-Namini, S.; Tavakoli, N.; Siami Namin, A. A Comparative Analysis of Forecasting Financial Time Series Using ARIMA, LSTM, and BiLSTM EB/OL. arXiv 2019, arXiv:1911.09512. [Google Scholar] [CrossRef]
- Lin, W.C.; Tsai, C.F. Missing value imputation: A review and analysis of the literature (2006–2017). Artif. Intell. Rev. 2020, 53, 1487–1509. [Google Scholar] [CrossRef]
- Kaplan, H.; Tehrani, K.; Jamshidi, M. Fault Diagnosis of Smart Grids Based on Deep Learning Approach. In Proceedings of the 2021 World Automation Congress (WAC) 2021, Taipei, Taiwan, 1–5 August 2021; pp. 164–169. Available online: https://ieeexplore.ieee.org/document/9559474 (accessed on 12 February 2026).
- Wang, A.; Chen, H.; Lin, Z.; Han, J.; Ding, G. RepViT: Revisiting Mobile CNN From ViT Perspective. arXiv 2024, arXiv:2307.09283. [Google Scholar]
- Hur, S.B.; Lee, K.M. Image-coded time series classification with MLP-mixer. In Proceedings of the 2022 Joint 12th International Conference on Soft Computing and Intelligent Systems and 23rd International Symposium on Advanced Intelligent Systems (SCIS&ISIS), Ise, Japan, 29 November–3 December 2022; pp. 1–2. [Google Scholar] [CrossRef]
- Wang, Z.; Yan, W.; Oates, T. Time series classification from scratch with deep neural networks: A strong baseline. In Proceedings of the 2017 International Joint Conference on Neural Networks, Anchorage, AK, USA, 14–19 May 2017; pp. 1578–1585. [Google Scholar] [CrossRef]
- Zou, X.; Wang, Z.; Li, Q.; Sheng, W. Integration of residual network and convolutional neural network along with various activation functions and global pooling for time series classification. Neurocomputing 2019, 367, 39–45. [Google Scholar] [CrossRef]
- Rücker, N.; Pflüger, L.; Maier, A. Hardware failure prediction on imbalanced times series data. J. Digit Imaging 2021, 34, 182–189. [Google Scholar] [CrossRef]
- Fawaz, H.I.; Lucas, B.; Forestier, G.; Pelletier, C.; Schmidt, D.F.; Weber, J.; Webb, G.I.; Idoumghar, L.; Muller, P.-A.; Petitjean, F. InceptionTime: Finding AlexNet for time series classification. Data Min. Knowl. Discov. 2020, 34, 1936–1962. [Google Scholar] [CrossRef]
- Finardi, P.; Campiotti, I.; Plensack, G.; de Souza, R.D.; Nogueira, R.F.; Pinheiro, G.R.; Lotufo, R. Electricity theft detection with self-attention. arXiv 2020, arXiv:2002.06219. [Google Scholar] [CrossRef]
- Zhuang, W.; Jiang, W.; Xia, M.; Liu, J. Dynamic generative residual graph convolutional neural networks for electricity theft detection. IEEE Access 2024, 12, 42737–42750. [Google Scholar] [CrossRef]
- Dempster, A.; Schmidt, D.F.; Webb, G.I. MiniRocket: A very fast (almost) deterministic transform for time series classification. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Virtual, 14–18 August 2021; Association for Computing Machinery: New York, NY, USA, 2021; pp. 248–257. [Google Scholar] [CrossRef]
- Dempster, A.; Petitjean, F.; Webb, G.I. ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels. Data Min. Knowl. Discov. 2020, 34, 1454–1495. [Google Scholar] [CrossRef]
- Li, Z.; Sun, H.; Xue, Y.; Li, Z.; Jin, X.; Wang, P. Resilience-Oriented Asynchronous Decentralized Restoration Considering Building and E-Bus Coresponse in Electricity-Transportation Networks. IEEE Trans. Transp. Electrif. 2025, 11, 11701–11713. [Google Scholar] [CrossRef]
- Chang, L.; Li, Z.; Tian, X.; Su, J.; Chang, X.; Xue, Y.; Li, Z.; Jin, X.; Wang, P.; Sun, H. A two-stage distributionally robust low-carbon operation method for antarctic unmanned observation station integrating virtual energy storage and hydrogen waste heat recovery. Appl. Energy 2025, 400, 126578. [Google Scholar] [CrossRef]







| Category | Normal Users | Theft Users |
|---|---|---|
| Total in test set | 3876 | 362 |
| Correctly identified | 3782 | 322 |
| Misidentified | 94 | 40 |
| Methods | AUC | F1 Score | ACC |
|---|---|---|---|
| SVM [4] | 0.556 | 0.201 | 0.916 |
| MLP [20] | 0.582 | 0.277 | 0.925 |
| FCN [21] | 0.802 | 0.484 | 0.939 |
| ResNet [22] | 0.711 | 0.444 | 0.930 |
| LSTMFCN [23] | 0.864 | 0.563 | 0.943 |
| CNN-LSTM [12] | 0.882 | 0.543 | 0.943 |
| InceptionTime [24] | 0.868 | 0.617 | 0.936 |
| Self-Attention [25] | 0.801 | 0.590 | 0.933 |
| DGRGNN [26] | 0.859 | - | - |
| MinRocket [27] | 0.659 | 0.470 | 0.935 |
| ROCKET [28] | 0.631 | 0.414 | 0.934 |
| TSFPTD (Ours) | 0.9747 | 0.8277 | 0.9683 |
| Bi-LSTM | Mask-RepViT | |||
|---|---|---|---|---|
| Use SMOTE | ACC | AUC | ACC | AUC |
| 0.9122 | 0.9237 | 0.9339 | 0.9617 | |
| Do not use SMOTE | ACC | AUC | ACC | AUC |
| 0.9155 | 0.7164 | 0.8849 | 0.6625 | |
| Model | ACC | F1 | Precision | Recall | AUC |
|---|---|---|---|---|---|
| Bi-LSTM | 0.9122 | 0.5991 | 0.4912 | 0.7680 | 0.9237 |
| TCNs | 0.8853 | 0.5207 | 0.4049 | 0.7293 | 0.8781 |
| Transformers | 0.8976 | 0.5262 | 0.4350 | 0.6657 | 0.8880 |
| Model | ACC | F1 | Precision | Recall | AUC |
|---|---|---|---|---|---|
| TSFPTD(Ours) | 0.9683 | 0.8277 | 0.7740 | 0.8895 | 0.9747 |
| BL | 0.9122 | 0.5991 | 0.4912 | 0.7680 | 0.9237 |
| MRV-WA | 0.9487 | 0.7456 | 0.6476 | 0.8784 | 0.9661 |
| TSFPTD-NA | 0.9594 | 0.7748 | 0.7363 | 0.8176 | 0.9672 |
| TSFPTD-NM | 0.9549 | 0.7609 | 0.6956 | 0.8397 | 0.9667 |
| RepViT Version | Acc | F1 | Precision | Recall | AUC |
|---|---|---|---|---|---|
| repvit_m0_9.dist_300e_in1k | 0.9276 | 0.6751 | 0.5472 | 0.8812 | 0.9572 |
| repvit_m1.dist_in1k | 0.9151 | 0.6436 | 0.5015 | 0.8978 | 0.9597 |
| repvit_m1_5.dist_450e_in1k | 0.9339 | 0.6943 | 0.5740 | 0.8785 | 0.9617 |
| repvit_m2.dist_in1k | 0.9337 | 0.6962 | 0.5719 | 0.8895 | 0.9632 |
| repvit_m2_3.dist_450e_in1k | 0.9280 | 0.6839 | 0.5473 | 0.9116 | 0.9641 |
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.
Share and Cite
Gao, S.; He, X.; Wang, Q.; Yuan, L.; Li, Z.; Wei, Z. TSFPTD: A Multimodal Model Integrating Temporal and Spectral Features for Electricity Theft Detection. Electronics 2026, 15, 1153. https://doi.org/10.3390/electronics15061153
Gao S, He X, Wang Q, Yuan L, Li Z, Wei Z. TSFPTD: A Multimodal Model Integrating Temporal and Spectral Features for Electricity Theft Detection. Electronics. 2026; 15(6):1153. https://doi.org/10.3390/electronics15061153
Chicago/Turabian StyleGao, Shijie, Xin He, Qiang Wang, Lufeng Yuan, Zihao Li, and Zhenhua Wei. 2026. "TSFPTD: A Multimodal Model Integrating Temporal and Spectral Features for Electricity Theft Detection" Electronics 15, no. 6: 1153. https://doi.org/10.3390/electronics15061153
APA StyleGao, S., He, X., Wang, Q., Yuan, L., Li, Z., & Wei, Z. (2026). TSFPTD: A Multimodal Model Integrating Temporal and Spectral Features for Electricity Theft Detection. Electronics, 15(6), 1153. https://doi.org/10.3390/electronics15061153
