ContrastSense: Domain-invariant Contrastive Learning for In-the-Wild Wearable Sensing

Gaole Dai, Huatao Xu, Hyungjun Yoon, Mo Li, Rui Tan and Sung-Ju Lee

Abstract

Existing wearable sensing models often struggle with domain shifts and class label scarcity. Contrastive learning is a promising technique to address class label scarcity, which however captures domain-related features and suffers from low-quality negatives. To address both problems, we propose ContrastSense, a domain-invariant contrastive learning scheme for a realistic wearable sensing scenario where domain shifts and class label scarcity are presented simultaneously. To capture domain-invariant information, ContrastSense exploits unlabeled data and domain labels specifying user IDs or devices to minimize the discrepancy across domains. To improve the quality of negatives, time and domain labels are leveraged to select samples and refine negatives. In addition, ContrastSense designs a parameter-wise penalty to preserve domaininvariant knowledge during fine-tuning to further maintain model robustness. Extensive experiments show that ContrastSense outperforms the state-of-the-art baselines by 8.9% on human activity recognition with inertial measurement units and 5.6% on gesture recognition with electromyography when presented with domain shifts across users. Besides, when presented with different kinds of domain shifts across devices, on-body positions, and datasets, ContrastSense achieves consistent improvements compared with the best baselines.

Venue
UbiComp / IMWUT 2024
Volume
Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, Volume 8
DOI
10.1145/3699744
PDF
https://dl.acm.org/doi/pdf/10.1145/3699744
Anthology ID
2024.imwut-8.168

Cite

@article{dai-etal-2024-contrastsense,
    title = {{ContrastSense: Domain-invariant Contrastive Learning for In-the-Wild Wearable Sensing}},
    author = {Gaole Dai and Huatao Xu and Hyungjun Yoon and Mo Li and Rui Tan and Sung-Ju Lee},
    journal = {Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies},
    volume = {8},
    issn = {2474-9567},
    year = {2024},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3699744},
    url = {https://doi.org/10.1145/3699744},
    abstract = {Existing wearable sensing models often struggle with domain shifts and class label scarcity. Contrastive learning is a promising technique to address class label scarcity, which however captures domain-related features and suffers from low-quality negatives. To address both problems, we propose ContrastSense, a domain-invariant contrastive learning scheme for a realistic wearable sensing scenario where domain shifts and class label scarcity are presented simultaneously. To capture domain-invariant information, ContrastSense exploits unlabeled data and domain labels specifying user IDs or devices to minimize the discrepancy across domains. To improve the quality of negatives, time and domain labels are leveraged to select samples and refine negatives. In addition, ContrastSense designs a parameter-wise penalty to preserve domaininvariant knowledge during fine-tuning to further maintain model robustness. Extensive experiments show that ContrastSense outperforms the state-of-the-art baselines by 8.9\% on human activity recognition with inertial measurement units and 5.6\% on gesture recognition with electromyography when presented with domain shifts across users. Besides, when presented with different kinds of domain shifts across devices, on-body positions, and datasets, ContrastSense achieves consistent improvements compared with the best baselines.}
}