# The Impact of Truck Proportion on Traffic Safety Using Surrogate Safety Measures in China

Authors: Shengdi Chen; Shiwen Zhang; Yingying Xing; Jian Lu; Yichuan Peng; H. Michael Zhang
Journal: Journal of Advanced Transportation
 (2020)

---

## Abstract

The purpose of this study is to investigate the impact of the truck proportion on surrogate safety measures to explore the relationship between truck proportion and traffic safety. The relationship between truck proportion and traffic flow parameters was analyzed by correlation and partial correlation analysis, and the value of the 85th percentile speed minus the 15th percentile speed (85%V–15%V) and the speed variation coefficient were selected as surrogate safety measures to explore the impact of truck proportion on traffic status. Thek-means algorithm and the support vector machine were employed to evaluate traffic status on a freeway under different truck proportions in different periods. The major results are that the relationship between truck proportion and the value of 85%V–15%V and the speed variation coefficient is consistent in different aggregation periods. With increasing truck proportion, the value of 85%V–15%V, as well as the speed variation coefficient, increases initially and then decreases. In addition, the traffic flow status tends to be dangerous when the truck proportion ranges from 0.4 to 0.6 and when the value of 85%V–15%V and the speed variation coefficient are above 42 km/h and 0.223, respectively. While the truck proportion is from 0.1 to 0.3 and from 0.7 to 0.9, the traffic flow is relatively safe on the condition that the value of 85%V–15%V and the speed variation coefficient were under 42 km/h and 0.223, respectively. Therefore, the relationship between truck proportion and traffic safety could be well revealed by two surrogate safety measures, that is, the value of 85%V–15%V and the speed variation coefficient. In addition, the k-means algorithm and the support vector machine can well reveal the impact of truck proportion on traffic safety in different periods. The findings of this study indicate a need for decreasing the disturbance of mixed traffic and the impact of the truck proportion on traffic safety status.


---

## Body

## 1. Introduction and Background

In China, a total of 83,300 traffic crashes occurred (approximately 30% involved trucks) on freeways, the death toll was 5,500, and the number of injuries was 11,500 in 2016 [1]. In 2014, a total of approximately 0.2 million traffic crashes occurred in Shanxi Province in China, and more than 50% of the crashes involved trucks [1]. In addition, the percentage of large crashes involving trucks is high. Therefore, there is a relatively strong relationship between truck proportion and traffic safety.The truck is the main research object in this paper. The volume of heavy trucks is relatively large in Shanxi Province. The attendant problem of traffic crashes involving trucks is increasing. A high percentage of trucks is an important cause of this phenomenon. On the one hand, when high-speed cars are mixed with low-speed large trucks while driving on the freeway, the running speed of the small car will decrease considerably due to the blocking role of large trucks; thus, the overall traffic flow efficiency is affected. On the other hand, due to the obvious difference between the speed of cars and that of large trucks, the behaviors of lane-changing and overtaking of vehicles are too frequent; thus, traffic conflict will increase greatly, which could increase the probability of traffic accidents. There is an obvious negative impact on the safe operation of trucks on freeways. Therefore, how to alleviate and eliminate the excessive influence of trucks and truck proportion on freeway operational safety is an urgent problem.There are few studies on the relationship between truck proportion and traffic safety in literature. Many research efforts have been allocated to the analysis of truck-involved crashes based on historical traffic crash data, such as exploring the performance of trucks on crashes. Dong et al. [2] explored the influence of intersection features on traffic safety, including large truck size, which showed that the truck percentage significantly affects traffic crashes and that the frequencies of truck-involved crashes increase when the truck percentage increases. Based on weather and traffic data in Korea, Choi et al. [3] found that risk factors such as speed were a significant factor affecting truck crash severity related to truck volume. Dong et al. [4] analyzed the influences of risk factors on the frequency and severity of large truck-involved crashes, and the results showed that the severity and frequency of crashes increase significantly when large trucks are involved. Xie et al. [5] explored the different proportions of trucks on truck crash counts, and the results predicted that total truck crashes would decrease by 0.98% with a slight change in the percentage of trucks. Hou et al. [6] examined the factors contributing to traffic crashes in freeway tunnels and found that more crashes occurred on sharply curved segments with a high percentage of trucks. Considering the above reviews, using crash data has proven that truck proportion has a negative effect on other factors in traffic crashes. However, in China, it is difficult to obtain crash data. In addition, there is a certain lag of historical crash data in evaluating traffic safety, and traffic safety status cannot be determined in real time.Based on the previous literatures, traffic flow safety status could be revealed by some surrogate safety indicators, such as speed standard deviation and speed variation coefficient [7–9]. Thus, through analyzing the relationship between truck proportion and surrogate safety indicators, the relationship between truck proportion and the traffic safety can also be inferred. There is some literature focusing on the relationship between surrogate indicators and truck proportion, which can provide some revelation and reference for the analysis of the impact of truck proportion on traffic safety. Some literature analyzed main truck impacts [10] and found that traffic volume and speed decreased with increasing truck percentage and that large truck size and poor operation performance resulted in the impact of trucks and psychological pressure. Wu et al. [11] analyzed the influence of trucks on traffic flow and velocity differences in Shanghai and found that the traffic flow speed difference is greatest when the truck mix rate is 30%. Li et al. [12] investigated the impact of the heavy truck proportion in heterogeneous traffic condition. The results showed that, with the increase of the truck proportion, the lane-changing frequency increases. Although these studies described the influence of truck proportion on some parameters of traffic flow, most studies only mentioned the influence of truck proportion on traffic parameters in a certain fixed value or in a small range. In addition, most of these studies also use simulation algorithm to discuss the influence of truck proportion on traffic flow parameters, which still have some limitations in exploring the relationship between them in the real world.Moreover, the classification of traffic flow parameters was used for surrogate indicators of traffic status in few studies. Statistical techniques have been used to classify the status of traffic parameters and the ability to learn from traffic parameters without being explicitly programmed, which has provided powerful assistance to the classification of traffic flow parameters and has been gradually applied to the classification of traffic safety system [13, 14]. Additionally, k-means and support vector machines have been used in some literature to explore the status of traffic safety. Some researchers have studied the increasing amount of road traffic using the k-means algorithm [15], and it has been proven that clustering is best for road traffic accident classification, which lays a foundation for further safety classification research [16, 17]. The classification of accident datasets can also help to better understand the complex relationship between injury severity outcomes and other factors [18], and the traffic accident dataset comprises five attributes that can also be segmented [19]. Kumar et al. [20] also verified that k-means performs well in reducing the heterogeneity of road accident data. Additionally, SVM is a novel small sample learning method with a solid theoretical foundation, which has been used in many studies [21]. SVM is different from traditional algorithms [22, 23]. This algorithm can not only help us to identify key samples and eliminate a large number of redundant samples but also ensure that the samples are simple and robust [24]. Therefore, SVM is properly suited to the classification of traffic safety status in this paper [25].Overall, few related studies have focused on the relationship between truck proportion and traffic safety by classifying traffic status. Among them, historical traffic crash data and truck-involved crashes are usually used to evaluate the impact of truck performance or parameters on traffic safety, which delays real-time determination of truck proportion on traffic safety. Therefore, the aim of this study is to explore the influence of truck proportion on traffic safety by collecting data from surveillance videos. According to previous studies, several traffic flow parameters can be used to evaluate the traffic flow safety status, such as the speed difference of 85% vehicle speed minus 15% vehicle speed (85%V–15%V), the variation coefficient, and the number of lane changes. Thus, traffic flow parameters are considered as surrogate safety measures for investigating the relationship between truck proportion and traffic safety. Thek-means clustering algorithm and the support vector machine were used to divide traffic flow safety status into two statuses: dangerous and safe. Therefore, the impact of the truck proportion on freeway traffic safety could be reflected.


## 2. Data Description and Methodology

### 2.1. Data Collection and Description

