Deep CNN-LSTM With Self-Attention Model for Human Activity Recognition Using Wearable Sensor

IEEE J Transl Eng Health Med. 2022 May 25:10:2700316. doi: 10.1109/JTEHM.2022.3177710. eCollection 2022.

Abstract

Human Activity Recognition (HAR) systems are devised for continuously observing human behavior - primarily in the fields of environmental compatibility, sports injury detection, senior care, rehabilitation, entertainment, and the surveillance in intelligent home settings. Inertial sensors, e.g., accelerometers, linear acceleration, and gyroscopes are frequently employed for this purpose, which are now compacted into smart devices, e.g., smartphones. Since the use of smartphones is so widespread now-a-days, activity data acquisition for the HAR systems is a pressing need. In this article, we have conducted the smartphone sensor-based raw data collection, namely H-Activity, using an Android-OS-based application for accelerometer, gyroscope, and linear acceleration. Furthermore, a hybrid deep learning model is proposed, coupling convolutional neural network and long-short term memory network (CNN-LSTM), empowered by the self-attention algorithm to enhance the predictive capabilities of the system. In addition to our collected dataset (H-Activity), the model has been evaluated with some benchmark datasets, e.g., MHEALTH, and UCI-HAR to demonstrate the comparative performance of our model. When compared to other models, the proposed model has an accuracy of 99.93% using our collected H-Activity data, and 98.76% and 93.11% using data from MHEALTH and UCI-HAR databases respectively, indicating its efficacy in recognizing human activity recognition. We hope that our developed model could be applicable in the clinical settings and collected data could be useful for further research.

Keywords: LSTM; Sensors; accelerometers; attention; gyroscopes; smartphones.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Attention
  • Human Activities
  • Humans
  • Neural Networks, Computer*
  • Wearable Electronic Devices*

Grants and funding

This work was supported by the Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University through Research Group under Grant RG-21-09-20.