| Literature DB >> 35808248 |
Sung-Hyun Yang1, Dong-Gwon Baek1, Keshav Thapa1.
Abstract
The training of Human Activity Recognition (HAR) models requires a substantial amount of labeled data. Unfortunately, despite being trained on enormous datasets, most current models have poor performance rates when evaluated against anonymous data from new users. Furthermore, due to the limits and problems of working with human users, capturing adequate data for each new user is not feasible. This paper presents semi-supervised adversarial learning using the LSTM (Long-short term memory) approach for human activity recognition. This proposed method trains annotated and unannotated data (anonymous data) by adapting the semi-supervised learning paradigms on which adversarial learning capitalizes to improve the learning capabilities in dealing with errors that appear in the process. Moreover, it adapts to the change in human activity routine and new activities, i.e., it does not require prior understanding and historical information. Simultaneously, this method is designed as a temporal interactive model instantiation and shows the capacity to estimate heteroscedastic uncertainty owing to inherent data ambiguity. Our methodology also benefits from multiple parallel input sequential data predicting an output exploiting the synchronized LSTM. The proposed method proved to be the best state-of-the-art method with more than 98% accuracy in implementation utilizing the publicly available datasets collected from the smart home environment facilitated with heterogeneous sensors. This technique is a novel approach for high-level human activity recognition and is likely to be a broad application prospect for HAR.Entities:
Keywords: HAR; adversarial learning; semi-supervised learning; smart home; syn-LSTM
Mesh:
Year: 2022 PMID: 35808248 PMCID: PMC9269419 DOI: 10.3390/s22134755
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1System workflow of our proposed method for HAR.
Figure 2(a) Internal Architecture of sync-LSTM; (b) Unfold of sync-LSTM.
Figure 3Adding of Adversarial Function.
Outlines of Datasets.
| Description | Milan | House-C | Aruba |
|---|---|---|---|
| Setting | Apartment | House | Apartment |
| Rooms | 6 | 6 | 5 |
| Senors | 33 | 21 | 34 |
| Activities | 15 | 16 | 11 |
| Residents | 1 | 1 | 1 |
| period | 72 days | 20 days | 220 days |
| Activities Performed | Bed-to-Toilet, Chores, Dining_Rm_Activity, Eve_meds, Guest_Bathroom, Kitchen_Activity, Leave_Home, Master_Bathroom, Meditate, Watch_TV, Sleep, Read, Morning_Meds, Master_Bedroom_Activity | Brushing teeth, Drinking, Dressing, Eating, Leaving House, Medication, Others, Preparing Breakfast, Preparing Lunch, Preparing Dinner, Relax, Sleeping, Showering, Snack, Shaving, Toileting | Meal_Preparation, Relax, Eating, Work, Sleeping, Wash_Dishes, Bed_to_Toilet, Enter Home, Leave Home, Housekeeping, Resperate |
Figure 4Floor Plan and Sensor Deployment.
Hyperparameter Configurations.
| Hyperparameters | Values | ||
|---|---|---|---|
| Milan | House-C | Aruba | |
| Time Steps of input | 128 | 128 | 128 |
| Initial Learning Rate | 0.001 | 0.001 | 0.001 |
| Learning Rates | 0.005 | 0.004 | 0.006 |
| Momentum | 0.5 | 0.5 | 0.5 |
| Optimizer (Bi-LSTM) | Adam | Adam | Adam |
| Batch Size | 100 | 100 | 100 |
| Dropout Rate | 0.5 | 0.5 | 0.5 |
| Batch Size | 100 | 100 | 100 |
| Epochs | 12,000 | 12,000 | 12,000 |
Confusion matrix for Milan dataset.
| Activity | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Recall | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 |
| 95 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | 98.344 |
| 2 |
| 0 | 98 | 0 | 0 | 0 | 0 | 1 | 0.2 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 98.741 |
| 3 |
| 0 | 0 | 98 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0.3 | 0 | 0 | 0 | 97.707 |
| 4 |
| 0 | 0.8 | 0 | 99 | 0 | 2 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97.154 |
| 5 |
| 0 | 0 | 0 | 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100.000 |
| 6 |
| 0 | 0 | 0 | 0.3 | 0.2 | 97 | 0 | 1.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 97.292 |
| 7 |
| 0 | 1.2 | 0 | 1.2 | 0 | 0 | 97 | 0 | 0.3 | 0 | 0 | 0 | 0.6 | 0 | 0 | 96.710 |
| 8 |
| 0 | 0 | 0 | 2 | 0 | 0 | 1.2 | 96 | 0.9 | 0 | 0 | 0 | 1 | 0 | 0 | 94.955 |
| 9 |
| 0 | 1.1 | 0 | 0 | 0 | 0 | 1 | 0.4 | 99 | 0 | 0 | 0 | 0.2 | 0 | 0 | 97.345 |
| 10 |
| 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 98 | 0.6 | 0 | 0 | 0 | 0 | 99.090 |
| 11 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 99 | 0 | 0 | 0 | 0 | 100.000 |
| 12 |
| 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97 | 0 | 1 | 0.5 | 96.517 |
| 13 |
| 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 96 | 0 | 0.9 | 97.068 |
| 14 |
| 1 | 0 | 0.5 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 95 | 0.033 | 97.603 |
| 15 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 95 | 99.790 |
|
| 96.939 | 96.934 | 99.492 | 95.652 | 99.502 | 96.710 | 96.040 | 98.059 | 97.778 | 100.000 | 97.441 | 99.692 | 98.160 | 97.737 | 98.208 | ||
Confusion matrix for House-C.
| Activity | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Recall | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 |
| 95 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 0.3 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|
| 1 | 0 | 0.5 | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | 0 | 95 | 0.033 | 0.4 | 97.204 | |
| 15 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 93 | 0.11 | 99.668 |
| 16 |
| 0.2 | 0 | 0.1 | 0.2 | 0.3 | 0.2 | 0.3 | 0.11 | 0.2 | 0.1 | 0 | 0.58 | 0.3 | 0.5 | 0.2 | 93 | 96.583 |
|
| 97.737 | 99.391 | 99.391 | 96.397 | 99.206 | 96.517 | 95.755 | 98.959 | 97.585 | 99.898 | 98.901 | 99.101 | 98.664 | 97.938 | 98.483 | 95.886 | ||
Confusion matrix for Aruba.
| Activities | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Recall | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 |
| 98 | 1.3 | 0.7 | 0 | 0 | 1.1 | 0 | 0 | 0 | 0 | 0 | 96.934 |
| 2 |
| 0 | 98 | 0 | 1 | 1 | 0 | 0.3 | 0 | 0 | 0 | 0.1 | 97.610 |
| 3 |
| 0 | 0 | 97 | 0 | 0 | 1 | 0 | 0 | 0.5 | 0.1 | 0 | 98.377 |
| 4 |
| 0.6 | 1.2 | 0.2 | 95 | 0.1 | 0.6 | 0.4 | 1 | 0.3 | 0 | 0 | 95.573 |
| 5 |
| 0 | 0 | 0 | 0 | 97 | 0 | 0 | 1 | 0 | 0 | 0 | 98.980 |
| 6 |
| 0 | 0 | 0 | 0.3 | 0.2 | 99 | 0 | 0 | 0 | 0 | 0 | 99.497 |
| 7 |
| 0 | 0 | 0 | 0 | 0 | 0 | 98 | 1 | 0 | 0 | 0 | 98.990 |
| 8 |
| 0 | 0.4 | 0 | 0 | 2 | 0 | 1.54 | 98 | 0 | 0 | 0 | 96.135 |
| 9 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0 | 0 | 100.000 |
| 10 |
| 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98 | 0 | 99.796 |
| 11 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97 | 100.000 |
|
| 99.190 | 97.126 | 99.081 | 98.650 | 96.710 | 97.345 | 97.765 | 97.030 | 99.206 | 99.898 | 99.897 | ||
Figure 5Training/Test Accuracy/Loss for Milan.
Figure 6Training/Test Accuracy/Loss for House-C.
Figure 7Training/Test Accuracy/Loss for Aruba.
Figure 8(a) the average precision, recall, and accuracy and (b) the f1-score comparison with different models.