Introduction
Human Activity Recognition (HAR) is a fundamental component of modern digital health and smart home ecosystems. By analyzing sensor data from devices like accelerometers and gyroscopes, systems can monitor patient health, track fitness, or automate home environments. However, a significant bottleneck persists: the "label scarcity" problem. Annotating raw sensor data is labor-intensive and often requires domain expertise to distinguish between subtle movements, such as "walking" versus "Nordic walking."
While deep learning models have significantly improved HAR accuracy, they typically require vast amounts of labeled data. This paper introduces ActSemiCNN, a framework designed to achieve high performance in "low-annotation regimes" by combining the strengths of Active Learning (AL) and Semi-Supervised Learning (SSL).
The ActSemiCNN Framework
The proposed ActSemiCNN model addresses data scarcity through a synergistic two-step iterative process. The overall workflow, from raw data input to model application, is illustrated in the figure below.
1. Active Learning for Strategic Sample Selection
Instead of labeling samples at random, ActSemiCNN employs an Active Learning strategy known as Best-versus-Second-Best (BvSB). This method identifies the most "informative" samples—those where the model is most uncertain about the correct classification. Specifically, it looks for data points where the probability gap between the top two predicted classes is smallest. These ambiguous samples are then presented to a human "oracle" for labeling, ensuring that manual effort is focused on the most critical decision boundaries.
2. Semi-Supervised Learning via Temporal Ensembling
To leverage the remaining unlabeled data, the framework uses Temporal Ensembling. Deep learning models can be unstable during training; relying solely on the previous epoch's predictions can introduce noise. Temporal ensembling aggregates predictions over multiple past epochs to create a stable "consensus" target. The model then minimizes a hybrid loss function:
- Supervised Loss: Cross-entropy loss for the manually labeled samples.
- Unsupervised Loss: Mean-squared error loss that enforces consistency between current predictions and the stable temporal ensemble targets for unlabeled data.
3. Backbone Architecture
The core of the model is a 1D-Convolutional Neural Network (CNN) optimized for extracting spatio-temporal features from raw sensor signals. This architecture allows the model to capture the temporal dependencies inherent in human movement data.
Experimental Evaluation
The ActSemiCNN model was rigorously tested on three public benchmark datasets: PAMAP2, USCHAD, and UCIHAR. These datasets encompass a wide variety of activities and sensor configurations, providing a robust testbed for the framework.
Key Results
The results demonstrate that ActSemiCNN consistently outperforms state-of-the-art models like DeepConvLSTM and MeanTeacher, particularly when labeled data is extremely limited.
- Efficiency: On the PAMAP2 dataset, ActSemiCNN achieved a Macro F1-score of 0.76 using only 200 labels, significantly outperforming standard supervised models that used more than double the amount of labeled data.
- Accuracy: On the UCIHAR dataset, the model reached a Macro F1-score of 0.91 with just 300 labels.
- Generalization: Leave-one-subject-out cross-validation (LOSO-CV) confirmed the model's ability to generalize to new users, which is vital for real-world deployment.
Discussion and Conclusion
The primary innovation of ActSemiCNN lies in the synergy between AL and SSL. While AL improves the quality of the labeled set by selecting the hardest cases, SSL increases the quantity of usable information by incorporating the vast unlabeled pool. This combination allows for a massive reduction in human annotation effort without sacrificing recognition accuracy.
However, challenges remain. The inclusion of unlabeled data throughout training increases computational overhead. Furthermore, the model's reliance on an "oracle" means that human labeling errors on difficult samples can negatively impact performance. Future research will explore few-shot learning for personalized HAR and multi-modal data fusion to further enhance system robustness.
Summary updated