UniMTS: Unified Pre-training for Motion Time Series

Xiyuan Zhang, Diyan Teng, Ranak Roy Chowdhury, Shuheng Li, Dezhi Hong, Rajesh K. Gupta, Jingbo Shang · DOI

Abstract

Human Activity Recognition (HAR) using Inertial Measurement Units (IMUs) faces significant generalization hurdles across varying body locations, device orientations, and activity types. We present UniMTS, a unified pre-training framework that addresses these challenges by leveraging physics-simulated data aligned with LLM-enriched textual descriptions. By training a spatio-temporal graph encoder on synthetic motion skeletons, UniMTS achieves a 340% improvement in zero-shot activity recognition over state-of-the-art models, demonstrating the power of cross-modal semantic alignment for sensor-based time series.

Introduction: The Generalization Gap in HAR

Traditional HAR models are often confined to "closed-set" scenarios, where they perform well only on the specific activities, sensor locations, and device orientations encountered during training. In real-world deployments, a model trained on wrist-worn data often fails when the sensor is moved to a pocket or ankle. Similarly, arbitrary device orientations can lead to catastrophic performance drops.

The three primary generalization challenges in Human Activity Recognition: device location, mounting orientation, and activity diversity.

Furthermore, the scarcity of large-scale, labeled real-world motion data—compounded by privacy concerns—limits the development of robust foundation models for motion sensors. Collecting such data is difficult because raw sensor signals are not intuitively interpretable for human labelers.

Methodology: Unified Pre-training via Physics and Language

UniMTS overcomes data scarcity by shifting the training paradigm from small, real-world datasets to massive, simulated ones. The framework consists of three core components:

  1. Physics-Based Simulation: Using the HumanML3D dataset, which contains over 14,000 3D motion skeletons, the researchers employed a physics engine to derive synthetic acceleration and angular velocity for all body joints. This provides "all-joint" coverage that real datasets lack.
  2. Spatio-Temporal Graph Encoder: To model the physical relationships between joints, UniMTS uses a Graph Convolutional Network (GCN). This architecture allows the model to generalize across locations by understanding how movements at one joint (e.g., the wrist) relate to the rest of the body.
  3. Cross-Modal Contrastive Learning: Inspired by vision-language models like CLIP, UniMTS aligns motion features with textual descriptions. GPT-3.5 was used to augment activity labels into diverse natural language descriptions, enabling the model to learn the underlying semantics of movement.
The UniMTS pre-training pipeline, featuring physics-based simulation, a graph encoder for motion features, and contrastive learning with LLM-augmented text descriptions.

To handle orientation variance, random rotation matrices are applied to the simulated data during training, ensuring the learned features are rotation-invariant and robust to how a user might carry their device.

Evaluation and Key Results

UniMTS was evaluated against a benchmark of 18 real-world datasets (e.g., PAMAP2, WISDM) covering diverse body locations and activities. The results demonstrate a new state-of-the-art across multiple settings:

  • Zero-Shot Recognition: UniMTS outperformed existing baselines like IMU2CLIP by 340%, proving its ability to recognize unseen activities through semantic alignment.
  • Few-Shot and Full-Shot Performance: The model showed a 16.3% improvement in few-shot scenarios and a 9.2% boost in full-shot settings, indicating that its pre-trained features are highly transferable even when real data is available.
  • Efficiency: Despite its performance, the graph encoder is lightweight (4.94M parameters) and power-efficient (22.64 mW), making it ideal for "always-on" deployment on mobile edge chips (eNPU).

Conclusion

UniMTS demonstrates that physics-based simulation combined with semantic language alignment can bridge the gap between synthetic and real-world motion data. By addressing the "triple threat" of generalization, it paves the way for universal foundation models in the domain of wearable sensors. Future work will focus on incorporating joint offsets for more realistic simulation and extending the framework to tasks like inertial navigation.

Summary updated

BibTeX
@inproceedings{zhang2024unimts,
  author = {Xiyuan Zhang and Diyan Teng and Ranak Roy Chowdhury and Shuheng Li and Dezhi Hong and Rajesh K. Gupta and Jingbo Shang},
  title = {{UniMTS: Unified Pre-training for Motion Time Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=DpByqSbdhI},
}
Figure