Embarrassingly Simple MixUp for Time-series

Karan Aggarwal, Jaideep SrivastavaarXiv 2023

TL;DR

This paper introduces MixUp++ and LatentMixUp++, simple yet powerful adaptations of the popular MixUp data augmentation technique specifically designed for time-series classification. By interpolating data in the model's latent space and retaining original samples during training, these methods achieve significant performance gains (1% to 15%), particularly in scenarios where labeled data is scarce.

What Problem Does This Paper Address?

Deep learning models are notoriously data-hungry, but in domains like healthcare, finance, and meteorology, labeling time-series data is incredibly expensive. It requires significant domain expertise and time to account for the dynamic, temporal nature of the signals. Consequently, researchers often struggle with small, labeled datasets that lead to over-fitting and poor generalization.

While computer vision has a robust toolkit of "common sense" augmentations (like flipping or rotating an image), these don't translate well to time-series. Rotating a heart rate signal or flipping a stock price chart can completely change its meaning. The authors aim to bridge this gap by adapting MixUp—a technique that creates synthetic training examples by linearly interpolating pairs of real examples—to the unique constraints of time-series data.

Methods

The authors propose two primary supervised methods and a semi-supervised extension:

  1. MixUp++: This builds on standard MixUp (which interpolates raw inputs $x$ and labels $y$). The "++" denotes two key modifications:
  2. Retaining Original Data: Unlike standard MixUp, which often replaces original data with synthetic pairs, MixUp++ keeps the original real-world data in the training batch.
  3. Multiple Iterations: The model performs multiple MixUp steps for every batch of original data, increasing the diversity of synthetic examples the model sees.
  4. LatentMixUp++: Instead of interpolating raw time-series signals—which can result in physically impossible data (e.g., two out-of-phase waves canceling each other out)—this method performs the interpolation in the latent space (the intermediate hidden layers) of the neural network. The hypothesis is that the latent space is more "linear" and semantically meaningful than the raw feature space.
  5. Semi-Supervised MixUp: To leverage unlabeled data, the authors combine their methods with pseudo-labeling. The model generates high-confidence labels for unlabeled data, which are then fed into the MixUp pipeline alongside the ground-truth labeled data.
Figure 1: Schematic view of Pseudo-labeling with MixUp. First, we get the most confident samples from the unlabeled data, called pseudo-labels. We use these pseudo-labels and labeled data for MixUp. Finally, we train the model on three sources: labeled data, pseudo-labeled data, and MixUp data.

Datasets

The methods were evaluated on two diverse public benchmarks:

  • UCI HAR: A Human Activity Recognition dataset containing multivariate motion sensor data (walking, sitting, etc.) from 30 volunteers.
  • Sleep-EDF: A dataset of EEG (brain wave) recordings used for sleep stage classification (e.g., REM vs. deep sleep).

Key Insights and Ideas

  • The Latent Space Advantage: The most significant "aha moment" is that raw interpolation is often destructive for time-series. Mixing in the latent space allows the model to interpolate between features relevant to the class rather than just raw data points.
  • Original Data as an Anchor: The authors found that training only on interpolated data is sub-optimal. The original data defines the real-world manifold, while the MixUp data acts as a powerful regularizer that smooths out decision boundaries.
  • The "Sweet Spot" for Augmentation: Through ablation studies, the authors discovered that performing two MixUp iterations per batch is the optimal balance. Adding too many synthetic examples can actually degrade performance by "washing out" the clear decision boundaries established by the real data.

Key Results

The proposed LatentMixUp++ consistently outperformed all baselines, including standard supervised learning and traditional time-series augmentations like permutation.

  • Performance Gains: Improvements ranged from 1% to 15% across different metrics (Accuracy, F1 Macro, and Cohen’s Kappa).
  • Low-Data Regime: The impact was most dramatic when labeled data was extremely limited (1% or 5% of the total dataset). For example, on the Sleep-EDF dataset with only 1% labeled data, LatentMixUp++ significantly boosted the Macro F1 score compared to the supervised baseline.
Figure 3: Classification Performance on Sleep-EDF dataset as a function of percentage of training data. Note, MixUp++ and LatentMixUp++ performance is reported for models with 2 mixup batches.

As shown in the table below, LatentMixUp++ (with 2 iterations) achieved the highest scores across the board for both datasets.

Table 1: Time series classification results with various data augmentation methods measured on Accuracy/F1 micro, F1 Macro, and Cohen’s Kappa for two datasets: HAR and Sleep-EDF. Note, differences between supervised and LatentMixUp++ are statistically significant with a p < 0.01 with student t-test.

Limitations and Future Work

The authors identify a few constraints:

  • Diminishing Returns: While the semi-supervised approach is highly effective in low-data settings, its advantage decreases as the amount of labeled data increases (e.g., at 50% labeled data).
  • Pseudo-labeling Bias: In the semi-supervised setting, if the initial model is weak, pseudo-labeling can introduce bias and propagate errors, a common challenge in self-training.
  • Hyper-parameter Sensitivity: While the "++" additions are simple, the number of MixUp iterations and the confidence threshold for pseudo-labeling require careful tuning to avoid losing the model's decision boundary.

Future work could explore more sophisticated ways to select pairs for interpolation rather than random permutation within a batch.

Summary updated

BibTeX
@misc{aggarwal2023embarrassingly,
  author = {Karan Aggarwal and Jaideep Srivastava},
  title = {{Embarrassingly Simple MixUp for Time-series}},
  year = {2023},
  eprint = {2304.04271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.04271},
}
Figure