| Literature DB >> 35336522 |
Athanasios Lentzas1, Eleana Dalagdi1, Dimitris Vrakas1.
Abstract
As the world's population is aging, and since access to ambient sensors has become easier over the past years, activity recognition in smart home installations has gained increased scientific interest. The majority of published papers in the literature focus on single-resident activity recognition. While this is an important area, especially when focusing on elderly people living alone, multi-resident activity recognition has potentially more applications in smart homes. Activity recognition for multiple residents acting concurrently can be treated as a multilabel classification problem (MLC). In this study, an experimental comparison between different MLC algorithms is attempted. Three different techniques were implemented: RAkELd, classifier chains, and binary relevance. These methods are evaluated using the ARAS and CASAS public datasets. Results obtained from experiments have shown that using MLC can recognize activities performed by multiple people with high accuracy. While RAkELd had the best performance, the rest of the methods had on-par results.Entities:
Keywords: activity recognition; ambient sensors; ensemble learning; multilabel classification; smart home
Mesh:
Year: 2022 PMID: 35336522 PMCID: PMC8955852 DOI: 10.3390/s22062353
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Sensors and their associated actions.
| Sensors | Actions |
|---|---|
| Force and pressure sensors | Sleeping, sitting, napping |
| Photo sensor | Opening drawers and wardrobes |
| Contact sensors | Opening/closing doors, cupboards |
| Sonar | Presence detection |
| Temperature sensors | Cooking |
| Infrared | Watching TV |
Activities available in the ARAS dataset.
| Activities | ||
|---|---|---|
| Going out | Preparing breakfast | Having breakfast |
| Preparing lunch | Having lunch | Preparing dinner |
| Having dinner | Washing dishes | Making snack |
| Sleeping | Watching TV | Studying |
| Having shower | Toileting | Napping |
| Using internet | Reading book | Laundry |
| Shaving | Brushing teeth | Talking on the phone |
| Listening to music | Cleaning | Having conversation |
| Changing clothes | Having clothes | Other |
Activities performed by each resident on the CASAS dataset.
| Person A | Person B |
|---|---|
| Filling medication dispenser (ind.) | Hanging up clothes (ind.) |
| Moving furniture (co-op) | Moving furniture (co-op) |
| Watering plants (ind.) | Reading magazine (ind.) |
| Playing checkers (co-op) | Sweeping floor (ind.) |
| Preparing dinner (ind.) | Playing checkers (co-op) |
| Reading magazine (ind.) | Setting the table (ind.) |
| Gathering and packing picnic food (ind.) | Paying bills (co-op) |
| - | Gathering and packing picnic supplies (co-op) |
Figure 1House A class imbalance. Number of classes per resident (normalized) and percentage of each class for the first house.
Figure 2House B class imbalance. Number of classes per resident (normalized) and percentage of each class for the first house.
Average F1 score per classifier. Inside the parentheses is the confidence interval (96% confidence). The best value can be seen in bold.
| Classifier | House A | House A |
|---|---|---|
| Classifier chain | 0.671 (0.64–0.69) | 0.903 (0.87–0.92) |
| Binary relevance | 0.674 (0.64–0.7) | 0.904 (0.88–0.92) |
| 0.674 (0.64–0.7) | 0.904 (0.88–0.92) |
Average Hamming loss per classifier (lower is better). Inside the parentheses is the confidence interval (96% confidence). The best value can be seen in bold.
| Classifier | House A | House B |
|---|---|---|
| 0.024846898 (0.022–0.024) | ||
| Classifier chain | 0.026821258 (0.024–0.029) | 0.008799636 (0.0065–0.0088) |
| Binary relevance | 0.00846863 (0.0065–0.0084) | |
| 0.024929984 (0.022–0.027) | 0.008469172 (0.0065–0.0084) |
Average F1 score per classifier trained on an unbalanced dataset. Inside the parentheses is the confidence interval (96% confidence). The best value can be seen in bold.
| Classifier | House A | House B |
|---|---|---|
| Classifier chain | 0.673 (0.64–0.70) | 0.905 (0.9–0.93) |
| Binary relevance | 0.675 (0.64–0.70) | 0.906 (0.88–0.92) |
| 0.676 (0.64–0.71) |
Average Hamming loss per classifier (lower is better) trained on an unbalanced dataset. Inside the parentheses is the confidence interval (96% confidence). The best value can be seen in bold.
| Classifier | House A | House B |
|---|---|---|
| Classifier chain | 0.026690177 (0.024–0.03) | 0.008666588 (0.0065–0.01) |
| Binary relevance | 0.026660177 (0.024–0.03) | 0.00837087 (0.0065–0.01) |
| 0.02475237 (0.022–0.028) | 0.008020018 (0.006–0.01) |
Figure 3Classification results for House A. Hamming loss for each classifier per validation epoch and F1 score for each classifier per validation epoch.
Figure 4Classification results for House B. Hamming loss for each classifier per validation epoch and F1 score for each classifier per validation epoch.
Average F1 score and Hamming loss per day for House A. Best value per day can be seen in bold.
| Day | Classifier Chain | Binary Relevance | ||||||
|---|---|---|---|---|---|---|---|---|
| F1 | Hamming | F1 | Hamming | F1 | Hamming | F1 | Hamming | |
| 1 | 0.808 | 0.036 | 0.791 | 0.0412 | 0.677 | 0.0555 |
|
|
| 2 |
|
| 0.858 | 0.0366 | 0.841 | 0.0363 | 0.853 | 0.0454 |
| 3 |
|
| 0.696 | 0.0498 | 0.7 | 0.0495 |
| 0.0375 |
| 4 | 0.811 |
| 0.716 | 0.0503 | 0.789 | 0.0333 |
| 0.0298 |
| 5 | 0.795 | 0.025 | 0.732 | 0.0399 | 0.723 | 0.0357 |
|
|
| 6 | 0.807 |
| 0.735 | 0.0373 | 0.721 | 0.0372 |
| 0.0255 |
| 7 | 0.811 | 0.036 | 0.749 | 0.0445 | 0.733 | 0.0475 |
|
|
| 8 |
|
| 0.764 | 0.0327 | 0.692 | 0.0457 | 0.837 | 0.0216 |
| 9 | 0.782 |
| 0.688 | 0.0471 | 0.707 | 0.0386 |
| 0.035 |
| 10 |
|
| 0.726 | 0.0426 | 0.829 | 0.0258 | 0.835 | 0.0269 |
| 11 | 0.786 |
| 0.728 | 0.0507 | 0.805 | 0.0435 |
|
|
| 12 | 0.798 | 0.045 | 0.776 | 0.044 | 0.806 | 0.0451 |
|
|
| 13 | 0.781 | 0.039 | 0.763 | 0.0445 | 0.796 | 0.0273 |
|
|
| 14 | 0.791 | 0.064 | 0.752 | 0.0713 | 0.781 | 0.0706 |
|
|
| 15 | 0.758 | 0.068 | 0.722 | 0.0645 | 0.762 | 0.0687 |
|
|
| 16 | 0.822 | 0.027 | 0.73 | 0.0406 | 0.787 | 0.0339 |
|
|
| 17 |
|
| 0.711 | 0.0487 | 0.814 | 0.0325 | 0.806 | 0.0312 |
| 18 |
|
| 0.774 | 0.0413 | 0.783 | 0.0446 | 0.813 | 0.0366 |
| 19 | 0.811 | 0.035 | 0.733 | 0.0412 | 0.798 | 0.0342 |
|
|
| 20 | 0.786 |
| 0.729 | 0.0707 | 0.777 | 0.06 |
| 0.066 |
| 21 |
| 0.047 | 0.749 | 0.0573 | 0.747 | 0.0441 | 0.794 |
|
| 22 | 0.828 | 0.039 | 0.843 | 0.0409 | 0.822 | 0.043 |
|
|
| 23 | 0.78 | 0.039 | 0.715 | 0.0556 | 0.77 | 0.0403 |
|
|
| 24 | 0.804 | 0.033 | 0.765 | 0.0371 |
|
| 0.817 | 0.0282 |
| 25 | 0.782 | 0.051 | 0.708 | 0.0683 | 0.773 | 0.0586 |
|
|
| 26 |
|
| 0.648 | 0.0588 | 0.755 | 0.0481 | 0.795 | 0.0435 |
| 27 | 0.849 | 0.03 | 0.866 | 0.0246 |
|
| 0.891 | 0.0235 |
| 28 | 0.816 | 0.04 | 0.733 | 0.0488 | 0.82 |
|
| 0.0385 |
| 29 | 0.838 | 0.043 | 0.775 | 0.0573 |
|
| 0.852 | 0.0408 |
| 30 | 0.881 | 0.028 | 0.877 | 0.0295 | 0.872 | 0.0298 |
|
|
Average F1 score and Hamming loss per day for House B. Best value per day can be seen in bold.
| Day | Classifier Chain | Binary Relevance | ||||||
|---|---|---|---|---|---|---|---|---|
| F1 | Hamming | F1 | Hamming | F1 | Hamming | F1 | Hamming | |
| 1 | 0.802 | 0.045 | 0.783 | 0.0457 | 0.774 | 0.0466 |
|
|
| 2 | 0.902 |
|
| 0.0223 | 0.881 | 0.022 | 0.897 |
|
| 3 | 0.958 | 0.011 | 0.957 |
| 0.952 | 0.0113 |
| 0.0111 |
| 4 |
|
| 0.843 | 0.0282 | 0.825 | 0.0279 | 0.852 | 0.0276 |
| 5 |
|
|
|
| 0.901 | 0.0249 | 0.908 | 0.0255 |
| 6 | 0.934 |
| 0.94 | 0.0135 | 0.929 | 0.0136 |
|
|
| 7 |
|
| 0.902 | 0.023 | 0.887 | 0.0233 | 0.891 | 0.0232 |
| 8 | 0.948 |
| 0.948 | 0.0175 | 0.939 | 0.0176 |
| 0.0175 |
| 9 | 0.947 | 0.0107 | 0.946 | 0.0121 | 0.944 |
|
| 0.0113 |
| 10 |
|
| 0.895 | 0.0196 | 0.898 | 0.0175 | 0.901 | 0.0188 |
| 11 | 0.92 |
|
| 0.0189 | 0.901 | 0.0189 | 0.92 |
|
| 12 |
|
| 0.918 | 0.0175 | 0.91 | 0.0173 | 0.92 |
|
| 13 |
|
| 0.937 | 0.0142 | 0.951 | 0.0106 | 0.956 | 0.0114 |
| 14 | 0.984 |
| 0.976 | 0.0074 | 0.981 | 0.0065 |
| 0.0074 |
| 15 | 0.926 |
| 0.924 | 0.0207 | 0.92 | 0.0202 |
| 0.0202 |
| 16 | 0.908 | 0.0173 |
|
| 0.899 | 0.0179 | 0.912 | 0.0177 |
| 17 |
| 0.0226 | 0.881 | 0.023 | 0.87 |
| 0.885 | 0.0235 |
| 18 | 0.96 |
| 0.954 |
| 0.951 |
|
|
|
| 19 |
|
| 0.917 | 0.0169 | 0.908 | 0.0166 | 0.92 | 0.0165 |
| 20 | 0.951 |
|
| 0.017 | 0.946 |
| 0.952 |
|
| 21 |
| 0.0153 | 0.929 | 0.0199 | 0.952 |
| 0.95 | 0.0157 |
| 22 |
| 0.0131 |
|
| 0.941 | 0.013 | 0.95 | 0.0131 |
| 23 |
|
| 0.906 |
| 0.899 |
| 0.913 |
|
| 24 |
|
| 0.88 | 0.022 | 0.878 | 0.0186 | 0.892 | 0.0194 |
| 25 |
| 0.0121 | 0.954 | 0.0122 | 0.951 | 0.0124 | 0.957 | 0.0124 |
| 26 |
|
| 0.948 | 0.0145 | 0.943 | 0.0139 | 0.951 | 0.0139 |
| 27 |
| 0.0214 | 0.888 | 0.0231 |
| 0.0208 | 0.897 | 0.0216 |
| 28 | 0.847 | 0.0262 | 0.83 | 0.031 | 0.846 |
|
|
|
| 29 | 0.932 |
| 0.93 | 0.0217 |
| 0.0205 | 0.929 | 0.0235 |
| 30 | 0.918 | 0.0169 | 0.905 | 0.0204 | 0.914 |
|
|
|
Hamming loss comparison between (MLP) and results presented in [29]. Best value per day can be seen in bold.
| Day | House A | House B | ||
|---|---|---|---|---|
| [ | [ | |||
| 1 |
| 0.107 |
| 0.058 |
| 2 |
| 0.083 |
| 0.043 |
| 3 |
| 0.09 |
| 0.023 |
| 4 |
| 0.119 |
| 0.039 |
| 5 |
| 0.123 |
| 0.031 |
| 6 |
| 0.183 | 0.0134 |
|
| 7 |
| 0.116 |
| 0.018 |
| 8 |
| 0.104 |
| 0.02 |
| 9 |
| 0.192 |
| 0.014 |
| 10 |
| 0.112 |
| 0.023 |
| 11 |
| 0.105 |
| 0.049 |
| 12 |
| 0.101 |
| 0.021 |
| 13 |
| 0.077 |
| 0.011 |
| 14 |
| 0.107 | 0.0062 |
|
| 15 |
| 0.158 |
| 0.044 |
| 16 |
| 0.149 |
| 0.054 |
| 17 |
| 0.083 |
| 0.051 |
| 18 |
| 0.102 | 0.0096 |
|
| 19 |
| 0.164 |
| 0.022 |
| 20 |
| 0.134 | 0.0166 |
|
| 21 |
| 0.207 |
| 0.027 |
| 22 |
| 0.145 |
| 0.028 |
| 23 |
| 0.182 |
| 0.039 |
| 24 |
| 0.095 |
| 0.026 |
| 25 |
| 0.124 |
| 0.018 |
| 26 |
| 0.12 |
| 0.015 |
| 27 |
| 0.086 | 0.0214 |
|
| 28 |
| 0.096 |
| 0.064 |
| 29 |
| 0.079 |
| 0.025 |
| 30 |
| 0.05 |
| 0.041 |
Average F1 score & Hamming loss per classifier (CASAS dataset). Inside the parentheses is the confidence interval (96% confidence). Best values can be seen in bold.
| Classifier | F1 | Hamming Loss |
|---|---|---|
| Classifier chain | 0.887 (0.87–0.9) | 0.009235 (0.0075–0.012 |
| Binary relevance | 0.89 (0.88–0.91) | 0.0089681 (0.0073–0.011) |
| 0.9 (0.9–0.91) | 0.008220018 (0.0058–0.01 |
Average F1 score and Hamming loss per day for the CASAS Dataset. Best values per day can be seen in bold.
| Day | Classifier Chain | Binary Relevance | ||||||
|---|---|---|---|---|---|---|---|---|
| F1 | Hamming | F1 | Hamming | F1 | Hamming | F1 | Hamming | |
| 1 | 0.86 | 0.033 | 0.732 | 0.0399 | 0.793 | 0.0355 |
|
|
| 2 |
|
| 0.826 | 0.035 | 0.768 | 0.0324 | 0.875 | 0.0296 |
| 3 | 0.7925 |
| 0.798 | 0.047 | 0.782 | 0.0373 |
| 0.0338 |
| 4 |
|
| 0.759 | 0.0314 | 0.798 | 0.0257 | 0.805 | 0.0337 |
| 5 | 0.827 | 0.034 | 0.762 | 0.0364 | 0.792 | 0.0269 |
|
|
| 6 | 0.809 | 0.0264 | 0.763 | 0.0391 | 0.768 | 0.035 |
|
|
| 7 | 0.787 | 0.025 | 0.749 | 0.0298 | 0.744 | 0.0367 |
|
|
| 8 |
|
| 0.776 | 0.0299 | 0.847 | 0.0259 | 0.875 | 0.0155 |
| 9 | 0.828 | 0.034 | 0.856 | 0.0375 | 0.73 |
|
|
|
| 10 |
| 0.0205 | 0.841 | 0.025 | 0.805 | 0.0257 | 0.872 |
|
| 11 | 0.852 | 0.0223 | 0.731 | 0.0304 | 0.721 | 0.0303 |
|
|
| 12 | 0.823 |
| 0.797 | 0.034 | 0.833 | 0.0331 |
| 0.0295 |
| 13 |
|
| 0.828 | 0.0223 | 0.797 | 0.0343 | 0.911 | 0.0285 |
| 14 |
| 0.022 | 0.868 | 0.0235 | 0.728 | 0.0375 | 0.844 |
|
| 15 | 0.854 |
| 0.808 | 0.0303 | 0.787 | 0.0385 |
| 0.0306 |
| 16 | 0.902 |
| 0.755 | 0.0384 | 0.88 | 0.0221 |
| 0.03 |
| 17 |
|
| 0.781 | 0.0362 | 0.799 | 0.0258 | 0.869 | 0.0328 |
| 18 |
|
| 0.893 | 0.0269 | 0.899 | 0.0345 | 0.871 | 0.026 |
| 19 |
|
| 0.84 | 0.0287 | 0.78 | 0.0241 | 0.835 | 0.0201 |
| 20 | 0.889 | 0.023 | 0.815 | 0.0302 | 0.73 | 0.0224 |
|
|
| 21 | 0.866 | 0.0345 | 0.823 | 0.025 | 0.856 | 0.0222 |
|
|
| 22 |
|
| 0.855 | 0.0378 | 0.735 | 0.035 | 0.899 | 0.027 |
| 23 |
|
| 0.887 | 0.0295 | 0.81 | 0.0275 | 0.887 | 0.0324 |
| 24 |
|
| 0.853 | 0.035 | 0.796 | 0.022 | 0.867 | 0.0227 |
| 25 | 0.858 | 0.0392 | 0.79 | 0.0361 | 0.8 | 0.0371 |
|
|
| 26 | 0.847 | 0.0563 | 0.727 | 0.0345 | 0.823 |
|
| 0.0336 |
F1 score comparison between multilabel and multi-class classification approaches. Best values are in bold.
| Method | ARAS House A | ARAS House B | CASAS |
|---|---|---|---|
| Multilabel |
|
|
|
| Multi-class [ | 0.5987 | 0.8796 | 0.8227 |