The traffic parameters on the Taichang, Datong, and Xinbao Freeways in Shanxi Province were collected in this paper. These roads are all two-way four-lane freeways. The designated speed of the inner lane is 100 km/h and the outer lane is 80 km/h, while the upper speed limit is 100 km/h and the lower speed limit is 60 km/h. These sites are all straight roadway segments, and the weather was sunny. The width of each lane is 3.75 m, and the hard shoulder width is 3 m with the right side of the curb bandwidth being 0.5 m.All the data were collected during daylight hours by video from freeway section monitoring video recording. Frames of the videos were used to collect data, and one second represented 25 frames. The collection times of the three sites of the Datong freeway were from 8 : 00-9 : 00, 11 : 00–13 : 00, and 16 : 00-17 : 00. The collection times of the two sites of the Taichang freeway were from 7 : 00–17 : 00, and the collection times of the two sites of the Xinbao freeway were from 8 : 00-9 : 00, 11 : 00–13 : 00, and 16 : 30-17 : 30. Seven sites on 3 freeways were collected, as shown in Table1, during three periods of 5 minutes, 10 minutes, and 15 minutes. Every two centerlines (9 m) were separated with a gap (6 m) on the freeway. From the monitoring video recording, three centerlines and three gaps were selected as the study travel distances. The end of the last centerline and the start of the first centerline were chosen as the two points of the start and end positions, which could also be collected from the period frame of every vehicle. Therefore, the running speed could be obtained. Thus, traffic parameters such as traffic flow, TP, average vehicle speed, speed difference, and variation coefficient (the standard speed difference divided by the average speed) could be obtained. Types of vehicles were divided into two categories: trucks and other vehicles, such as coach buses with lengths greater than 6 m, and cars, such as private cars and other vehicles less than 6 m in length. According to the Highway Capacity Manual 2000, trucks were converted into 3 passenger car equivalents. As a result, the samples of 969 traffic parameters in 5 minutes, 501 samples in 10 minutes, and 324 samples in 15 minutes were derived from the videos, and the maximum, minimum, mean, and standard deviation of values are shown in Table 1. In general, the mean speed is relatively large, while the truck proportion is low. The number of lane changes is relatively large, while the truck proportion is low.Table 1
The range of basic data collected from different time periods and sections.
Freeway sectionTime period (min)Truck proportionTraffic volumeMeanStd.Max.Min.MeanStd.Max.Min.Datong50.7400.1681.0000.20075.85043.0651954100.7280.1530.9550.222147.48680.8982927150.7270.1520.9680.250221.229122.25944426Taichang50.2860.1010.6800.044160.80844.8463217100.2870.0840.5710.128309.37592.7655467150.2850.0780.5690.107483.082108.818750190Xinbao50.7500.1281.0000.333110.25052.98125827100.7540.1070.9830.533220.50097.49049265150.7560.1010.9740.580330.750141.523696124Freeway sectionTime period (min)Average speed (km/h)The number of lane changesMeanStd.Max.Min.MeanStd.Max.Min.Datong564.11013.34198.80024.5450.8571.261501064.42712.49496.41941.8781.6672.214901564.36112.35293.85239.3042.5003.294170Taichang591.28910.108126.31364.4141.6231.8021001090.9759.670120.47369.9193.1233.0641701591.2579.467121.73770.9454.8774.312180Xinbao575.69314.09498.52948.5030.5730.903501075.64313.76193.84749.8521.1461.502601575.64113.90693.50450.4261.7191.83680The trend in traffic flow parameters and truck proportion were used to evaluate the relationship between them. In particular, the speed dispersion parameters, such as speed standard deviation and speed variation coefficient, are important indicators that could represent the relationship between traffic efficiency and traffic safety [8]. The results demonstrated the steady status of traffic flow to reflect traffic safety. Therefore, speed-related variables were selected as surrogate safety indicators to measure traffic flow safety status. In addition, due to the performance and shape of trucks, some small car drivers tended to overtake to obtain a wider field of view while driving, which also increased the probability of conflicts. Thus, driving behavior such as lane-changing could also be considered an index of traffic safety. The level of service at a design speed of 100 km/h according to Highway Capacity Manual (HCM) was divided into four levels: the first level was free flow of 650 maximum capacity volume passage cars per hour per lane, the second was the upper steady flow of 1,400 passage cars/h/lane, the third was steady flow of 1,800 passage cars/h/lane, and the last was saturated/forced flow of 2,100 passage cars/h/lane.After calculating the preliminary mathematical statistics of the raw data, traffic volumes above 108 pcu/5 min, 217 pcu/10 min, and 325 pcu/15 minutes were selected. Therefore, 732 samples in 5 minutes, 365 samples in 10 minutes, and 251 samples in 15 minutes were studied. The description of these parameters is shown in Table2. The mean, maximum, minimum, and standard deviation of every traffic parameter are shown. The data collected in different periods show that the trends of the mean values of these parameters were similar in different time periods. The standard deviation of 15 minutes was relatively low, which reflected that the degree of speed dispersion among individuals in a group was stable.Table 2
The data of collected parameters after preliminary statistics in different periods.
VariablesPeriod (min)MeanStd.Max.Min.Truck proportion50.3350.18410.044100.3262860.1650.9830.128150.3245830.1620.9680.107Traffic volume5167.18638.62832110810330.07770.59054621715491.05299.200750329Average speed (km/h)589.17312.572124.22343.3181089.59711.957120.47349.5551589.35812.137121.73744.407Speed difference (km/h)524.4618.97649.9710.1531024.5478.15245.7380.4261524.5337.80443.7960.127Speed standard deviation518.5084.26945.9247.2711018.7993.88535.8927.8671518.8753.67631.6528.14585%V–15%V538.78410.71168.95711.9231039.96310.13964.48912.4571540.3779.81064.06714.971Variation coefficient50.2120.0580.3940.090100.2140.0530.3480.095150.2160.0530.3710.136Number of lane changes51.7081.804100103.3863.047170155.0724.283180Figure1 shows the relationship between the four parameters with the truck proportion. With increasing truck proportion, the trend of speed dispersion increased initially and then fell. When the truck proportion reached 0.5, the degree of dispersion was the greatest in Figure 1. When the truck proportion was less than 0.5 or more than 0.5, the degree of speed dispersion decreased. When the truck proportion was in the high range from 0.6 to 1, the speed standard deviation decreased steadily with increasing truck proportion. In the large truck proportion above 0.6, the small cars accelerated and decelerated frequently, which could result in frequently blocked status. Thus, the speed of the small car was close to the truck speed, which contributed to the aggregate speed difference when the truck proportion was less than 0.5. Therefore, the same trend was observed for the different speeds of the 85th percentile minus the 15th percentile. The speed variation coefficient is a better index to embody the truck proportion and surrogate measure of safety, which eliminates the impact of measurement scales and dimensions such as traffic volume. Different time periods have the same trend of different truck proportions. The data for the 15-minute time period were steadier and more aggregated than those of the others. The speed of small cars was almost random as the truck proportion was small, as was the interaction between these two kinds of vehicle parameters. Regardless of the traffic parameters related to the truck proportion, the selected time period should ensure that the traffic flow is steady to analyze other parameter relationships.Figure 1
The relationship between truck proportion and traffic flow parameters in different periods.In Figure1, unlike the relationship among the other three parameters and the truck proportion, the relationship between the speed difference and truck proportion was relatively dispersed, especially in 5 minutes, which inferred that there was a large difference in speed between these two types of vehicles. However, there was an obvious relationship among the other three parameters and the truck proportion, which shows that the parameters increase first and then decrease with increased truck proportion in different periods, which show the same trends.


### 2.2. Data Partial Correlation Study

Correlation analysis can be used to test the degree of correlation of two variables and determine the correlated direction by the sign of the correlation coefficient. However, when deeper factors are involved, the correlation coefficient cannot truly reflect the degree of variables due to the influence or effect of the third variable. Partial correlation analysis can be used to explore the relationship between two variables under the control of other variables that may be affected. The calculation formula is as follows (equation (1)):(1)r123=r12−r13×r231−r132×1−r232.This formula is the coefficient of partial correlation between the first and second variables calculated after controlling for the influence of the third variable. When more than one control variable is considered, the formula follows. Therefore, the correlation of these variables was examined using partial relationship tests. The results are shown in Tables3 and 4 for different periods.Table 3
The relationship between basic traffic flows in the correlation analysis.
Variables (truck proportion) (min)Basic parameters (-No-a)Mean speedTraffic volumeSpeed differenceSpeed standard deviation85%V–15%VVariation coefficientNumber of lane changes5The correlation−0.626−0.216−0.077−0.151−0.1560.191−0.039Significance (bilateral)0.0000.0000.0390.0000.0000.0000.295.df73273273273273273273210The correlation−0.647−0.246−0.110−0.181−0.1730.193−0.019Significance (bilateral).000.000.0360.0010.0010.0000.724.df36536536536536536536515The correlation−0.656−0.245−0.085−0.144−0.1260.252−0.001Significance (bilateral)0.0000.0000.1810.0230.0450.0000.993.df251251251251251251251a: the cell contains a zero-order correlation (Pearson).Table 4
The relationship among indicators of traffic flow parameters in partial correlation analysis.
Variables (truck proportion) (min)Evaluation indexes (other variables controlled)85%V–15%VVariation coefficientNumber of lane changes5The correlation−0.511∗0.523∗0.006Significance (bilateral)0.0000.0000.862.df72872872810The correlation−0.590∗0.595∗0.033Significance (bilateral)0.0000.0000.537.df36136136115The correlation−0.551∗0.582∗0.044Significance (bilateral)0.0000.0000.492.df247247247a: the cell contains a zero-order correlation (Pearson).∗Significant at the 0.05 level.In Table3, it can be seen that, in periods of 5 minutes and 10 minutes, there was a significant correlation in truck proportion among mean speed, traffic volume, speed standard deviation, 85%V–15%V, and variation coefficient except for the number of lane changes. The relationship between truck proportion and these five variables was significant at the 0.05 (bilateral) level when there were no control variables in the 15-minute period except for the relationship between speed difference, number of lane changes, and truck proportion without control variables. There was a positive correlation between truck proportion and variation coefficient, while the relationship among other evaluated indexes with truck proportion was negative. The variable of the mean speed of parameters related to truck proportion was more than 0.5, while other variables were less than 0.3, which indicates that the relationship was relatively weak.In Table4, it can be seen that the correlation coefficients of the relationship between truck proportion and 85%V–15%V are −0.511, −0.590, and−0.551 in different periods when the variation coefficient and number of lane changes are controlled, which is higher than the case without control. The correlation coefficients of the speed variation coefficient are 0.523, 0.595, and 0.582. However, the number of lane changes is not significant in these periods, regardless of being controlled or not. When other variables are controlled, the correlation coefficients of 85%V–15%V and the variation coefficient are above 0.5, which indicates that there is a strong correlation between these variables so that these two indexes can be used as evaluation indexes. Therefore, 85%V–15%V and the variation coefficient were selected as surrogate safety measures to explore the relationship between the truck proportion and traffic safety.


## 2.1. Data Collection and Description

The traffic parameters on the Taichang, Datong, and Xinbao Freeways in Shanxi Province were collected in this paper. These roads are all two-way four-lane freeways. The designated speed of the inner lane is 100 km/h and the outer lane is 80 km/h, while the upper speed limit is 100 km/h and the lower speed limit is 60 km/h. These sites are all straight roadway segments, and the weather was sunny. The width of each lane is 3.75 m, and the hard shoulder width is 3 m with the right side of the curb bandwidth being 0.5 m.All the data were collected during daylight hours by video from freeway section monitoring video recording. Frames of the videos were used to collect data, and one second represented 25 frames. The collection times of the three sites of the Datong freeway were from 8 : 00-9 : 00, 11 : 00–13 : 00, and 16 : 00-17 : 00. The collection times of the two sites of the Taichang freeway were from 7 : 00–17 : 00, and the collection times of the two sites of the Xinbao freeway were from 8 : 00-9 : 00, 11 : 00–13 : 00, and 16 : 30-17 : 30. Seven sites on 3 freeways were collected, as shown in Table1, during three periods of 5 minutes, 10 minutes, and 15 minutes. Every two centerlines (9 m) were separated with a gap (6 m) on the freeway. From the monitoring video recording, three centerlines and three gaps were selected as the study travel distances. The end of the last centerline and the start of the first centerline were chosen as the two points of the start and end positions, which could also be collected from the period frame of every vehicle. Therefore, the running speed could be obtained. Thus, traffic parameters such as traffic flow, TP, average vehicle speed, speed difference, and variation coefficient (the standard speed difference divided by the average speed) could be obtained. Types of vehicles were divided into two categories: trucks and other vehicles, such as coach buses with lengths greater than 6 m, and cars, such as private cars and other vehicles less than 6 m in length. According to the Highway Capacity Manual 2000, trucks were converted into 3 passenger car equivalents. As a result, the samples of 969 traffic parameters in 5 minutes, 501 samples in 10 minutes, and 324 samples in 15 minutes were derived from the videos, and the maximum, minimum, mean, and standard deviation of values are shown in Table 1. In general, the mean speed is relatively large, while the truck proportion is low. The number of lane changes is relatively large, while the truck proportion is low.Table 1
The range of basic data collected from different time periods and sections.
Freeway sectionTime period (min)Truck proportionTraffic volumeMeanStd.Max.Min.MeanStd.Max.Min.Datong50.7400.1681.0000.20075.85043.0651954100.7280.1530.9550.222147.48680.8982927150.7270.1520.9680.250221.229122.25944426Taichang50.2860.1010.6800.044160.80844.8463217100.2870.0840.5710.128309.37592.7655467150.2850.0780.5690.107483.082108.818750190Xinbao50.7500.1281.0000.333110.25052.98125827100.7540.1070.9830.533220.50097.49049265150.7560.1010.9740.580330.750141.523696124Freeway sectionTime period (min)Average speed (km/h)The number of lane changesMeanStd.Max.Min.MeanStd.Max.Min.Datong564.11013.34198.80024.5450.8571.261501064.42712.49496.41941.8781.6672.214901564.36112.35293.85239.3042.5003.294170Taichang591.28910.108126.31364.4141.6231.8021001090.9759.670120.47369.9193.1233.0641701591.2579.467121.73770.9454.8774.312180Xinbao575.69314.09498.52948.5030.5730.903501075.64313.76193.84749.8521.1461.502601575.64113.90693.50450.4261.7191.83680The trend in traffic flow parameters and truck proportion were used to evaluate the relationship between them. In particular, the speed dispersion parameters, such as speed standard deviation and speed variation coefficient, are important indicators that could represent the relationship between traffic efficiency and traffic safety [8]. The results demonstrated the steady status of traffic flow to reflect traffic safety. Therefore, speed-related variables were selected as surrogate safety indicators to measure traffic flow safety status. In addition, due to the performance and shape of trucks, some small car drivers tended to overtake to obtain a wider field of view while driving, which also increased the probability of conflicts. Thus, driving behavior such as lane-changing could also be considered an index of traffic safety. The level of service at a design speed of 100 km/h according to Highway Capacity Manual (HCM) was divided into four levels: the first level was free flow of 650 maximum capacity volume passage cars per hour per lane, the second was the upper steady flow of 1,400 passage cars/h/lane, the third was steady flow of 1,800 passage cars/h/lane, and the last was saturated/forced flow of 2,100 passage cars/h/lane.After calculating the preliminary mathematical statistics of the raw data, traffic volumes above 108 pcu/5 min, 217 pcu/10 min, and 325 pcu/15 minutes were selected. Therefore, 732 samples in 5 minutes, 365 samples in 10 minutes, and 251 samples in 15 minutes were studied. The description of these parameters is shown in Table2. The mean, maximum, minimum, and standard deviation of every traffic parameter are shown. The data collected in different periods show that the trends of the mean values of these parameters were similar in different time periods. The standard deviation of 15 minutes was relatively low, which reflected that the degree of speed dispersion among individuals in a group was stable.Table 2
The data of collected parameters after preliminary statistics in different periods.
VariablesPeriod (min)MeanStd.Max.Min.Truck proportion50.3350.18410.044100.3262860.1650.9830.128150.3245830.1620.9680.107Traffic volume5167.18638.62832110810330.07770.59054621715491.05299.200750329Average speed (km/h)589.17312.572124.22343.3181089.59711.957120.47349.5551589.35812.137121.73744.407Speed difference (km/h)524.4618.97649.9710.1531024.5478.15245.7380.4261524.5337.80443.7960.127Speed standard deviation518.5084.26945.9247.2711018.7993.88535.8927.8671518.8753.67631.6528.14585%V–15%V538.78410.71168.95711.9231039.96310.13964.48912.4571540.3779.81064.06714.971Variation coefficient50.2120.0580.3940.090100.2140.0530.3480.095150.2160.0530.3710.136Number of lane changes51.7081.804100103.3863.047170155.0724.283180Figure1 shows the relationship between the four parameters with the truck proportion. With increasing truck proportion, the trend of speed dispersion increased initially and then fell. When the truck proportion reached 0.5, the degree of dispersion was the greatest in Figure 1. When the truck proportion was less than 0.5 or more than 0.5, the degree of speed dispersion decreased. When the truck proportion was in the high range from 0.6 to 1, the speed standard deviation decreased steadily with increasing truck proportion. In the large truck proportion above 0.6, the small cars accelerated and decelerated frequently, which could result in frequently blocked status. Thus, the speed of the small car was close to the truck speed, which contributed to the aggregate speed difference when the truck proportion was less than 0.5. Therefore, the same trend was observed for the different speeds of the 85th percentile minus the 15th percentile. The speed variation coefficient is a better index to embody the truck proportion and surrogate measure of safety, which eliminates the impact of measurement scales and dimensions such as traffic volume. Different time periods have the same trend of different truck proportions. The data for the 15-minute time period were steadier and more aggregated than those of the others. The speed of small cars was almost random as the truck proportion was small, as was the interaction between these two kinds of vehicle parameters. Regardless of the traffic parameters related to the truck proportion, the selected time period should ensure that the traffic flow is steady to analyze other parameter relationships.Figure 1
The relationship between truck proportion and traffic flow parameters in different periods.In Figure1, unlike the relationship among the other three parameters and the truck proportion, the relationship between the speed difference and truck proportion was relatively dispersed, especially in 5 minutes, which inferred that there was a large difference in speed between these two types of vehicles. However, there was an obvious relationship among the other three parameters and the truck proportion, which shows that the parameters increase first and then decrease with increased truck proportion in different periods, which show the same trends.


