Abstract
Improving energy efficiency is a crucial aspect of building a sustainable smart city and, more broadly, relevant for improving environmental, economic, and social well-being. Non-intrusive load monitoring (NILM) is a computing technique that estimates energy consumption in real-time and helps raise energy awareness among users to facilitate energy management. Most NILM solutions are still a single machine approach and do not fit well in smart cities. This work proposes a model-agnostic hybrid federated learning framework to collaboratively train NILM models for city-wide energy-saving applications. The framework supports both centralised and decentralised training modes to provide a cluster-based, customisable and optimal learning solution for users. The proposed framework is evaluated on a real-world energy disaggregation dataset. The results show that all NILM models trained in our proposed framework outperform the locally trained ones in accuracy. The results also suggest that the NILM models trained in our framework are resistant to privacy leakage.
Introduction
Non-Intrusive Load Monitoring (NILM) represents a significant opportunity for smart city energy efficiency. By using computational methods to estimate the power consumption of individual appliances from a single smart meter, NILM avoids the need for expensive per-appliance hardware. However, scaling NILM to a city-wide level faces three major hurdles: privacy concerns regarding high-frequency energy data, data heterogeneity (Non-IID) across different households, and the computational scalability of deep learning models on edge devices.
The Hybrid Federated Learning Framework
To address these challenges, this research introduces a model-agnostic, hybrid federated learning (FL) framework. Unlike traditional centralized approaches, this framework moves the training process to where the data resides.
The framework is characterized by several key innovations:
- Hybrid Training Modes: It supports both Centralized FL, where a server coordinates updates, and Decentralized FL, which utilizes peer-to-peer communication to remove single points of failure.
- Model-Agnosticism: The system supports both Convolutional Neural Networks (CNNs) and Gradient Boosting Decision Trees (GBDTs). GBDTs are particularly effective for tabular energy data and are more resource-friendly for edge deployment.
- Privacy-Preserving Clustering: To mitigate the Non-IID problem, users are grouped into clusters based on similar energy patterns. This is achieved by exchanging Markov Transition Fields (MTF)—probabilistic usage representations—instead of raw data.
Experimental Evaluation
The framework was evaluated using the REFIT dataset, containing two years of raw electrical consumption data from 20 UK households. The study focused on five common appliances: dishwasher, refrigerator, washing machine, microwave, and kettle.
Key Insights
- Clustering Performance: Grouping similar users reduced the average Mean Absolute Error (MAE) from 22.51 to 21.02, proving that targeted data aggregation is more effective than broad, diverse datasets.
- Efficiency of GBDTs: GBDTs converged significantly faster than CNNs (within 20 epochs) and achieved comparable accuracy with a much smaller footprint. Specifically, the GBDT model was roughly 1/6th the size of the CNN model and 11 times faster at inference.
- Privacy Robustness: The system was tested against Deep Leakage from Gradients (DLG) attacks. While DLG can be a threat with tiny batch sizes (B=1) on untrained models, the risk becomes negligible as batch sizes increase and models converge.
Results
All federated models, whether centralized or decentralized, outperformed locally trained models across metrics such as MAE, Signal Aggregate Error (SAE), and Normalized Disaggregation Error (NDE). Furthermore, the decentralized mode achieved performance parity with the centralized mode, demonstrating that high-performance NILM is possible without a central server.
Conclusion
This work demonstrates a scalable, privacy-preserving approach to NILM in smart cities. By combining hybrid federated learning with efficient model architectures like GBDTs and intelligent user clustering, the framework provides a robust solution for energy disaggregation. Future work will focus on end-to-end edge integration and further optimizing communication protocols for large-scale decentralized deployments.
Summary updated