IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v406y2026ics0306261925020124.html

Enhanced cyber-resilience in flexible energy markets for microgrids: A trust-aware federated deep reinforcement learning framework

Author

Listed:
  • Sepehrzad, Reza
  • Hosseinalibeiki, Hossein
  • Taghinezhad, Neda
  • Khosravi, Nima
  • al Durra, Ahmed
  • Sadabadi, Mahdieh S.

Abstract

This paper introduces a trust-aware, cyber-resilient approach to defend against adversarial cyberattacks against microgrid flexible energy markets. The new method applies federated day-ahead and real-time pricing controlled through a trust-aware federated deep reinforcement learning (TAFDRL) framework. The TAFDRL framework leverages encrypted updates, where each prosumer agent identifies a local soft actor-critic policy, along with a local policy that was updated based on Bayesian trust scores and tested for policy anomaly (latent policy anomaly model). Malicious updates are detected using the Mahalanobis distance from learned embedding space, which enables a trust-weighted average, which allows for secure model aggregation of individual learning. The TAFDRL framework was tested under numerous scenarios for false data injection (FDI), denial-of-service (DoS), and hybrid attack. The TAFDRL framework demonstrated a 94% cumulative reward rate (with 92% stability) and very high accuracy for detecting cyberattacks (< 2% error tolerance using 200 operational points), which maximized the reliable identification of suspicious policies that possess a persistent, resilient ability despite cyber threats. These results confirm that TAFDRL effectively balances cyber defense, aggressive learning performance, while maintaining economic stability. The research provides a robust framework for operating energy markets securely against an increasing number of cyber threats to energy distribution systems.