## 2.2. Data Partial Correlation Study

Correlation analysis can be used to test the degree of correlation of two variables and determine the correlated direction by the sign of the correlation coefficient. However, when deeper factors are involved, the correlation coefficient cannot truly reflect the degree of variables due to the influence or effect of the third variable. Partial correlation analysis can be used to explore the relationship between two variables under the control of other variables that may be affected. The calculation formula is as follows (equation (1)):(1)r123=r12−r13×r231−r132×1−r232.This formula is the coefficient of partial correlation between the first and second variables calculated after controlling for the influence of the third variable. When more than one control variable is considered, the formula follows. Therefore, the correlation of these variables was examined using partial relationship tests. The results are shown in Tables3 and 4 for different periods.Table 3
The relationship between basic traffic flows in the correlation analysis.
Variables (truck proportion) (min)Basic parameters (-No-a)Mean speedTraffic volumeSpeed differenceSpeed standard deviation85%V–15%VVariation coefficientNumber of lane changes5The correlation−0.626−0.216−0.077−0.151−0.1560.191−0.039Significance (bilateral)0.0000.0000.0390.0000.0000.0000.295.df73273273273273273273210The correlation−0.647−0.246−0.110−0.181−0.1730.193−0.019Significance (bilateral).000.000.0360.0010.0010.0000.724.df36536536536536536536515The correlation−0.656−0.245−0.085−0.144−0.1260.252−0.001Significance (bilateral)0.0000.0000.1810.0230.0450.0000.993.df251251251251251251251a: the cell contains a zero-order correlation (Pearson).Table 4
The relationship among indicators of traffic flow parameters in partial correlation analysis.
Variables (truck proportion) (min)Evaluation indexes (other variables controlled)85%V–15%VVariation coefficientNumber of lane changes5The correlation−0.511∗0.523∗0.006Significance (bilateral)0.0000.0000.862.df72872872810The correlation−0.590∗0.595∗0.033Significance (bilateral)0.0000.0000.537.df36136136115The correlation−0.551∗0.582∗0.044Significance (bilateral)0.0000.0000.492.df247247247a: the cell contains a zero-order correlation (Pearson).∗Significant at the 0.05 level.In Table3, it can be seen that, in periods of 5 minutes and 10 minutes, there was a significant correlation in truck proportion among mean speed, traffic volume, speed standard deviation, 85%V–15%V, and variation coefficient except for the number of lane changes. The relationship between truck proportion and these five variables was significant at the 0.05 (bilateral) level when there were no control variables in the 15-minute period except for the relationship between speed difference, number of lane changes, and truck proportion without control variables. There was a positive correlation between truck proportion and variation coefficient, while the relationship among other evaluated indexes with truck proportion was negative. The variable of the mean speed of parameters related to truck proportion was more than 0.5, while other variables were less than 0.3, which indicates that the relationship was relatively weak.In Table4, it can be seen that the correlation coefficients of the relationship between truck proportion and 85%V–15%V are −0.511, −0.590, and−0.551 in different periods when the variation coefficient and number of lane changes are controlled, which is higher than the case without control. The correlation coefficients of the speed variation coefficient are 0.523, 0.595, and 0.582. However, the number of lane changes is not significant in these periods, regardless of being controlled or not. When other variables are controlled, the correlation coefficients of 85%V–15%V and the variation coefficient are above 0.5, which indicates that there is a strong correlation between these variables so that these two indexes can be used as evaluation indexes. Therefore, 85%V–15%V and the variation coefficient were selected as surrogate safety measures to explore the relationship between the truck proportion and traffic safety.


## 3. Methodology

As crash data are difficult to obtain in China, traffic flow parameters were utilized as surrogate safety measures to determine the relationship between truck proportion and traffic flow safety status via mathematical-statistical methods of correlation analysis from the conclusions in previous literature, such as specific indicators.Regardingk-means clustering algorithm, data mining has been used for data exploration and analysis in many fields, such as traffic safety, by using the k-means method [18, 26–28], which can help us better understand the complex relationship between different risk factors that contribute to unsafe traffic status. The study conducted by Sohn and Lee [15] also demonstrated that clustering based on a classification algorithm is best for road traffic status classification compared with the Bayesian neural networks and decision trees methods. k-means clustering is easy to implement, even in large data sets, particularly when using heuristics. k-means is often used as a preprocessing step to address the relationship between truck proportion and indicators. Thus, the traffic flow parameters were classified as different risk levels to identify the status of safety or unsafety via the k-means clustering algorithm. Then, the relationship between traffic parameters and truck proportion was explored. Traffic flow parameters were divided into two kinds of traffic status [29]. Thus, the classification criteria were used in reference to previous literature [30–32].In this paper, the given sample was divided into two classes:(2)dij=minxi−zj,xi∈S,zj∈Z.The clustering criterion function of thek-means algorithm is(3)J=∑j=1k∑i=1nxij−zj2,where xij−zj2 is a chosen distance measure between a data point xij and the cluster center zj of the n data points from their respective clusters. According to variables such as 85%V–15%V and the variation coefficient, the traffic flow status is classified as dangerous and safe, where number 1 represents safety status, meaning there is a lower probability of accidents, and number 2 represents a dangerous status.The minimum value of the clustering criterion functionJ is the goal of algorithm optimization. When J is the smallest, the partial derivative of the function for each cluster center is 0:(4)∂J∂zj=−2∑i=1nxij−zj=−2∑i=1nxij+2Sjzj=0,So(5)zj=1Sj∑i=1nxij,Equations (4) and (5) show that the clustering center can minimize the clustering criterion function.A support vector machine (SVM) is also used as a method for analyzing data for classification and regression to explore the relationship of these parameters. It was first proposed by Corinna Cortes and Vapnik [33] and demonstrated many unique advantages in solving small-sample, nonlinear, and high-dimensional pattern recognition. The sample size was small and separable in our research, so SVM is suitable for identifying the relationship between truck proportion and traffic safety. According to previous analyses and studies [34–36], the value of 85%V–15%V and the variation coefficient (CV) can be regarded as surrogate indicators of the probability of accidents.A support vector machine was employed to evaluate the impacts of the truck proportion on parameters such as 85%V–15%V and the variation coefficient, which represented safety or dangerous status. The 85%V–15%V variable and variation coefficient were divided, so linear discrimination could be used.The linear discriminant function of the binary classification can be written as in the following equation:(6)Gx=WTX+W0,where x is the corresponding feature vector, w is the weight vector, and W0 is the threshold.IfGx>0, it can be determined that x∈W1; if Gx<0, then it can be determined that x∈W2; if Gx=0, it cannot be determined which category of x it belongs to.At this point, the decision boundary equation is(7)Gx=WTX+W0=0.Thus, the linear classification model is as follows:(8)WTX2−X1=0.


