Class-incremental Learning for Time Series: Benchmark and Evaluation

Zhongzheng Qiao, Quang Pham, Zhen Cao, Hoang H Le, P. N. Suganthan, Xudong Jiang, Ramasamy Savitha

TL;DR

This paper introduces the first unified benchmark and evaluation framework for Time Series Class-incremental Learning (TSCIL). The authors demonstrate that while experience replay methods generally outperform regularization, the choice of normalization—specifically using LayerNorm over BatchNorm—is a critical, often overlooked factor that can drastically reduce catastrophic forgetting.

What Problem Does This Paper Address?

In the real world, data isn't static. A model deployed for human activity recognition might need to learn a new gesture, or a healthcare monitor might encounter a new disease variant. Ideally, the model should learn these new classes without forgetting the old ones—a challenge known as the stability-plasticity dilemma.

While Class-incremental Learning (CIL) has been heavily researched in computer vision and natural language processing, time series (TS) data has been left in the dark. Existing TS-CIL studies are fragmented, using inconsistent datasets, normalization techniques, and evaluation protocols. This paper aims to fix that by providing a standardized "TSCIL" framework to evaluate how well algorithms handle the unique properties of time series, such as high intra-class variation and strict data privacy requirements.

Figure 1: Schematic of Time Series Class-incremental Learn- ing (TSCIL) process on a dynamic task sequence. Each task introduces new classes (c1 to c6), separated by clear task boundaries. The model undergoes sequential training on the tasks. After training on each task, the model needs to rec- ognize all classes encountered thus far without catastrophic forgetting. The previously learned parameters are adapted for next task’s learning.

Methods

The authors developed a unified experimental framework and evaluated nine representative CIL methods, categorized into two main families:

  1. Regularization-based: These methods (like LwF, MAS, and DT2W) add constraints to the loss function to protect important weights or features learned in previous tasks.
  2. Experience Replay (ER)-based: These methods (like ER, DER, and ASER) store a small "memory buffer" of old samples to periodically retrain the model, reminding it of what it previously learned.

They also explored Generative Replay (GR) for privacy-sensitive scenarios where raw data cannot be stored. Instead of saving old samples, the model trains a generator (like a TimeVAE) to produce synthetic "pseudo-samples" of old classes.

Datasets

The benchmark utilizes five real-world time series datasets, focusing on Human Activity Recognition (HAR) and Gesture Recognition:

  • UCI-HAR: Smartphone inertial sensor data for 6 daily activities.
  • UWave: 8 simple gesture patterns from accelerometers.
  • DSA: 18 daily sports activities across 45 channels.
  • GRABMyo: A large-scale electromyography (sEMG) dataset for 16 hand gestures.
  • WISDM: Smartphone accelerometer data for 18 activities.

Crucially, the authors use raw time series as inputs rather than pre-processed feature vectors, ensuring the evaluation reflects true TS modality challenges.

Key Insights and Ideas

  • The BatchNorm Trap: Perhaps the most significant finding is that BatchNorm (BN) is detrimental to CIL. BN relies on running statistics (mean and variance) of the current batch. In incremental learning, the imbalance between new data and small memory buffers biases these statistics toward the new task, causing the model to "forget" how to process old data.
  • LayerNorm to the Rescue: Switching to LayerNorm (LN), which normalizes across features for each individual sample rather than across the batch, effectively circumvents this bias. In many cases, simply switching from BN to LN improved performance more than changing the CIL algorithm itself.
  • Replay is King: Experience Replay methods consistently outperformed regularization-based ones. With a tiny memory budget (just 5% of the training data) and LayerNorm, some models approached the performance of "Offline" training (where the model sees all data at once).
  • Intra-class Variation Matters: Time series data often comes from different subjects (e.g., different people walking). The authors found that if the memory buffer isn't "subject-balanced," the model struggles. Ensuring the replay buffer represents the diversity of the original subjects significantly boosts accuracy.
Evolution of Average Accuracy comparing BatchNorm and LayerNorm across different datasets.

Key Results

  • Accuracy Gains: On the UCI-HAR dataset, the basic ER method achieved a Final Average Accuracy of 88.9% with LayerNorm, compared to only 72.8% with BatchNorm.
  • Forgetting: Regularization methods like LwF suffered from extreme forgetting (often >80%) on complex datasets like DSA, while ER-based methods with LN kept forgetting below 10%.
  • Generative Replay: While GR showed promise on simple datasets (UCI-HAR, UWave), it struggled on complex ones like GRABMyo, showing a significant performance gap compared to raw data replay. This highlights the difficulty of generating high-fidelity, diverse synthetic time series.

Limitations and Future Work

The authors identify several frontiers for TSCIL:

  • Complex Generative Replay: Current generative models struggle to capture the diversity of complex, multi-channel time series. Improving these is vital for privacy-preserving CIL.
  • Frequency Domain Knowledge: Most current CIL methods are "modality-agnostic." The authors suggest that incorporating TS-specific features, like periodicity and frequency-domain information, could lead to more robust algorithms.
  • Foundation Models: While large pre-trained models have revolutionized vision CIL, the field is still waiting for a "universal" Time Series Foundation Model to be applied to incremental learning.

The code for this benchmark is open-sourced at https://github.com/zqiao11/TSCIL.

Summary updated

BibTeX
@inproceedings{qiao2024class,
  author = {Zhongzheng Qiao and Quang Pham and Zhen Cao and Hoang H Le and P. N. Suganthan and Xudong Jiang and Ramasamy Savitha},
  title = {{Class-incremental Learning for Time Series: Benchmark and Evaluation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure