Behavior ability test model construction method, test platform and method
By constructing a behavioral ability test model, using natural driving and intelligent test environment models, and combining with sparse adversarial control theory, the problems of low efficiency and insufficient accuracy in autonomous vehicle testing are solved, achieving efficient and accurate behavioral ability assessment, and providing Intelligent testing and evaluation platform.
Patent Information
- Application Number
- CN202410757050.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
AI Technical Summary
Existing autonomous vehicle testing methods have problems such as low testing efficiency, high cost, and poor accuracy and scientificity. In particular, it is difficult to quickly obtain accurate test results in real road scene tests and computer model simulation tests, and there is a lack of objective quantification. Evaluation criteria.
By constructing a behavioral ability test model, using the natural driving environment model and intelligent test environment model, combined with sparse adversarial control theory, we can obtain the natural driving distribution function and importance sampling function, realize the behavioral ability test of autonomous vehicles in specific scenarios, and improve testing Efficiency and accuracy.
On the basis of ensuring the accuracy of test results, the behavioral ability test results of autonomous vehicles are efficiently obtained, which improves the efficiency of test evaluation, accurately reflects the behavioral capabilities of the vehicle in complex spatiotemporal driving environments, and provides intelligence for autonomous vehicles. A test and evaluation platform that is standardized and equivalent to actual scenarios.
Smart Images

