IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i4p961-d1593163.html
   My bibliography  Save this article

A Privacy-Preserving RL-Based Secure Charging Coordinator Using Efficient FL for Smart Grid Home Batteries

Author

Listed:
  • Amr A. Elshazly

    (Department of Computer Science, Tennessee Technological University, Cookeville, TN 38505, USA)

  • Islam Elgarhy

    (Department of Electrical and Computer Engineering, Tennessee Technological University, Cookeville, TN 38505, USA
    Department of Computer Systems, Faculty of Computer and Information Sciences, Ain Shams University, Cairo 11566, Egypt)

  • Mohamed Mahmoud

    (Department of Electrical and Computer Engineering, Tennessee Technological University, Cookeville, TN 38505, USA)

  • Mohamed I. Ibrahem

    (School of Computer and Cyber Sciences, Augusta University, Augusta, GA 30912, USA)

  • Maazen Alsabaan

    (Department of Computer Engineering, College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia)

Abstract

Smart power grids (SGs) enhance efficiency, reliability, and sustainability by integrating distributed energy resources (DERs) such as solar panels and wind turbines. A key challenge in SGs is managing home battery charging during periods of insufficient renewable energy generation to ensure fairness, efficiency, and customer satisfaction. This paper introduces a secure reinforcement learning (RL)-based framework for optimizing battery charging coordination while addressing privacy concerns and false data injection (FDI) attacks. Privacy is preserved through Federated Learning (FL), enabling collaborative model training without sharing sensitive State of Charge (SoC) data that could reveal personal routines. To combat FDI attacks, Deep Learning (DL)-based detectors are deployed to identify malicious SoC data manipulation. To improve FL efficiency, the Change and Transmit (CAT) technique reduces communication overhead by transmitting only model parameters that experience enough change comparing to the last round. Extensive experiments validate the framework’s efficacy. The RL-based charging coordinator ensures fairness by maintaining SoC levels within thresholds and reduces overall power utilization through optimal grid power allocation. The CAT-FL approach achieves up to 93.5% communication overhead reduction, while DL-based detectors maintain high accuracy, with supervised models reaching 99.84% and anomaly detection models achieving 92.1%. Moreover, the RL agent trained via FL demonstrates strong generalization, achieving high cumulative rewards and equitable power allocation when applied to new data owners which did not participate in FL training. This framework provides a scalable, privacy-preserving, and efficient solution for energy management in SGs, offering high accuracy against FDI attacks and paving the way for the future of smart grid deployments.

