Multi-agent Reinforcement Learning with Clustering and Forecasting for Optimized Energy Sharing in Microgrids

Authors

  • Daswin De Silva La Trobe Artificial Intelligence Institute, La Trobe University, Australia
  • Thimal Kempitiya La Trobe Artificial Intelligence Institute, La Trobe University, Australia
  • Nuwan Madhusanka La Trobe Artificial Intelligence Institute, La Trobe University, Australia https://orcid.org/0009-0003-9809-7348
  • Prabod Rathnayaka La Trobe Artificial Intelligence Institute, La Trobe University, Australia
  • Nishan Mills La Trobe Artificial Intelligence Institute, La Trobe University, Australia
  • Andrew Jennings La Trobe Artificial Intelligence Institute, La Trobe University, Australia https://orcid.org/0000-0001-5720-2736
  • Milos Manic Department of Computer Science, Virginia Commonwealth University, USA

DOI:

https://doi.org/10.47852/bonviewJCCE62027858

Keywords:

multi-agent reinforcement learning, deep learning, demand forecasting, microgrid auction, artificial intelligence

Abstract

The increasing prevalence of renewable energy and the evolving nature of energy consumption have motivated the need for more complex and dynamic microgrid energy management systems. Recent advances in artificial intelligence (AI) address these challenges by learning, predicting, and optimizing based on the large volumes of data generated by microgrid systems and related operations. Drawing on this context, the article proposes a novel framework for multi-agent reinforcement learning (MARL) with clustering and forecasting for optimized energy sharing in a microgrid environment with renewables and battery storage integration. The framework consists of three components: first, a structure-adapting unsupervised learning approach for creating clusters of prosumer energy consumption and generation patterns; second, a time-series forecasting ensemble for predicting future behaviors of the prosumers; and third, a continuous internal auction with a MARL for optimized energy sharing within the microgrid that collectively leads to reduced dependence on external energy sources. The proposed framework is empirically evaluated in the microgrid setting of a large multi-campus tertiary education institution. The results of this evaluation include stabilization of mean reward gain between independent agent and multi-agent models, impact of forecasting on MARL across seasonal variation, performance gains of 10–15% of MARL against heuristics, and scalability of the framework against cost, stability, reward, and convergence metrics. These results confirm the effectiveness of this AI framework for optimized prosumer energy sharing in microgrids with renewables and battery storage integration.



Received: 9 October 2025 | Revised: 14 January 2026 | Accepted: 25 March 2026



Conflicts of Interest

The authors declare that they have no conflicts of interest to this work.



Data Availability Statement

The data that support the findings of this study are openly available at https://github.com/CDAC-lab/UNICON.



Author Contribution Statement

Daswin De Silva: Conceptualization, Methodology, Formal analysis, Writing – original draft, Supervision, Funding acquisition. Thimal Kempitiya: Software, Validation, Formal analysis, Investigation, Data curation, Writing – original draft. Nuwan Madhusanka: Software, Validation, Resources, Data curation, Writing – original draft. Prabod Rathnayaka: Formal analysis, Investigation, Resources, Writing – original draft, Visualization. Nishan Mills: Methodology, Validation, Investigation, Writing – original draft, Supervision. Andrew Jennings: Conceptualization, Formal analysis, Resources, Writing – original draft, Supervision. Milos Manic: Conceptualization, Methodology, Validation, Writing – original draft, Supervision.

Downloads

Published

2026-05-11

Issue

Section

Research Articles

How to Cite

De Silva, D., Kempitiya, T., Madhusanka, N., Rathnayaka, P., Mills, N., Jennings, A., & Manic, M. (2026). Multi-agent Reinforcement Learning with Clustering and Forecasting for Optimized Energy Sharing in Microgrids. Journal of Computational and Cognitive Engineering, 5(2), 187-201. https://doi.org/10.47852/bonviewJCCE62027858

Funding data