Graph-Aware Contrasting for Multivariate Time-Series Classification

Yucheng Wang, Yuecong Xu, Jianfei Yang, Min Wu, Xiaoli Li, Lihua Xie, Zhenghua Chen

Introduction

Multivariate Time-Series (MTS) data, such as streams from wearable sensors or industrial monitors, are inherently complex because they encode two distinct types of information: temporal dynamics (how signals evolve over time) and spatial correlations (how different sensors relate to one another). While existing self-supervised learning methods excel at capturing temporal consistency, they often neglect the spatial dimension. For instance, in human activity recognition, the physical relationship between a foot sensor and a knee sensor is far more significant than that between a foot and a hand.

Failure to model these physical correlations or to remain robust against single-sensor disturbances (like amplitude noise) often leads to misclassification. To address this, the authors propose TS-GAC (Graph-Aware Contrasting), a framework that treats MTS data as a dynamic graph to capture both sensor-specific stability and global correlations.

Spatial relationships and disturbances in walking vs. running.

The TS-GAC Framework

TS-GAC transforms MTS data into a graph-based representation and employs a multi-stage contrastive learning pipeline to learn robust features. The framework is designed around three core components:

1. Graph Augmentations

To generate "weak" and "strong" views for contrastive learning, the model applies augmentations at two levels:

  • Node Augmentations: Individual sensor streams are perturbed using frequency-domain noise (via Discrete Wavelet Transform) and temporal permutations.
  • Edge Augmentations: The system constructs a graph where sensors are nodes and their correlations are edges. By selectively retaining the strongest correlations and replacing weaker ones with random values, the model is forced to rely on the most physically meaningful sensor relationships.

2. Multi-Window Temporal Contrasting (MWTC)

Rather than analyzing the entire series as a single block, TS-GAC segments it into windows. An auto-regressive model predicts future windows in one view using past windows from another, ensuring the model captures the underlying temporal "flow."

3. Multi-Level Graph Contrasting

  • Node-level Contrasting (NC): This pulls features of the same sensor from different views closer together while pushing different sensors apart, enhancing robustness to individual sensor noise.
  • Graph-level Contrasting (GC): This compares the entire sample against others in a batch to learn high-level, global features.
Overview of the TS-GAC framework, including graph augmentation and multi-level contrasting.

Experimental Results

The model was evaluated on ten diverse public MTS datasets, including human activity recognition (HAR), sleep stage analysis (ISRUC), and industrial motion data. TS-GAC achieved State-of-the-Art (SOTA) results on 8 out of 10 datasets. Notably, it improved accuracy by 1.44% on the HAR dataset and saw a 3.13% jump on the ISRUC sleep dataset compared to previous leaders like TS2Vec.

Key insights from the results include:

  • Spatial Importance: Explicitly modeling sensor correlations as graph edges allows the model to learn structural dependencies that sequence-only models miss.
  • Hierarchical Loss: Ablation studies confirmed that removing any level of the hierarchy (node, graph, or temporal) significantly degrades performance, proving that all three scales are necessary for robust MTS representation.
  • Feature Discriminability: Visualization via t-SNE showed that TS-GAC creates tighter, more distinct clusters for individual sensors, indicating more discriminative learned representations.

Conclusion and Future Work

TS-GAC demonstrates that integrating graph-based spatial awareness with temporal contrasting significantly boosts MTS classification performance. While highly effective, the computational overhead of constructing graphs for every window presents a challenge for real-time edge applications. Future research may focus on optimizing these computations or exploring dynamic graph neural networks that evolve more fluidly over time.

Summary updated

BibTeX
@inproceedings{wang2024graph,
  author = {Yucheng Wang and Yuecong Xu and Jianfei Yang and Min Wu and Xiaoli Li and Lihua Xie and Zhenghua Chen},
  title = {{Graph-Aware Contrasting for Multivariate Time-Series Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29501},
}
Figure