Introduction
Human Activity Recognition (HAR) using wearable sensors like accelerometers and gyroscopes is pivotal for health monitoring and sports science. However, a significant hurdle remains: domain shift. Models trained in controlled environments often fail when deployed in the real world because every individual moves differently, and sensor placement varies. This paper introduces Categorical Concept Invariant Learning (CCIL), a framework designed to ensure models focus on the fundamental essence of an activity rather than the specific quirks of an individual user or sensor placement.
The Challenge of Domain Generalization in HAR
The primary issue in sensor-based HAR is the "domain shift" problem. A model trained on a specific group of subjects or a specific sensor position (e.g., the waist) often performs poorly when applied to new subjects or different positions (e.g., the wrist). Traditional Domain Generalization (DG) methods typically focus on making internal feature representations invariant across domains. However, the authors argue that feature-invariance alone is a "coarse" metric. It ignores how the final classifier layer interprets these features; a feature is only as important as the weight the classifier assigns to it.
Methodology: Categorical Concept Invariant Learning (CCIL)
The core innovation of CCIL is the Concept Matrix. Instead of looking at features ($z$) or logits ($o$) in isolation, CCIL examines the element-wise interaction between the two. The concept matrix represents the contribution of every feature to every activity class, effectively capturing a "fine-grained" characterization of the activity.
The framework enforces Categorical Invariance: for a given activity (e.g., "walking"), the concept matrix should remain stable regardless of the subject or sensor placement. To implement this, the authors introduce a regularization loss ($L_{CMS}$) that penalizes deviations from a category-specific "mean concept matrix." This mean is updated dynamically using a momentum-based moving average, ensuring the model learns representations robust to both feature and logit variations.
Experimental Evaluation
The researchers evaluated CCIL on four benchmark datasets: DSADS, USC-HAD, PAMAP2, and UCI-HAR. These datasets cover a wide range of activities and subjects. The model was tested under four rigorous scenarios: cross-person, cross-dataset, cross-position, and one-person-to-another.
Results and Discussion
CCIL demonstrated superior performance across all benchmarks, consistently outperforming state-of-the-art (SOTA) methods. On the DSADS dataset, CCIL achieved a 10.4% accuracy improvement over the standard Empirical Risk Minimization (ERM) baseline. Furthermore, it outperformed specialized DG methods like DIVERSIFY by margins of 2.5% to 3.7%.
Visual analysis using t-SNE confirms that CCIL learns more discriminative and domain-invariant representations. As shown in the visualizations, CCIL creates tighter clusters for each activity class, effectively separating them even when data comes from diverse domains. In the difficult task of recognizing activities when the sensor is moved to a new body part (cross-position), CCIL achieved an 8.1% improvement over the baseline.
Conclusion
Categorical Concept Invariant Learning (CCIL) offers a simple yet powerful regularization strategy for HAR. By focusing on the interaction between features and classifier weights through the concept matrix, CCIL ensures that models capture the fundamental essence of human activities, leading to significantly better generalization in real-world applications.
Summary updated