Convolutional Neural Network With Multihead Attention for Human Activity Recognition

被引:3
|
作者
Tan, Tan-Hsu [1 ]
Chang, Yang-Lang [1 ]
Wu, Jun-Rong [1 ]
Chen, Yung-Fu [2 ,3 ]
Alkhaleefah, Mohammad [1 ]
机构
[1] Natl Taipei Univ Technol, Dept Elect Engn, Taipei 10608, Taiwan
[2] Cent Taiwan Univ Sci & Technol, Dept Dent Technol & Mat Sci, Taichung 40601, Taiwan
[3] China Med Univ, Dept Hlth Serv Adm, Taichung 404, Taiwan
来源
IEEE INTERNET OF THINGS JOURNAL | 2024年 / 11卷 / 02期
关键词
Convolutional neural network (CNN); deep learning; human activity recognition (HAR); Internet of Things (IoT); multihead attention (MHA) mechanism;
D O I
10.1109/JIOT.2023.3294421
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Convolutional neural networks (CNNs) have shown great promise in human activity recognition (HAR), but long-term dependencies in time series data can be difficult to capture using standard CNNs. This study introduces a new CNN architecture that incorporates a multihead attention mechanism (CNN-MHA) to address this challenge. This mechanism is composed of several attention heads, each independently calculating attention weights for distinct segments of the input. The attention head outputs are then concatenated and processed through a fully connected layer to produce the final attention representation. A multihead attention (MHA) mechanism allows the network to focus on relevant features and maintain long-term dependencies in the input data. The proposed model is evaluated on the physical activity monitoring for aging people data set (PAMAP2) from the UCI machine learning repository, which is preprocessed by cleaning, normalization, segmentation, and reshaping before splitting into training, validation, and testing sets. The experimental results demonstrate that the CNN-MHA model outperforms existing models, achieving F1-score of 95.7%. Particularly, the MHA mechanism significantly improves the model's ability to recognize complex activity patterns. Furthermore, our model attained an average inference latency of 0.304 s, which can be crucial in real-time applications. The findings clearly demonstrate the substantial promise of the proposed CNN-MHA architecture for optimizing HAR tasks, offering a powerful tool for advancing the state-of-the-art in this domain.
引用
收藏
页码:3032 / 3043
页数:12
相关论文
共 50 条
  • [1] A Novel IoT-Perceptive Human Activity Recognition (HAR) Approach Using Multihead Convolutional Attention
    Zhang, Haoxi
    Xiao, Zhiwen
    Wang, Juan
    Li, Fei
    Szczerbicki, Edward
    IEEE INTERNET OF THINGS JOURNAL, 2020, 7 (02): : 1072 - 1080
  • [2] Multihead-Res-SE Residual Network with Attention for Human Activity Recognition
    Kang, Hongbo
    Lv, Tailong
    Yang, Chunjie
    Wang, Wenqing
    ELECTRONICS, 2024, 13 (17)
  • [3] Sensors-based Human Activity Recognition with Convolutional Neural Network and Attention Mechanism
    Zhang, Wenbo
    Zhu, Tao
    Yang, Congmin
    Xiao, Jiyi
    Ning, Huansheng
    PROCEEDINGS OF 2020 IEEE 11TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND SERVICE SCIENCE (ICSESS 2020), 2020, : 158 - 162
  • [4] Attention-Based Convolutional Neural Network and Bidirectional Gated Recurrent Unit for Human Activity Recognition
    Tao, Shuai
    Zhao, Zhiqiang
    Qin, Jing
    Ji, Changqing
    Wang, Zumin
    2020 5TH INTERNATIONAL CONFERENCE ON MECHANICAL, CONTROL AND COMPUTER ENGINEERING (ICMCCE 2020), 2020, : 1128 - 1134
  • [5] HActivityNet: A Deep Convolutional Neural Network for Human Activity Recognition
    Khaliluzzaman, Md
    Sayem, Md Abu Bakar Siddiq
    Misbah, Lutful Kader
    EMITTER-INTERNATIONAL JOURNAL OF ENGINEERING TECHNOLOGY, 2021, 9 (02) : 357 - 376
  • [6] Method on Human Activity Recognition Based on Convolutional Neural Network
    Haibin, Zhang
    Kubota, Naoyuki
    INTELLIGENT ROBOTICS AND APPLICATIONS, ICIRA 2019, PT III, 2019, 11742 : 63 - 71
  • [7] Human Activity Recognition Technology Based on Sliding Window and Convolutional Neural Network
    He Jiang
    Guo Zelong
    Liu Leyuan
    Su Yuhan
    JOURNAL OF ELECTRONICS & INFORMATION TECHNOLOGY, 2022, 44 (01) : 168 - 177
  • [8] MLCNNwav: Multilevel Convolutional Neural Network With Wavelet Transformations for Sensor-Based Human Activity Recognition
    Dahou, Abdelghani
    Al-Qaness, Mohammed A. A.
    Elaziz, Mohamed Abd
    Helmi, Ahmed M.
    IEEE INTERNET OF THINGS JOURNAL, 2024, 11 (01) : 820 - 828
  • [9] Temporal-Spatial Dynamic Convolutional Neural Network for Human Activity Recognition Using Wearable Sensors
    Li, Ying
    Wu, Junsheng
    Li, Weigang
    Fang, Aiqing
    Dong, Wei
    IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 2023, 72
  • [10] A Semisupervised Recurrent Convolutional Attention Model for Human Activity Recognition
    Chen, Kaixuan
    Yao, Lina
    Zhang, Dalin
    Wang, Xianzhi
    Chang, Xiaojun
    Nie, Feiping
    IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2020, 31 (05) : 1747 - 1756