China Safety Science Journal ›› 2025, Vol. 35 ›› Issue (S1): 217-226.doi: 10.16265/j.cnki.issn1003-3033.2025.S1.0033

• Original article • Previous Articles     Next Articles

Study on electricity theft detection considering extremely imbalanced classification in federated learning

ZHANG Zhengyue1(), CAO Jiantao2, QI Yun3   

  1. 1 Electric Power College, Inner Mongolia University of Technology, Hohhot Inner Mongolia 010051, China
    2 College of Energy and Mining Engineering, Xi'an University of Science and Technology, Xi'an Shaanxi 710054, China
    3 School of Mining and Coal, Inner Mongolia University of Science and Technology, Baotou Inner Mongolia 014010, China
  • Received:2025-01-18 Revised:2025-03-21 Online:2025-06-30 Published:2025-12-30

Abstract:

To enhance the operational security of power systems and ensure the stable functioning of the electricity market, a detection method based on a HeteroFL framework was proposed to address the insufficient capability of electricity theft detection in energy security. Firstly, the approach integrated the CKKS fully homomorphic encryption scheme and data imbalance handling strategies to improve both detection accuracy and data privacy. Secondly, without sharing users' sensitive information, the method built local models for each power retailer and collaboratively trained them to construct a unified electricity theft detection model. Finally, by considering the significant imbalance between normal and malicious electricity consumption data, feature balance and an attention-based prototype mechanism were introduced to enhance the model's ability to identify anomalous patterns in electricity consumption time series. Experimental results indicate that the proposed HeteroFL detection framework, while guaranteeing end-to-end user data privacy, significantly enhances the accuracy and robustness of electricity theft identification. Moreover, it demonstrates superior generalization performance under severe data imbalance conditions, offering an effective and scalable paradigm for other privacy-sensitive applications with pronounced distributional skew.

Key words: electricity theft detection, heterogeneous federated learning (HeteroFL), local model, feature balance, cheon kim kim song (CKKS) homomorphic encryption

CLC Number: