Introduction
Human Activity Recognition (HAR) is a foundational technology for wearable computing, enabling applications in health monitoring, sports science, and human-computer interaction. Despite significant progress, a persistent challenge remains: cross-person generalization. Because individuals possess unique physiological characteristics and habits, sensor data for the same activity (e.g., walking) varies significantly between users. This "domain gap" often causes models trained on one group of participants to perform poorly when deployed on new, unseen individuals.
To address this, we present DI2SDiff (Diversified Intra- and Inter-domain Style-fused Diffusion), a framework that utilizes conditional diffusion models to perform "Domain Padding." By synthesizing diverse activity data that blends individual movement styles, DI2SDiff fills the gaps in the data distribution, allowing models to generalize more effectively across diverse populations.
The Problem: Intra- and Inter-Domain Gaps
Deep learning models for HAR typically struggle with two types of distribution shifts:
- Intra-domain gaps: Variations within a single person's performance of an activity.
- Inter-domain gaps: Variations between different people due to age, fitness, or gait.
Traditional data augmentation techniques, such as rotation or scaling, primarily address intra-domain variety but fail to bridge the gap between different individuals. When a model encounters a new user whose style falls between or outside the patterns seen in the training set, accuracy drops. DI2SDiff addresses this by treating the space between subjects not as empty, but as unobserved, and uses generative modeling to "pad" these regions with synthetic yet realistic samples.
Methodology
1. Activity Style Extraction
The first stage of the DI2SDiff pipeline involves separating the content of an activity (e.g., "running") from its style (the unique signature of the individual). Using a contrastive learning pipeline based on Time-Series Temporal and Contextual Contrasting (TS-TCC), the framework extracts a style vector for every training sample. This vector captures the idiosyncratic nuances of the movement.
2. Conditional Diffusion Modeling
Diffusion models, which have revolutionized image generation, are adapted here for time-series sensor data. The model is trained to reverse a Gaussian noise process, conditioned on the extracted style vectors. This allows the model to generate high-fidelity sensor data that matches specific individual styles.
3. Style-Fused Sampling
The core innovation of DI2SDiff is the Style-Fused Sampling mechanism. During data generation, the model does not simply replicate existing styles. Instead, it randomly combines multiple style vectors (e.g., fusing the gait characteristics of Subject A and Subject B) to guide the diffusion process. By utilizing the power set of available styles, the framework can generate an exponential number of style combinations ($2^k - 1$, where $k$ is the number of subjects). This creates a continuous spectrum of synthetic "people," effectively padding the domain space until the gaps between real subjects disappear.
4. Diversity Learning Strategy
Finally, the framework employs a diversity learning strategy to train the activity classifier. The classifier is taught to maintain high accuracy on activity labels while learning to distinguish between original and synthetic data, ensuring that the generated diversity translates into robust feature representation.
Experimental Results
The framework was evaluated on three major HAR benchmarks: DSADS (19 activities, 8 subjects), PAMAP2 (8 activities, 9 subjects), and USC-HAD (12 activities, 14 subjects). The experiments focused on "leave-one-out" cross-person validation.
- State-of-the-Art Performance: DI2SDiff consistently outperformed existing baselines, including DANN, Mixup, and DDLearn.
- USC-HAD Breakthrough: On the USC-HAD dataset—which is particularly challenging due to fragmented sub-domains—DI2SDiff achieved a 6.64% accuracy improvement over the previous state-of-the-art.
- Data Efficiency: The model demonstrated remarkable efficiency. When trained on only 20% of the available training data, DI2SDiff achieved results comparable to or better than competing models using 100% of the data.
- Universal Compatibility: Synthetic data generated by DI2SDiff was shown to be a "plug-and-play" booster. Adding this data to other existing models (like mDSDI) consistently improved their performance, confirming the high quality and relevance of the fused samples.
Discussion and Limitations
While DI2SDiff offers a powerful solution for domain generalization, it is more computationally intensive than simple augmentation due to the iterative nature of diffusion models. However, this is primarily a one-time cost during the training phase. Additionally, the current mathematical framework assumes style independence; future work may explore more complex correlations between movement styles and apply "domain padding" to other time-series domains, such as medical signal analysis or financial forecasting.
Conclusion
DI2SDiff represents a shift in how we approach cross-person generalization in HAR. Rather than searching for style-invariant features, the framework embraces style diversity. By fusing individual movement patterns to create a dense, "padded" domain space, DI2SDiff enables AI models to recognize human activities with unprecedented reliability across diverse populations.
Summary updated