Figure CN118536401A
Abstract
Description
Technical Field
[0001] This article relates to the field of autonomous vehicle safety testing, and in particular to a behavioral capability testing model construction method, testing platform and method. Background Art
[0002] In recent years, the research and development of autonomous vehicles has made significant progress. However, before large-scale application and commercialization of autonomous vehicles, a series of rigorous tests are required to ensure their safety, reliability and performance. There are currently two common testing methods, one is based on real road scenarios, and the other is simulation testing based on computer models. Among them, tests based on real road scenarios are divided into closed road environment tests and open road environment tests. The test time and mileage are limited, the test efficiency is low, the cost is high, and it will cause unknown safety risks to other road users. It is restricted by various laws, regulations and policies and requires various infrastructure support. In simulation tests based on computer models, the test accuracy is inversely proportional to the test efficiency. It is impossible to quickly obtain accurate test results, it is impossible to adjust the status of background vehicles, it is difficult to reflect the behavioral capabilities of autonomous vehicles in real scenarios, and there is a lack of objective quantitative evaluation standards for test results. The scientificity and accuracy are poor, and it is difficult to accurately evaluate the behavioral capabilities of autonomous vehicles. Summary of the invention
[0003] The present application provides a behavior capability test model construction method, test platform and method, which can reproduce the real-world traffic cycle through the natural driving environment model and accelerate the test process through the intelligent test environment model. The behavior capability test model efficiently obtains test results while ensuring the accuracy of the test results, thereby improving the efficiency of autonomous driving vehicle testing and evaluation.
[0004] On the one hand, an embodiment of the present application provides a method for constructing a behavior capability test model, wherein the behavior capability test model corresponds to a specific scenario type, including:
[0005] The original training data is obtained and processed to obtain the natural driving scene training data set {D m}, wherein the original training data is the M scenes X of the training vehicle in the specific scene type. m Natural driving data in, natural driving scene training data D m With X m One-to-one correspondence, m = 1, 2, ... M;
[0006] Using the natural driving scene training data set as training data, training an initial natural driving distribution function P0 of a preset first model to obtain a natural driving distribution function P of a natural driving environment model, wherein the preset first model includes P0 and a background vehicle model, and the natural driving environment model includes P and the background vehicle model;
[0007] Performing key scene labeling and key time labeling on the natural driving scene training data set to obtain an intelligent training data set;
[0008] Using the intelligent training data set as training data, training the initial sampling function Q0 of the preset second model based on sparse adversarial control theory, and obtaining the importance sampling function Q of the intelligent test environment model, wherein the preset second model includes Q0 and the background vehicle model, and the intelligent test environment model includes Q and the background vehicle model;
[0009] The behavior capability test model is obtained based on the natural driving environment model and the intelligent test environment model, wherein the behavior capability test model is applied to perform a behavior capability test on an autonomous driving vehicle.
[0010] On the other hand, the embodiment of the present application further provides a behavior capability test platform, including: a vehicle model to be tested, a behavior capability test model, a test evaluation module and a vehicle evaluation module;
[0011] The vehicle model to be tested is a model of the autonomous driving vehicle to be tested;
[0012] The behavior ability test model is constructed by the behavior ability test model construction method described in the above embodiment, including a natural driving environment model and an intelligent test environment model corresponding to a specific scene type; the natural driving environment model includes a natural driving distribution function P and a background vehicle model, and the intelligent test environment model includes an importance sampling function Q and the background vehicle model;
[0013] The behavior capability test platform uses the natural driving environment model to perform natural driving interaction between the vehicle model to be tested and the background vehicle model. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution of key events occurring in m ), where m = 1, 2, ... M; used to sample the probability distribution P(X according to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform importance scene sampling to obtain M important scenes The intelligent test environment model is used to perform important scene interaction between the vehicle model to be tested and the background vehicle model. In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; and F m Send to the test evaluation module and the vehicle evaluation module, and m ) is sent to the vehicle assessment module;
[0014] The test evaluation module is used to obtain multiple F m Then, a predetermined test indicator variance is calculated, and a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and when the predetermined test indicator variance is less than the preset variance threshold, the test is determined to be completed;
[0015] The vehicle evaluation module is used to calculate the total predetermined test index according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested passes the behavior capability test. The input data of the vehicle evaluation formula includes F m and P(X m ).
[0016] On the other hand, the present application embodiment also provides a behavioral ability testing method, including:
[0017] The vehicle model to be tested is input into the natural driving environment model in the behavior ability test model, and the natural driving interaction between the vehicle model to be tested and the background vehicle model is performed. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution P(X m ), where m = 1, 2, ... M;
[0018] According to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform sampling to obtain M important scenes With X m One to one correspondence;
[0019] The vehicle model to be tested is input into the intelligent test environment model in the behavior capability test model, and the importance scene interaction between the vehicle model to be tested and the background vehicle model is performed. In order to test the importance of the scene T m , get T mCorresponding importance scenario predetermined test index F m ; After getting N F m After that, a predetermined test indicator variance is calculated, a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and whether the test is completed, wherein 2≤N≤M;
[0020] If the test is determined to be completed, the total predetermined test index is calculated according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested has passed the behavioral capability test. The input data of the vehicle evaluation formula includes F m and P(X m );
[0021] Among them, the vehicle model to be tested is the model of the autonomous driving vehicle to be tested, and the behavior capability test model is constructed by the behavior capability test model construction method described in the above embodiment.
[0022] Compared with the related art, a behavior capability test model construction method, test platform and method in the embodiment of the present application can reproduce the real-world traffic environment through the natural driving environment model, and accelerate the test process through the intelligent test environment model. The behavior capability test model efficiently obtains the test results on the basis of ensuring the accuracy of the test results, thereby improving the efficiency of the test and evaluation of autonomous driving vehicles. The behavior capability test platform and method can test and evaluate the behavior capability of autonomous driving vehicles in a driving environment with complex time and space, and use the accident rate as the behavior capability evaluation indicator of autonomous driving vehicles, which accurately reflects the behavior capability of autonomous driving vehicles, and provides an intelligent, equivalent to actual scenario testing, and efficient test and evaluation platform and method for the testing of autonomous driving vehicles.
[0023] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0025] Figure 1 is a flow chart of a method for constructing a behavioral ability test model according to an embodiment of the present application;
[0026] Figure 2 is a schematic diagram of a behavioral ability testing platform in an embodiment of the present application;
[0027] Figure 3 is a flow chart of a behavioral ability testing method according to an embodiment of the present application;
[0028] Figure 4 These are the testing steps for the autonomous driving vehicle of the specific example of this application. DETAILED DESCRIPTION
[0029] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0030] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0031] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0032] The present application embodiment provides a method for constructing a behavior capability test model, wherein the behavior capability test model corresponds to a specific scenario type, and includes steps S100-S500, such as Figure 1 As shown,
[0033] S100: Obtain and process the original training data to obtain a natural driving scene training data set {D m}, wherein the original training data is the M scenes X of the training vehicle in the specific scene type. m Natural driving data in, natural driving scene training data D m With X m One-to-one correspondence, m = 1, 2, ... M;
[0034] S200: using the natural driving scene training data set as training data, training an initial natural driving distribution function P0 of a preset first model, and obtaining a natural driving distribution function P of a natural driving environment model, wherein the preset first model includes P0 and a background vehicle model, and the natural driving environment model includes P and the background vehicle model;
[0035] S300: performing key scene labeling and key time labeling on the natural driving scene training data set to obtain an intelligent training data set;
[0036] S400: Using the intelligent training data set as training data, training the initial sampling function Q0 of the preset second model based on sparse adversarial control theory, and obtaining the importance sampling function Q of the intelligent test environment model, wherein the preset second model includes Q0 and the background vehicle model, and the intelligent test environment model includes Q and the background vehicle model;
[0037] S500: Obtaining the behavior capability test model based on the natural driving environment model and the intelligent test environment model, wherein the behavior capability test model is applied to perform a behavior capability test on an autonomous driving vehicle.
[0038] In this embodiment, the specific scene type is one of the following: urban roads, highways, off-road roads, airport aprons, docks, warehouse cargo transportation, parks, construction sites, etc. The above specific scene types are all exemplary descriptions and are not intended to limit the present application. They will not be described one by one in this article. Different specific scene types correspond to different behavioral ability test models. Each specific scene type includes M scenes X m .
[0039] In this embodiment, scene X m Including straight roads, curves, intersections, school surroundings, tunnels, traffic congestion, night driving, self-driving vehicle loads, rainy and snowy weather, etc. The above scenarios are all exemplary descriptions and are not limitations of this application, and will not be described in detail herein.
[0040] In this embodiment, the behavior capability refers to the autonomous driving vehicle in scenario X. mThe ability to handle key events in the autonomous driving system, where key events include collision, the distance between the autonomous driving vehicle and the surrounding environment being less than a preset safety distance, direction control error, insufficient sensor performance, autonomous driving vehicle communication system failure, etc. The above key events are all exemplary descriptions and are not intended to be limitations of this application, and will not be described in detail herein.
[0041] In this embodiment, step S200 aims to train the initial natural driving distribution function P0 to obtain the natural driving distribution function P; before executing step S200, a preset first model must be obtained, the preset first model includes the initial natural driving distribution function P0 and the background vehicle model, after training P0, the natural driving distribution function P is obtained, the natural driving environment model includes the natural driving distribution function P and the background vehicle model, through the natural driving distribution function P, the automatic driving vehicle in M scenes X can be obtained. m The probability distribution of key events in the scene X is given by the background vehicle model. m The traffic environment in which the autonomous driving vehicle is located is provided. The natural driving environment model can also set corresponding buildings, pedestrians, crosswalks, traffic lights, etc. according to the specific scene type. The background vehicle model is the model of all background vehicles in the natural driving environment. The interaction between the background vehicle model and the vehicle model to be tested includes confrontational situations and cooperative situations. In the natural driving environment, most interactions are cooperative situations, and no key events occur in the cooperative situation, resulting in a large redundancy in the natural driving environment test.
[0042] In this embodiment, since the probability of a critical event occurring when the original training data is obtained by natural driving of the training vehicle, is much lower than the probability of no critical event occurring, after the critical scenes and critical times are annotated on the natural driving scene training data set in step S300, the obtained intelligent training data set is sparse. This sparsity may cause information loss, dimensionality disaster, overfitting, difficulty in capturing the characteristics of the intelligent training data, and prolonged training time in the training process of the intelligent test environment model. Therefore, in step S400, the initial sampling function Q0 is trained based on the sparse adversarial control theory. Before executing step S400, a preset second model is obtained. The preset second model includes Q0 and the background vehicle model. After training Q0, an importance sampling function Q is obtained. The intelligent test environment model includes Q and the background vehicle model. The intelligent test environment model pays more attention to the adversarial situation through the importance sampling function Q. The importance sampling function Q is used to extract the key actions of the interaction between the vehicle model to be tested and the background vehicle model when a critical event occurs.
[0043] In this embodiment, the intelligent test environment model aims to analyze the importance scenarios when key events occur, and uses the importance sampling function Q to adjust the weights of samples so that key events with low probabilities are more likely to be sampled, thereby avoiding many invalid tests and improving the efficiency of autonomous driving vehicle behavior capability testing.
[0044] In this embodiment, the preset first model, the preset second model and the behavioral ability test model also include a training vehicle model corresponding to the training vehicle. When executing step S200 to train the initial natural driving distribution function P0, the training data is input into the training vehicle model and the background vehicle model, and the training vehicle model and the background vehicle model interact, and the parameters of P0 are continuously optimized to obtain the natural driving distribution function P; when executing step S400 to train the initial sampling function Q0, the training data is input into the training vehicle model and the background vehicle model, and the training vehicle model and the background vehicle model interact, and the parameters of Q0 are continuously optimized to obtain the importance sampling function Q.
[0045] The behavior capability test model of this embodiment has a natural driving environment model that can reproduce the real-world traffic environment, and an intelligent test environment model that can accelerate the test process. The behavior capability test model efficiently obtains test results while ensuring the accuracy of the test results, thereby improving the efficiency of autonomous driving vehicle testing and evaluation.
[0046] In an exemplary embodiment, for each scene X m The corresponding D m , step S300 may include steps S310-S330:
[0047] S310: According to D m Determine whether a critical event occurs. If the critical event occurs, D m The key scene labels of all data in D are set to 1, otherwise, m The key scene labels of all data in are set to 0, and the data set after the key scene annotation is obtained
[0048] S320: Obtain the occurrence time of each key event as the key moment t;
[0049] S330: The key time label of the data in the acquisition time range [t-1, t] is set to 1, and the key time label of the data in the remaining acquisition time range is set to 0 to obtain the scene X m Corresponding intelligent training data set
[0050] In this embodiment, after key scene annotation and key time annotation, the intelligent training data set is obtained. The data can be divided into three types: the key scene label and the key time label are both 0, the key scene label is 1 and the key time label is 0, and the key scene label and the key time label are both 1. Since the probability of a key event occurring is much smaller than the probability of no key event occurring, the amount of data with both the key scene label and the key time label being 1 is much smaller than the other two types, and the intelligent training data set is sparse.
[0051] In this embodiment, the unit of the key moment t may be seconds, and the acquisition time range [t-1, t] may be a time range from t-1 seconds to t seconds.
[0052] In an exemplary embodiment, step S400 may include steps S410-S430:
[0053] The following steps are repeated to perform multiple neural network reinforcement learning training until the reward value is greater than or equal to the reward threshold. The current sampling function Q used in this training is used. φ As the trained importance sampling function Q:
[0054] S410: Based on the current sampling function Q φ The intelligent training data set is sampled as the data for this training; wherein the current sampling function Q when the neural network reinforcement learning training is performed for the first time φ is the initial sampling function Q0;
[0055] S420: Inputting the data of the current training into the intelligent test environment model to obtain a predetermined test index of the current training;
[0056] S430: Calculate the reward value according to the predetermined test index of the current training, and when the reward value is less than the reward threshold, update Q φ The parameters of the next neural network reinforcement learning training are updated with the updated Q φ As the current sampling function Q for the next neural network reinforcement learning training φ , wherein the reward value is calculated based on a reward function.
[0057] In this embodiment, the initial sampling function Q0 can be a uniform sampling function. During the neural network reinforcement learning training process, the current sampling function Q0 is continuously optimized through multiple iterative training. φ Parameters of the algorithm are finally used to obtain the importance sampling function Q.
[0058] In this embodiment, when executing step S420, the data of this training is input into the training vehicle model and the background vehicle model, and the training vehicle model and the background vehicle model interact to obtain the predetermined test index of this training.
[0059] In this embodiment, according to the intelligent training data set {D 2 m}The real predetermined test index can be obtained. When executing step S430 to calculate the reward value, the reward function can be set in advance. The input value of the reward function includes the predetermined test index of this training and the real predetermined test index. By pre-setting a suitable reward threshold, the iterative process of neural network reinforcement learning training can be optimized, and the robustness and performance of the intelligent testing environment model can be improved.
[0060] In this embodiment, the predetermined test indicator can be one of the accident rate, the minimum spacing rate and the minimum collision time rate; the accident rate is calculated by dividing the number of accidents by the mileage of the training vehicle model; the minimum spacing rate is the number of times the minimum spacing occurs divided by the mileage of the training vehicle model, and the minimum spacing occurs, that is, the distance between the training vehicle model and the background vehicle model is less than the minimum spacing threshold; the minimum collision time rate is the number of times the minimum collision time occurs divided by the mileage of the training vehicle model, and the minimum collision time occurs, that is, the collision time is less than the minimum time threshold, and the collision time is calculated by dividing the distance between the training vehicle model and the background vehicle model by the speed of the training vehicle model.
[0061] In an exemplary embodiment, step S100 may include steps S110-S120:
[0062] S110: Obtain the training vehicle in M scenes X respectively m The data collected by the road test sensors and the vehicle-mounted sensors during natural driving are used as the original training data;
[0063] S120: Cleaning invalid data, unifying data formats, and aligning data coordinates on the original training data to obtain the natural driving scene training data set;
[0064] The road test sensors are installed at intersections and sections of a real road environment, and the vehicle-mounted sensors are installed on the training vehicles and background vehicles.
[0065] In this embodiment, the road test sensors may include a video surveillance system, a pressure-sensitive plot, a traffic flow sensor, a meteorological sensor, etc., and the vehicle-mounted sensors may include a camera, a lidar, a millimeter-wave radar, an ultrasonic sensor, a satellite positioning navigation receiver, an inertial measurement unit, etc. The above sensors are all described as examples and are not limitations of this application, and will not be described in detail herein.
[0066] In an exemplary embodiment, step S200 may include steps S210-S230:
[0067] The following steps are repeated to perform multiple neural network deep learning trainings until the loss value is less than or equal to the loss threshold. The current natural driving distribution function P used in this training is used. θ As the trained natural driving distribution function P:
[0068] S210: Sampling the natural driving scene training data set based on a preset uniform sampling function as data for this training; wherein the current natural driving distribution function P of the first neural network deep learning training is θ is the initial natural driving distribution function P0;
[0069] S220: Input the training data into the natural driving environment model, based on P θ Get the probability distribution of key events for this training;
[0070] S230: Calculate the loss value according to the probability distribution of the key events of the current training, and when the loss value is greater than the loss threshold, update P θ The parameters of the next neural network deep learning training are updated with the updated P θ As the current natural driving distribution function P for the next neural network deep learning training θ , wherein the loss value is calculated based on a loss function.
[0071] In this embodiment, a uniform sampling function may be pre-set, and during the deep learning training of the neural network, during each iterative training, when executing step S210, the uniform sampling function is used for sampling.
[0072] In this embodiment, when executing step S220, the training data is input into the training vehicle model and the background vehicle model, and the training vehicle model and the background vehicle model interact with each other. θ Get the probability distribution of key events for this training.
[0073] In this embodiment, according to the natural driving scene training data set {D m}, the real probability distribution of key events can be obtained. When executing step S230 to calculate the loss value, the loss function can be set in advance, and the input value of the loss function includes the key event probability distribution of this training and the real key event probability distribution; by pre-setting a suitable loss threshold, the iterative process of neural network deep learning training can be optimized, which is conducive to the efficient training of the model and improves the generalization ability of the model.
[0074] The present application also provides a behavior capability testing platform, such as Figure 2 As shown, it includes: a vehicle model to be tested, a behavior capability test model, a test evaluation module and a vehicle evaluation module;
[0075] The vehicle model to be tested is a model of the autonomous driving vehicle to be tested;
[0076] The behavior ability test model is constructed by the behavior ability test model construction method described in the above embodiment, including a natural driving environment model and an intelligent test environment model corresponding to a specific scene type; the natural driving environment model includes a natural driving distribution function P and a background vehicle model, and the intelligent test environment model includes an importance sampling function Q and the background vehicle model;
[0077] The behavior capability test platform uses the natural driving environment model to perform natural driving interaction between the vehicle model to be tested and the background vehicle model. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution of key events occurring in m ), where m = 1, 2, ... M; used to sample the probability distribution P(X according to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform importance scene sampling to obtain M important scenes The intelligent test environment model is used to perform important scene interaction between the vehicle model to be tested and the background vehicle model. In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; and F m Send to the test evaluation module and the vehicle evaluation module, and m ) is sent to the vehicle assessment module;
[0078] The test evaluation module is used to obtain multiple F m Then, a predetermined test indicator variance is calculated, and a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and when the predetermined test indicator variance is less than the preset variance threshold, the test is determined to be completed;
[0079] The vehicle evaluation module is used to calculate the total predetermined test index according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested passes the behavior capability test. The input data of the vehicle evaluation formula includes F m and P(X m ).
[0080] In this embodiment, the behavioral capability testing platform is a carrier of the behavioral capability testing, which can be a simulation platform or an augmented reality platform, which can reproduce the real-world traffic cycle and accelerate the testing process; wherein, the vehicle model to be tested can be constructed based on the type of vehicle to be tested (sedan, truck, bus, etc.), appearance characteristics, kinematic parameters and other data.
[0081] The present application also provides a behavioral ability testing method, such as Figure 3 As shown, steps S600-S900 are included:
[0082] S600: Input the vehicle model to be tested into the natural driving environment model in the behavior ability test model, and perform natural driving interaction between the vehicle model to be tested and the background vehicle model. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution P(X m ), where m = 1, 2, ... M;
[0083] S700: According to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform sampling to obtain M important scenes With X m One to one correspondence;
[0084] S800: Input the vehicle model to be tested into the intelligent test environment model in the behavior capability test model, and perform importance scene interaction between the vehicle model to be tested and the background vehicle model. In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; After getting N F m After that, a predetermined test indicator variance is calculated, a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and whether the test is completed, wherein 2≤N≤M;
[0085] S900: If it is determined that the test is completed, the total predetermined test index is calculated according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested has passed the behavior capability test, wherein the input data of the vehicle evaluation formula includes F m and P(X m );
[0086] Among them, the vehicle model to be tested is the model of the autonomous driving vehicle to be tested, and the behavior capability test model is constructed by the behavior capability test model construction method described in the above embodiment.
[0087] In this embodiment, before executing step S600, the autonomous driving vehicle to be tested may first be subjected to a typical scenario test. The typical scenario test may be conducted in a closed road environment and include multiple typical scenarios. Only when the autonomous driving vehicle passes the test in each typical scenario, steps S600-S900 are executed to enter the behavioral capability test phase, that is, the behavioral capability test is performed only if the typical scenario test passes. If, during the typical scenario test, the accident rate of the autonomous driving vehicle to be tested exceeds a preset accident rate threshold, the typical scenario test fails and the behavioral capability test is not performed.
[0088] In this embodiment, when executing step S600, each scene X m The probability distribution P(X m ), P(X m )'s independent variables include natural driving test time [a m ,b m ], that is, P(X m ) is time period a m ~b m The probability distribution within P(X m ) at time [a m ,b m ]Integral Get scene X m The corresponding probability of key event K occurring.
[0089] In this embodiment, the importance scenario predetermined test index F m It can be one of the importance scene accident rate, the importance scene minimum spacing rate and the importance scene minimum collision time rate; the importance scene accident rate is calculated by dividing the number of accidents by the mileage of the vehicle model to be tested; the importance scene minimum spacing rate is the number of minimum spacing occurrences divided by the mileage of the vehicle model to be tested, and the minimum spacing occurs, that is, the distance between the vehicle model to be tested and the background vehicle model is less than the minimum spacing threshold; the importance scene minimum collision time rate is the number of minimum collision time occurrences divided by the mileage of the vehicle model to be tested, and the minimum collision time occurs, that is, the collision time is less than the minimum time threshold, and the collision time is calculated by dividing the distance between the vehicle model to be tested and the background vehicle model by the speed of the vehicle model to be tested.
[0090] In an exemplary embodiment, step S700 may include steps S710-S720:
[0091] For each scene X m Do the following, respectively:
[0092] S710: After obtaining P(X m ) of the natural driving test time [a m ,b m ], according to the importance sampling function Q, the key action K corresponding to each key event K is obtained. a , where K a Including the key actions K of the vehicle model to be tested a1 and the key action K of the background vehicle model a2 ;
[0093] S720: Save each time the key event K occurs a1 and K a2 The action correspondence of Among them, the It includes C action correspondences, where C is a positive integer.
[0094] In this embodiment, for each scene X m , respectively obtain the key actions of key events, and extract the key actions as important scenes Each scene X m Corresponding to an importance scene Including key actions that cause key events and excluding actions that do not cause key events makes the importance scenario test T m Only the interaction between the vehicle model to be tested and the background vehicle model when key events occur is focused on, which improves the test efficiency.
[0095] In an exemplary embodiment, step S800 may include step S810:
[0096] S810: Input the vehicle model to be tested into the intelligent test environment model, and In order to test the importance of the scene T m , each time T m , get the T m The corresponding important scene accident rate F, m , and the N Fs that have been obtained, m Input test evaluation module, according to N F, m Calculate the accident rate variance, compare the relationship between the accident rate variance and the preset variance threshold, and when the accident rate variance is less than the preset variance threshold, determine that the test is completed; when the accident rate variance is not less than the preset variance threshold, continue to the next important scene The importance scenario test T m ; When all M important scenes When the importance scenario test has been carried out in m , confirm that the test is completed;
[0097] In this embodiment, the importance scenario predetermined test index F m is the accident rate F of the importance scenario, m , the predetermined test indicator variance is the accident rate variance.
[0098] In this embodiment, each time T m The steps include: sending the action correspondence relationship to the vehicle model to be tested and the background vehicle model C times, wherein K a1 Send it to the vehicle model to be tested, and K a2 Send to the background vehicle model, and perform a test T each time the action correspondence is sent mc , get T mc The corresponding number of accidents A mc and test mileage L mc , calculate T m Corresponding importance scenario accident rate
[0099] In this embodiment, the preset variance threshold is a minimum value to ensure that when the test is determined to be completed, the importance scenario test T m The number of times N is a sufficiently large number in [2,M]. For example, the preset variance threshold can be 1*10 -8 ; Determine when the test is completed, the T m The number of times N may be less than M, or it may be equal to M; if M-1 importance scenario tests are completed, T m , we get M-1 F m , calculate M-1 F m If the accident rate variance of is still greater than or equal to the preset variance threshold, the Mth importance scenario test T is to be performed. m , and get M F m ,At this point, there is no need to calculate the accident rate variance, and the test can be directly determined to be completed.
[0100] In this embodiment, by calculating the accident rate variance, it can be used as a quantitative evaluation standard for when to terminate the test, thereby saving test time and ensuring the accuracy of the test in the intelligent test environment model.
[0101] In this embodiment, for each T m , including C tests T mcEach time the action correspondence is sent, the vehicle model to be tested and multiple background vehicles in the background vehicle model undergo an interactive test T mc , after completing C tests T mc After that, calculate the accident rate F of the important scene, m .
[0102] In an exemplary embodiment, step S900 may include steps S910-S920:
[0103] S910: F, m and P(X m ) Enter the vehicle evaluation formula Get the total accident rate P T , where the total predetermined test index is the total accident rate P T ;
[0104] S920: Determine the total accident rate P T and the preset accident rate threshold, if P T If the accident rate is less than the preset accident rate threshold, a test result indicating that the autonomous driving vehicle has passed the test is output; otherwise, a test result indicating that the autonomous driving vehicle has failed the test is output.
[0105] In order to illustrate the test steps of the autonomous driving vehicle in the embodiment of the present application, a specific example is used to describe in detail as follows: Figure 4 shown.
[0106] S1: Typical scenario test of the autonomous driving vehicle under test in a closed road environment;
[0107] S2: Determine whether the typical scenario test is passed, if passed, execute step S3; if not, execute step S9;
[0108] S3: Input the vehicle model to be tested corresponding to the autonomous driving vehicle to be tested into the natural driving environment model, and then test the vehicle model in M scenes X of urban road scene type. m A natural driving test is performed in the process, and the M scenarios X are obtained according to the natural driving distribution function P. m The probability distribution of key events occurring in m ), where m = 1, 2, ... M;
[0109] S4: According to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform sampling to obtain M important scenes
[0110] S5: In the intelligent test environment model, the vehicle model to be tested is Perform the importance scenario test T in sequence m and obtain T m corresponding importance scenario accident rate F; m After obtaining N Fs m determine whether the test is completed, where 2 ≤ N ≤ M;
[0111] S6: Determine that the test is completed and calculate the total accident rate according to the vehicle evaluation formula;
[0112] S7: Judge the relationship between the total accident rate and the preset accident rate threshold. If the total accident rate is less than the preset accident rate threshold, execute step S8; if the total accident rate is greater than or equal to the preset accident rate threshold, execute step S9;
[0113] S8: Output the test result "The autonomous vehicle passes the test";
[0114] S9: Output the test result "The autonomous vehicle fails the test".
[0115] Among them, the above steps S1 - S2, S9 are the typical scenario tests of the autonomous vehicle, which are real - road tests. The above steps S3 - S9 are the behavioral ability tests of the vehicle model to be tested, which are computer simulation tests or computer - augmented reality tests.
[0116] Among them, the specific steps in step S5 include S51 - S54:
[0117] S51: Select N importance scenarios from M importance scenarios where 2 ≤ N < M; S52: Perform the importance scenario test T in sequence in N importance scenarios
[0118] and obtain N importance scenario accident rates F; S53: Input all Fs m into the test evaluation module to calculate the accident rate variance; m ;
[0119] S54: Compare the relationship between the accident rate variance and the preset variance threshold. If the accident rate variance is less than the preset variance threshold, execute S6; if the accident rate variance is greater than or equal to the preset variance threshold, select the (N + 1) - th importance scenario m and perform the (N + 1) - th importance scenario test T
[0120] to obtain the (N + 1) - th importance scenario accident rate F and if N + 1 < M, execute step S53, if N + 1 = M, execute S6. m m
[0121] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A method for constructing a behavioral ability test model, characterized in that: The behavioral ability test model corresponds to a specific scenario type, and the method includes: The original training data is obtained and processed to obtain the natural driving scene training data set {D m }, wherein the original training data is the M scenes X of the training vehicle in the specific scene type. m Natural driving data in, natural driving scene training data D m With X m One-to-one correspondence, m = 1, 2, ... M; Using the natural driving scene training data set as training data, training an initial natural driving distribution function P0 of a preset first model to obtain a natural driving distribution function P of a natural driving environment model, wherein the preset first model includes P0 and a background vehicle model, and the natural driving environment model includes P and the background vehicle model; Performing key scene labeling and key time labeling on the natural driving scene training data set to obtain an intelligent training data set; Using the intelligent training data set as training data, training the initial sampling function Q0 of the preset second model based on sparse adversarial control theory, and obtaining the importance sampling function Q of the intelligent test environment model, wherein the preset second model includes Q0 and the background vehicle model, and the intelligent test environment model includes Q and the background vehicle model; The behavior capability test model is obtained based on the natural driving environment model and the intelligent test environment model, wherein the behavior capability test model is applied to perform a behavior capability test on an autonomous driving vehicle.
2. The method for constructing a behavioral ability test model according to claim 1, characterized in that: The step of labeling the natural driving scene training data set with key scenes and key times to obtain an intelligent training data set includes: For each scene X m The corresponding natural driving scene training data D m , perform the following operations respectively: According to D m Determine whether a critical event occurs. If the critical event occurs, D m The key scene labels of all data in D are set to 1, otherwise, m The key scene labels of all data in are set to 0, and the data set after the key scene annotation is obtained Obtaining the occurrence time of each of the key events as the key moment t; Will The key time label of the data in the acquisition time range [t-1, t] is set to 1, and the key time label of the data in the remaining acquisition time range is set to 0 to obtain the scene X m Corresponding intelligent training data set 3. The method for constructing a behavioral ability test model as claimed in claim 2, characterized in that: The method uses the intelligent training data set as training data, trains the initial sampling function Q0 of the preset second model based on sparse adversarial control theory, and obtains the importance sampling function Q of the intelligent test environment model, including: The following steps are repeated to perform multiple neural network reinforcement learning training until the reward value is greater than or equal to the reward threshold. As the trained importance sampling function Q: Based on the current sampling function The intelligent training data set is sampled as the data for this training; wherein the current sampling function when the neural network reinforcement learning training is performed for the first time is the initial sampling function Q0; Inputting the data of this training into the intelligent test environment model to obtain the predetermined test index of this training; The reward value is calculated according to the predetermined test index of the training, and when the reward value is less than the reward threshold, the reward value is updated. The parameters of the next neural network reinforcement learning training are updated to As the current sampling function for the next neural network reinforcement learning training Wherein, the reward value is calculated based on a reward function.
4. The method for constructing a behavioral ability test model according to claim 1, wherein: The original training data is obtained and processed to obtain a natural driving scene training data set, including: Get the training vehicle in M scenes X respectively m The data collected by the road test sensors and the vehicle-mounted sensors during natural driving are used as the original training data; Cleaning invalid data, unifying data formats, and aligning data coordinates on the original training data to obtain the natural driving scene training data set; The road test sensors are installed at intersections and sections of a real road environment, and the vehicle-mounted sensors are installed on the training vehicles and background vehicles.
5. The method for constructing a behavioral ability test model according to claim 4, characterized in that: The method uses the natural driving scene training data set as training data to train the initial natural driving distribution function P0 of the preset first model to obtain the natural driving distribution function P of the natural driving environment model, including: The following steps are repeated to perform multiple neural network deep learning trainings until the loss value is less than or equal to the loss threshold. The current natural driving distribution function P used in this training is used. θ As the trained natural driving distribution function P: The natural driving scene training data set is sampled based on a preset uniform sampling function as the data for this training; wherein the current natural driving distribution function P of the first neural network deep learning training is θ is the initial natural driving distribution function P0; The training data is input into the natural driving environment model, based on P θ Get the probability distribution of key events for this training; The loss value is calculated according to the probability distribution of the key events of the current training. When the loss value is greater than the loss threshold, P is updated. θ The parameters of the next neural network deep learning training are updated with the updated P θ As the current natural driving distribution function P for the next neural network deep learning training θ , wherein the loss value is calculated based on a loss function.
6. A behavioral ability testing platform, characterized in that: include: The vehicle model to be tested, the behavioral capability test model, the test evaluation module and the vehicle evaluation module; The vehicle model to be tested is a model of the autonomous driving vehicle to be tested; The behavior ability test model is constructed by the behavior ability test model construction method described in any one of claims 1 to 5, including a natural driving environment model and an intelligent test environment model; the natural driving environment model includes a natural driving distribution function P and a background vehicle model, and the intelligent test environment model includes an importance sampling function Q and the background vehicle model; The behavior capability test platform uses the natural driving environment model to perform natural driving interaction between the vehicle model to be tested and the background vehicle model. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution of key events occurring in m ), where m = 1, 2, ... M; used to sample the probability distribution P(X according to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform importance scene sampling to obtain M importance scenes X * m ; Using the intelligent test environment model to interact with the vehicle model to be tested and the background vehicle model, * m In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; and F m Send to the test evaluation module and the vehicle evaluation module, and m ) is sent to the vehicle assessment module; The test evaluation module is used to obtain multiple F m Then, a predetermined test indicator variance is calculated, and a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and when the predetermined test indicator variance is less than the preset variance threshold, the test is determined to be completed; The vehicle evaluation module is used to calculate the total predetermined test index according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested passes the behavior capability test. The input data of the vehicle evaluation formula includes F m and P(X m ).
7. A behavioral ability testing method, characterized in that: include: The vehicle model to be tested is input into the natural driving environment model in the behavior ability test model, and the natural driving interaction between the vehicle model to be tested and the background vehicle model is performed. m In the natural driving test, the M scenes X are respectively obtained according to the natural driving distribution function P during the natural driving test. m The probability distribution P(X m ), where m = 1, 2, ... M; According to the importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Sampling is performed to obtain M important scenes With X m One to one correspondence; The vehicle model to be tested is input into the intelligent test environment model in the behavior capability test model, and the importance scene interaction between the vehicle model to be tested and the background vehicle model is performed. In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; After getting N F m After that, a predetermined test indicator variance is calculated, a relationship between the predetermined test indicator variance and a preset variance threshold is determined, and whether the test is completed, wherein 2≤N≤M; If the test is determined to be completed, the total predetermined test index is calculated according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested has passed the behavioral capability test. The input data of the vehicle evaluation formula includes F m and P(X m ); Among them, the vehicle model to be tested is a model of the autonomous driving vehicle to be tested, and the behavioral capability test model is constructed by the behavioral capability test model construction method described in any one of claims 1-5.
8. The behavioral ability testing method according to claim 7, characterized in that: The importance sampling function Q and the probability distribution P(X m ) for the M scenes X respectively m Perform sampling to obtain M important scenes include: For each scene X m Do the following, respectively: In obtaining P(X m ) of the natural driving test time [a m ,b m ], according to the importance sampling function Q, the key action K corresponding to each key event K is obtained. a , where K a Including the key actions K of the vehicle model to be tested a1 and the key action K of the background vehicle model a2 ; Save each time the key event K occurs a1 and K a2 The action correspondence of Among them, the It includes C action correspondences, where C is a positive integer.
9. The behavioral ability testing method according to claim 8, characterized in that: The vehicle model to be tested is input into the intelligent test environment model in the behavior capability test model, and the importance scene interaction between the vehicle model to be tested and the background vehicle model is performed. In order to test the importance of the scene T m , get T m Corresponding importance scenario predetermined test index F m ; After getting N F m After that, the predetermined test indicator variance is calculated, the relationship between the predetermined test indicator variance and the preset variance threshold is determined, and whether the test is completed is determined, wherein 2≤N≤M, including: The vehicle model to be tested is input into the intelligent test environment model, and the vehicle model to be tested is input into the intelligent test environment model. In order to test the importance of the scene T m , each time T m , get the T m The corresponding important scene accident rate F, m , and the N Fs that have been obtained, m Input test evaluation module, according to N F, m Calculate the accident rate variance, compare the relationship between the accident rate variance and the preset variance threshold, and when the accident rate variance is less than the preset variance threshold, determine that the test is completed; when the accident rate variance is not less than the preset variance threshold, continue to the next important scene The importance scenario test T m ; When all M important scenes When the importance scenario test has been carried out in m , confirm that the test is completed; Among them, the importance scenario predetermined test index F m is the accident rate F of the importance scenario, m , the predetermined test index variance is the accident rate variance; Each time T m The steps include: sending the action correspondence relationship to the vehicle model to be tested and the background vehicle model C times, wherein K a1 Send it to the vehicle model to be tested, and K a2 Send to the background vehicle model, and perform a test T each time the action correspondence is sent mc , get T mc The corresponding number of accidents A mc and test mileage L mc , calculate T m Corresponding importance scenario accident rate 10. The behavioral ability testing method according to claim 9, characterized in that: If the test is determined to be completed, the total predetermined test index is calculated according to the vehicle evaluation formula to determine whether the autonomous driving vehicle to be tested has passed the behavioral capability test. The input data of the vehicle evaluation formula includes F m and P(X m ),include: F, m and P(X m ) Enter the vehicle evaluation formula Get the total accident rate P T , where the total predetermined test index is the total accident rate P T ; Determine the total accident rate P T and the preset accident rate threshold, if P T If the accident rate is less than the preset accident rate threshold, a test result indicating that the autonomous driving vehicle has passed the test is output; otherwise, a test result indicating that the autonomous driving vehicle has failed the test is output.
