SETransformer: A Hybrid Attention-Based Architecture for Robust Human Activity Recognition

Yunbo Liu, Xukui Qin, Yifan Gao, Xiang Li, Chengwei Feng
5/25/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Human Activity Recognition (HAR) using wearable sensor data has become a central task in mobile computing, healthcare, and human-computer interaction. Despite the success of traditional deep learning models such as CNNs and RNNs, they often struggle to capture long-range temporal dependencies and contextual relevance across multiple sensor channels. To address these limitations, we propose SETransformer, a hybrid deep neural architecture that combines Transformer-based temporal modeling with channel-wise squeeze-and-excitation (SE) attention and a learnable temporal attention pooling mechanism. The model takes raw triaxial accelerometer data as input and leverages global self-attention to capture activity-specific motion dynamics over extended time windows, while adaptively emphasizing informative sensor channels and critical time steps. We evaluate SETransformer on the WISDM dataset and demonstrate that it significantly outperforms conventional models including LSTM, GRU, BiLSTM, and CNN baselines. The proposed model achieves a validation accuracy of 84.68\% and a macro F1-score of 84.64\%, surpassing all baseline architectures by a notable margin. Our results show that SETransformer is a competitive and interpretable solution for real-world HAR tasks, with strong potential for deployment in mobile and ubiquitous sensing applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025setransformer,
  title  = {SETransformer: A Hybrid Attention-Based Architecture for Robust Human Activity Recognition},
  author = {Yunbo Liu and Xukui Qin and Yifan Gao and Xiang Li and Chengwei Feng},
  year   = {2025},
  eprint = {2505.19369},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19369v1}
}

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/2505.19369.svg)](https://codeofpaper.com/paper/2505.19369)

Discussion