## 4. Results and Discussion

### 4.1. Results of Data Classification

First, the selected surrogate safety measures were divided into two types of traffic status via thek-means clustering algorithm. The traffic flow safety status is evaluated from the relationship between the selected traffic flow parameters above. The parameters represented as surrogate safety indexes were set as the value of 85%V–15%V in every period and the value of the speed variation coefficient in every period of time. The relationship between these indexes and the traffic safety were explored according to many previous studies and the China Statistical Yearbook [1]. For example, the higher the value of 85%V–15%V is, the higher the probability of an unsafe traffic status is [37]. The higher the variation coefficient is, the higher the probability of traffic crashes occurring is [38]. Thus, the relationship between truck proportion and traffic safety can be inferred from the relationship between the truck proportion and surrogate safety measures such as 85%V–15%V and the variation coefficient. Then, based on the k-means clustering analysis, the classification of the traffic flow status is given as follows.SPSS software was used to analyze the selected parameters viak-means clustering. The values of 85%V–15%V and the speed variation coefficient were divided into two categories. Number 1 represents a normal traffic flow status, while number 2 represents a dangerous traffic flow status. The classification results are shown in Table 5 for different periods.Table 5
k-means clustering analysis in different periods.
Different periods (min)Clustering & testingClassification85%V–15%VVariation coefficient5Initial clustering center1 (dangerous)68.9570.3942 (safe)11.9230.090Final cluster center1 (dangerous)50.7150.2762 (safe)32.2900.172The value of split point41.5030.224ANOVAF1525.7882388.247Sig.0.0000.00010Initial clustering center1 (dangerous)64.4890.3482 (safe)12.4570.095Final clustering center1 (dangerous)51.0010.2732 (safe)33.2520.175The value of split point42.1270.224ANOVAF945.5291733.678Sig.0.0000.00015Initial clustering center1 (dangerous)64.0670.3712 (safe)14.9710.136Final clustering center1 (dangerous)51.2660.2712 (safe)34.0770.174The value of split point42.6720.223ANOVAF626.8871129.481Sig.0.0000.000The classification standard of 85%V–15%V was 41.503 km/h in a period of 5 minutes, 42.127 km/h in a period of 10 minutes, and 42.672 km/h in a period of 15 minutes. The standard variation coefficient was 0.224 in a period of 5 minutes, 0.224 in a period of 10 minutes, and 0.223 in a period of 15 minutes. From Table5, the results are statistically significant at the level of 0.05 (p value<0.05). This is consistent with the classification of traffic flow parameters. Then, the traffic flow status was finally divided into two categories named “safe” and “dangerous” through the classification of 85%V–15%V and the speed variation coefficient. The initial clustering center was consistent in all periods, while the period of 15 minutes was more reasonably compact.


### 4.2. Support Vector Machine Results

