TL;DR
This paper tackles the challenge of Domain-Generalized Activity Recognition (DGAR), where models trained on one set of activity data must perform well on unseen data from different sources (e.g., different people, devices, or environments) without any further training. They propose AFFAR, a novel approach that adaptively fuses domain-invariant and domain-specific features to achieve robust generalization.
What Problem Does This Paper Address?
Human Activity Recognition (HAR) models are crucial for applications ranging from health monitoring to smart homes. However, a major hurdle is their poor generalization to new, unseen data. This "domain shift" occurs because real-world data is inherently diverse: people have different body shapes, acting styles, and habits, and sensors can vary. Traditional methods like transfer learning and domain adaptation require access to the target domain data during training, which is often impractical. This paper addresses the more realistic scenario of domain generalization, where the model must generalize to entirely unseen domains without any target data during training. They specifically frame this as Domain-Generalized Activity Recognition (DGAR).
Methods
The core of AFFAR lies in its Adaptive Feature Fusion strategy. It comprises four key modules:
- Feature Extraction: A shared CNN backbone extracts low-level, general features from raw sensor data.
- Domain-Specific Representation Learning: For each training domain, a separate fully connected (FC) layer learns domain-specific features. This module aims to capture the unique characteristics of each source domain.
- Domain-Invariant Representation Learning: This module aims to reduce the distribution discrepancy between different training domains, learning features that are transferable across them. The paper uses Maximum Mean Discrepancy (MMD) as a primary metric for this, but notes flexibility to incorporate other distance metrics like DANN or CORAL.
- Activity Classification: An FC layer takes the fused features (from domain-specific and domain-invariant representations) to predict the activity.
The key innovation is the adaptive fusion of these two types of representations. During inference on unseen data, AFFAR learns to dynamically weigh and combine the domain-specific features from each source domain based on their learned similarity to the target data, guided by a domain classifier. This allows it to leverage the strengths of both generalizable and specific features.
Datasets
The authors evaluate AFFAR on three public HAR datasets:
- DSADS: 1.14M samples, 19 activities, 8 subjects, 5 body positions, 25Hz sampling rate.
- USC-HAD: 2.81M samples, 12 activities, 14 subjects, 1 body position, ~100Hz sampling rate.
- PAMAP2: 2.84M samples, 8 activities (selected from 18), 9 subjects, 3 body positions, 100Hz sampling rate.
For each dataset, they construct DGAR scenarios by dividing subjects into groups, treating each group as a domain. They also apply AFFAR to a real-world ADHD dataset for fine-grained classification.
Key Insights and Ideas
- Domain-Specific is Crucial for HAR: Unlike many DG methods that focus solely on domain-invariant features, AFFAR's success highlights the importance of capturing domain-specific characteristics in HAR. This is because individual differences (acting styles, body shapes) significantly impact sensor readings.
- Adaptive Fusion is Key: The ability to dynamically fuse domain-specific features based on their relevance to the unseen target domain is a critical component of AFFAR's effectiveness.
- MMD is a Good Choice, but Flexible: While MMD is used for domain-invariant learning, the framework's generality allows for other distribution matching techniques, suggesting robustness and adaptability.
- Meta-Learning Struggles with HAR: Empirical results showed that meta-learning-based DG methods performed worse than simpler baselines, possibly due to the highly dependent nature of sensor data, which conflicts with assumptions of meta-learning's train/test splits.
Key Results
- State-of-the-Art Performance: AFFAR consistently achieved the best weighted F1 scores across all three public HAR datasets, significantly outperforming other DG methods. For example, it was 2.5%, 1.7%, and 3.7% better than the second-best method on DSADS, USC-HAD, and PAMAP2, respectively.
- Robustness on Hard Tasks: AFFAR showed particular improvement on "harder" tasks (e.g., Target-1 on PAMAP2) where distribution discrepancies might be smaller, suggesting it can better handle challenging generalization scenarios.
- Effective ADHD Diagnosis: The method demonstrated its potential for real-world applications by achieving superior multi-class classification accuracy on an ADHD dataset compared to other methods.
- Comparable Training Time: AFFAR's training time was comparable to other methods, despite its ensemble-like structure, indicating efficiency.
Limitations and Future Work
- Ideal Case Performance: The paper acknowledges that ideal-case methods (ERM-t and Fine-tune, which use target domain data) still outperform AFFAR, highlighting the inherent advantage of having target data.
- Inference Time: While AFFAR achieves the best performance, its inference time is slightly longer than some other methods.
- Future Directions: The authors plan to:
- Apply AFFAR to more healthcare applications, such as Parkinson's disease diagnosis.
- Explore alternative domain-invariant learning modules to further improve performance and potentially reduce inference time.
Summary updated