| Literature DB >> 29912174 |
Gaojing Wang1, Qingquan Li2, Lei Wang3, Wei Wang4, Mengqi Wu5, Tao Liu6.
Abstract
Human activity recognition (HAR) is essential for understanding people’s habits and behaviors, providing an important data source for precise marketing and research in psychology and sociology. Different approaches have been proposed and applied to HAR. Data segmentation using a sliding window is a basic step during the HAR procedure, wherein the window length directly affects recognition performance. However, the window length is generally randomly selected without systematic study. In this study, we examined the impact of window length on smartphone sensor-based human motion and pose pattern recognition. With data collected from smartphone sensors, we tested a range of window lengths on five popular machine-learning methods: decision tree, support vector machine, K-nearest neighbor, Gaussian naïve Bayesian, and adaptive boosting. From the results, we provide recommendations for choosing the appropriate window length. Results corroborate that the influence of window length on the recognition of motion modes is significant but largely limited to pose pattern recognition. For motion mode recognition, a window length between 2.5⁻3.5 s can provide an optimal tradeoff between recognition performance and speed. Adaptive boosting outperformed the other methods. For pose pattern recognition, 0.5 s was enough to obtain a satisfactory result. In addition, all of the tested methods performed well.Entities:
Keywords: human motion mode; human pose pattern; machine-learning method; smartphone sensors; window length
Mesh:
Year: 2018 PMID: 29912174 PMCID: PMC6021910 DOI: 10.3390/s18061965
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Overview of human activity recognition (HAR) workflow.
Subject information.
| Height (cm) | [163,170) | [170,175) | [175,180) | |
|---|---|---|---|---|
| Weight (kg) | ||||
| [50,60) | Subject 1, 3 | |||
| [60,70) | Subject 8 | Subject 2 | Subject 4 | |
| [70,80) | Subject 9, 10 | Subject 5, 6, 7 | ||
Figure 2(a) Human motion modes and (b) pose patterns covered in this study.
Figure 3Typical data collection scene. Upper row: elevators 1 and 2 and walking. Lower row: escalators 1 and 2 and going upstairs (from left to right).
Description of adopted smartphone sensors.
| Sensors | Purpose | Data Stream | Description | Manufacturer | Measuring Range | Measuring Accuracy |
|---|---|---|---|---|---|---|
| Gravity sensor | Pose pattern classification |
| Gravity force along | Qualcomm | 39.226593 m/s2 | 0.00119 m/s2 |
|
| Gravity force along | |||||
|
| Gravity force along | |||||
| Accelerometer | Motion mode classification |
| ||||
| Barometer |
| Air pressure measurement | BOSCH | 1100 hPa | 0.00999 hPa |
Feature set.
| No.# | FEATURE | DEFINITION |
|---|---|---|
| 1 | Mean |
|
| 2 | Absolute Mean |
|
| 3 | Variance |
|
| 4 | Standard deviation |
|
| 5 | Mode | Values that appear most frequently in data set |
| 6 | Median | Middle value in a data set |
| 7 | Average Absolute Difference |
|
| 8 | 75th Percentile | Value separating 25% higher data from 75% lower data in a data set. |
| 9 | Interquartile range | Difference between 75th and 25th percentile |
| 10 | Gradient (only for air pressure data) | The coefficient of first-order linear fitting |
| 11 | Coefficients of FFT (Fast Fourier Transform) | Energy of each frequency component |
Confusion matrix in classifying class A.
| Predicted Class | |||
|---|---|---|---|
| A | B | ||
|
|
| TP | FN |
|
| FP | TN | |
Figure 4The 100-time bootstrapping results of motion mode recognition using support vector machine (SVM) and different window lengths (0.5–3 s).
Figure 5Distribution of compressed features of human motion modes with various window lengths: (a) 1 s; (b) 2 s; and (c) 3 s.
Figure 6Average F1 score of motion mode classification using different machine-learning methods and window lengths.
Figure 7Relationship between F1 score and window length (horizontal axis) for different motion modes.
Recommended window size for specific motion mode classification.
| Motion Mode | Recommended Window Size | |||
|---|---|---|---|---|
| F1 Score | ||||
| 85% | 90% | 95% | 99% | |
| Stationary | 1.5 s | 2 s | 3 s | 4.5 s |
| Walking | 1 s | 1.5 s | 3 s | 4 s |
| Up elevator | 0.5 s | 0.5 s | 0.5 s | 1.5 s |
| Down elevator | 0.5 s | 0.5 s | 0.5 s | 1.5 s |
| Up stairs | 2 s | 3 s | 3.5 s | 5 s |
| Down stairs | 1.5 s | 2 s | 2.5 s | 4 s |
| Up escalator | 2 s | 2.5 s | 3.5 s | 4.5 s |
| Down escalator | 2 s | 2.5 s | 3 s | 4.5 s |
Figure 8Distribution of compressed features of human poses with different window lengths: (a) 1 s; (b) 2 s; and (c) 3 s.
Figure 9Average F1 score of pose classification using different machine-learning methods and window lengths.
Figure 10Relationship between F1 score and window length for pose classification.