FreRA: A Frequency-Refined Augmentation for Contrastive Learning on Time Series Classification
Tian Tian, Chunyan Miao, Hangwei Qian
TL;DR
FreRA tackles augmentation design in time series contrastive learning by shifting to the frequency domain to automatically refine Fourier components. It learns a single vector $\\boldsymbol{s}$ to separate critical versus unimportant components and applies semantic-aware identity modification to the critical set while semantically agnostic distortion to the unimportant set, yielding semantic-preserving views. The approach is backed by theoretical results showing MI preservation under mild assumptions and a plug-and-play integration with standard contrastive losses like InfoNCE. Empirically, FreRA achieves state-of-the-art or competitive performance across 135 datasets, including time-series classification, anomaly detection, and transfer learning tasks, with strong generalization and robustness to hyperparameters.
Abstract
Contrastive learning has emerged as a competent approach for unsupervised representation learning. However, the design of an optimal augmentation strategy, although crucial for contrastive learning, is less explored for time series classification tasks. Existing predefined time-domain augmentation methods are primarily adopted from vision and are not specific to time series data. Consequently, this cross-modality incompatibility may distort the semantically relevant information of time series by introducing mismatched patterns into the data. To address this limitation, we present a novel perspective from the frequency domain and identify three advantages for downstream classification: global, independent, and compact. To fully utilize the three properties, we propose the lightweight yet effective Frequency Refined Augmentation (FreRA) tailored for time series contrastive learning on classification tasks, which can be seamlessly integrated with contrastive learning frameworks in a plug-and-play manner. Specifically, FreRA automatically separates critical and unimportant frequency components. Accordingly, we propose semantic-aware Identity Modification and semantic-agnostic Self-adaptive Modification to protect semantically relevant information in the critical frequency components and infuse variance into the unimportant ones respectively. Theoretically, we prove that FreRA generates semantic-preserving views. Empirically, we conduct extensive experiments on two benchmark datasets, including UCR and UEA archives, as well as five large-scale datasets on diverse applications. FreRA consistently outperforms ten leading baselines on time series classification, anomaly detection, and transfer learning tasks, demonstrating superior capabilities in contrastive representation learning and generalization in transfer learning scenarios across diverse datasets.
