| Literature DB >> 32155888 |
Jinghuan Guo1,2, Yiming Li1, Mengnan Hou1, Shuo Han1, Jianxun Ren1.
Abstract
With the development of population aging, the recognition of elderly activity in smart homes has received increasing attention. In recent years, single-resident activity recognition based on smart homes has made great progress. However, few researchers have focused on multi-resident activity recognition. In this paper, we propose a method to recognize two-resident activities based on time clustering. First, to use a de-noising method to extract the feature of the dataset. Second, to cluster the dataset based on the begin time and end time. Finally, to complete activity recognition using a similarity matching method. To test the performance of the method, we used two two-resident datasets provided by Center for Advanced Studies in Adaptive Systems (CASAS). We evaluated our method by comparing it with some common classifiers. The results show that our method has certain improvements in the accuracy, recall, precision, and F-Measure. At the end of the paper, we explain the parameter selection and summarize our method.Entities:
Keywords: activity recognition; sensor; smart home
Mesh:
Year: 2020 PMID: 32155888 PMCID: PMC7085800 DOI: 10.3390/s20051457
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
A segment of activity records.
| id | d | t | s | ss | ar | as |
|---|---|---|---|---|---|---|
| se1 | 2010-11-04 | 05:40:51.303739 | M004 | ON | Bed_to_Toilet | begin |
| se2 | 2010-11-04 | 05:40:52.342105 | M005 | OFF | ||
| se3 | 2010-11-04 | 05:40:57.176409 | M007 | OFF | ||
| se4 | 2010-11-04 | 05:40:57.941486 | M001 | OFF | ||
| se5 | 2010-11-04 | 05:43:24.021475 | M004 | ON | Sleep | begin |
| se6 | 2010-11-04 | 05:43:26.273181 | M004 | OFF | ||
| se7 | 2010-11-04 | 05:43:26.345503 | M007 | ON | ||
| se8 | 2010-11-04 | 05:43:26.793102 | M007 | ON | Bed_to_Toilet | end |
| se9 | 2010-11-04 | 05:43:27.195347 | M006 | OFF | ||
| se10 | 2010-11-04 | 05:43:27.787437 | M007 | ON | ||
| se11 | 2010-11-04 | 05:43:29.711796 | M005 | ON | ||
| se12 | 2010-11-04 | 05:43:30.279021 | M004 | OFF | Sleep | end |
Figure 1Process for the activity recognition.
Statistical information concerning datasets “Tulum2010” and “Cairo.”.
| Sensors | Activity Categories | Activity Instances | Residents | Measurement Time | |
|---|---|---|---|---|---|
| Tulum2010 | 36 (2 categories) | 14 | 7980 | 2 | 98 days |
| Cairo | 32 (2 categories) | 13 | 600 | 2 | 57 days |
Figure 2Tulum2010 sensor layout.
Figure 3Cairo sensor layout.
Confusion matrix presenting number of true positives, true negatives, false positives, and false negatives for a 2-class classification problem.
| Actual Class | |||
|---|---|---|---|
| 1 | 2 | ||
| Predicted Class | 1 | TP(true positive) | FP(false positive) |
| 2 | FN(false negative) | TN(true negative) | |
Tulum2010 performance.
| Accuracy | Precision | Recall | F-Measure | |
|---|---|---|---|---|
| KNN | 77.10% | 77.20% | 77.10% | 77.10% |
| LibSVM | 72.40% | 75.90% | 72.40% | 71.70% |
| SMO | 54.20% | 61.60% | 54.20% | 50.10% |
| NB | 50.60% | 65.50% | 50.60% | 52.60% |
| RIPPER | 80.30% | 80.50% | 80.30% | 80.30% |
| C4.5 | 80.90% | 81.00% | 80.90% | 80.90% |
| RF | 83.60% | 83.50% | 83.60% | 83.40% |
| Our Method | 88.10% | 88.00% | 88.10% | 87.90% |
Cairo performance.
| Accuracy | Precision | Recall | F-Measure | |
|---|---|---|---|---|
| KNN | 80.20% | 81.40% | 80.20% | 80.40% |
| LibSVM | 30.30% | 38.50% | 30.30% | 27.00% |
| SMO | 71.70% | 76.90% | 71.70% | 68.40% |
| NB | 79.20% | 81.70% | 79.20% | 79.50% |
| RIPPER | 76.80% | 78.30% | 76.80% | 76.90% |
| C4.5 | 83.00% | 83.20% | 83.00% | 83.00% |
| RF | 89.60% | 89.90% | 89.70% | 89.70% |
| Our Method | 92.00% | 92.90% | 92.00% | 92.00% |
Confusion matrix for Tulum2010.
| B | B_T | E | E_H | L_H | M_P | P_H | S_B | W_TV | W_B1 | W_B2 | W_L | W_T | Y | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 80 | 1 | ||||||||||||
|
| 16 | 6 | 1 | |||||||||||
|
| 62 | 1 | 3 | 27 | ||||||||||
|
| 8 | 5 | 1 | 1 | ||||||||||
|
| 4 | 9 | 2 | |||||||||||
|
| 5 | 192 | 1 | |||||||||||
|
| 1 | 2 | 169 | |||||||||||
|
| 36 | 2 | ||||||||||||
|
| 278 | 1 | 45 | |||||||||||
|
| 94 | |||||||||||||
|
| 1 | 267 | ||||||||||||
|
| 54 | 60 | ||||||||||||
|
| 19 | 2 | 136 | |||||||||||
|
| 3 | 2 |
Confusion matrix for Cairo.
| B_T | B | D | L | L_H | L | N_W | R1_S | R1_W | W_O | R2_S | T_M | R2_W | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 6 | ||||||||||||
|
| 8 | 1 | 1 | ||||||||||
|
| 9 | ||||||||||||
|
| 1 | 1 | |||||||||||
|
| 13 | 1 | |||||||||||
|
| 8 | ||||||||||||
|
| 3 | 11 | |||||||||||
|
| 1 | 9 | |||||||||||
|
| 1 | 10 | |||||||||||
|
| 10 | ||||||||||||
|
| 1 | 10 | |||||||||||
|
| 9 | ||||||||||||
|
| 11 |
Figure 4Relationship between k and sum of the squared errors (SSE) in Tulum2010.
Figure 5Relationship between n and accuracy when weight of ratio (w1) = 0.15 and w2 = 0.7.