| Literature DB >> 30200188 |
Luis A Trejo1, Ari Yair Barrera-Animas2.
Abstract
In this work, we present a first step towards an efficient one-class classifier well suited for mobile devices to be implemented as part of a user application coupled with wearable sensors in the context of personal risk detection. We compared one-class Support Vector Machine (ocSVM) and OCKRA (One-Class K-means with Randomly-projected features Algorithm). Both classifiers were tested using four versions of the publicly available PRIDE (Personal RIsk DEtection) dataset. The first version is the original PRIDE dataset, which is based only on time-domain features. We created a second version that is simply an extension of the original dataset with new attributes in the frequency domain. The other two datasets are a subset of these two versions, after a feature selection procedure based on a correlation matrix analysis followed by a Principal Component Analysis. All experiments were focused on the performance of the classifiers as well as on the execution time during the training and classification processes. Therefore, our goal in this work is twofold: we aim at reducing execution time but at the same time maintaining a good classification performance. Our results show that OCKRA achieved on average, 89.1% of Area Under the Curve (AUC) using the full set of features and 83.7% when trained using a subset of them. Furthermore, regarding execution time, OCKRA reports in the best case a 33.1% gain when using a subset of the feature vector, instead of the full set of features. These results are better than those reported by ocSVM, in which case, even though the AUCs are very close to each other, execution times are significantly higher in all cases, for example, more than 20 h versus less than an hour in the worst-case scenario. Having in mind the trade-off between classification performance and efficiency, our results support the choice of OCKRA as our best candidate so far for a mobile implementation where less processing and memory resources are at hand. OCKRA reports a very encouraging speed-up without sacrificing the classifier performance when using the PRIDE dataset based only on time-domain attributes after a feature selection procedure.Entities:
Keywords: behaviour analysis; classifier efficiency; frequency-domain features; one-class classification; personal risk detection; principal component analysis; time-domain features; wearable sensors
Mesh:
Year: 2018 PMID: 30200188 PMCID: PMC6163624 DOI: 10.3390/s18092857
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Description of sensors in the band.
| Sensor | Description | Operation Frequency |
|---|---|---|
| Accelerometer | Provides | 8 Hz |
| Gyroscope | Provides | 8 Hz |
| Distance | Gives the total distance in cm, current speed in cm/s, current pace in ms/m. | 1 Hz |
| Heart Rate | Gives the number of beats per minute. | 1 Hz |
| Pedometer | Delivers the total number of steps the user has accomplished. | 1 Hz |
| Skin Temperature | Gives the current skin temperature of the user in Celsius. | 33 mHz |
| Ultraviolet exposure | Delivers the current ultraviolet radiation exposure intensity. | 16 mHz |
| Calories | Provides total calories burned by the user. | 1 Hz |
Feature vector structure.
| Feature Number | Feature Name | Feature Number | Feature Name |
|---|---|---|---|
| 1 | 14 | ||
| 2 | 15 | ||
| 3 | 16 | ||
| 4 | 17 | ||
| 5 | 18 | ||
| 6 | 19 | Heart Rate | |
| 7 | 20 | Skin Temperature | |
| 8 | 21 | Pace | |
| 9 | 22 | Speed | |
| 10 | 23 | Ultraviolet | |
| 11 | 24 | ||
| 12 | 25 | ||
| 13 | 26 |
Figure 1Feature selection process performed over every user of the PRIDE training dataset.
Figure 2Correlation matrix of user 1.
Results of the correlation matrix analysis for feature selection in the PRIDE dataset.
| Feature Number | Frequency | Feature Name | Feature Number | Frequency | Feature Name |
|---|---|---|---|---|---|
| F1 | 9 |
|
|
| |
|
|
|
| F15 | 15 | |
| F3 | 8 | F16 | 21 | ||
| F4 | 19 | F17 | 8 | ||
| F5 | 15 |
|
|
| |
|
|
|
| F19 | 0 | Heart Rate |
| F7 | 0 | F20 | 0 | Skin Temperature | |
| F8 | 2 | F21 | 3 | ||
| F9 | 0 | F22 | 13 | ||
|
|
|
| F23 | 2 | Speed |
| F11 | 0 | F24 | 0 | Pace | |
| F12 | 10 | F25 | 1 | ||
| F13 | 14 | F26 | 0 | Ultraviolet |
Figure 3PCA results for user 1 from PRIDE that shows the percentage of explained variance of the first 10 dimensions.
Figure 4PCA results for user 1. Each graph represents the contribution of every feature to data variability in (a) dimension 1; (b) dimension 2; (c) dimension 3; (d) dimension 4; and (e) dimension 5; (f) contribution of every feature in the aggregated five dimensions.
Principal Component Analysis results for feature selection in the PRIDE dataset.
| Feature Number | Frequency | Feature Name | Feature Number | Frequency | Feature Name |
|---|---|---|---|---|---|
| F1 | 52 | F16 | 37 | ||
| F3 | 31 | F17 | 53 | ||
| F4 | 37 | F19 | 18 | Heart Rate | |
| F5 | 53 | F20 | 16 | Skin Temperature | |
|
|
|
| F21 | 29 | |
| F8 | 28 | F22 | 29 | ||
|
|
|
| F23 | 31 | Speed |
|
|
|
| F24 | 29 | Pace |
| F12 | 26 | F25 | 15 | ||
| F13 | 52 |
|
|
| |
| F15 | 58 |
Figure 5Feature selection process. Phase 1: CM Analysis.
Figure 6Feature selection process. Phase 2: PCA analysis.
New frequency-domain attributes.
| Feature Name | Feature Formula |
|---|---|
| FFT energy |
|
| FFT mean energy |
|
| FFT STD energy |
|
| Peak power | max |
| Peak DFT bin |
|
| Peak magnitude | max |
| Entropy |
|
| Spectral Entropy |
|
| Peak Frequency | max |
| Peak energy | max |
Note: FFT stands for Fast Fourier Transform; STD stands for Standard Deviation; DFT stands for Discrete Fourier Transform.
Results of the correlation matrix analysis for feature selection in the extended PRIDE dataset. Only removed features are shown.
| Feature Number | Frequency | Feature Name |
|---|---|---|
| F1 | 23 | Energy GyroSensor |
| F3 | 23 | Standard Deviation Energy GyroSensor |
| F5 | 23 | Peak DFT Bin GyroSensor |
| F7 | 23 | Peak Magnitude GyroSensor |
| F10 | 23 | Peak Energy GyroSensor |
| F11 | 22 | Energy GyroSensor |
| F15 | 23 | Peak DFT Bin GyroSensor |
| F17 | 23 | Peak Magnitude GyroSensor |
| F18 | 22 | Entropy GyroSensor |
| F20 | 23 | Peak Energy GyroSensor |
| F21 | 23 | Energy GyroSensor |
Principal Component Analysis results for feature selection in the extended PRIDE dataset. Only removed features are shown.
| Feature Number | Frequency | Feature Name |
|---|---|---|
| F38 | 0 | Entropy GyroSensor |
| F48 | 0 | Entropy GyroSensor |
| F58 | 0 | Entropy GyroSensor |
| F98 | 0 | Ultraviolet |
ocSVM and OCKRA performance based on the AUC with different datasets.
| User | ocSVM | OCKRA | ||||||
|---|---|---|---|---|---|---|---|---|
| DS-1 | DS-2 | DS-3 | DS-4 | DS-1 | DS-2 | DS-3 | DS-4 | |
| User 1 | 97.3 | 97.3 | 79.1 | 78.5 | 98.8 | 95.5 | 78.0 | 81.0 |
| User 2 | 94.5 | 94.3 | 82.2 | 81.6 | 95.7 | 92.0 | 85.5 | 82.9 |
| User 3 | 87.4 | 87.2 | 74.5 | 73.9 | 91.2 | 84.1 | 82.4 | 81.9 |
| User 4 | 83.9 | 82.1 | 57.7 | 57.1 | 88.2 | 83.6 | 61.4 | 61.0 |
| User 5 | 80.8 | 80.8 | 65.7 | 65.8 | 90.2 | 71.5 | 68.8 | 61.9 |
| User 6 | 96.1 | 96.1 | 81.8 | 81.8 | 98.2 | 97.4 | 87.9 | 82.3 |
| User 7 | 69.4 | 68.1 | 64.9 | 64.1 | 79.2 | 76.9 | 65.6 | 59.5 |
| User 8 | 93.8 | 94.0 | 73.2 | 71.6 | 92.4 | 86.8 | 77.6 | 72.8 |
| User 9 | 95.3 | 95.5 | 76.4 | 75.6 | 92.7 | 89.3 | 81.5 | 77.8 |
| User 10 | 94.0 | 94.3 | 70.0 | 69.8 | 93.7 | 91.5 | 69.3 | 71.9 |
| User 11 | 93.4 | 93.8 | 66.5 | 66.1 | 90.9 | 79.4 | 69.9 | 66.8 |
| User 12 | 74.6 | 73.4 | 73.2 | 73.3 | 80.3 | 77.6 | 71.4 | 69.4 |
| User 13 | 75.8 | 73.4 | 74.1 | 73.4 | 80.5 | 76.0 | 70.7 | 69.2 |
| User 14 | 78.0 | 78.2 | 63.0 | 62.9 | 81.9 | 79.0 | 66.8 | 65.1 |
| User 15 | 93.8 | 94.4 | 71.5 | 70.8 | 94.5 | 89.9 | 77.4 | 69.3 |
| User 16 | 83.2 | 83.0 | 73.6 | 73.2 | 87.9 | 84.3 | 73.0 | 73.8 |
| User 17 | 98.1 | 99.0 | 82.5 | 82.1 | 98.0 | 84.1 | 81.6 | 81.9 |
| User 18 | 89.1 | 89.0 | 77.0 | 77.0 | 86.9 | 75.9 | 70.6 | 72.5 |
| User 19 | 89.4 | 90.0 | 64.7 | 64.2 | 89.6 | 86.3 | 64.5 | 61.8 |
| User 20 | 90.5 | 90.2 | 78.0 | 77.8 | 92.2 | 88.2 | 79.8 | 73.6 |
| User 21 | 98.4 | 98.4 | 89.5 | 89.4 | 97.9 | 94.2 | 87.2 | 88.3 |
| User 22 | 78.3 | 77.8 | 70.8 | 70.1 | 79.2 | 77.4 | 70.2 | 71.5 |
| User 23 | 53.0 | 52.6 | 63.3 | 62.9 | 68.9 | 64.2 | 72.3 | 60.9 |
|
|
|
|
|
|
|
|
|
|
Wilcoxon signed-ranks test comparison between AUC obtained respectively by ocSVM and OCKRA classifiers when using the DS-1 dataset.
| Comparison |
|
| Hypothesis ( | |
|---|---|---|---|---|
| OCKRA vs. ocSVM | 221.0 | 55.0 | Rejected | 0.010793 |
Wilcoxon signed-ranks test comparison between AUC obtained respectively by ocSVM and OCKRA classifiers when using the DS-2 dataset.
| Comparison |
|
| Hypothesis ( | |
|---|---|---|---|---|
| ocSVM vs. OCKRA | 202.0 | 74.0 | Rejected | 0.04979 |
Execution time required by the classifier training phase using different datasets. The column indicates the gain in percentage when using a subset against the full feature vector. Experiments were performed using an Intel core i7-6600U (Mountain View, CA, USA) at 2.60–2.81 GHz and 16 GB RAM.
| Domain | Dataset | Dimension | ocSVM | OCKRA | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| User 1 |
| User 17 |
| User 1 |
| User 17 |
| |||
| Time | DS-1 | full | 21:14:59 | 02:39:36 | 00:55:23 | 00:04:52 | ||||
| DS-2 | subset | 21:07:07 | 0.6% | 02:38:28 | 0.7% | 00:37:01 | 33.1% | 00:03:55 | 19.5% | |
| Time+Freq | DS-3 | full | 19:31:21 | 01:56:13 | 03:37:53 | 00:20:52 | ||||
| DS-4 | subset | 19:05:31 | 2.2% | 01:55:05 | 0.9% | 03:11:17 | 12.2% | 00:17:37 | 15.5% | |
Time/frequency-domain feature vector part 1.
| Feature Number | Feature Name |
|---|---|
| 1 | Energy Gyroscope |
| 2 | Mean Energy Gyroscope |
| 3 | Standard Deviation of Energy Gyroscope |
| 4 | Peak Power Gyroscope |
| 5 | Peak DFT Bin Gyroscope |
| 6 | Spectral Entropy Gyroscope |
| 7 | Peak Magnitude Gyroscope |
| 8 | Entropy Gyroscope |
| 9 | Peak Frequency Gyroscope |
| 10 | Peak Energy Gyroscope |
| 11 | Energy Gyroscope |
| 12 | Mean Energy Gyroscope |
| 13 | Standard Deviation of Energy Gyroscope |
| 14 | Peak Power Gyroscope |
| 15 | Peak DFT Bin Gyroscope |
| 16 | Spectral Entropy Gyroscope |
| 17 | Peak Magnitude Gyroscope |
| 18 | Entropy Gyroscope |
| 19 | Peak Frequency Gyroscope |
| 20 | Peak Energy Gyroscope |
| 21 | Energy Gyroscope |
| 22 | Mean Energy Gyroscope |
| 23 | Standard Deviation of Energy Gyroscope |
| 24 | Peak Power Gyroscope |
| 25 | Peak DFT Bin Gyroscope |
| 26 | Spectral Entropy Gyroscope |
| 27 | Peak Magnitude Gyroscope |
| 28 | Entropy Gyroscope |
| 29 | Peak Frequency Gyroscope |
| 30 | Peak Energy Gyroscope |
| 31 | Energy Gyroscope Angular Velocity |
| 32 | Mean Energy Gyroscope Angular Velocity |
| 33 | Standard Deviation of Energy Gyroscope Angular Velocity |
| 34 | Peak Power Gyroscope Angular Velocity |
| 35 | Peak DFT Bin Gyroscope Angular Velocity |
| 36 | Spectral Entropy Gyroscope Angular Velocity |
| 37 | Peak Magnitude Gyroscope Angular Velocity |
| 38 | Entropy Gyroscope Angular Velocity |
| 39 | Peak Frequency Gyroscope Angular Velocity |
| 40 | Peak Energy Gyroscope Angular Velocity |
| 41 | Energy Gyroscope Angular Velocity |
| 42 | Mean Energy Gyroscope Angular Velocity |
| 43 | Standard Deviation of Energy Gyroscope Angular Velocity |
| 44 | Peak Power Gyroscope Angular Velocity |
| 45 | Peak DFT Bin Gyroscope Angular Velocity |
| 46 | Spectral Entropy Gyroscope Angular Velocity |
| 47 | Peak Magnitude Gyroscope Angular Velocity |
| 48 | Entropy Gyroscope Angular Velocity |
| 49 | Peak Frequency Gyroscope Angular Velocity |
| 50 | Peak Energy Gyroscope Angular Velocity |
Time-/Frequency-domain feature vector part 2.
| Feature Number | Feature Name |
|---|---|
| 51 | Energy Gyroscope Angular Velocity |
| 52 | Mean Energy Gyroscope Angular Velocity |
| 53 | Standard Deviation of Energy Gyroscope Angular Velocity |
| 54 | Peak Power Gyroscope Angular Velocity |
| 55 | Peak DFT Bin Gyroscope Angular Velocity |
| 56 | Spectral Entropy Gyroscope Angular Velocity |
| 57 | Peak Magnitude Gyroscope Angular Velocity |
| 58 | Entropy Gyroscope Angular Velocity |
| 59 | Peak Frequency Gyroscope Angular Velocity |
| 60 | Peak Energy Gyroscope Angular Velocity |
| 61 | Energy Accelerometer |
| 62 | Mean Energy Accelerometer |
| 63 | Standard Deviation of Energy Accelerometer |
| 64 | Peak Power Accelerometer |
| 65 | Peak DFT Bin Accelerometer |
| 66 | Spectral Entropy Accelerometer |
| 67 | Peak Magnitude Accelerometer |
| 68 | Entropy Accelerometer |
| 69 | Peak Frequency Accelerometer |
| 70 | Peak Energy Accelerometer |
| 71 | Energy Accelerometer |
| 72 | Mean Energy Accelerometer |
| 73 | Standard Deviation of Energy Accelerometer |
| 74 | Peak Power Accelerometer |
| 75 | Peak DFT Bin Accelerometer |
| 76 | Spectral Entropy Accelerometer |
| 77 | Peak Magnitude Accelerometer |
| 78 | Entropy Accelerometer |
| 79 | Peak Frequency Accelerometer |
| 80 | Peak Energy Accelerometer |
| 81 | Energy Accelerometer |
| 82 | Mean Energy Accelerometer |
| 83 | Standard Deviation of Energy Accelerometer |
| 84 | Peak Power Accelerometer |
| 85 | Peak DFT Bin Accelerometer |
| 86 | Spectral Entropy Accelerometer |
| 87 | Peak Magnitude Accelerometer |
| 88 | Entropy Accelerometer |
| 89 | Peak Frequency Accelerometer |
| 90 | Peak Energy Accelerometer |
| 91 | Heart Rate |
| 92 | Skin Temperature |
| 93 | |
| 94 | |
| 95 | Speed |
| 96 | Pace |
| 97 | |
| 98 | Ultraviolet |