Abstract
Over the past decade, millions of smart meters have been installed by electricity suppliers worldwide, allowing them to collect a large amount of electricity consumption data, albeit sampled at a low frequency (one point every 30min). One of the important challenges these suppliers face is how to utilize these data to detect the presence/absence of different appliances in the customers' households. This valuable information can help them provide personalized offers and recommendations to help customers towards the energy transition. Appliance detection can be cast as a time series classification problem. However, the large amount of data combined with the long and variable length of the consumption series pose challenges when training a classifier. In this paper, we propose ADF, a framework that uses subsequences of a client consumption series to detect the presence/absence of appliances. We also introduce TransApp, a Transformer-based time series classifier that is first pretrained in a self-supervised way to enhance its performance on appliance detection tasks. We test our approach on two real datasets, including a publicly available one. The experimental results with two large real datasets show that the proposed approach outperforms current solutions, including state-of-the-art time series classifiers applied to appliance detection.
Introduction
Detecting specific appliances from smart meter data is a "holy grail" for utilities. Knowing which appliances (like heat pumps or electric vehicles) customers own allows for personalized energy-saving advice and better grid management. However, most real-world data is sampled at low frequencies—typically every 15 to 60 minutes. At these intervals, the sharp electrical signatures of appliances like dishwashers or heaters are significantly smoothed out, making detection a difficult binary classification task.
Furthermore, smart meter datasets are massive. Individual consumption series can span tens of thousands of points and vary in length, which often leads to memory or computational failures in standard machine learning models. This paper introduces ADF, a framework for handling long, variable-length consumption series, and TransApp, a Transformer-based model that uses self-supervised pretraining to achieve state-of-the-art detection accuracy on low-frequency data.
Methodology: ADF and TransApp
To address these challenges, we propose a two-part solution: the Appliance Detection Framework (ADF) and the TransApp architecture.
The ADF Framework
Instead of processing a whole year of data at once, ADF slices the series into smaller subsequences. It incorporates Temporal Feature Encoding (using sine and cosine functions) to provide the model with context regarding the time of day and day of the week. To aggregate predictions from these subsequences, ADF employs a quantile-based merging strategy. This allows the model to confirm an appliance's presence if it is detected in a specific portion of the series, which is more robust than simple majority voting given that appliances are not active at all times.
TransApp Architecture
TransApp is a hybrid deep learning model designed specifically for time series:
- Embedding Block: Utilizes four stacked convolutional "ResUnits" with dilated convolutions. This provides an inductive bias, helping the model capture local patterns and shapes in the data before they are passed to the Transformer.
- Transformer Block: Features Multi-Head Diagonally Masked Self-Attention (DMSA). By masking the diagonal of the attention matrix, the model is forced to focus on the relationships between different time steps rather than just the value at a single point.
The training process follows a two-step approach. First, the model is pretrained in a self-supervised manner by masking segments of unlabeled consumption data and tasking the model with their reconstruction. It is then fine-tuned on a smaller set of labeled data for specific appliance detection tasks.
Key Insights and Results
Experimental results on the CER (Ireland) and EDF (France) datasets demonstrate that TransApp outperforms state-of-the-art classifiers like ROCKET, InceptionTime, and ResNet. On the EDF dataset, it achieved Macro F1-scores above 0.8 for high-impact appliances such as Electric Vehicles and Water Heaters.
Key findings include:
- Inductive Bias: The CNN-based embedding block was critical, providing a 6-9% boost in F1-score by helping the Transformer understand local shapes.
- Self-Supervised Learning: Pretraining on large unlabeled datasets allows the model to learn the "language" of electricity consumption, significantly boosting final accuracy.
- Scalability: The ADF framework allows the system to scale linearly with the length of the input series, overcoming the limitations of models that struggle with long sequences.
Conclusion
While ADF and TransApp set a new state-of-the-art for low-frequency appliance detection, challenges remain for smaller appliances with lower power draws, such as laptops or televisions. Future work will explore more complex auxiliary tasks for pretraining and adapt the framework for real-time load disaggregation rather than just presence detection.
Summary updated