Abstract
Deep learning has significantly advanced Human Activity Recognition (HAR), yet the reliance on large labeled datasets remains a primary obstacle. This paper provides a comprehensive evaluation of Self-Supervised Learning (SSL) techniques—specifically contrastive (SimCLR), generative (MAE), and predictive (data2vec) methods—adapted for 1D sensor data. Our findings indicate that Masked Autoencoders (MAE) consistently outperform other SSL approaches, demonstrating superior robustness and efficiency, particularly in scenarios with limited labeled data.
Introduction
Wearable technology, such as smartwatches and smartphones, relies on Human Activity Recognition (HAR) to track physical activities. While raw sensor data from accelerometers and gyroscopes is abundant, annotating this data is labor-intensive and often requires video review or detailed user logs. Furthermore, HAR models frequently struggle with generalization across different individuals and device placements due to the idiosyncratic nature of human motion. Self-Supervised Learning (SSL) offers a solution by pre-training models on unlabeled data to learn fundamental motion patterns before fine-tuning on specific tasks with minimal labels.
Methods
The researchers adapted three state-of-the-art SSL frameworks originally designed for computer vision or NLP to the HAR domain:
- SimCLR (Contrastive): This method learns representations by maximizing agreement between differently augmented views (e.g., rotation, noise) of the same sensor signal while minimizing agreement with other signals.
- MAE (Generative/Masking): This approach involves masking random segments of the input sensor data and training the model to reconstruct the missing parts, forcing it to learn the underlying "physics" of the movement.
- data2vec (Predictive): A teacher-student framework where the student model predicts the latent representations of masked data segments generated by a teacher model.
These methods were evaluated using two neural architectures: iSPLInception (a specialized CNN) and HART (a sensor-wise Transformer).
Experimental Setup and Datasets
The study utilized a combined dataset of 151 hours of data from 147 subjects using 12 different devices, aggregated from six public benchmarks: HHAR, MobiAct, MotionSense, Realworld, UCI, and PAMAP2. To test real-world generalization, a Leave-One-Dataset-Out (LODO) strategy was employed, where the model is pre-trained on five datasets and tested on the sixth, simulating deployment on a completely new population or device.
Results and Discussion
The evaluation revealed several key insights:
- MAE as the Superior Method: MAE outperformed SimCLR and data2vec across various datasets and architectures. It proved particularly effective when the pre-trained feature extractor was "frozen" (not updated during fine-tuning), achieving F1-scores of ~81-82%, whereas SimCLR often fell below 60%.
- Transformer Synergy: The Transformer-based HART architecture benefited significantly from masking-based SSL (MAE and data2vec), as the attention mechanism effectively leverages context to reconstruct missing data.
- Performance in Data-Scarce Scenarios: In extreme cases with only 10 labeled samples per class, MAE maintained an F1-score above 60%, significantly outperforming supervised baselines.
- Efficiency: MAE was more computationally efficient than SimCLR, requiring fewer Floating Point Operations (FLOPs) during pre-training on the iSPLInception architecture.
Conclusion
This research establishes Masked Autoencoders as a highly effective SSL technique for wearable HAR, offering a robust alternative to traditional contrastive methods. While the current dataset is substantial for the field, the authors anticipate that larger-scale datasets will further enhance the capabilities of these foundation models. Future work will focus on real-time on-device implementation and the exploration of newer SSL frameworks like JEPA (Joint-Embedding Predictive Architecture).
Source: Ek, S., et al. (2025). Comparing Self-Supervised Learning Techniques for Wearable Human Activity Recognition. CCF Transactions on Pervasive Computing and Interaction.
Summary updated