Forecasting Energy Availability in Local Energy Communities via LSTM Federated Learning
Fabio Turazza, Marcello Pietri, Natalia Selini Hadjidimitriou, Marco Mamei
TL;DR
The paper addresses privacy-aware forecasting of energy production and consumption in Local Energy Communities (LECs). It proposes a horizontal Federated Learning framework using Long Short-Term Memory (LSTM) networks to train predictive models locally while sharing only model updates. The approach is evaluated on a synthetic dataset representing 200 prosumers and 200 consumers, comparing Stand-Alone, Centralized, and Federated configurations and exploring multiple aggregation methods, including FedProx. Results indicate that Centralized learning yields slight accuracy gains over Federated learning, but Federated approaches preserve privacy and offer scalable, privacy-preserving forecasts for LEC optimization. The work demonstrates the practical viability of FL-LSTM for decentralized energy management and outlines paths toward greater scalability, real-time deployment, and integration with edge computing and blockchain.
Abstract
Local Energy Communities are emerging as crucial players in the landscape of sustainable development. A significant challenge for these communities is achieving self-sufficiency through effective management of the balance between energy production and consumption. To meet this challenge, it is essential to develop and implement forecasting models that deliver accurate predictions, which can then be utilized by optimization and planning algorithms. However, the application of forecasting solutions is often hindered by privacy constrains and regulations as the users participating in the Local Energy Community can be (rightfully) reluctant sharing their consumption patterns with others. In this context, the use of Federated Learning (FL) can be a viable solution as it allows to create a forecasting model without the need to share privacy sensitive information among the users. In this study, we demonstrate how FL and long short-term memory (LSTM) networks can be employed to achieve this objective, highlighting the trade-off between data sharing and forecasting accuracy.
