Human behavior recognition based on sparse transformer with channel attention mechanism

Front Physiol. 2023 Nov 2:14:1239453. doi: 10.3389/fphys.2023.1239453. eCollection 2023.

Abstract

Human activity recognition (HAR) has recently become a popular research field in the wearable sensor technology scene. By analyzing the human behavior data, some disease risks or potential health issues can be detected, and patients' rehabilitation progress can be evaluated. With the excellent performance of Transformer in natural language processing and visual tasks, researchers have begun to focus on its application in time series. The Transformer model models long-term dependencies between sequences through self-attention mechanisms, capturing contextual information over extended periods. In this paper, we propose a hybrid model based on the channel attention mechanism and Transformer model to improve the feature representation ability of sensor-based HAR tasks. Extensive experiments were conducted on three public HAR datasets, and the results show that our network achieved accuracies of 98.10%, 97.21%, and 98.82% on the HARTH, PAMAP2, and UCI-HAR datasets, respectively, The overall performance is at the level of the most advanced methods.

Keywords: attention; human activity recognition; sparse transformer; time series; wearable biosensors.

Grants and funding

This work was supported in part by the National Natural Science Foundation of China (Grant No. 62133014).