| Literature DB >> 29301197 |
M Amac Guvensan1, Burak Dusun2, Baris Can3, H Irem Turkmen4.
Abstract
Transportation planning and solutions have an enormous impact on city life. To minimize the transport duration, urban planners should understand and elaborate the mobility of a city. Thus, researchers look toward monitoring people's daily activities including transportation types and duration by taking advantage of individual's smartphones. This paper introduces a novel segment-based transport mode detection architecture in order to improve the results of traditional classification algorithms in the literature. The proposed post-processing algorithm, namely the Healing algorithm, aims to correct the misclassification results of machine learning-based solutions. Our real-life test results show that the Healing algorithm could achieve up to 40% improvement of the classification results. As a result, the implemented mobile application could predict eight classes including stationary, walking, car, bus, tram, train, metro and ferry with a success rate of 95% thanks to the proposed multi-tier architecture and Healing algorithm.Entities:
Keywords: accelerometer; correction of misclassified vehicle types; gyroscope; magnetometer; pedestrian and vehicular activities; post-processing; smartphone; transport mode detection
Year: 2017 PMID: 29301197 PMCID: PMC5796445 DOI: 10.3390/s18010087
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Multi-tiered architecture for transport mode detection.
Transport mode dataset.
| Transport Mode | Number of Trips | Total Time (min) |
|---|---|---|
| Bus | 53 | 1186 |
| Car | 27 | 500 |
| Ferry | 15 | 179 |
| Metro | 56 | 976 |
| Train | 34 | 462 |
| Tram | 25 | 677 |
| Walking | 82 | 413 |
| Stationary | 33 | 315 |
Figure 2ROC of (a) walking activity detection by varying the values of and (b) stationary activity detection by varying the values of
Feature set.
| Features | |
|---|---|
| MinimumReduction |
|
| MaximumReduction |
|
| MinimumIncrease |
|
| MaximumIncrease |
|
| MinimumValue |
|
| MaximumValue |
|
| Range |
|
| ArithmeticMean |
|
| HarmonicMean |
|
| QuadraticMean |
|
| Mod |
|
| Median |
|
| Variance |
|
| StandardDeviation |
|
| Arithmetic Mean of Instant Exchange |
|
| Quadratic Mean of Instant Exchange |
|
| Covariance |
|
| Freq _above_median |
|
| Freq_below_median |
|
| Freq_between_median |
|
| Freq_above_mean |
|
| Freq_below_mean |
|
| Freq_between_mean |
|
| MaxConsecutive_above_median |
|
| MaxConsecutive_below_median |
|
| MaxConsecutive_between_median |
|
| MaxConsecutive_above_mean |
|
| MaxConsecutive_below_mean |
|
| MaxConsecutive_between_mean |
|
Performance of the classification algorithms on the transportation mode dataset.
| Classification Algorithm | Recall |
|---|---|
| Random Forest | 80.62% |
| J48 | 72.22% |
| k-NN | 70.04% |
| Naive Bayes | 71.03% |
Figure 3Results of initial classification (first row) and the Healing algorithm (second row) for the first special case.
Figure 4Results of initial classification (first row) and the Healing algorithm (second row) for the second special case.
Figure 5Results of initial classification (first row) and the Healing algorithm (second row) for the third special case.
Figure 6The effect of sampling frequency on the classification results.
Figure 7The effect of window size on the classification results.
Figure 8The effect of the overlapping ratio on the classification results.
Performance of the transport mode detection by using only common time domain features and by using the whole feature set.
| Transport Mode | Recall Rates Obtained by Using Only Common Features | Recall Rates Obtained by Whole Feature Set |
|---|---|---|
| Bus | 94.04 | 95.39 |
| Car | 96.87 | 93.22 |
| Ferry | 90.8 | 92.3 |
| Metro | 63.58 | 68.33 |
| Train | 78.94 | 89.47 |
| Tram | 41.02 | 55.31 |
| Overall | 78.17 | 82.80 |
Figure 9The effect of the number of features on the classification results.
Confusion matrix of vehicular activity detection.
| Actual Class | Predicted Class | Ground Truth | Recall | |
|---|---|---|---|---|
| Pedestrian Activities | Vehicular Activities | |||
| Pedestrian Activities | 269 | 46 | 315 | 85.4% |
| Vehicular Activities | 80 | 2875 | 2955 | 97.3% |
Figure 10User interface of mobile Transport Mode Detection application. (a) Transport Mode Detection Screen; (b) results of Initial Transport Mode Detection and Healing algorithm for a given date; (c) Statistics of user actions.
Confusion matrix without applying the Healing algorithm.
| Actual Class | Predicted Class | Ground Truth | Recall | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Bus | Car | Ferry | Metro | Train | Tram | Walking | Stationary | |||
| Bus | 143 | 12 | 5 | 1 | 6 | 4 | 6 | 6 | 183 | 78.1% |
| Car | 6 | 226 | 11 | 1 | 2 | 1 | 4 | 3 | 254 | 90.0% |
| Ferry | 20 | 2 | 59 | 2 | 0 | 2 | 0 | 6 | 91 | 64.8% |
| Metro | 9 | 4 | 0 | 167 | 1 | 39 | 0 | 7 | 227 | 73.6% |
| Train | 22 | 9 | 0 | 8 | 177 | 25 | 0 | 11 | 252 | 70.2% |
| Tram | 8 | 6 | 0 | 19 | 7 | 108 | 0 | 5 | 153 | 70.6% |
| Walking | 6 | 0 | 0 | 1 | 1 | 0 | 331 | 5 | 344 | 96.2% |
| Stationary | 14 | 9 | 0 | 0 | 0 | 0 | 0 | 242 | 265 | 91.3% |
| 62.7% | 84.3% | 78.6% | 83.9% | 91.2% | 60.3% | 97.1% | 84.9% | |||
Confusion matrix after applying the Healing algorithm.
| Actual Class | Predicted Class | Ground Truth | Recall | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Bus | Car | Ferry | Metro | Train | Tram | Walking | Stationary | |||
| Bus | 162 | 15 | 0 | 0 | 0 | 0 | 6 | 0 | 183 | 88.5% |
| Car | 0 | 250 | 0 | 0 | 0 | 0 | 3 | 0 | 254 | 98.4% |
| Ferry | 9 | 0 | 82 | 0 | 0 | 0 | 0 | 0 | 91 | 90.1% |
| Metro | 0 | 0 | 0 | 227 | 0 | 0 | 0 | 0 | 227 | 100% |
| Train | 8 | 0 | 0 | 0 | 234 | 10 | 0 | 0 | 252 | 92.9% |
| Tram | 0 | 0 | 0 | 8 | 0 | 145 | 0 | 0 | 153 | 94.8% |
| Walking | 6 | 5 | 0 | 1 | 1 | 0 | 331 | 0 | 344 | 96.2% |
| Stationary | 16 | 8 | 0 | 0 | 0 | 0 | 0 | 241 | 265 | 90.9% |
| 80.6% | 89.9% | 100% | 96.1% | 99.6% | 93.5% | 97.4% | 100% | |||
Figure 11Contribution of the Healing algorithm to the recall of initial transport mode detection.
Performances of the proposed method and state-of-the-art.
| Classification Algorithm | Recall |
|---|---|
| Fang et al. [ | 83.57% |
| Before Applying Healing Algorithm | 84.38% |
| After Applying Healing Algorithm | 91.63% |