Self-supervised CNN for user behavior analysis on smart meter data

Fan Wang, Wei Pan, Jiahua Wei, Zhao Yun, Yuxin Lu, Xiaodong LvJournal of Measurements in Engineering 2025 · DOI

Abstract

Smart meters generate extensive data on individual consumer electricity usage, providing valuable insights that can aid in identifying demographic information and advancing the development of smart grids. Current research has primarily focused on traditional machine learning approaches for this task, with relatively few studies exploring deep learning methods, despite their potential for more accurate and efficient analysis. To address this gap, this paper proposes a self-supervised deep learning approach based on Convolutional Neural Network (CNN) to identify demographic information from smart meter data. The model leverages the Fast Fourier Transform (FFT) to detect frequency cycles within the dataset, which are then used to optimize the sizes of convolutional kernels. This design enhances periodic stability during shallow feature extraction, improving the model’s ability to capture meaningful patterns in the data. Furthermore, the model incorporates a self-supervised pre-training strategy to predict temporal and spatial interactions in load signals, effectively enhancing representation learning without relying on extensive labeled data. This approach ensures the model’s robustness and adaptability to different datasets. Comprehensive experiments were conducted on a publicly available Irish dataset to evaluate the model’s performance. Results demonstrate that the proposed model surpasses a series of state-of-the-art (SOTA) methods, achieving superior performance in demographic information identification. These findings highlight the effectiveness of integrating FFT-based kernel design and self-supervised learning in improving feature extraction and representation learning for smart meter data.

Introduction

Smart meters generate massive amounts of time-series data detailing household electricity consumption. Analyzing this data to infer sociodemographic traits—such as age group, retirement status, or the presence of children—is highly valuable for grid optimization, demand response, and personalized energy services.

However, traditional machine learning requires tedious manual feature engineering. While deep learning offers a way out, it faces two major hurdles in this domain:

  1. Data Scarcity: Labeled smart meter data is incredibly scarce due to strict privacy concerns and high annotation costs.
  2. Ignoring Periodicity: Standard neural networks struggle to explicitly capture the strong, recurring periodic patterns (daily, weekly routines) inherent in human electricity usage.

Methodology

The authors propose a two-stage framework: self-supervised pre-training on unlabeled data, followed by supervised fine-tuning on a smaller labeled dataset.

The two-stage framework: self-supervised pre-training followed by supervised fine-tuning.

FFT-Informed Convolution

A core novelty of this work is the dynamic sizing of convolutional kernels. Instead of using fixed-size kernels (e.g., $3 \times 3$ or $5 \times 5$), the model applies a Fast Fourier Transform (FFT) to the input time series to identify the top $D$ dominant frequency periods. These specific period lengths are then used as the actual kernel sizes in a Depthwise Convolution (DWConv) layer. This elegantly forces the network's receptive field to align perfectly with the data's actual periodic behavior.

FFT-based kernel size selection process to align receptive fields with data periodicity.

Contrastive Self-Supervised Learning

To handle the lack of labeled data, the model is pre-trained using a contrastive learning framework. It applies asymmetric augmentations—strong augmentations (random noise + permutation) to one branch and weak augmentations (random mask + jitter) to another—creating different views of the same data. The network learns robust representations through temporal contrasting (predicting future latent states) and contextual contrasting (maximizing similarity between the different augmented views of the sample).

Experimental Setup

The model was evaluated using the Irish Smart Meter Customer Behavior Trial dataset, provided by the Commission for Energy Regulation (CER) in Ireland. It contains electricity usage recorded at 30-minute intervals over 536 days for 4,232 residential users, paired with extensive survey responses.

The data was segmented into weekly samples (336 data points per sample), yielding roughly 310,000 samples. 80% was used for training and 20% for testing. The model was tested on three classification tasks:

  • Task300 (Age): Age of chief income earner.
  • Task310 (Retirement): Retirement status.
  • Task410 (Children): Presence of children.

Results and Discussion

The proposed model significantly outperformed several state-of-the-art baselines, including Transformer-based models (Informer, Autoformer) and modern CNNs (ModernTCN, TimeMAE).

Task Proposed Model Accuracy Best Baseline (ModernTCN)
Task300 (Age) 75.76% 71.65%
Task310 (Retirement) 78.04% 74.79%
Task410 (Children) 65.81% 62.77%

Beyond accuracy, the CNN-based architecture is highly efficient, boasting an inference time of 221 ms per 100 samples, making it faster than both the Transformer-based alternatives and ModernTCN.

Ablation studies provided further insights:

  • Math-informed architecture works: Hardcoding kernel sizes based on FFT-derived periods is more effective than hoping the network figures out temporal dependencies from scratch.
  • Early layers matter most for periodicity: Applying adaptive kernels in the first convolutional block yielded the highest accuracy. Deeper layers likely lose raw periodic characteristics as features become more abstract.
  • Asymmetric augmentation is key for SSL: The best results came from applying different intensities of augmentation to the two branches, forcing the model to learn features across varying granularities.

Conclusion

This paper demonstrates that integrating domain-specific knowledge—specifically periodicity via FFT—into a self-supervised CNN architecture leads to superior performance in smart meter data analysis. While the model shows great promise, future work will address privacy concerns through frameworks like federated learning and explore the integration of multi-source data to further enhance behavioral profiling.

Summary updated

Abstract

Smart meters generate extensive data on individual consumer electricity usage, providing valuable insights that can aid in identifying demographic information and advancing the development of smart grids. Current research has primarily focused on traditional machine learning approaches for this task, with relatively few studies exploring deep learning methods, despite their potential for more accurate and efficient analysis. To address this gap, this paper proposes a self-supervised deep learning approach based on Convolutional Neural Network (CNN) to identify demographic information from smart meter data. The model leverages the Fast Fourier Transform (FFT) to detect frequency cycles within the dataset, which are then used to optimize the sizes of convolutional kernels. This design enhances periodic stability during shallow feature extraction, improving the model’s ability to capture meaningful patterns in the data. Furthermore, the model incorporates a self-supervised pre-training strategy to predict temporal and spatial interactions in load signals, effectively enhancing representation learning without relying on extensive labeled data. This approach ensures the model’s robustness and adaptability to different datasets. Comprehensive experiments were conducted on a publicly available Irish dataset to evaluate the model’s performance. Results demonstrate that the proposed model surpasses a series of state-of-the-art (SOTA) methods, achieving superior performance in demographic information identification. These findings highlight the effectiveness of integrating FFT-based kernel design and self-supervised learning in improving feature extraction and representation learning for smart meter data.
BibTeX
@article{wang2025self,
  author = {Fan Wang and Wei Pan and Jiahua Wei and Zhao Yun and Yuxin Lu and Xiaodong Lv},
  title = {{Self-supervised CNN for user behavior analysis on smart meter data}},
  journal = {Journal of Measurements in Engineering},
  year = {2025},
  doi = {10.21595/jme.2025.24825},
}
Figure