Introduction
Inertial Measurement Units (IMUs), comprising accelerometers and gyroscopes, are ubiquitous in mobile devices, enabling applications ranging from fitness tracking to biometric authentication. However, developing high-performing deep learning models for these tasks typically requires vast amounts of labeled data. Labeling IMU signals is a significant challenge; unlike images, raw sensor data is unintuitive for humans to interpret without synchronized video ground truth.
While self-supervised learning (SSL) offers a path to leverage unlabelled data, existing approaches often struggle with IMU data. Contrastive learning requires complex, domain-specific augmentations, while point-wise masking (similar to BERT in NLP) often ignores the inherent physical hierarchy and repetitive nature of human motion.
The Saga Framework
The authors propose Saga, a self-supervised framework that treats IMU pre-training as a multi-granularity reconstruction task. Saga is designed to capture the complex semantics of motion by masking and reconstructing signals at four distinct physical levels.
The framework operates through three primary stages:
- Multi-level Masking (MM): Data is masked at the sensor level (entire axes), point level (short spans), sub-period level (segments between key points), and period level (entire repetitive cycles).
- Models Training (MT): A lightweight BERT-based backbone reconstructs the masked segments. For specific downstream tasks, a small GRU classifier is appended.
- Low-Cost Weight Searching (LWS): Recognizing that different tasks prioritize different granularities, Saga employs Bayesian Optimization to automatically determine the optimal weights for the four pre-training tasks based on a minimal set of labeled samples.
Hierarchical Semantics in IMU Data
A core insight of Saga is that IMU data possesses a natural physical hierarchy. For instance, a single "peak" in an acceleration signal might capture a unique gait characteristic identifying a specific user, whereas a full "period" or cycle represents a broader activity like "walking" or "shaking."
By forcing the model to reconstruct data across these multiple scales, Saga learns a richer, more robust representation of motion than standard single-scale masking techniques. This hierarchical approach allows the model to adapt to diverse downstream tasks, from fine-grained user identification to coarse-grained activity recognition.
Key Results and Performance
Saga demonstrates exceptional label efficiency and performance across several public datasets (HHAR, Motion, and Shoaib):
- Label Efficiency: With just 100 labeled samples per class, Saga achieves over 90% of the accuracy of fully supervised models trained on complete datasets.
- State-of-the-Art Comparison: Saga consistently outperforms existing methods like LIMU-BERT and CL-HAR. In low-data regimes (5% labels), it improves accuracy by up to 51.6%.
- Efficiency for Mobile Edge: The model's backbone is remarkably compact (~61KB), with inference latencies under 7ms on mid-range mobile devices, making it ideal for real-time, on-device applications.
Conclusion
Saga represents a significant step forward in self-supervised learning for mobile sensors. By acknowledging and exploiting the hierarchical nature of IMU data, it drastically reduces the dependency on expensive labeled datasets. While currently optimized for periodic activities, future iterations could extend these multi-granularity principles to sporadic gestures and multi-modal sensor fusion.
Summary updated