Invariant Time-Series Classification

Josif Grabocka, Alexandros Nanopoulos, Lars Schmidt-Thieme

Abstract

Time-series classification often faces the hurdle of significant intra-class variation, where patterns within the same category exhibit temporal shifts or scaling differences. While Support Vector Machines (SVMs) are powerful classifiers, they frequently underperform in this domain due to limited training data that fails to capture the full spectrum of these variations. This paper introduces Invariant Support Vector Machines (ISVM), a method that generates "Virtual Support Vectors" to create a more robust decision boundary. By analyzing patterns using Dynamic Time Warping (DTW) and applying smooth deformations via Moving Least Squares (MLS), ISVM effectively learns class-specific invariances. Evaluation on 35 UCR datasets shows that ISVM significantly improves upon standard SVMs and provides a competitive alternative to the traditional DTW-Nearest Neighbor baseline.

Introduction

In time-series analysis, the Nearest Neighbor classifier with Dynamic Time Warping (DTW-NN) has long been considered the gold standard. Despite the success of Support Vector Machines (SVMs) in other fields, they often struggle with time-series data. The primary reason is intra-class variation: a single pattern, such as a heartbeat or a physical gesture, can vary in onset time (translational variance) or duration (scaling variance).

When training sets are small, an SVM cannot observe enough examples to define a boundary that accounts for these variations. This leads to an under-fitted maximum-margin boundary that misclassifies slightly altered versions of known patterns.

Methodology: The Invariant SVM Pipeline

The proposed Invariant SVM (ISVM) addresses this by synthesizing new, realistic training instances—Virtual Support Vectors (VSVs)—through a four-step data-driven process:

  1. Warping Map Analysis: DTW is used to align pairs of instances within a class, identifying how signals typically shift relative to one another.
  2. Transformation Fields: These maps are converted into vectors describing local translations at specific control points along the time series.
  3. Moving Least Squares (MLS): These transformation fields are applied to the existing Support Vectors. The MLS algorithm ensures that the resulting deformations are smooth and preserve the "rigidity" of the signal, avoiding the introduction of noise.
  4. Retraining: The SVM is retrained on the augmented dataset, forcing the decision boundary to incorporate the learned intra-class variations.
Conceptual overview of boundary redefinition using Virtual Support Vectors.

This approach is data-driven (learned from data), localized (handles specific signal parts), and selective (only transforms support vectors). The authors noted a "Goldilocks Zone" for transformation: while increasing the transformation scale improves accuracy, excessive deformation can create noisy outliers that degrade the decision boundary.

Experimental Results

The ISVM was evaluated against 35 datasets from the UCR Time Series Collection, covering medical signals, image outlines, and sensor data.

Performance Against Baselines

The study categorized datasets into "Easy" and "Challenging" based on baseline error rates. On challenging datasets, ISVM outperformed the DTW-NN baseline in 11 out of 16 cases. On easier datasets, it remained competitive, matching the baseline in 7 out of 14 instances.

Accuracy Gains

Compared to a standard SVM, the ISVM demonstrated substantial improvements. Datasets such as 50words, Cricket, and OSULeaf saw accuracy increases ranging from +5% to +11%. Crucially, the ISVM improved performance over the default SVM in every experiment conducted, highlighting the reliability of injecting domain-specific invariance.

Discussion and Conclusion

The primary strength of ISVM lies in its ability to learn the "how" of variation directly from the data. By focusing on Support Vectors, the method achieves significant accuracy boosts without the prohibitive computational cost of full-dataset augmentation.

While the method is currently limited by the increased training time associated with larger datasets, it opens several avenues for future research. Potential developments include integrating similarity-based metrics directly into the SVM kernel and applying these data-driven transformation principles to deep learning architectures like Convolutional Neural Networks (CNNs).

Summary updated

BibTeX
@inproceedings{grabocka2012invariant,
  author = {Josif Grabocka and Alexandros Nanopoulos and Lars Schmidt-Thieme},
  title = {{Invariant Time-Series Classification}},
  booktitle = {ECML/PKDD},
  year = {2012},
  doi = {10.1007/978-3-642-33486-3\_46},
}
Figure