Privacy-Preserving Energy Anomaly Detection using Federated Deep Autoencoders

Authors:

Abstract
Buildings are among the largest contributors to global carbon emissions, with a substantial share of energy wasted due to operational inefficiencies, equipment malfunctions, and undetected anomalies in consumption patterns. Detecting such anomalies is therefore critical to improving energy efficiency and reducing the carbon footprint of built environments. However, conventional anomaly detection methods rely on centralized data aggregation and processing, which demand significant computational resources and raise privacy concerns. This study introduces a Federated Learning (FL) framework for energy anomaly detection in smart buildings, enabling decentralized model training without sharing raw data across clients. We evaluate both statistical baselines (Modified Z-Score and Isolation Forest) and deep learning-based reconstruction models (ANN and LSTM Autoencoders) in centralized and federated settings using the FedAvg and FedProx aggregation strategies. Experiments on real-world building energy datasets demonstrate that the proposed FL framework achieves performance comparable to centralized models, with the LSTM Autoencoder (FedAvg) achieving the highest F1-score. The findings highlight that federated approaches can deliver accurate, privacy-preserving, and communication-efficient anomaly detection while reducing dependence on large-scale cloud infrastructure.