| Literature DB >> 27690058 |
Javier Cervantes-Villanueva1, Daniel Carrillo-Zapata2, Fernando Terroso-Saenz3, Mercedes Valdes-Vela4, Antonio F Skarmeta5.
Abstract
In the mobile computing era, smartphones have become instrumental tools to develop innovative mobile context-aware systems. In that sense, their usage in the vehicular domain eases the development of novel and personal transportation solutions. In this frame, the present work introduces an innovative mechanism to perceive the current kinematic state of a vehicle on the basis of the accelerometer data from a smartphone mounted in the vehicle. Unlike previous proposals, the introduced architecture targets the computational limitations of such devices to carry out the detection process following an incremental approach. For its realization, we have evaluated different classification algorithms to act as agents within the architecture. Finally, our approach has been tested with a real-world dataset collected by means of the ad hoc mobile application developed.Entities:
Keywords: accelerometer classification; mobile system; vehicle maneuver detection
Year: 2016 PMID: 27690058 PMCID: PMC5087406 DOI: 10.3390/s16101618
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Target maneuvers and conceptual transitions among them.
Figure 2Architecture of the system.
Figure 3Orchestration of agents and models.
Figure 4Screenshots of the android app used for data collection.
Figure 5Smartphone installation for the data collection campaign.
Figure 6Accelerometer axes’ orientation during the data collection campaign.
Distribution of instances among maneuvers and circuits in terms of percentage and total number (in brackets).
| Maneuver | Total | ||||
|---|---|---|---|---|---|
| 68.38 (11,402) | 14.51 (2419) | 15.19 (2533) | 1.93 (321) | 16,675 | |
| 63.21 (5235) | 18.97 (1571) | 12.48 (1034) | 5.34 (442) | 8282 | |
| 59.85 (7141) | 12.69 (1514) | 23.84 (2844) | 3.62 (432) | 11,931 | |
| 60.39 (10,975) | 20.10 (3653) | 15.48 (2813) | 4.04 (734) | 18,175 | |
| 69.78 (20,112) | 8.78 (2530) | 11.61 (3345) | 9.83 (2833) | 28,820 | |
| 73.24 (8487) | 8.99 (1042) | 13.53 (1568) | 4.24 (491) | 11,588 | |
| 64.04 (9432) | 11.89 (1751) | 17.80 (2622) | 6.27 (924) | 14,729 | |
| Total | 72,784 | 14,480 | 16,759 | 6177 | 110,200 |
List of features .
| Domain | Features |
|---|---|
| Time Statistical | speed (s) |
| mean ( | |
| variance ( | |
| accumulative median ( | |
| standard deviation ( |
Algorithms default configuration. FRC, fuzzy rule-based classifier.
| Algorithm | Parameter | Value | Meaning |
|---|---|---|---|
| RF | 500 | Max. number of trees to be generated | |
| Contribution measurement | |||
| SVM | linear | Model for classification | |
| 1 | Violation threshold | ||
| FRC | [2:8] | Max. number of rules to be generated | |
| 2 | Cluster’s |
Summary of experiments and circuits.
| Experiment | Training | Evaluation |
|---|---|---|
| E1 | ||
| E2 | ||
| E3 |
Figure 7Coarse-grained classifier candidates’ accuracy. (a) Training error; (b) evaluation error.
Confusion matrix of the candidates when acting as a coarse-grained classifier in terms of percentage and number (in brackets) of correctly-classified instances.
| Exp. | Man. | ||||||
|---|---|---|---|---|---|---|---|
| E1 | DR | 0.94 (750) | 0.15 (45) | 0.90 (724) | 0.13 (46) | 0.88 (704) | 0.12 (40) |
| 0.06 (52) | 0.85 (298) | 0.10 (78) | 0.87 (297) | 0.12 (98) | 0.88 (303) | ||
| E2 | DR | 0.97 (425) | 0.13 (36) | 0.96 (418) | 0.16(45) | 0.92 (400) | 0.09 (27) |
| 0.03 (12) | 0.87 (250) | 0.04 (19) | 0.84(241) | 0.08 (37) | 0.91 (259) | ||
| E3 | DR | 0.98 (278) | 0.12 (22) | 0.94 (267) | 0.13 (24) | 0.93 (264) | 0.05 (10) |
| 0.02 (6) | 0.88 (168) | 0.06 (17) | 0.87 (166) | 0.07(20) | 0.95(180) | ||
Sensitivity (SEN), specificity (SPE) and accuracy (ACC) of the candidates for the coarse-grained classifier along with their number of true positives (TP), false positives (FP), true negatives (TN) and false negatives (FN).
| TP ( | 1453 | 1409 | 1368 |
| FN ( | 70 | 114 | 155 |
| TN ( | 716 | 704 | 742 |
| FP ( | 103 | 115 | 77 |
| SEN | 0.92 | 0.90 | |
| SPE | 0.87 | 0.86 | |
| ACC | 0.90 | 0.90 |
Figure 8Fine-grained classifier candidates’ accuracy. (a) Training error; (b) evaluation error.
Confusion matrix of the candidates when acting as a fine-grained classifier in terms of percentage and number (in brackets) of correctly-classified instances.
| Exp. | Man. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| E1 | 0.96 (774) | 0.25 (33) | 0.07 (15) | 0.94 (753) | 0.31 (41) | 0.14 (30) | 0.89 (713) | 0.15 (20) | 0.10 (21) | |
| 0.03 (21) | 0.49 (65) | 0.06 (13) | 0.04 (36) | 0.24 (32) | 0.02 (5) | 0.11 (85) | 0.54 (71) | 0.18 (37) | ||
| 0.01 (7) | 0.26 (34) | 0.87 (183) | 0.02 (13) | 0.45 (59) | 0.83 (176) | 0.00 (4) | 0.31 (41) | 0.73 (153) | ||
| E2 | 0.99 (436) | 0.21 (24) | 0.10 (17) | 0.98 (428) | 0.35 (39) | 0.18 (32) | 0.92 (404) | 0.12 (13) | 0.06 (11) | |
| 0.00 (0) | 0.61 (68) | 0.31 (54) | 0.01 (5) | 0.34 (38) | 0.14 (24) | 0.08 (33) | 0.72 (81) | 0.35 (61) | ||
| 0.01 (1) | 0.18 (20) | 0.59 (103) | 0.01 (4) | 0.31 (35) | 0.68 (118) | 0.0 (0) | 0.16 (18) | 0.59 (102) | ||
| E3 | 0.99 (281) | 0.15 (17) | 0.06 (5) | 0.98 (277) | 0.24 (27) | 0.04 (3) | 0.84 (238) | 0.05 (6) | 0.0 (0) | |
| 0.01 (2) | 0.73 (82) | 0.03 (2) | 0.01 (4) | 0.24 (26) | 0.03 (2) | 0.15 (43) | 0.65 (73) | 0.53 (41) | ||
| 0.00 (1) | 0.12 (14) | 0.91 (70) | 0.01 (3) | 0.53 (60) | 0.94 (72) | 0.01 (3) | 0.3 (34) | 0.47 (36) | ||
Sensitivity (SEN), specificity (SPE) and accuracy (ACC) of the candidates for the fine-grained classifier along with their number of true positives (TP), false positives (FP), true negatives (TN) and false negatives (FN).
| Meas. | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| TP | 1458 | 1355 | 215 | 96 | 356 | 291 | |||
| TN | 708 | 647 | 1873 | 1685 | 1706 | 1780 | |||
| FN | 65 | 68 | 142 | 261 | 106 | 171 | |||
| FP | 144 | 172 | 112 | 300 | 174 | 100 | |||
| SEN | 0.96 | 0.89 | 0.60 | 0.27 | 0.77 | 0.63 | |||
| SPE | 0.83 | 0.76 | 0.93 | 0.35 | 0.91 | 0.95 | |||
| ACC | 0.89 | 0.89 | 0.90 | 0.86 | 0.88 | 0.88 | |||
Test to ensure the homoscedasticity and the normal distribution of the evaluation results for the coarse-grained classifiers.
| Test | |
|---|---|
| Levene | 0.82 |
| Shapiro-Wilk | 0.80 |
Dunn test for coarse-grained classifiers.
| RF | FRC | ||
|---|---|---|---|
| FRC | Mean Diff. | −2.39 | - |
| 0.03 | - | ||
| SVM | Mean Diff. | −0.75 | 1.64 |
| 0.23 | 0.10 |
Test to ensure the homoscedasticity and normal distribution of the evaluation results for the fine-grained classifier.
| Test | |
|---|---|
| Levene | 0.65 |
| Shapiro–Wilk | 0.67 |
Dunn test for the fine-grained classifiers.
| RF | FRC | ||
|---|---|---|---|
| FRC | Mean Diff. | −2.68 | - |
| 0.01 | - | ||
| SVM | Mean Diff. | −1.34 | 1.34 |
| 0.18 | 0.09 |
Figure 9Evaluation error of the system when the speed-based breakout detection is activated or not.
Summary of the evaluation results with and without breakout detection.
| With Breakout | Without Breakout | ||
|---|---|---|---|
| Exp. | Accuracy | Savings | Accuracy |
| E1 | 0.89 | 0.25 | 0.89 |
| E2 | 0.80 | 0.28 | 0.84 |
| E3 | 0.87 | 0.23 | 0.90 |
System’s confusion matrix for the experiments in terms of percentage and number of instances (in brackets). SBDA, speed-based breakout detector agent.
| SBDA Disabled | SBDA Enabled | ||||||
|---|---|---|---|---|---|---|---|
| Exp. | Man. | ||||||
| E1 | 0.97 (778) | 0.30 (39) | 0.09 (18) | 0.98 (785) | 0.33 (43) | 0.09 (19) | |
| 0.02 (17) | 0.45 (60) | 0.06 (12) | 0.01 (10) | 0.45 (59) | 0.06 (12) | ||
| 0.01 (7) | 0.25 (33) | 0.86 (181) | 0.01 (7) | 0.23 (30) | 0.85 (180) | ||
| E2 | 1.00 (436) | 0.25 (28) | 0.13 (22) | 1.00 (436) | 0.43 (48) | 0.23 (40) | |
| 0.00 (0) | 0.60 (67) | 0.28 (49) | 0.00 (0) | 0.50 (56) | 0.26 (46) | ||
| 0.00 (1) | 0.15 (17) | 0.59 (103) | 0.00 (1) | 0.07 (8) | 0.51 (88) | ||
| E3 | 0.99 (281) | 0.20 (23) | 0.06 (5) | 1.00 (283) | 0.26 (29) | 0.25 (19) | |
| 0.01 (2) | 0.67 (76) | 0.03 (2) | 0.00 (1) | 0.63 (71) | 0.03 (2) | ||
| 0.00 (1) | 0.12 (14) | 0.91 (70) | 0.00 (0) | 0.12 (13) | 0.73 (56) | ||
Figure 10System predictions using breakout detection for the three target experiments. (a) Experiment E1; (b) Experiment E2; (c) Experiment E3.
Coarse-grained classifier’s confusion matrices with and without GPS enrichment.
| Accelerometer + GPS | Accelerometer | |||
|---|---|---|---|---|
| Man. | ||||
| 0.99 (8885) | 0.32 (494) | 0.98 (8843) | 0.42 (482) | |
| 0.02 (135) | 0.68 (1141) | 0.02 (177) | 0.58 (1153) | |
| 0.94 | 0.94 | |||
Fine-grained classifier’s confusion matrices with and without GPS enrichment.
| Accelerometer + GPS | Accelerometer | |||||
|---|---|---|---|---|---|---|
| Man. | ||||||
| 0.99 (8943) | 0.38 (261) | 0.12 (111) | 0.99 (8925) | 0.41 (281) | 0.17 (162) | |
| 0.00 (23) | 0.50 (340) | 0.19 (181) | 0.01 (24) | 0.49 (330) | 0.23 (221) | |
| 0.01 (54) | 0.12 (81) | 0.69 (660) | 0.01 (71) | 0.10 (71) | 0.60 (570) | |
| 0.88 | 0.86 | |||||
System’s confusion matrices with and without GPS enrichment.
| Accelerometer + GPS | Accelerometer | |||||
|---|---|---|---|---|---|---|
| Man. | ||||||
| 0.98 (8966) | 0.27 (180) | 0.26 (251) | 0.97 (8975) | 0.21 (140) | 0.39 (372) | |
| 0.01 (24) | 0.70 (482) | 0.16 (151) | 0.02 (22) | 0.75 (511) | 0.12 (111) | |
| 0.01 (31) | 0.03 (20) | 0.58 (551) | 0.01 (23) | 0.04 (31) | 0.49 (470) | |
| 0.86 | 0.85 | |||||
Distribution of instances among the maneuvers of the circuit with the new driver in terms of the percentage and total number (in brackets).
| Maneuver | Total | ||||
|---|---|---|---|---|---|
| 54.11 (25,159) | 15.84 (7368) | 26.48 (12,312) | 3.57 (1655) | 46,494 |
Confusion matrices when the system is used by a driver who is different or the same as the one for which the system was trained.
| Different Driver | Same Driver | |||||
|---|---|---|---|---|---|---|
| Man. | ||||||
| 0.99 (977) | 0.96 (498) | 0.89 (333) | 0.99 (1504) | 0.34 (120) | 0.17 (78) | |
| 0.00 (3) | 0.03 (17) | 0.09 (34) | 0.01 (11) | 0.52 (186) | 0.13 (60) | |
| 0.00 (2) | 0.01 (3) | 0.02 (4) | 0.00 (8) | 0.14 (51) | 0.70 (324) | |
| 0.53 | 0.85 | |||||