arXiv Analytics

Sign in

arXiv:2203.12230 [cs.CV]AbstractReferencesReviewsResources

Negative Selection by Clustering for Contrastive Learning in Human Activity Recognition

Jinqiang Wang, Tao Zhu, Liming Chen, Huansheng Ning, Yaping Wan

Published 2022-03-23Version 1

Contrastive learning has been applied to Human Activity Recognition (HAR) based on sensor data owing to its ability to achieve performance comparable to supervised learning with a large amount of unlabeled data and a small amount of labeled data. The pre-training task for contrastive learning is generally instance discrimination, which specifies that each instance belongs to a single class, but this will consider the same class of samples as negative examples. Such a pre-training task is not conducive to human activity recognition tasks, which are mainly classification tasks. To address this problem, we follow SimCLR to propose a new contrastive learning framework that negative selection by clustering in HAR, which is called ClusterCLHAR. Compared with SimCLR, it redefines the negative pairs in the contrastive loss function by using unsupervised clustering methods to generate soft labels that mask other samples of the same cluster to avoid regarding them as negative samples. We evaluate ClusterCLHAR on three benchmark datasets, USC-HAD, MotionSense, and UCI-HAR, using mean F1-score as the evaluation metric. The experiment results show that it outperforms all the state-of-the-art methods applied to HAR in self-supervised learning and semi-supervised learning.

Related articles: Most relevant | Search more
arXiv:2106.09958 [cs.CV] (Published 2021-06-18)
Novelty Detection via Contrastive Learning with Negative Data Augmentation
arXiv:2201.12813 [cs.CV] (Published 2022-01-30)
Contrastive Learning from Demonstrations
arXiv:2204.11018 [cs.CV] (Published 2022-04-23)
Exploring Negatives in Contrastive Learning for Unpaired Image-to-Image Translation