A method for identifying the spatiotemporal impact range of traffic accidents and determining related factors
By merging data and using traffic operation index and spatial regression models, the problem of fixed granularity and spatial dependence in spatiotemporal impact analysis of highway traffic accidents is solved, and accurate analysis and impact identification of complex scenes are achieved.
Patent Information
- Application Number
- CN202410127201.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-01-30
AI Technical Summary
Existing methods are mostly based on fixed spatiotemporal granularity, which makes it difficult to adapt to the analysis of the spatiotemporal hysteresis impact of highly dynamic and complex highway traffic accidents, and does not consider spatial dependence, resulting in inaccurate or misleading analysis.
By fusing floating car trajectory data, traffic accident data and road network data, using spatiotemporal correlation and information fusion, we quantify the impact indicators of traffic accidents, including duration, road section length and severity, and use traffic operation index and spatial regression model to analyze traffic The spatial and temporal impact scope and associated factors of the accident.
It achieves accurate identification and analysis of the spatio-temporal impact range of highway traffic accidents, can adapt to complex scenarios, breaks through the limitations of fixed spatio-temporal granularity, takes into account spatial dependence, and improves the accuracy and applicability of analysis.
Smart Images

Figure CN117953685B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of traffic accident management and relates to a method for identifying the spatiotemporal impact range of a traffic accident and determining associated factors. Background Art
[0002] Road traffic is the key support for the national strategic delivery capability in all regions, all weather and all chains, and is the core infrastructure to ensure the stable development of social economy. With the explosive growth of China's motor vehicle ownership, road problems are becoming increasingly serious. Traffic congestion is the most widespread and influential problem among all traffic problems. It not only seriously affects the public's travel experience, but also causes significant economic losses. Expressways have important social values such as improving traffic efficiency and promoting economic development. However, because of their characteristics of high vehicle speeds, diverse vehicle types and isolated traffic environments, traffic accidents are an important cause of node paralysis and congestion spread, which can easily lead to large-scale traffic jams. Therefore, exploring the impact mechanism of highway traffic accidents and exploring their spatiotemporal characteristics and internal laws are of great practical significance for improving highway driving efficiency and taking targeted dynamic traffic control measures after traffic accidents.
[0003] For discrete events such as traffic accidents, most current studies mainly use queuing theory, shock wave models and simulation calculations to determine the scope of the spatiotemporal hysteresis of traffic events, starting from a simulation method of a specific fictitious road network and parameters to determine the spatiotemporal scope of the impact of traffic accidents. The early models under ideal assumptions have limited spatial migration capabilities and are not suitable for real traffic conditions. With the continuous enrichment of data collection methods, some scholars use real traffic data and many variable methods to conduct research on the spatiotemporal impact of traffic accidents. Existing causal analysis of the spatiotemporal hysteresis of traffic accidents mainly uses methods such as econometric models and causal inference models. However, most studies do not consider the spatial dependence between traffic accidents, which can easily lead to the omission of potential factors and even inaccurate or misleading conclusions.
[0004] In summary, existing methods are mostly based on fixed spatiotemporal granularity and conduct spatiotemporal hysteresis impact analysis of traffic accidents for simple traffic scenarios, which is difficult to adapt to the real traffic environment with high dynamics and complex scenarios. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a method for identifying the spatiotemporal impact range of traffic accidents, so as to solve the problem that existing methods are mostly based on fixed spatiotemporal granularity and perform spatiotemporal hysteresis impact analysis of traffic accidents for simple traffic scenarios, and are difficult to adapt to the real traffic environment of highly dynamic and complex scenarios.
[0006] Another object of an embodiment of the present invention is to provide a method for determining associated factors of the spatiotemporal impact range of a traffic accident.
[0007] The technical solution adopted in the embodiment of the present invention is: a method for identifying the spatiotemporal impact range of a traffic accident, comprising the following steps:
[0008] Step S1, performing spatiotemporal correlation and information fusion among heterogeneous data such as floating vehicle trajectory data, highway traffic accident data, and highway network data;
[0009] Step S2: Based on the spatiotemporal correlation and information fusion data obtained in step S1, a traffic operation index is introduced to evaluate the traffic status of each road section, and various indicators of the spatiotemporal impact of traffic accidents are quantified, including the duration of the traffic accident impact, the length of the road section affected by the traffic accident, and the severity of the traffic accident impact.
[0010] Furthermore, the specific process of step S1 is as follows:
[0011] Step S11, based on the traffic accident location information in the traffic accident data, determine the corresponding highway map element with the same road name and driving direction as the location information of each traffic accident point, and then use linear interpolation to calculate the spatial coordinates of each traffic accident point according to the starting mileage information of the corresponding highway map element, so as to realize the spatiotemporal association between the traffic accident data and the road network data;
[0012] Step S12, filter out the valid travel of the floating vehicle trajectory, assign the floating vehicle trajectory point to the traffic accident, and establish the spatial connection between the trajectory data and the traffic accident data;
[0013] Step S13: Establish a highway network directed graph G(V,E), where V is a node, i.e., a set of endpoints or intersections of each road segment, and E is a road segment, i.e., a set of directed edges e. The vehicle travels along the path on the road network, and the actual trajectory points passed are Z′={Z′0,...,Z′ n}, Z′ i ∈Z′,i∈[0,n],Z′ i The corresponding trajectory positioning point is Z i , trajectory positioning point Z i The longitude and latitude coordinates are (xi, yi);
[0014] Step S14: Calculate each trajectory positioning point Z i vertical distance to the road segment;
[0015] Step S15: Use the vertical distance calculated in step S14 and the shortest path principle to construct each track positioning point Z i The candidate road segment set S = {e1, e2, e3, ... e m}, m represents the total number of candidate road segments;
[0016] Step S16: Based on the calculation results of steps S12 to S15, construct the objective function of map matching to obtain the vehicle travel trajectory positioning point Z i The set of sections of the shortest path passed, calculate the Z of each trajectory positioning point i The distance between each segment in the segment set of the shortest path and each trajectory positioning point Z i The closest road segment is used as the trajectory positioning point Z i The matching road segments;
[0017] Step S17: Calculate the location points Z of each track by using the method of perpendicular intersection to find the foot of the perpendicular i The foot of the perpendicular to the matching section is the positioning point Z of each trajectory. i The matching trajectory point Z′ i .
[0018] Furthermore, the formula for calculating the vertical distance from each track positioning point to the road section in step S14 is as follows:
[0019]
[0020] in, Indicates the trajectory positioning point Z i Vertical distance to section e, Z′ i is the trajectory positioning point Z i The vertical projection on the road segment e, d(Z i ,Z′ i ) represents point Z i and Z′ i The Euclidean distance between them; v1 and v2 represent the two endpoints of the road segment e, d(Z i ,v1) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v1 of segment e, d(Z i ,v2) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v2 of segment e;
[0021] The construction rule of step S15 for constructing the candidate road segment set S for each trajectory point is as follows:
[0022]
[0023] Where δ is the maximum value of the positioning error of the trajectory point, that is, the distance from the trajectory point to the road section is required to be less than the maximum value of the positioning error δ, E1 represents the set of edges e that satisfy the condition of formula (2), and the set of all edges e in the set E of all edges in the road network G except E1 is set to E2.
[0024] Furthermore, the objective function of the map matching constructed in step S16 is as shown in formula (3):
[0025]
[0026] Among them, E1 represents the set of road segments where the distance from the trajectory point to the road segment is less than the maximum positioning error, that is, the set of edges e. The set of all edges e in the road network G except E1 is set as E2; R is the shortening rate, which is used to shorten the length of all edges e in E1, 0 < R < 1. After multiple experimental verifications, in the embodiments of the present invention, the value of R is preferably 0.3; l e is the length of edge e, and x e is a decision variable. If edge e ∈ S, then x e = 1, indicating that edge e exists in the shortest path, otherwise it is 0.
[0027] Further, the step S2 specifically includes the following steps:
[0028] Step S21: Based on the travel time of the vehicle passing through under free flow conditions and the actual travel time of the vehicle, construct an identification threshold considering the heterogeneity between road segments to identify the traffic operation state affected by the road;
[0029] Step S22: Based on the identification threshold considering the heterogeneity between road segments, screen out traffic accidents that affect the traffic of road segments;
[0030] Step S23: Quantify the duration of the traffic accident impact, the severity of the traffic accident impact, and the length of the road segment affected by the traffic accident.
[0031] Further, in step S21, the traffic operation index TPI is used to formulate the identification rule for the traffic accident impact. The traffic condition level division based on TPI is shown in the following table:
[0032]
[0033] Among them, T f represents the time for the vehicle to pass through under normal traffic conditions, that is, without congestion;
[0034] Based on the trajectory data, the speed distribution of each road segment throughout the day is sorted in ascending order, and then the speed value at the 85% position of the road segment speed sequence is used as its free flow speed V f ;
[0035] The 24 hours of a day are divided into multiple time slices. According to the trajectory data of the road segment throughout the day, the speed value of each time slice of the road segment is calculated as the actual driving speed V a . If there are no vehicles passing through the road segment in a certain time slice, it will cause the speed value to be missing. Based on the non-zero speed values of the time slices before and after the time slice with the missing speed value of the road segment and using the linear interpolation method to fill the missing value;
[0036] The traffic operation index TPI is calculated by the actual driving speed V a and free flow velocity V f The ratio is determined.
[0037] Furthermore, the specific process of step S22 is as follows:
[0038] Step S221, calculate the road section where the traffic accident occurred from the time t when the traffic accident occurred a Time slice T c The speed of the road segment in the first half hour of the time slice:
[0039] Assume that vehicle q is at time slice T c The journey trajectory of a person traveling on road section s during the period is composed of n trajectory points {Z′0,...,Z′ n} are connected in chronological order, and the road segment s is in the time slice T c A total of Q vehicles pass through the road section s in time slice T c The average speed is calculated as:
[0040]
[0041] in, Represents road segment s in time slice T c The average speed of vehicle q in time slice T c The total number of trajectory points on the road section s during the period, V n is the vehicle q at the nth trajectory point Z′ n The speed value;
[0042] Step S222: Based on the relationship between TPI and the actual speed of the road section where the traffic accident occurred and its upstream road section, determine whether the traffic accident affects the traffic operation state, and select traffic accidents that affect the traffic operation state. The determination formula is as follows:
[0043]
[0044] In the formula, is the speed of each time slice of the traffic accident section s and the adjacent upstream section s-1 within half an hour after the traffic accident, calculated according to formula (5), f,s 、V f,s-1 is the free flow speed of the section s where the traffic accident occurred and the adjacent upstream section s-1, T c is the time slice containing the traffic accident time; the intermediate variable a c If it is 1, it means that the traffic accident affects the traffic operation status;
[0045] The specific process of step S23 is as follows:
[0046] Step S231, starting from the road section where the traffic accident occurred, determine in sequence whether the traffic operation status of the adjacent upstream road sections is affected by the traffic accident;
[0047] Step S232: determine the time slice number T when there is no upstream road section sr whose traffic status is affected by the traffic accident m :
[0048] (1) Taking the road section s where the traffic accident is located as the current road section, the speed of each time slice of each current road section is calculated in turn, and the traffic operation state of each time slice of each current road section is determined according to formula (6) until the influence of the current traffic accident on the traffic state of the current road section in a certain time slice disappears;
[0049] (2) The upstream road segment sr adjacent to the current road segment is updated to the current road segment, with the initial value of r being 1, and the road segment speed of the updated current road segment in the next time slice is determined, and the impact of the current traffic accident on the traffic state of the updated current road segment is determined, until the impact of the current traffic accident on the traffic state of the updated current road segment disappears in a certain time slice;
[0050] (3) The value of r is increased by 1, and step (2) is repeated until the time slice number T is reached. m There is no upstream road section sr whose traffic status is affected by the current traffic accident, and the time slice number T is returned. m and upstream section number sr;
[0051] Step S232: Calculate the duration of the traffic accident impact according to the following formula:
[0052] H1=(T m -T c )*t cell ; (7)
[0053] H2=t cell -T A %t cell ; (8)
[0054] T influence =H1-H2; (9)
[0055] Among them, t cell is the time slice interval, H1 is the time slice T of the time when the traffic accident occurred. c and the traffic accident impact end time slice T m Calculated impact time; H2 is the time slice T where the traffic accident occurred c The number of minutes before the traffic accident occurs, T A is the number of minutes when the traffic accident occurred, TA %t cell The remainder of the number of minutes when the traffic accident occurred divided by the time interval of the time slice, H1-H2, can be used to obtain the duration T of the traffic accident impact. influence ;
[0056] According to the corresponding relationship between TPI and the severity of the traffic accident described in the table of step S211, the severity of the traffic accident at each time slice in the road section affected by the traffic accident can be obtained, and the maximum value of the severity of the impact is considered to be the impact degree AD of the traffic accident. accident :
[0057]
[0058] in, is the road segment s in time slice T c The degree of impact, AD s,t is the impact degree of road section s at time slice t, AD s,t+1 is the degree of influence of road section s at time slice t+1, is the last affected upstream segment sr at the last affected time slice T m the extent of impact;
[0059] To quantify the length of the road section affected by the traffic accident, the calculation formula is as follows:
[0060]
[0061] LS influence =Ld; (12)
[0062] Among them, LS s is the length of the road section s where the traffic accident occurred, LS s-i is the length of the upstream section si of section s, r is the total number of upstream sections of section s affected by traffic accidents, L is the sum of the lengths of all sections affected by traffic accidents, LS influence is the length of the road section affected by the actual traffic accident.
[0063] Furthermore, the various indicators of the impact of traffic accidents that are quantified are used to classify traffic accidents based on the spatiotemporal span of their impact using the K-Means clustering algorithm, and are used to mine the spatial distribution characteristics of the impact of traffic accidents using kernel density analysis.
[0064] Furthermore, the specific process of using the K-Means clustering algorithm to classify traffic accidents based on the time and space span of the traffic accident impact is as follows:
[0065] The optimal clustering number K value is determined by combining the DBI index and the elbow method. Based on the optimal clustering number, the three impact characteristics of the traffic accident impact duration, the length of the road section affected by the traffic accident, and the severity of the traffic accident impact are used for k-means clustering to classify traffic accidents. Traffic accidents with high similarity of impact characteristics are classified into the same category.
[0066] The specific calculation formula of DBI value is as follows:
[0067]
[0068] Among them, max i,i≠j Indicates that the similarity of the i-th cluster is the similarity between cluster i and other clusters j The maximum value of x represents the sample value within the cluster, that is, the traffic accident attribute value of different traffic accidents belonging to the same cluster. The traffic accident attribute value is the duration of traffic accident impact, the length of the road section affected by the traffic accident, or the degree of impact of the traffic accident. i is the traffic accident attribute cluster center value of the ith cluster, n ε is the number of clusters in the clustering result, d(x,X i ) represents the distance from the sample x in the i-th cluster to the cluster center X i The distance, n j represents the number of samples in the jth cluster, d(x,X j ) represents the distance from the sample x in the jth cluster to the cluster center X j The distance, n i represents the number of samples in the ith cluster, d(X i ,X j ) is the cluster center X i To cluster center X j distance;
[0069] The calculation formula of the sum of squared errors SSE in the elbow method as the number of clusters K changes is as follows:
[0070]
[0071] Among them, C i is the i-th cluster, p is C i The sample points in X i It is cluster C i The central value of , SSE is the clustering error of all samples;
[0072] Conduct kernel density analysis on the duration of traffic accident impact and the length of road sections affected by traffic accidents, explore the spatial distribution of traffic accident impacts, and identify hot spots affected by traffic accidents.
[0073] Another technical solution adopted by the embodiment of the present invention is: a method for determining the correlation factors of the spatiotemporal impact range of a traffic accident, comprising the following steps:
[0074] Identify the duration of traffic accident impact and the length of the traffic accident impact section using a method for identifying the spatio-temporal impact range of traffic accidents as described above;
[0075] Conduct a global Moran's I test on the duration of traffic accident impact and the length of the traffic accident impact section. The calculation formula is as follows to determine whether there is spatial correlation between the duration of traffic accident impact and the length of the traffic accident impact section:
[0076]
[0077] In the formula, m is the number of traffic accidents screened in step S2, and W a,b is the spatial weight between the attribute values of different traffic accidents a and b, is the average attribute value of m traffic accidents, and x a is the attribute value of traffic accident a, and x b is the attribute value of traffic accident b;
[0078] Select impact factors related to traffic accident spatio-temporal lag, namely traffic accident characteristics, environmental characteristics, traffic characteristics, and road characteristics, and construct an attribute table considering spatial heterogeneity as shown in the following table:
[0079]
[0080]
[0081] Use the variance inflation factor to conduct a multicollinearity diagnosis on the variables in the attribute table considering spatial heterogeneity. When 0 < VIF < 10, it indicates that there is no multicollinearity between variables. If it is diagnosed that there is multicollinearity between variables, screen the variables with multicollinearity and delete some variables with collinearity. If a variable has u categories, construct u - 1 dummy variables; when the values of all u - 1 dummy variables are 0, it means that the variable is the u-th category, that is, take the u-th category as the reference. When interpreting the regression coefficients after model regression, the regression coefficients of the dummy variables of other types of this variable all represent the impact of this dummy variable on the explanatory variable compared with the reference;
[0082] The calculation formula of the variance inflation factor is as follows:
[0083]
[0084] Among them, is the negative correlation coefficient of a single variable in all variables after introducing dummy variables in the attribute table considering spatial heterogeneity for regression analysis of the remaining variables;
[0085] If there is a spatial correlation between the duration of traffic accident impact and the length of the road section affected by the traffic accident, a spatial regression model is selected and constructed through the Lagrange multiplier test;
[0086] Based on the attribute table that eliminates multicollinearity, the constructed spatial regression model is used to analyze the associated factors of the spatiotemporal delay of traffic accidents, and the influencing factors related to the spatiotemporal impact range of traffic accidents are obtained.
[0087] The beneficial effects of the embodiments of the present invention are:
[0088] 1. A method for identifying the spatiotemporal impact range of traffic accidents is provided. The method uses real data that integrates road network data, traffic accident data, and floating vehicle trajectory data to identify and analyze the impact of traffic accidents. The fused data has high accuracy, fine spatial granularity, and rich semantic attributes. In addition, because the floating vehicle trajectory data covers a wide range, it can analyze the traffic operation status within a large spatiotemporal range and can adapt to the real traffic environment with high dynamics and complex scenes. It solves the problem that the existing methods are mostly based on fixed spatiotemporal granularity and simple traffic scenes for spatiotemporal hysteresis impact analysis of traffic accidents, which is difficult to adapt to the real traffic environment with high dynamics and complex scenes.
[0089] 2. The spatiotemporal impact range and degree of highway traffic accidents were quantified based on speed changes, and the spatiotemporal impact characteristics of traffic accidents (accident impact duration, impact length, impact degree, spatial distribution of accident spatiotemporal impact) and hot spots of traffic accident impact were identified and analyzed based on K-means cluster analysis and kernel density analysis methods; and the spatial error model that considers the spatial dependence between variables was used to analyze the factors affecting traffic accidents. This breaks through the limitations of previous studies based on fixed spatiotemporal granularity and simple traffic scenarios. The regression model based on real data and taking into account spatial dependence can effectively identify the spatiotemporal hysteresis effects and internal mechanism characteristics of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0091] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention.
[0092] Figure 2 Linear interpolation principle of the present invention example
[0093] Figure 3 A floating vehicle trajectory point screening diagram according to an embodiment of the present invention.
[0094] Figure 4 A schematic diagram of map matching according to an embodiment of the present invention.
[0095] Figure 5 Schematic diagram of the delayed impact of a traffic accident according to an embodiment of the present invention.
[0096] Figure 6 Kernel density map of the duration of traffic accident impact according to an embodiment of the present invention.
[0097] Figure 7 Kernel density map of the length of road sections affected by traffic accidents according to an embodiment of the present invention. DETAILED DESCRIPTION
[0098] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0099] Example 1
[0100] Figure 1 The present invention is a flowchart of a method for identifying and analyzing the spatiotemporal impact range of traffic accidents in an embodiment of the present invention. The present invention analyzes the speed change characteristics under the influence of traffic accidents based on floating vehicle trajectory data, traffic accident data and highway network data after spatiotemporal fusion; and then introduces a traffic operation index (TPI) that comprehensively considers free-flow traffic speed and actual passing speed to evaluate the traffic status of each road section, and quantifies and analyzes various indicators of the spatiotemporal impact of traffic accidents, including the duration of the traffic accident impact, the length of the road section affected by the traffic accident and the severity of the traffic accident impact, effectively describing the distribution characteristics of the spatiotemporal impact of traffic accidents. Finally, the spatiotemporal impact correlation factors of traffic accidents on highways are analyzed based on a spatial regression model.
[0101] The specific process of traffic accident spatiotemporal impact range identification and correlation analysis method is as follows:
[0102] Step S1, data preprocessing: performing spatiotemporal association and information fusion between heterogeneous data such as floating vehicle trajectory data, highway traffic accident data, and highway network data, and establishing generalized associations and conversion relationships between different geographic spatiotemporal data to achieve the goals of improving position accuracy, refining spatial granularity, enriching semantic attributes, and coordinating spatiotemporal relationships;
[0103] Step S2: Based on the spatiotemporal correlation and information fusion data obtained in step S1, a traffic operation index (TPI) that comprehensively considers the free-flow traffic speed and the actual passing speed is introduced to evaluate the traffic status of each road section, and to quantify various indicators of the spatiotemporal impact of traffic accidents, including the duration of the traffic accident impact, the length of the road section affected by the traffic accident, and the severity of the traffic accident impact.
[0104] The step S1 specifically includes the following steps:
[0105] Step S11: Based on the traffic accident location information in the traffic accident data, determine the corresponding highway map element with the same road name and driving direction as the location information of each traffic accident point, and then use linear interpolation to calculate the spatial coordinates of each traffic accident point according to the starting mileage information of the corresponding highway map element, such as Figure 2 As shown in the figure, C is the traffic accident point, A and B are known coordinate points of the highway network, and the coordinate values of coordinate points A and B are (X1, Y1) and (X2, Y2). According to the accident mileage pile number and the highway network section length attribute, it is judged that the accident point falls within a certain road section AB. Then, the precise coordinates (X, Y) of the accident point C are solved according to the following formula to realize the spatiotemporal association between traffic accident data and road network data:
[0106]
[0107] Step S12: The trips with less than 6 GPS positioning points in the floating vehicle trajectory data are regarded as invalid trips and deleted, and the valid trips of the floating vehicle trajectory are screened out, such as Figure 3 As shown, floating vehicle trajectory points are allocated to traffic accidents, that is, all floating vehicle trajectory points within 10km of each traffic accident are selected to establish the spatial connection between trajectory data and traffic accident data;
[0108] Step S13: Establish a directed graph G(V,E) of the expressway network in Hunan Province, where V is the set of endpoints v (endpoints or intersections of each road section), and E is the set of directed edges (road sections) e, such as Figure 4 As shown, the vehicle follows the path Driving on the road network, the actual trajectory points passed are Z′={Z′0,...,Z′ n}, Z′ i ∈Z′,i∈[0,n],Z′ i The corresponding trajectory positioning point is Z i ∈Z, Z is the trajectory positioning point Z i The collection of trajectory positioning point Z i The longitude and latitude coordinates are (xi, yi);
[0109] Step S14: Calculate each trajectory positioning point Z i The vertical distance to the road segment is as follows:
[0110]
[0111] in, Indicates the trajectory positioning point Z i Vertical distance to section e, Z′ i is the trajectory positioning point Z i The vertical projection on the road segment e, d(Z i ,Z′ i ) represents point Z i and Z′ i The Euclidean distance between them; v1 and v2 represent the two endpoints of the road segment e, d(Z i ,v1) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v1 of segment e, d(Z i ,v2) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v2 of segment e; that is, when the foot of the trajectory point falls on the line segment, calculate the distance from the trajectory point to the line connecting the two end points of the segment; otherwise, calculate the distance from the trajectory point to the two end points of the segment and take the minimum value;
[0112] Step S15: Use the vertical distance calculated in step S14 and the shortest path principle to construct each track positioning point Z i The candidate road segment set S = {e1, e2, e3, ... e m}, m represents the total number of candidate sections. To improve the calculation rate, each section is traversed and the trajectories within the range of δ are selected until all the trajectories are located at point Z. i The candidate sections are found and the construction rules are as follows:
[0113]
[0114] Among them, δ is the trajectory positioning point Z i The maximum value of the positioning error (such as 40 meters), that is, the trajectory positioning point Z is required i The distance to the road segment is less than the maximum value of the positioning error δ, E1 represents the set of edges e that satisfy the condition of formula (2), and the set of all edges e except E1 in the set E of all edges in the road network G is set to E2;
[0115] Step S16: Based on the calculation results of steps S12 to S15, construct the objective function of map matching, as shown in formula (3), and obtain the vehicle travel trajectory positioning point Z i The set of sections of the shortest path passed, calculate the Z of each trajectory positioning point i The distances to each segment in the segment set of the shortest path will be related to each trajectory positioning point Z i The closest road segment is used as the trajectory positioning point Z i The matching segments of:
[0116]
[0117] Among them, R is the shortening rate, which is used to shorten the length of all edges e in E1, 0 < R < 1. After multiple experimental verifications, it is better to take the value of R as 0.3 in the embodiments of the present invention; l e is the length of the edge e, and x e is a decision variable. If the edge e ∈ S, then x e = 1, indicating that the edge e exists in the shortest path, otherwise it is 0;
[0118] E1 is the set of road segments within a distance of 0 to δ from the trajectory positioning point Z i . The road segments included in E2 are all the road segments in the set E of all road segments in the road network G except E1, that is, the set of road segments with a relatively long distance from the trajectory positioning point Z i . R is used to shorten the length of the road segments in E1. To make the road segments close to the trajectory positioning point Z i have a higher priority and make them more likely to be matching road segments than other road segments. The constructed S = {e1, e2, e3,... e m} is the set of connected road segments that the vehicle's itinerary may pass through from the starting point to the ending point. If the road segments in the E1 and E2 sets are not in the set S, then it is considered that the road segment cannot be a trajectory matching road segment, that is, at this time x e is 0; Calculate the sum of the lengths of the road segments traveled from different paths from the starting point trajectory positioning point Z1 to the ending point trajectory positioning point Z n in turn. When this value obtains the minimum value, the set of road segments of the shortest path traveled by the vehicle from the starting point to the ending point is obtained. In the actual driving process, the shortest route is usually selected, so this set of road segments is regarded as the set of road segments actually passed by the vehicle;
[0119] Step S17: Calculate the foot of the perpendicular from each trajectory positioning point Z i to its matching road segment by using the method of finding the foot of the perpendicular of vertical intersection. The foot of the perpendicular point is the matching point of each trajectory positioning point Z i , that is, the trajectory matching point.
[0120] The specific steps of the said step S2 include the following steps:
[0121] Step S21: Based on the travel time of the vehicle passing through under free flow conditions and the travel time actually passed by the vehicle, construct an identification threshold considering the heterogeneity between road segments to identify the affected traffic operation state of the road:
[0122] The traffic operation index (TPI) is used to formulate the identification rules of traffic accident impact. TPI is a conceptual index value calculated based on the travel time of vehicles passing through the road to reflect the smoothness or congestion of the road. The ratio R of the actual travel time to the travel time under the free traffic flow state is proportional to the index value TPI. Because when the distance is equal, the speed is inversely proportional to the time, the relationship between the TPI value and the speed can be deduced, that is, on the same road section, the TPI can be calculated from the actual driving speed V a and free flow velocity V f Determine the ratio:
[0123]
[0124] Where, T a is the actual travel time, T f is the travel time at free flow speed, V a is the actual driving speed, V f is the free flow speed, as shown in Table 1, TPI can be quantified into five levels based on traffic operation conditions;
[0125] Table 1 Road condition classification based on traffic operation status TPI
[0126] TPI Corresponding road conditions Travel time Passing speed Severity of impact 0-2 Smooth <![CDATA[T f ]]> <![CDATA[V f ]]> 0 2-4 Basic smooth <![CDATA[1.2T f -1.5T f ]]> <![CDATA[0.66V f -0.83V f ]]> 1 4-6 Mild congestion <![CDATA[1.5T f -1.8T f ]]> <![CDATA[0.56V f -0.66V f ]]> 2 6-8 Moderate congestion <![CDATA[1.8T f -2.1T f ]]> <![CDATA[0.47V f -0.56V f ]]> 3 8-10 Severe congestion <![CDATA[>2.1T f ]]> <![CDATA[<0.47V f ]]> 4
[0127] Among them, T f Indicates the time it takes for a vehicle to pass when traffic conditions are normal, i.e., when there is no congestion;
[0128] Calculate the free flow speed of each road section, sort the speed distribution of each road section in ascending order based on the trajectory data, and then take the speed value at the 85% position of the road section speed sequence as its free flow speed V f ,In order to ensure that the free flow speed truly reflects the traffic operation status of the road, the number of trajectory records of the road section should be greater than 20 when calculating the road section speed;
[0129] Divide 24 hours a day into multiple time slices with a certain time interval (for example, divide 24 hours a day into 144 time slices with a 10-minute interval), calculate the speed value of each time slice based on the trajectory data of the road section for 24 hours a day, if there is no vehicle passing through a road section in a certain time slice, it will lead to missing speed values, and fill the missing values based on the non-zero speed values of the time slices before and after the time slice where the speed value of the road section is missing and use linear interpolation method;
[0130] Step S22: To determine whether a traffic accident affects the traffic operation status, select the traffic accidents that affect the road traffic:
[0131] Step S221, calculate the road section where the traffic accident occurred from the time t when the traffic accident occurred aTime slice T c The road speeds for the three time slices in the first half hour are:
[0132] Assume that vehicle q is at time slice T c When driving on road section s during the time period, the 24 hours of a day are divided into 144 time slices with an interval of 10 minutes, c = {1, 2, 3, ..., 144}, and the travel trajectory consists of n trajectory points {Z′0, ..., Z′ n} are connected in chronological order, and the road segment s is in the time slice T c A total of Q vehicles pass through the road section s in time slice T c The average speed is calculated as:
[0133]
[0134] in, Represents road segment s in time slice T c The average speed of vehicle q in time slice T c The total number of trajectory points on the road section s during the period, V n is the velocity value of vehicle q at the nth trajectory point;
[0135] Step S222: Based on the relationship between TPI and the actual speed of the road section where the traffic accident occurred and its upstream road section, determine whether the traffic accident affects the traffic operation state, and select traffic accidents that affect the traffic operation state. The determination formula is:
[0136]
[0137] In the formula, is the speed of each time slice of the traffic accident section s and the adjacent upstream section s-1 within half an hour after the traffic accident, calculated according to formula (5), f,s 、V f,s-1 is the free flow speed of the road section s where the traffic accident occurred and the adjacent upstream road section s-1, T c is the time slice containing the traffic accident time; the intermediate variable a c If it is 1, it means that the traffic accident affects the traffic operation status; that is, the actual speed of road section s when a traffic accident occurs Less than 0.83V f,s When, and / or the actual speed of the upstream section s-1 of the section s where a traffic accident occurred Less than 0.83V f,s-1 When , it indicates that the traffic status of the section s where the traffic accident occurred and the adjacent upstream section s-1 are affected;
[0138] Step S23, quantify the duration of the traffic accident impact. Usually, when a traffic accident occurs on a highway, the following vehicles must slow down and detour because the accident vehicle occupies the lane, and the road capacity decreases. Figure 5 It can be seen that when a traffic accident occurs on section s, the speed of the section will decrease, and due to the deceleration of vehicles on section s, the speed of the upstream section s-1 will also decrease. This impact will continue to be transmitted to the upstream section until the impact of the traffic accident disappears. The specific process is:
[0139] Step S231, starting from the road section where the traffic accident occurred, determine in sequence whether the traffic operation status of the adjacent upstream road sections is affected by the traffic accident;
[0140] Step S232: determine the time slice number T when there is no upstream road section whose traffic status is affected by the traffic accident. m :
[0141] (1) Taking the road section s where the traffic accident is located as the current road section, the speed of each time slice of each current road section is calculated in turn, and the traffic operation state of each time slice of each current road section is determined according to formula (6) until the influence of the current traffic accident on the traffic state of the current road section in a certain time slice disappears;
[0142] (2) The upstream road segment sr adjacent to the current road segment is updated to the current road segment, with the initial value of r being 1, and the road segment speed of the updated current road segment in the next time slice is determined, and the impact of the current traffic accident on the traffic state of the updated current road segment is determined, until the impact of the current traffic accident on the traffic state of the updated current road segment disappears in a certain time slice;
[0143] (3) The value of r is increased by 1, and step (2) is repeated until the time slice number T m There is no upstream road section sr whose traffic status is affected by the current traffic accident, and the time slice number T is returned. m and upstream section number sr;
[0144] Step S233: quantify the duration of the impact of the traffic accident:
[0145] Since the time when a traffic accident occurs is not necessarily within the time slice T c The head and tail positions of the traffic accident need to be subtracted from the time slice T where the traffic accident occurred. c The time before the traffic accident occurs is calculated based on the following formula:
[0146] H1=(T m -T c )*t cell ; (7)
[0147] H2=t cell -T A %t cell ; (8)
[0148] T influence =H1-H2; (9)
[0149] Among them, t cell is the time slice interval, H1 is the time slice T of the time when the traffic accident occurred. c and the traffic accident impact end time slice T m Calculated impact time; H2 is the time slice T where the traffic accident occurred c The number of minutes before the traffic accident occurs, T A is the number of minutes when the traffic accident occurred, T A %t cell Indicates the remainder of the number of minutes when the traffic accident occurred divided by the time interval of the time slice. For example, if the accident occurred at 2018-10-10 14:36:00 seconds, T A is 36, T A %t cell =36%10=6, H1-H2 can be used to get the duration T of the traffic accident impact influence ;
[0150] Quantify the severity of the impact of traffic accidents:
[0151] According to the corresponding relationship between TPI and traffic accident severity described in Table 1 of step S211, the traffic accident severity (AD) of each time slice in the road section affected by the traffic accident can be obtained, and the maximum value of the severity is considered to be the traffic accident severity AD. accident :
[0152]
[0153] in, is the road segment s in time slice T c The degree of impact, AD s,t is the impact degree of road section s at time slice t, AD s,t+1 is the degree of influence of road section s at time slice t+1, is the last affected upstream segment sr at the last affected time slice T m the extent of impact;
[0154] Quantify the length of road sections affected by traffic accidents:
[0155] In the process of calculating the duration of the traffic accident impact in step S23, all the road sections affected by the traffic accident are obtained. The spatial range L affected by the traffic accident can be obtained by adding up the lengths of these road sections. Because the traffic accident does not necessarily occur at the starting point of the road section, the length of the road section affected by the traffic accident needs to be subtracted from the distance d between the traffic accident point and the starting point of the road section. The calculation formula is as follows:
[0156]
[0157] LS influence =Ld; (12)
[0158] Among them, LS s is the length of the road section s where the traffic accident occurred, LS s-i is the length of the upstream section si of section s, r is the total number of upstream sections of section s affected by traffic accidents, L is the sum of the lengths of all sections affected by traffic accidents, LS influence is the length of the road section affected by the actual traffic accident.
[0159] In some embodiments, based on the various traffic accident impact indicators quantified in step S2, the K-Means clustering algorithm is used to classify traffic accidents based on the spatiotemporal span of the traffic accident impact, and kernel density analysis is used to explore the spatial distribution characteristics of the traffic accident impact.
[0160] In some embodiments, the specific process of using the K-Means clustering algorithm to classify traffic accidents based on the spatiotemporal span of the impact of the traffic accidents is as follows:
[0161] The optimal number of clusters is determined by combining the DBI index and the elbow method. Based on the optimal number of clusters K, the three impact characteristics of the traffic accident impact duration, the length of the traffic accident impact section, and the severity of the traffic accident impact obtained in step S2 are used to perform k-means cluster analysis to classify traffic accidents. Traffic accidents with similar impact characteristics are classified into the same category, such as accidents with a very long impact duration, a very long impact length, and a very serious impact degree are classified into one category, and accidents with a very short impact duration, a very short impact length, and a very light impact degree are classified into one category, so as to analyze the similarities and differences of the impact characteristics of different traffic accidents:
[0162] In order to evaluate the similarity between clusters of traffic accidents, the corresponding DBI value is calculated according to the clustering results generated by different K values. The specific calculation formula is as follows:
[0163]
[0164] in, represents the sum of the intra-cluster distance of cluster i and the intra-cluster distance of cluster j; d(Xi ,X j ) represents the inter-cluster distance between cluster i and cluster j, Indicates the similarity between cluster i and cluster j. The larger the value, the more similar cluster i and cluster j are. That is, when the intra-cluster distance is large and the inter-cluster distance is small, the value is large. A large intra-cluster distance indicates that the sample points in the cluster are distributed discretely and the similarity is low. A small inter-cluster distance indicates that the similarity between clusters is high, which corresponds to a poor clustering result. max i,i≠j Indicates that the similarity of the i-th cluster is the similarity between cluster i and other clusters j The DBI index is the average value of the similarities of all clusters. The larger the DBI index, the worse the clustering result, and the smaller the DBI index, the better the clustering result. x represents the sample value within the cluster, that is, the traffic accident attribute value of different traffic accidents belonging to the same cluster (traffic accident impact duration, traffic accident impact section length or traffic accident impact degree), X i is the traffic accident attribute cluster center value of the ith cluster, n ε is the number of cluster centers in the clustering result, d(x,X i ) represents the distance from the sample x in the i-th cluster to the cluster center X i The distance, d(x,X j ) represents the distance from the sample x in the jth cluster to the cluster center X j The distance, d(X i ,X j ) is the cluster center X i To cluster center X j distance;
[0165] As the number of clusters K increases, the degree of aggregation within the cluster will gradually increase, so the error sum of squares (SSE) will naturally become smaller. When K reaches the actual number of clusters, the decrease in SSE will decrease sharply when the K value is increased, and it will slowly decrease as the K value continues to increase. Therefore, the K value corresponding to the elbow is the actual number of clusters of the data. The calculation formula for the error sum of squares SSE that changes with the number of clusters K in the elbow method is as follows:
[0166]
[0167] Among them, C i is the i-th cluster, p is C i The sample points in X i It is cluster C i The central value of , SSE is the clustering error of all samples, which represents the quality of clustering effect;
[0168] The smaller the DBI is, the better the clustering effect is, and the K value corresponding to the elbow of the elbow method is the optimal clustering number. Therefore, the example of the present invention combines the minimum value of the DBI index and the elbow point of the elbow diagram to determine the optimal clustering number K=8.
[0169] Conducting kernel density analysis on the duration of traffic accident impact and the length of road sections affected by traffic accidents, exploring the spatial distribution of traffic accident impacts, and identifying hot spots affected by traffic accidents is conducive to discovering the associated factors that form hot spots in the area, thereby facilitating the formulation of scientific traffic safety management measures and road planning measures. For example, setting up traffic signs, increasing traffic police force, and improving driver safety awareness on sections of roads with hot spots of accident spatiotemporal impact. The kernel density method is a visualization tool that describes the characteristic distribution of the spatiotemporal impact of traffic accidents. By expressing the density calculation results in two-dimensional grayscale, it is possible to simply and intuitively obtain the distribution characteristics of point groups such as aggregation or dispersion.
[0170] Kernel density analysis of the duration of traffic accident impact and the length of road sections affected by traffic accidents was conducted on the highway network in Hunan Province. The analysis results are as follows: Figure 6-7 As shown in the figure, it reflects that from the perspective of cities, the hotspots affected by traffic accidents are mainly concentrated in Changsha and its neighboring cities (Xiangtan, Yiyang and Zhuzhou, etc.); from the perspective of road networks, the hotspots are mainly concentrated in the Beijing-Hong Kong-Macao Expressway, Shanghai-Kunming Expressway, Changzhang Expressway and Changliu Expressway, etc. In addition, hotspots affected by traffic accidents are also easily formed at the intersections of various expressways. At the same time, the concentration of hotspots of the length of the road section affected by traffic accidents is lower than the duration of the traffic accident impact, and compared with the duration of the traffic accident impact, some new hotspots have been added, such as the Changde section of the Changzhang Expressway, and the Hengyang and Yueyang sections of the Beijing-Hong Kong-Macao Expressway.
[0171] Example 2
[0172] This embodiment provides a method for determining associated factors of a traffic accident's spatiotemporal impact range, comprising the following steps:
[0173] Using a traffic accident spatiotemporal impact range identification method as described in Example 1 to identify the duration of the traffic accident impact and the length of the road section affected by the traffic accident;
[0174] A global Moran's I test is performed on the duration of traffic accident impact and the length of the road section affected by the traffic accident. The calculation formula is as follows:
[0175]
[0176] Where m is the number of traffic accidents screened out in step S2, W a,b is the spatial weight between the attribute values of different traffic accidents a and b (duration of traffic accident impact, length of affected road section). In this embodiment, the spatial weight W between the attribute values of different traffic accidents a and b is determined by the inverse distance weight method. a,b , the spatial weight value between two traffic accident attribute values is the Euclidean distance d between traffic accidents a and b ab The square of the reciprocal of is the average value of the attributes of m traffic accidents, and x a is the attribute value of traffic accident a, and x b is the attribute value of traffic accident b; if I > 0, it indicates that there is a positive spatial correlation in this attribute value; if I < 0, it means that there is a negative spatial correlation in this attribute value; if I = 0, it indicates that there is no spatial correlation in this attribute value; the global Moran's I test shows that there is a spatial correlation in the duration of traffic accident impact and the length of the affected road section of different traffic accidents;
[0177] Select the influencing factors related to the spatio-temporal lag of traffic accidents, namely traffic accident characteristics (traffic accident type, presence or absence of casualties, traffic accident occurrence date and time), environmental characteristics (weather), traffic characteristics (average vehicle speed on the road section within half an hour before the traffic accident and whether there is a secondary traffic accident within the spatio-temporal range affected by the traffic accident), and road characteristics (road type and whether the speed limit level of the road section changes), and construct an attribute table considering spatial heterogeneity, as specifically described in Table 2.
[0178] Table 2 Attribute table considering spatial heterogeneity
[0179]
[0180]
[0181] Multicollinearity test among variables. In order to avoid multicollinearity among variables, the example of the present invention uses the variance inflation factor (VIF) to conduct a multicollinearity diagnosis on the above variables. When 0 < VIF < 10, it indicates that there is no multicollinearity among variables. If it is diagnosed that there is multicollinearity among variables, the variables with multicollinearity will be screened, and some variables with collinearity will be deleted. For example, the two variables of collision with a stationary vehicle and collision with a fixed object are collinear, that is, only one of the above two variables needs to be selected for subsequent analysis (collision with a stationary vehicle or collision with a fixed object); to avoid the occurrence of multicollinearity, if a certain variable has u categories, then u - 1 dummy variables are constructed. When the values of all u - 1 dummy variables are 0, it means that this variable is the u-th category, and the u-th category is used as a reference.
[0182] When using a multivariate linear model (the spatial error model is a type of multivariate linear model) for regression, if the explanatory variable X is a continuous variable, then the regression coefficient β can be interpreted as: the average change in the explained variable Y caused by each unit change in X when other explanatory variables remain unchanged; if the explanatory variable X is a discrete variable, such as whether a secondary accident occurred (1 = yes, 0 = no), then the regression coefficient β can be interpreted as: the average change in the explanatory variable Y caused by X = 1 (secondary accident occurred) compared to X = 0 (no secondary accident occurred) when other explanatory variables remain unchanged.
[0183] Taking the road type variable as an example, as shown in Table 3, the road type is divided into three categories: ordinary roads, bridge roads and tunnel roads. Two virtual variables (type 1 and type 2) are set, among which the attribute "ordinary road" in the road type is used as a reference. When the road type is "ordinary road", the values of the two virtual variables are both 0; type 1 corresponds to bridge roads, that is, when the road is a bridge road, type 1 = 1, otherwise it is 0; type 2 corresponds to tunnel roads, that is, when the road is a tunnel road, type 2 = 1, otherwise it is 0. When interpreting the regression coefficients after model regression, the regression coefficients of the virtual variables of other road types all represent the impact of the virtual variable on the explanatory variable compared with the reference, that is, the difference in the impact of the traffic accident on the duration or the length of the affected road section when the accident occurs on the bridge road (tunnel road) compared with the ordinary road.
[0184] Table 3 Construction table of dummy variables for scattered variables of road type
[0185]
[0186] The calculation formula of variance inflation factor is as follows:
[0187]
[0188] in, In order to take into account the negative correlation coefficient of the regression analysis of the single variable on the remaining 14 variables after the introduction of the virtual variable in the attribute table of spatial heterogeneity; the 15 variables are: traffic accident type with fixed objects, other accident types (rollover, fire, etc.), accident with casualties, accident time in the morning, accident time in the morning, accident time at noon, accident time in the afternoon, accident time in the evening, accident time in the middle of the night, rainy weather, average speed of the road section before the accident, secondary accident, accident section on the bridge section, accident section on the tunnel section, and change of speed limit level of the accident section;
[0189] If there is a spatial correlation between the duration of traffic accident impact and the length of the road section affected by the traffic accident, the spatial regression model is selected through the Lagrange multiplier test to determine the selection of the spatial error model (SEM). This model reflects the spatial dependence through the spatial error variable, that is, the spatial disturbance term is related to the spatial overall, and the disturbance of a certain space will affect other spaces with the spatial effect. Its general form is as follows:
[0190] y=Xβ+ξ;(17)
[0191] ξ=(1+λW) -1 ε; (18)
[0192] Where: ε~N(0,σ 2 I), y represents the dependent variable (the duration of traffic accident impact or the length of the affected road section), X represents the explanatory variables, i.e., the 15 variables after constructing the virtual variables, β represents the parameter to be estimated, which reflects the impact of the explanatory variables on the dependent variable; λ represents the spatial error coefficient, which reflects the spatial dependence of the error term; ξ is the random error vector of the normal distribution; W represents the spatial weight matrix, i.e., the SEM model multiplies the spatial error coefficient λ to be estimated by the spatial weight matrix W, and reflects the spatial correlation by introducing the spatial weight matrix W into the spatial error variable. Each element in the spatial weight W matrix corresponds to the square of the inverse of the Euclidean distance between each traffic accident point, which is related to the spatial autoregressive process of the interference term ε;
[0193] Based on the attribute table that eliminates multicollinearity, the constructed spatial regression model, namely SEM, is used to analyze the influencing factors of the spatiotemporal delay of traffic accidents, and the influencing factors related to the spatiotemporal impact range of traffic accidents (the duration of traffic accident impact and the length of the affected road section) are obtained. The effect of each influencing factor on the duration of traffic accident impact and the length of the affected road section is explored to solve the current lack of analysis of the factors associated with the duration of traffic accident impact and spatial scope, and the current neglect of the spatial dependence between explanatory variables.
[0194] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for identifying the spatiotemporal impact range of a traffic accident, characterized in that: The following steps are involved: Step S1, performing spatiotemporal correlation and information fusion of floating vehicle trajectory data, highway traffic accident data, and highway network data; Step S2: Based on the spatiotemporal correlation and information fusion data obtained in step S1, a traffic operation index is introduced to evaluate the traffic status of each road section, and various indicators of the spatiotemporal impact of traffic accidents are quantified, including the duration of the traffic accident impact, the length of the road section affected by the traffic accident, and the severity of the traffic accident impact; The specific process of step S1 is as follows: Step S11, based on the traffic accident location information in the traffic accident data, determine the corresponding highway map element with the same road name and driving direction as the location information of each traffic accident point, and then use linear interpolation to calculate the spatial coordinates of each traffic accident point according to the starting mileage information of the corresponding highway map element, so as to realize the spatiotemporal association between the traffic accident data and the road network data; Step S12, filter out the valid travel of the floating vehicle trajectory, assign the floating vehicle trajectory point to the traffic accident, and establish the spatial connection between the trajectory data and the traffic accident data; Step S13: Establish a highway network directed graph G(V,E), where V is a node, i.e., a set of endpoints or intersections of each road segment, and E is a road segment, i.e., a set of directed edges e. The vehicle travels along the path on the road network, and the actual trajectory points passed are Z′={Z′0,...,Z′ n }, Z′ i ∈Z′,i∈[0,n],Z′ i The corresponding trajectory positioning point is Z i , trajectory positioning point Z i The longitude and latitude coordinates are (xi, yi); Step S14: Calculate each trajectory positioning point Z i vertical distance to the road segment; Step S15: Using the vertical distance calculated in step S14 and the shortest path principle, construct each track positioning point Z i The candidate road segment set S = {e1, e2, e3, ... e m }, m represents the total number of candidate road segments; Step S16: Based on the calculation results of steps S12 to S15, construct the objective function of map matching to obtain the vehicle travel trajectory positioning point Z i The set of sections of the shortest path passed, calculate the Z of each trajectory positioning point i The distance between each segment in the segment set of the shortest path and each trajectory positioning point Z i The closest road segment is used as the trajectory positioning point Z i The matching road segments; Step S17: Calculate the location points Z of each track by using the method of perpendicular intersection to find the foot of the perpendicular i The foot of the perpendicular to the matching section is the positioning point Z of each trajectory. i The matching trajectory point Z′ i .
2. A method for identifying the spatiotemporal impact range of a traffic accident according to claim 1, characterized in that: The formula for calculating the vertical distance from each track positioning point to the road section in step S14 is as follows: in, Indicates the trajectory positioning point Z i Vertical distance to section e, Z′ i is the trajectory positioning point Z i The vertical projection on the road segment e, d(Z i ,Z′ i ) represents point Z i and Z′ i The Euclidean distance between them; v1 and v2 represent the two endpoints of the road segment e, d(Z i ,v1) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v1 of segment e, d(Z i ,v2) represents the trajectory positioning point Z i The Euclidean distance to the endpoint v2 of segment e; The construction rules of the candidate road segment set S for each trajectory point in step S15 are as follows: Where δ is the maximum value of the positioning error of the trajectory point, that is, the distance from the trajectory point to the road section is required to be less than the maximum value of the positioning error δ, E1 represents the set of edges e that satisfy the condition of formula (2), and the set of all edges e in the set E of all edges in the road network G except E1 is set to E2.
3. A method for identifying the spatiotemporal impact range of a traffic accident according to claim 1, characterized in that: The objective function of the map matching constructed in step S16 is shown in formula (3): Where E1 represents the road segment whose distance from the trajectory point to the road segment is less than the maximum value of the positioning error, i.e., the set of edges e; the set of all edges e except E1 in the set E of all edges in the road network G is set to E2; R is the shortening rate, which is used to shorten the length of all edges e in E1, 0 <R<1;l e is the length of side e, x e is a decision variable. If edge e∈S, then x e =1, indicating that edge e exists in the shortest path, otherwise it is 0.
4. A method for identifying the spatiotemporal impact range of a traffic accident according to any one of claims 1 to 3, characterized in that: The step S2 specifically includes the following steps: Step S21, based on the travel time of vehicles in the free flow state and the actual travel time of vehicles, construct an identification threshold that takes into account the heterogeneity between road sections to identify the traffic operation state affected by the road; Step S22: based on the recognition threshold that takes into account the heterogeneity between road sections, screen out traffic accidents that affect the traffic on the road section; Step S23: quantify the duration of the traffic accident impact, the severity of the traffic accident impact, and the length of the road section affected by the traffic accident.
5. A method for identifying the spatiotemporal impact range of a traffic accident according to claim 4, characterized in that: The step S21 uses the traffic operation index TPI to formulate the identification rules of the impact of traffic accidents. The road condition level classification based on TPI is shown in the following table: Among them, T f Indicates the time it takes for a vehicle to pass when traffic conditions are normal, i.e., when there is no congestion; The speed distribution of each road section throughout the day is sorted in ascending order based on the trajectory data, and then the speed value at the 85% position of the road section speed sequence is taken as its free flow speed V f ; Divide 24 hours a day into multiple time slices, and calculate the road speed value of each time slice based on the 24-hour trajectory data of the road section, which is the actual driving speed V a If no vehicle passes through a road section within a certain time slice, the speed value will be missing. The missing value is filled by linear interpolation based on the non-zero speed values of the time slices before and after the time slice where the speed value of the road section is missing; The traffic operation index TPI is calculated by the actual driving speed V a and free flow velocity V f The ratio is determined.
6. A method for identifying the spatiotemporal impact range of a traffic accident according to claim 5, characterized in that: The specific process of step S22 is as follows: Step S221, calculate the road section where the traffic accident occurred from the time t when the traffic accident occurred a Time slice T c The speed of the road segment in the first half hour of the time slice: Assume that vehicle q is at time slice T c The journey trajectory of a person traveling on road section s during the period is composed of n trajectory points {Z′0,...,Z′ n } are connected in chronological order, and the road segment s is in the time slice T c A total of Q vehicles pass through the road section s in time slice T c The average speed is calculated as: in, Represents road segment s in time slice T c The average speed of vehicle q in time slice T c The total number of trajectory points on the road section s during the period, V n is the vehicle q at the nth trajectory point Z′ n The speed value; Step S222: Based on the relationship between TPI and the actual speed of the road section where the traffic accident occurred and its upstream road section, determine whether the traffic accident affects the traffic operation state, and select traffic accidents that affect the traffic operation state. The determination formula is as follows: In the formula, is the speed of each time slice of the traffic accident section s and the adjacent upstream section s-1 within half an hour after the traffic accident, calculated according to formula (5), f,s 、V f,s-1 is the free flow speed of the section s where the traffic accident occurred and the adjacent upstream section s-1, T c is the time slice containing the traffic accident time; the intermediate variable a c If it is 1, it means that the traffic accident affects the traffic operation status; The specific process of step S23 is as follows: Step S231, starting from the road section where the traffic accident occurred, determine in sequence whether the traffic operation status of the adjacent upstream road sections is affected by the traffic accident; Step S232: determine the time slice number T when there is no upstream road section sr whose traffic status is affected by the traffic accident m : (1) Taking the road section s where the traffic accident is located as the current road section, the speed of each time slice of each current road section is calculated in turn, and the traffic operation state of each time slice of each current road section is determined according to formula (6) until the influence of the current traffic accident on the traffic state of the current road section in a certain time slice disappears; (2) Update the upstream road section s-r adjacent to the current road section to the current road section, with the initial value of r being 1. Determine the road section speed of the updated current road section in the next time slice and judge the impact of the current traffic accident on the traffic state of the updated current road section until the impact of the current traffic accident on the traffic state of the updated current road section disappears in a certain time slice; (3) The value of r is increased by 1, and step (2) is repeated until the time slice number T m There is no upstream road section sr whose traffic status is affected by the current traffic accident, and the time slice sequence number T is returned. m and upstream section number sr; Step S232: Calculate the duration of the traffic accident impact according to the following formula: H1=(T m -T c )*t cell ; (7) H2=t cell -T A %t cell ; (8) T influence =H1-H2; (9) Among them, t cell is the time slice interval, H1 is the time slice T of the time when the traffic accident occurred. c and the traffic accident impact end time slice T m Calculated impact time; H2 is the time slice T where the traffic accident occurred c The number of minutes before the traffic accident occurs, T A is the number of minutes when the traffic accident occurred, T A %t cell The remainder of the number of minutes when the traffic accident occurred divided by the time interval of the time slice, H1-H2, can be used to obtain the duration T of the traffic accident impact. influence ; According to the corresponding relationship between TPI and the severity of the traffic accident described in the table of step S211, the severity of the traffic accident at each time slice in the road section affected by the traffic accident can be obtained, and the maximum value of the severity of the impact is considered to be the impact degree AD of the traffic accident. accident : in, is the road segment s in time slice T c The degree of impact, AD s,t is the impact degree of road section s at time slice t, AD s,t+1 is the degree of influence of road section s at time slice t+1, is the last affected upstream segment sr at the last affected time slice T m the extent of impact; Quantify the road section length affected by the traffic accident. The calculation formula is as follows: LS influence =Ld; (12) Among them, LS s is the length of the road section s where the traffic accident occurred, LS s-i is the length of the upstream section si of section s, r is the total number of upstream sections of section s affected by traffic accidents, L is the sum of the lengths of all sections affected by traffic accidents, LS influence is the actual length of the road section affected by the traffic accident, and d is the distance between the traffic accident point and the starting point of the road section.
7. A method for identifying the spatiotemporal impact range of a traffic accident according to any one of claims 1 to 3, 5 or 6, characterized in that: Quantify various indicators of the traffic accident impact, which are used to classify traffic accidents based on the spatio-temporal span of the traffic accident impact by using the K-Means clustering algorithm, and are used to mine the spatial distribution characteristics of the traffic accident impact by using kernel density analysis.
8. A method for identifying the spatiotemporal impact range of a traffic accident according to claim 7, characterized in that: The specific process of classifying traffic accidents based on the spatio-temporal span of the traffic accident impact by using the K-Means clustering algorithm is as follows: Combine the DBI index and the elbow method to determine the optimal number of clusters K value. Based on the optimal number of clusters, use the three impact characteristics of the traffic accident impact duration, the traffic accident impact road section length, and the severity of the traffic accident impact to perform k-means clustering to classify traffic accidents, and classify traffic accidents with high similarity of impact characteristics into the same class; The DBI value. The specific calculation formula is as follows: Among them, max i,i≠j Indicates that the similarity of the i-th cluster is the similarity between cluster i and other clusters j The maximum value of x represents the sample value within the cluster, that is, the traffic accident attribute value of different traffic accidents belonging to the same cluster. The traffic accident attribute value is the duration of traffic accident impact, the length of the road section affected by the traffic accident, or the degree of impact of the traffic accident. i is the traffic accident attribute cluster center value of the ith cluster, n ε is the number of clusters in the clustering result, d(x,X i ) represents the distance from the sample x in the i-th cluster to the cluster center X i The distance, n j represents the number of samples in the jth cluster, d(x,X j ) represents the distance from the sample x in the jth cluster to the cluster center X j The distance, n i represents the number of samples in the i-th cluster, d(X i ,X j ) is the cluster center X i To cluster center X j distance; The calculation formula of the sum of squared errors SSE that changes with the number of clusters K in the elbow method is as follows: Among them, C i is the i-th cluster, p is C i The sample points in X i It is cluster C i The central value of , SSE is the clustering error of all samples; Perform kernel density analysis on the traffic accident impact duration and the traffic accident impact road section length to mine the spatial distribution of the traffic accident impact and identify the hot spots of the traffic accident impact.
9. A method for determining the correlation factors of the spatiotemporal impact range of a traffic accident, characterized in that: It includes the following steps: Use a traffic accident spatio-temporal impact range identification method as described in any one of claims 1 to 8 to identify the traffic accident impact duration and the traffic accident impact road section length; Perform a global Moran's I test on the traffic accident impact duration and the traffic accident impact road section length. The calculation formula is as follows, and judge whether there is spatial correlation between the traffic accident impact duration and the traffic accident impact road section length: Where m is the number of traffic accidents screened out in step S2, W a,b is the spatial weight between the attribute values of different traffic accidents a and b, is the average attribute value of m traffic accidents, x a is the attribute value of traffic accident a, x b is the attribute value of traffic accident b; Select impact factors related to traffic accident spatio-temporal lag, that is, traffic accident characteristics, environmental characteristics, traffic characteristics, and road characteristics, and construct an attribute table considering spatial heterogeneity as shown in the following table: Use the variance inflation factor to perform a multicollinearity diagnosis on the variables in the attribute table considering spatial heterogeneity. When 0 < VIF < 10, it indicates that there is no multicollinearity between variables. If it is diagnosed that there is multicollinearity between variables, screen the variables with multicollinearity and delete some variables with collinearity. If a variable has u categories, then construct u - 1 dummy variables; when the values of all u - 1 dummy variables are 0, it means that the variable is the u-th category, that is, take the u-th category as the reference. When interpreting the regression coefficients after model regression, the regression coefficients of other types of dummy variables of the variable all represent the impact of the dummy variable on the explanatory variable compared with the reference; The calculation formula of the variance inflation factor is as follows: in, In order to take into account the negative correlation coefficient of the regression analysis of a single variable on the other variables after the introduction of dummy variables in the attribute table of spatial heterogeneity; If there is spatial correlation between the traffic accident impact duration and the traffic accident impact road section length, select and construct a spatial regression model through the Lagrange multiplier test; Based on the attribute table that eliminates multicollinearity, the constructed spatial regression model is used to analyze the associated factors of the spatiotemporal delay of traffic accidents, and the influencing factors related to the spatiotemporal impact range of traffic accidents are obtained.
