Federated Learning for Adaptive Modeling and Edge Forecasting in Energy Communities
FLAME
Privacy-preserving energy forecasting for Energy Communities, trained on edge devices where the data is produced.
- Programme
- Horizon Europe · HEDGE-IoT Open Call 1
- Area
- Energy
- Status
- Ongoing
- Period
- Jun 2026 – Dec 2026
- Partners
- INESC TEC (mentor) · HEDGE-IoT Portuguese Pilot
Overview
FLAME (Federated Learning for Adaptive Modeling and Edge Forecasting in Energy Communities) develops privacy-preserving energy forecasting for Energy Communities. Households, prosumers and renewable installations produce valuable energy data, yet collecting it on a central server raises concerns about privacy, data ownership and bandwidth.
FLAME trains forecasting models where the data is produced, on edge devices of the HEDGE-IoT Portuguese Pilot, and shares only model updates with a central server. The project runs for six months under Open Call 1 of HEDGE-IoT, a Horizon Europe project, within the topic “Federated Learning (FL) Algorithm Validation in Energy Communities”, with INESC TEC as mentor.
How it works
FLAME is organised in three environments:
- Model development. Smart-meter readings from the pilot are cleaned, aligned to a 15-minute grid and converted into interval consumption. Candidate models, from linear and tree-based baselines to neural time-series models such as GRU and DLinear, are compared on the same chronological data split.
- Edge. Clients of our FedMaestro platform run on the pilot’s edge devices. Each client prepares its own data in the same way and trains the selected model locally; the raw data stays on site.
- Federated coordination. The FedMaestro server maintains the shared model, collects the clients’ updates and combines them into a new version, which is then sent back to the clients.

Because model updates can still reveal information about the underlying data, they are treated as protected information throughout.
Asynchronous by design
Edge devices in an Energy Community differ widely in computing power, connectivity and data volume. If every training round had to wait for the slowest device, training would stall.
FLAME therefore uses asynchronous buffered federated learning. Each client sends its update as soon as it finishes training. The server collects incoming updates in a buffer and aggregates them once a set number has arrived, so slower devices never delay the rest.

Results so far
At mid-term, FLAME uses data from 11 smart meters to forecast energy consumption for the next 15 minutes, with each meter acting as a separate client.
- The best centralised model, a GRU network, reaches a Macro MAE of 50.69 Wh, about 22% lower than a Random Forest baseline.
- Federated training with FedAvg reaches 51.86 Wh, only 2.3% above the centralised model.
- With five epochs of local fine-tuning, the best result reaches 51.41 Wh, 1.4% above centralised training.

These results already meet the project’s target of staying within 10% of the centralised baseline. They remain preliminary: the data does not yet span enough of the year to assess seasonal effects, and the asynchronous workflow has still to be validated on the integrated platform.
Key features
- Short-term forecasting of energy consumption and renewable production
- Local training on edge devices, with raw data kept on site
- Asynchronous, buffered aggregation of model updates
- Personalisation through local fine-tuning
- A common, reproducible data-preparation pipeline for all clients
- Validation under heterogeneous, non-IID data conditions
What comes next
In the second half of the project, we will extend the dataset across more of the year, run additional forecasting experiments that include weather data, test further federated and personalisation strategies, and validate asynchronous coordination on the integrated FedMaestro platform. Once the results are stable, FLAME will be integrated with the pilot platform for final validation.
Impact
Reliable short-term forecasts allow Energy Communities to share, store and balance local energy more effectively. FLAME shows that such forecasts can be produced while each household’s data stays where it is generated, establishing federated forecasting as a practical option for distributed energy systems.
