Abstract
Wearable devices offer a continuous stream of physiological data, yet the lack of labeled real-world data remains a significant barrier to effective stress detection. This paper introduces a framework utilizing Bayesian Active Learning to minimize the labeling burden on users. By employing Monte-Carlo Dropout for uncertainty estimation, the system selectively queries the user for labels only when the model is most uncertain. Experimental results on the SWELL-KW dataset demonstrate that this approach achieves over 90% accuracy while requiring 40% less labeled data than traditional methods, all while maintaining a small enough footprint for on-device execution.
Introduction: The Labeling Burden in Wearables
While modern wearables can effortlessly track heart rate and skin conductance, translating these signals into psychological states like stress requires supervised learning. In laboratory settings, researchers can easily label data, but in the wild, this process becomes intrusive. Constant prompts for emotional state labels—the "labeling burden"—often lead to user fatigue and poor data quality. To address this, we need a system capable of identifying the most informative data points to label, thereby maximizing model improvement with minimal user intervention.
Methodology
The proposed framework centers on a Bayesian Convolutional Neural Network (B-CNN) optimized for resource-constrained edge devices.
System Architecture
The workflow involves a model initially trained on a server and then deployed to an embedded device for real-time inference and incremental learning.
The B-CNN architecture consists of a 4-layer 1D-Convolutional network designed to extract temporal features from physiological signals, followed by two fully connected layers. The total model size is approximately 115 KB, making it suitable for IoT hardware.
Uncertainty Estimation via MC Dropout
To quantify model uncertainty without the computational cost of full Bayesian inference, the system uses Monte-Carlo (MC) Dropout. By keeping dropout layers active during inference and performing multiple stochastic forward passes ($T=10$), the model generates a distribution of predictions. The variance across these passes serves as a proxy for uncertainty, allowing the device to recognize when it "doesn't know" the correct classification.
Active Learning Strategies
The system employs acquisition functions to decide which unlabeled data points should be sent to the "oracle" (the user) for labeling. Four strategies were evaluated:
- Max Entropy: Targets points with the highest predictive uncertainty.
- BALD (Bayesian Active Learning by Disagreement): Selects points that maximize information about model parameters.
- Variation Ratios: Focuses on samples where the model is least confident in its top prediction.
- Random Sampling: A baseline approach of selecting points at random.
Key Results
The framework was evaluated using the SWELL-KW dataset, focusing on binary classification between neutral and stressed states.
Data Efficiency
The active learning approach significantly outperformed random sampling in terms of data efficiency. As shown in the table below, the Variation Ratios acquisition function proved particularly effective.
With only 60% of the data ($\eta=0.6$), the model reached an accuracy of 90.38% using Variation Ratios. This is remarkably close to the 91.92% accuracy achieved using the full 100% dataset, representing a 40% reduction in the required labels.
On-Device Performance
Deployment on a Raspberry Pi 2 confirmed the feasibility of this approach for edge computing. A single inference pass takes just 9ms. While the 10 stochastic passes required for uncertainty estimation take approximately 5 seconds, this is considered an acceptable background task for a wearable device, occurring only when new data needs to be evaluated for labeling.
Conclusion
This research demonstrates that Bayesian Active Learning can effectively bridge the gap between laboratory-trained models and real-world wearable applications. By empowering models with self-awareness of their uncertainty, we can drastically reduce the labeling burden on users while maintaining high detection accuracy. Future work will focus on handling noisy labels from users and adapting to long-term changes in individual physiological baselines.
Summary updated