Abstract
While traditional feature engineering for Human Activity Recognition (HAR) involves a trial-and-error process, deep learning has emerged as a preferred method for high-level representations of sensor-based human activities. However, most deep learning-based HAR requires a large amount of labelled data and extracting HAR features from unlabelled data for effective deep learning training remains challenging. We, therefore, introduce a deep semi-supervised HAR approach, MixHAR, which concurrently uses labelled and unlabelled activities. Our MixHAR employs a linear interpolation mechanism to blend labelled and unlabelled activities while addressing both inter- and intra-activity variability. A unique challenge identified is the activity-intrusion problem during mixing, for which we propose a mixing calibration mechanism to mitigate it in the feature embedding space. Additionally, we rigorously explored and evaluated the five conventional/popular deep semi-supervised technologies on HAR, acting as the benchmark of deep semi-supervised HAR. Our results demonstrate that MixHAR significantly improves performance, underscoring the potential of deep semi-supervised techniques in HAR.
Introduction
Deep learning has revolutionized sensor-based Human Activity Recognition (HAR), enabling smartwatches and wearables to track complex movements like walking, climbing stairs, or cycling with high precision. However, these models are notoriously "data-hungry." Training robust deep learning architectures typically requires massive amounts of manually labelled sensor data—a process that is expensive, time-consuming, and often intrusive for users.
While unlabelled data is abundant and easy to collect, leveraging it effectively remains a significant hurdle. Existing semi-supervised methods often focus on intra-activity variability (ensuring the model recognizes "walking" regardless of an individual's unique style) but frequently struggle with inter-activity variability (the transitions and similarities between different activity classes). To bridge this gap, we present MixHAR, a semi-supervised learning framework designed to maximize the utility of unlabelled wearable sensor data.
The Challenge: Activity Intrusion
A primary obstacle in mixing sensor data for HAR is the "activity intrusion" problem. When blending data samples—for instance, through linear interpolation—the resulting "virtual" activity might inadvertently mimic a distinct, real-world activity. For example, a blend of "walking" and "running" might look identical to "jogging" in the sensor stream. This ambiguity creates a confusing training signal, potentially degrading the model's performance rather than enhancing it. MixHAR addresses this by moving the calibration process into the feature embedding space, ensuring the model can distinguish between genuine activities and synthetic blends.
The MixHAR Framework
MixHAR operates on three primary pillars to optimize learning from limited labelled datasets:
- Pseudo-Labeling with Sharpening: For unlabelled data, the model generates "pseudo-labels" by averaging predictions across multiple data augmentations. A "sharpening" function is then applied to reduce entropy, forcing the model to make more confident, categorical predictions rather than ambiguous ones.
- Behavior Interpolation (MixUp): Inspired by the MixUp technique used in computer vision, MixHAR creates virtual training samples by linearly interpolating between labelled and unlabelled data. This encourages the model to learn smooth transitions between activity classes and improves its generalization capabilities.
- Mixing Calibration: To solve the activity intrusion problem, MixHAR utilizes a calibration mechanism in the feature embedding space. By calculating sensor-wise and time-wise covariance matrices, the model captures high-order feature correlations. An attention-driven group convolution then uses these correlations to "rectify" the feature representations, ensuring the model is not misled by ambiguous mixed samples.
Experimental Setup and Benchmarking
We evaluated MixHAR against five diverse, high-quality benchmark datasets to test its versatility:
- Opportunity: Complex, non-repetitive daily activities.
- PAMAP2: Vigorous physical activity monitoring.
- mHealth: Common activities such as walking, cycling, and jumping.
- DSADS: Daily and sports activities performed freely by subjects.
- mHealth+: A modified version of mHealth designed to simulate real-world imbalanced scenarios, where a "NULL-class" (irrelevant movement) constitutes over 70% of the data.
MixHAR was benchmarked against five conventional semi-supervised technologies: $\pi$-Model, VAT, Mean-Teacher, and others, providing a comprehensive look at the current state of deep semi-supervised HAR.
Key Results
MixHAR consistently outperformed all five conventional semi-supervised baselines across every dataset tested. Key findings include:
- Exceptional Low-Data Performance: When provided with only 1% labelled data, MixHAR achieved significant F1-score improvements over standard supervised baselines: +11.1% on PAMAP2 and +12.8% on mHealth.
- Robustness to Real-World Noise: On the imbalanced mHealth+ dataset, MixHAR maintained a strong lead despite the 70% noise/NULL class, proving its efficacy in "needle in a haystack" scenarios typical of real-world sensor streams.
- Superior Feature Representation: Visualization via t-SNE confirmed that MixHAR creates tighter clusters for identical activities and wider margins between different activities compared to competing methods.
- Semi-Supervised vs. Self-Supervised: Interestingly, MixHAR often outperformed recent self-supervised methods (such as Mask-Self-HAR). This suggests that using even a tiny fraction of labelled data to guide the learning of unlabelled patterns is more effective than pre-training on unlabelled data alone.
Conclusion and Future Work
MixHAR demonstrates that linear interpolation, when combined with feature-space calibration, acts as a powerful bridge between supervised knowledge and the vast diversity of real-world movement. While the framework excels at repetitive activities, challenges remain for non-repetitive and extremely imbalanced datasets like Opportunity, where the dominant NULL-class can still obscure the signal.
Future research will focus on developing HAR-specific data augmentations that go beyond simple scaling and warping. Additionally, we aim to explore the integration of these semi-supervised techniques into federated learning environments, allowing for model training on sensitive wearable data while strictly preserving user privacy.
Summary updated