Abstract
Sensor-based Human Activity Recognition (HAR) often suffers from performance degradation when deployed across different users or environments due to distribution shifts. This paper presents a causality-inspired framework that disentangles activity-related "causal" features from domain-specific "non-causal" noise. By employing an early-forking two-branch architecture, a Hilbert-Schmidt Information Criterion (HSIC) for feature independence, and a novel Inhomogeneous Domain Sampling (IDS) strategy, the proposed method achieves state-of-the-art generalization across multiple benchmarks without increasing inference latency.
Introduction: The Challenge of Cross-Domain HAR
Most deep learning models for Human Activity Recognition (HAR) rely on statistical correlations within training data. However, these correlations can be misleading. For instance, if a training dataset contains primarily male subjects who run faster than female subjects, a model might erroneously associate high-frequency signals with gender rather than the activity of running.
When such a model is deployed in a real-world scenario with a fast-running female subject, it is likely to fail due to distribution shift. While standard Domain Generalization (DG) techniques attempt to mitigate this, they often focus on superficial statistical dependencies. This paper argues that true generalization requires understanding the intrinsic causal mechanism. The goal is to separate signal features that cause the activity label (movement patterns) from features specific to the domain (subject identity, body shape, or sensor placement).
Proposed Methodology: A Causal Deconfounding Framework
The authors propose a Causality-motivated Representation Learning algorithm centered on three primary innovations designed to "deconfound" the inference process.
1. Early-Forking Two-Branch Architecture
Unlike conventional models that share a backbone and only diverge at the output layer, this framework "forks" early. One branch is dedicated to extracting causal features ($X_c$) for activity classification, while the other extracts non-causal features ($X_d$) for domain classification. This early separation prevents the causal branch from being contaminated by subject-specific information.
2. Hilbert-Schmidt Information Criterion (HSIC)
To ensure the two branches learn distinct, independent representations, the authors utilize HSIC as a regularization term. HSIC provides a non-parametric measure to minimize the dependence between the causal and non-causal representations, effectively isolating the activity signal from domain noise.
3. Inhomogeneous Domain Sampling (IDS)
To further encourage the model to ignore domain-specific "styles," the authors developed IDS. This strategy probabilistically models the style (mean and variance) of sensor data and generates new, "inhomogeneous" samples. These samples maintain the activity label but significantly alter subject-specific signal characteristics, forcing the model to focus on invariant movement patterns.
Experimental Results and Evaluation
The framework was evaluated on four public HAR benchmarks: DSADS, USC-HAD, PAMAP2, and UCI-HAR. Testing scenarios included cross-person, cross-position, and cross-dataset evaluations.
The proposed method outperformed 11 state-of-the-art baselines:
- Accuracy: On the DSADS dataset (cross-person), the model achieved 93.9% accuracy, significantly higher than the next best baseline (88.2%).
- Robustness: In cross-position tasks (e.g., training on arm sensors and testing on leg sensors), the causal approach demonstrated superior resilience compared to standard Empirical Risk Minimization (ERM).
- Efficiency: The model was successfully deployed on a Raspberry Pi 5, maintaining an inference time of ~2.5ms. Because the non-causal branch is discarded after training, the model achieves causal deconfounding with zero added latency during real-world use.
Discussion and Future Work
The "early-forking" strategy proves that sharing too much of a backbone leads to entangled features. By diverging early, high-level causal and non-causal semantics develop independently. Furthermore, the IDS strategy effectively treats sensor data through a "style vs. content" lens, where the activity is the content and the subject's gait is a style to be ignored.
Despite these gains, challenges remain. Future work could address non-stationary data, where human behavior (like gait) changes over time due to fatigue. Additionally, open-set recognition—handling activities not seen during training—remains an open problem in cross-domain settings. Finally, the current training process depends on known domain labels, which may not always be available in "in-the-wild" scenarios.
Summary updated