Abstract
Human Activity Recognition (HAR) systems have been extensively studied by the vision and ubiquitous computing communities due to their practical applications in daily life, such as smart homes, surveillance, and health monitoring. Typically, this process is supervised in nature and the development of such systems requires access to large quantities of annotated data. However, the higher costs and challenges associated with obtaining good quality annotations have rendered the application of self-supervised methods an attractive option and contrastive learning comprises one such method. However, a major component of successful contrastive learning is the selection of good positive and negative samples. Although positive samples are directly obtainable, sampling good negative samples remain a challenge. As human activities can be recorded by several modalities like camera and IMU sensors, we propose a hard negative sampling method for multimodal HAR with a hard negative sampling loss for skeleton and IMU data pairs. We exploit hard negatives that have different labels from the anchor but are projected nearby in the latent space using an adjustable concentration parameter. Through extensive experiments on two benchmark datasets: UTD-MHAD and MMAct, we demonstrate the robustness of our approach for learning strong feature representation for HAR tasks, and on the limited data setting. We further show that our model outperforms all other state-of-the-art methods for UTD-MHAD dataset, and self-supervised methods for MMAct: Cross session, even when uni-modal data are used during downstream activity recognition.
Introduction
Human Activity Recognition (HAR) is a cornerstone for modern applications in smart environments and healthcare. While deep learning has significantly advanced the field, the reliance on massive, high-quality annotated datasets remains a bottleneck due to the high cost of manual labeling. Self-Supervised Learning (SSL), particularly contrastive learning, has emerged as a powerful alternative. By learning to distinguish between "positive" pairs (different views of the same action) and "negative" pairs (different actions), models can learn robust features from unlabeled data.
However, standard contrastive methods often struggle with negative sample selection. They frequently encounter "easy negatives" that provide little learning signal or "false negatives" where two instances of the same activity are incorrectly treated as different. This paper addresses these challenges by introducing a multimodal framework that leverages both 3D skeleton data and Inertial Measurement Unit (IMU) signals, utilizing a novel hard negative sampling strategy to refine the latent space.
Methodology
The proposed framework utilizes a two-stage training pipeline: pre-training and fine-tuning. During pre-training, the model aligns representations from two distinct modalities: 3D skeleton data and IMU signals.
Architecture and Loss
- Encoders: The system employs a Transformer-based encoder (CSSHAR) for IMU data and a Hierarchical Co-occurrence Network for skeleton data.
- Hard Negative Sampling Loss (HNL): The core innovation is the replacement of standard InfoNCE loss with a hardness-biased objective. This objective incorporates an adjustable concentration parameter, $\beta$, which up-weights negative samples located near the anchor in the latent space. This forces the model to learn fine-grained distinctions between similar activities, such as "brushing teeth" versus "washing face."
Training Workflow
Following pre-training on unlabeled data, the encoders are frozen. A simple linear classifier is then trained on top of these frozen representations using a small subset of labeled data to perform the final activity classification.
Experimental Results
The approach was evaluated on the UTD-MHAD and MMAct benchmark datasets. On UTD-MHAD, the method achieved a state-of-the-art accuracy of 96.20%. On the MMAct Cross-Session protocol, it reached 92.06%, significantly outperforming existing self-supervised baselines.
Performance in Low-Data Regimes
A key finding of this research is the model's robustness when labeled data is scarce. In semi-supervised settings, the HNL framework outperformed standard supervised models by up to 24% when using very limited annotated samples (e.g., 5% of the dataset).
Cross-Modal Synergy
The results also indicate that pre-training with multimodal data improves performance even when only a single sensor (unimodal) is used during deployment. The multimodal pre-training phase creates a richer feature foundation than unimodal training alone.
Conclusion
This work demonstrates that prioritizing hard negatives in a multimodal contrastive learning framework significantly enhances feature representation for HAR. The method is particularly effective in scenarios with limited labeled data. Future research will focus on automating the tuning of the hardness parameter $\beta$ and expanding the framework to include additional modalities like RGB video and audio.
Summary updated