Introduction
Human Activity Recognition (HAR) is a cornerstone of modern health monitoring and fall detection systems. However, deploying effective HAR models in the real world faces two significant challenges. First, user adaptability: movement patterns vary significantly between individuals, often causing models trained on general populations to fail for specific users. Second, the labeling bottleneck: deep learning models typically require vast amounts of labeled data, and manually annotating sensor data is an onerous task for end-users.
To address these issues, we present ActiveHARNet, a resource-efficient framework designed to bring deep Bayesian active learning directly to wearable devices. By leveraging uncertainty estimation, the system identifies the most informative data points for labeling, reducing human effort while maintaining high on-device accuracy.
System Architecture
The ActiveHARNet framework operates through a continuous loop of inference and incremental learning. A base model is initially trained on a server and then deployed to an embedded device. As the device encounters real-world data, it uses active learning to query the user (the "oracle") only when the model's predictions are highly uncertain.
Methods
HARNet Architecture
The core of the system is a lightweight hybrid CNN architecture, termed HARNet, comprising approximately 31,000 parameters. This design is optimized for the constraints of wearable hardware.
As shown in the architecture diagram, the model processes sensor data through two main stages:
- Intra-Axial Processing: 1D-CNN layers capture patterns within individual sensor axes after initial windowing and Discrete Wavelet Transform (DWT) preprocessing.
- Inter-Axial Processing: 2D-CNN layers capture the complex interactions between different axes (e.g., how the X, Y, and Z axes of an accelerometer move in concert).
Bayesian Uncertainty and Active Learning
To quantify model confidence, ActiveHARNet employs Monte Carlo (MC) Dropout. By maintaining dropout during inference and performing 10 stochastic passes, the system generates a distribution of predictions. High variance in these predictions indicates model uncertainty.
When uncertainty is detected, the system triggers an Active Learning (AL) query. We evaluated several acquisition functions to prioritize data points:
- Max Entropy: Selects points with the highest predictive entropy.
- BALD: Maximizes mutual information between predictions and the model posterior.
- Variation Ratios (VR): Measures the lack of consensus among stochastic passes.
Experimental Results
The framework was evaluated using the Heterogeneous Human Activity Recognition (HHAR) and Notch Fall Detection datasets, with on-device performance simulated on a Raspberry Pi 2.
Personalization and Accuracy
Active learning proved critical for model personalization. For instance, in the HHAR dataset, User 'i' initially experienced a baseline accuracy of only 25%. By querying just 62 specific data points for labeling, the model's accuracy for this user increased to approximately 70%—a 45% absolute improvement with minimal user intervention. On the Notch dataset, ActiveHARNet achieved an average F1-score of 0.927, significantly outperforming the previous benchmark of 0.837.
Efficiency and Labeling Reduction
ActiveHARNet achieved a 60% reduction in required labels compared to standard training methods without compromising performance. The system is also highly performant on-device: a single inference pass takes 11–14ms, and the total uncertainty calculation takes roughly 14 seconds. The model's small memory footprint (180kB to 315kB) makes it ideal for modern smartwatches.
Conclusion
ActiveHARNet demonstrates that deep Bayesian active learning is feasible on resource-constrained wearable devices. By focusing labeling efforts on the most "confusing" data points, the framework enables rapid personalization and high accuracy while significantly reducing the burden on the user. Future work will explore optimizing the frequency of user queries and extending the framework to a broader range of pervasive healthcare applications.
Summary updated