Suggested Citation

  • Sepehrzad, Reza & Hosseinalibeiki, Hossein & Taghinezhad, Neda & Khosravi, Nima & al Durra, Ahmed & Sadabadi, Mahdieh S., 2026. "Enhanced cyber-resilience in flexible energy markets for microgrids: A trust-aware federated deep reinforcement learning framework," Applied Energy, Elsevier, vol. 406(C).
  • Handle: RePEc:eee:appene:v:406:y:2026:i:c:s0306261925020124
    DOI: 10.1016/j.apenergy.2025.127282
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.apenergy.2025.127282?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

    for a different version of it.

    References listed on IDEAS

    as
    1. Yang, Ting & Xu, Zheming & Ji, Shijie & Liu, Guoliang & Li, Xinhong & Kong, Haibo, 2025. "Cooperative optimal dispatch of multi-microgrids for low carbon economy based on personalized federated reinforcement learning," Applied Energy, Elsevier, vol. 378(PA).
    2. Veerasamy, Veerapandiyan & Hu, Zhijian & Qiu, Haifeng & Murshid, Shadab & Gooi, Hoay Beng & Nguyen, Hung Dinh, 2024. "Blockchain-enabled peer-to-peer energy trading and resilient control of microgrids," Applied Energy, Elsevier, vol. 353(PA).
    3. Sepehrzad, Reza & Khodadadi, Amin & Adinehpour, Sara & Karimi, Maede, 2024. "A multi-agent deep reinforcement learning paradigm to improve the robustness and resilience of grid connected electric vehicle charging stations against the destructive effects of cyber-attacks," Energy, Elsevier, vol. 307(C).
    4. Sepehrzad, Reza & Yadav, Monika & Lazaroiu, George Cristian & Avramidis, Iason-Iraklis & Benitez, Ian Bartican & Di Somma, Marialaura & Papadimitriou, Cristina & Mirsaeedi, Hamed & Hassankashi, Alirez, 2026. "A critical overview of local energy communities: State-of-the-art, real-life applications & challenges and tackling the academia-industry gap," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PA).
    5. Sepehrzad, Reza & Langeroudi, Amir Saman Godazi & Al-Durra, Ahmed & Anvari-Moghaddam, Amjad & Sadabadi, Mahdieh S., 2025. "Demand response-based multi-layer peer-to-peer energy trading strategy for renewable-powered microgrids with electric vehicles," Energy, Elsevier, vol. 320(C).
    6. Sepehrzad, Reza & Al-Durra, Ahmed & Anvari-Moghaddam, Amjad & Sadabadi, Mahdieh S., 2025. "Short-term and probability scenario-oriented energy management of integrated energy distribution systems with considering energy market interactions and end-user participation," Energy, Elsevier, vol. 322(C).
    7. Ahmad, Jameel & Rizwan, Muhammad & Ali, Syed Farooq & Inayat, Usman & Abdul Muqeet, Hafiz & Imran, Muhammad & Awotwe, Tabbi, 2025. "Cybersecurity in smart microgrids using blockchain-federated learning and quantum-safe approaches: A comprehensive review," Applied Energy, Elsevier, vol. 393(C).
    8. Solat, Amirhossein & Gharehpetian, G.B. & Naderi, Mehdi Salay & Anvari-Moghaddam, Amjad, 2024. "On the control of microgrids against cyber-attacks: A review of methods and applications," Applied Energy, Elsevier, vol. 353(PA).
    9. Melendez, Kevin A. & Matamala, Yolanda, 2025. "Adversarial attacks in demand-side electricity markets," Applied Energy, Elsevier, vol. 377(PD).
    10. Galici, Marco & Troncia, Matteo & Nour, Morsy & Chaves-Ávila, José Pablo & Pilo, Fabrizio, 2025. "Comparative techno-economic analysis of market models for peer-to-peer energy trading on a distributed platform," Applied Energy, Elsevier, vol. 380(C).
    11. Zhang, Yiwen & Ren, Yifan & Liu, Ziyun & Li, Haoqin & Jiang, Huaiguang & Xue, Ying & Ou, Junhui & Hu, Renzong & Zhang, Jun & Gao, David Wenzhong, 2025. "Federated deep reinforcement learning for varying-scale multi-energy microgrids energy management considering comprehensive security," Applied Energy, Elsevier, vol. 380(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. Sepehrzad, Reza & Moafi, Milad & Durra, Ahmed al & Sadabadi, Mahdieh S., 2026. "Supervisory-learning microgrid control strategy in the presence of energy storage systems based on uncertainties and energy market interactions to improve stability," Energy, Elsevier, vol. 342(C).
    2. Muhammed, Abdullahi Oboh & El Moursi, Mohamed Shawki & Hatziargyriou, Nikos, 2026. "Review of deep learning techniques applications in modern power systems stability and cyber security," Applied Energy, Elsevier, vol. 402(PB).
    3. Sarker, Subrata K. & Shafei, Hamidreza & Li, Li & Aguilera, Ricardo P. & Hossain, M.J. & Muyeen, S.M., 2025. "Advancing microgrid cyber resilience: Fundamentals, trends and case study on data-driven practices," Applied Energy, Elsevier, vol. 401(PC).
    4. Ramul, Ali Rashid & Shahraki, Atefeh Salimi & Bachache, Nasseer K. & Sadeghi, Ramtin, 2025. "Cyberspace enhancement of electric vehicle charging stations in smart grids based on detection and resilience measures against hybrid cyberattacks: A multi-agent deep reinforcement learning approach," Energy, Elsevier, vol. 325(C).
    5. Yan, Bin & Liu, Fang, 2026. "Green hydrogen integration into national transportation and energy systems: Policy roadmaps for low-carbon mobility transitions," Energy, Elsevier, vol. 346(C).
    6. Bianchini, Gianni & Casini, Marco & Gholami, Milad, 2025. "Optimal operation of renewable energy communities under demand response programs," Energy, Elsevier, vol. 326(C).
    7. Zhao, Zhenghui & Shang, Yingying & Qi, Buyang & Wang, Yang & Sun, Yubo & Zhang, Qian, 2024. "Research on defense strategies for power system frequency stability under false data injection attacks," Applied Energy, Elsevier, vol. 371(C).
    8. Chen, Wenhao & Rong, Fei & Lin, Chuan, 2025. "A deep reinforcement learning method based on Mamba model with adaptive cross-attention for multi-energy microgrid energy management," Energy, Elsevier, vol. 340(C).
    9. ur Rehman, Anis & Sanjari, Mohammad J. & Elavarasan, Rajvikram Madurai & Jamal, Taskin, 2026. "Sustainability-aligned pathways for energy transition: A review of low-carbon energy network solutions," Renewable and Sustainable Energy Reviews, Elsevier, vol. 226(PE).
    10. Yu, Vincent F. & Le, Thi Huynh Anh & Gupta, Jatinder N.D., 2025. "Sustainable microgrids design with uncertainties and blockchain-based peer-to-peer energy trading," Renewable and Sustainable Energy Reviews, Elsevier, vol. 216(C).
    11. Fu, Zhengtang & Lu, Xi, 2025. "Driving electric vehicles obtain environmental income: A new incentive mechanism with digital technology," Energy, Elsevier, vol. 341(C).
    12. Tabassum, Fariya & Azim, M.Imran & Islam, Md.Rashidul & Rahman, M.A. & Ali, Liaqat & Rahman, Md.Mahfuzur & Hossain, M.J., 2025. "Energy data security and pricing model in local energy markets using artificial intelligence," Applied Energy, Elsevier, vol. 401(PB).
    13. Caixiang Fan & Hamzeh Khazaei & Petr Musilek, 2024. "BPET: A Unified Blockchain-Based Framework for Peer-to-Peer Energy Trading," Future Internet, MDPI, vol. 16(5), pages 1-19, May.
    14. Chen, Juanwei & Yan, Jun & Kemmeugne, Anthony & Kassouf, Marthe & Debbabi, Mourad, 2025. "Cybersecurity of distributed energy resource systems in the smart grid: A survey," Applied Energy, Elsevier, vol. 383(C).
    15. Ponnarasi, L. & Pankajavalli, P.B. & Lim, Yongdo & Sakthivel, R., 2024. "Distributed state estimation-based resilient controller design for IoT-enabled microgrids under deception attacks," Applied Energy, Elsevier, vol. 374(C).
    16. Lee, Han Pyo, 2026. "Integrating distributed energy resources in power distribution systems: A comprehensive review of impacts, challenges, and opportunities from a distribution system operator’s perspective," Applied Energy, Elsevier, vol. 403(PB).
    17. Matamala, Yolanda & Das, Tapas K. & Feijoo, Felipe, 2025. "A stochastic Stackelberg problem with long-term investment decisions in Power-To-X technologies for multi-energy microgrids," Energy, Elsevier, vol. 314(C).
    18. Li, Jinhang & Chen, Heng & Qi, Yizheng & Wang, Yinan & Lei, Jing, 2025. "Collaborative optimization for cross-regional integrated energy systems producing electricity-heat-hydrogen based on generalized Nash bargaining," Energy, Elsevier, vol. 333(C).
    19. Lei Zhang & Yuxing Yuan & Su Yan & Hang Cao & Tao Du, 2025. "Advances in Modeling and Optimization of Intelligent Power Systems Integrating Renewable Energy in the Industrial Sector: A Multi-Perspective Review," Energies, MDPI, vol. 18(10), pages 1-50, May.
    20. Yi Yu & Guo-Ping Liu & Yi Huang & Chi Yung Chung & Yu-Zhong Li, 2024. "A blockchain consensus mechanism for real-time regulation of renewable energy power systems," Nature Communications, Nature, vol. 15(1), pages 1-15, December.

    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:eee:appene:v:406:y:2026:i:c:s0306261925020124. 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.