Abstract
Learning general-purpose representations from multisensor data produced by omnipresent sensing systems (IoT) has numerous applications in diverse use cases. Existing purely supervised end-to-end deep learning techniques depend on the availability of a massive amount of well-curated data, which is notoriously difficult to acquire. In this work, we leverage the self-supervised learning (SSL) paradigm towards realizing the vision of continual learning from unlabeled inputs. We present a generalized framework named Sense and Learn for representation learning from raw sensory data. It consists of several auxiliary tasks that learn high-level features entirely from unannotated data. We demonstrate the efficacy of our approach on several publicly available datasets across domains including activity recognition, sleep scoring, and stress detection. Our methodology achieves results competitive with supervised approaches and significantly boosts performance in low-data regimes (as few as 5 labeled instances per class). The learned representations are highly transferable and open up exciting possibilities for on-device continual learning.
Introduction
Deep learning has revolutionized fields like computer vision, but it faces a significant "labeling bottleneck" when applied to omnipresent sensors such as IMUs, heart rate monitors, and EEG. Unlike images, which humans can label intuitively, sensory data often requires expert knowledge (e.g., medical professionals for sleep staging) or invasive experimental setups. Furthermore, privacy concerns often prevent the aggregation of this sensitive data in the cloud for centralized labeling.
While smartphones and wearables generate a wealth of raw data, most of it remains unused. "Sense and Learn" addresses this challenge by leveraging the massive volume of unlabeled signal data to build models that generalize well, even when only a handful of labeled examples are available for the final downstream task.
The Sense and Learn Framework
The proposed framework is built on a multi-stream Temporal Convolutional Network (TCN). TCNs are utilized over traditional Recurrent Neural Networks (RNNs) due to their computational efficiency and superior ability to capture long-term dependencies in parallel.
The core innovation lies in eight novel self-supervised pretext tasks that force the network to learn the underlying structure of the data without human labels:
- Blend Detection: Identifying if a signal is "clean" or a weighted mix of two modalities.
- Fusion Magnitude Prediction: Predicting the specific weighting factor used to blend signals.
- Feature Prediction from Masked Window: Approximating summary statistics of a hidden signal segment.
- Transformation Recognition: Detecting signal manipulations like scaling or time-warping.
- Temporal Shift Prediction: Estimating the degree of circular shift applied to a signal.
- Modality Denoising: Reconstructing a clean signal from one corrupted by cross-sensor mixing.
- Odd Segment Recognition: Identifying an "imposter" segment inserted into a sequence.
- Metric Learning with Triplet Loss: Using contrastive learning to align similar signal views in embedding space.
Experimental Setup
The framework was evaluated across eight datasets spanning four distinct domains:
- Activity Recognition: HHAR, MobiAct, MotionSense, UCI HAR, and HAPT (accelerometer and gyroscope).
- Sleep Stage Scoring: Sleep-EDF (EEG and EOG signals).
- Stress Detection: MIT DriverDb (heart rate and skin conductance).
- WiFi Sensing: WiFi CSI (Channel State Information for gesture recognition).
Key Insights and Results
SSL as a Strong Prior
Self-supervision acts as a powerful initialization. Instead of starting with random weights, the model begins end-task training with a fundamental understanding of signal dynamics, noise, and sensor relationships. This is particularly evident in the low-data regime: with as few as 5 to 10 labeled instances per class, SSL-initialized models significantly outperformed models trained from scratch. In sleep stage scoring, the authors observed a 26-point increase in F-score compared to supervised baselines in low-data settings.
Transferability and Multi-Modality
Representations learned on one dataset (e.g., HAPT) transferred effectively to others (e.g., MobiAct), proving that the model learns generic physical features of motion rather than dataset-specific quirks. Furthermore, many pretext tasks exploit the synchronization of sensors (like accelerometers and gyroscopes), allowing one modality to act as a natural supervisor for another.
On-Device Readiness
By utilizing a small TCN architecture and computationally inexpensive data generation, the framework is optimized for resource-constrained devices like smartphones and watches. This enables continual on-device learning while preserving user privacy.
Conclusion
Sense and Learn demonstrates that self-supervised pretraining can effectively close the gap between unlabeled data and high-performance sensing applications. While challenges like "shortcut learning" (where models latch onto low-level noise patterns) remain, the framework's ability to thrive in low-data environments and its high transferability make it a robust foundation for future omnipresent sensing systems. Future work will explore multi-task optimization and integration with Federated Learning for decentralized, privacy-preserving AI.
Summary updated