Next Article in Journal
Inferring Mental States via Linear and Non-Linear Body Movement Dynamics: A Pilot Study
Previous Article in Journal
Sparse Blind Deconvolution Using ADMM Methods Based on Asymmetric Structured Prior for UWB Fuze
Previous Article in Special Issue
Personalized Smart Home Automation Using Machine Learning: Predicting User Activities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

Towards User-Generalizable Wearable-Sensor-Based Human Activity Recognition: A Multi-Task Contrastive Learning Approach

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
(This article belongs to the Special Issue Sensor-Based Human Activity Recognition)

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.
Keywords: Human Activity Recognition (HAR); user-generalization; contrastive learning; multi-task learning; wearable sensor; supervised contrastive learning Human Activity Recognition (HAR); user-generalization; contrastive learning; multi-task learning; wearable sensor; supervised contrastive learning

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

Back to TopTop