English

Transformer-Based Approaches for Sensor-Based Human Activity Recognition: Opportunities and Challenges

Machine Learning 2024-10-18 v1

Abstract

Transformers have excelled in natural language processing and computer vision, paving their way to sensor-based Human Activity Recognition (HAR). Previous studies show that transformers outperform their counterparts exclusively when they harness abundant data or employ compute-intensive optimization algorithms. However, neither of these scenarios is viable in sensor-based HAR due to the scarcity of data in this field and the frequent need to perform training and inference on resource-constrained devices. Our extensive investigation into various implementations of transformer-based versus non-transformer-based HAR using wearable sensors, encompassing more than 500 experiments, corroborates these concerns. We observe that transformer-based solutions pose higher computational demands, consistently yield inferior performance, and experience significant performance degradation when quantized to accommodate resource-constrained devices. Additionally, transformers demonstrate lower robustness to adversarial attacks, posing a potential threat to user trust in HAR.

Keywords

Cite

@article{arxiv.2410.13605,
  title  = {Transformer-Based Approaches for Sensor-Based Human Activity Recognition: Opportunities and Challenges},
  author = {Clayton Souza Leite and Henry Mauranen and Aziza Zhanabatyrova and Yu Xiao},
  journal= {arXiv preprint arXiv:2410.13605},
  year   = {2024}
}
R2 v1 2026-06-28T19:25:57.147Z