MoPFormer: Motion-Primitive Transformer for Wearable-Sensor Activity Recognition

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Hao, Zhuang, Zhan, Wang, Xuehao, Yang, Xiaodong, Zhang, Yu
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909872405086208
author Zhang, Hao
Zhuang, Zhan
Wang, Xuehao
Yang, Xiaodong
Zhang, Yu
author_facet Zhang, Hao
Zhuang, Zhan
Wang, Xuehao
Yang, Xiaodong
Zhang, Yu
contents Human Activity Recognition (HAR) with wearable sensors is challenged by limited interpretability, which significantly impacts cross-dataset generalization. To address this challenge, we propose Motion-Primitive Transformer (MoPFormer), a novel self-supervised framework that enhances interpretability by tokenizing inertial measurement unit signals into semantically meaningful motion primitives and leverages a Transformer architecture to learn rich temporal representations. MoPFormer comprises two stages. The first stage is to partition multi-channel sensor streams into short segments and quantize them into discrete ``motion primitive'' codewords, while the second stage enriches those tokenized sequences through a context-aware embedding module and then processes them with a Transformer encoder. The proposed MoPFormer can be pre-trained using a masked motion-modeling objective that reconstructs missing primitives, enabling it to develop robust representations across diverse sensor configurations. Experiments on six HAR benchmarks demonstrate that MoPFormer not only outperforms state-of-the-art methods but also successfully generalizes across multiple datasets. More importantly, the learned motion primitives significantly enhance both interpretability and cross-dataset performance by capturing fundamental movement patterns that remain consistent across similar activities, regardless of dataset origin.
format Preprint
id arxiv_https___arxiv_org_abs_2505_20744
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MoPFormer: Motion-Primitive Transformer for Wearable-Sensor Activity Recognition
Zhang, Hao
Zhuang, Zhan
Wang, Xuehao
Yang, Xiaodong
Zhang, Yu
Computer Vision and Pattern Recognition
I.5.4; I.2.6; C.3
Human Activity Recognition (HAR) with wearable sensors is challenged by limited interpretability, which significantly impacts cross-dataset generalization. To address this challenge, we propose Motion-Primitive Transformer (MoPFormer), a novel self-supervised framework that enhances interpretability by tokenizing inertial measurement unit signals into semantically meaningful motion primitives and leverages a Transformer architecture to learn rich temporal representations. MoPFormer comprises two stages. The first stage is to partition multi-channel sensor streams into short segments and quantize them into discrete ``motion primitive'' codewords, while the second stage enriches those tokenized sequences through a context-aware embedding module and then processes them with a Transformer encoder. The proposed MoPFormer can be pre-trained using a masked motion-modeling objective that reconstructs missing primitives, enabling it to develop robust representations across diverse sensor configurations. Experiments on six HAR benchmarks demonstrate that MoPFormer not only outperforms state-of-the-art methods but also successfully generalizes across multiple datasets. More importantly, the learned motion primitives significantly enhance both interpretability and cross-dataset performance by capturing fundamental movement patterns that remain consistent across similar activities, regardless of dataset origin.
title MoPFormer: Motion-Primitive Transformer for Wearable-Sensor Activity Recognition
topic Computer Vision and Pattern Recognition
I.5.4; I.2.6; C.3
url https://arxiv.org/abs/2505.20744