IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v378y2025ipas030626192402172x.html
   My bibliography  Save this article

A privacy-preserving heterogeneous federated learning framework with class imbalance learning for electricity theft detection

Author

Listed:
  • Wen, Hanguan
  • Liu, Xiufeng
  • Lei, Bo
  • Yang, Ming
  • Cheng, Xu
  • Chen, Zhe

Abstract

Electricity theft is a critical issue in smart grids, leading to significant financial losses for utilities and compromising the stability and reliability of the power system. Existing centralized methods for electricity theft detection raise privacy and security concerns due to the need for sharing sensitive customer data. To address these challenges, we propose HeteroFL, a novel heterogeneous federated learning framework for privacy-preserving electricity theft detection in smart grids. HeteroFL enables retailers to collaboratively train a global model without sharing their private data, while accounting for the class imbalance problem prevalent in electricity theft datasets. We introduce a data partitioning and aggregation scheme that assigns different weights to classes, ensuring a balanced contribution and representation of each class in the global model. In addition, our framework leverages the CKKS homomorphic encryption scheme to perform secure computations on encrypted parameters and employs a CNN-LSTM model to capture the spatial and temporal dependencies in electricity consumption patterns. We evaluate HeteroFL using a real-world smart grid dataset and demonstrate its effectiveness and efficiency in detecting energy theft. Furthermore, we analyze the robustness and perform ablation studies to validate the framework’s stability and identify the contributions of its key components. Although the impact of approximation errors introduced by the CKKS scheme on the CNN-LSTM model’s performance requires further investigation, our framework presents a promising solution for privacy-preserving and accurate electricity theft detection in smart grids using heterogeneous federated learning.