Suggested Citation

  • Amr A. Elshazly & Islam Elgarhy & Mohamed Mahmoud & Mohamed I. Ibrahem & Maazen Alsabaan, 2025. "A Privacy-Preserving RL-Based Secure Charging Coordinator Using Efficient FL for Smart Grid Home Batteries," Energies, MDPI, vol. 18(4), pages 1-34, February.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:4:p:961-:d:1593163
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/4/961/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/4/961/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Paudel, Diwas & Das, Tapas K., 2023. "A deep reinforcement learning approach for power management of battery-assisted fast-charging EV hubs participating in day-ahead and real-time electricity markets," Energy, Elsevier, vol. 283(C).
    2. Firdous Kausar & Sambrdhi Deo & Sajid Hussain & Zia Ul Haque, 2024. "Federated Deep Learning Model for False Data Injection Attack Detection in Cyber Physical Power Systems," Energies, MDPI, vol. 17(21), pages 1-26, October.
    3. Klemen Deželak & Klemen Sredenšek & Sebastijan Seme, 2023. "Energy Consumption and Grid Interaction Analysis of Electric Vehicles Based on Particle Swarm Optimisation Method," Energies, MDPI, vol. 16(14), pages 1-15, July.
    4. Amr A. Elshazly & Mahmoud M. Badr & Mohamed Mahmoud & William Eberle & Maazen Alsabaan & Mohamed I. Ibrahem, 2024. "Reinforcement Learning for Fair and Efficient Charging Coordination for Smart Grid," Energies, MDPI, vol. 17(18), pages 1-28, September.
    5. Pinto, Giuseppe & Piscitelli, Marco Savino & Vázquez-Canteli, José Ramón & Nagy, Zoltán & Capozzoli, Alfonso, 2021. "Coordinated energy management for a cluster of buildings through deep reinforcement learning," Energy, Elsevier, vol. 229(C).
    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. Zhou, Kaile & Cheng, Lexin & Wen, Lulu & Lu, Xinhui & Ding, Tao, 2020. "A coordinated charging scheduling method for electric vehicles considering different charging demands," Energy, Elsevier, vol. 213(C).
    8. Verschae, Rodrigo & Kawashima, Hiroaki & Kato, Takekazu & Matsuyama, Takashi, 2016. "Coordinated energy management for inter-community imbalance minimization," Renewable Energy, Elsevier, vol. 87(P2), pages 922-935.
    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. Pinto, Giuseppe & Deltetto, Davide & Capozzoli, Alfonso, 2021. "Data-driven district energy management with surrogate models and deep reinforcement learning," Applied Energy, Elsevier, vol. 304(C).
    2. Amr A. Elshazly & Mahmoud M. Badr & Mohamed Mahmoud & William Eberle & Maazen Alsabaan & Mohamed I. Ibrahem, 2024. "Reinforcement Learning for Fair and Efficient Charging Coordination for Smart Grid," Energies, MDPI, vol. 17(18), pages 1-28, September.
    3. Pinto, Giuseppe & Piscitelli, Marco Savino & Vázquez-Canteli, José Ramón & Nagy, Zoltán & Capozzoli, Alfonso, 2021. "Coordinated energy management for a cluster of buildings through deep reinforcement learning," Energy, Elsevier, vol. 229(C).
    4. Zhao, Zhonghao & Lee, Carman K.M. & Yan, Xiaoyuan & Wang, Haonan, 2024. "Reinforcement learning for electric vehicle charging scheduling: A systematic review," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 190(C).
    5. Kandpal, Bakul & Pareek, Parikshit & Verma, Ashu, 2022. "A robust day-ahead scheduling strategy for EV charging stations in unbalanced distribution grid," Energy, Elsevier, vol. 249(C).
    6. Harrold, Daniel J.B. & Cao, Jun & Fan, Zhong, 2022. "Data-driven battery operation for energy arbitrage using rainbow deep reinforcement learning," Energy, Elsevier, vol. 238(PC).
    7. Nweye, Kingsley & Sankaranarayanan, Siva & Nagy, Zoltan, 2023. "MERLIN: Multi-agent offline and transfer learning for occupant-centric operation of grid-interactive communities," Applied Energy, Elsevier, vol. 346(C).
    8. Jacobs, Stef & Ghane, Sara & Houben, Pieter Jan & Kabbara, Zakarya & Huybrechts, Thomas & Hellinckx, Peter & Verhaert, Ivan, 2025. "Improving the learning process of deep reinforcement learning agents operating in collective heating environments," Applied Energy, Elsevier, vol. 384(C).
    9. Ekaterina Dudkina & Claudio Scarpelli & Valerio Apicella & Massimo Ceraolo & Emanuele Crisostomi, 2025. "Optimised Centralised Charging of Electric Vehicles Along Motorways," Sustainability, MDPI, vol. 17(12), pages 1-15, June.
    10. Rodrigo Verschae & Takekazu Kato & Takashi Matsuyama, 2016. "Energy Management in Prosumer Communities: A Coordinated Approach," Energies, MDPI, vol. 9(7), pages 1-27, July.
    11. Jordi de la Hoz & Àlex Alonso & Sergio Coronas & Helena Martín & José Matas, 2020. "Impact of Different Regulatory Structures on the Management of Energy Communities," Energies, MDPI, vol. 13(11), pages 1-26, June.
    12. Norouzi, Mohammadali & Aghaei, Jamshid & Pirouzi, Sasan & Niknam, Taher & Fotuhi-Firuzabad, Mahmud, 2022. "Flexibility pricing of integrated unit of electric spring and EVs parking in microgrids," Energy, Elsevier, vol. 239(PB).
    13. 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).
    14. Yin, Linfei & Luo, Shikui & Ma, Chenxiao, 2021. "Expandable depth and width adaptive dynamic programming for economic smart generation control of smart grids," Energy, Elsevier, vol. 232(C).
    15. Yang Gao & Xiaohong Zhang & Qingyuan Yan & Yanxue Li, 2025. "Demand Response Strategies for Electric Vehicle Charging and Discharging Behavior Based on Road–Electric Grid Interaction and User Psychology," Sustainability, MDPI, vol. 17(6), pages 1-27, March.
    16. Muhammad Ahsan Khan & Akhtar Hussain & Woon-Gyu Lee & Hak-Man Kim, 2023. "An Incentive-Based Mechanism to Enhance Energy Trading among Microgrids, EVs, and Grid," Energies, MDPI, vol. 16(17), pages 1-23, September.
    17. Li, Ying & Huang, Yuping & Liang, Yu & Song, Chenxi & Liao, Suliang, 2024. "Economic and carbon reduction potential assessment of vehicle-to-grid development in guangdong province," Energy, Elsevier, vol. 302(C).
    18. Zhou, Sixun & Yan, Rujing & Zhang, Jing & He, Yu & Geng, Xianxian & Li, Yuanbo & Yu, Changkun, 2025. "Optimizing interaction in renewable-vehicle-microgrid systems: Balancing battery health, user satisfaction, and participation," Renewable Energy, Elsevier, vol. 245(C).
    19. Eduardo J. Salazar & Mauro Jurado & Mauricio E. Samper, 2023. "Reinforcement Learning-Based Pricing and Incentive Strategy for Demand Response in Smart Grids," Energies, MDPI, vol. 16(3), pages 1-33, February.
    20. 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).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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:gam:jeners:v:18:y:2025:i:4:p:961-:d:1593163. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.