Vehicle active avoidance behavior identification and analysis method based on trajectory data
Through statistics and machine learning methods based on trajectory data, the active avoidance behavior of vehicles is identified and analyzed, which solves the problem of insufficient consideration of surrounding vehicles and driver factors in the existing technology, and provides a more detailed analysis and strategy of active avoidance behavior. , which improves data support for traffic safety.
Patent Information
- Application Number
- CN202411072853.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Existing research on active avoidance behavior fails to fully consider factors such as the influence of surrounding vehicles, the driver's personal style and real-time driving status, and there are deficiencies in the classification and identification methods of active avoidance types.
Statistical methods and machine learning models based on trajectory data are used, combined with vehicle trajectory data in real scenarios, to classify active avoidance behavior scenarios and types. The influencing factors of avoidance behavior are studied through the Logit model, and active avoidance behavior is identified and analyzed.
Effectively identify and analyze vehicle active avoidance behavior, deeply explore the occurrence mechanism and influencing factors of avoidance behavior, provide more accurate active avoidance strategies, and provide more detailed micro-data support for the field of traffic safety.
Smart Images

Figure CN118770201A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of road traffic safety, and in particular to a method for identifying and analyzing active avoidance behavior of a vehicle based on trajectory data. Background Art
[0002] In the study of factors affecting driving behavior, domestic and foreign scholars have conducted in-depth research based on various data such as traffic accidents, traffic violations, driving simulation experiments, vehicle trajectories, etc., combined with factors such as weather, road design, time, and space. The research mainly focuses on analyzing the factors affecting the occurrence and severity of traffic accidents, violations, and conflicts under the influence of dangerous driving behavior.
[0003] Active avoidance behavior is one of the typical driving behaviors. In the research on active avoidance behavior of vehicles, the avoidance types mainly include braking, lane changing, and coordination (lane changing + braking). However, in actual situations, there are situations where the speed of the target lane is higher than that of the avoidance vehicle. At this time, the vehicle may need to accelerate and change lanes to avoid risks. Previous studies have not fully considered this behavior, and the classification and identification methods of active avoidance types need to be improved.
[0004] Due to data limitations, existing research on factors affecting active avoidance behavior mainly considers vehicle dynamics, vehicle braking force, and reaction time, but fails to fully consider factors such as the impact of surrounding vehicles, the driver's personal style, and real-time driving status. Trajectory data has been widely used in the field of traffic safety research. It records high-precision speed and position information of the current vehicle and surrounding vehicles. Through calculation, it can divide the driving style and driving status of the vehicle, and can provide rich micro data for the identification and analysis of active avoidance behavior.
[0005] In view of this, the present application provides a method for identifying and analyzing vehicle active avoidance behavior based on trajectory data. Summary of the invention
[0006] This application provides a method for identifying and analyzing active avoidance behaviors of vehicles based on trajectory data. This solution uses a combination of statistical methods and the running trajectory data of vehicles in real scenarios to define active avoidance behaviors of vehicles under normal conditions. After preprocessing the trajectory data, a method for identifying active avoidance behaviors is proposed to identify active avoidance behaviors in trajectory data and conduct a preliminary analysis of their characteristics. Through machine learning and multiple Logit models, an analysis model of factors affecting active avoidance behaviors and their results is constructed to further explore the occurrence mechanism and influencing factors of avoidance behaviors.
[0007] The vehicle active avoidance behavior recognition and analysis method based on trajectory data is characterized by:
[0008] First, based on the running trajectory data of the vehicle in the real scene, the active avoidance behavior scenarios are divided and the active avoidance behavior types are defined;
[0009] Secondly, based on the vehicle running trajectory data, an active avoidance behavior recognition method based on vehicle trajectory data and an avoidance result recognition method are proposed;
[0010] Then, a multinomial Logit model based on machine learning and fixed parameters is established to study the influence of various factors on the type of active avoidance behavior of vehicles;
[0011] Finally, a fixed parameter Logit model, a random parameter Logit model and a random parameter Logit model considering mean and variance were established to study the impact of various factors on the avoidance results.
[0012] In summary, this application has the following beneficial effects:
[0013] By comprehensively applying statistical methods and combining the running trajectory data of vehicles in real scenarios, the active avoidance behavior of vehicles under normal conditions is defined. After preprocessing the trajectory data, an identification method for active avoidance behavior is proposed to identify the active avoidance behavior in the trajectory data and conduct a preliminary analysis of its characteristics. Through machine learning and multi-logit models, an analysis model of factors affecting active avoidance behavior and its results is constructed to further explore the occurrence mechanism and influencing factors of avoidance behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a schematic diagram of the research technology route of this application;
[0015] Figure 2 This is a schematic diagram of the active avoidance behavior scenario of this application;
[0016] Figure 3 This is a schematic diagram of the active avoidance behavior selection of this application;
[0017] Figure 4 This is a schematic diagram of the active avoidance behavior identification process of this application. DETAILED DESCRIPTION
[0018] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0019] 1. Vehicle active avoidance behavior recognition and analysis method based on trajectory data
[0020] This application is based on the running trajectory data of vehicles in real scenarios. First, the active avoidance behavior scenarios are divided and the types of active avoidance behaviors are defined. Then, an active avoidance behavior identification method based on vehicle trajectory data is proposed, and the types and frequency distribution characteristics of vehicle active avoidance behaviors are studied. Finally, a study on the influencing factors of vehicle active avoidance behaviors is carried out to provide a basis for the formulation of active avoidance strategies.
[0021] 1.1 Types of vehicle active avoidance behaviors
[0022] 1.1.1 Definition of vehicle active avoidance behavior types
[0023] According to the operation mode and behavior characteristics (such as Figure 3 As shown in Figure 2, the active avoidance behaviors of vehicles are divided into the following types:
[0024] (1) Braking behavior
[0025] Vehicles in the conflict area reduce their speed through braking operations, increase the distance from the vehicle in front, and avoid the risk of collision with the vehicle in front.
[0026] (2) Lane changing behavior
[0027] In the conflict area, if the driving conditions in the surrounding lanes permit, the vehicle changes lanes at an appropriate speed according to the vehicle condition to avoid the risk of collision with the vehicle in front. According to the change in vehicle speed during the lane change process, the vehicle's lane change avoidance behavior is divided into three types: uniform speed lane change, acceleration lane change, and braking lane change.
[0028] ① Constant speed lane change: The driver keeps the speed within a small range while transferring the vehicle to the adjacent lane;
[0029] ② Accelerated lane change: When the speed is lower than the target lane speed, the vehicle will increase its speed while ensuring safety to achieve fast lane change and avoid collision;
[0030] ③ Slow down and change lanes: This behavior combines the slowdown behavior and the lane change behavior. When the speed of the current vehicle is greater than the speed of the target lane, the vehicle slows down appropriately and changes lanes to ensure safe lane change while avoiding the risk of rear-end collision.
[0031] 1.2 Research on the identification method and characteristics of vehicle active avoidance behavior
[0032] 1.2.1 Vehicle Active Avoidance Behavior Identification Method
[0033] The vehicle's active avoidance behavior is divided into four types: braking avoidance, constant speed lane change avoidance, acceleration lane change avoidance, and deceleration lane change avoidance. According to the definition of the vehicle's active avoidance behavior, the active avoidance behavior type identification process is formulated based on the trajectory data after data preprocessing (such as Figure 4As shown), in order to determine the safety of the vehicle's current driving state, reference is made to the conclusions of previous studies (see 88-90 below):
[0034]
[88] Fancher PS,Bareket Z,Ervin R D.Human-centered design of an acc-with-braking and forward-crash-warning system[J].Vehicle System Dynamics,2001,36:203-223.
[0035]
[89] Lee K,Peng H.Evaluation ofautomotive forward collision warning and collision avoidance algorithms[J].Vehicle System Dynamics,2005,43:735-751.
[0036]
[90] Jeppsson H, M, Lubbe N.Real life safety benefits ofincreasing brake deceleration in car-to-pedestrian accidents:Simulation of Vacuum Emergency Braking[J].AccidentAnalysis&Prevention,2018,111:311-320.
[0037] When TTC is greater than 7s, the vehicle has no rear-end collision risk. When it is less than 7s, the driver will take braking action. When it is between 0.7-2s, the vehicle enters the danger zone. When it is less than 0.7s, the vehicle is extremely dangerous and difficult to intervene.
[0038] This application uses the vehicle safety index (TTC) = 7s as the threshold for determining the conflict area. The determination conditions for different types of active avoidance behaviors of different vehicles are as follows:
[0039] (1) Braking avoidance judgment conditions
[0040] In order to avoid the occurrence of deceleration in a short period of time caused by the driver's accidental braking, data errors, and other non-driver subjective intentions during the recognition process, when identifying the braking avoidance behavior, the time it takes for the vehicle's braking deceleration to gradually rise to the maximum value is taken, that is, Δt c =0.2s, as one of the judgment conditions.
[0041] (2) Lane change avoidance judgment conditions
[0042] When TTC is less than 7s, if the vehicle's lane number changes, it is considered that a lane change has occurred, and the vehicle's uniform speed, acceleration, and deceleration behaviors during the lane change are further determined.
[0043] In view of the fact that the speed change Δv of the vehicle during lane change is rarely 0 in real data, considering that the vehicle is allowed to have a certain floating range, this study uses the average speed change of the vehicle during lane change as The frequency fitting distribution results are combined with cluster analysis to determine the thresholds for distinguishing acceleration, constant speed, and deceleration during vehicle lane change. Using the K-means cluster analysis method, the average change in speed during vehicle lane change is divided into different clusters between 3 and 20. The silhouette coefficient, Davies-Bouldin score, and Calinski-Harabasz index are used for comprehensive evaluation, and the optimal number of clusters is 15. The value of the 9th cluster is in the interval [-0.04, 0.00], which corresponds to the value range [μ-1 / 7σ, μ+1 / 7σ), that is, [-0.041, 0.004). Therefore, according to the comparative analysis, the vehicle lane change period is taken as: When is the vehicle acceleration; Time is the uniform speed of the vehicle; When the vehicle accelerates.
[0044] ① Change lanes at a constant speed to avoid
[0045] When a vehicle changes lanes in the conflict area, the average speed change
[0046] When , the active avoidance behavior of the vehicle is considered to be a constant speed lane change avoidance.
[0047] ② Accelerate and change lanes to avoid
[0048] When a vehicle changes lanes in the conflict area, the average speed change When , the active avoidance behavior of the vehicle is considered to be accelerated lane change avoidance.
[0049] ③ Braking and changing lanes to avoid
[0050] When a vehicle changes lanes in the conflict area, the average speed change When , the active avoidance behavior of the vehicle is considered to be braking lane change avoidance.
[0051] Through the avoidance behavior recognition method based on trajectory data, a total of 8215 active avoidance behaviors were identified (as shown in Table 1.1), including 216 acceleration lane changes, 96 constant speed lane changes, 242 deceleration lane changes, and 7661 braking.
[0052]
[0053] 1.2.2 Method for judging the result of vehicle active avoidance behavior
[0054] In order to study the effect of active avoidance behavior, the avoidance result is defined as whether the TTC between the vehicle and the vehicle in front is greater than 7s after a single active avoidance behavior. The statistical characteristics of the avoidance results are analyzed and found that among the different types of active avoidance behaviors of vehicles, after a single lane change avoidance behavior (acceleration lane change, constant speed lane change and deceleration lane change), the successful avoidance ratio of the three types of lane change avoidance behaviors is above 71.76%, among which the constant speed lane change accounts for as high as 86.46%, while the successful avoidance ratio of a single braking avoidance behavior is only 18.42%, which fully shows that lane change operation is more effective in avoiding rear-end collision risks (as shown in Table 1.2); the behavior of entering the comfort zone by single braking avoidance accounts for only 18.43%, indicating that when the vehicle takes braking to avoid risks, it usually needs to take multiple braking operations.
[0055] Table 1.2 Statistics of active avoidance behavior results
[0056] Avoidance results Accelerating lane change Changing lanes at a constant speed Slow down and change lanes brake total Entering the comfort zone after a single avoidance 155 83 191 1412 1841 After a single avoidance, the user fails to enter the comfort zone 61 13 51 6249 6374 total 216 96 242 7661 8215
[0057] 1.3 Modeling and result analysis of factors affecting vehicle active avoidance behavior
[0058] 1.3.1 Research on active avoidance behavior types based on machine learning and multinomial logit model
[0059] Objectively, the type of active avoidance behavior of a vehicle is affected by factors such as the driver, the vehicle itself, and the driving environment. Therefore, a machine learning model (XGBoost, CatBoost, convolutional neural network) and a fixed-parameter multinomial Logit model are established to study the impact of various factors on the type of active avoidance behavior of the vehicle. The characteristic variables representing the influencing factors in the model are shown in the following table:
[0060] Vehicle candidate feature parameters and definitions
[0061]
[0062] The model performance is measured using indicators such as accuracy, recall, and F1 value. In addition, the SHAP method based on the machine learning model is combined with the elasticity analysis results of the fixed parameter multinomial Logit model to explain the impact of different characteristic variables in the model on the type of active avoidance behavior.
[0063] (1) Data resampling
[0064] Among the active avoidance behaviors identified, the frequency of braking avoidance behaviors is 7661 (93.26%), and the frequency of uniform speed avoidance behaviors is 96 (1.17%). The imbalance ratio is 30:1, which shows a serious data imbalance problem. The use of unbalanced data will cause the classifier to tend to classify the data into the majority class, which will cause problems such as overfitting and reduced model sensitivity, affecting the overall performance of the model. Therefore, before building the model, the synthetic minority oversampling technology (SMOTE) and the adaptive synthetic sampling (ADASYN) method are used to resample the data.
[0065] (2) Model construction
[0066] ① Machine Learning Model
[0067] The machine learning model uses XGBoost (eXtreme Gradient Boosting), CatBoost (Categorical Boosting) and Convolutional Neural Network (CNN) models. XGBoost is an ensemble learning algorithm based on gradient boosting tree. It trains multiple decision trees through continuous iterations. The new decision tree fits the residual of the current prediction value and the true label in each iteration. Improved methods such as regularization, tree pruning and feature selection are introduced to control the complexity of the model. It is not easily affected by data anomalies and missing data and has good stability. CatBoost is also based on the gradient boosting tree model framework. The difference is that CatBoost embeds a numerical feature algorithm and uses a sorting method to solve the problems of gradient estimation bias and prediction offset. XGBoost is based on the number of each tree in the binary tree structure component, and the greedy algorithm only considers one of the segmentation methods, which may lead to an asymmetric tree structure; CatBoost's gradient boosting method based on sorting is based on the decision tree of the binary tree structure component. At the same time, the sorting information of the feature value is considered to select the best segmentation point for classification in multiple segmentation schemes, so that the tree structure is relatively symmetrical and not prone to overfitting. When analyzing influencing factors based on the CNN model, the vehicle trajectory data is regarded as a one-dimensional image. The CNN model is used to extract and learn the characteristic variables representing vehicle dynamics and traffic status to achieve the classification of active avoidance behavior types. CNN contains an input layer, multiple hidden layers, and an output layer. The hidden layers of CNN are usually composed of a series of convolutional layers, pooling layers, and fully connected layers. The hyperparameters of the convolutional layer include the number of convolutional layers, the number of convolutional kernels, the kernel size, and the dilation rate. The hyperparameters of the CNN model, such as the number of convolutional layers, the number of convolutional kernels, the kernel size, the dilation rate, the number of fully connected layers, the number of neurons, and the drop rate, are determined by Bayesian optimization. The candidate set is shown in Table 1.3.
[0068] Table 1.3 CNN hyperparameter candidate set
[0069] Hyperparameters Candidate Set Number of convolutional layers [2,3,4] Number of convolution kernels [32,64,128,256,512] Kernel size [3,4,5,6] Expansion rate [1,2,3,4,5] Number of fully connected layers [1,2,3] Number of neurons [256,512,1024] Discard rate [0,0.1,0.2,0.3,0.4,0.5]
[0070] Due to the lack of interpretability of machine learning, the SHAP algorithm is considered to explain the results of machine learning models. SHAP (Shapley Additive explanations) is a model explanation tool proposed based on the cooperative game theory of Shaply values. It is used to explain the output of machine learning models and calculate the average marginal contribution of features to the model prediction results, indicating the contribution of each feature to the prediction results.
[0071] ②Multinomial Logit Model
[0072] 1) Collinearity test
[0073] Multicollinearity refers to the correlation between the characteristic variables of the model. The existence of multicollinearity will affect the accuracy of the parameter estimation results. At the same time, too high multicollinearity may cause the model to overfit, greatly reducing the model performance. When the model is constructed, the multicollinearity between the characteristic variables is estimated, and the variance inflation factor (VIF) is used to test the correlation between the characteristic variables. When the maximum value of the variance inflation factor is greater than 10, it is considered that there is a high multicollinearity. The characteristic variables are entered into the model one by one, and the goodness of fit and the significant level of the variables are observed at the same time. The significant variables and the best fitting model are retained. Since the categorical variables representing the same feature are correlated, the categorical variables with the largest number are selected for collinearity test.
[0074] The inspection steps are shown in Table 1.4.
[0075]
[0076]
[0077] 2) Model building
[0078] In the fixed parameter multinomial Logit model, the vehicle active avoidance behavior type is the dependent variable, including deceleration lane change avoidance, constant speed lane change avoidance, acceleration lane change avoidance and braking avoidance. The utility function of each characteristic variable on the active avoidance behavior type is shown in formula (1.1).
[0079] U ij =β i X ij +ε ij (1.1)
[0080] In the formula, X ij are the characteristic variables; β i is the parameter vector of each characteristic variable; ε ij is the error term.
[0081] The expression of the multinomial Logit model is shown in formula (1.2).
[0082]
[0083] Where P ij is the probability of active avoidance behavior type i in sample j; I is the set of all active avoidance behavior types.
[0084] Nlogit is a standard package software for evaluating discrete choice models, integrating a full set of statistical program functions. Therefore, the software Nlogit 5.0 was used to estimate the model parameters. In view of the fact that the maximum likelihood estimation of the random parameter logit model requires numerical integration of the logit formula, which is computationally complex, the maximum likelihood estimation based on simulation was adopted. Bhat et al. (Bhat CR. Simulation estimation of mixed discrete choice models using randomized and scrambled Halton sequences [J]. Transportation Research Part B: Methodological, 2003, 37: 837-855) found that the Halton sampling method based on simulation was better than pure random sampling, so the Halton sampling method was used for 200 samplings instead of random sampling method to estimate the parameters. In order to obtain the best model prediction performance, forward stepwise regression was adopted, that is, starting from the empty model, each time a characteristic variable was added, the model was refitted, the evaluation index was calculated, and the significance test of the independent variable was performed, the insignificant characteristic variables were eliminated, and the significant variables were added to the model, and whether the variables were random variables and the distribution they obeyed were determined one by one. At the same time, possible distributions of model parameters were considered, including normal distribution, lognormal distribution and uniform distribution. When the standard error of the assumed distribution was not equal to zero at the 10% significance level, the corresponding parameters were considered to be random.
[0085] ③Model evaluation method
[0086] 1) Accuracy is the ratio of the number of samples correctly classified by the classifier to the total number of samples, which is used to evaluate the overall performance of the model. The calculation formula is shown in formula (1.3):
[0087]
[0088] Where TP is the true positive, that is, the number of samples correctly predicted as positive by the classifier; TN is the true negative, that is, the number of samples correctly predicted as negative by the classifier; FP is the false positive, that is, the number of samples incorrectly predicted as positive by the classifier; FN is the false negative, that is, the number of samples incorrectly predicted as negative by the classifier.
[0089] 2) Recall refers to the ratio of the number of samples correctly predicted by the classifier as positive examples to the total number of actual positive examples.
[0090]
[0091] 3) The F1 value is the harmonic mean of precision and recall.
[0092]
[0093] Where Precision is the accuracy.
[0094] The accuracy calculation formula is as follows:
[0095]
[0096] (3) Model evaluation
[0097] ①XGBoost
[0098] The XGBoost model was constructed based on the original data and the resampled data, of which 80% was used for model training and 20% was used as test samples. The test results are shown in Table 1.5. The results show that the XGBoost model constructed with unbalanced data cannot successfully estimate the behavior categories with small data volumes such as deceleration lane change, uniform speed lane change and acceleration lane change, and the gap is more significant compared with braking avoidance. The F1 values of different avoidance types are visualized. The F1 value of uniform speed lane change in the original data is only 0.15. The XGBoost models established based on the two resampling methods of SMOTE and ADASYN both ensure the accuracy of braking avoidance estimation while making up for the estimation deviation of active avoidance behavior types with small data volumes. Among them, the XGBoost model constructed based on the resampled data of the SMOTE method correctly estimated 4537 samples out of 4900 test samples, with a correct estimation of 92.59%, while the XGBoost model constructed based on the resampled data of the ADASYN method correctly estimated 93.23%, indicating that the XGBoost model constructed based on the resampled data of the ADASYN method has a low misclassification rate.
[0099] Table 1.5 Comparison of XGBoost model results under different resampling methods
[0100]
[0101] ②CatBoost
[0102] The CatBoost model was constructed with the same test ratio and hyperparameter settings, and the results are shown in Table 1.6. The confusion matrix shows that the CatBoost model built based on the original data has serious deviations in estimation, and the prediction accuracy of deceleration and constant speed lane change is 0. The model is more inclined to estimate the sample as a braking avoidance behavior. The prediction accuracy of the CatBoost model constructed after resampling by the SMOTE and ADASYN methods is similar. Combined with the F1 value results, it can be seen that the prediction accuracy of the CatBoost model is lower than that of the XGBoost model, and XGBoost shows better performance through different resampling techniques.
[0103]
[0104] 3. CNN model
[0105] The optimized CNN model has 4 convolutional layers and 2 fully connected layers. In each convolutional layer, the number of convolution kernels, kernel size, and expansion rate are 256, 3, and 3, respectively. In each fully connected layer, the number of neurons and the dropout rate are 512 and 0.2, respectively. The estimation results are shown in Table 1.7. The confusion matrix shows that the CNN model built based on the original data also has serious estimation bias, and the model is more inclined to estimate the sample as a braking avoidance behavior. The CNN model built based on the two resampled data shows a higher prediction accuracy. Combined with the F1 value results, it can be seen that the prediction accuracy of the CNN model is higher than that of the CatBoost model and the XGBoost model, and the F1 values are all above 0.90. Among them, the FI values of the models built based on the ADASYN resampling method are all higher than 0.95.
[0106] Table 1.7 Comparison of CNN model results under different resampling methods
[0107]
[0108]
[0109] ④ Fixed parameter multinomial logit model
[0110] Table 1.8 Comparison of multinomial logit model results under different resampling methods
[0111]
[0112] The unbalanced data caused the four constructed models to tend to estimate the majority category of braking avoidance, with a low prediction level (as shown in Table 1.8). In addition, compared with the CNN model, the F1 value of the minority samples was lower, reflecting the shortcomings of traditional statistical models in estimating minority samples.
[0113] The F1 value of the model constructed by SMOTE resampled data in predicting lane change avoidance behavior is higher than that of the ADASYN model. Although the prediction performance is improved after resampling by SMOTE and ADASYN, the proportion of incorrect predictions is still higher than that of the three machine learning models by observing the confusion matrix.
[0114] Based on the above conclusions, a fixed-parameter multinomial Logit model constructed using the resampled data using the SMOTE method was used for further research.
[0115] (4) Model results analysis
[0116] Comparing the results of the machine learning model, the multinomial Logit model with better performance was selected to analyze the influencing factors of active avoidance behavior. The final estimation results of the multinomial Logit model are shown in Table 1.9.
[0117] By comparing the significance of the influencing factors of different active avoidance types, the results show that the target vehicle speed only has a significant impact on the acceleration lane change behavior; the speed and acceleration of the rear vehicle have no significant impact on the acceleration lane change behavior. Compared with the rear vehicle, the vehicle pays more attention to the relevant factors of the front vehicle when avoiding risks by changing lanes; except for the influence of the speed of the right rear vehicle on braking avoidance, the relevant factors of other adjacent lanes significantly affect the choice of vehicle active avoidance behavior, indicating that the traffic conditions of the adjacent lanes are fully considered when the vehicle performs active avoidance behavior; the aggressive driving style has a significant impact on braking and deceleration lane change behavior.
[0118] The model results were further analyzed by dividing the characteristic variables into four categories: vehicle-related factors, front vehicle-related factors, rear vehicle-related factors, and adjacent lane-related factors. In order to study the impact of changes in different characteristic variables on the type of vehicle active avoidance behavior, the probability elasticity average of each factor was calculated to represent the impact of each characteristic variable on the possibility of vehicle active avoidance behavior selection.
[0119] Table 1.9 The impact of characteristic variables on active avoidance behavior types (multinomial logit model)
[0120]
[0121]
[0122] Note: **, **, ** ==> Significance at 1%, 5%, and 10% levels.
[0123] 1.3.2 Modeling of active avoidance behavior results and analysis of influencing factors considering heterogeneity
[0124] There are differences or diversity between and within individuals in a group or system, that is, heterogeneity, including heterogeneity between individuals, heterogeneity within individuals, and heterogeneity of error terms. The Logit model assumes that there is a log-linear relationship between the characteristic variable and the dependent variable, but there is often a nonlinear relationship between the characteristic variable and the dependent variable, and it is difficult to collect and consider all characteristic factors in the study. Therefore, there is unobserved heterogeneity in the traditional Logit model. If the unobserved heterogeneity is ignored, the estimated parameters are usually biased and inefficient, which leads to incorrect inferences and predictions. In order to study the effect of active avoidance behavior, the avoidance result data, that is, whether the vehicle can enter the comfort zone after a single active avoidance behavior, are used to construct a fixed parameter model, a random parameter model, and a random parameter model considering the mean and variance, and analyze the impact of each characteristic variable on the result of active avoidance behavior. Among them, the random parameter Logit model considers the heterogeneity between the error term and individuals, and the random parameter Logit model with mean and variance heterogeneity considers the heterogeneity within individuals while considering the heterogeneity between the error term and individuals.
[0125] (1) Model establishment
[0126] ① Fixed parameter Logit model
[0127] The stepwise regression method is used to select key variables, and the final binary Logit model is gradually obtained based on the vehicle active avoidance result data. The linear utility function of different avoidance results i is introduced (Formula 1.7), where the error term is assumed to obey a generalized extreme value distribution. If it obeys the logistic distribution, the probability of successful vehicle avoidance is derived, as shown in Formula (1.8).
[0128] U ij =α i +β i X ij +ε ij (1.7)
[0129] In the formula, α i is a constant term; X ij are the characteristic variables; β i ' is the parameter vector of each characteristic variable; ε ij is the error term.
[0130]
[0131] Where P y=i is the probability of active avoidance behavior outcome i.
[0132] ② Random parameter Logit model
[0133] The random parameter logit model is an extension of the logit model, which is used to consider unobserved heterogeneity. In the random parameter logit model, each parameter βi is assumed to be a random parameter β randomly drawn from a probability distribution. in , to take into account the heterogeneity between individuals, as shown in formula (1.9), where β in The mean and variance of are constant.
[0134]
[0135] Where β is the average parameter estimate of all observations; is a randomly distributed term.
[0136] ③ Random parameter logit model with heterogeneity of mean and variance
[0137] Compared with the non-heterogeneous random parameter model, the random parameter model with heterogeneity in mean and variance improves the analytical accuracy and explanatory power of the model. The random parameter Logit model with heterogeneity in mean and variance assumes that the parameters of the distribution equation obeyed by the model parameters are random and obey a certain probability distribution. The model considers the heterogeneity between individuals while taking into account the heterogeneity within individuals.
[0138] In the model, each random parameter β in The mean and variance of are not fixed, as shown in formula (1.10). If Z in or i If it is not statistically significant, then there is no heterogeneity in the mean or in the variance of the model random parameters.
[0139]
[0140] In the formula, δ in is the corresponding vector of estimable parameters; Z in is used to capture the heterogeneity of the mean value of the random parameter; σ in is the standard deviation; i is an estimable parameter vector; w i To capture the quasi-deviation σ in Heterogeneity parameter.
[0141] (2) Model evaluation
[0142] The goodness of fit of a model refers to how well the model fits the data, and the complexity of a model refers to the number of parameters contained in the model. Complex models can fit the data better, but are prone to overfitting problems.
[0143] 1) Akaike information criterion (AIC) is a statistical indicator for model selection, which takes into account the goodness of fit and complexity of the model. For models of different complexities, the smaller the AIC value, the better the goodness of fit of the model. The calculation formula is shown in formula (1.11):
[0144] AIC = -2ln(L) + 2K(1.11)
[0145] Where L is the maximum likelihood estimate of the model and K is the number of parameters.
[0146] In the Akaike Information Criterion, the maximum likelihood estimate measures the goodness of fit of the model, and the complexity of the model is used as a penalty term for the indicator. Different models have different degrees of fit and complexity. When using AIC to evaluate model performance, consider choosing the model with the smallest AIC value.
[0147] 2) Bayesian Information Criterion
[0148] Bayesian information criterion (BIC) is another model selection indicator similar to AIC. It aims to balance the goodness of fit and complexity of the model and is used to compare the performance of multiple models. The smaller the BIC value, the better the goodness of fit of the model. The calculation formula of BIC is as follows:
[0149] BIC=-2ln(L)+ln(n)×K(1.12)
[0150] Where L is the maximum likelihood estimate; K is the number of parameters; and n is the sample size of the data set.
[0151] Unlike the Akaike information criterion, the penalty term of the Bayesian information criterion is more stringent, taking into account the number of parameters while considering the data sample size. In this study, the accuracy, sensitivity, and specificity of the model performance evaluation were considered. It is worth noting that previous studies also used the false alarm rate to measure predictiveness.
[0152] 3) The likelihood ratio test (LRT) compares the goodness of fit of two models of different complexity based on the maximum value of the likelihood function. By calculating the maximum value of the likelihood function of two different models, the log-likelihood function values of the simple model and the complex model are recorded as LL(A) and LL(B), respectively. The likelihood ratio test statistic is shown in formula (1.13):
[0153] X2=-2[LL(A)-LL(B)](1.13)
[0154] The result value X2 follows the x2 distribution (the degree of freedom is the difference between the significant variables of the two models). Use the degree of freedom of the likelihood ratio value and the significance level p-value (take 0.01) to find the corresponding x2 distribution critical value, and compare the likelihood ratio value with the critical value. If the critical value is greater than the likelihood ratio value, the p value is less than 0.01, indicating that the difference between the two models is statistically significant, and the simple model is rejected. If the critical value is less than or equal to the likelihood ratio value, the p value is greater than 0.01, and the difference between the two models is not significant.
[0155] (3) Model comparison
[0156] The fitting measurement results of the three active avoidance behavior result influencing factor analysis models are shown in Table 1.10. The performance of the random parameter model in the mean and variance heterogeneity model is compared with the fixed parameter model and the random parameter model. The results show that: from the fixed parameter model, random parameter model to the random parameter model with mean and variance heterogeneity, the AIC and BIC values decrease in turn, and the random parameter model with mean and variance heterogeneity has a higher log-likelihood function value; the likelihood ratio test values of the random parameter model with mean and variance heterogeneity and the other two models are 69.96 and 122.41, respectively, both of which are significant at the 0.001 level. Therefore, the model considering mean and variance heterogeneity has the highest fitting performance.
[0157] Table 1.10 Fit measures of the active avoidance behavior outcome estimation model
[0158] Model Fixed parameter model Random Parameter Model Heterogeneity Model Number of parameters 11 14 17 Sample size 8215 8215 8215 Log-likelihood function value -3767.92 -3692.95 -3576.01 AIC 7557.80 7423.90 7185.1 BIC 7635.00 7522.10 7304.3 X2 69.96 122.41 Degrees of Freedom 3 3 Significant level <0.001 <0.001
[0159] (4) Model results analysis
[0160] The estimation results of the best performing Logit model considering mean and square heterogeneity are shown in Table 1.11. In addition, the marginal effect of each influencing factor was estimated in the study, and the following conclusions were drawn based on the results.
[0161]
[0162]
[0163] Note: **, **, ** ==> Significance at 1%, 5%, and 10% levels.
[0164] This application divides the scenarios where active avoidance behavior occurs and defines the types of active avoidance of vehicles. A method for identifying active avoidance behavior based on trajectory data and a method for distinguishing active avoidance results are proposed. A model for analyzing the influencing factors of the type of active avoidance behavior is constructed. In view of the data imbalance problem, the SMOTE and ADASYN methods are used to resample the data, and three machine learning models, XGBoost, CatBoost, and CNN, and a multi-logit model are constructed. The CNN model with the highest prediction accuracy and the results of the multi-logit model are selected for comprehensive consideration to further study the influencing factors of the type of active avoidance behavior. Finally, in order to more comprehensively analyze the results of active avoidance behavior and its influencing factors, a fixed parameter Logit model, a random parameter Logit model, and a random parameter Logit model considering the mean and variance are constructed for the results of vehicle active avoidance behavior, taking into account the heterogeneity of the mean and variance.
[0165] Through the active avoidance behavior recognition method based on trajectory data, a total of 8215 active avoidance behaviors were identified, including 216 acceleration lane changes, 96 constant speed lane changes, 242 deceleration lane changes, and 7661 braking. The TTC and vehicle spacing distribution characteristics of active avoidance behaviors show that: (1) When the TTC is large, vehicles are more inclined to change lanes to avoid; (2) The frequency distribution of TTC is relatively discrete in lane change avoidance behaviors, but relatively concentrated in braking avoidance behaviors; (3) The frequency distribution of vehicle spacing is relatively discrete in lane change avoidance behaviors. The results of the study on the influencing factors of active avoidance behavior types show that: (1) for every 1% increase in vehicle speed, the possibility of choosing accelerated lane change behavior increases by 0.76%, that is, when the vehicle is traveling at a higher speed in the conflict area, it is more inclined to choose accelerated lane change; (2) Aggressive driving style often leads to risky operations such as braking, quick steering, and dangerous lane changes, thereby increasing the possibility of vehicles choosing accelerated lane changes and braking behaviors; (3) for every 1% increase in TTC, the possibility of deceleration lane change to avoid increases by 0.06%; for every 1% increase in vehicle spacing, the possibility of uniform lane change and accelerated lane change increases by 0.04% and 0.60%, respectively; with the increase of TTC and vehicle spacing, the probability of vehicles choosing uniform lane change and accelerated lane change also increases accordingly. The results of the study on the factors affecting the results of active avoidance behavior show that: (1) the vehicle spacing is a random parameter that produces mean heterogeneity, while the vehicle speed, the speed of the preceding vehicle and the lane type are random parameters that produce variance heterogeneity; (2) TTC, vehicle spacing and successful avoidance are positively correlated; (3) the marginal effect value of the left middle lane on the successful avoidance of vehicles is 0.04, indicating that the probability of successful avoidance of vehicles in the left middle lane is relatively high.
[0166] Although the present invention has been illustrated and described with respect to the preferred embodiments, it will be appreciated by those skilled in the art that various changes and modifications may be made to the present invention without departing from the scope of the present invention as defined by the claims.
Claims
1. A vehicle active avoidance behavior recognition and analysis method based on trajectory data, characterized in that: First, based on the running trajectory data of the vehicle in the real scene, the active avoidance behavior scenarios are divided and the active avoidance behavior types are defined; Secondly, based on the vehicle running trajectory data, an active avoidance behavior recognition method based on vehicle trajectory data is proposed, and the type and frequency distribution characteristics of vehicle active avoidance behavior are studied; Then, a multinomial Logit model based on machine learning and fixed parameters was established to study the impact of various factors on the type of active avoidance behavior of the vehicle; Finally, a fixed parameter Logit model, a random parameter Logit model and a random parameter Logit model considering mean and variance were established to study the impact of various factors on the avoidance results.
2. The method for identifying and analyzing active vehicle avoidance behavior based on trajectory data according to claim 1, characterized in that: The vehicle running trajectory data processing and analysis includes vehicle running parameter calculation, vehicle braking and lane changing behavior speed characteristics research in the conflict area; Vehicle operation parameter calculation includes: outlier Savitzky-Golay smoothing, vehicle operation status and safety parameter calculation, and vehicle driving style classification; The study on the speed characteristics of vehicle braking and lane changing behavior in the conflict zone includes: the study on the acceleration and deceleration characteristics when the vehicle changes lanes, and the study on the deceleration characteristics when the vehicle brakes.
3. The vehicle active avoidance behavior recognition and analysis method based on trajectory data according to claim 1 is characterized in that: The vehicle active avoidance behavior scenario is divided into a middle lane, a left side lane and a right side lane.
4. The method for identifying and analyzing active vehicle avoidance behavior based on trajectory data according to claim 1, characterized in that: The vehicle active avoidance behavior types include braking behavior and lane changing behavior; The lane changing behaviors include uniform speed lane changing, accelerated lane changing, and decelerated lane changing.
5. The method for identifying and analyzing active vehicle avoidance behavior based on trajectory data according to claim 4 is characterized in that: According to the definition scope of the vehicle's active avoidance behavior, a process for identifying the type of active avoidance behavior is developed to determine the vehicle's active avoidance behavior.
6. The method for identifying and analyzing active vehicle avoidance behavior based on trajectory data according to claim 1, characterized in that: The machine learning model adopts XGBoost model, CatBoost model and CNN model; In the fixed parameter multinomial Logit model, the vehicle active avoidance behavior type is the dependent variable, including deceleration lane change avoidance, constant speed lane change avoidance, acceleration lane change avoidance and braking avoidance. The utility function of each characteristic variable on the active avoidance behavior type is as follows: U ij =b i X ij +e ij In the formula, X ij are the characteristic variables; β i is the parameter vector of each characteristic variable; ε ij is the error term; The fixed parameter multinomial Logit model expression is as follows: Where P ij is the probability of active avoidance behavior type i in sample j; I is the set of all active avoidance behavior types.
7. The vehicle active avoidance behavior recognition and analysis method based on trajectory data according to claim 6 is characterized by: The model evaluation indicators include: accuracy, recall, and the harmonic mean of accuracy and recall; Among them, accuracy is the ratio of the number of samples correctly classified by the classifier to the total number of samples, which is used to evaluate the overall performance of the model. Its expression is: Where TP is the true positive example, that is, the number of samples correctly predicted as positive examples by the classifier; TN is the true negative example, that is, the number of samples correctly predicted as negative examples by the classifier; FP is the false positive example, that is, the number of samples incorrectly predicted as positive examples by the classifier; FN is the false negative example, that is, the number of samples incorrectly predicted as negative examples by the classifier; Recall rate refers to the ratio of the number of samples correctly predicted as positive examples by the classifier to the total number of actual positive examples, and its expression is: The F1 value is the harmonic mean of precision and recall, and its expression is: Where Precision is the accuracy, and its calculation formula is:
8. The method for identifying and analyzing active vehicle avoidance behavior based on trajectory data according to claim 1, characterized in that: A fixed parameter Logit model, a random parameter Logit model and a random parameter Logit model considering mean and variance were constructed to analyze the impact of each characteristic variable on the results of active avoidance behavior.
9. The vehicle active avoidance behavior recognition and analysis method based on trajectory data according to claim 8 is characterized by: The fixed parameter Logit model expression is: U ij =a i +b i ′X ij +e ij In the formula, α i is a constant term; X ij are the characteristic variables; β i ' is the parameter vector of each characteristic variable; ε ij is the error term; Where P y=i is the probability of active avoidance behavior outcome i. The random parameter Logit model expression is: Where β is the average parameter estimate of all observations; is a randomly distributed term. The random parameter Logit model expression for the mean and variance heterogeneity is: β in =β+δ in Z in +σ in eΨ i w i v in In the formula, δ in is the corresponding vector of estimable parameters; Z in is used to capture the heterogeneity of the mean value of the random parameter; σ in is the standard deviation; i is an estimable parameter vector; w i To capture the quasi-deviation σ in Heterogeneity parameter.
10. The vehicle active avoidance behavior recognition and analysis method based on trajectory data according to claim 9, characterized in that: The model evaluation indicators include Akaike information criterion, Bayesian information criterion, and likelihood ratio test; Among them, the calculation formula of Akaike information criterion is: AIC=-2ln(L)+2K Where L is the maximum likelihood estimate of the model and K is the number of parameters. The calculation formula of Bayesian information criterion is: BIC=-2ln(L)+ln(n)×K Where L is the maximum likelihood estimate; K is the number of parameters; and n is the sample size of the data set. The likelihood ratio test statistic expression is: X 2 =-2[LL(A)-LL(B)] Wherein, the maximum values of the likelihood function of the simple model and the complex model are denoted as LL(A) and LL(B), respectively.
Citation Information
Patent Citations
Vehicle avoidance method, device, computer equipment and storage medium
CN113619574A
Pilotless automobile active collision avoidance algorithm based on pedestrian trajectory prediction
CN115230690A
Intelligent multi-camera adaptive automobile emergency avoidance safety system
CN115366871A
Vehicle accident avoidance method in which dynamic models of objects in the vehicle surroundings and of the vehicle itself are used to calculate a collision probability and determine a collision avoidance trajectory
DE102005002760A1
