HAR-AttenNet: Multi-Head Transformer for Precise Human Activity Recognition Using Wearable Devices
DOI:
https://doi.org/10.21015/vtcs.v13i2.2179Abstract
Human Activity Recognition has become inevitable in wearable technology in healthcare and fitness tracking applications. Precise recognition of daily routine human activities using wearable sensors remains a challenging task due to sensor modality, placement, and environmental factors. Indeed, Machine Learning and Deep Learning models have become robust in human activity recognition, yet these face numerous challenges in precisely recognizing the daily human activities. One major challenge is the variability in sensors readings where the same activity may lead to different sensor readings, intra-class variability, as different people perform the same activity differently or use different devices. To address this, we propose a multi-head transformer model with a multi-head attention mechanism that explicitly handles the intra-class variability. We demonstrate that the multi-head Transformer model exhibits enhanced robustness and performs better even in the face of such variability, although variability is a major problem in the popular PAMAP2 dataset, since it directly impacts the performance of deep learning models.
References
H. Khaled, O. Abu-Elnasr, S. Elmougy, and A. S. Tolba, “Intelligent system for human activity recognition in IoT environment,” Complex Intell. Syst., vol. 9, no. 4, pp. 3535–3546, 2021.
A. Waddell, S. Birkett, D. Broom, G. McGregor, and A. E. Harwood, “Validating the Fitbit Charge 4© wearable activity monitor for use in physical activity interventions,” J. Sci. Med. Sport, vol. 27, no. 5, pp. 314–318, 2024.
H. Sarmadi, A. Entezami, K.-V. Yuen, and B. Behkamal, “Review on smartphone sensing technology for structural health monitoring,” Measurement, vol. 223, p. 113716, 2023.
A. S. Jat and T.-M. Grønli, “Smart watch for smart health monitoring: A literature review,” in Bioinformatics and Biomedical Engineering, Cham, Switzerland: Springer Int. Publishing, 2022, pp. 256–268.
M. S. Hossain, G. Muhammad, and N. Guizani, “Explainable AI and mass surveillance system-based healthcare framework to combat COVID-19 like pandemics,” IEEE Netw., vol. 34, no. 4, pp. 126–132, 2020.
D. E. Nisar et al., “Healthcare techniques through deep learning: Issues, challenges and opportunities,” IEEE Access, vol. 9, pp. 98523–98541, 2021.
T. Huynh-The, C. H. Hua, N. A. Tu, and D. S. Kim, “Physical activity recognition with statistical-deep fusion model using multiple sensory data for smart health,” IEEE Internet Things J., vol. 8, pp. 1533–1543, Feb. 2021.
L. M. Dang et al., “Sensor-based and vision-based human activity recognition: A comprehensive survey,” Pattern Recognit., vol. 108, p. 107561, 2020.
J. Liu et al., “Wireless sensing for human activity: A survey,” IEEE Commun. Surveys Tuts., vol. 22, no. 3, pp. 1629–1645, 2020.
X. Xiao et al., “Advances in machine learning for wearable sensors,” ACS Nano, vol. 18, no. 34, pp. 22734–22751, 2024.
M. A. Al-Qaness et al., “Multi-ResAtt: Multilevel residual network with attention for human activity recognition using wearable sensors,” IEEE Trans. Ind. Informat., vol. 19, no. 1, pp. 144–152, 2023.
P. Kumar and S. Suresh, “Deep-HAR: An ensemble deep learning model for recognizing the simple, complex, and heterogeneous human activities,” Multimedia Tools Appl., Feb. 2023.
O. Alshorman, B. Alshorman, and M. S. Masadeh, “A review of physical human activity recognition chain using sensors,” Indones. J. Electr. Eng. Inform., vol. 8, no. 3, pp. 560–573, 2020.
M. M. P. N. A. Ferrari and D. Micucci, “Trends in human activity recognition using smartphones,” J. Reliable Intell. Environ., vol. 1, pp. 189–213, Jul. 2021.
P. Lalwani and G. Ramasamy, “A novel CNN-BiLSTM-GRU hybrid deep learning model for human activity recognition,” Int. J. Comput. Intell. Syst., vol. 17, 2024.
G. Brauwers and F. Frasincar, “A general survey on attention mechanisms in deep learning,” IEEE Trans. Knowl. Data Eng., vol. 35, no. 4, pp. 3279–3298, 2023.
M. Kreil, B. Sick, and P. Lukowicz, “Dealing with human variability in motion based, wearable activity recognition,” in Proc. IEEE Int. Conf. Pervasive Comput. Commun. Workshops (PERCOM WORKSHOPS), 2014, pp. 36–40.
K. Akila and S. Chitrakala, “Highly refined human action recognition model to handle intraclass variability interclass similarity,” Multimedia Tools Appl., vol. 78, no. 15, pp. 20877–20894, 2019.
D. Roggen et al., “Title of the paper or dataset,” 2024.
Web Source, “UniMiB,” 2024.
A. Reiss, “PAMAP2 Physical Activity Monitoring,” UCI Mach. Learn. Repository, 2012.
T. Lv et al., “Margin-based deep learning networks for human activity recognition,” Sensors, vol. 20, no. 7, 2020.
H. Mliki, F. Bouhlel, and M. Hammami, “Human activity recognition from UAV-captured video sequences,” Pattern Recognit., vol. 100, p. 107140, 2020.
Z. Malki et al., “Bidirectional residual LSTM-based human activity recognition,” Comput. Inf. Sci., vol. 13, no. 3, p. 40, 2020.
B. Wu et al., “Device-free human activity recognition with identity-based transfer mechanism,” in Proc. IEEE WCNC, vol. 2021-Mar., pp. 21–26, 2021.
A. A. Alani, G. Cosma, and A. Taherkhani, “Classifying imbalanced multi-modal sensor data for human activity recognition in a smart home using deep learning,” in Proc. Int. Joint Conf. Neural Netw., 2020, pp. 2–9.
F. Alharbi, L. Ouarbya, and J. A. Ward, “Comparing sampling strategies for tackling imbalanced data in human activity recognition,” Sensors, vol. 22, no. 4, pp. 1–20, 2022.
Z. Baloch, F. K. Shaikh, and M. A. Unar, “CNN-LSTM-based late sensor fusion for human activity recognition in big data networks,” Wireless Commun. Mobile Comput., vol. 2022, p. 16, 2022.
S. Mekruksavanich, D. Tancharoen, and A. Jitpattanakul, “A hybrid deep neural network with attention mechanism for human activity recognition based on smartphone sensors,” in Proc. 7th Int. Conf. Inf. Technol. (InCIT), 2023, pp. 153–157.
S. Chung et al., “Sensor data acquisition and multimodal sensor fusion for human activity recognition using deep learning,” Sensors, vol. 19, no. 7, 2019.
Z. S. Baloch, F. K. Unar, and M. Ali, “Smartphone-based human activity recognition with feature selection and dense neural network,” in Proc. IEEE EMBC, Montreal, QC, Canada, 2020, pp. 5888–5891.
M. M. Islam and T. Iqbal, “HAMLET: A hierarchical multimodal attention-based human activity recognition algorithm,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst., 2020, pp. 10285–10292.
M. Mallik, G. Sarkar, and C. Chowdhury, “A deep learning framework for smartphone-based human activity recognition,” Mobile Netw. Appl., 2023.
R. A. Hamad, M. Kimura, and J. Lundström, “Efficacy of imbalanced data handling methods on deep learning for smart homes environments,” SN Comput. Sci., vol. 1, no. 4, pp. 1–10, 2020.
M. Ahmed, A. D. Antar, and M. A. R. Ahad, “An approach to classify human activities in real-time from smartphone sensor data,” in Proc. Joint 8th Int. Conf. Informatics, Electron. Vision (ICIEV), 3rd Int. Conf. Imaging, Vision Pattern Recognit. (icIVPR), Int. Conf. Activity Behav. Comput. (ABC), 2019, pp. 140–145.
O. Saidani et al., “An efficient human activity recognition using hybrid features and transformer model,” IEEE Access, vol. 11, pp. 101373–101386, Aug. 2023.
K. Xia, J. Huang, and H. Wang, “LSTM-CNN architecture for human activity recognition,” IEEE Access, vol. 8, pp. 56855–56866, 2020.
S. Lohit, Q. Wang, and P. Turaga, “Temporal transformer networks: Joint learning of invariant and discriminative time warping,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2019, pp. 12418–12427.
N. Varshney, B. Bakariya, and A. K. S. Kushwaha, “Human activity recognition using deep transfer learning of cross position sensor based on vertical distribution of data,” Multimedia Tools Appl., vol. 81, no. 16, pp. 22307–22322, 2022.
H. Zhang, S. Wenzhong, and S. Lu, “AttnSense: Multi-level attention mechanism for multimodal human activity recognition,” in Proc. IJCAI Int. Joint Conf. Artif. Intell., vol. 2019-Aug., pp. 3109–3115, 2019.
D. Liljequist, B. Elfving, and K. S. Roaldsen, “Intraclass correlation – a discussion and demonstration of basic features,” PLoS ONE, vol. 14, pp. 1–35, Jul. 2019.
Wikipedia contributors, “Interclass correlation — Wikipedia, The Free Encyclopedia,” 2024.
E. Essa and I. R. Abdelmaksoud, “Temporal-channel convolution with self-attention network for human activity recognition using wearable sensors,” Knowl.-Based Syst., vol. 278, p. 110867, 2023.
Y. Kaya and E. K. Topuz, “Human activity recognition from multiple sensors data using deep CNNs,” Multimedia Tools Appl., vol. 83, no. 4, pp. 10815–10838, 2024.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC-By) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
This work is licensed under a Creative Commons Attribution License CC BY