Graph-Aware Contrasting for Multivariate Time-Series Classification
Yucheng Wang, Yuecong Xu, Jianfei Yang, Min Wu, Xiaoli Li, Lihua Xie, Zhenghua Chen
TL;DR
Multivariate time-series (MTS) classification benefits from representations robust to perturbations across sensors and time. This paper introduces TS-GAC, a graph-aware contrasting framework that enforces spatial consistency via node- and edge-based graph augmentations and graph-level and node-level contrasting, complemented by Multi-Window Temporal Contrasting (MWTC). The method operates on unlabeled data, mapping each sample $X_j \\in \\mathbb{R}^{N\\times L}$ to $h_j \\\\in \\mathbb{R}^d$ through an encoder $\\mathcal{F}$ and evaluating with a linear classifier, achieving state-of-the-art results on ten public MTS datasets, including HAR and ISRUC. The contributions provide a principled approach to incorporating sensor stability and inter-sensor relationships into contrastive learning for MTS, with practical impact on robust, label-efficient time-series classification.
Abstract
Contrastive learning, as a self-supervised learning paradigm, becomes popular for Multivariate Time-Series (MTS) classification. It ensures the consistency across different views of unlabeled samples and then learns effective representations for these samples. Existing contrastive learning methods mainly focus on achieving temporal consistency with temporal augmentation and contrasting techniques, aiming to preserve temporal patterns against perturbations for MTS data. However, they overlook spatial consistency that requires the stability of individual sensors and their correlations. As MTS data typically originate from multiple sensors, ensuring spatial consistency becomes essential for the overall performance of contrastive learning on MTS data. Thus, we propose Graph-Aware Contrasting for spatial consistency across MTS data. Specifically, we propose graph augmentations including node and edge augmentations to preserve the stability of sensors and their correlations, followed by graph contrasting with both node- and graph-level contrasting to extract robust sensor- and global-level features. We further introduce multi-window temporal contrasting to ensure temporal consistency in the data for each sensor. Extensive experiments demonstrate that our proposed method achieves state-of-the-art performance on various MTS classification tasks. The code is available at https://github.com/Frank-Wang-oss/TS-GAC.
