| Literature DB >> 33053720 |
Keshav Thapa1, Zubaer Md Abdullah Al1, Barsha Lamichhane1, Sung-Hyun Yang1.
Abstract
Human activity recognition has become an important research topic within the field of pervasive computing, ambient assistive living (AAL), robotics, health-care monitoring, and many more. Techniques for recognizing simple and single activities are typical for now, but recognizing complex activities such as concurrent and interleaving activity is still a major challenging issue. In this paper, we propose a two-phase hybrid deep machine learning approach using bi-directional Long-Short Term Memory (BiLSTM) and Skip-Chain Conditional random field (SCCRF) to recognize the complex activity. BiLSTM is a sequential generative deep learning inherited from Recurrent Neural Network (RNN). SCCRFs is a distinctive feature of conditional random field (CRF) that can represent long term dependencies. In the first phase of the proposed approach, we recognized the concurrent activities using the BiLSTM technique, and in the second phase, SCCRF identifies the interleaved activity. Accuracy of the proposed framework against the counterpart state-of-art methods using the publicly available datasets in a smart home environment is analyzed. Our experiment's result surpasses the previously proposed approaches with an average accuracy of more than 93%.Entities:
Keywords: BiLSTM; RNN; SCCRF; Smart Home; activity recognition; concurrent; interleaved
Mesh:
Year: 2020 PMID: 33053720 PMCID: PMC7601290 DOI: 10.3390/s20205770
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1General Process for Activity Recognition.
Figure 2Pictorial view of (a) Interleaved Activity occurrence, (b) Concurrent Activity occurrence, (c) Concurrent and Interleaved Activity.
Figure 3LSTM Architecture.
Figure 4Bi-directional LSTM architecture.
Figure 5SCCRF Representation.
Figure 6Proposed schematic architecture.
Figure 7Overall system structure of the proposed approach.
Overview of datasets used in the evaluation of the proposed method.
| Description | Kasteren House-B | Kyoto 3 |
|---|---|---|
| Setting | Apartment | Apartment |
| Rooms | 2 | 4 |
| Senors | 23 | 76 |
| Activities | 13 | 8 |
| Residents | 1 | 4 |
| Period | 14 d | 15 d |
| Instances | 135 | 178 |
| Activities Performed | Breakfast, Brushing Teeth, Dinner, Drinking, Dressing, Leaving House, Others, Preparing Breakfast, Preparing Dinner, Sleeping, Showering, Toileting, Using Dishwasher | Fill Medication Dispenser, Wash DVD, Water Plants, Answer the Phone, Prepare Birthday Card, Prepare Soup, Clean, Choose Outfit |
Figure 8Sensor layout for (a) Kyoto 3 Dataset (b) Kasteren House B Dataset.
Figure 9Sequence labeling after segmentation of data with a sliding window.
Hyperparameter Settings.
| Hyperprameters | Values |
|---|---|
| Time Steps of input | 128 |
| Dropout Rate | 0.5 |
| Initial Learning Rate | 0.001 |
| Learning Rates | 0.005 |
| Optimizer (Bi-LSTM) | Adam |
| Batch Size | 100 |
| Gradient Clipping | 5 |
| Skin-chain parameter θ |
|
| SC Optimizer | Quasi-Newton |
| Epochs | 10000 |
Figure 10Confusion matrix for Kyoto 3.
Figure 11F-score comparison on Kyoto.
Figure 12Confusion matrix for Kasteren-House-B.
Figure 13F-score comparison on KH-B.
Confusion matrix for Kyoto 3.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Recall | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1. Breakfast | 93 | 0 | 0 | 0 | 0.2 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.85 |
| 2. Brushing Teeth | 0 | 95 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 0 | 0 | 0 | 94.06 |
| 3. Dinner | 0 | 0 | 91 | 0 | 0 | 0 | 1.9 | 0 | 0 | 0 | 0 | 5.3 | 0 | 92.67 |
| 4. Drinking | 0 | 0 | 0 | 95 | 0 | 0 | 0 | 4.6 | 0 | 0 | 0 | 0 | 2.3 | 93.23 |
| 5. Dressing | 0 | 0 | 0 | 0 | 97 | 1.5 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 95.57 |
| 6. Leaving House | 0.3 | 0 | 0 | 2.3 | 2.5 | 90 | 0 | 2.8 | 1 | 0 | 0 | 0 | 3 | 88.32 |
| 7. Preparing Breakfast | 2 | 5.2 | 0 | 0 | 0 | 0 | 92 | 0 | 0 | 0 | 0 | 0 | 0 | 92.74 |
| 8. Preparing Dinner | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 91 | 0 | 2.7 | 0 | 1 | 0 | 96.09 |
| 9. Sleeping | 0 | 5.2 | 0 | 0 | 0 | 0 | 1 | 0 | 97 | 0 | 0 | 0 | 0 | 93.99 |
| 10. Showering | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 90 | 1.6 | 0 | 0 | 98.04 |
| 11. Toileting | 0 | 0 | 0 | 1.3 | 1.2 | 0 | 0 | 1.6 | 0 | 0 | 92 | 0 | 5 | 91.00 |
| 12. Using Dishwasher | 0 | 0 | 7.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 94 | 0 | 92.89 |
| 13. Others | 3 | 0 | 0 | 0 | 0 | 7.5 | 7 | 0 | 0 | 5 | 3 | 0 | 83 | 76.50 |
| Precision | 94.61 | 90.13 | 92.67 | 96.15 | 96.13 | 90.11 | 90.28 | 91.00 | 93.27 | 92.12 | 92.37 | 93.72 | 88.96 |
Figure 14F-score comparison on KH-B.
Confusion matrix for Kyoto 3.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Recall | |
|---|---|---|---|---|---|---|---|---|---|
| 1. Fill Medical on Dispenser | 93 | 1.3 | 2.7 | 0 | 0 | 1.6 | 0 | 0 | 94.32 |
| 2. Wash DVD | 0 | 90 | 0 | 4 | 2 | 0 | 2 | 0 | 91.84 |
| 3. Water Plants | 0 | 0 | 92 | 0 | 0 | 0 | 0 | 0 | 100.00 |
| 4. Answer the Phone | 0.6 | 1.2 | 0 | 90 | 0 | 6 | 0 | 0 | 92.02 |
| 5. Prepare Birthday Card | 0 | 3 | 0 | 0 | 91 | 0 | 0 | 2.3 | 94.50 |
| 6. Prepare Soup | 5 | 0 | 0 | 2.3 | 3.2 | 91 | 0 | 0 | 89.66 |
| 7. Clean | 2 | 0 | 5 | 0 | 1.2 | 90 | 1 | 90.73 | |
| 8. Choose Outfit | 0 | 4 | 0 | 0 | 0 | 2 | 2 | 92 | 92.00 |
| Precision | 92.45 | 90.45 | 92.28 | 93.46 | 93.43 | 90.46 | 95.74 | 96.54 |
Figure 15F-score comparison on Kyoto.
Mean & standard deviation of variable range Batch Size on 10,000 epochs.
| Batch Size | 10 | 20 | 50 | 100 |
|---|---|---|---|---|
| Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | |
| House B | 0.9261 ± 0.0734 | 0.9332 ± 0.0479 | 0.9327 ± 0.0413 | 0.9234 ± 0.0458 |
| Kyoto | 0.9407 ± 0.0620 | 0.9334 ± 0.0479 | 0.9419 ± 0.0413 | 0.9394 ± 0.0458 |
Mean & Standard deviation of different Epcohs on 100 Batch Size.
| Epochs | 1000 | 5000 | 8000 | 10000 |
|---|---|---|---|---|
| Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | Mean (μ) ± SD (σ) | |
| House B | 0.9030 ± 0.0655 | 0.930 ± 0.0468 | 0.9295 ± 0.0353 | 0.9103 ± 0.0482 |
| Kyoto | 0.9175 ± 0.0613 | 0.9303 ± 0.0347 | 0.9388 ± 0.0304 | 0.9411 ± 0.0464 |
10-fold Cross-validation Result.
| Mean ± SD Accuracy | Mean ± SD Error | |
|---|---|---|
| House B | 0.9148 ± 0.0458 | 0.476161 ± 0.15032 |
| Kyoto | 0.9390 ± 0.0455 | 0.31367 ± 0.21140 |
Figure 16Accuracy of Training or Testing.
Figure 17Overall accuracy and F-score of the proposed method.