Based on the results of thek-means clustering analysis above, the value of 85%V–15%V and the speed variation coefficient were selected as two indicators according to the partial relationship tests. The greater the value is, the more dangerous the traffic flow status is. The relationship between the selected traffic flow parameters and truck proportion was analyzed as follows. Truck proportion, the value of 85%V–15%V, and the speed variation coefficient were considered as prediction indicators, while the classification of these parameters was regarded as response indicator. For the training data, 70% of the samples were randomly selected, while the rest were used as the testing data.The classification of 85%V–15%V by the support vector machine in different periods is shown in Figure2. A red x indicates the training data for number 1, which means a lower probability of traffic accidents. The purple x represents the testing data for number 1, the same meaning as the training data of number 1, accounting for 30% of all data. A green dot is the training data for number 2, which indicates a higher probability of traffic accidents. Then, a blue dot is the testing data for number 2. The circles are support vectors, and then the linear decision function is drawn. Thus, two traffic statuses could be classified by the linear classification function.Figure 2
Classification diagram of the support vector machine of 85%V–15%V.
(a)(b)(c)In the period of 5 minutes in the first picture in Figure2, when the truck proportion was from 0 to 0.4 and the value of 85%V–15%V was under 41.503 km/h, the traffic status was relatively safe, meaning that the probability of traffic accidents was lower. The range from 0.5 to 1.0 of truck proportion was relatively dispersed, while most were under 41.503 km/h, which shows that there was a relatively low probability of traffic accidents. When the truck proportion ranged from 0.2 to 0.6 and the value of 85%V–15%V was above 41.503 km/h, the probability of traffic accidents was relatively high. In this status, there were small cars mixed with trucks, and the performance of trucks was lower than that of small cars, so the speeds of these two types of vehicles were different from each other. Thus, the value 85%V–15%V was also dispersed, especially at truck proportions of 0.4 to 0.6.In the periods of 10 minutes and 15 minutes in the second and last picture in Figure2, we have the same conclusion as the period of 5 minutes. When the value of 85%V–15%V was above 42.127 km/h and 42.672 km/h, respectively, it was in dangerous traffic status when the truck proportion was from 0.2 to 0.6. It was in a safe traffic status when the truck proportion was in the ranges of 0.1 to 0.3 and 0.6 to 0.9 and the value of 85%V–15%V was under 42.127 km/h and 42.672 km/h otherwise. Taking a period of 15 minutes as an example, when the value of 85%V–15%V was above 42.672 km/h, the range of truck proportions from 0.3 to 0.5 was more likely to be dangerous than the ranges from 0.2 to 0.3 and from 0.5 to 0.6. When the value of 85%V–15%V was under 42.672 km/h, the range of truck proportions from 0.6 to 0.9 was more likely in a safe traffic status than the range from 0.2 to 0.3. The same trend was in these three periods of time, and the period of 15 minutes was clearer.Figure3 is the confusion matrix of testing data of 85%V–15%V in different periods, which is also known as the possibility of form or error matrix and is a specific table layout that allows visualization of the performance of a supervised learning algorithm. It exhibits the true classification of testing data. Each column represents the predicted value, and each row represents the actual class. In a period of 5 minutes, the correct rate score of the model of training data is 0.996. The testing data of 85%V–15%V that belong to number 1 is classified into the number 2 is just one sample, while the prediction of the value of 85%V–15%V is completely true when classified into number 2. All the correct predicted results are on the diagonal, so it is easy to tell the error from the confusion matrix. The testing data classification verification accuracy is 99.5% = (145 + 74)/(145 + 1+74)∗100%. In a period of 10 minutes, the correct rate score of the training data was 0.996. The testing data of 85% V–15% V which belongs to number 1 was completely truly classified into number 1. At the same time, the testing data belonging to number 2 was completely truly classified into number 2, so the testing data classification verification accuracy was 100%. In a period of 15 minutes, the correct rate score of the training data was 0.994. The testing data that belong to number 1 were corrected and classified into number 1. There is one sample that the value of 85% V–15% V belonged to number 2 but was wrongly classified into number 1. Therefore, the testing data classification verification accuracy was 98.7% = (46 + 29)/(46 + 1+29) ∗100%.Figure 3
Illustration of the confusion matrix of testing data of 85%V–15%V in different periods.
(a)(b)(c)Then, the model of the index of the speed variation coefficient was also built to explore the relationship between truck proportion and traffic safety. In Figure4, the data were relatively dispersed in a period of 5 minutes due to a smaller number of trucks and small cars under some situations, so some data were aggregated. When the speed variation coefficient was above 0.224, the truck proportion ranged from 0.2 to 0.6, and the range of 0.8 to 1.0 was in a dangerous traffic status, especially from 0.43 to 0.6, due to the higher variation coefficient. When the truck proportion was from 0.1 to 0.4 and from 0.7 to 1.0 and the variation coefficient was under 0.224, it was in a relatively safe traffic status that had a lower probability of accidents. In particular, when the truck proportion was from 0.8 to 1.0, it was rather safer than other proportions due to the lower variation coefficient.Figure 4
Classification diagram of the support vector machine of the speed variation coefficient.
(a)(b)(c)In the periods of 10 minutes and 15 minutes in Figure4, the two kinds of classifications in truck proportion and variation coefficient were clearer. In a period of 10 minutes, when the variation coefficient was above 0.224, the truck proportion ranged from 0.2 to 0.6, and the range of 0.8 to 1.0 was in a dangerous traffic status, especially the proportion from 0.4 to 0.6, due to the higher variation coefficient. The truck proportion ranged from 0.8 to 1.0 and was in a lower dangerous status compared with the proportion from 0.4 to 0.6. When the variation coefficient was under 0.224 and the truck proportion aggregated from 0.1 to 0.4 and from 0.7 to 0.9, there was a relatively safe traffic status. Then, the lower probability of accidents would be in the situation of truck proportions from 0.1 to 0.4 and from 0.7 to 0.9 and the variation coefficient under 0.223. Truck proportions from 0.2 to 0.3 were more likely to have lower safety than truck proportions from 0.8 to 0.9. When the variation coefficient was above 0.223, there was a higher probability of accidents when the truck proportion was from 0.4 to 0.6, while the other was relatively low.Figure5 is the confusion matrix of the testing data of the speed variation coefficient in different periods. In the same situation, it could determine the correction rate of the classification of prediction. The correct rate score of the model of training data of the variation coefficient was 0.986 in a period of 5 minutes. The fact that the testing data of the variation coefficient was classified as 1 is completely true in a period of 5 minutes, while there were three samples of number 2 meaning dangerous status classified into false status. Therefore, the accuracy of verification of the testing data of the variation coefficient was 98.6% = (140 + 77)/(140 + 3+77)∗100%. The correct rate scores of the training data of the variation coefficient were 1.0 and 0.994 in periods of 10 minutes and 15 minutes, respectively. The accuracy of verification of the testing data variation coefficient was 100%, which indicates good classification of traffic status.Figure 5
Illustration of the confusion matrix of the variation coefficient in different periods.
(a)(b)(c)In addition, the receiver operating characteristic curve (the ROC curve), also known as the susceptibility curve (sensitivity curve), can also be used to evaluate the performance of SVM because it can determine the accuracy of the classification of the parameter. It is based on a series of different methods of binary classification (boundary value or decision threshold). The value of 85%V–15%V and the variation coefficient can represent the traffic flow safety status to some extent. Therefore, the area under the ROC curve (AUC) of each test could also be calculated separately for comparison. The larger AUC was, the better the diagnostic result was. The value of AUC was from 0 to 1, and the classification algorithm of SVM was an uninformative classifier if it was less than 0.5; the classification algorithm had a certain accuracy if the AUC ranged from 0.7 to 0.9, and it was the best classifier when the high accuracy of AUC was greater than 0.9. Nevertheless, if the AUC varied from 0.5 to 0.7, the algorithm had low accuracy. When the AUC was less than 0.5, the diagnosis method was completely ineffective and had no diagnostic value.In Figure6, the first three pictures are the ROC curve and the area under the curve (AUC) of 85%V–15%V in three periods, while the rest of the pictures are the ROC curve and the area under the curve (AUC) of the variation coefficient in three periods. The AUCs of 85%V–15%V in these periods were both 1, which indicates the high accuracy of the SVM model. Therefore, it was the same situation for the variation coefficient. In summary, the confusion matrix, ROC curve, and area under the curve (AUC) were used to evaluate the accuracy of the SVM model.Figure 6
The ROC curve for SVM of 85%V–15%V and variation coefficient in different periods.
(a)(b)(c)(d)(e)(f)Above all, the value of 85%V–15%V and speed variation coefficient could reveal the impact of the truck proportion on the traffic safety. Therefore, the selected parameters served as surrogate safety measures to indirectly express the impact of truck proportion on freeway traffic safety. Table6 is the result of the classification of 85%V–15%V and speed variation coefficient. From Table 6, it can be seen that, regardless of the indicator of 85%V–15%V and the indicator of speed variation coefficient, the truck proportion in the range from 0.4 to 0.6 was in a safety traffic status when the threshold of 85%V–15%V was above approximately 42 km/h and the threshold of speed variation coefficient was above approximately 0.223. However, truck proportions ranging from 0.1 to 0.3 and from 0.7 to 0.9 were in a dangerous traffic status otherwise. In particular, in the threshold of the classification of 85%V–15%V above approximately 42 km/h and the variation coefficient above 0.223, the safety status was at truck proportions of 0.2 and 0.8. Otherwise, it was in a dangerous status at a truck proportion of 0.5, specifically.Table 6
Traffic status level of the classification of indicators and truck proportion.
Indicators of evaluationPeriod of timeThreshold of the classificationTruck proportionTraffic flow status85%V–15%V5 minutes≥41.503 km/h0.2–0.6Dangerous<41.503 km/h0−0.4, 0.5-1.0Safe10 minutes≥42.127 km/h0.2–0.6Dangerous<42.127 km/h0.1−0.3, 0.6−0.9Safe15 minutes≥42.672 km/h0.2–0.6Dangerous<42.672 km/h0.1−0.3, 0.6−0.9SafeSpeed variation coefficient5 minutes≥0.2240.2−0.6, 0.8−1.0Dangerous<0.2240.1−0.4, 0.7−1.0Safe10 minutes≥0.2240.2−0.6, 0.8−1.0Dangerous<0.2240.1−0.4, 0.7-0.9Safe15 minutes≥0.2230.4–0.6Dangerous<0.2230.1−0.4, 0.7−0.9SafeIn addition, it is known that the traffic flow safety status is related to speed parameters, such as the speed of the vehicle, speed difference, speed standard deviation, 85%V–15%V, and variation coefficient. It depends not only on the absolute speed but also on the speed variation coefficient, which is related to the degree of dispersion of the vehicle speed. Thus, the control of the speed [39] will be helpful for improving the safety of trucks on the freeway. The average speed, speed dispersion, variation coefficient of speed, traffic regulations, and the possibility of implementation of speed control standards and other factors should be considered in the development of speed control standards. According to the relationship between the truck proportion and the average speed of the truck and the relationship between the truck proportion and the average speed of the cars, the value of 85%V–15%V should be used to determine the speed limit; for example, 85%V could be used for the highest speed and 15%V could be used for the lowest speed [40, 41]. Then, the value of 85%V–15%V is less than the threshold of the classification, which could reduce the probability of traffic accidents to some extent.


## 4.1. Results of Data Classification

First, the selected surrogate safety measures were divided into two types of traffic status via thek-means clustering algorithm. The traffic flow safety status is evaluated from the relationship between the selected traffic flow parameters above. The parameters represented as surrogate safety indexes were set as the value of 85%V–15%V in every period and the value of the speed variation coefficient in every period of time. The relationship between these indexes and the traffic safety were explored according to many previous studies and the China Statistical Yearbook [1]. For example, the higher the value of 85%V–15%V is, the higher the probability of an unsafe traffic status is [37]. The higher the variation coefficient is, the higher the probability of traffic crashes occurring is [38]. Thus, the relationship between truck proportion and traffic safety can be inferred from the relationship between the truck proportion and surrogate safety measures such as 85%V–15%V and the variation coefficient. Then, based on the k-means clustering analysis, the classification of the traffic flow status is given as follows.SPSS software was used to analyze the selected parameters viak-means clustering. The values of 85%V–15%V and the speed variation coefficient were divided into two categories. Number 1 represents a normal traffic flow status, while number 2 represents a dangerous traffic flow status. The classification results are shown in Table 5 for different periods.Table 5
k-means clustering analysis in different periods.
Different periods (min)Clustering & testingClassification85%V–15%VVariation coefficient5Initial clustering center1 (dangerous)68.9570.3942 (safe)11.9230.090Final cluster center1 (dangerous)50.7150.2762 (safe)32.2900.172The value of split point41.5030.224ANOVAF1525.7882388.247Sig.0.0000.00010Initial clustering center1 (dangerous)64.4890.3482 (safe)12.4570.095Final clustering center1 (dangerous)51.0010.2732 (safe)33.2520.175The value of split point42.1270.224ANOVAF945.5291733.678Sig.0.0000.00015Initial clustering center1 (dangerous)64.0670.3712 (safe)14.9710.136Final clustering center1 (dangerous)51.2660.2712 (safe)34.0770.174The value of split point42.6720.223ANOVAF626.8871129.481Sig.0.0000.000The classification standard of 85%V–15%V was 41.503 km/h in a period of 5 minutes, 42.127 km/h in a period of 10 minutes, and 42.672 km/h in a period of 15 minutes. The standard variation coefficient was 0.224 in a period of 5 minutes, 0.224 in a period of 10 minutes, and 0.223 in a period of 15 minutes. From Table5, the results are statistically significant at the level of 0.05 (p value<0.05). This is consistent with the classification of traffic flow parameters. Then, the traffic flow status was finally divided into two categories named “safe” and “dangerous” through the classification of 85%V–15%V and the speed variation coefficient. The initial clustering center was consistent in all periods, while the period of 15 minutes was more reasonably compact.


