| Literature DB >> 29662011 |
Alberto G Salguero1, Macarena Espinilla2, Pablo Delatorre3, Javier Medina4.
Abstract
The recognition of activities of daily living is an important research area of interest in recent years. The process of activity recognition aims to recognize the actions of one or more people in a smart environment, in which a set of sensors has been deployed. Usually, all the events produced during each activity are taken into account to develop the classification models. However, the instant in which an activity started is unknown in a real environment. Therefore, only the most recent events are usually used. In this paper, we use statistics to determine the most appropriate length of that interval for each type of activity. In addition, we use ontologies to automatically generate features that serve as the input for the supervised learning algorithms that produce the classification model. The features are formed by combining the entities in the ontology, such as concepts and properties. The results obtained show a significant increase in the accuracy of the classification models generated with respect to the classical approach, in which only the state of the sensors is taken into account. Moreover, the results obtained in a simulation of a real environment under an event-based segmentation also show an improvement in most activities.Entities:
Keywords: activity recognition; data-driven approaches; knowledge-driven approaches; ontology; smart environments
Mesh:
Year: 2018 PMID: 29662011 PMCID: PMC5948724 DOI: 10.3390/s18041202
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Semantics of the OWL logical operators. DL, Description Logic.
| DL Syntax | Manchester Syntax | Semantics | |
|---|---|---|---|
Figure 1Ontology example.
Figure 2Functional architecture.
Example of the resultant data.
| Activity | Positive | ||
|---|---|---|---|
| 1 | 1 | 0 | 1 |
| 2 | 0 | 1 | 0 |
| 3 | 1 | 1 | 1 |
| 4 | 0 | 0 | 1 |
Instances per activity in the dataset.
| Activity | Instances | Duration (average) | Duration (sd) |
|---|---|---|---|
| Get drink | 20 | 53.25 | 68.81 |
| Go to bed | 24 | 29,141.63 | 10,913.63 |
| Leave the house | 34 | 39,823.09 | 42,045.64 |
| Prepare breakfast | 20 | 202.75 | 153.61 |
| Prepare dinner | 10 | 2054.00 | 1185.22 |
| Take a shower | 23 | 573.39 | 158.53 |
| Use the toilet | 114 | 104.62 | 101.01 |
| 245 |
Sensor events per activity in the dataset.
| Activity | Sensor Events | Sensor Events (average) | Sensor Events (sd) |
|---|---|---|---|
| Get drink | 69 | 3.45 | 1.00 |
| Go to bed | 74 | 3.08 | 1.06 |
| Leave the house | 113 | 3.32 | 2.06 |
| Prepare breakfast | 100 | 5.00 | 1.30 |
| Prepare dinner | 64 | 6.40 | 1.58 |
| Take a shower | 53 | 2.30 | 0.56 |
| Use the toilet | 376 | 3.30 | 0.81 |
| 1319 |
Figure 3Example of a feature vector for a temporal window computed from the sensor data stream.
Performance of the classic approach when using the mean duration of activities as the lengths of temporal windows (). SMO, Sequential Minimal Optimization; VP, Voted Perceptron; DT, Decision Table.
| Percent Correct | F-Measure | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Activity | C4.5 | SMO | VP | DT | RF | Best | C4.5 | SMO | VP | DT | RF | Best |
| Get drink | 96.86 | 99.32 | 95.37 | 96.87 | 100.00 | 100.00 | 0.83 | 0.96 | 0.57 | 0.80 | 1.00 | 1.00 |
| Go to bed | 89.26 | 89.54 | 90.36 | 90.23 | 91.43 | 91.43 | 0.00 | 0.00 | 0.03 | 0.00 | 0.30 | 0.30 |
| Leave the house | 97.96 | 97.96 | 94.56 | 97.02 | 97.42 | 97.96 | 0.94 | 0.94 | 0.74 | 0.91 | 0.92 | 0.94 |
| Prepare breakfast | 96.19 | 95.91 | 94.82 | 91.02 | 97.82 | 97.82 | 0.75 | 0.71 | 0.56 | 0.29 | 0.83 | 0.83 |
| Prepare dinner | 95.51 | 96.18 | 96.06 | 94.39 | 97.82 | 97.82 | 0.42 | 0.51 | 0.30 | 0.33 | 0.64 | 0.64 |
| Take a shower | 98.36 | 98.23 | 94.04 | 90.63 | 98.63 | 98.63 | 0.90 | 0.89 | 0.44 | 0.00 | 0.91 | 0.91 |
| Use the toilet | 89.26 | 88.19 | 84.91 | 87.08 | 91.44 | 91.44 | 0.89 | 0.87 | 0.84 | 0.88 | 0.91 | 0.91 |
“Go to bed” classification performance.
| Percent Correct | F-Measure | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C4.5 | SMO | VP | DT | RF | Best | C4.5 | SMO | VP | DT | RF | Best | ||
| Classic | 14 | 89.26 | 89.54 | 90.36 | 90.23 | 91.43 | 0.00 | 0.00 | 0.03 | 0.00 | 0.30 | ||
| 20 | 90.23 | 90.23 | 90.23 | 90.23 | 89.69 | 90.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 40 | 90.23 | 89.70 | 90.23 | 90.23 | 89.14 | 90.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 60 | 91.29 | 93.46 | 90.23 | 90.23 | 93.33 | 93.46 | 0.45 | 0.57 | 0.00 | 0.00 | 0.50 | 0.57 | |
| 80 | 92.55 | 0.29 | 0.92 | 0.91 | |||||||||
| 100 | 91.06 | 98.78 | 0.14 | 0.92 | |||||||||
| 20 | 90.23 | 90.23 | 90.23 | 90.23 | 89.69 | 90.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 40 | 90.23 | 89.70 | 90.23 | 90.23 | 89.14 | 90.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 60 | 91.29 | 93.46 | 90.23 | 90.23 | 93.33 | 93.46 | 0.45 | 0.57 | 0.00 | 0.00 | 0.50 | 0.57 | |
| 80 | 93.36 | 0.40 | |||||||||||
| 100 | 93.22 | 98.78 | 0.35 | 0.92 | |||||||||
| 20 | 90.23 | 90.23 | 90.23 | 90.23 | 90.23 | 90.23 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 40 | 92.27 | 0.24 | |||||||||||
| 60 | 91.73 | 98.78 | 0.22 | 0.92 | |||||||||
| 80 | 90.51 | 98.78 | 0.04 | 0.92 | |||||||||
| 100 | 90.91 | 98.78 | 0.09 | 0.92 | |||||||||
“Use the toilet” classification performance.
| Percent Correct | F-Measure | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C4.5 | SMO | VP | DT | RF | Best | C4.5 | SMO | VP | DT | RF | Best | ||
| Classic | 14 | 89.26 | 88.19 | 84.91 | 87.08 | 91.44 | 0.89 | 0.87 | 0.84 | 0.88 | 0.91 | ||
| 20 | 80.94 | 79.71 | 81.76 | 0.78 | 0.80 | ||||||||
| 40 | 84.82 | 83.99 | 84.12 | 82.90 | 85.89 | 85.89 | 0.85 | 0.84 | 0.84 | 0.83 | 0.86 | 0.86 | |
| 60 | 89.73 | 96.77 | 0.90 | 0.97 | |||||||||
| 80 | 89.29 | 0.95 | 0.89 | ||||||||||
| 100 | 89.56 | 97.18 | 0.95 | 0.89 | 0.97 | ||||||||
| 20 | 80.94 | 79.71 | 81.76 | 0.78 | 0.80 | ||||||||
| 40 | 84.82 | 83.99 | 84.12 | 82.90 | 85.89 | 85.89 | 0.85 | 0.84 | 0.84 | 0.83 | 0.86 | 0.86 | |
| 60 | 89.73 | 96.77 | 0.90 | 0.97 | |||||||||
| 80 | 90.26 | 97.72 | 0.95 | 0.90 | |||||||||
| 100 | 88.32 | 0.95 | 0.88 | 0.98 | |||||||||
| 20 | 81.81 | 80.44 | 84.77 | 0.81 | 0.80 | 0.85 | 0.85 | ||||||
| 40 | 91.06 | 97.04 | 0.95 | 0.91 | 0.97 | ||||||||
| 60 | 89.31 | 0.89 | |||||||||||
| 80 | 88.47 | 97.30 | 0.89 | 0.97 | |||||||||
| 100 | 88.73 | 97.31 | 0.88 | 0.97 | |||||||||
“Prepare dinner” classification performance.
| Percent Correct | F-Measure | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C4.5 | SMO | VP | DT | RF | Best | C4.5 | SMO | VP | DT | RF | Best | ||
| Classic | 14 | 95.51 | 96.18 | 96.06 | 94.39 | 97.82 | 0.42 | 0.51 | 0.30 | 0.33 | 0.64 | ||
| 20 | 97.96 | 97.83 | 96.33 | 97.42 | 97.96 | 0.50 | 0.49 | 0.13 | 0.50 | 0.47 | 0.50 | ||
| 40 | 97.56 | 98.79 | 96.47 | 96.06 | 98.78 | 98.79 | 0.49 | 0.77 | 0.13 | 0.12 | 0.72 | 0.77 | |
| 60 | 97.28 | 99.06 | 96.87 | 96.20 | 98.51 | 0.46 | 0.23 | 0.16 | 0.63 | ||||
| 80 | 97.28 | 98.92 | 96.73 | 96.20 | 98.65 | 98.92 | 0.46 | 0.84 | 0.20 | 0.16 | 0.69 | 0.84 | |
| 100 | 97.28 | 98.92 | 96.18 | 96.20 | 98.37 | 98.92 | 0.46 | 0.80 | 0.10 | 0.16 | 0.62 | 0.80 | |
| 20 | 97.96 | 97.83 | 96.33 | 97.42 | 97.96 | 0.50 | 0.49 | 0.13 | 0.50 | 0.47 | 0.50 | ||
| 40 | 97.56 | 98.79 | 96.47 | 96.06 | 98.78 | 98.79 | 0.49 | 0.77 | 0.13 | 0.12 | 0.72 | 0.77 | |
| 60 | 97.28 | 99.06 | 96.87 | 96.20 | 98.51 | 0.46 | 0.23 | 0.16 | 0.63 | ||||
| 80 | 97.28 | 99.06 | 96.59 | 96.20 | 98.66 | 99.06 | 0.46 | 0.17 | 0.16 | 0.69 | 0.88 | ||
| 100 | 97.28 | 98.92 | 96.46 | 96.20 | 98.91 | 98.92 | 0.46 | 0.84 | 0.13 | 0.16 | 0.76 | 0.84 | |
| 20 | 97.29 | 96.34 | 96.33 | 97.43 | 96.07 | 97.43 | 0.48 | 0.36 | 0.24 | 0.48 | 0.39 | 0.48 | |
| 40 | 97.69 | 98.37 | 97.01 | 96.61 | 98.36 | 98.37 | 0.60 | 0.74 | 0.27 | 0.26 | 0.60 | 0.74 | |
| 60 | 97.69 | 98.92 | 96.86 | 96.61 | 97.95 | 98.92 | 0.60 | 0.85 | 0.31 | 0.26 | 0.57 | 0.85 | |
| 80 | 97.69 | 96.73 | 96.61 | 98.36 | 0.60 | 0.20 | 0.26 | 0.69 | |||||
| 100 | 97.28 | 97.69 | 96.48 | 98.37 | 99.45 | 0.50 | 0.89 | 0.43 | 0.26 | 0.62 | 0.89 | ||
Figure 4Classifiers’ global performance.
Duncan test’s groups of classifiers by the percentage of correctly-classified instances.
| Measure | Group | Classifier | Mean | SD |
|---|---|---|---|---|
| Precision | a | SMO | 96.581 | 4.395 |
| a | RF | 96.390 | 3.759 | |
| ab | C4.5 | 95.708 | 4.006 | |
| b | DT | 95.087 | 4.444 | |
| c | VP | 91.958 | 4.161 | |
| F-measure | a | SMO | 0.815 | 0.246 |
| ab | RF | 0.758 | 0.244 | |
| b | C4.5 | 0.708 | 0.283 | |
| c | DT | 0.608 | 0.378 | |
| d | VP | 0.414 | 0.034 |
Figure 5Evolution of the average percentage of correctly-classified instances and F-measure.
Duncan test’s groups of datasets by the percentage of correctly-classified instances.
| Measure | Group | DL Operators | Mean | SD |
|---|---|---|---|---|
| Precision | a | 96.662 | 4.095 | |
| a | 95.117 | 4.574 | ||
| a | 95.025 | 4.641 | ||
| b | classic | 91.444 | 3.758 | |
| F-measure | a | 0.697 | 0.308 | |
| a | 0.655 | 0.335 | ||
| a | 0.647 | 0.345 | ||
| b | classic | 0.461 | 0.359 |
Global classification performance.
| Percent Correct | F-Measure | |||||||
|---|---|---|---|---|---|---|---|---|
| Activity | Classic | Proposal | Gain | % Max. | Classic | Proposal | Gain | % Max. |
| Gain | Gain | |||||||
| Go to bed | 91.43 | 98.78 | 7.35 | 86% | 0.30 | 0.92 | 0.62 | 89% |
| Prepare dinner | 97.82 | 99.59 | 1.77 | 81% | 0.83 | 0.97 | 0.14 | 82% |
| Use the toilet | 91.44 | 97.86 | 6.42 | 75% | 0.91 | 0.98 | 0.07 | 78% |
| Get drink | 100.00 | 99.59 | −0.41 | - | 1.00 | 0.97 | −0.03 | - |
| Leave the house | 97.96 | 100.00 | 2.04 | 100% | 0.94 | 1.00 | 0.06 | 100% |
| Take a shower | 98.63 | 98.77 | 0.14 | 10% | 0.91 | 0.93 | 0.02 | 22% |
| Prepare breakfast | 97.82 | 98.78 | 0.96 | 44% | 0.83 | 0.92 | 0.09 | 53% |
| 96.44 | 99.07 | 2.63 | 66% | 0.79 | 0.96 | 0.17 | 72% | |
Global classification performance on the Singla and Ordoñez datasets.
| Percent Correct | F-Measure | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Activity | Classic | Proposal | Gain | Classic | Proposal | Gain |
| Singla | Answer the phone | 98.22 | 98.81 | 0.59 | 0.89 | 0.94 | 0.05 |
| Singla | Choose outfit | 100.00 | 100.00 | 0.00 | 1.00 | 1.00 | 0.00 |
| Singla | Clean | 98.81 | 98.80 | −0.01 | 0.95 | 0.95 | 0.00 |
| Singla | Fill medication dispenser | 99.02 | 97.81 | −1.21 | 0.94 | 0.89 | −0.05 |
| Singla | Prepare birthday card | 100.00 | 98.39 | −1.61 | 1.00 | 0.93 | −0.07 |
| Singla | Prepare soup | 100.00 | 100.00 | 0.00 | 1.00 | 1.00 | 0.00 |
| Singla | Wash DVD | 98.60 | 100.00 | 1.40 | 0.95 | 1.00 | 0.05 |
| Singla | Water plants | 98.60 | 98.80 | 0.20 | 0.94 | 0.95 | 0.01 |
| Ordoñez (a) | Breakfast | 99.55 | 99.55 | 0.00 | 0.90 | 0.94 | 0.04 |
| Ordoñez (a) | Grooming | 96.53 | 97.12 | 0.59 | 0.92 | 0.94 | 0.02 |
| Ordoñez (a) | Leaving | 99.55 | 100.00 | 0.45 | 0.98 | 1.00 | 0.02 |
| Ordoñez (a) | Lunch | 99.50 | 100.00 | 0.50 | 0.88 | 0.90 | 0.02 |
| Ordoñez (a) | Showering | 100.00 | 100.00 | 0.00 | 1.00 | 1.00 | 0.00 |
| Ordoñez (a) | Sleeping | 100.00 | 100.00 | 0.00 | 1.00 | 1.00 | 0.00 |
| Ordoñez (a) | Snack | 100.00 | 99.70 | −0.30 | 1.00 | 0.98 | −0.02 |
| Ordoñez (a) | Spare_Time_TV | 98.49 | 100.00 | 1.51 | 0.98 | 1.00 | 0.02 |
| Ordoñez (a) | Toileting | 97.29 | 97.29 | 0.00 | 0.86 | 0.86 | 0.00 |
| Ordoñez (b) | Breakfast | 96.06 | 96.80 | 0.74 | 0.41 | 0.62 | 0.21 |
| Ordoñez (b) | Dinner | 97.55 | 97.62 | 0.07 | 0.00 | 0.33 | 0.33 |
| Ordoñez (b) | Grooming | 93.60 | 92.71 | −0.89 | 0.86 | 0.83 | −0.03 |
| Ordoñez (b) | Leaving | 95.38 | 97.70 | 2.32 | 0.71 | 0.86 | 0.15 |
| Ordoñez (b) | Lunch | 97.10 | 97.10 | 0.00 | 0.00 | 0.42 | 0.42 |
| Ordoñez (b) | Showering | 100.00 | 100.00 | 0.00 | 0.60 | 0.60 | 0.00 |
| Ordoñez (b) | Sleeping | 94.05 | 100.00 | 5.95 | 0.34 | 1.00 | 0.66 |
| Ordoñez (b) | Snack | 90.93 | 91.97 | 1.04 | 0.40 | 0.60 | 0.20 |
| Ordoñez (b) | Spare_Time_TV | 88.55 | 92.35 | 3.80 | 0.73 | 0.85 | 0.12 |
| Ordoñez (b) | Toileting | 93.08 | 94.57 | 1.49 | 0.80 | 0.85 | 0.05 |
| Average | 97.42 | 98.04 | 0.62 | 0.78 | 0.86 | 0.08 | |
Figure 6Example of an event-based activity segmentation.
Global classification performance in a simulation of a real scenario.
| Percent Correct | F-Measure | |||
|---|---|---|---|---|
| Activity | Classic | Proposal | Classic | Proposal |
| Go to bed | 56.91 | 60.16 | 0.00 | 0.20 |
| Prepare dinner | 90.46 | 96.29 | 0.51 | 0.39 |
| Use the toilet | 84.84 | 80.16 | 0.76 | 0.82 |
| Get drink | 92.54 | 92.30 | 0.52 | 0.52 |
| Leave the house | 76.39 | 78.56 | 0.82 | 0.83 |
| Take a shower | 92.30 | 94.13 | 0.41 | 0.44 |
| Prepare breakfast | 93.86 | 95.13 | 0.36 | 0.50 |
| 83.90 | 85.25 | 0.48 | 0.53 | |