Unsupervised Domain Adaptation for Action Recognition via Self-Ensembling and Conditional Embedding Alignment

Indrajeet Ghosh, Garvit Chugh, Abu Zaher Md Faridee, Nirmalya Roy

Introduction

Wearable Human Activity Recognition (wHAR) has become a cornerstone of modern fitness tracking and healthcare monitoring. However, these systems face a significant generalization challenge known as domain shift. Most activity recognition models are trained on data from specific users—often experts or individuals in controlled environments. When these models are deployed for new users with different body characteristics, skill levels, or movement patterns, performance typically degrades. For instance, a professional athlete's "smash" in badminton is kinematically distinct from that of a beginner, leading to classification errors.

Labeling sensor data for every new user is prohibitively expensive and time-consuming. Unsupervised Domain Adaptation (UDA) offers a solution by leveraging labeled data from a "source" domain (experts) and unlabeled data from a "target" domain (beginners). Traditional UDA methods often struggle in wHAR because they either align global data distributions without considering specific activity classes or rely on noisy "pseudo-labels" that lead to error propagation. To address these issues, we present μDAR, a joint optimization framework designed to create a robust, domain-invariant feature space.

The μDAR Framework

Overview of the μDAR architecture, illustrating the integration of temporal ensembling, consistency regularization, and kCMMD loss for domain adaptation.

μDAR integrates three synergistic components to bridge the gap between source and target domains:

  1. Temporal Ensembling for Robust Pseudo-Labeling: Rather than relying on a single model's instantaneous prediction to label target data, μDAR aggregates predictions over multiple past epochs. This "smoothing" effect produces higher-quality, stable pseudo-labels, preventing the model from collapsing due to early-stage classification errors.
  2. Conditional Embedding Alignment (kCMMD): Standard models often align marginal distributions, making all source data look like all target data regardless of activity. μDAR employs a kernel-based class-wise conditional Maximum Mean Discrepancy (kCMMD). This ensures that specific activities (e.g., "walking") in the source domain are aligned with the corresponding activities in the target domain, preserving critical semantic boundaries.
  3. Consistency Regularization: The framework applies unsupervised data augmentations, such as jitter and rotation, to both domains. By minimizing the KL divergence between predictions of original and augmented samples, the model learns to be invariant to sensor noise and orientation shifts common in real-world wearable use.

Experimental Setup and Datasets

The μDAR framework was evaluated across four diverse benchmark datasets to test its versatility:

  • BAR (Badminton Activity Recognition): 12 strokes from 11 subjects, specifically capturing expert vs. novice nuances.
  • DSADS (Daily and Sports Activity): 19 activities (e.g., rowing, cycling) from 8 individuals.
  • PAMAP2 (Physical Activity Monitoring): 18 activities from 9 subjects using multi-sensor arrays.
  • MM-DOS (Workout Activities): IMU data from 50 participants performing gym workouts, used to test cross-dexterity adaptation.

Results and Analysis

t-SNE visualization of activity clusters and a plot demonstrating the reduction of prediction uncertainty over training epochs for different ensemble parameters (α).

μDAR consistently outperformed six state-of-the-art UDA methods, including SWL-Adapt and ContrasGAN. Key findings include:

  • Performance Gains: The framework achieved an average macro-F1 score improvement of 4–12% across all datasets.
  • Expert-to-Novice Adaptation: On the MM-DOS dataset, μDAR showed an 11% improvement over the best baseline when adapting from expert data to beginner data, proving its efficacy in handling proficiency-based domain shifts.
  • Stability and Uncertainty: Analysis of the ensemble parameter (α) revealed an inverse relationship with prediction uncertainty. As training progresses, the self-ensembling approach effectively stabilizes the learning process in the target domain, as shown in the uncertainty decay curves.

Conclusion and Future Work

The μDAR framework demonstrates that combining temporal ensembling with class-wise conditional alignment significantly improves the reliability of wearable activity recognition across different user domains. While the current model uses a three-layer CNN and first-order statistics (mean discrepancy) for alignment, future work will explore higher-order statistics like cross-covariance and more complex architectures like Transformers to further refine temporal feature extraction. Additionally, optimizing the computational overhead of the joint loss functions remains a priority for deployment in resource-constrained wearable environments.

Summary updated

BibTeX
@inproceedings{ghosh2024unsupervised,
  author = {Indrajeet Ghosh and Garvit Chugh and Abu Zaher Md Faridee and Nirmalya Roy},
  title = {{Unsupervised Domain Adaptation for Action Recognition via Self-Ensembling and Conditional Embedding Alignment}},
  booktitle = {ICDM},
  year = {2024},
  doi = {10.1109/icdm59182.2024.00079},
}
Figure