MHCCL: Masked Hierarchical Cluster-Wise Contrastive Learning for Multivariate Time Series

Qianwen Meng, Hangwei Qian, Yong Liu, Lizhen Cui, Yonghui Xu +1 more
12/2/2022
cs.LGcs.AI
contrastive-ssl

Official code: mqwfrog/MHCCL (44 stars, Python, last commit 2024-07-16).

Abstract

Learning semantic-rich representations from raw unlabeled time series data is critical for downstream tasks such as classification and forecasting. Contrastive learning has recently shown its promising representation learning capability in the absence of expert annotations.

Show full abstract

However, existing contrastive approaches generally treat each instance independently, which leads to false negative pairs that share the same semantics. To tackle this problem, we propose MHCCL, a Masked Hierarchical Cluster-wise Contrastive Learning model, which exploits semantic information obtained from the hierarchical structure consisting of multiple latent partitions for multivariate time series. Motivated by the observation that fine-grained clustering preserves higher purity while coarse-grained one reflects higher-level semantics, we propose a novel downward masking strategy to filter out fake negatives and supplement positives by incorporating the multi-granularity information from the clustering hierarchy. In addition, a novel upward masking strategy is designed in MHCCL to remove outliers of clusters at each partition to refine prototypes, which helps speed up the hierarchical clustering process and improves the clustering quality. We conduct experimental evaluations on seven widely-used multivariate time series datasets. The results demonstrate the superiority of MHCCL over the state-of-the-art approaches for unsupervised time series representation learning.

View on arXivView PDF

Code Implementations(1)

mqwfrog/MHCCLOfficial100%

MHCCL: Masked Hierarchical Cluster-wise Contrastive Learning for Multivariate Time Series - a PyTorch Version (AAAI-2023)

4410PythonAug 19, 20222 years ago
contrastive-learninghierarchical-clusteringrepresentation-learningtime-seriestime-series-classification

Similar Papers

Cite this paper

@article{meng2022mhccl,
  title  = {MHCCL: Masked Hierarchical Cluster-Wise Contrastive Learning for Multivariate Time Series},
  author = {Qianwen Meng and Hangwei Qian and Yong Liu and Lizhen Cui and Yonghui Xu and Zhiqi Shen},
  year   = {2022},
  eprint = {2212.01141},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.01141}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.01141.svg)](https://codeofpaper.com/paper/2212.01141)

Discussion