| Literature DB >> 33036479 |
Saedeh Abbaspour1,2, Faranak Fotouhi2, Ali Sedaghatbaf3, Hossein Fotouhi1, Maryam Vahabi1,4, Maria Linden1.
Abstract
Recent advances in artificial intelligence and machine learning (ML) led to effective methods and tools for analyzing the human behavior. Human Activity Recognition (HAR) is one of the fields that has seen an explosive research interest among the ML community due to its wide range of applications. HAR is one of the most helpful technology tools to support the elderly's daily life and to help people suffering from cognitive disorders, Parkinson's disease, dementia, etc. It is also very useful in areas such as transportation, robotics and sports. Deep learning (DL) is a branch of ML based on complex Artificial Neural Networks (ANNs) that has demonstrated a high level of accuracy and performance in HAR. Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) are two types of DL models widely used in the recent years to address the HAR problem. The purpose of this paper is to investigate the effectiveness of their integration in recognizing daily activities, e.g., walking. We analyze four hybrid models that integrate CNNs with four powerful RNNs, i.e., LSTMs, BiLSTMs, GRUs and BiGRUs. The outcomes of our experiments on the PAMAP2 dataset indicate that our proposed hybrid models achieve an outstanding level of performance with respect to several indicative measures, e.g., F-score, accuracy, sensitivity, and specificity.Entities:
Keywords: convolutional neural nets; deep learning; gated recurrent unit; human activity recognition; long short-term memory
Mesh:
Year: 2020 PMID: 33036479 PMCID: PMC7582332 DOI: 10.3390/s20195707
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Summary of findings in the related work
| Ref. | Feature Extraction | ML Model(s) | Sensor Type |
|---|---|---|---|
| [ | Manual | DTs | Smartphone |
| [ | Manual | DTs | Wearable |
| [ | Manual | KNNs, HMMs, SVMs, RFs | Wearable |
| [ | Manual | KNNs, DTs, NB, LR | Smartphone |
| [ | Manual | SVMs | Smartphone |
| [ | Manual | AHNs | Wearable |
| [ | Manual | SVMs, KNNs | Ambient |
| [ | Manual | RFs | wearable |
| [ | Automated | CNNs | Smartphone |
| [ | Automated | CNNs | Wearable |
| [ | Automated | VRNNs, GRUs, LSTMS | No sensor (synthesized data) |
| [ | Automated | LSTMs | Ambient |
| [ | Automated | LSTMs | Wearable |
| [ | Automated | CNNs, LSTMs | Ambient |
| Current paper | Automated | CNN-LSTMs, CNN-BiLSTMs, CNN-GRUs, CNN-BiGRUs | Wearable |
Figure 1A schematic view of the analysis process.
Figure 2The architecture of the HAR system.
Figure 3The loss value of the hybrid models.
Performance evaluation results for the hybrid models.
| Metrics | CNN-LSTM | CNN-GRU | CNN-BiLSTM | CNN-BiGRU |
|---|---|---|---|---|
| Accuracy | 99.57% | 99.06% | 99.65% | 99.8% |
| Precision | 93.16% | 92.6% | 94.55% | 95.12% |
| Recall | 93.16% | 92.6% | 94.55% | 95.12% |
| F1-score | 93.16% | 92.6% | 94.55% | 95.12% |
| Sensitivity | 93.16% | 92.6% | 94.55% | 95.12% |
| Specificity | 99.31% | 99.29% | 99.47% | 99.55% |
Confusion matrix of the CNN-LSTM model.
| Activity (%) | Wk | Ir | NWk | Sd | Ly | St | Vac | Cyc | AS | WTV | DS | Run |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wk | 97.3 | 0 | 2.7 | 0 | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 |
| Ir | 0 | 95.4 | 0 | 0 | 0 | 0 | 3 | 1.6 | 0 | 0 | 0 | 0 |
| NWk | 6 | 0 | 94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Sd | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Ly | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| St | 0 | 0 | 0 | 0 | 0 | 97 | 0 | 0 | 0 | 3 | 0 | 0 |
| Vac | 0 | 3.7 | 0 | 0 | 0 | 0 | 96.3 | 0 | 0 | 0 | 0 | 0 |
| Cyc | 1.8 | 0 | 0 | 0 | 0 | 0 | 0 | 98.2 | 0 | 0 | 0 | 0 |
| AS | 2.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97.5 | 0 | 0 | 0 |
| WTV | 0 | 0 | 0 | 0 | 0 | 2.7 | 0 | 0 | 0 | 97.3 | 0 | 0 |
| DS | 4.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 95.7 | 0 |
| Run | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3.7 | 0 | 0 | 0 | 96.3 |
Confusion matrix of the CNN-BiLSTM model.
| Activity (%) | Wk | Ir | NWk | Sd | Ly | St | Vac | Cyc | AS | WTV | DS | Run |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wk | 98.8 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1.2 | 0 | 0 | 0 |
| Ir | 0 | 97.4 | 0 | 0 | 0 | 0 | 2.6 | 0 | 0 | 0 | 0 | 0 |
| NWk | 4 | 0 | 96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Sd | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Ly | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| St | 0 | 0 | 0 | 0 | 0 | 99 | 0 | 0 | 0 | 1 | 0 | 0 |
| Vac | 0 | 2 | 0 | 0 | 0 | 0 | 97.5 | 0 | 0 | 0 | 0 | 0 |
| Cyc | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 99.98 | 0 | 0 | 0 | 0 |
| AS | 1.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.7 | 0 | 0 | 0 |
| WTV | 0 | 0 | 0 | 0 | 0 | 1.2 | 0 | 0 | 0 | 98.8 | 0 | 0 |
| DS | 1.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.5 | 0 |
| Run | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1.3 | 0 | 0 | 0 | 98.7 |
Confusion matrix of the CNN-GRU model.
| Activity (%) | Wk | Ir | NWk | Sd | Ly | St | Vac | Cyc | AS | WTV | DS | Run |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wk | 98 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 |
| Ir | 0 | 96.7 | 0 | 0 | 0 | 0 | 2 | 1.3 | 0 | 0 | 0 | 0 |
| NWk | 5.2 | 0 | 94.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Sd | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Ly | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| St | 0 | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 |
| Vac | 0 | 2.2 | 0 | 0 | 0 | 0 | 97.8 | 0 | 0 | 0 | 0 | 0 |
| Cyc | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 98.1 | 0 | 0 | 0 | 0.9 |
| AS | 2.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97.9 | 0 | 0 | 0 |
| WTV | 0 | 0 | 0 | 0 | 0 | 2.7 | 0 | 0 | 0 | 97.3 | 0 | 0 |
| DS | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97 | 0 |
| Run | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3.6 | 0 | 0 | 0 | 96.4 |
Confusion matrix of the CNN-BiGRU model.
| Activity (%) | Wk | Ir | NWk | Sd | Ly | St | Vac | Cyc | AS | WTV | DS | Run |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Wk | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Ir | 0 | 98.4 | 0 | 0 | 0 | 0 | 1.2 | 0.4 | 0 | 0 | 0 | 0 |
| NWk | 1 | 0 | 99 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Sd | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Ly | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| St | 0 | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 |
| Vac | 0 | 1.4 | 0.6 | 0 | 0 | 0 | 98 | 0 | 0 | 0 | 0 | 0 |
| Cyc | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 98 | 0 | 0 | 0 | 1.5 |
| AS | 1.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.4 | 0 | 0 | 0 |
| WTV | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 98 | 0 | 0 |
| DS | 1 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.8 | 0 |
| Run | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 99 |
Performance evaluation results for the simple models.
| Metrics | LSTM | GRU | BiLSTM | BiGRU |
|---|---|---|---|---|
| Accuracy | 98.78% | 97.88% | 99.53% | 99.57% |
| Precision | 91.21% | 90.4% | 94.47% | 93.98% |
| Recall | 91.21% | 90.4% | 94.47% | 93.98% |
| F1-score | 91.21% | 90.4% | 94.47% | 93.98% |
| Sensitivity | 91.21% | 90.4% | 94.47% | 93.98% |
| Specificity | 99.17% | 99.09% | 99.48% | 99.45% |
Classification methods applied to the PAMAP2 dataset.
| Method | Description | Accuracy | F1-Score |
|---|---|---|---|
| CNNs [ | CCNs are used for feature extraction from acceleration time series. | 91% | 91.16% |
| LSTMs [ | The performance of LSTMs for real-time HAR is analyzed and compared with some other DL/ML models. | 85.86% | 85.34% |
| LSTMs [ | Temporal and sensor attentions are added to LSTMs to improve their performance for HAR. | - | 89.96% |
| BiLSTMs [ | BiLSTMs are applied to the real-time HAR domain. | 89.52% | 89.4% |
| CNN-LSTMs [ | The HAR performance of CNNs and that of CNN-LSTMs are compared. | 88.68% | 88.98% |
| SVMs [ | The application of SVMs to real-time HAR is investigated and their performance is compared to some other ML/DL models. | 84.07% | 83.76% |
| SVMs [ | class-based decision fusion is used for effective combination of sensor data. | - | 82.32% |
| KNNs [ | A feature extraction technique is proposed for accelerometer data recorded by sensors in smart devices. | - | 91.1% |