A method, device and equipment for generating edge simulation test scenarios for autonomous driving
By collecting and processing autonomous driving edge simulation test data, we generate basic scenarios and conduct parameter combination searches, and use heuristic search framework optimization algorithms to solve the problems of low autonomous driving edge scene generation efficiency and local convergence, and achieve global search and diversification. Scenario generation improves test performance.
Patent Information
- Application Number
- CN202311753905.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-12-19
AI Technical Summary
In the existing technology, the search cost of edge scenes for autonomous driving is high, and it is difficult to generate more types of key scenes globally, resulting in low scene generation efficiency and local convergence problems.
By collecting scene data for autonomous driving edge simulation tests, we generate basic scenes, determine scene parameter space files, and conduct parameter combination searches. We use heuristic search frameworks and objective function optimization algorithms to achieve global searches, avoid local convergence, and generate multiple edge scenes. .
It implements a full-process systematic and engineered technical solution from raw data to edge scenarios, improves search performance, supports flexible configuration of multiple goals and evaluation criteria, and meets diverse testing needs.
Smart Images

Figure CN117744366B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer information processing technology, and in particular to a method, device and equipment for generating an edge simulation test scenario for autonomous driving. Background Art
[0002] Autonomous driving requires verification of the functions, performance, safety, stability and robustness of products and systems. Autonomous driving systems require hundreds of millions or even billions of miles of road testing before they can be mass-produced and put on the road, which takes about hundreds of years. Therefore, simple road testing cannot meet the requirements of technological development. Adding testing methods such as simulation testing and improving the diversity, coverage and typicality of test scenarios to improve test efficiency is the inevitable direction of technological development.
[0003] The scenario library is the most important component of autonomous driving simulation testing. Existing safety standards point out the need to continuously expand the understanding and evaluation of unknown unsafe scenarios, search and generalize based on existing scenarios, and find more dangerous and edge test scenarios, which has important practical significance.
[0004] In the existing technology, scenario libraries are mostly used to generate test scenarios in a certain system. There is a lack of research on how to define typical edge scenarios and how to obtain edge scenarios. The generalized search of autonomous driving edge scenarios may have problems such as high-dimensional scene space and a large value range of scene elements, which will bring huge search costs and reduce scene generation efficiency. The limited capabilities of the search algorithm itself will lead to local convergence of scene searches, making it difficult to generate more types of key scenarios on a global scale. Summary of the invention
[0005] The present invention provides a method, device and equipment for generating an edge simulation test scene for autonomous driving, so as to solve the problems of difficulty in generating edge scenes and low generation efficiency.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for generating an autonomous driving edge simulation test scenario, the method comprising:
[0007] Collect scenario data for autonomous driving edge simulation testing;
[0008] Generate basic scenarios based on scenario data from autonomous driving edge simulation tests;
[0009] Determine the scene parameter space file based on the key parameters in the basic scene;
[0010] A parameter combination search is performed on the parameters in the scene parameter space file to obtain multiple edge scenes.
[0011] Optionally, generate basic scenarios based on scenario data from the autonomous driving edge simulation test, including:
[0012] Obtain vehicle dynamic simulation data through the scenario data of autonomous driving edge simulation test;
[0013] Generate basic scenarios based on vehicle dynamics simulation data.
[0014] Optionally, determine the scene parameter space file based on the key parameters in the basic scene, including:
[0015] Extract preset key parameters of basic scenes;
[0016] At least one of the name, position, change method and value range of the preset key parameter is stored as a scene parameter space file.
[0017] Optionally, a parameter combination search is performed on the parameters in the scene parameter space file to obtain multiple edge scenes, including:
[0018] Generate initial combination values of parameters according to the parameters in the scene parameter space file;
[0019] Generate test scenario files based on parameter combination values and basic scenarios;
[0020] The test scenario file is operated through the objective function to obtain the objective function value;
[0021] According to the conditions of the edge scene, the parameter combination corresponding to the objective function value is searched to obtain multiple edge scenes.
[0022] Optionally, the test scenario file is operated by the objective function to obtain the objective function value, including:
[0023] Test the test scenario file through the target test function to obtain test data;
[0024] Evaluate the test through the objective evaluation function to obtain the evaluation index;
[0025] The cost of the evaluation index is calculated through the target cost function to obtain the target function value.
[0026] Optionally, according to the conditions of the edge scene, a parameter combination corresponding to the objective function value is searched to obtain multiple edge scenes, including:
[0027] If the objective function value meets the conditions of the edge scenario, the parameter combination corresponding to the objective function value is recorded in the database, and the next parameter combination value is generated. Iterative calculation is performed based on the next parameter combination value until the number of parameter combination values in the parameter space file reaches the preset number of iterations, and multiple edge scenarios are obtained.
[0028] Optionally, the method for generating an autonomous driving edge simulation test scenario further includes:
[0029] Classify and filter multiple edge scenes to obtain the target edge scene;
[0030] Add the target edge scene to the edge scene database.
[0031] Optionally, the edge scenes are classified and screened to obtain target edge scenes, including:
[0032] Classifying the parameter combination values corresponding to the edge scenes to obtain at least one type of edge scenes;
[0033] For each type of edge scene, the parameter combination is deduplicated and screened to obtain the target edge scene.
[0034] In a second aspect, an embodiment of the present disclosure provides an apparatus for generating an autonomous driving edge simulation test scenario, comprising:
[0035] The acquisition module is used to collect scene data for autonomous driving edge simulation testing;
[0036] The processing module is used to generate a basic scene based on the scene data of the autonomous driving edge simulation test; determine the scene parameter space file based on the key parameters in the basic scene; and perform parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes.
[0037] Optionally, when the processing module generates a basic scenario based on the scenario data of the autonomous driving edge simulation test, it includes:
[0038] The first processing submodule is used to obtain vehicle dynamic simulation data through the scene data of the autonomous driving edge simulation test; and generate a basic scene based on the vehicle dynamic simulation data.
[0039] Optionally, when the processing module determines the scene parameter space file according to the key parameters in the basic scene, it includes:
[0040] The second processing submodule is used to extract the preset key parameters of the basic scene; and store the name, position, change method and value range of the preset key parameters as a scene parameter space file.
[0041] Optionally, the processing module performs a parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes, including:
[0042] The third processing submodule is used to generate initial combination values of parameters according to the parameters in the scene parameter space file; generate a test scenario file according to the parameter combination values and the basic scenario; operate the test scenario file through the objective function to obtain the objective function value; according to the conditions of the edge scene, search for the parameter combination corresponding to the objective function value to obtain multiple edge scenes.
[0043] Optionally, the test scenario file is operated by the objective function to obtain the objective function value including:
[0044] Test the test scenario file through the target test function to obtain test data;
[0045] Evaluate the test through the objective evaluation function to obtain the evaluation index;
[0046] The cost of the evaluation index is calculated through the target cost function to obtain the target function value.
[0047] Optionally, according to the conditions of the edge scene, a parameter combination corresponding to the objective function value is searched to obtain multiple edge scenes, including:
[0048] According to the conditions that the objective function value satisfies the edge scenario, the parameter combination corresponding to the objective function value is recorded in the database, and the next parameter combination value is generated. The iterative calculation is performed based on the next parameter combination value until the number of parameter combination values in the parameter space file reaches the preset number of iterations, and multiple edge scenarios are obtained.
[0049] Optionally, the processing module is further configured to:
[0050] The parameter combination values corresponding to the edge scenes are classified to obtain at least one type of edge scenes; and the parameter combinations of each type of edge scenes are deduplicated and screened to obtain the target edge scenes.
[0051] In a third aspect, an embodiment of the present disclosure provides a computing device, including: a processor and a memory storing a computer program. When the computer program is executed by the processor, the steps of the method for generating an autonomous driving edge simulation test scenario as in the first aspect are executed.
[0052] The technical effects of the above technical solution disclosed in the present invention are as follows:
[0053] In the disclosed embodiment, the scene data of the autonomous driving edge simulation test is collected; the basic scene is generated according to the scene data of the autonomous driving edge simulation test; the scene parameter space file is determined according to the key parameters in the basic scene; the parameters in the scene parameter space file are searched for parameter combinations to obtain multiple edge scenes. It is possible to establish a systematic, engineered, and ecologically sound technical solution for the entire process from raw data to obtaining edge scenes; when searching for edge scenes, global search is achieved to the greatest extent, local convergence is avoided, and search efficiency is improved; the optimization goals and edge scene evaluation standards are flexibly configurable, and edge scene search is supported for multiple customized goals, thereby meeting diverse testing needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flowchart of a method for generating an autonomous driving edge simulation test scenario provided by an embodiment of the present disclosure;
[0055] Figure 2 It is a step framework diagram of a method for generating an autonomous driving edge simulation test scenario provided by an embodiment of the present disclosure;
[0056] Figure 3 is a schematic diagram of the heuristic search framework content provided by an embodiment of the present disclosure;
[0057] Figure 4 It is a schematic diagram of a process of generating scene data in a method for generating a scene for an edge simulation test of an autonomous driving provided by an embodiment of the present disclosure;
[0058] Figure 5 It is a schematic diagram of a process of determining a scene parameter space file in a method for generating an autonomous driving edge simulation test scene provided by an embodiment of the present disclosure;
[0059] Figure 6 It is a flow chart of performing parameter combination search on parameters in a scene parameter space file to obtain multiple edge scenes in the method for generating an edge simulation test scene for autonomous driving provided by an embodiment of the present disclosure;
[0060] Figure 7 It is a flow chart of obtaining an objective function value by calculating a test scenario file through an objective function in a method for generating an autonomous driving edge simulation test scenario provided by an embodiment of the present disclosure;
[0061] Figure 8 It is a further flow chart of performing parameter combination search on parameters in a scene parameter space file to obtain multiple edge scenes in the method for generating an edge simulation test scene for autonomous driving provided by an embodiment of the present disclosure;
[0062] Fig. 9 It is a module schematic diagram of an apparatus for generating an autonomous driving edge simulation test scenario provided by an embodiment of the present disclosure;
[0063] Fig.10 is a schematic diagram of the structure of a computing device provided by an embodiment of the present disclosure;
[0064] Fig.11 It is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0065] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0066] like Figure 1 As shown, an embodiment of the present disclosure proposes a method for generating an autonomous driving edge simulation test scenario, comprising:
[0067] Step 101, collecting scene data of autonomous driving edge simulation test;
[0068] Step 102, generating a basic scenario based on the scenario data of the autonomous driving edge simulation test;
[0069] Step 103, determining a scene parameter space file according to key parameters in the basic scene;
[0070] Step 104 , performing parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes.
[0071] In this embodiment, the scene data of the edge simulation test of autonomous driving is collected; the basic scene is generated according to the scene data of the edge simulation test of autonomous driving; the scene parameter space file is determined according to the key parameters in the basic scene; the parameters in the scene parameter space file are searched for parameter combinations to obtain multiple edge scenes. It is possible to establish a systematic, engineered, and ecologically sound technical solution for the entire process from raw data to obtaining edge scenes; when searching for edge scenes, global search is achieved to the greatest extent, local convergence is avoided, and search efficiency is improved; the optimization goals and edge scene evaluation standards are flexibly configurable, and edge scene search is supported for multiple customized goals, thereby meeting diverse testing needs.
[0072] like Figure 4 As shown, in an optional embodiment of the present disclosure, in step 102, generating a basic scenario according to the scenario data of the autonomous driving edge simulation test may include:
[0073] Step 1021, obtaining vehicle dynamic simulation data through the scene data of the autonomous driving edge simulation test;
[0074] Step 1022, generating a basic scenario according to the vehicle dynamic simulation data.
[0075] In this embodiment, the basic scenario describes the time development between several scenes in a series of scenarios, each of which starts from an initial scene. Actions and events as well as goals and values can be specified to characterize this time development of the scenario.
[0076] The scene elements when an autonomous vehicle is on the road mainly include: objects, road conditions, environment, behavior, etc.
[0077] Among them, objects refer to other people or cars that appear in the scene, as well as other objects or animals that affect driving decisions or may move autonomously. This aspect mainly relies on various sensors for autonomous driving, including millimeter-wave radar, cameras, ultrasonic probes, lidar, etc., and also requires a lot of real-time calculations to predict the direction of the opponent's car in the next second. Specifically, it includes object type, object movement speed, object movement direction, object number, object awareness, etc.
[0078] Road conditions refer to the characteristics of the road and traffic control. Road conditions will not change with environmental changes, and self-driving cars can predict them in advance. They mainly use pre-drawn maps for autonomous positioning. Specifically, they include intersection design, traffic control methods, number of lanes, lane lines, lane types, speed limits, road types, angles, areas, etc.
[0079] Environment refers to all environmental factors that may change. Many of its data need to be transmitted to the self-driving car in real time from the outside world, such as weather, lighting, road conditions, data transmission signal strength, noise, etc.
[0080] Behavior refers to the behavior of the self-driving car itself. The data in this area mainly relies on path planning, including driving direction, vehicle speed, vehicle acceleration, visual signals and sound signals emitted by the car, etc.
[0081] Using scene data from multiple sources such as real collection, simulation generation, laws and regulations, etc., basic scenes are generated through simulation software, such as following car scenes, pedestrian crossings, dead ends, oncoming vehicles, pedestrians not abiding by traffic regulations, and vehicles driving against obstacles.
[0082] Specifically, this embodiment adopts the standard format of autonomous driving scene simulation data format map data autonomous driving scene simulation data and format map data as the basic scene for representing the logical scene; wherein the format map data is used to describe static map scenes, including map information such as roads, intersections, and traffic facilities; and the autonomous driving scene simulation data is used to describe the dynamic test scene of autonomous driving.
[0083] Generate basic scenarios for real-world or simulated data. If the data contains a map file, use a tool to convert it into a map data format; otherwise, use a tool to draw or generate a map data file in the autonomous driving scenario simulation data format based on the data;
[0084] The vehicle trajectory data collected in real or simulated form (if the collected data is in an unstructured data format such as video, it is necessary to first generate the trajectory data through video recognition and trajectory extraction technology) is processed, and the key behaviors of the vehicle, such as acceleration, deceleration, and lane changing, are identified through information such as vehicle position and speed and map information, and the characteristic parameters of the behaviors are calculated and converted into autonomous driving scenario simulation data. The behavior, events and other elements in the autonomous driving scenario simulation data convert the dynamic simulation data into the format of autonomous driving scenario simulation data.
[0085] Generate basic scenarios based on standard regulations or natural language descriptions, extract key information from regulations or natural language descriptions, and summarize them into key behaviors of the vehicle, such as acceleration, deceleration, and lane changing. Set characteristic parameters of the behaviors based on the descriptions, and convert them into behaviors, events and other elements in the autonomous driving scenario simulation data to generate simulation files in the autonomous driving scenario simulation data format.
[0086] The formatted map data and the autonomous driving scenario simulation data complement each other (in the autonomous driving scenario simulation data, the map stored in the formatted map data format can be specified), and have a strong expressive ability for the autonomous driving simulation test scenario; both use the XML file format, with a clear logical structure and friendly to computer parsing; at the same time, this series of standard formats has been supported by mainstream simulation test software, facilitating the subsequent automated testing work.
[0087] like Figure 5 As shown, in an optional embodiment of the present disclosure, in step 103, determining the scene parameter space file according to the key parameters in the basic scene may include:
[0088] Step 1031, extracting preset key parameters of the basic scene;
[0089] Step 1032: store at least one of the name, position, change mode and value range of the preset key parameter as a scene parameter space file.
[0090] In this embodiment, based on a specific basic scenario, relatively important elements in the autonomous driving scenario simulation data file are determined, which can be used as generalized key parameters, such as the vehicle's starting position on the road, driving speed, lane change time, etc., and the extracted key parameter names and positions are stored;
[0091] According to the meaning of the parameters, determine the change mode of each parameter. The change mode mainly refers to whether the parameter changes discretely or continuously. For example, the number of vehicles ahead is a discrete change mode with a step size of "1", while the vehicle speed can change continuously.
[0092] Determine the value range of each parameter based on experience and generalization requirements. For example, consider the test scenarios and conditions and set the speed range of the opponent car to 30-50 km / h.
[0093] The key parameter names, change methods and value ranges are stored as scene parameter space files.
[0094] This step can be completed manually based on expert experience, or an automated tool can be developed for a certain type of scenario.
[0095] Specifically, a specific basic scenario is intersection steering control. In this scenario, a vehicle drives from a road to an intersection and plans to turn after reaching the intersection. In this case, factors such as the vehicle's speed, position, steering angle, turning time, and interaction with other traffic participants may affect its behavior at the intersection.
[0096] Among them, the key parameters include: Vehicle starting position: the position where the vehicle starts to move. The starting position can be represented by a map coordinate system, such as using a UTM coordinate system or longitude and latitude. Example value: coordinates (x=150, y=80);
[0097] Driving speed: The speed of a vehicle when approaching and passing an intersection. Driving speed may have maximum and minimum speed limits. Example value: 35km / h;
[0098] Acceleration / deceleration: The acceleration or deceleration of the vehicle when approaching an intersection. Depending on the traffic lights or traffic conditions, the driver may need to adjust the speed. For example: -2m / s 2 Up to 2m / s 2 ;
[0099] Steering angle: The angle at which a vehicle turns at an intersection. The steering angle depends on the angle between the road the vehicle plans to turn to and its original direction. Example values: 90 degrees (right turn), -90 degrees (left turn);
[0100] Turning time: The time required for the vehicle to start turning and complete the turn. Turning time is affected by driver skills, vehicle performance and road conditions. Example value: 2 seconds;
[0101] Behavior of other traffic participants: The behavior of other vehicles or pedestrians interacting with the vehicle. The behavior of other traffic participants needs to take into account the speed, direction and distance of other vehicles, as well as whether pedestrians are on the zebra crossing. Example value: Another car is at a speed of 30 km / h, coming from the right, and is 50 meters away.
[0102] like Figure 6As shown, in an optional embodiment of the present disclosure, in step 104, performing a parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes may include:
[0103] Step 1041, generating initial combination values of parameters according to the parameters in the scene parameter space file;
[0104] Step 1042, generating a test scenario file according to the parameter combination values and the basic scenario;
[0105] Step 1043, operating the test scenario file through the objective function to obtain the objective function value;
[0106] Step 1044 , searching for parameter combinations corresponding to the objective function values according to the conditions of the edge scenes, to obtain multiple edge scenes.
[0107] For example Figure 2 , Figure 3 As shown, in this embodiment, for a specific basic scenario, the key parameters determined in step 103, the parameter change mode and the value range are used as input for calculation.
[0108] Construct a heuristic search framework, including an optimization algorithm module and a scene recording module; the optimization algorithm module integrates various heuristic optimization algorithms, such as particle swarm optimization, genetic algorithm, differential evolution algorithm, simulated annealing algorithm, etc., and combines the automated test function, evaluation function, and cost function into an objective function, the result of which is used as the optimization target for the optimization algorithm;
[0109] The basic scenario file, scenario parameter space file and objective function threshold generated in the previous steps are input into the heuristic search framework. The optimization algorithm module generates the initial combination values of the parameters based on the scenario parameter space file, and generates the test scenario file based on the parameter combination values and the basic scenario file. The scenario recording module records the parameter value combination that meets the edge scenario requirements into the database according to the value of the simulation function.
[0110] The heuristic algorithm framework supports parallel calculation of multiple objective functions and parallel running of multiple optimization algorithms to efficiently obtain edge test scenarios that meet the requirements of the objective functions. This can improve operating efficiency on the one hand, and on the other hand, the parallel running of multiple optimization algorithms can make full use of the search logic of each algorithm to avoid a single algorithm falling into local search in a narrow space, thereby obtaining more and different types of edge scenarios.
[0111] like Figure 7 As shown, in an optional embodiment of the present disclosure, step 1043 may include:
[0112] Step 10431, testing the test scenario file through the target test function to obtain test data;
[0113] Step 10432, evaluating the test using the target evaluation function to obtain an evaluation index;
[0114] Step 10433, calculate the cost of the evaluation index through the target cost function to obtain the target function value.
[0115] In this embodiment, the evaluation function and the cost function are defined according to the setting of the edge scenario, as well as the threshold of the objective function that meets the requirements of the edge scenario. For example, the calculation method of the cost function is defined according to the test safety requirements, and the function value is defined as an edge test scenario if it is less than 10; ensure that the optimization goal of the optimization algorithm is consistent with the requirements of the edge scenario. For example, if the requirement of the edge scenario is that the objective function value is 10 lower, then the goal of the optimization algorithm is to find a parameter combination that minimizes the objective function.
[0116] The automated test function is responsible for performing simulation tests based on the scenario file (for example, using the autonomous driving simulation test software for testing), and passing the test data such as the vehicle trajectory to the evaluation function;
[0117] Specifically, the automated test function accepts the vehicle's driving parameters as input, including acceleration, steering speed, and steering angle. The automated test function then tests these parameters in a simulation environment, simulating the vehicle's driving under specific road conditions, such as slippery roads or congested traffic. Finally, the simulation results are returned, which may include the vehicle's average speed, the time required, and the distance to other vehicles or obstacles.
[0118] The evaluation function calculates various evaluation indicators based on the test data according to the preset evaluation indicators and calculation methods;
[0119] The cost function calculates a scalar value as the final value of the objective function based on the evaluation indicators and the requirements of the edge scenario. Here, for the sake of standardization, the objective function value range can be set to [0,100].
[0120] The three combined parts of the objective function should all support customization and replacement, such as using different simulation test software for simulation, setting different evaluation indicators, setting different cost target calculation methods, etc., to ensure the flexibility and robustness of the algorithm framework.
[0121] In an optional embodiment of the present disclosure, step 144 may include:
[0122] If the objective function value meets the conditions of the edge scenario, the parameter combination corresponding to the objective function value is recorded in the database, and the next parameter combination value is generated. Iterative calculation is performed based on the next parameter combination value until the number of parameter combination values in the parameter space file reaches the preset number of iterations, and multiple edge scenarios are obtained.
[0123] In this embodiment, the basic scenario file, scenario parameter space file and objective function threshold generated based on the previous steps are input into the heuristic search framework, the optimization algorithm module generates the initial combination value of the parameters based on the scenario parameter space file, generates the test scenario file based on the parameter combination value and the basic scenario file, and after the objective function is calculated (the intermediate steps include running the test scenario through the automated test function and obtaining the test data, the evaluation function generates the evaluation index based on the test data, and the cost function generates the objective function value based on the evaluation index), the return value is returned to the optimization algorithm, and the algorithm performs an intelligent search in the parameter space according to the return value, and generates the next parameter combination value, and performs a cyclic calculation;
[0124] At the same time, if the return value of the objective function meets the condition requirements of the edge scenario, the parameter combination is recorded in the database. In a specific embodiment, the initial conditions and parameters are:
[0125] Parameter space: speed (5-20km / h) and steering angle (-30° to 30°).
[0126] Initial parameter combination: speed = 10km / h, steering angle = 0°.
[0127] The optimization process includes:
[0128] Round 1:
[0129] Using the initial parameter combination, run the test scenario in the simulator.
[0130] Get test data, such as driving time, minimum distance to obstacles, etc. The evaluation function calculates evaluation indicators, such as driving efficiency and safety. The cost function generates an objective function value based on the evaluation indicators, such as a score. Return this score to the optimization algorithm.
[0131] Actions of the optimization algorithm: After receiving the score, the algorithm begins searching in the parameter space. Assume that the algorithm chooses particle swarm optimization (PSO). In PSO, each "particle" represents a parameter combination. The initial particle position may be randomly set in the parameter space, while the speed and steering angle are random. Based on the returned score, the algorithm updates the speed and position (i.e. parameter combination) of each particle. In this step, it is assumed that the algorithm infers that increasing the speed and increasing the steering angle may result in a better score.
[0132] Round 2: Re-test with a new parameter combination (eg speed = 12 km / h, steering angle = 10°).
[0133] Repeat the above evaluation, cost calculation and score return steps.
[0134] The optimization algorithm updates the parameter combination again. This process will continue to cycle until a termination condition is met, such as the score improvement is not obvious for several consecutive rounds, the predetermined maximum number of iterations is reached, or a parameter combination that satisfies the edge scenario is found. Throughout the process, the heuristic optimization algorithm will continuously search for possible optimal solutions in the parameter space, without the need to test every possible combination step by step, which greatly improves efficiency.
[0135] In an optional embodiment of the present disclosure, in step 1044, satisfying the condition requirements of the edge scenario includes:
[0136] The objective function value satisfies the preset convergence condition; or
[0137] The number of iterations for parameter combination values is equal to the preset maximum number of iterations.
[0138] In this embodiment, the heuristic search is terminated when the algorithm meets the convergence condition or the preset maximum number of iterations and calculations, and the recorded edge scene parameter combination is passed to the next step for use.
[0139] Specifically, scenario setting: suppose you want to find the best combination of speed and steering angle for a car in a specific road scenario to ensure that the car can travel fast while avoiding collisions with obstacles.
[0140] The optimization process includes:
[0141] Initialization conditions:
[0142] Parameter space: speed (5-20km / h) and steering angle (-30° to 30°). Initial parameter combination: speed = 10km / h, steering angle = 0°.
[0143] Maximum number of iterations: 100.
[0144] Convergence condition: The improvement of the objective function value does not exceed 0.5% in 10 consecutive iterations.
[0145] Heuristic search process:
[0146] Run the test in the simulator using the initial parameter combination; calculate the objective function value (score) based on the test data; return the score to the heuristic optimization algorithm; the optimization algorithm starts searching for a new parameter combination in the parameter space; retest using the new parameter combination.
[0147] Repeat the above evaluation, cost calculation and score return steps.
[0148] This process will continue to loop. Each loop will record the best parameter combination and the corresponding score. After each loop, it will check whether the convergence condition is met. If the score improvement does not exceed 0.5% in 10 consecutive iterations, it is considered to have converged; if the convergence condition is not met but the number of iterations has reached the preset maximum value (for example, 100 times), the iteration will stop.
[0149] Search termination: When the above convergence conditions are met or the maximum number of iterations is reached, the heuristic search terminates. At this point, the algorithm will record the best parameter combination obtained. This combination may be the best speed and steering angle for the car in a given road scenario.
[0150] For example, after 100 iterations, the algorithm found that the combination of a speed of 15 km / h and a steering angle of -10° can complete the driving in the shortest time while ensuring a safe distance. This parameter combination will be recorded as part of the edge scenario and passed to the next step for use.
[0151] like Figure 8 As shown, in an optional embodiment of the present disclosure, in step 104, a parameter combination search is performed on the parameters in the scene parameter space file to obtain multiple edge scenes, and the following further includes:
[0152] Step 1045, classifying the parameter combination values corresponding to the edge scenes to obtain at least one type of edge scenes;
[0153] Step 1046, perform parameter combination deduplication screening on each type of edge scene to obtain a target edge scene.
[0154] In this embodiment, after the parameter combination search, there are many similar and repeated parameter combinations in the edge scenes, so the clustering method is used to further classify and filter the parameter combinations stored in the heuristic search step;
[0155] After clustering the parameters, representative parameter combinations are selected from each type of parameter combination to construct edge scenarios and added to the scenario library.
[0156] Use a weighted algorithm to classify the parameter combinations stored in the previous step. The key hyperparameter of weighting is the number of categories k to be classified. The following formula is used to determine k to improve the classification effect:
[0157]
[0158]
[0159] Among them, X is the data object; C iis the i-th cluster center; m is the dimension of the data object; X j , C ij For X and C i The j-th attribute value of ; the size of SSE indicates the quality of the clustering result; k is the number of clusters.
[0160] The specific steps are as follows:
[0161] (1) Randomly rotate k samples as the mean vector of the cluster in question;
[0162] (2) Divide each sample data set into the cluster with the closest distance;
[0163] (3) Update the mean vector of the cluster according to the cluster to which each sample belongs;
[0164] (4) Repeat steps (2) and (3). When the set number of iterations is reached or the mean vector of the cluster no longer changes, the clustering algorithm results are output.
[0165] Set the possible value range of k, for example [2, number of parameter combinations / 2], run the weighted algorithm for each k, and calculate the sum of squared distances a from each point in the data to its cluster center; from the minimum value of the value range +1 to the maximum value of the value range, calculate the sum of squared distances a1 corresponding to each k and the sum of squared distances a2 corresponding to k-1, calculate b=a2-a1 as the clustering evaluation index, and select the k with the largest b value as the classification parameter for classification.
[0166] Multiple edge scenes obtained by searching the basic scene and the scene parameter space file according to the objective function through a weighted algorithm are placed in the sample graph for similarity comparison;
[0167] According to the distance between multiple edge scenes, the sample set is divided into clusters. According to the similarity between the data object and the cluster, the position of the cluster center is continuously updated to continuously reduce the sum of square errors of the clusters. When the sum of square errors no longer changes or converges, clustering ends and the final target edge scene is obtained.
[0168] After clustering the parameters, representative parameter combinations are selected from each type of parameter combination to construct edge scenarios and added to the scenario library.
[0169] like Figure 4 As shown, the embodiment of the present disclosure provides an autonomous driving edge simulation test scenario generating device 400, comprising:
[0170] The acquisition module 401 is used to collect scene data of the autonomous driving edge simulation test;
[0171] Processing module 402 is used to generate a basic scene based on the scene data of the autonomous driving edge simulation test; determine the scene parameter space file based on the key parameters in the basic scene; and perform parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes.
[0172] Optionally, when the processing module 402 generates a basic scenario according to the scenario data of the autonomous driving edge simulation test, it includes:
[0173] The first processing submodule is used to obtain vehicle dynamic simulation data through the scene data of the autonomous driving edge simulation test; and generate a basic scene based on the vehicle dynamic simulation data.
[0174] Optionally, when the processing module 402 determines the scene parameter space file according to the key parameters in the basic scene, it includes:
[0175] The second processing submodule is used to extract the preset key parameters of the basic scene; and store the name, position, change method and value range of the preset key parameters as a scene parameter space file.
[0176] Optionally, the processing module 402 performs a parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes, including:
[0177] The third processing submodule is used to generate initial combination values of parameters according to the parameters in the scene parameter space file; generate a test scenario file according to the parameter combination values and the basic scenario; operate the test scenario file through the objective function to obtain the objective function value; according to the conditions of the edge scene, search for the parameter combination corresponding to the objective function value to obtain multiple edge scenes.
[0178] Optionally, the test scenario file is operated by the objective function to obtain the objective function value including:
[0179] Test the test scene file through the target test function to obtain test data;
[0180] Evaluate the test through the objective evaluation function to obtain the evaluation index;
[0181] The cost of the evaluation index is calculated through the target cost function to obtain the target function value.
[0182] Optionally, according to the conditions of the edge scene, a parameter combination corresponding to the objective function value is searched to obtain multiple edge scenes, including:
[0183] According to the conditions that the objective function value satisfies the edge scenario, the parameter combination corresponding to the objective function value is recorded in the database, and the next parameter combination value is generated. The iterative calculation is performed based on the next parameter combination value until the number of parameter combination values in the parameter space file reaches the preset number of iterations, and multiple edge scenarios are obtained.
[0184] Optionally, the processing module 402 is further configured to:
[0185] The parameter combination values corresponding to the edge scenes are classified to obtain at least one type of edge scenes; and the parameter combinations of each type of edge scenes are deduplicated and screened to obtain the target edge scenes.
[0186] It should be noted that: the autonomous driving edge simulation test scenario generation device provided in the above embodiment only uses the division of the above functional modules as an example when processing. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the data manifold instance determination device provided in the above embodiment and the data manifold instance determination method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0187] The autonomous driving edge simulation test scenario generating device in the disclosed embodiment may be a virtual device, or a component, integrated circuit or chip in a server or terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the disclosed embodiment.
[0188] The autonomous driving edge simulation test scenario generating device in the embodiment of the present disclosure may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present disclosure.
[0189] The autonomous driving edge simulation test scenario generation device in the disclosed embodiment can achieve Figures 1 to 8To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0190] like Figure 5 As shown, the embodiment of the present disclosure also provides a computing device 500, including a processor 501, a memory 502, a program or instruction stored in the memory 502 and executable on the processor 501, and when the program or instruction is executed by the processor 501, each process of the semantic segmentation processing method embodiment of the above data is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. It should be noted that the computing device in the embodiment of the present disclosure includes the above-mentioned mobile electronic device and non-mobile electronic device.
[0191] Figure 6 A schematic diagram of the hardware structure of a computing device for implementing an embodiment of the present disclosure.
[0192] The computing device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 606, a memory 609, and a processor 610.
[0193] Those skilled in the art will appreciate that the computing device 600 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The computing device structure shown in the figure does not constitute a limitation on the computing device. The computing device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0194] It should be understood that in the embodiment of the present disclosure, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 610.
[0195] The method, device and equipment for generating edge simulation test scenarios for autonomous driving in the above-mentioned embodiments of the present disclosure are full-process technical solutions for extracting basic scenarios, selecting key parameters and determining change modes, heuristic parallel search, cluster analysis and obtaining edge test scenarios based on various original information such as collected data. According to this solution, a full set of tool chains can be constructed to directly establish test scenarios based on original information such as collected data, regulations or natural language descriptions, efficiently search and obtain edge test scenarios, and the original data types facing them are wide and practical.
[0196] Using a series of standard formats such as autonomous driving scenario simulation data and formatted map data as basic scenarios and edge test scenario formats, it has wide applicability and a good ecosystem, and can extract and convert key behavior information into scenario data to ensure efficient construction of basic scenarios;
[0197] The constructed heuristic search framework can support multi-threaded parallel computing, integration of multiple optimization algorithms and customization of objective functions. It can be integrated into different simulation test platforms to search for edge scenarios for multiple optimization objectives. At the same time, the integration of multiple algorithms can avoid the monotony of the optimization logic and local convergence problems of a single algorithm, and can efficiently obtain edge test scenarios that meet the requirements of the objective function.
[0198] The above are preferred embodiments of the present disclosure. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications should also be regarded as the protection scope of the present disclosure.
Claims
1. A method for generating an autonomous driving edge simulation test scenario, characterized in that: include: Collect scenario data for autonomous driving edge simulation testing; Generate basic scenarios based on scenario data from autonomous driving edge simulation tests; Determine a scene parameter space file according to key parameters in the basic scene; Performing parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes; Classifying and screening the multiple edge scenes to obtain a target edge scene; The multiple edge scenes are classified and screened to obtain a target edge scene, including: Classifying the parameter combination values corresponding to the edge scenes to obtain at least one type of edge scenes; Perform parameter combination deduplication screening on each type of edge scene to obtain the target edge scene; Among them, a weighted algorithm is used to classify the parameter combination values. The key hyperparameter of weighting is the number of classification categories k, which is determined by the following formula: Among them, X is the data object; C i is the i-th cluster center; m is the dimension of the data object; X j , C ij For X and C i The j-th attribute value of ; the size of SSE indicates the quality of the clustering result; k is the number of clusters.
2. The method for generating an autonomous driving edge simulation test scenario according to claim 1, characterized in that: Generate basic scenarios based on the scenario data of the autonomous driving edge simulation test, including: Obtain vehicle dynamic simulation data through the scenario data of autonomous driving edge simulation test; A basic scenario is generated according to the vehicle dynamics simulation data.
3. The method for generating an autonomous driving edge simulation test scenario according to claim 2, characterized in that: According to the key parameters in the basic scene, the scene parameter space file is determined, including: Extract preset key parameters of basic scenes; At least one of the name, position, change mode and value range of the preset key parameter is stored as a scene parameter space file.
4. The method for generating an autonomous driving edge simulation test scenario according to claim 3, characterized in that: Perform parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes, including: Generate initial combination values of parameters according to the parameters in the scene parameter space file; Generate a test scenario file according to the parameter combination values and the basic scenario; The test scenario file is operated by the objective function to obtain the objective function value; According to the conditions of the edge scenes, the parameter combinations corresponding to the objective function values are searched to obtain multiple edge scenes.
5. The method for generating an autonomous driving edge simulation test scenario according to claim 4, characterized in that: The test scenario file is operated by the objective function to obtain the objective function value, including: Testing the test scenario file through a target test function to obtain test data; Evaluate the test data using a target evaluation function to obtain an evaluation index; The evaluation index is cost calculated by the target cost function to obtain the target function value.
6. The method for generating an autonomous driving edge simulation test scenario according to claim 4, characterized in that: According to the conditions of the edge scene, the parameter combination corresponding to the objective function value is searched to obtain multiple edge scenes, including: If the objective function value meets the conditions of the edge scenario, the parameter combination corresponding to the objective function value is recorded in the database, and the next parameter combination value is generated, and iterative calculation is performed based on the next parameter combination value until the number of parameter combination values in the parameter space file reaches a preset number of iterations, thereby obtaining multiple edge scenarios.
7. The method for generating an autonomous driving edge simulation test scenario according to any one of claims 1 to 6, characterized in that: Also includes: The target edge scene is added to an edge scene database.
8. An autonomous driving edge simulation test scenario generation device, characterized in that: include: The acquisition module is used to collect scene data for autonomous driving edge simulation testing; A processing module, used to generate basic scenarios based on scenario data of autonomous driving edge simulation tests; Determine the scene parameter space file based on the key parameters in the basic scene; Perform parameter combination search on the parameters in the scene parameter space file to obtain multiple edge scenes; Classifying and screening the multiple edge scenes to obtain a target edge scene; The multiple edge scenes are classified and screened to obtain a target edge scene, including: Classifying the parameter combination values corresponding to the edge scenes to obtain at least one type of edge scenes; Perform parameter combination deduplication screening on each type of edge scene to obtain the target edge scene; Among them, a weighted algorithm is used to classify the parameter combination values. The key hyperparameter of weighting is the number of classification categories k, which is determined by the following formula: Among them, X is the data object; C i is the i-th cluster center; m is the dimension of the data object; X j , C ij For X and C i The j-th attribute value of ; the size of SSE indicates the quality of the clustering result; k is the number of clusters.
9. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Intelligent driving vehicle autonomous ability test method based on scene confrontation
CN113158560A
