Divide-Conquer Transformer Learning for Predicting Electric Vehicle Charging Events Using Smart Meter Data

Fucai Ke, Hao Wang · DOI

Abstract

As electric vehicle (EV) adoption accelerates, the resulting demand on residential distribution networks poses significant challenges for grid stability. Managing this "behind-the-meter" load requires accurate forecasting of charging events. This paper presents DCT-EV, a Divide-Conquer Transformer model designed to predict future home EV charging activity using only aggregate smart meter data. By partitioning long time-series data into sub-sequences, the model captures complex temporal dependencies while maintaining computational efficiency. Experimental results on the Pecan Street dataset demonstrate that DCT-EV achieves over 96% accuracy in predicting charging events up to an hour in advance, significantly outperforming traditional LSTM and deep learning baselines.

1. Introduction

The transition to electric mobility is a cornerstone of global decarbonization efforts. However, the high power requirements of residential EV charging can lead to transformer overloading and reduced asset lifespans if left unmanaged. While public charging infrastructure is often visible to grid operators, home charging remains largely "invisible."

Existing research typically focuses on either demand prediction based on external factors (like traffic) or Non-Intrusive Load Monitoring (NILM) to detect current usage. There remains a critical need for a predictive approach that utilizes existing utility infrastructure—specifically, aggregate smart meter data—to forecast charging events before they occur. This task is inherently difficult because EV charging is a sparse event, often buried within the high-frequency noise of other household appliances.

2. Methodology: The DCT-EV Architecture

The proposed Divide-Conquer Transformer for EV (DCT-EV) addresses the limitations of standard Transformer models, which often struggle with the computational costs of long-sequence time-series data. The architecture is divided into three distinct modules:

2.1 Load Embedding Module (The "Divide")

To avoid the $O(T^2)$ complexity of feeding raw minute-by-minute data into a Transformer, the model partitions the input sequence into overlapping short sub-sequences. A 1D-Convolutional layer projects these segments into a high-dimensional latent space. This reduces the input token count from $T$ (total minutes) to $N$ (number of sub-sequences), making the model viable for long-term historical analysis on standard hardware.

2.2 EV Representation Learning Module (The "Conquer")

The core of the system is a Transformer encoder utilizing multi-head self-attention. This module identifies the "signature" of household energy behavior by capturing non-linear relationships and temporal dependencies across the sub-sequences. This allows the model to distinguish between a standard appliance spike and the onset of an EV charging session.

2.3 Charging Event Prediction Module

The final stage consists of a lightweight, fully connected network. It processes the Transformer's output and applies a Sigmoid activation function to generate a probability score for whether an EV will be charging within the next $m$ minutes. The model is trained using Binary Cross-Entropy loss to optimize for the binary nature of charging states.

3. Experimental Setup

3.1 Dataset

The study utilizes the Pecan Street dataset (2018), consisting of real-world data from 22 households in Austin, Texas. The dataset includes over 8 million individual electricity usage records at 1-minute intervals. While the model only uses the total household load for prediction, the researchers utilized EV-specific sub-metering (defining charging as any load > 3 kW) to establish ground truth labels for training and validation.

3.2 Baselines

DCT-EV was benchmarked against several common machine learning and deep learning models, including Random Forest, XGBoost, Deep Neural Networks (DNN), and Long Short-Term Memory (LSTM) networks.

4. Results and Discussion

4.1 Prediction Performance

DCT-EV demonstrated superior performance across both short-term and long-term horizons:

  • Short-term (1-10 min): The model achieved 98.80% Accuracy and an 87.35% F1-score, outperforming the LSTM baseline by 3.5% in F1-score.
  • Long-term (1-60 min): The model maintained a high 96.81% Accuracy. While the F1-score decreased to 63.78% due to the inherent difficulty of hour-ahead forecasting, it remained significantly higher than the LSTM's 55.94%.

4.2 Key Insights

  • Input Window Optimization: The researchers identified a "sweet spot" for historical context. Model performance plateaus after 180 minutes of input history; providing additional context increases computational overhead without a corresponding gain in accuracy.
  • Threshold Stability: Unlike DNNs or LSTMs, which are highly sensitive to the probability threshold used to define a "charging" event, DCT-EV showed remarkable stability across thresholds ranging from 0.2 to 0.8.
  • Efficiency: By utilizing sub-sequence partitioning, the model reduces computational complexity from $O(T^2)$ to $O(N^2)$, allowing for faster training and inference.

5. Conclusion and Future Work

The DCT-EV model provides a robust, non-intrusive method for grid operators to anticipate residential EV charging demand. By looking forward rather than just detecting current usage, it offers a proactive tool for grid management.

Future research will focus on improving long-range forecasting (the 60-minute window) and integrating external data such as weather patterns or human-centric behavioral data. Additionally, testing the model on datasets from different geographic regions will be essential to ensure the architecture generalizes across varying charging habits and power standards.

Summary updated

BibTeX
@misc{ke2024divide,
  author = {Fucai Ke and Hao Wang},
  title = {{Divide-Conquer Transformer Learning for Predicting Electric Vehicle Charging Events Using Smart Meter Data}},
  year = {2024},
  eprint = {2403.13246},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.13246},
}
Figure