Invariant Feature Learning for Sensor-Based Human Activity Recognition

Yujiao Hao, Rong Zheng, Boyu WangIEEE Trans. Mobile Computing 2020

Wearable technology aims for a "plug-and-play" experience, yet achieving consistent performance across diverse users remains a significant challenge. This research addresses the fundamental hurdle where individual movement patterns and varying sensor specifications create a "domain shift" that degrades model accuracy.

The Challenge of Domain Shift

Deep learning has significantly advanced Human Activity Recognition (HAR), but models often remain brittle when faced with new environments. A model trained on a specific demographic using high-end research sensors frequently fails when deployed on a different population using consumer-grade devices. This variability in human physiology (gait, height, speed) and hardware (sampling rates, sensitivity) traditionally requires massive amounts of new labeled data—a process that is expensive and intrusive.

The Invariant Feature Learning Framework (IFLF)

To solve this, the authors propose the Invariant Feature Learning Framework (IFLF). This system is designed to extract "invariant features"—the core characteristics of an activity, such as the rhythmic swing of walking, that remain constant regardless of the user or device.

Technical Architecture

The framework utilizes several key components to achieve generalization:

  • Feature Extractor ($L_\theta$): A hybrid architecture that employs 1D Convolutional Neural Networks (CNNs) to capture local spatial patterns and Long Short-Term Memory (LSTM) units to model temporal dependencies in sensor data.
  • Triplet Multi-Task Learning (TMTL): Instead of simple classification, the model uses a triplet loss function. This pulls features of the same activity closer together in a mathematical space while pushing different activities apart, effectively neutralizing domain-specific noise.
  • Alternating Training: To prevent "catastrophic forgetting," the framework alternates updates between task-specific layers and the shared feature extractor.
The IFLF architecture featuring a hybrid CNN-LSTM feature extractor.

Experimental Evaluation

The framework was validated across four diverse datasets, including PAMAP2, USCHAD, WISDM, and a specialized in-house dataset (MobilityAI) featuring 25 older patients wearing four different sensor brands simultaneously (MetaMotionR, Fitbit, Mox One, and Actigraph).

Key Insights

  • Clustering Performance: t-SNE visualizations reveal that while standard models produce tangled features for new users, the TMTL approach creates clearly defined, separated clusters, facilitating rapid adaptation.
  • Activity Consistency: The research identified that certain activities, like "sitting" and "lying," are highly consistent across populations. Leveraging this consistency allows for a 12-20% reduction in required labeled data for new users.
  • Sparsity and Regularization: By applying $\ell_1$-norm regularization, the model learns to prioritize only the most relevant features for a specific individual, significantly reducing overfitting.

Results and Impact

The IFLF demonstrates remarkable efficiency in "few-shot" scenarios. The TMTL model achieved over 90% accuracy with as little as 10 seconds of labeled data per activity class from a target domain. In cross-device experiments—training on one brand and testing on another—the framework outperformed baseline models by up to 40%.

t-SNE visualizations and confusion matrices demonstrating feature separation and classification accuracy.

Future Directions

While IFLF successfully manages subject and device variability, sensor placement (e.g., moving a device from the waist to the wrist) remains a challenging frontier. Future work aims to achieve Domain Generalization (DG), creating models so robust they require zero data from a new user to function accurately from the moment of deployment.

Summary updated

BibTeX
@article{hao2020invariant,
  author = {Yujiao Hao and Rong Zheng and Boyu Wang},
  title = {{Invariant Feature Learning for Sensor-Based Human Activity Recognition}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2020},
  doi = {10.1109/tmc.2021.3064252},
}
Figure