| Literature DB >> 31935943 |
Nadeem Ahmed1, Jahir Ibna Rafiq2, Md Rashedul Islam3.
Abstract
Human activity recognition (HAR) techniques are playing a significant role in monitoring the daily activities of human life such as elderly care, investigation activities, healthcare, sports, and smart homes. Smartphones incorporated with varieties of motion sensors like accelerometers and gyroscopes are widely used inertial sensors that can identify different physical conditions of human. In recent research, many works have been done regarding human activity recognition. Sensor data of smartphone produces high dimensional feature vectors for identifying human activities. However, all the vectors are not contributing equally for identification process. Including all feature vectors create a phenomenon known as 'curse of dimensionality'. This research has proposed a hybrid method feature selection process, which includes a filter and wrapper method. The process uses a sequential floating forward search (SFFS) to extract desired features for better activity recognition. Features are then fed to a multiclass support vector machine (SVM) to create nonlinear classifiers by adopting the kernel trick for training and testing purpose. We validated our model with a benchmark dataset. Our proposed system works efficiently with limited hardware resource and provides satisfactory activity identification.Entities:
Keywords: SVM; accelerometer; feature selection; gyroscope; human activity recognition (HAR); machine learning; sensor
Year: 2020 PMID: 31935943 PMCID: PMC6983014 DOI: 10.3390/s20010317
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Structure of the proposed model of activity identification.
Statistical features from sensor data.
| Features | Equation | Features | Equation |
|---|---|---|---|
| Mean |
| Root Mean Square |
|
| Standard Deviation |
| Energy |
|
| Median |
| SRA |
|
| Maximum | MAX(M) | Peak to Peak |
|
| Minimum | MIN(M) | Crest Factor |
|
| Interquartile Range |
| Impulse Factor |
|
| Correlation coefficient |
| Margin Factor |
|
| Skewness |
| Shape Factor |
|
| Kurtosis |
| Frequency Center |
|
| Cross Correlation |
| RMS Frequency |
|
| Absolute Mean value |
| Root Variant Frequency |
|
| Variance |
| ||
Figure 2Overall block diagram of the proposed hybrid feature selection.
Figure 3Examples of exceptions in feature distribution. (a) Classes are well-separated; (b) Classes are overlapped.
Figure 4Consideration of outmost sample of a class.
Figure 5(a) Within-class compactness value and (b) between-class distance value calculation.
Figure 6Overall block diagram of the validation process.
Figure 7Sample accelerometer data (a,c,e,g,i,k) and gyroscope data (b,d,f,h,j,l) for different activities: (a,c) Stand to sit activity, (e,g) sitting activity, (i,k) walking activity, (b,d) stand to lie, (f,h) laying activity, (j,l) sit to lie activity.
Original feature vector.
| Acc-x | Acc-y | Acc-z | Gyro-x | Gyro-y | Gyro-z | ||
|---|---|---|---|---|---|---|---|
| 1 | Mean | Ax f1 | Ay f1 | Az f1 | Gx f1 | Gy f1 | Gz f1 |
| 2 | Standard Deviation | Ax f2 | Ay f2 | Az f2 | Gx f2 | Gy f2 | Gz f2 |
| 3 | Median | Ax f3 | Ay f3 | Az f3 | Gx f3 | Gy f3 | Gz f3 |
| 4 | Maximum | Ax f4 | Ay f4 | Az f4 | Gx f4 | Gy f4 | Gz f4 |
| 5 | Minimum | Ax f5 | Ay f5 | Az f5 | Gx f5 | Gy f5 | Gz f5 |
| 6 | Interquartile Range | Ax f6 | Ay f6 | Az f6 | Gx f6 | Gy f6 | Gz f6 |
| 7 | Correlation coefficient | Ax f7 | Ay f7 | Az f7 | Gx f7 | Gy f7 | Gz f7 |
| 8 | Skewness | Ax f8 | Ay f8 | Az f8 | Gx f8 | Gy f8 | Gz f8 |
| 9 | Kurtosis | Ax f9 | Ay f9 | Az f9 | Gx f9 | Gy f9 | Gz f9 |
| 10 | Cross Correlation | Ax f10 | Ay f10 | Az f10 | Gx f10 | Gy f10 | Gz f10 |
| 11 | Mean Absolute Value | Ax f11 | Ay f11 | Az f11 | Gx f11 | Gy f11 | Gz f11 |
| 12 | Variance | Ax f12 | Ay f12 | Az f12 | Gx f12 | Gy f12 | Gz f12 |
| 13 | Root Mean Square | Ax f13 | Ay f13 | Az f13 | Gx f13 | Gy f13 | Gz f13 |
| 14 | Energy | Ax f14 | Ay f14 | Az f14 | Gx f14 | Gy f14 | Gz f14 |
| 15 | SRA | Ax f15 | Ay f15 | Az f15 | Gx f15 | Gy f15 | Gz f15 |
| 16 | Peak to Peak | Ax f16 | Ay f16 | Az f16 | Gx f16 | Gy f16 | Gz f16 |
| 17 | Crest Factor | Ax f17 | Ay f17 | Az f17 | Gx f17 | Gy f17 | Gz f17 |
| 18 | Impulse Factor | Ax f18 | Ay f18 | Az f18 | Gx f18 | Gy f18 | Gz f18 |
| 19 | Margin Factor | Ax f19 | Ay f19 | Az f19 | Gx f19 | Gy f19 | Gz f19 |
| 20 | Shape Factor | Ax f20 | Ay f20 | Az f20 | Gx f20 | Gy f20 | Gz f20 |
| 21 | Frequency Center | Ax f21 | Ay f21 | Az f21 | Gx f21 | Gy f21 | Gz f21 |
| 22 | RMS Frequency | Ax f22 | Ay f22 | Az f22 | Gx f22 | Gy f22 | Gz f22 |
| 23 | Root Variant Frequency | Ax f23 | Ay f23 | Az f23 | Gx f23 | Gy f23 | Gz f23 |
Figure 8Accuracy of different feature sets produced by support vector machine in wrapper method. Highest accuracy is mark in red circle: (a) Accelerometer X-axial feature set; (b) accelerometer Y-axial feature set; (c) accelerometer Z-axial feature set; (d) gyroscope X-axial feature set; (e) gyroscope Y-axial feature set; (f) gyroscope Z-axial feature set.
Overall classification accuracy of final optimal features in wrapper approach in hybrid feature selection.
| Accelerometer Axial | Gyroscope Axial | |||||
|---|---|---|---|---|---|---|
| x | y | z | x | y | z | |
| Best Optimal feature | ||||||
| Overall accuracy | 94.15% | 92.8% | 92.25% | 93.15% | 90.1% | 92.15% |
Figure 9Individual activity accuracies with and without feature selection.
Confusion matrix of classification using optimal feature set.
| Predicted Class | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Walking | Walking Downstairs | Walking Upstairs | Standing | Sitting | Lying | Stand-to-Sit | Sit-to-Stand | Sit-to-Lie | Lie-to-Sit | Stand-to-Lie | Lie-to-Stand | Recall | ||
|
|
| 189 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 97.93% | |
|
| 2 | 259 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 97.00% | |
|
| 5 | 5 | 252 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 95.45% | |
|
| 0 | 0 | 0 | 178 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 98.34% | |
|
| 0 | 0 | 0 | 3 | 175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 98.31% | |
|
| 0 | 0 | 0 | 3 | 0 | 180 | 0 | 0 | 0 | 0 | 2 | 0 | 97.30% | |
|
| 1 | 0 | 1 | 0 | 0 | 0 | 90 | 0 | 0 | 0 | 2 | 0 | 95.74% | |
|
| 0 | 0 | 0 | 0 | 1 | 0 | 0 | 89 | 3 | 0 | 0 | 0 | 95.70% | |
|
| 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 90 | 0 | 2 | 0 | 96.77% | |
|
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 90 | 0 | 3 | 94.74% | |
|
| 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 87 | 0 | 96.67% | |
|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 87 | 97.75% | |
|
| 95.94% | 97.37% | 98.82% | 96.74% | 97.77% | 98.90% | 95.74% | 93.68% | 95.74% | 97.83% | 92.55% | 96.67% | 96.81% | |
Figure 10Comparison of accuracy of different classification model.
Confusion matrix of classification for six basic activities.
| Predicted Class | ||||||||
|---|---|---|---|---|---|---|---|---|
| Walking | Walking Downstairs | Walking Upstairs | Standing | Sitting | Lying | Recall | ||
|
|
| 491 | 2 | 3 | 0 | 0 | 0 | 98.99% |
|
| 4 | 413 | 3 | 0 | 0 | 0 | 98.33% | |
|
| 11 | 1 | 458 | 0 | 0 | 1 | 97.24% | |
|
| 0 | 0 | 1 | 517 | 14 | 0 | 97.18% | |
|
| 0 | 0 | 0 | 11 | 480 | 0 | 97.76% | |
|
| 0 | 0 | 0 | 4 | 0 | 533 | 99.26% | |
|
| 97.04% | 99.28% | 98.49% | 97.18% | 97.17% | 99.81% | 98.13% | |
Classification accuracies of different feature selection algorithms.
| Hybrid Feature Selection | MC-SVM [ | Convnet [ | CAT Feature Selection [ | |
|---|---|---|---|---|
| walking |
| 99% | 98.99% | 89.24% |
| walking downstairs |
| 98% | 100.00% | 100.00% |
| walking upstairs |
| 96% | 100.00% | 94.52% |
| standing |
| 97% | 93.23% | 99.19% |
| sitting |
| 88% | 88.80% | 99.08% |
| lying |
| 100% | 87.71% | 99.12% |
|
|
|
|
|
|