Method for constructing a test scenario library for autonomous vehicles
Through scene description and parameterization, natural driving data analysis and multi-parameter Gibbs sampling, a library of test scenarios of autonomous vehicles is generated, solving the efficiency and cost problems of traditional testing methods in high-dimensional scenarios, and achieving rapid and comprehensive test evaluation.
Patent Information
- Application Number
- CN202210588192.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Traditional autonomous vehicle testing methods have problems of long cycles and high costs, and it is difficult to meet the testing requirements of high-level autonomous vehicles with short update cycles and complex designs, especially in high-dimensional scenarios, where test evaluation faces challenges.
A general framework for the generation problem of the test scenario library is proposed. Through scene description and parameterization, natural driving data analysis, multi-parameter Gibbs sampling, risk function design and auxiliary objective function, the test scenario library of autonomous driving vehicles is generated. , covering different types of working conditions and operation design fields, providing comprehensive testing and evaluation.
This method can build a test scenario library for high-dimensional scenarios, which reduces the number of tests compared to other methods, significantly accelerates the evaluation process of autonomous vehicles, and improves test efficiency and confidence.
Smart Images

Figure CN114818381B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of automatic driving testing. Background Art
[0002] In recent years, with the rapid development of autonomous driving technology, the commercialization process of autonomous driving vehicles has made great progress. Safety has always been the core proposition in the development of smart cars. Studies have shown that at least 10 billion kilometers of road tests should be carried out to verify the safety of autonomous driving vehicles at a confidence level of 95%. Testing and verification must be carried out in an infinite number of scenarios, which is a challenge for autonomous driving companies. Traditional testing has a series of shortcomings such as long cycles and high costs, and it is difficult to meet the testing requirements of high-level autonomous driving vehicles with short update cycles and complex designs. Virtual simulation technology can simulate the real-world driving environment and perform testing and verification in computer software, which reduces costs and speeds up the testing process. Scenarios are the basis of virtual simulation experiments. Designing a reasonable scheme can improve test efficiency and increase the confidence of verification. The diversity, rationality and criticality of scheme design are the main factors affecting scheme design. Diversity means that the scenarios can cover as many different types as possible; rationality requires that virtual scenarios conform to the rules of the real world; criticality requires that more valuable cases be selected for testing in scenario design.
[0003] Self-driving cars are very powerful intelligent driving cars. They are very convenient for us to travel. However, self-driving cars have not yet developed to the era of fully autonomous driving, but semi-autonomous driving and semi-manual driving, and the autonomous driving function only plays an assistive role. Early simple assisted driving systems only relied on data from on-board or environmental sensors for open-loop testing to complete functional verification. However, as more and more autonomous driving companies are committed to SAE L5-level autonomous driving solutions, closed-loop testing has become indispensable.
[0004] Testing is the key to the development and practical application of autonomous driving technology. The key of testing is reflected in two aspects: first, testing and technology development promote each other. Autonomous driving technology has gradually developed and improved through the iterative process of "development, testing, re-development, and re-testing"; second, due to the black box characteristics of autonomous driving, testing is the only way for the practical application of autonomous driving. Testing has become an effective way for companies to analyze the maturity of autonomous driving technology, and it is also an important means for supervisors to judge whether autonomous driving can be operated safely and efficiently. Unlike the modular testing of traditional vehicles, the testing of autonomous driving focuses on the evaluation of the performance of the whole vehicle. The testing of traditional vehicles focuses on the systematic evaluation of vehicle safety-related components. In addition, in traditional vehicles, the driver completes all driving tasks, and the vehicle testing does not need to consider the functions that the driver is responsible for. In autonomous driving vehicles, intelligent technology components are used to partially or completely replace the driver, making the whole vehicle system black-box and intelligent; considering the complexity of the vehicle driving environment, the testing and evaluation of autonomous driving faces many challenges. Summary of the invention
[0005] The purpose of the present invention is to propose a method for constructing a test scenario library for an autonomous driving vehicle with a general framework for test scenario library generation problems for different scenario types, autonomous driving vehicle models and performance indicators.
[0006] The steps of the present invention are:
[0007] S1. Scenario description and parameterization of key scenario variables
[0008] The key factors for entering the scene are simplified into two dimensions:
[0009] X=[R,V e ] T (1)
[0010] Where R and V e represents the distance and speed at the moment of cut-in, that is, the longitudinal distance and speed between the rear bumper of the preceding vehicle and the front bumper of the own vehicle, and X is the set of all key variables;
[0011] S2. Analyze natural driving data and extract original data of the cut-in scene
[0012] For each cut-in event, the cut-in moment is determined by the instant when the front vehicle crosses the lane marking, and the distance and speed at that moment are recorded for analysis. The following query conditions are designed: ① the speed of the vehicle at the cut-in time; ② the relative distance at the cut-in time;
[0013] S3, fit the cut-in scene data, and use the multi-parameter Gibbs sampling method to generate the original scene library R -1is the reciprocal of the distance R, described by a log-normal distribution, and R is given by the following probability density function -1 To sample:
[0014] Where R -1 represents the inverse of the distance between the ego vehicle and the front vehicle, μ and σ are the mean and variance parameters of the normal distribution;
[0015] V e The fit was performed using an exponential distribution with the following equation:
[0016]
[0017] Where λ is the speed parameter of the exponential distribution. Then, the multi-parameter Gibbs sampling method is used to sample the natural driving data according to the above probability distribution function to generate the original scene library;
[0018] S4. Design scenario risk function
[0019] The risks for the defined scenarios are as follows:
[0020] W(X|θ)=P(Y|X,θ)P(X|θ) (4)
[0021] Where X represents the key variables of the test scenario library, θ represents the predetermined parameters of the test scenario library, Y represents the accident event of the cut-in scenario, W(X|θ) represents the risk of the scenario, P(Y|X,θ) represents the maneuvering challenge of the car in the cut-in scenario, and P(X|θ) represents the frequency of the cut-in scenario occurring on the road;
[0022] S5. Design of scene-based auxiliary objective function
[0023] The Minimum Normalized Positive Enhancement Time to Collision (ETTC) is one of the most widely used safety assessment metrics for different speed scenarios and is defined as:
[0024]
[0025] Where R(t) and V e (t) is the distance and distance rate at time t, u r (t) is the relative acceleration, ETTC is the collision time, and a normalization factor is used, expressed as U I , and calibrated through natural driving data analysis, the negative value of ETTC will be set to 1, then the minimum normalized positive ETTC is:
[0026] mnpETTC(t)=min t npETTC(t) (6)
[0027] in:
[0028]
[0029] The frequency of a scenario is estimated by the distance between the scenario and a common set determined by naturalistic driving data analysis, with the distance defined as:
[0030]
[0031] Among them: Ω represents the common set, m d Indicates the dimension of the key variable, U F,i represents the normalization factor of the i-th dimension, y represents other key variables in the common set, y i represents the i-th other variable in the common set, X i represents the i-th key variable, and its parameters are calibrated by natural driving data;
[0032] The auxiliary objective function of the cut-in case is as follows:
[0033]
[0034] Where J(x) represents the auxiliary objective function, mnpETTC represents the minimum normalized collision time, d(X,Ω) represents the distance between the scene variable X and the high-occurrence frequency area Ω, and ω represents the weight coefficient for balancing these two items;
[0035] S6. Proxy model construction, analysis of natural driving data, and model calibration using natural driving data
[0036] A calibrated intelligent driving model is selected as a proxy model for the car’s following behavior after a cut-in event:
[0037]
[0038] Where k represents the discrete time step, u represents the acceleration, and α IDM , β IDM 、c IDM , L IDM is a constant parameter, and:
[0039] where s 0 、b IDM and T are constant parameters, and the constraints of acceleration and velocity are added as follows:
[0040] v min ≤v≤v max ,a min ≤u≤a max (12)
[0041] An accident event is defined as a range less than a threshold, that is, R(t)<d acci ;
[0042] S7. Use the risk function to search for key scenarios, and the auxiliary objective function to provide the search direction to generate a test scenario library.
[0043] The threshold of the key scenario of the present invention is determined as:
[0044]
[0045] Where N is the total number of cut-in scenes.
[0046] The beneficial effects of the present invention are:
[0047] 1. Other methods for constructing a test scenario library for autonomous driving vehicles are only suitable for low-dimensional scenarios. However, the present invention can construct high-dimensional scenarios;
[0048] 2. The present invention provides a relatively comprehensive framework or steps for constructing a test scenario library for autonomous driving vehicles. According to this framework, corresponding test scenario libraries can be generated for different types of working conditions or operation design domains to carry out test evaluation of autonomous driving vehicles;
[0049] 3. The test scenario library generated by the method used in the present invention has fewer vehicle tests than other methods, which can accelerate the evaluation of autonomous driving vehicle testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a general overall framework for the autonomous vehicle test scenario library;
[0051] Figure 2 It is the cut-in case operating diagram;
[0052] Figure 3 It is the probability distribution diagram of the cut-in scene;
[0053] Figure 4a is the fitting curve of the cut-in scene distance distribution;
[0054] Figure 4b is the speed distribution fitting curve of the cut-in scene;
[0055] Figure 5 is the safety performance graph of the proxy model;
[0056] Figure 6 It is the probability distribution diagram of the test scenario library;
[0057] Figure 7a It is the result curve of accident rate assessment using natural driving data;
[0058] Figure 7bThis is the accident rate assessment result curve of the method proposed in the present invention. DETAILED DESCRIPTION
[0059] The present invention proposes a general framework for the problem of test scenario library generation for different scenario types, autonomous vehicle models and performance indicators. Although the proposed framework is general, there are some other issues that vary from case to case, such as the natural driving data analysis and processing process, different key variables in different scenarios, and different variable dimensions in different scenarios. Secondly, the ability of the proposed framework to handle different performance indicators is very important. After careful investigation, most existing inventions only focus on safety, which is essential for the autonomous vehicles to be deployed. Finally, there may be problems in directly applying the proposed method to high-dimensional situations, because the computational complexity of key scenario search increases exponentially with the increase of dimensionality. However, most driving scenarios are high-dimensional in themselves, and solving high-dimensional problems is a problem that must be faced.
[0060] The present invention samples natural driving data by designing a risk function and an auxiliary objective function, and finally generates a test scenario library. The first major step is to describe the scenario and parameterize the key variables of the scenario. The key variables of the scenario refer to the variables in the scenario that are of decisive significance to the autonomous driving car, such as the speed of the main vehicle in the cut-in scenario and the relative distance between the main vehicle and the front vehicle. The first step also includes analyzing the natural driving data and extracting the original data of the target scenario. The second major step is to perform variable fitting on the data extracted in the previous step. For example, in the cut-in scenario, the main vehicle speed and the relative distance between the main vehicle and the front vehicle can be fitted with appropriate probability density functions respectively, and then sample in the parameter space of key influence according to the probability density function. The scene data obtained after sampling generates the original scene library. The multi-parameter Gibbs sampling method is used to generate the original scene library according to the probability distribution function. The main idea of Gibbs sampling is to generate an individual from the distribution of each variable in turn according to the current value of the key variable, thereby generating a sample of a high-dimensional variable. Therefore, the sequence of generated samples forms a Markov chain, and the stationary distribution of this Markov chain is the target high-dimensional distribution. The third step is to design the scenario risk function, the scenario auxiliary objective function, and the agent model. The essence of the scenario risk is to measure its importance in evaluating performance indicators. The scenario risk is designed as the product of the scenario's frequency of occurrence and the maneuver challenge.
[0061] The risks for the defined scenarios are as follows:
[0062] W(X|θ)=P(Y|X,θ)P(X|θ)
[0063] Where X represents the key variables of the test scenario library, θ represents the predetermined parameters of the test scenario library, Y represents the event of interest to the autonomous vehicle (e.g., an accident), W(X|θ) represents the risk of the scenario, P(Y|X,θ) represents the maneuvering challenge of the car, and P(X|θ) represents the frequency of occurrence of the scenario on the road. The agent model is an autonomous vehicle. The reason for introducing the agent model is that we assume that there is no exact model of autonomous vehicle behavior. Therefore, we introduce the agent model to reflect some common characteristics of different autonomous vehicles. The ideal agent model should be calibrated based on actual driving data similar to the calibration of human driving models. However, at this stage, there is little public autonomous driving data available for public research. Therefore, we use human driving data to calibrate the agent model. This is reasonable because the common behavioral characteristics of human drivers can be used as a standard for the evaluation of autonomous vehicles. The key scenarios of human drivers are also meaningful test scenarios for autonomous vehicles. In addition, many algorithms are developed by imitating human driving behavior. The maneuvering challenge is the probability that the autonomous vehicle encounters an event of interest in the scenario. The frequency of occurrence of the scenario represents the probability of the scenario occurring on the road. To calculate the scenario risk, P(X|θ) can be calculated based on the original scenario library, but P(Y|X,θ) is obtained by simulating the proxy model. This definition also shows that scenarios with higher probability of occurrence and higher maneuvering challenges in the real world should have higher priority for autonomous vehicle evaluation. Although most critical scenarios are rare, the frequency of some scenarios is several orders of magnitude higher than other scenarios. The reason for designing the auxiliary objective function is that it is problematic to directly use the risk function as the objective function. The risk function provides little information about the search direction of the critical scenario, causing the optimization process to be degraded to a random sampling process, which is inefficient for complex scenarios. To solve this problem, an auxiliary objective function is designed to guide the search direction. Under the auxiliary objective function, a multi-starting point optimization method is used to search for local critical scenarios. The fourth step is to search for critical scenarios using the risk function of the third step, and use the designed auxiliary objective function to provide the search direction during the search process. All scenarios whose scenario risk exceeds the set threshold will be included in the test scenario library. Finally, the generated test scenario library is used to estimate the safety of the car using Monte Carlo simulation.
[0064] The purpose of the present invention is achieved through the following technical solution: designing a risk function and an auxiliary objective function to sample natural driving data, and finally generating a test scenario library. The following steps are included:
[0065] Step 1: Scenario description and parameterization of key scenario variables;
[0066] Step 2: Analyze the natural driving data and extract the original data of the target scene;
[0067] Step 3: Fit the target scene data and use the multi-parameter Gibbs sampling method to generate the original scene library;
[0068] Step 4: Design a scenario risk function. The scenario risk function is designed as the product of the scenario frequency and the maneuver challenge;
[0069] Step 5: Design the auxiliary objective function for the target scenario. Analyze the natural driving data and determine the parameters of the auxiliary objective function;
[0070] Step 6: Build a proxy model, analyze natural driving data, and use natural driving data to calibrate the model;
[0071] Step 7: Use the risk function to search for key scenarios. The auxiliary objective function provides the search direction, and all scenarios whose risks exceed the set threshold will be included in the test scenario library;
[0072] Step 8: Perform Monte Carlo simulation and use the generated test scenario library to evaluate the safety of the vehicle.
[0073] The technical content of the present invention is further described in detail below with reference to the accompanying drawings. The present invention provides a framework for generating a test scenario library for an autonomous vehicle. The framework is as follows: Figure 1 As shown, the framework includes the following steps: 1. Scenario description and parameterization of key scenario variables (the present invention takes the cut-in condition as an example, and the key variable of the cut-in scenario is the vehicle speed V e and the distance R between the vehicle and the vehicle in front) 2. Analyze the natural driving data and extract the original data of the target scene. (The natural driving data used in the present invention is the SPMD data set, and the extracted target scene is the original data of the cut-in scene) 3. Fit the key variable data of the target scene, and use the multi-parameter Gibbs sampling method to sample the natural driving data to generate the original scene library. (The present invention uses the probability density function to fit the key variable of the cut-in scene, the vehicle speed V eAnd the distance R between the vehicle and the front vehicle is fitted, and then sampled in the parameter space of key influence according to the probability density function. The scene data obtained after sampling generates the original scene library. The multi-parameter Gibbs sampling method is used to generate the original scene library according to the probability distribution function) 4. Design the scene risk function. The scene risk function is designed as the product of the scene occurrence frequency and the maneuvering challenge (the occurrence frequency of the scene of the present invention is the probability of occurrence of the cut-in scene in the natural driving data set. The maneuvering challenge is obtained by the sixth proxy model later). 5. Design the scene auxiliary objective function. Analyze the natural driving data and determine the parameters of the auxiliary objective function (the scene auxiliary objective function of the present invention is constructed according to the cut-in scene, and the parameters of the auxiliary objective function are determined according to the data in the original scene library). 6. Proxy model construction, analysis of natural driving data, and calibration of the model using natural driving data (the proxy model of the present invention uses the existing IDM model as the following model after the cut-in, and uses the cut-in scene data to calibrate the model). 7. Use the risk function to search for key scenes, the auxiliary objective function provides the search direction, and all scenes whose scene risks exceed the set threshold will be included in the test scene library. 8. Conduct Monte Carlo simulation and use the generated test scenario library to evaluate the safety of the vehicle. Specifically:
[0074] The framework proposed by the present invention will be used to analyze the cut-in case. The cut-in case specifically refers to the process in which a vehicle in front cuts in front of the vehicle during normal driving of the vehicle in the real world. The cut-in case working condition diagram is as follows: Figure 2 The following will be analyzed according to the test scenario library framework.
[0075] 1. Scenario description and parameterization of key scenario variables
[0076] Similar to most existing inventions, the key factors in the case are simplified into two dimensions. That is:
[0077] X=[R,V e ] T (1)
[0078] Where R and V e represents the distance (the longitudinal distance between the rear bumper of the front vehicle and the front bumper of the host vehicle) and speed at the moment of cut-in. X is the set of all key variables. For simplicity, it is assumed that the background vehicle maintains a constant speed after the cut-in behavior and the road environment parameters are predetermined. All these predetermined parameters are denoted as θ.
[0079] 2. Analyze natural driving data and extract the original data of the cut-in scene
[0080] The dataset used in the example of the present invention is the SPMD dataset from the University of Michigan Safety Test Model Deployment. In the database, there are 98 cars equipped with data acquisition systems that can measure the longitudinal and lateral distances between the vehicle itself, the previous vehicle and the lane marking at a frequency of 10Hz. By analyzing these lateral distances, cut-in events can be identified. For each cut-in event, the cut-in moment is determined by the instant when the front vehicle crosses the lane marking, and the distance and speed at that moment are recorded for analysis. In the present invention, the following query conditions are designed to extract all cut-in events from the database. (1) The speed of the vehicle at the cut-in time belongs to (2m / s, 30m / s); (2) The relative distance at the cut-in time belongs to (0.1m, 90m). 52,635 qualified events were successfully obtained. The distribution of natural driving data is as follows: Figure 3 As shown, brighter colors indicate higher occurrence frequencies. Distance and speed are discretized at 2 m and 0.4 m / s, respectively.
[0081] 3. Fit the cut-in scenario data, use the multi-parameter Gibbs sampling method to generate the original scenario library, analyze the extracted cut-in data set, and find the appropriate fitting probability density function of the key influencing variables. -1 The distribution of R is shown in Figure 4(a). -1 is the reciprocal of the distance R. It is described by lognormal distribution. R can be described by the following probability density function -1 To sample:
[0082]
[0083] Where R -1 represents the inverse of the distance between the ego vehicle and the front vehicle. μ and σ are the mean and variance parameters of the normal distribution.
[0084] V e The fit was performed using an exponential distribution with the following equation:
[0085]
[0086] Where λ is the velocity parameter of the exponential distribution. e The fitting result is shown in Figure 4(b). Then, the multi-parameter Gibbs sampling method is used to sample the natural driving data according to the above probability distribution function to generate the original scene library.
[0087] 4. Design a scenario risk function. The scenario risk function is designed as the product of the frequency of the cut-in scenario and the maneuver challenge. The risk of the scenario is defined as follows:
[0088] W(X|θ)=P(Y|X,θ)P(X|θ) (4)
[0089] Where X represents the key variables of the test scenario library, θ represents the predetermined parameters of the test scenario library, Y represents the accident event of the cut-in scenario, W(X|θ) represents the risk of the scenario, P(Y|X,θ) represents the maneuvering challenge of the car in the cut-in scenario, and P(X|θ) represents the frequency of the cut-in scenario occurring on the road.
[0090] 5. Design the auxiliary objective function for the cut-in scenario. Analyze the cut-in scenario data and determine the parameters of the auxiliary objective function. In order to provide the search direction for key scenarios, the auxiliary objective function is designed as the product of the estimated maneuvering challenge and the frequency of occurrence of the cut-in scenario in the original scenario library. The maneuvering challenge is estimated by the minimum normalized positive enhanced collision time (mnpETTC). ETTC is one of the most widely used safety evaluation indicators for different speed scenarios, and it is defined as:
[0091]
[0092] Where R(t) and V e (t) is the distance and distance rate at time t, u r (t) is the relative acceleration, and ETTC is the collision time. Through simulation, we can get the ETTC values in different scenarios. In order to make the index comparable, we use a normalization factor, denoted as U I , and calibrated by natural driving data analysis. The negative value of ETTC will be set to 1. Then, the minimum normalized positive ETTC (mnpETTC) can be calculated as:
[0093] mnpETTC(t)=min t npETTC(t) (6)
[0094] in:
[0095]
[0096] The occurrence frequency of a scene is estimated by the distance between the scene and the common set (i.e., scenes with high occurrence frequency).
[0097] The common set is determined by analysis of natural driving data, and the distance is defined as:
[0098]
[0099] Among them: Ω represents the common set, m d Indicates the dimension of the key variable, U F,i represents the normalization factor of the i-th dimension, y represents other key variables in the common set, y i represents the i-th other variable in the common set, X i represents the i-th key variable, and its parameters are calibrated by natural driving data.
[0100] An example of an auxiliary objective function for the cut-in case is shown below:
[0101]
[0102] Where J(x) represents the auxiliary objective function, mnpETTC represents the minimum normalized collision time, d(X,Ω) represents the distance between the scene variable X and the high-occurrence frequency region Ω, and ω represents the weight coefficient for balancing these two items. The parameter values of the auxiliary objective function are shown in Table 1.
[0103] Table 1: Auxiliary objective function parameter values
[0104] parameter value parameter value <![CDATA[m d ]]> 2 <![CDATA[U I ]]> 100 <![CDATA[U F,1 ]]> 18 <![CDATA[U F,2 ]]> 20
[0105] 6. Proxy model construction, analysis of natural driving data, and use of natural driving data to calibrate the model Proxy model construction is a very important step in the library generation process. The reasons for introducing the proxy model are: (1) The maneuver challenge P(Y|X,θ) is obtained by simulating the proxy model. (2) We assume that there is no exact model of autonomous driving vehicle behavior. Therefore, we introduce a proxy model to reflect some common characteristics of different autonomous driving vehicles. An ideal proxy model should be calibrated based on actual driving data similar to the calibration of human driving models. However, at this stage, there is little public autonomous driving data available for public research. Therefore, we use human driving data to calibrate the proxy model.
[0106] In this case study, a calibrated Intelligent Driving Model (IDM) was selected as a proxy model for the car’s following behavior after a cut-in event:
[0107]
[0108] Where k represents the discrete time step, u represents the acceleration, and α IDM , β IDM 、c IDM , L IDM is a constant parameter, and:
[0109] where s 0 、b IDM and T are constant parameters. Constraints on acceleration and velocity are added to make the model more practical (i.e., the model is prone to accident behavior):
[0110] v min ≤v≤v max ,a min ≤u≤a max (12)
[0111] An accident event is defined as a range less than a threshold, that is, R(t)<d acci The calibration values are listed in Table 2. Figure 5 The safety performance of the selected proxy model is shown, where the proxy model has an accident in the scenario in the yellow area.
[0112] Table 2: Surrogate model parameter values
[0113] parameter value parameter value <![CDATA[v max ]]> 40m / s <![CDATA[v min ]]> 2m / s <![CDATA[a min ]]> <![CDATA[-4m 2 / s]]> <![CDATA[a max ]]> <![CDATA[2m 2 / s]]> <![CDATA[α IDM ]]> 2 <![CDATA[β IDM ]]> 18 <![CDATA[c IDM ]]> 4 <![CDATA[s 0 ]]> 2 <![CDATA[L IDM ]]> 4 T 1 <![CDATA[b IDM ]]> 3 <![CDATA[d acci ]]> 1m
[0114] 7. Use the risk function to search for key scenarios, and the auxiliary objective function to provide the search direction to generate a test scenario library.
[0115] The method proposed in the present invention is applied to search for key scenes and build a library. The threshold of the key scene is determined as:
[0116] Where N is the total number of cut-in scenarios. The discretization intervals of distance and speed are 2m and 0.4m / s respectively, and the range boundaries of distance and distance rate are (0,90] and [-20,10] respectively. All scenarios whose scenario risk exceeds the threshold γ will be included in the library.
[0117] The probability distribution obtained after the library generation process is as follows Figure 6 The colors represent the probability of the scene, which is different from the case of only considering the distribution of natural driving data. Figure 3 In contrast, the new distribution takes into account both the maneuvering challenge and the frequency of the cut-in scenario.
[0118] 8. Perform Monte Carlo simulation and use the generated test scenario library to evaluate the safety of the vehicle. The threshold of the key scenario calculated in the previous step is:
[0119]
[0120] Where N = 1568. All scenarios whose scenario risk exceeds the threshold γ will be included in the library. In this case, the generated library contains a total of 143 scenarios, accounting for about 9.12% of all scenarios.
[0121] In this step, Monte Carlo simulation is used for test evaluation. First, the test scenarios are extracted from the generated natural driving data distribution. For the proposed method, the test scenarios are Figure 6 The selected autonomous driving model is tested in the sampled scenario and the accident events are recorded. The result of the accident rate evaluation using natural driving data is shown in Figure 7(a), and the accident rate converges to 1×10 -3 Nearly 10,000 tests are required. The results of the accident rate evaluation using the scenario library generated by the test scenario library generation framework of the present invention are shown in Figure 7(b). The accident rate converges to 1×10-3 Only close to 1000 tests are needed. The proposed method is about 10 times faster than the natural driving data evaluation method.
Claims
1. A method for constructing a test scenario library for an autonomous driving vehicle, characterized in that: The steps are: S1. Scenario description and parameterization of key scenario variables The key factors for entering the scene are simplified into two dimensions: X=[R,V e ] T (1) Where R and V e represents the distance and speed at the moment of cut-in, that is, the longitudinal distance and speed between the rear bumper of the preceding vehicle and the front bumper of the own vehicle, and X is the set of all key variables; S2. Analyze natural driving data and extract original data of the cut-in scene For each cut-in event, the cut-in moment is determined by the instant when the front vehicle crosses the lane marking, and the distance and speed at that moment are recorded for analysis. The following query conditions are designed: ① the speed of the vehicle at the cut-in time; ② the relative distance at the cut-in time; S3, fit the cut-in scene data, and use the multi-parameter Gibbs sampling method to generate the original scene library R -1 is the reciprocal of the distance R, described by a log-normal distribution, and R is given by the following probability density function -1 To sample: Where R -1 represents the inverse of the distance between the ego vehicle and the front vehicle, μ and σ are the mean and variance parameters of the normal distribution; V e The fit was performed using an exponential distribution with the following equation: Where λ is the speed parameter of the exponential distribution. Then, the multi-parameter Gibbs sampling method is used to sample the natural driving data according to the above probability distribution function to generate the original scene library; S4. Design scenario risk function The risks for the defined scenarios are as follows: W(X|θ)=P(Y|X,θ)P(X|θ) (4) Where X represents the key variables of the test scenario library, θ represents the predetermined parameters of the test scenario library, Y represents the accident event of the cut-in scenario, W(X|θ) represents the risk of the scenario, P(Y|X,θ) represents the maneuvering challenge of the car in the cut-in scenario, and P(X|θ) represents the frequency of the cut-in scenario occurring on the road; S5. Design of scene-based auxiliary objective function The Minimum Normalized Positive Enhancement Time to Collision (ETTC) is one of the most widely used safety assessment metrics for different speed scenarios and is defined as: Where R(t) and V e (t) is the distance and distance rate at time t, u r (t) is the relative acceleration, ETTC is the collision time, and a normalization factor is used, expressed as U I , and calibrated through natural driving data analysis, the negative value of ETTC will be set to 1, then the minimum normalized positive ETTC is: mnpETTC(t)=min t npETTC(t) (6) in: The frequency of a scenario is estimated by the distance between the scenario and a common set determined by naturalistic driving data analysis, with the distance defined as: Among them: Ω represents the common set, m d Indicates the dimension of the key variable, U F,i represents the normalization factor of the i-th dimension, y represents other key variables in the common set, y i represents the i-th other variable in the common set, X i represents the i-th key variable, and its parameters are calibrated by natural driving data; The auxiliary objective function of the cut-in case is as follows: Where J(x) represents the auxiliary objective function, mnpETTC represents the minimum normalized collision time, d(X,Ω) represents the distance between the scene variable X and the high-occurrence frequency area Ω, and ω represents the weight coefficient for balancing these two items; S6. Proxy model construction, analysis of natural driving data, and model calibration using natural driving data A calibrated intelligent driving model is selected as a proxy model for the car’s following behavior after a cut-in event: Where k represents the discrete time step, u represents the acceleration, and α IDM , β IDM 、c IDM , L IDM is a constant parameter, and: Where s0, b IDM and T are constant parameters, and the constraints of acceleration and velocity are added as follows: in min ≤v≤v max ,and min ≤u≤a max (12) An accident event is defined as a range less than a threshold, that is, R(t)<d acci ; S7. Use the risk function to search for key scenarios, and the auxiliary objective function to provide the search direction to generate a test scenario library.
2. The method for constructing a test scenario library for an autonomous driving vehicle according to claim 1, characterized in that: The thresholds for key scenarios are determined as: Where N is the total number of cut-in scenes.
Citation Information
Patent Citations
Environment sensor simulation method for automatic driving automobile simulation
CN111221334A
Lateral insertion scene extraction method for man-machine co-driving test
CN114328465A
Method and device for constructing autonomous driving test scenes, terminal and readable storage media
US20220004769A1
