• Paper
  • Engineering and Numerical Tools

Combining Client-Based Anomaly Detection and Federated Learning for Energy Forecasting in Smart Buildings

Article : Articles dans des revues internationales ou nationales avec comité de lecture

In today’s interconnected world, energy consumption forecasting faces challenges due to client-side anomalies in time-series data. Federated Learning (FL) offers a decentralized solution by forecasting without directly accessing user data. However, the effectiveness of the global model can decline if local anomalies are not properly managed. We propose our lightweight framework EIF-FL: Elliptic envelope and Isolation Forest with FL. It employs unsupervised ensemble Anomaly Detection (AD) before applying the FL process. EIF-FL consists of two layers. The first is on client-side and employs Isolation Forest and Elliptic Envelope with majority voting for AD. The second utilizes Long Short-Term Memory to forecast using FL on server-side. Simulations on energy consumption datasets show that EIF-FL improves AD metrics with accuracy, precision, and recall, having 0.94, 0.91, 0.92 simultaneously compared to the literature. It also enhances FL forecasting performances with test loss improvement (5.74%), SMAPE (13%), MAE (17%) compared to FedAvg without AD.