Suggested Citation

  • Wen, Hanguan & Liu, Xiufeng & Lei, Bo & Yang, Ming & Cheng, Xu & Chen, Zhe, 2025. "A privacy-preserving heterogeneous federated learning framework with class imbalance learning for electricity theft detection," Applied Energy, Elsevier, vol. 378(PA).
  • Handle: RePEc:eee:appene:v:378:y:2025:i:pa:s030626192402172x
    DOI: 10.1016/j.apenergy.2024.124789
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S030626192402172X
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2024.124789?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Li, Zhengmao & Xu, Yan & Wang, Peng & Xiao, Gaoxi, 2023. "Coordinated preparation and recovery of a post-disaster Multi-energy distribution system considering thermal inertia and diverse uncertainties," Applied Energy, Elsevier, vol. 336(C).
    2. Wen, Hanguan & Liu, Xiufeng & Yang, Ming & Lei, Bo & Cheng, Xu & Chen, Zhe, 2023. "An energy demand-side management and net metering decision framework," Energy, Elsevier, vol. 271(C).
    3. ., 2022. "The Federal Reserve and the Great Depression," Chapters, in: A Comparative History of Central Bank Behavior, chapter 7, pages 159-191, Edward Elgar Publishing.
    4. Wen, Hanguan & Liu, Xiufeng & Yang, Ming & Lei, Bo & Xu, Cheng & Chen, Zhe, 2024. "A novel approach for identifying customer groups for personalized demand-side management services using household socio-demographic data," Energy, Elsevier, vol. 286(C).
    5. Cheng, Xu & Shi, Fan & Liu, Yongping & Liu, Xiufeng & Huang, Lizhen, 2022. "Wind turbine blade icing detection: a federated learning approach," Energy, Elsevier, vol. 254(PC).
    6. Muhammad Mansoor Ashraf & Muhammad Waqas & Ghulam Abbas & Thar Baker & Ziaul Haq Abbas & Hisham Alasmary, 2022. "FedDP: A Privacy-Protecting Theft Detection Scheme in Smart Grids Using Federated Learning," Energies, MDPI, vol. 15(17), pages 1-15, August.
    7. ., 2022. "The multiple faces of federal government," Chapters, in: Rethinking Public Choice, chapter 8, pages 101-113, Edward Elgar Publishing.
    8. Smith, Thomas B., 2004. "Electricity theft: a comparative analysis," Energy Policy, Elsevier, vol. 32(18), pages 2067-2076, December.
    9. Li, Zhengmao & Wu, Lei & Xu, Yan & Wang, Luhao & Yang, Nan, 2023. "Distributed tri-layer risk-averse stochastic game approach for energy trading among multi-energy microgrids," Applied Energy, Elsevier, vol. 331(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Tan, Bifei & Chen, Simin & Liang, Zipeng & Zheng, Xiaodong & Zhu, Yanjin & Chen, Haoyong, 2024. "An iteration-free hierarchical method for the energy management of multiple-microgrid systems with renewable energy sources and electric vehicles," Applied Energy, Elsevier, vol. 356(C).
    2. Molin An & Xueshan Han & Tianguang Lu, 2024. "A Stochastic Model Predictive Control Method for Tie-Line Power Smoothing under Uncertainty," Energies, MDPI, vol. 17(14), pages 1-17, July.
    3. Stracqualursi, Erika & Rosato, Antonello & Di Lorenzo, Gianfranco & Panella, Massimo & Araneo, Rodolfo, 2023. "Systematic review of energy theft practices and autonomous detection through artificial intelligence methods," Renewable and Sustainable Energy Reviews, Elsevier, vol. 184(C).
    4. Shang, Yitong & Li, Sen, 2024. "FedPT-V2G: Security enhanced federated transformer learning for real-time V2G dispatch with non-IID data," Applied Energy, Elsevier, vol. 358(C).
    5. Long Wang, 2023. "Optimal Scheduling Strategy for Multi-Energy Microgrid Considering Integrated Demand Response," Energies, MDPI, vol. 16(12), pages 1-17, June.
    6. Zhao, Bingxu & Cao, Xiaodong & Duan, Pengfei, 2024. "Cooperative operation of multiple low-carbon microgrids: An optimization study addressing gaming fraud and multiple uncertainties," Energy, Elsevier, vol. 297(C).
    7. Imam, M. & Jamasb, T. & Llorca, M. & Llorca, M., 2018. "Power Sector Reform and Corruption: Evidence from Electricity Industry in Sub-Saharan Africa," Cambridge Working Papers in Economics 1801, Faculty of Economics, University of Cambridge.
    8. Md. Nazmul Hasan & Rafia Nishat Toma & Abdullah-Al Nahid & M M Manjurul Islam & Jong-Myon Kim, 2019. "Electricity Theft Detection in Smart Grid Systems: A CNN-LSTM Based Approach," Energies, MDPI, vol. 12(17), pages 1-18, August.
    9. Daví-Arderius, Daniel & Sanin, María-Eugenia & Trujillo-Baute, Elisa, 2017. "CO2 content of electricity losses," Energy Policy, Elsevier, vol. 104(C), pages 439-445.
    10. Netzah Calamaro & Yuval Beck & Ran Ben Melech & Doron Shmilovitz, 2021. "An Energy-Fraud Detection-System Capable of Distinguishing Frauds from Other Energy Flow Anomalies in an Urban Environment," Sustainability, MDPI, vol. 13(19), pages 1-38, September.
    11. Fernando Andrade & Drielli Peyerl & Claudia A. de Mattos, 2025. "Framework for Investment in Electricity Distribution to Enable Energy Transition," Energies, MDPI, vol. 18(3), pages 1-15, February.
    12. Min, Brian & Golden, Miriam, 2014. "Electoral cycles in electricity losses in India," Energy Policy, Elsevier, vol. 65(C), pages 619-625.
    13. Tan, Bifei & Lin, Zhenjia & Zheng, Xiaodong & Xiao, Fu & Wu, Qiuwei & Yan, Jinyue, 2023. "Distributionally robust energy management for multi-microgrids with grid-interactive EVs considering the multi-period coupling effect of user behaviors," Applied Energy, Elsevier, vol. 350(C).
    14. Rains, Emily & Abraham, Ronald J., 2018. "Rethinking barriers to electrification: Does government collection failure stunt public service provision?," Energy Policy, Elsevier, vol. 114(C), pages 288-300.
    15. Xie, Xuehua & Qian, Tong & Li, Weiwei & Tang, Wenhu & Xu, Zhao, 2024. "An individualized adaptive distributed approach for fast energy-carbon coordination in transactive multi-community integrated energy systems considering power transformer loading capacity," Applied Energy, Elsevier, vol. 375(C).
    16. Ejaz Gul & Imran Sharif Chaudhry, 2016. "Socio-Economic Analysis of Household Energy Security: Evidence from 3D Energy Losses Surface Maps (ELSMs)of a Town Using Conjuncture of Factors Matrix, Digital and Mathematical Analysis," The Pakistan Development Review, Pakistan Institute of Development Economics, vol. 55(4), pages 1019-1041.
    17. Jamasb, Tooraj, 2006. "Between the state and market: Electricity sector reform in developing countries," Utilities Policy, Elsevier, vol. 14(1), pages 14-30, March.
    18. Jamil, Faisal & Ahmad, Eatzaz, 2019. "Policy considerations for limiting electricity theft in the developing countries," Energy Policy, Elsevier, vol. 129(C), pages 452-458.
    19. Wang, Bingkai & Sun, Wenlei & Wang, Hongwei & Xu, Tiantian & Zou, Yi, 2024. "Research on rapid calculation method of wind turbine blade strain for digital twin," Renewable Energy, Elsevier, vol. 221(C).
    20. Muller, Renan Bergonsi & Rego, Erik Eduardo, 2021. "Privatization of electricity distribution in Brazil: Long-term effects on service quality and financial indicators," Energy Policy, Elsevier, vol. 159(C).

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:appene:v:378:y:2025:i:pa:s030626192402172x. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.