Class-incremental Learning for Time Series: Benchmark and Evaluation

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

Introduction

In real-world applications, data is rarely static. Sensors in health-monitoring wearables or industrial equipment continuously encounter new patterns and classes over time. Ideally, models should learn these new classes without losing the ability to recognize previously learned ones. This challenge is known as Class-incremental Learning (CIL). While extensively studied in computer vision and natural language processing, CIL remains under-explored for time series (TS) data. This paper presents the first comprehensive benchmark for Time Series Class-incremental Learning (TSCIL), evaluating various strategies to mitigate "catastrophic forgetting."

The TSCIL Framework

The core objective of TSCIL is to enable a model to adapt to a sequence of tasks, where each task introduces new classes. As shown in Figure 1, the model must learn Task 2 while maintaining performance on Task 1, eventually being able to classify across the union of all seen classes.

Methodology and Algorithms

The authors evaluated nine representative CIL algorithms across three categories:

  1. Regularization-based methods (e.g., LwF, MAS): These impose constraints on weight updates to preserve parameters critical for old tasks.
  2. Experience Replay (ER) methods (e.g., DER, ASER): These maintain a small memory buffer of representative samples from previous tasks to periodically "re-train" the model.
  3. Generative Replay (GR): This approach uses a generative model (TimeVAE) to synthesize old data, addressing privacy concerns where raw data storage is prohibited.

A key technical contribution of this work is the investigation of internal normalization layers, specifically comparing the ubiquitous Batch Normalization (BN) with Layer Normalization (LN).

Experimental Setup

The benchmark utilizes five diverse, real-world datasets:

  • UCI-HAR: Human activity recognition.
  • UWave: Gesture recognition via accelerometers.
  • DSA: Daily sports activities (45 channels).
  • GRABMyo: High-frequency hand gesture sEMG.
  • WISDM: Smartphone-based activity recognition.

Key Results and the LayerNorm Advantage

The study reveals a critical insight: BatchNorm is often detrimental in incremental settings. Because BN relies on running statistics of the current batch, it becomes biased toward the most recent data distribution, accelerating the forgetting of older classes. In contrast, LayerNorm (LN) normalizes across features for each individual sample, making it robust to the distribution shifts inherent in CIL.

As illustrated in Figure 6, models using LayerNorm combined with Experience Replay methods (like ASER or DER) achieve performance levels approaching "Offline" training (where the model has access to all data simultaneously). For example, on the UCI-HAR dataset, ASER's accuracy improved from 89.1% with BN to 90.3% with LN. Conversely, "Naive" training without CIL techniques results in catastrophic forgetting, with forgetting rates reaching 98%.

Conclusion

This benchmark establishes that for time series data, Experience Replay remains the most effective strategy for incremental learning. Furthermore, the simple architectural switch from BatchNorm to LayerNorm serves as a powerful optimization, significantly enhancing model stability and performance across diverse temporal datasets. Future research will focus on unlabeled streaming data and incorporating frequency-domain features to further improve TSCIL robustness.

Summary updated

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