| Literature DB >> 33182258 |
Franck Tchuente1,2, Natalie Baddour1, Edward D Lemaire2,3.
Abstract
Recognizing aggressive movements is a challenging task in human activity recognition. Wearable smartwatch technology with machine learning may be a viable approach for human aggressive behavior classification. This research identified a viable classification model and feature selector (CM-FS) combination for separating aggressive from non-aggressive movements using smartwatch data and determined if only one smartwatch is sufficient for this task. A ranking method was used to select relevant CM-FS models across accuracy, sensitivity, specificity, precision, F-score, and Matthews correlation coefficient (MCC). The Waikato environment for knowledge analysis (WEKA) was used to run 6 machine learning classifiers (random forest, k-nearest neighbors (kNN), multilayer perceptron neural network (MP), support vector machine, naïve Bayes, decision tree) coupled with three feature selectors (ReliefF, InfoGain, Correlation). Microsoft Band 2 accelerometer and gyroscope data were collected during an activity circuit that included aggressive (punching, shoving, slapping, shaking) and non-aggressive (clapping hands, waving, handshaking, opening/closing a door, typing on a keyboard) tasks. A combination of kNN and ReliefF was the best CM-FS model for separating aggressive actions from non-aggressive actions, with 99.6% accuracy, 98.4% sensitivity, 99.8% specificity, 98.9% precision, 0.987 F-score, and 0.984 MCC. kNN and random forest classifiers, combined with any of the feature selectors, generated the top models. Models with naïve Bayes or support vector machines had poor performance for sensitivity, F-score, and MCC. Wearing the smartwatch on the dominant wrist produced the best single-watch results. The kNN and ReliefF combination demonstrated that this smartwatch-based approach is a viable solution for identifying aggressive behavior. This wrist-based wearable sensor approach could be used by care providers in settings where people suffer from dementia or mental health disorders, where random aggressive behaviors often occur.Entities:
Keywords: aggressive movements; feature selection; machine learning classifiers; performance metrics; smartwatches
Mesh:
Year: 2020 PMID: 33182258 PMCID: PMC7664911 DOI: 10.3390/s20216377
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1(a) Microsoft band 2 (MSB2) accelerometer and gyroscope axes orientation. (b) Participant punching the body opponent bag.
Activities.
| Movement | Activity | Description |
|---|---|---|
| Aggressive movements | Punch | Participant punches BOB eight times, alternating hands |
| Shove | Participant aggressively shoves BOB five times with both hands | |
| Slap | Participant aggressively slaps BOB ten times, alternating hands | |
| Shake | Participant holds BOB’s neck and shakes BOB’s back and forth five times | |
| Transitions | Set of movements between an aggressive action and non-aggressive action (i.e., sitting, standing, moving, still) | |
| Non-aggressive movements | Clap | Participant claps their hands ten times |
| Wave | Participant waves with the preferred hand as if they are saying goodbye | |
| Handshake | Participant handshakes the project assistant | |
| Open/close door | Participant opens and closes the door three times | |
| Type on a keyboard | Participant types the first verse of the Canadian national anthem |
Figure 2Accelerometer linear acceleration (x-axis).
Figure 3Tri-axial linear acceleration of participant 1.
Figure 4Tri-axial angular acceleration of participant 1.
Figure 5Extracting the mean feature from raw data sliding windows.
Feature description.
| Feature | Description | # Features |
|---|---|---|
|
| ||
|
| Average of the signal |
|
|
| Variance of the signal |
|
|
| Median of the signal |
|
|
| Range of the signal |
|
|
| Deviation from the signal mean |
|
|
| Asymmetry of the sensor signal distribution |
|
|
| How peaked the sensor signal distribution is |
|
|
| Correlation between two sensor axes, and between accelerometer and gyroscope sensors |
|
|
| Area under the curve |
|
|
| Acceleration magnitude squared and summed over three axes |
|
|
| ||
|
| Average movement intensity (MI): The Euclidean norm of the total acceleration vector after removing the static gravitational acceleration, where |
|
|
| The acceleration magnitude summed over three axes within each window normalized by the window length |
|
|
| Difference between the highest and the lowest value of over the window |
|
Classification method and feature selection combination sorted by summed rank (best to worst).
|
| ||||||
|
|
|
|
|
|
| |
| kNN-ReF | 0.996 | 0.984 | 0.998 | 0.989 | 0.987 | 0.984 |
| RF-IG | 0.992 | 0.962 | 0.998 | 0.998 | 0.974 | 0.970 |
| kNN-C | 0.995 | 0.979 | 0.997 | 0.985 | 0.982 | 0.979 |
| kNN-IG | 0.994 | 0.974 | 0.997 | 0.983 | 0.979 | 0.975 |
| RF-C | 0.990 | 0.949 | 0.998 | 0.986 | 0.967 | 0.962 |
| RF-ReF | 0.983 | 0.897 | 0.998 | 0.988 | 0.94 | 0.932 |
| DT-IG | 0.985 | 0.941 | 0.993 | 0.959 | 0.95 | 0.941 |
| DT-C | 0.983 | 0.932 | 0.992 | 0.956 | 0.944 | 0.934 |
| MP-C | 0.966 | 0.837 | 0.989 | 0.93 | 0.881 | 0.862 |
| MP-IG | 0.965 | 0.841 | 0.988 | 0.924 | 0.881 | 0.862 |
| DT-ReF | 0.959 | 0.844 | 0.98 | 0.883 | 0.863 | 0.839 |
| SVM-C | 0.949 | 0.774 | 0.98 | 0.876 | 0.822 | 0.794 |
| SVM-ReF | 0.870 | 0.152 | 0.998 | 0.931 | 0.261 | 0.346 |
| SVM-IG | 0.945 | 0.756 | 0.979 | 0.865 | 0.807 | 0.777 |
| NB-C | 0.935 | 0.822 | 0.955 | 0.767 | 0.793 | 0.756 |
| MP-ReF | 0.933 | 0.722 | 0.97 | 0.812 | 0.764 | 0.727 |
| NB-IG | 0.929 | 0.813 | 0.949 | 0.742 | 0.776 | 0.735 |
| NB-ReF | 0.855 | 0.54 | 0.911 | 0.52 | 0.53 | 0.444 |
|
| ||||||
|
|
|
|
|
|
| |
| kNN-ReF | 1 | 1 | 1 | 2 | 1 | 1 |
| RF-IG | 4 | 4 | 1 | 1 | 4 | 4 |
| kNN-C | 2 | 2 | 6 | 5 | 2 | 2 |
| kNN-IG | 3 | 3 | 6 | 6 | 3 | 3 |
| RF-C | 5 | 5 | 1 | 4 | 5 | 5 |
| RF-ReF | 8 | 8 | 1 | 3 | 8 | 8 |
| DT-IG | 6 | 6 | 8 | 7 | 6 | 6 |
| DT-C | 7 | 7 | 9 | 8 | 7 | 7 |
| MP-C | 9 | 11 | 10 | 10 | 9 | 9 |
| MP-IG | 10 | 10 | 11 | 11 | 9 | 9 |
| DT-ReF | 11 | 9 | 12 | 12 | 11 | 11 |
| SVM-C | 12 | 14 | 12 | 13 | 12 | 12 |
| SVM-ReF | 17 | 18 | 1 | 9 | 18 | 18 |
| SVM-IG | 13 | 15 | 14 | 14 | 13 | 13 |
| NB-C | 14 | 12 | 16 | 16 | 14 | 14 |
| MP-ReF | 15 | 16 | 15 | 15 | 16 | 16 |
| NB-IG | 16 | 13 | 17 | 17 | 15 | 15 |
| NB-ReF | 18 | 17 | 18 | 18 | 17 | 17 |
Acc. = Accuracy, Sens. = Sensitivity, Spec. = Specificity, Prec. = Precision, FS = F-score, MCC = Matthews correlation coefficient.
K-nearest neighbors (kNN)-ReliefF (ReF) confusion matrix.
|
| |||
| Aggressive | Non-Aggressive | ||
|
| Aggressive | 18,073 | 189 |
| Non-aggressive | 306 | 103,739 | |
Performance metrics (kNN-ReF).
| Accuracy | Sensitivity | Specificity | Precision | F-Score | MCC | |
|---|---|---|---|---|---|---|
|
| 0.996 | 0.984 | 0.998 | 0.989 | 0.987 | 0.984 |
|
| 0.981 | 0.981 | 0.936 | 0.981 | 0.981 | 0.926 |
|
| 0.980 | 0.980 | 0.931 | 0.980 | 0.980 | 0.920 |
Best features selected for both wrists, dominant wrist, and non-dominant wrist.
|
| Pcc_Gyr_yz_1 |
| Pcc_Acc_yz |
|
| Pcc_Acc_yz |
Pcc = Pairwise correlation coefficient, Gyr = Gyroscope, Acc = Acceleration, Med = Median, Skew = Skewness, SMA = Signal magnitude area, Diff = Maximum difference, Var = Variance, Std = Standard deviation, 1 = Left wrist, 2 = Right wrist.