Transformer-based Models to Deal with Heterogeneous Environments in Human Activity Recognition

Sannara EK, François Portet, Philippe Lalanda
9/22/2022
cs.CVcs.AIcs.LG
transformer-attention

Official code: getalp/Lightweight-Transformer-Models-For-HAR-on-Mobile-Devices (79 stars, Python, MIT, last commit 2024-12-10).

Abstract

Human Activity Recognition (HAR) on mobile devices has been demonstrated to be possible using neural models trained on data collected from the device's inertial measurement units. These models have used Convolutional Neural Networks (CNNs), Long Short-Term Memory (LSTMs), Transformers or a combination of these to achieve state-of-the-art results with real-time performance.

Show full abstract

However, these approaches have not been extensively evaluated in real-world situations where the input data may be different from the training data. This paper highlights the issue of data heterogeneity in machine learning applications and how it can hinder their deployment in pervasive settings. To address this problem, we propose and publicly release the code of two sensor-wise Transformer architectures called HART and MobileHART for Human Activity Recognition Transformer. Our experiments on several publicly available datasets show that these HART architectures outperform previous architectures with fewer floating point operations and parameters than conventional Transformers. The results also show they are more robust to changes in mobile position or device brand and hence better suited for the heterogeneous environments encountered in real-life settings. Finally, the source code has been made publicly available.

View on arXivView PDF

Code Implementations(1)

MIT

Human Activity Recognition Transformer (HART) is a transformer based architecture that has been specifically adapted for IMU sensing devices. Findings shows that HART uses fewer paremeters, FLOPs and achieves state-of-the-art results.

7912Python, Jupyter NotebookMay 16, 20221 years agoMIT

Similar Papers

Cite this paper

@article{ek2022transformerbased,
  title  = {Transformer-based Models to Deal with Heterogeneous Environments in Human Activity Recognition},
  author = {Sannara EK and François Portet and Philippe Lalanda},
  year   = {2022},
  eprint = {2209.11750},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11750}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.11750.svg)](https://codeofpaper.com/paper/2209.11750)

Discussion