## 4.2. Support Vector Machine Results

Based on the results of thek-means clustering analysis above, the value of 85%V–15%V and the speed variation coefficient were selected as two indicators according to the partial relationship tests. The greater the value is, the more dangerous the traffic flow status is. The relationship between the selected traffic flow parameters and truck proportion was analyzed as follows. Truck proportion, the value of 85%V–15%V, and the speed variation coefficient were considered as prediction indicators, while the classification of these parameters was regarded as response indicator. For the training data, 70% of the samples were randomly selected, while the rest were used as the testing data.The classification of 85%V–15%V by the support vector machine in different periods is shown in Figure2. A red x indicates the training data for number 1, which means a lower probability of traffic accidents. The purple x represents the testing data for number 1, the same meaning as the training data of number 1, accounting for 30% of all data. A green dot is the training data for number 2, which indicates a higher probability of traffic accidents. Then, a blue dot is the testing data for number 2. The circles are support vectors, and then the linear decision function is drawn. Thus, two traffic statuses could be classified by the linear classification function.Figure 2
Classification diagram of the support vector machine of 85%V–15%V.
(a)(b)(c)In the period of 5 minutes in the first picture in Figure2, when the truck proportion was from 0 to 0.4 and the value of 85%V–15%V was under 41.503 km/h, the traffic status was relatively safe, meaning that the probability of traffic accidents was lower. The range from 0.5 to 1.0 of truck proportion was relatively dispersed, while most were under 41.503 km/h, which shows that there was a relatively low probability of traffic accidents. When the truck proportion ranged from 0.2 to 0.6 and the value of 85%V–15%V was above 41.503 km/h, the probability of traffic accidents was relatively high. In this status, there were small cars mixed with trucks, and the performance of trucks was lower than that of small cars, so the speeds of these two types of vehicles were different from each other. Thus, the value 85%V–15%V was also dispersed, especially at truck proportions of 0.4 to 0.6.In the periods of 10 minutes and 15 minutes in the second and last picture in Figure2, we have the same conclusion as the period of 5 minutes. When the value of 85%V–15%V was above 42.127 km/h and 42.672 km/h, respectively, it was in dangerous traffic status when the truck proportion was from 0.2 to 0.6. It was in a safe traffic status when the truck proportion was in the ranges of 0.1 to 0.3 and 0.6 to 0.9 and the value of 85%V–15%V was under 42.127 km/h and 42.672 km/h otherwise. Taking a period of 15 minutes as an example, when the value of 85%V–15%V was above 42.672 km/h, the range of truck proportions from 0.3 to 0.5 was more likely to be dangerous than the ranges from 0.2 to 0.3 and from 0.5 to 0.6. When the value of 85%V–15%V was under 42.672 km/h, the range of truck proportions from 0.6 to 0.9 was more likely in a safe traffic status than the range from 0.2 to 0.3. The same trend was in these three periods of time, and the period of 15 minutes was clearer.Figure3 is the confusion matrix of testing data of 85%V–15%V in different periods, which is also known as the possibility of form or error matrix and is a specific table layout that allows visualization of the performance of a supervised learning algorithm. It exhibits the true classification of testing data. Each column represents the predicted value, and each row represents the actual class. In a period of 5 minutes, the correct rate score of the model of training data is 0.996. The testing data of 85%V–15%V that belong to number 1 is classified into the number 2 is just one sample, while the prediction of the value of 85%V–15%V is completely true when classified into number 2. All the correct predicted results are on the diagonal, so it is easy to tell the error from the confusion matrix. The testing data classification verification accuracy is 99.5% = (145 + 74)/(145 + 1+74)∗100%. In a period of 10 minutes, the correct rate score of the training data was 0.996. The testing data of 85% V–15% V which belongs to number 1 was completely truly classified into number 1. At the same time, the testing data belonging to number 2 was completely truly classified into number 2, so the testing data classification verification accuracy was 100%. In a period of 15 minutes, the correct rate score of the training data was 0.994. The testing data that belong to number 1 were corrected and classified into number 1. There is one sample that the value of 85% V–15% V belonged to number 2 but was wrongly classified into number 1. Therefore, the testing data classification verification accuracy was 98.7% = (46 + 29)/(46 + 1+29) ∗100%.Figure 3
Illustration of the confusion matrix of testing data of 85%V–15%V in different periods.
(a)(b)(c)Then, the model of the index of the speed variation coefficient was also built to explore the relationship between truck proportion and traffic safety. In Figure4, the data were relatively dispersed in a period of 5 minutes due to a smaller number of trucks and small cars under some situations, so some data were aggregated. When the speed variation coefficient was above 0.224, the truck proportion ranged from 0.2 to 0.6, and the range of 0.8 to 1.0 was in a dangerous traffic status, especially from 0.43 to 0.6, due to the higher variation coefficient. When the truck proportion was from 0.1 to 0.4 and from 0.7 to 1.0 and the variation coefficient was under 0.224, it was in a relatively safe traffic status that had a lower probability of accidents. In particular, when the truck proportion was from 0.8 to 1.0, it was rather safer than other proportions due to the lower variation coefficient.Figure 4
Classification diagram of the support vector machine of the speed variation coefficient.
(a)(b)(c)In the periods of 10 minutes and 15 minutes in Figure4, the two kinds of classifications in truck proportion and variation coefficient were clearer. In a period of 10 minutes, when the variation coefficient was above 0.224, the truck proportion ranged from 0.2 to 0.6, and the range of 0.8 to 1.0 was in a dangerous traffic status, especially the proportion from 0.4 to 0.6, due to the higher variation coefficient. The truck proportion ranged from 0.8 to 1.0 and was in a lower dangerous status compared with the proportion from 0.4 to 0.6. When the variation coefficient was under 0.224 and the truck proportion aggregated from 0.1 to 0.4 and from 0.7 to 0.9, there was a relatively safe traffic status. Then, the lower probability of accidents would be in the situation of truck proportions from 0.1 to 0.4 and from 0.7 to 0.9 and the variation coefficient under 0.223. Truck proportions from 0.2 to 0.3 were more likely to have lower safety than truck proportions from 0.8 to 0.9. When the variation coefficient was above 0.223, there was a higher probability of accidents when the truck proportion was from 0.4 to 0.6, while the other was relatively low.Figure5 is the confusion matrix of the testing data of the speed variation coefficient in different periods. In the same situation, it could determine the correction rate of the classification of prediction. The correct rate score of the model of training data of the variation coefficient was 0.986 in a period of 5 minutes. The fact that the testing data of the variation coefficient was classified as 1 is completely true in a period of 5 minutes, while there were three samples of number 2 meaning dangerous status classified into false status. Therefore, the accuracy of verification of the testing data of the variation coefficient was 98.6% = (140 + 77)/(140 + 3+77)∗100%. The correct rate scores of the training data of the variation coefficient were 1.0 and 0.994 in periods of 10 minutes and 15 minutes, respectively. The accuracy of verification of the testing data variation coefficient was 100%, which indicates good classification of traffic status.Figure 5
Illustration of the confusion matrix of the variation coefficient in different periods.
(a)(b)(c)In addition, the receiver operating characteristic curve (the ROC curve), also known as the susceptibility curve (sensitivity curve), can also be used to evaluate the performance of SVM because it can determine the accuracy of the classification of the parameter. It is based on a series of different methods of binary classification (boundary value or decision threshold). The value of 85%V–15%V and the variation coefficient can represent the traffic flow safety status to some extent. Therefore, the area under the ROC curve (AUC) of each test could also be calculated separately for comparison. The larger AUC was, the better the diagnostic result was. The value of AUC was from 0 to 1, and the classification algorithm of SVM was an uninformative classifier if it was less than 0.5; the classification algorithm had a certain accuracy if the AUC ranged from 0.7 to 0.9, and it was the best classifier when the high accuracy of AUC was greater than 0.9. Nevertheless, if the AUC varied from 0.5 to 0.7, the algorithm had low accuracy. When the AUC was less than 0.5, the diagnosis method was completely ineffective and had no diagnostic value.In Figure6, the first three pictures are the ROC curve and the area under the curve (AUC) of 85%V–15%V in three periods, while the rest of the pictures are the ROC curve and the area under the curve (AUC) of the variation coefficient in three periods. The AUCs of 85%V–15%V in these periods were both 1, which indicates the high accuracy of the SVM model. Therefore, it was the same situation for the variation coefficient. In summary, the confusion matrix, ROC curve, and area under the curve (AUC) were used to evaluate the accuracy of the SVM model.Figure 6
The ROC curve for SVM of 85%V–15%V and variation coefficient in different periods.
(a)(b)(c)(d)(e)(f)Above all, the value of 85%V–15%V and speed variation coefficient could reveal the impact of the truck proportion on the traffic safety. Therefore, the selected parameters served as surrogate safety measures to indirectly express the impact of truck proportion on freeway traffic safety. Table6 is the result of the classification of 85%V–15%V and speed variation coefficient. From Table 6, it can be seen that, regardless of the indicator of 85%V–15%V and the indicator of speed variation coefficient, the truck proportion in the range from 0.4 to 0.6 was in a safety traffic status when the threshold of 85%V–15%V was above approximately 42 km/h and the threshold of speed variation coefficient was above approximately 0.223. However, truck proportions ranging from 0.1 to 0.3 and from 0.7 to 0.9 were in a dangerous traffic status otherwise. In particular, in the threshold of the classification of 85%V–15%V above approximately 42 km/h and the variation coefficient above 0.223, the safety status was at truck proportions of 0.2 and 0.8. Otherwise, it was in a dangerous status at a truck proportion of 0.5, specifically.Table 6
Traffic status level of the classification of indicators and truck proportion.
Indicators of evaluationPeriod of timeThreshold of the classificationTruck proportionTraffic flow status85%V–15%V5 minutes≥41.503 km/h0.2–0.6Dangerous<41.503 km/h0−0.4, 0.5-1.0Safe10 minutes≥42.127 km/h0.2–0.6Dangerous<42.127 km/h0.1−0.3, 0.6−0.9Safe15 minutes≥42.672 km/h0.2–0.6Dangerous<42.672 km/h0.1−0.3, 0.6−0.9SafeSpeed variation coefficient5 minutes≥0.2240.2−0.6, 0.8−1.0Dangerous<0.2240.1−0.4, 0.7−1.0Safe10 minutes≥0.2240.2−0.6, 0.8−1.0Dangerous<0.2240.1−0.4, 0.7-0.9Safe15 minutes≥0.2230.4–0.6Dangerous<0.2230.1−0.4, 0.7−0.9SafeIn addition, it is known that the traffic flow safety status is related to speed parameters, such as the speed of the vehicle, speed difference, speed standard deviation, 85%V–15%V, and variation coefficient. It depends not only on the absolute speed but also on the speed variation coefficient, which is related to the degree of dispersion of the vehicle speed. Thus, the control of the speed [39] will be helpful for improving the safety of trucks on the freeway. The average speed, speed dispersion, variation coefficient of speed, traffic regulations, and the possibility of implementation of speed control standards and other factors should be considered in the development of speed control standards. According to the relationship between the truck proportion and the average speed of the truck and the relationship between the truck proportion and the average speed of the cars, the value of 85%V–15%V should be used to determine the speed limit; for example, 85%V could be used for the highest speed and 15%V could be used for the lowest speed [40, 41]. Then, the value of 85%V–15%V is less than the threshold of the classification, which could reduce the probability of traffic accidents to some extent.


