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 条
  • [21] Design and Implementation of a Convolutional Neural Network on an Edge Computing Smartphone for Human Activity Recognition
    Zebin, Tahmina
    Scully, Patricia J.
    Peek, Niels
    Casson, Alexander J.
    Ozanyan, Krikor B.
    IEEE ACCESS, 2019, 7 : 133509 - 133520
  • [22] Human Activity Recognition Based on Gramian Angular Field and Deep Convolutional Neural Network
    Xu, Hongji
    Li, Juan
    Yuan, Hui
    Liu, Qiang
    Fan, Shidi
    Li, Tiankuo
    Sun, Xiaojie
    IEEE ACCESS, 2020, 8 (08): : 199393 - 199405
  • [23] A robust convolutional neural network for online smartphone-based human activity recognition
    Almaslukh, Bandar
    Al Muhtadi, Jalal
    Artoli, Abdel Monim
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2018, 35 (02) : 1609 - 1620
  • [24] Human Activity Recognition Using Convolutional Neural Networks
    Dogan, Gulustan
    Ertas, Sinem Sena
    Cay, Iremnaz
    2021 IEEE CONFERENCE ON COMPUTATIONAL INTELLIGENCE IN BIOINFORMATICS AND COMPUTATIONAL BIOLOGY (CIBCB), 2021, : 76 - 80
  • [25] Implementation of Parallel Evolutionary Convolutional Neural Network for Classification in Human Activity and Image Recognition
    Villegas-Cortez, Juan
    Roman-Alonso, Graciela
    Fernandez De Vega, Francisco
    Flores-Morales, Yafte Aaron
    Cordero-Sanchez, Salomon
    ADVANCES IN COMPUTATIONAL INTELLIGENCE, MICAI 2023, PT I, 2024, 14391 : 327 - 345
  • [26] Activity Graph Based Convolutional Neural Network for Human Activity Recognition Using Acceleration and Gyroscope Data
    Yang, Po
    Yang, Congmin
    Lanfranchi, Vitaveska
    Ciravegna, Fabio
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2022, 18 (10) : 6619 - 6630
  • [27] Iris Recognition Using Convolutional Neural Network
    Zhuang, Yuan
    Chuah, Joon Huang
    Chow, Chee Onn
    Lim, Marcus Guozong
    2020 IEEE 10TH INTERNATIONAL CONFERENCE ON SYSTEM ENGINEERING AND TECHNOLOGY (ICSET), 2020, : 134 - 138
  • [28] Human ear recognition based on deep convolutional neural network
    Tian Ying
    Wang Shining
    Li Wanxiang
    PROCEEDINGS OF THE 30TH CHINESE CONTROL AND DECISION CONFERENCE (2018 CCDC), 2018, : 1830 - 1835
  • [29] Shallow Convolutional Neural Networks for Human Activity Recognition Using Wearable Sensors
    Huang, Wenbo
    Zhang, Lei
    Gao, Wenbin
    Min, Fuhong
    He, Jun
    IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 2021, 70
  • [30] Human Activity Recognition Using Cell Phone-Based Accelerometer and Convolutional Neural Network
    Prasad, Ashwani
    Tyagi, Amit Kumar
    Althobaiti, Maha M.
    Almulihi, Ahmed
    Mansour, Romany F.
    Mahmoud, Ayman M.
    APPLIED SCIENCES-BASEL, 2021, 11 (24):