Abstract
Human Activity Recognition (HAR) faces significant challenges in data scarcity, model reliability, and deployment constraints on low-power wearable devices. This paper introduces a framework that integrates self-supervised learning with Ensemble Distribution Distillation (EDD). By distilling the diversity of a 50-model ensemble into a single "Prior Network" that outputs Dirichlet distribution parameters, the proposed method achieves ensemble-level performance and sophisticated uncertainty quantification at the computational cost of a single small model. Evaluation across four public benchmarks shows significant gains in accuracy and adversarial robustness without increasing inference-time overhead.
Introduction
Deep learning has revolutionized Human Activity Recognition (HAR), yet three primary hurdles persist. First, labeling sensor data (accelerometer/gyroscope) is expensive and privacy-invasive, leading to a scarcity of labeled datasets. Second, standard models often exhibit overconfidence and lack robustness against adversarial perturbations—tiny, imperceptible changes in sensor data that trigger incorrect classifications. Finally, while model ensembles can mitigate these issues, their computational demands exceed the capabilities of typical wearable hardware. This work addresses these challenges by providing "ensemble benefits on a single-model budget."
Methods
The proposed pipeline consists of several stages designed to maximize feature learning and robustness while maintaining efficiency.
Self-Supervised Pre-training
The process begins with training models on a large corpus of unlabeled sensor data. The network learns to identify which of eight transformations (e.g., rotation, scaling, or time-reversal) has been applied to a signal. This "pretext task" enables the model to learn robust features of human movement without requiring human-provided labels.
Ensemble Distribution Distillation (EDD)
Following pre-training, an ensemble of 50 models is fine-tuned on labeled data. To avoid the inference-time cost of running 50 models, the authors employ Ensemble Distribution Distillation. Unlike standard distillation, which targets average predictions, EDD distills the diversity of the ensemble into a single Prior Network. This network outputs the parameters of a Dirichlet distribution, allowing for the separation of aleatoric uncertainty (inherent data noise) and epistemic uncertainty (model ignorance).
Novel Data Augmentation
To improve uncertainty quantification, the authors introduced a technique using weighted combinations of samples. By creating "intermediate states" between activity classes, the model is forced to encounter and learn from ambiguous inputs during training, enhancing its ability to recognize when it should be uncertain.
Experimental Setup
The framework was validated on four widely recognized public HAR benchmarks:
- HHAR (Heterogeneity Human Activity Recognition): Focuses on sensor and device diversity across 36 different devices.
- UCI HAR: Basic activities from 30 participants using waist-mounted smartphones.
- MotionSense: Time-series data from an iPhone 6s kept in a front pocket.
- PAMAP2: 12 physical activities recorded via three Inertial Measurement Units (IMUs) on the wrist, chest, and ankle.
Key Results
The distilled model demonstrated substantial improvements across several metrics:
- Accuracy Gains: On the HHAR dataset, the distilled model achieved 82.61% accuracy, significantly outperforming the 67.84% baseline and matching or beating a 10-member ensemble.
- Adversarial Resilience: When subjected to strong adversarial attacks (FGSM, $\epsilon = 0.1$), the baseline model's accuracy plummeted to ~37% on HHAR. The distilled model maintained 63.05%, effectively retaining the robustness of the full ensemble.
- Efficiency: All benefits were achieved with zero increase in inference-time overhead compared to a standard single model, making it feasible for real-time use on wearables.
- Calibration: The model's uncertainty estimates were highly effective at distinguishing between correct and incorrect predictions, even under heavy data perturbation.
Discussion and Future Work
While the model performed exceptionally well, it showed slight sensitivity to dataset diversity; on the UCI HAR dataset, it lagged slightly behind the full ensemble in specific uncertainty regions. This suggests that the diversity of the training data impacts the model's ability to learn complex ensemble "disagreement patterns."
Future research will explore using these uncertainty estimates for active learning—where the model identifies which unlabeled samples would be most beneficial to label—and developing control schemes where wearables can trigger "safe modes" or request user clarification when uncertainty is high.
Summary updated