NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anomaly Detection and Classification of Household Electricity Data: A Time Window and Multilayer Hierarchical Network Approach

Qiang Zhao, Zheng Chang, Geyong Min

Abstract

With the increasing popularity of the smart grid, huge volumes of data are gathered from numerous sensors. How to classify, store, and analyze massive data sets to facilitate the development of the smart grid has recently attracted much attention. In particular, with the popularity of household smart meters and electricity monitoring sensors, a large amount of data can be obtained to analyze household electricity usage so as to better diagnose the leakage and theft behaviors, identify man-made tampering and data fraud, and detect powerline loss. In this article, the time window method is first proposed to obtain the features and potential periodicity of household electricity data. Combining the denoising ability of the autoencoder and the induction ability of the feedforward neural network, a multilayer hierarchical network (MLHN) is then established to detect anomalies in single sensor data and classify multiple groups of sensor data, respectively. The experimental results show that the accuracy of detecting abnormal data and data classification is significantly improved compared with the presented scheme.

Introduction

The transition toward smart grids has led to a "data deluge," where a massive network of sensors and smart meters continuously monitors power distribution. While this data holds the key to optimizing energy consumption and securing infrastructure, it is often noisy and lacks immediate context. Analyzing raw time-series electricity data is challenging due to its periodic nature and the presence of various anomalies ranging from equipment failure to deliberate electricity theft.

System architecture for detecting electricity anomalies and classifying usage

As illustrated in the system overview above, modern electricity monitoring must account for diverse inputs—including household appliances and external equipment like solar panels—while identifying critical faults such as artificial tampering, equipment failure, and line faults. Traditional deep learning models, such as standard Convolutional Neural Networks (CNNs), often struggle with the raw complexity of this data, leading to slow convergence and suboptimal accuracy.

Methodology

This research proposes a two-stage framework to address these challenges: the Time Window method for feature extraction and the Multilayer Hierarchical Network (MLHN) for analysis.

The Time Window Method

Instead of feeding raw, one-dimensional electricity sensor data directly into a model, the researchers utilize a sliding time window to extract statistical "fingerprints." This process transforms messy data into structured features that capture both intra-window characteristics (mean, mode, standard deviation) and inter-window relationships (correlation coefficients, magnitude, and covariance).

Data structure for the time window feature extraction method

By structuring the data into these windows, the model can better recognize the inherent periodicity of electricity usage, turning a simple stream of numbers into a rich, two-dimensional feature set suitable for advanced neural network processing.

Multilayer Hierarchical Network (MLHN)

The MLHN architecture is designed to be modular, operating in two distinct modes:

  1. Unsupervised Mode (Anomaly Detection): This mode utilizes Autoencoders to denoise data. The model is trained on "normal" usage patterns to learn efficient data reconstruction. When new data is processed, a high Root Mean Square Error (RMSE) serves as a "tripwire," flagging potential anomalies like meter tampering or theft without requiring pre-labeled fraud data.
  2. Supervised Mode (Classification): This mode employs parallel Feedforward Neural Networks to process groups of features. This hierarchical structure allows the model to learn internal relationships between different sensors more effectively than a single, flat network, avoiding the instability often seen in large, fully connected architectures.

Experimental Results and Discussion

The framework was evaluated using the REDD (Reference Energy Disaggregation Data set), which contains high-frequency power data from six different homes, including both whole-house meters and individual appliance monitors.

Performance Metrics

  • High Accuracy: The supervised MLHN achieved an average prediction accuracy of 89.5% across 20 different categories of meter data. In specific binary classification tasks, the accuracy reached as high as 98%.
  • Superiority over Baselines: The MLHN outperformed standard CNN and Support Vector Machine (SVM) models. Notably, the study found that feature engineering was critical; a CNN trained on raw data achieved only ~68% accuracy, whereas the same model using "Time Window" features saw a massive performance boost.
  • Effective Anomaly Detection: The unsupervised autoencoder successfully identified high-power anomalies, such as an electric oven being used during periods of low activity, distinguishing them from normal periodic fluctuations.

Conclusion

The proposed MLHN framework combined with the Time Window method offers a robust solution for smart grid data management. While the current model shows some sensitivity limitations regarding very short-duration changes, it significantly improves the accuracy of anomaly detection and appliance classification. Future work will focus on real-time electricity price estimation and automated systems to alert consumers to energy waste or appliance faults in real-time.

Reference: Zhao, Q., Chang, Z., & Min, G. (2022). Anomaly Detection and Classification of Household Electricity Data: A Time Window and Multilayer Hierarchical Network Approach. IEEE Internet of Things Journal, 9(5), 3704-3716.

Summary updated

BibTeX
@article{zhao2021anomaly,
  author = {Qiang Zhao and Zheng Chang and Geyong Min},
  title = {{Anomaly Detection and Classification of Household Electricity Data: A Time Window and Multilayer Hierarchical Network Approach}},
  journal = {IEEE Internet of Things Journal},
  year = {2021},
  doi = {10.1109/jiot.2021.3098735},
}
Figure