Deep Semi-Supervised Learning for Time Series Classification

Jann Goschenhofer, Rasmus Hvingelby, David Rügamer, Janek Thomas, Moritz Wagner, Bernd BischlICMLA 2021 · DOI

TL;DR

This paper investigates the transferability of state-of-the-art deep semi-supervised learning (SSL) models from computer vision to time series classification (TSC). By adapting existing image-based SSL techniques and employing a rigorous evaluation methodology, the authors demonstrate that these transferred models significantly outperform traditional and existing SSL approaches for TSC, particularly when labeled data is scarce.

What Problem Does This Paper Address?

Time series classification (TSC) is crucial for many real-world applications, but acquiring labeled data for time series is often expensive and time-consuming. Semi-supervised learning (SSL) offers a solution by leveraging abundant unlabeled data alongside limited labeled data. While deep SSL has seen tremendous success in computer vision, its application to time series data has been relatively underexplored. This paper aims to bridge this gap by investigating whether established deep SSL models from image domains can be effectively adapted and applied to TSC, and to what extent they improve performance compared to existing methods.

Methods

The core of this work involves adapting prominent deep SSL algorithms from computer vision for TSC. This includes:

  • Model Backbone Adaptation: The authors propose using the Fully Convolutional Network (FCN) as a robust backbone architecture for time series data, as it has shown strong performance on TSC benchmarks and is compatible with various SSL strategies.
  • Data Augmentation Strategies: Recognizing that time series data has different invariances than images, the paper explores and adapts data augmentation techniques. They specifically highlight the use of RandAugment, a strategy that automates the selection and application of augmentation policies, to improve robustness.
  • SSL Algorithm Transfer: The paper focuses on transferring and adapting four key deep SSL algorithms:
  • MixMatch: Combines data augmentation, Mixup training, and pseudo-labeling.
  • Virtual Adversarial Training (VAT): Learns small perturbations to input data to create an auxiliary unsupervised training signal.
  • Mean Teacher: Uses a teacher model (an average of student models) to enforce consistency in predictions.
  • Ladder Net: A reconstruction-based SSL model that uses a denoising autoencoder-like approach.
  • Rigorous Evaluation: A key contribution is the adoption of best practices for realistic SSL evaluation, including:
  • Using large, public TSC datasets.
  • Simulating varying amounts of labeled data (nᵢ) through artificial unlabeling.
  • Performing multiple runs with stratified unlabeling to account for randomness.
  • A unified reimplementation of all algorithms for fair comparison.

Datasets

The authors evaluate their proposed methods on six publicly available datasets, focusing on larger datasets with at least 1000 training samples:

  • Crop
  • Electric Devices
  • FordB
  • Pamap2 (multivariate HAR dataset)
  • WISDM (multivariate HAR dataset)
  • Balanced SITS (Satellite Image Time Series dataset)

These datasets are chosen to represent a variety of characteristics, including univariate and multivariate time series, and different class balance scenarios.

Key Insights and Ideas

  • Transferability is High: Deep SSL models from computer vision can be effectively transferred to time series classification with appropriate adaptations.
  • Few-Shot Learning Advantage: The most significant gains for transferred SSL models are observed in scenarios with very few labeled samples (nᵢ = 50, 100), where they substantially outperform supervised and existing semi-supervised baselines.
  • Strong Baselines Matter: The performance of the SSL methods is best understood when compared against strong supervised and self-supervised baselines, highlighting the importance of robust benchmarks.
  • MixMatch and VAT Shine: Among the transferred models, MixMatch and VAT demonstrated particularly strong performance, often approaching or even matching the performance of a fully supervised model trained on all available data.
  • Ranking Consistency: The relative performance ranking of the SSL algorithms (MixMatch > VAT > Mean Teacher > Ladder Net) observed in image domains largely holds true for time series classification.

Key Results

  • Transferred deep SSL models (MixMatch, VAT) consistently outperformed strong supervised and self-supervised baselines across multiple datasets, especially for nᵢ ∈ {50, 100, 250}.
  • In some cases, these models achieved performance comparable to a fully supervised model trained on the entire dataset, even with as few as 50 labeled samples.
  • The Mean Teacher model, while successful in computer vision, showed weaker performance on TSC compared to other transferred SSL methods.
  • The paper provides detailed tables (Table II) and figures (Figure 1) illustrating the weighted AUC performance across different datasets and numbers of labeled samples, showing clear advantages for the proposed transferred SSL models.

Limitations and Future Work

  • Hyperparameter Sensitivity: The Ladder Net, while showing promise, exhibited more variable performance, potentially due to its sensitivity to hyperparameter tuning.
  • Future Work: The authors suggest that their work provides a strong foundation for future research in deep SSL for TSC. Further exploration into novel data augmentation strategies tailored specifically for time series and the development of new, inherently time-series-aware deep SSL architectures are potential avenues. The success of MixMatch and VAT also suggests further investigation into their specific mechanisms for time series data.

Summary updated

BibTeX
@inproceedings{goschenhofer2021deep,
  author = {Jann Goschenhofer and Rasmus Hvingelby and David Rügamer and Janek Thomas and Moritz Wagner and Bernd Bischl},
  title = {{Deep Semi-Supervised Learning for Time Series Classification}},
  booktitle = {ICMLA},
  year = {2021},
  doi = {10.1109/icmla52953.2021.00072},
}
Figure