Submitted:
20 January 2026
Posted:
20 January 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. TGCformer
2.1. Overall Framework
2.2. Spatiotemporal Structural Feature Extraction and Encoding
2.2.1. Multi-Scale Time Series Statistical Feature Extraction
2.2.2. Graph-Level Embedding Feature Extraction Method Based on Sparse GATv2
- 1)
- Sparse Neighbor Graph Construction
- 2)
- Dynamic Graph Attention Modeling
- 3)
- Graph-level Feature Aggregation
2.3. Spatiotemporal Feature Fusion and Encoding Based on Multi-Head Cross-Attention
3. Experiments and Validation
3.1. Data Description
3.2. Evaluation Metrics
3.3. Overall Performance Evaluation of TGCformer
3.4. Ablation Study
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Carr, Darragh; Thomson, Murray. Non-technical electricity losses. Energies 2022, 15.6, 2218. [Google Scholar] [CrossRef]
- de Souza Savian, Fernando; et al. Non-technical losses: A systematic contemporary article review. Renewable and Sustainable Energy Reviews 2021, 147, 111205. [Google Scholar] [CrossRef]
- Fahmia; Khalid, ATW; Kashyzadeh, K. R.; Ghorbania, S. Enhanced Autoregressive Integrated Moving Average Model for Anomaly Detection in Power Plant Operations. International Journal of Engineering 2024, 37.8, 1691–1699. [Google Scholar] [CrossRef]
- Cheng, Min; et al. Power system abnormal pattern detection for new energy big data. International Journal of Emerging Electric Power Systems 2023, 24.1, 91–102. [Google Scholar] [CrossRef]
- Yang, J; Fei, K; Ren, F; et al. Non-technical loss detection using missing values pattern[C]. International Conference on Smart Grid and Clean Energy Technologies, Kuching, Malaysia, 2020; pp. 149–154. [Google Scholar]
- Hussain, S; Mustafa, M; Jumani, T; et al. A novel unsupervised feature-based approach for electricity theft detection using robust PCA and outlier removal clustering algorithm[J]. International Transactions on Electrical Energy Systems 2020, 30(11), 3359–3372. [Google Scholar] [CrossRef]
- Guerrero, Juan Ignacio; et al. Non-technical losses reduction by improving the inspections accuracy in a power utility. IEEE Transactions on Power Systems 2017, 33.2, 1209–1218. [Google Scholar] [CrossRef]
- Xia, Y; Liang, D; Zheng, G; et al. Helicopter main reduction planetary gear fault diagnosis method based on SVDD [J]. International Journal of Applied Electromagnetics and Mechanics 2020, 64(1-4), 137–145. [Google Scholar] [CrossRef]
- Vapnik, V; Chervonenkis, A Y. A class of algorithms for pattern recognition learning[J]. Avtomat. i Telemekh 1964, 25(6), 937–945. [Google Scholar]
- Liu, H; Shi, J; Fu, R; et al. Anomaly Detection of Residential Electricity Consumption Based on Ensemble Model of PSO-AE-XGBOOST[C]//International Conference on Neural Computing for Advanced Applications; Springer Nature Singapore: Singapore, 2024; pp. 44–58. [Google Scholar]
- Touzani, S; Granderson, J; Femandes, S. Gradient boosting machine for modeling the energy consumption of commercial buildings[J]. Energy and Buildings 2018, 158, 1533–1543. [Google Scholar] [CrossRef]
- Harshini, Ch; et al. Electricity theft detection in power grids with deep learning and random forests. International Journal of Management Research and Reviews 2023, 13.3, 1–10. [Google Scholar]
- Bian, Jiahao; et al. Abnormal detection of electricity consumption of user based on particle swarm optimization and long short term memory with the attention mechanism. IEEE Access 2021, 9, 47252–47265. [Google Scholar] [CrossRef]
- Irwansyah, Arif; et al. Power consumption predictive analytics and automatic anomaly detection based on CNN-LSTM neural networks. Jurnal Rekayasa Elektrika 2023, 19.14, 127–134. [Google Scholar] [CrossRef]
- Duan, Jing. Deep learning anomaly detection in AI-powered intelligent power distribution systems. Frontiers in Energy Research 2024, 12, 1364456. [Google Scholar] [CrossRef]
- Kang, Hyeongwon; Kang, Pilsung. Transformer-based multivariate time series anomaly detection using inter-variable attention mechanism. Knowledge-Based Systems 2024, 290, 111507. [Google Scholar] [CrossRef]
- Yi, Shuang; et al. Robust transformer-based anomaly detection for nuclear power data using maximum correntropy criterion. Nuclear Engineering and Technology 2024, 56.4, 1284–1295. [Google Scholar] [CrossRef]
- Christ, Maximilian; et al. Time series feature extraction on basis of scalable hypothesis tests (TSFresh - a python package). Neurocomputing 2018, 307, 72–77. [Google Scholar] [CrossRef]
- Tam, I; Kalech, M; Rokach, L; et al. Probability-based algorithm for bearing diagnosis with untrained spall sizes[J]. Sensors 2020, 20(5), 1298–1299. [Google Scholar] [CrossRef] [PubMed]
- Döhler, Sebastian. A discrete modification of the Benjamini--Yekutieli procedure. Econometrics and Statistics 2018, 5, 137–147. [Google Scholar] [CrossRef]
- Fu, Yu; Liu, Xindi; Yu, Bin. PD-GATv2: Positive difference second generation graph attention network based on multi-granularity in information systems to classification. Applied Intelligence 2024, 54.6, 5081–5096. [Google Scholar] [CrossRef]
- Ma, Wenping; et al. Intra-and intersource interactive representation learning network for remote sensing images classification. IEEE Transactions on Geoscience and Remote Sensing 2024, 62, 1–15. [Google Scholar] [CrossRef]
- Li, H; Wu, X J. CrossFuse: A novel cross attention mechanism based infrared and visible image fusion approach[J]. Information Fusion 2024, 103, 102147. [Google Scholar] [CrossRef]
- Lv, Y; Liu, Y; Li, S; et al. Enhancing marine shaft generator reliability through intelligent fault diagnosis of gearbox bearings via improved Bidirectional LSTM[J]. Ocean Engineering 2025, 337, 121860. [Google Scholar] [CrossRef]
- Razavi, Rouzbeh; Gharipour, Amin. Rethinking the privacy of the smart grid: What your smart meter data can reveal about your household in Ireland. Energy research & social science 2018, 44, 312–323. [Google Scholar]
- Zanetti, M; Jamhour, E; Pellenz, M; et al. A tunable fraud detection system for advanced metering infrastructure using short-lived patterns[J]. IEEE Transactions on Smart grid 2017, 10(1), 830–840. [Google Scholar] [CrossRef]
- Jokar, P; Arianpoo, N; Leung, V C M. Electricity theft detection in AMI using customers' consumption patterns[J]. IEEE Transactions on Smart Grid 2015, 7(1), 216–226. [Google Scholar] [CrossRef]
- McLaughlin, S; Holbert, B; Fawaz, A; et al. A multi-sensor energy theft detection framework for advanced metering infrastructures[J]. IEEE journal on selected areas in communications 2013, 31(7), 1319–1330. [Google Scholar] [CrossRef]
- Mohassel, R R; Fung, A S; Mohammadi, F; et al. A survey on advanced metering infrastructure and its application in smart grids[C]//2014 IEEE 27th Canadian conference on electrical and computer engineering (CCECE); IEEE; Volume 2014, pp. 1–8.
- Fawaz, Ismail; Hassan; et al. Inceptiontime: Finding alexnet for time series classification. Data Mining and Knowledge Discovery 2020, 34.6, 1936–1962. [Google Scholar] [CrossRef]
- Rahimian, Elahe; et al. Xceptiontime: A novel deep architecture based on depthwise separable convolutions for hand gesture classification. arXiv 2019, arXiv:1911.03803. [Google Scholar] [CrossRef]








| Method | Anomaly Rate of the Method | ACC | Precision | Recall | F1 |
|---|---|---|---|---|---|
| InceptionTime | 5% | 0.957 | 0.833 | 0.178 | 0.294 |
| XceptionTime | 5% | 0.815 | 0.109 | 0.380 | 0.170 |
| TGCformer (ours) |
5% | 0.979 | 0.808 | 0.750 | 0.778 |
| Method | ACC | Precision | Recall | F1 |
|---|---|---|---|---|
| Only_ TSFresh | 0.971 | 0.936 | 0.771 | 0.846 |
| Only_GATv2 | 0.890 | 0.460 | 0.509 | 0.484 |
| TGCformer | 0.979 | 0.979 | 0.807 | 0.885 |
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.