Automatic driving simulation test scene generation method and system and medium
Through the automatic driving simulation test scene generation method based on snow characteristics, test scenarios containing snow characteristics are automatically generated, and genetic algorithms and simulation platforms are used to conduct safety tests, which solves the challenge of existing technology being unable to effectively simulate snow environments. , improving the safety and reliability of the autonomous driving system.
Patent Information
- Application Number
- CN202411162675.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing autonomous driving simulation technology ignores snow weather conditions when generating test scenarios, and cannot effectively simulate the challenges and risks that autonomous vehicles may encounter in snowy environments, making it difficult to improve the safety and reliability of the autonomous driving system.
An automatic driving simulation test scene generation method based on snow characteristics is adopted. Through the steps of test scene initialization, population initialization, selection, crossover, mutation and test execution, test scenarios containing snow characteristics are automatically generated, using genetic algorithms and simulation platforms. Safety tests cover various situations that may be encountered when driving in snow.
The generated snow simulation test scenarios can comprehensively cover various snow driving situations, improve the safety and reliability of the autonomous driving system, and improve driving capabilities in snow environments.
Smart Images

Figure CN118672931A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a method, system and medium for generating an autonomous driving simulation test scene based on snowy weather characteristics. Background Art
[0002] With the rapid development of autonomous driving technology, ensuring that autonomous vehicles can operate safely and reliably in various complex environments and weather conditions has become an important topic in research and engineering practice. Among them, driving capabilities in snowy weather conditions are particularly challenging because they significantly change the road environment and sensor performance.
[0003] The current autonomous driving simulation technologies tend to focus on conventional or idealized environmental conditions when generating various test scenarios, while ignoring the generation of snowy test scenarios. When constructing test scenarios, these technologies do not take into account snowy weather conditions such as snowfall rate, visibility, snow thickness, and road conditions. This means that existing scenario generation technologies are difficult to generate snowy test scenario use cases and are unable to simulate a series of specific challenges and potential risks that may be encountered in snowy environments. Summary of the invention
[0004] The main purpose of the present invention is to propose a method, system and medium for generating an autonomous driving simulation test scenario based on snowy day characteristics, aiming to automatically generate a test scenario containing snowy day characteristics, comprehensively covering various situations that may be encountered when driving in snowy days, and using the generated snowy day simulation test scenario to conduct safety tests on the autonomous driving system to improve the safety and reliability of autonomous driving.
[0005] To achieve the above object, the present invention provides a method for generating an autonomous driving simulation test scene based on snowy weather characteristics, the method comprising: Step S10, test scenario initialization: select parameters for constructing the test scenario and define their value ranges; Step S20, initializing the population: determining the population size, and using Gaussian distribution as a randomization strategy to randomly generate individuals; Step S30, selecting a scenario: selecting an individual with better performance from the current population as a parent; Step S40, crossover scenario: single-point crossover is adopted, a crossover point is randomly selected, the chromosomes of the two parent individuals are separated at this point, and then the two parts are exchanged to generate two offspring and generate new individuals; Step S50, mutation scenario: performing mutation operation on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space; Step S60, executing the test: importing the test scenario into the simulation platform for testing, calculating the fitness value and updating the population according to the test results.
[0006] A further technical solution of the present invention is that the step S50 performs directed changes to certain gene points of the individual with probability p.
[0007] A further technical solution of the present invention is that step S50 includes: reducing the initial distance between the NPC vehicle and the autonomous driving vehicle under test, and reducing the driving speed of the NPC vehicle; modifying the NPC vehicle model to a large vehicle or a small vehicle; modifying weather parameters; modifying the test section, and modifying the ordinary section to a complex section.
[0008] A further technical solution of the present invention is that a roulette wheel selection strategy is adopted to select a scene in step S30.
[0009] A further technical solution of the present invention is that step S30 comprises: First, calculate the sum of the fitness values of all individuals in the population. For each individual, calculate the proportion of its fitness value in the total fitness value as the size of the interval corresponding to the individual on the roulette wheel. Then select a random number. Finally, according to the interval into which the selected random number falls, select the corresponding individual as the parent.
[0010] A further technical solution of the present invention is that step S60 comprises: Step S601, analyzing the test results to determine whether an accident has occurred; Step S602, if no accident occurs, calculate the fitness value; Step S603, updating the population, copying one or more optimal individuals in the current population to the next generation population.
[0011] A further technical solution of the present invention is that step S602 comprises: Defining factors related to accident risk, wherein the factors related to accident risk include a minimum relative distance between the tested vehicle and the NPC vehicle, a number of vehicle deviations, and a number of traffic rule violations; According to the test objectives, different weights are set for the factors related to the accident risk; The fitness value is calculated according to the factors and weights related to the accident risk, wherein the calculation formula is: Fitness=w1⋅(MaxDist−minDist)+w2⋅(−laneDeviationCount)+w3⋅(−trafficRuleViolationCount), Among them, w1, w2, w3 are the weights set for the minimum relative distance, the number of lane deviations, and the number of traffic rule violations respectively; minDist is the minimum relative distance between the measured vehicle and the NPC vehicle; laneDeviationCount is the number of lane deviations; trafficRuleViolationCount is the number of traffic rule violations; MaxDist is a preset maximum safety distance.
[0012] A further technical solution of the present invention is that after step S601, the following steps are further included: Step S604: If an accident occurs, a safety problem in the autonomous driving system in the simulation platform is found and the test is terminated.
[0013] To achieve the above-mentioned objectives, the present invention also proposes a system for generating an autonomous driving simulation test scene based on snowy day characteristics, the system comprising a memory, a processor, and an autonomous driving simulation test scene generation program based on snowy day characteristics stored on the processor, the autonomous driving simulation test scene generation program based on snowy day characteristics executing the steps of the method described above when run by the processor.
[0014] To achieve the above-mentioned objectives, the present invention also proposes a computer-readable storage medium, which stores an autonomous driving simulation test scenario generation program based on snowy day characteristics, and the autonomous driving simulation test scenario generation program based on snowy day characteristics executes the steps of the method described above when run by a processor.
[0015] The beneficial effects of the method, system and medium for generating a simulation test scene for autonomous driving based on snowy weather characteristics of the present invention are: The present invention adopts the above-mentioned technical scheme: test scenario initialization: select parameters for constructing the test scenario and define their value ranges; initialize the population: determine the population size, and use Gaussian distribution as a randomization strategy to randomly generate individuals; select the scenario: select individuals with better performance from the current population as parents; crossover scenario: use single-point crossover, randomly select a crossover point, separate the chromosomes of two parent individuals at this point, and then exchange the two parts to generate two offspring, and generate new individuals; mutation scenario: perform mutation operations on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space; execute the test: import the test scenario into the simulation platform for testing, calculate the fitness value according to the test results and update the population, automatically generate a test scenario containing snowy characteristics, and comprehensively cover various situations that may be encountered when driving in snowy weather. Using the generated snowy weather simulation test scenario, the safety test of the automatic driving system can be carried out to improve the safety and reliability of the automatic driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0017] Figure 1 It is a flowchart of a first embodiment of a method for generating a simulation test scene for autonomous driving based on snowy weather characteristics of the present invention; Figure 2 It is a flowchart of the mutation scenario; Figure 3 It is a flow chart of the second embodiment of the method for generating an autonomous driving simulation test scene based on snowy weather characteristics of the present invention.
[0018] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] The present invention provides a method for generating a simulation test scenario for autonomous driving. The method can automatically generate a test scenario containing snowy features based on snowy features, including different levels of snowfall, visibility changes, road conditions, etc., to fully cover various situations that may be encountered when driving in snowy weather. Then, the generated snowy simulation test scenario is used to perform a safety test on the autonomous driving system.
[0021] Please refer to Figure 1 The first embodiment of the method for generating an autonomous driving simulation test scene based on snowy weather characteristics of the present invention comprises the following steps: Step S10, test scenario initialization: select parameters for constructing the test scenario and define their value ranges.
[0022] Test scenario initialization is the first step of the method for generating autonomous driving simulation test scenarios based on snowy weather characteristics of the present invention. In this step, it is first necessary to clarify which parameters are used to construct the scenario, and then define their value ranges to ensure the physical meaning of these parameter symbols.
[0023] First, we need to identify the parameters that are critical to scenario construction and directly affect the test results. In the simulation test of autonomous driving, it may be necessary to consider parameters such as road type (city streets, highways, country roads), traffic density (free flow, light congestion, severe congestion), weather conditions (clear, rainy, foggy, snowy), time (day, dusk, night), lighting conditions, surrounding environment (stationary obstacles, dynamic obstacles such as pedestrians and animals), and the vehicle's own state (speed, acceleration, steering angle). The present invention refers to the 6-layer description model of the scenario proposed in the paper "A framework for definition of logical scenarios for safety assurance of automated driving", as shown in Table 1.
[0024] Table 1 6-layer scenario description model Tiers name describe L1 Tested vehicle Driving mission of the tested vehicle L2 Road layer Road topology such as long straight roads and intersections L3 Transportation infrastructure layer Road facilities such as roadblocks and obstacles L4 Traffic participant layer Other road users L5 Environmental Layer Weather, wind speed, temperature, etc. L6 Information Layer V2X information, high-precision maps, etc. According to the 6-layer scenario description model in Table 1, we first define the test scenario: the test scenario S is composed of a tuple<A, R, O, P, E> constituted of which: A is a finite, non-empty set of self-driving cars; R is a finite set of road topologies that specifies the road segments to be tested; O is a finite set of obstacles, which specifies the types and locations of obstacles in the test; P is a finite set of other traffic participants, which specifies the driving tasks of other traffic participants; E is a finite set of environmental parameters.
[0025] Once these core parameters are determined, the next step is to define their reasonable range, that is, the parameter space. This requires the test designer to set the minimum and maximum values of each parameter based on real-world statistics, theoretical limits, and the purpose of the specific test. For example, snowfall may range from zero to 10 cm per hour, and visibility from completely clear to less than 10 meters. At the same time, the interdependencies between parameters must be considered to ensure the consistency and authenticity of the scene. For example, the slipperiness of the road surface should match the precipitation type and road surface temperature.
[0026] Finally, setting the initial state of these parameters means giving each parameter a starting value that should be within its defined range and preferably reflect the typical or extreme characteristics of the scenario to ensure the diversity and challenge of the test scenario. For example, for a snowy test scenario, the initial state may be set to moderate snowfall, low visibility, and a road friction coefficient close to freezing level, so as to immediately test the perception, decision-making, and control capabilities of the autonomous driving system.
[0027] Step S20, initializing the population: determining the population size, and using Gaussian distribution as a randomization strategy to randomly generate individuals.
[0028] In step S20, two operations are involved, namely, determining the population size and randomly generating individuals.
[0029] First, it is necessary to determine the size of the population, that is, the number of individuals in the population. The selection of population size is a trade-off: a larger population can improve the diversity of solutions and the global search capability of the algorithm, but it also increases the computational cost; while a smaller population can save computing resources, it may limit the breadth and depth of the algorithm's exploration of the solution space, and it is easy to fall into local optimality. According to empirical rules, the present invention sets the size of the population to 10, that is, there are 10 individuals in 1 population (each individual corresponds to a specific test scenario). Each individual contains several genes, each gene corresponds to a parameter in the scenario, and the parameters are randomly initialized.
[0030] Next, individuals are randomly generated. This usually means randomly selecting values within the allowable range of each parameter to construct each scenario individual. In order to ensure the diversity of the population and avoid all individuals being too similar in the initial stage, the present invention uses Gaussian distribution as a randomization strategy to generate parameter values. In this way, the initialized population can cover different areas of the solution space, providing a rich starting point for subsequent genetic operations.
[0031] Step S30, selecting a scenario: selecting individuals with better performance from the current population as parents.
[0032] Individuals with better performance (i.e., test scenarios with higher fitness values) are selected from the current population so that they can have more opportunities to participate in the evolution of future generations.
[0033] This embodiment uses a roulette wheel selection strategy in the step of selecting a scene. First, the sum of the fitness values of all individuals in the population is calculated. Secondly, for each individual, the proportion of its fitness value in the total fitness value is calculated as the size of the interval corresponding to the individual on the roulette wheel. Then a random number is selected. Finally, according to the interval into which the selected random number falls, the corresponding individual is selected as the parent. The roulette wheel selection determines the selection probability based on the fitness ratio of the individual, which means that individuals with higher fitness have a greater chance of being selected.
[0034] Step S40, crossover scenario: single-point crossover is adopted, a crossover point is randomly selected, the chromosomes of the two parent individuals are separated at this point, and then the two parts are exchanged to generate two offspring and a new individual.
[0035] In this embodiment, the crossover operation simulates gene recombination in biological inheritance and is used to generate new individuals. In this embodiment, a single-point crossover is used, a crossover point is randomly selected, the chromosomes of two parent individuals are separated at this point, and then the two parts are exchanged to generate two offspring.
[0036] Step S50, mutation scenario: performing mutation operations on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space.
[0037] In step S50, certain gene points of the individual are subjected to directed changes with probability p.
[0038] The step S50 includes: reducing the initial distance between the NPC vehicle and the autonomous driving vehicle under test, and reducing the driving speed of the NPC vehicle; modifying the NPC vehicle model to a large vehicle or a small vehicle; modifying weather parameters; and modifying the test section, modifying the ordinary section to a complex section.
[0039] After the crossover operation, this embodiment performs a mutation operation on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space. The mutation operation makes directional changes to certain gene points of the individuals with probability p, such as slightly adjusting the vehicle speed, changing the probability of pedestrians appearing, etc.
[0040] The present invention generates some test scenarios that trigger autonomous driving safety issues in advance through a random search method, and then extracts four major characteristics that are prone to traffic accidents in snowy weather based on these scenarios: Feature 1: When the NPC is close to the vehicle under test and the NPC is slower than the vehicle under test, we found that traffic accidents are prone to occur in this situation. Because when the distance is short, the self-driving car needs to make accurate responses in a short time to avoid collisions. However, in snowy conditions, visibility is low and the perception module of the self-driving system is greatly affected, resulting in insufficient response time, which in turn increases the risk of accidents.
[0041] Feature 2: When the NPC vehicle type is a large vehicle (such as an ambulance, fire truck, etc.) or a small vehicle (such as a motorcycle, bicycle, etc.), autonomous vehicles usually have difficulty detecting these vehicles in snowy environments, which may lead to traffic accidents.
[0042] Feature 3: Parameters such as snowfall rate, sun altitude angle, and road surface water will affect the working performance of the autonomous vehicle perception module. High snowfall rate may cause the perception performance of the lidar sensor to decline. Low sun altitude angle may cause insufficient light and obstructed vision. Road surface water will change the reflective characteristics of the road surface and affect the camera sensor's detection accuracy of road boundaries and obstacles.
[0043] Feature 4: We found that the possibility of traffic accidents involving self-driving cars increases on special roads such as uphill, downhill, and tunnels. In these special roads, the system is prone to errors in detecting obstacles or other vehicles due to the influence of the terrain.
[0044] In order to generate safety-critical scenarios more efficiently, the present invention adds these four features to the step of mutating genes to guide the optimization of scenarios. Figure 2 Specifically, we modify the corresponding gene points with probability p: appropriately reduce the initial distance between the NPC vehicle and the tested autonomous vehicle, and reduce the driving speed of the NPC; change the NPC vehicle model to a large or small vehicle; modify weather parameters such as snowfall rate, solar altitude angle, and road surface water; modify the test section from an ordinary road to a complex section such as uphill, downhill, or tunnel, so as to evaluate the performance of the autonomous driving system under various terrain conditions.
[0045] Step S60, executing the test: importing the test scenario into the simulation platform for testing, calculating the fitness value and updating the population according to the test results.
[0046] Once the test scenarios are ready, they are imported into the simulation platform. The simulation platform can provide a high-fidelity virtual environment, including roads, vehicles, pedestrians, traffic lights, and other factors that may affect driving. In the simulation environment, the decision-making algorithm, sensor data processing, control logic, and actuator response of the autonomous vehicle will be strictly tested.
[0047] Please refer to Figure 3 ,based on Figure 1 The first embodiment shown in the figure proposes a second embodiment of the method for generating a simulation test scene for autonomous driving based on snowy weather characteristics of the present invention. This embodiment is similar to Figure 1 The difference from the first embodiment shown is that, in this embodiment, step S60 includes: Step S601, analyzing the test results to determine whether an accident occurs.
[0048] Step S602: If no accident occurs, calculate the fitness value.
[0049] The fitness value is an indicator for measuring the quality of individuals (candidate solutions) in the genetic algorithm. This embodiment designs a fitness function that calculates the possibility of potential traffic accidents based on the records of the tested autonomous driving vehicle during the test process, thereby measuring the quality of the test scenario.
[0050] The step S602 includes: Step S6021, defining factors related to accident risk, wherein the factors related to accident risk include the minimum relative distance between the tested vehicle and the NPC vehicle, the number of vehicle deviations, and the number of traffic rule violations.
[0051] This embodiment first defines a series of factors related to accident risks, including: a. Minimum relative distance between the tested vehicle and the NPC vehicle: During the test, we will record the minimum relative distance between the tested vehicle and surrounding objects (including other vehicles, pedestrians, and obstacles). Test scenarios with smaller relative distances may pose higher risks because when the relative distance is small, the time left for the autonomous driving system to react is very limited and the risk of collision will also be greatly increased.
[0052] b. Number of lane departures: During the test, the number of times the vehicle deviates from its lane will be counted, including deviations when driving on a straight road, deviations when driving on a curve, changing lanes without a signal, driving in the opposite direction, etc.
[0053] c. Number of traffic rule violations: During the test, the number of traffic rule violations by the tested vehicle will be counted, such as running red lights, speeding, and not following signs and markings.
[0054] This embodiment adds the characteristics of the snow accident scene to the mutation process, which can improve the test efficiency.
[0055] Step S6022: different weights are set for the factors related to the accident risk according to the test objectives.
[0056] After defining the factors related to accident risk, different weights need to be set according to these accident risk-related factors. Assign weights to each indicator according to the test objectives. For example, if you want to find potential collision problems in the autonomous driving system, you need to increase the weight of the indicator "the minimum relative distance between the tested vehicle and the NPC vehicle" as much as possible, and reduce the weights of "number of lane departures" and "number of traffic rule violations". In this embodiment, the weights of these three indicators are the same.
[0057] Step S6023, a linear function is used to calculate the fitness value according to the factors and weights related to the accident risk, wherein the calculation formula is: Fitness=w1⋅(MaxDist−minDist)+w2⋅(−laneDeviationCount)+w3⋅(−trafficRuleViolationCount).
[0058] Among them, w1, w2, w3 are the weights set for the minimum relative distance, the number of lane deviations, and the number of traffic rule violations respectively; minDist is the minimum relative distance between the measured vehicle and the NPC vehicle; laneDeviationCount is the number of lane deviations; trafficRuleViolationCount is the number of traffic rule violations; MaxDist is a preset maximum safety distance.
[0059] Step S603, updating the population, copying one or more optimal individuals in the current population to the next generation population.
[0060] At the end of each iteration, one or more optimal individuals (elite individuals with higher fitness values) in the current population are directly copied to the next generation population without performing any genetic operations (such as crossover and mutation). The purpose of this is to ensure that the currently found best solution will not be lost during the iteration process, thereby increasing the possibility that the algorithm will eventually find the global optimal solution.
[0061] In this embodiment, after step S601, the following steps are further included: Step S604: If an accident occurs, a safety problem in the autonomous driving system in the simulation platform is found and the test is terminated.
[0062] In this embodiment, if a traffic accident occurs, the safety problem of the autonomous driving system is found and the test is terminated. If the autonomous driving car successfully avoids all preset traffic accidents during the test, it means that the current system configuration performs well under the test conditions. But this does not mean the end of the testing process. Next, more complex scenario tests are needed, gradually increasing the difficulty to further verify the stability and reliability of the autonomous driving system.
[0063] Each step involved in the method for generating an autonomous driving simulation test scenario based on snowy weather characteristics of the present invention will be performed in a loop, and each iteration is intended to continuously improve the quality of the test scenario, and the test can be stopped until a safety problem in the tested autonomous driving system is found.
[0064] The beneficial effects of the method for generating an autonomous driving simulation test scene based on snowy weather characteristics of the present invention are: The present invention adopts the above-mentioned technical scheme: test scenario initialization: select parameters for constructing the test scenario and define their value ranges; initialize the population: determine the population size, and use Gaussian distribution as a randomization strategy to randomly generate individuals; select the scenario: select individuals with better performance from the current population as parents; crossover scenario: use single-point crossover, randomly select a crossover point, separate the chromosomes of two parent individuals at this point, and then exchange the two parts to generate two offspring, and generate new individuals; mutation scenario: perform mutation operations on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space; execute the test: import the test scenario into the simulation platform for testing, calculate the fitness value according to the test results and update the population, automatically generate a test scenario containing snowy characteristics, and comprehensively cover various situations that may be encountered when driving in snowy weather. Using the generated snowy weather simulation test scenario, the safety test of the automatic driving system can be carried out to improve the safety and reliability of the automatic driving.
[0065] To achieve the above-mentioned objectives, the present invention also proposes a system for generating an autonomous driving simulation test scene based on snowy day characteristics, the system comprising a memory, a processor, and an autonomous driving simulation test scene generation program based on snowy day characteristics stored on the processor, the autonomous driving simulation test scene generation program based on snowy day characteristics executing the steps of the method described above when run by the processor, which will not be repeated here.
[0066] To achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, which stores an autonomous driving simulation test scenario generation program based on snowy day characteristics. When the autonomous driving simulation test scenario generation program based on snowy day characteristics is run by a processor, the steps of the method described above are executed, which will not be repeated here.
[0067] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A method for generating an autonomous driving simulation test scenario, characterized in that: The method is based on snowy weather characteristics and includes: Step S10, test scenario initialization: select parameters for constructing the test scenario and define their value ranges; Step S20, initializing the population: determining the population size, and using Gaussian distribution as a randomization strategy to randomly generate individuals; Step S30, selecting a scenario: selecting an individual with better performance from the current population as a parent; Step S40, crossover scenario: single-point crossover is adopted, a crossover point is randomly selected, the chromosomes of the two parent individuals are separated at this point, and then the two parts are exchanged to generate two offspring and generate new individuals; Step S50, mutation scenario: performing mutation operation on the newly generated offspring individuals to increase the diversity of the population and the coverage of the search space; Step S60, executing the test: importing the test scenario into the simulation platform for testing, calculating the fitness value and updating the population according to the test results.
2. The method for generating an autonomous driving simulation test scenario according to claim 1, characterized in that: The step S50 performs directed changes on certain gene points of the individual with probability p.
3. The method for generating an autonomous driving simulation test scenario according to claim 2, characterized in that: The step S50 includes: reducing the initial distance between the NPC vehicle and the autonomous driving vehicle under test, and reducing the driving speed of the NPC vehicle; modifying the NPC vehicle model to a large vehicle or a small vehicle; modifying weather parameters; and modifying the test section, modifying the ordinary section to a complex section.
4. The method for generating an autonomous driving simulation test scenario according to claim 1, characterized in that: In step S30, a roulette wheel selection strategy is adopted to select a scene.
5. The method for generating an autonomous driving simulation test scenario according to claim 4, characterized in that: The step S30 comprises: First, calculate the sum of the fitness values of all individuals in the population. For each individual, calculate the proportion of its fitness value in the total fitness value as the size of the interval corresponding to the individual on the roulette wheel. Then select a random number. Finally, according to the interval into which the selected random number falls, select the corresponding individual as the parent.
6. The method for generating an autonomous driving simulation test scenario according to claim 1, characterized in that: The step S60 comprises: Step S601, analyzing the test results to determine whether an accident has occurred; Step S602, if no accident occurs, calculate the fitness value; Step S603, updating the population, copying one or more optimal individuals in the current population to the next generation population.
7. The method for generating an autonomous driving simulation test scenario according to claim 6, characterized in that: The step S602 includes: Defining factors related to accident risk, wherein the factors related to accident risk include a minimum relative distance between the tested vehicle and the NPC vehicle, a number of vehicle deviations, and a number of traffic rule violations; According to the test objectives, different weights are set for the factors related to the accident risk; The fitness value is calculated according to the factors and weights related to the accident risk, wherein the calculation formula is: Fitness=w1⋅(MaxDist−minDist)+w2⋅(−laneDeviationCount)+w3⋅(−trafficRuleViolationCount), Among them, w1, w2, w3 are the weights set for the minimum relative distance, the number of lane deviations, and the number of traffic rule violations respectively; minDist is the minimum relative distance between the measured vehicle and the NPC vehicle; laneDeviationCount is the number of lane deviations; trafficRuleViolationCount is the number of traffic rule violations; MaxDist is a preset maximum safety distance.
8. The method for generating an autonomous driving simulation test scenario according to claim 7, characterized in that: After step S601, the following steps are also included: Step S604: If an accident occurs, a safety problem in the autonomous driving system in the simulation platform is found and the test is terminated.
9. An autonomous driving simulation test scenario generation system, characterized in that: The system includes a memory, a processor, and an autonomous driving simulation test scenario generation program stored on the processor. When the autonomous driving simulation test scenario generation program is executed by the processor, the steps of the method described in any one of claims 1 to 8 are executed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an autonomous driving simulation test scenario generation program, and when the autonomous driving simulation test scenario generation program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are executed.
Citation Information
Patent Citations
Automatic driving test data generation method and system, electronic equipment and storage medium
CN115080450A
Automatic driving simulation scene library extension method based on GA (Genetic Algorithm)
CN116362119A
Method and device for automatic driving system, electronic equipment and medium
CN116685955A
Automatic driving scene test case generation method and device
CN117909249A
Cited By
A method for training and validating an autonomous driving algorithm based on a virtual simulation scenario
CN119206404B
Automatic driving simulation test scene generation method, system and device and storage medium
CN119808597A
