This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach
by
Pengyu Guo
Pengyu Guo 1 and
Masaya Nakayama
Masaya Nakayama 2,*
1
Department of Electronic Engineering and Information Systems, The University of Tokyo, Tokyo 113-8654, Japan
2
Information Technology Center, The University of Tokyo, Tokyo 113-8654, Japan
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(22), 6988; https://doi.org/10.3390/s25226988 (registering DOI)
Submission received: 6 October 2025
/
Revised: 13 November 2025
/
Accepted: 14 November 2025
/
Published: 15 November 2025
Abstract
Human Activity Recognition (HAR) using wearable sensors has shown great potential for personalized health management and ubiquitous computing. However, existing deep learning-based HAR models often suffer from poor user-level generalization, which limits their deployment in real-world scenarios. In this work, we propose a novel multi-task contrastive learning framework that jointly optimizes activity classification and supervised contrastive objectives to enhance generalization across unseen users. By leveraging both activity and user labels to construct semantically meaningful contrastive pairs, our method improves representation learning while maintaining user-agnostic inference at test time. We evaluate the proposed framework on three public HAR datasets using cross-user splits, achieving comparable results to both supervised and self-supervised baselines. Extensive ablation studies further confirm the effectiveness of our design choices, including multi-task training and the integration of user-aware contrastive supervision. These results highlight the potential of our approach for building more generalizable and scalable HAR systems.
Share and Cite
MDPI and ACS Style
Guo, P.; Nakayama, M.
Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach. Sensors 2025, 25, 6988.
https://doi.org/10.3390/s25226988
AMA Style
Guo P, Nakayama M.
Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach. Sensors. 2025; 25(22):6988.
https://doi.org/10.3390/s25226988
Chicago/Turabian Style
Guo, Pengyu, and Masaya Nakayama.
2025. "Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach" Sensors 25, no. 22: 6988.
https://doi.org/10.3390/s25226988
APA Style
Guo, P., & Nakayama, M.
(2025). Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach. Sensors, 25(22), 6988.
https://doi.org/10.3390/s25226988
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article Access Statistics
For more information on the journal statistics, click
here.
Multiple requests from the same IP address are counted as one view.