## 5. Conclusion

This study explored the impact of truck proportion on traffic safety by using surrogate safety measures such as traffic flow parameters. Throughk-means clustering, the traffic surrogate parameters were classified into two statuses that could determine the traffic status in different periods by different truck proportions. Then, the support vector machine algorithm was used for training, testing, and verifying the classification and finding the threshold of the classification of different indicators. In this process, the characteristics of traffic flow parameters, including the average speed, speed difference, number of lane changes, speed variation coefficient, and value of 85%V–15%V with truck proportion, were analyzed by correlation analysis and partial correlation analysis. The correlation of the number of lane changes is less than 0.3, and the p value is more than 0.05, which is not significant bilaterally; the partial relationship is still weaker. Thus, 85%V–15%V and the speed variation coefficient were selected as surrogate safety measures to evaluate traffic flow safety status. Finally, the conclusion of the impact of the truck proportion on freeway traffic safety can be drawn.The results show that the relationship between truck proportion and the value of 85%V–15%V and the speed variation coefficient is generally consistent in different aggregation periods, showing the impact of truck proportion on traffic safety. When the value of 85%V–15%V is above 42 km/h, the traffic flow status tends to be dangerous with truck proportions ranging from 0.2 to 0.6, especially from 0.4 to 0.6. When the value of 85%V–15%V is under 42 km/h, the traffic flow status is relatively safe with truck proportions ranging from 0.1 to 0.3 and from 0.6 to 0.9, especially from 0.6 to 0.9. When the speed variation coefficient is above 0.223, the traffic flow status tends to be dangerous, with the truck proportion ranging from 0.4 to 0.6. When the speed variation coefficient is under 0.223, traffic flow status is relatively safe, with truck proportions ranging from 0.1 to 0.4 and from 0.7 to 0.9, especially from 0.7 to 0.9. In conclusion, the traffic flow status tends to be dangerous when the truck proportion ranges from 0.4 to 0.6 and when the value of 85%V–15%V and the speed variation coefficient are above 42 km/h and 0.223, respectively. While the truck proportion is from 0.1 to 0.3 and from 0.7 to 0.9, the traffic flow is relatively safe on the condition that the value of 85%V–15%V and the speed variation coefficient were under 42 km/h and 0.223, respectively.In addition, thek-means clustering and SVM are both appropriate algorithms for exploring traffic status classification. The results indicate that surrogate safety measures could be effectively classified as different risk levels to identify the traffic flow status of safety or unsafety by using the k-means clustering algorithm, while the support vector machine could establish the relationship among parameters quite well and indicate the influence of the truck proportion on traffic safety by surrogate safety measures. Compared with existing statistical methods, it does not involve the probability measure and the law of large numbers and greatly simplifies the usual classification and regression problems. Therefore, it is quite likely to fit well with two-classification problems in the traffic field, such as classifying driving patterns and traffic flow status. However, it should be noted that the classical SVM is only limited to two-classification problems. The multiclassification problems should resort to the multiclass SVM or other methods.The obtained conclusions could be meaningful in making an effective countermeasure on freeways of different truck proportions in different situations. To improve freeway traffic safety, the type of vehicles, especially trucks, and traffic speed on freeways should be controlled by traffic management departments. The improvement measures could be developed based on the above-mentioned analysis and real-time control of truck proportion from freeway entrances. For example, traffic flow restrictions, including the speed limit and truck traffic flow control, could be utilized in toll station entrances. Therefore, the truck proportion should be considered in setting reasonable speed limits if possible, which may improve freeway safety. In addition, effective freeway freight routes could be developed to control the truck proportion on the freeway, and the safe operation and management of trucks on the freeway should also be promoted.



---

*Source: 8636417-2020-08-12.xml*