Traffic condition recognition using the k-means clustering method
Traffic condition recognition using the k-means clustering method
KEYWORDS Abstract This paper presents a methodological approach to traffic condition recognition, based on
Traffic condition driving segment clustering. Traffic condition recognition has many applications to various areas, such as
recognition; intelligent transportation, adaptive cruise control, pollutant emissions dispersion, safety, and intelligent
Hybrid electric vehicle; control strategies in hybrid electric vehicles. This study focuses on the application of driving condition
Driving feature; recognition to the intelligent control of hybrid electric vehicles. For this purpose, driving features
k-means clustering; are identified and used for driving segment clustering, using the k-means clustering algorithm. Many
Driving data collection; combinations of driving features and different numbers of clusters are evaluated, in order to achieve the
GPS. best traffic condition recognition results. The results demonstrate that traffic conditions can be correctly
recognized in 87 percent of situations using the proposed approach.
© 2011 Sharif University of Technology. Production and hosting by Elsevier B.V.
Open access under CC BY-NC-ND license.
UnitID Date/time Longitude Latitude Speed Heading Altitude Satellites ReportID Inputs Outputs
2009/10/11
1010000137 51.447183 35.751267 63 72 1364 4 1 0 0
14:35
2009/10/11
1010000137 51.447375 35.751317 66 71 1363 4 1 0 0
14:35
2009/10/11
1010000137 51.44757 35.751372 67 70 1363 4 1 0 0
14:35
2009/10/11
1010000137 51.447768 35.75143 69 69 1362 4 1 0 0
14:35
2009/10/11
1010000137 51.44797 35.751492 71 68 1362 4 1 0 0
14:35
2009/10/11
1010000137 51.448175 35.75156 73 67 1361 4 1 0 0
14:35
2009/10/11
1010000137 51.448383 35.751633 74 66 1361 4 1 0 0
14:35
2009/10/11
1010000137 51.448602 35.75171 78 66 1360 4 1 0 0
14:35
2009/10/11
1010000137 51.448817 35.751782 76 67 1360 4 1 0 0
14:35
··· ··· ··· ··· ··· ··· ··· ··· ··· ··· ···
index values. Some weights are also considered in the following and (COcc )j is the correlation coefficient between the jth driving
formula in order to enhance the importance of FC and/or one feature and CO, and so on. In addition, WFC , WCO , WNOx and wHC
of the emissions: Eq. (1) is given in Box I, where (FCcc )j is the are weights of FC, CO, NOx and HC, respectively. Figure 5 depicts
correlation coefficient between the jth driving feature and FC, correlation coefficients between vehicle fuel consumption
M. Montazeri-Gh, A. Fotouhi / Scientia Iranica, Transactions B: Mechanical Engineering 18 (2011) 930–937 933
Box I:
Table 3: Ranks of driving features based on performance index values and Step 3: Compute new cluster centers, z1∗ , z2∗ , . . . , zK∗ , as follows:
WFC = WCO = WNOx = WHC = 1.
1 −
Feature Feature name Performance index zi∗ = ∈ Ci xj , i = 1, 2, . . . , K , (4)
number WFC = WCO = WNOx = ni xj
WHC = 1
Table 4: Mean of silhouette values for different clusters using two features.
Number of clusters
Driving 3 4 5 6 7 8 9 10
feature
numbers
Number of clusters
Driving 3 4 5 6 7 8 9 10
feature
numbers
100
cluster 1
90 cluster 2
cluster 3
80
70
Idle time percentage
60
50
40
30
20
10
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4
Average accelerating (m/s2)
Figure 8: Scatter plot of driving segments in idle time percentage—average accelerating feature space.
Table 7: Percentage of correct traffic condition recognition for different features, ‘‘idle time percentage’’ and ‘‘average accelerating’’, are
clusters. the most suitable driving features for TCR. Using these two fea-
Number of clusters tures the percentage of correct recognition is obtained as 87%.
Driving 3 4 5 6 7 8 9 10 For further work, in order to use the TCR sub-system in a HEV
feature control unit, the controller parameters should be optimized for
numbers
different clusters. Consequently, the HEV uses each controlling
1, 5, 6 81 74 67 63 58 55 50 49 mode in its corresponding traffic condition.
1, 5, 11 80 72 68 61 57 52 49 47
1, 6, 11 81 73 66 61 57 53 49 46
5, 6, 11 82 75 70 64 59 58 54 51 References
1, 5, 6, 11 81 74 67 63 58 54 50 48
[1] Ericsson, E. ‘‘Variability in urban driving patterns’’, Int. J. Transp. Res. Part
D, 5, pp. 337–354 (2000).
The clustering of driving segments into three clusters is [2] Ericsson, E. ‘‘Independent driving pattern factors and their influence
on fuel-use and exhaust emission factors’’, Int. J. Transp. Res. Part D, 6,
depicted in Figure 8. As mentioned before, in this case, the pp. 325–341 (2001).
percentage of correct recognition is obtained as 87%. [3] Mallikarjuna, Ch. and Ramachandra Rao, K. ‘‘Cellular automata model for
As mentioned before, this study focuses on the application heterogeneous traffic’’, Int. J. Adv. Transport., 43(3), pp. 321–345 (2009).
of driving and traffic condition information in an intelligent [4] Qiu, Y. and Chen, S. ‘‘A new nonlocal traffic flow model with anticipation-
dependent relaxation time, equilibrium velocity and variance’’, Int. J. Stat.
HEV control strategy. In this paper, the first parts of the Mech. Theory Exp., p. P12012 (2010).
study, including driving features analysis and driving segments [5] Kanai, M. ‘‘Two-lane traffic-flow model with an exact steady-state
clustering, are presented. The results of this paper might be solution’’, Int. J. Phys. Rev. E, 82(6), p. 066107 (2010).
used for designing an intelligent multi-mode HEV control [6] Kerner, B.S., Klenov, S.L. and Hiller, A. ‘‘Empirical test of a microscopic
three-phase traffic theory’’, Internat. J. Non-Linear Mech., 49, pp. 525–553
strategy based on traffic condition recognition. (2007).
[7] Langford, J. and Koppel, S. ‘‘Epidemiology of older driver crashes—
7. Conclusion identifying older driver risk factors and exposure patterns’’, Int. J. Transp.
Res. Part F, 9, pp. 309–321 (2006).
[8] Lee, J.D., Li, J.D., Liu, L.Ch. and Chen, Ch.M. ‘‘A novel driving pattern
In this study, a new approach for Traffic Condition Recog- recognition and status monitoring system’’, Pacific-Rim Symposium on
nition (TCR) is presented based on the clustering of driving Image and Video Technology, PSIVT, Springer Proceedings, 4319, Hsinchu,
segments. The k-means clustering method is utilized for the Taiwan, pp. 504–512 (2006).
[9] Dirks, K.N., Johns, M.D., Hay, J.E. and Sturman, A.P. ‘‘A semi-empirical
clustering of segments in driving feature space. Several com- model for predicting the effect of changes in traffic flow patterns on carbon
binations of driving feature are investigated in order to achieve monoxide concentrations’’, Int. J. Atmos. Environ., 37, pp. 2719–2724
the best results. The results demonstrate that the two driving (2003).
M. Montazeri-Gh, A. Fotouhi / Scientia Iranica, Transactions B: Mechanical Engineering 18 (2011) 930–937 937
[10] Chan, T.L. and Ning, Z. ‘‘On-road remote sensing of diesel vehicle emissions [21] Markel, T. and Brooker, A. ‘‘ADVISOR: a systems analysis tool for advanced
measurement and emission factors estimation in Hong Kong’’, Int. J. Atmos. vehicle modeling’’, Int. J. Power Sources, 110, pp. 255–266 (2002).
Environ., 39, pp. 6843–6856 (2005). [22] Montazeri-Gh, M., Fotouhi, A. and Naderpour, A. ‘‘Driving features and
[11] Montazeri-Gh, M. and Naghizadeh, M. ‘‘Development of the tehran car their influences on hybrid electric vehicle’s fuel consumption and exhaust
driving cycle’’, Int. J. Environ. Pollut., 30(1), pp. 106–118 (2007). emissions’’, Int. J. Engine Res., 17, pp. 42–51 (2009).
[12] Kamble, S.H., Mathew, T.V. and Sharma, G.K. ‘‘Development of real-world [23] Cohen, J., Cohen, P., West, S.G. and Aiken, L.S., Applied Multiple Regres-
driving cycle: case study of pune, india’’, Int. J. Transp. Res. Part D, 14, sion/Correlation Analysis for the Behavioral Sciences, 3rd ed., Lawrence Erl-
pp. 132–140 (2009). baum Associates, Hillsdale, NJ (2003).
[13] Lin, C.C., Jeon, S., Peng, H. and Lee, J.M. ‘‘Driving pattern recognition for [24] Hartigan, J.A., Clustering Algorithms, Wiley, New York (1975).
control of hybrid electric trucks’’, Int. J. Veh. Syst. Dyn., 42(41-58) (2004). [25] Rousseeuw, P.J. ‘‘Silhouettes: a graphical aid to the interpretation and
[14] Langari, R. and Won, J.S. ‘‘Intelligent energy management agent for a validation of cluster analysis’’, Int. J. Comput. Appl. Math., 20, pp. 53–65
parallel hybrid vehicle-part I: system architecture and design of the (1987).
driving situation identification process’’, Int. J. IEEE Trans. Veh. Technol., [26] Kaufman, L. and Rousseeuw, P.J., Finding Groups in Data: An Introduction to
54(3), pp. 925–934 (2005). Cluster Analysis, Wiley (1990).
[15] Won, J.S. and Langari, R. ‘‘Intelligent energy management agent for a [27] Tou, J.T. and Gonzalez, R.C., Pattern Recognition Principles, Addison-Wesley,
parallel hybrid vehicle-part II: Torque distribution, charge sustenance Reading, MA (1974).
strategies, and performance results’’, Int. J. IEEE Trans. Veh. Technol., 54(3),
pp. 935–953 (2005).
[16] Musardo, C., Rizzoni, G. and Staccia, B. ‘‘A-ECMS: an adaptive algorithm
Morteza Montazeri-Gh established the Systems Simulation and Control
for hybrid electric vehicle energy management’’, 44th IEEE Conference on
Laboratory at Iran University of Science and Technology (IUST) in 1996, where
Decision and Control, Seville, Spain, December, pp. 12–15 (2005).
he is currently Associate Professor of Mechanical Engineering. One of his current
[17] Montazeri-Gh, M. and Asadi, M. ‘‘Influence of the road grade on the
research projects is directed toward the use of driving data in intelligent HEV
optimization of fuzzy base HEV control strategy’’, Int. J. Soc. Automot. Eng.,
control.
SAE, Technical Paper Series, No. 2006-01-3293 (2006).
His main research interests include: Systems Simulation and Control.
[18] Chen, B.Ch., Wu, Y.Y. and Hsieh, F.Ch. ‘‘Design of multi-mode switch
strategy for lean burn engine using driving pattern recognition technique’’,
IEEE Conference on Systems, Man and Cybernetics, 2, Taipei, Taiwan,
pp. 1022–1029 (2006). Abbas Fotouhi is a Ph.D. candidate at Iran University of Science and Technology
[19] Montazeri-Gh, M. and Asadi, M. ‘‘Intelligent approach for parallel HEV (IUST) in Tehran, Iran, where since 2006 he has been working as a research
control strategy based on driving cycles’’, Internat. J. Systems Sci., 42(2), assistant at the Systems Simulation and Control Laboratory in the Department
pp. 287–302 (2011). of Mechanical Engineering. He has B.Sc. degree in railway rolling stock
[20] Brundell-Freij, K. and Ericsson, E. ‘‘Influence of street characteristics, driver engineering from IUST, and M.Sc. degree in Mechanical Engineering from
category and car performance on urban driving patterns’’, Int. J. Transp. Res. Tehran University. His research interests include hybrid electric vehicles, traffic
Part D, 10, pp. 213–229 (2005). conditions and driving features.