Automatic driving system simulation test method, system, equipment and storage medium

Through neural network model training and rapid screening of potential counterexamples, the problem of low efficiency in autonomous driving system simulation testing is solved, and scenario parameter combinations for unsafe behaviors are quickly discovered, significantly improving testing efficiency and effectiveness.

CN117762816BActive Publication Date: 2024-10-18ZHONGKE NANJING SOFTWARE TECH RES INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410024407.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2024-10-18
Estimated Expiration
2044-01-08

AI Technical Summary

Technical Problem

Existing autonomous driving system simulation testing methods are inefficient and difficult to quickly discover scene parameter combinations for unsafe behaviors, mainly due to the large traffic scene parameter space and high test time overhead.

Method used

Neural network model training is adopted, using randomly sampled parameter combinations and security indicators for model training, to quickly screen potential counterexamples, and verify whether the security indicators meet the requirements through model testing, saving testing time and computing power.

Benefits of technology

Significantly improves the efficiency of discovering unsafe behaviors, shortens test time, and improves the effectiveness of simulation tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117762816B_ABST
    Figure CN117762816B_ABST
Patent Text Reader

Abstract

The present invention provides a simulation test method, system, device and storage medium for an automatic driving system, the method comprising: determining scene parameters and safety indicators; randomly sampling scene parameters to form multiple sets of parameter value combinations; importing the parameter value combinations into a driving simulator to perform a driving task, and collecting safety indicators; establishing a neural network model, and training the neural network model with the collected data; inputting the formed multiple sets of parameter value combinations into the trained model, outputting approximate safety indicators, and checking whether they meet safety requirements: if not, taking the parameter value combinations to which they belong as potential counterexamples, putting them back into the driving simulator to obtain new safety indicators, and checking whether the new safety indicators meet safety requirements: if not, finding a scene parameter value combination that causes unsafe behavior in the system, and outputting it to inform the tester. The method can improve the efficiency of the testing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving testing, and in particular to an autonomous driving system simulation test method, system, device and storage medium. Background Art

[0002] With the rapid development of artificial intelligence, the research and development of autonomous driving systems (ADS) has become a research focus in the intersection of computer and automobile traffic in recent years. However, the autonomous driving system is a safety-critical system, that is, any component error in the system may cause the system to fail and cause major accidents and losses. Therefore, ensuring that the system can make correct decisions and drive safely in various traffic scenarios is a key challenge.

[0003] Testing is an important method to evaluate and improve the safety of autonomous driving systems. However, due to resource constraints, it is impractical to rely entirely on real vehicles to load autonomous driving systems for testing in the real world. To meet this challenge, simulation testing has become a key method for testing the safety of autonomous driving systems.

[0004] The main method of simulation testing is to set the traffic scene through scene parameters in the driving simulator (parameters include environmental parameters such as lighting, water accumulation, and motion parameters of other individuals in the environment such as speed and acceleration), and then run the autonomous driving system in the scene to complete a driving task, and finally monitor whether the relevant safety indicators (such as the minimum distance between the autonomous driving vehicle and other individuals) meet the safety requirements.

[0005] The purpose of simulation testing is to simulate driving under different parameter scenarios in order to discover the scenario parameters that cause the autonomous driving system to produce unsafe behavior (called counterexamples) and improve the system.

[0006] The main problem with current simulation test methods is the test efficiency:

[0007] On the one hand, the parameter space of traffic scenarios is huge (i.e., there are many parameters and a wide range of values, and the number of numerical combinations of different parameters is exponential);

[0008] On the other hand, it takes a long time to perform a driving task test in a driving simulator (usually tens of seconds). For these two reasons, it is difficult to apply this test method to a large number of scenario parameter value combinations.

[0009] Therefore, the efficiency of discovering unsafe behaviors of autonomous driving systems through the above-mentioned existing simulation test methods is very low. Summary of the invention

[0010] Purpose of the invention: To propose a simulation test method for an autonomous driving system, and further propose a system, device and storage medium for implementing the above method, so as to solve the above problems existing in the prior art.

[0011] In the first aspect, a simulation test method for an autonomous driving system is proposed, comprising the following steps:

[0012] S1. Determine scenario parameters and safety indicators;

[0013] S2. Randomly sample the scene parameters to form multiple groups of parameter value combinations;

[0014] S3, importing each group of the parameter value combination in step S2 into the driving simulator to perform a driving task, and collecting the safety index corresponding to the parameter value combination;

[0015] S4, establishing a neural network model, and training the neural network model using the parameter value combination and the safety index to obtain a trained model;

[0016] S5. Testing the trained model: Repeat step S2, input the formed multiple sets of parameter value combinations into the trained model, output an approximate safety index, and check whether the approximate safety index meets the safety requirements:

[0017] If satisfied, the current round of simulation test ends;

[0018] If not, the parameter value combination of the scenario parameters that do not meet the safety requirements is taken as a potential counterexample, and the potential counterexample is put back into the driving simulator to repeat steps S3 to S5 to obtain a new safety index, and check whether the new safety index meets the safety requirements:

[0019] If not, a scenario parameter value combination that causes the system to behave unsafely is found and the output is notified to the tester;

[0020] If satisfied, the current round of simulation test ends.

[0021] In a further embodiment of the first aspect, step S1 further comprises:

[0022] Determine m scene parameters and the value range of the scene parameters, using an m-dimensional vector represents a set of vectors consisting of the specific values ​​of the above m scene parameters;

[0023] A safety index y and a safety requirement that the safety index y needs to meet are determined.

[0024] In a further embodiment of the first aspect, step S2 further comprises: uniformly randomly sampling the scene parameters within their value range to form N groups of different parameter value combinations. .

[0025] In a further embodiment of the first aspect, step S3 further comprises:

[0026] For each set of parameter value combinations , generating corresponding traffic scenarios in the driving simulator;

[0027] The simulated vehicle equipped with the automatic driving system performs a driving task in the corresponding traffic scene, and collects the combination of the parameter values. Corresponding safety indicators .

[0028] In a further embodiment of the first aspect, the input of the neural network model in step S4 is the parameter value combination , the output is an approximate safety index;

[0029] Utilize collected data through machine learning algorithms Perform model training to obtain the trained model M. Here, the structure of model M adopts a fully connected neural network with m-dimensional input and 1-dimensional output, which has 2 hidden layers, each of which contains 50 neuron nodes (the number of hidden layers and the number of neuron nodes contained therein can be increased or decreased according to the complexity of the actual test system and scenario). The model training uses the standard adaptive momentum estimation (Adam) algorithm for training, and the loss function used in the training uses the mean square error (MSE) of the predicted value to the actual value.

[0030] As a second aspect of the present invention, an automatic driving system simulation test system is proposed, which includes a driving simulator, a preset unit, a sampling unit, a first execution unit, a training unit, a testing unit, a first judgment unit, and a second judgment unit.

[0031] The driving simulator is used to perform simulated driving tasks. The preset unit is used to determine scene parameters and safety indicators. The sampling unit is used to randomly sample the scene parameters to form multiple sets of parameter value combinations.

[0032] The first execution unit is used for importing each group of the parameter value combination into the driving simulator to execute a driving task, and collecting the safety index corresponding to the parameter value combination.

[0033] The training unit is used to establish a neural network model, and train the neural network model using the parameter value combination and the safety index to obtain a trained model.

[0034] The testing unit is used to perform uniform random sampling of the scenario parameters within their numerical range, input the formed multiple groups of parameter numerical combinations into the trained model, and output an approximate safety index.

[0035] The first judgment unit is used to receive the approximate safety index output by the test unit, and check whether the approximate safety index meets the safety requirements: if it does, the current round of simulation test is terminated; if it does not, the parameter value combination belonging to the scenario parameters that do not meet the safety requirements is used as a potential counterexample, the potential counterexample is put back into the driving simulator, and fed back to the test unit to obtain a new safety index.

[0036] The second judgment unit is used to receive the new safety indicator and check whether the new safety indicator meets the safety requirements: if not, a scenario parameter value combination that causes the system to exhibit unsafe behavior is found and output to inform the tester; if satisfied, the current round of simulation testing is terminated.

[0037] As a third aspect of the present invention, an electronic device is proposed, which includes a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the automatic driving system simulation test method disclosed in the first aspect is implemented.

[0038] As a third aspect of the present invention, a computer-readable storage medium is proposed, which stores at least one executable instruction. When the executable instruction is run on an electronic device, the electronic device executes the autonomous driving system simulation test method disclosed in the first aspect.

[0039] Beneficial effects: The present invention improves the inefficiency of the existing autonomous driving system simulation test method by establishing a neural network model, training the neural network model using parameter numerical combinations and safety indicators, and obtaining a trained model. The neural network model is used to quickly screen potential counterexamples to improve test effectiveness and efficiency, and save time and computing power for autonomous driving system simulation testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of a simulation test method for an autonomous driving system based on model learning in an embodiment of the present invention.

[0041] Figure 2 It is a structural diagram of an automatic driving system simulation test system in an embodiment of the present invention. Implementation

[0042] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features known in the art are not described.

[0043] The applicant believes that the main problem with the current simulation test method is the problem of test efficiency. On the one hand, the parameter space of traffic scenes is huge (that is, there are many parameters and a wide range of values, and the number of numerical combinations of different parameters is exponential). On the other hand, it takes a long time to perform a driving task test in a driving simulator (usually tens of seconds). Combining these two reasons, it is difficult to apply this test method to a large number of scene parameter numerical combinations. Therefore, the efficiency of discovering unsafe behaviors of autonomous driving systems through the above-mentioned existing simulation test method is very low.

[0044] The following embodiments aim to propose a new simulation test method for an autonomous driving system, with the aim of solving the problem that the existing simulation test method has low test efficiency and is difficult to effectively detect unsafe behaviors of the autonomous driving system. Example

[0045] This embodiment discloses a simulation test method for an autonomous driving system based on model learning. Figure 1 As shown, the test method steps are as follows:

[0046] Step 1: Determine m scene parameters and their numerical ranges, using an m-dimensional vector Represents a set of vectors consisting of specific values ​​of the above m scene parameters.

[0047] Step 2: Determine the safety index y and the safety requirements that the safety index y needs to meet (e.g., if y is the minimum distance between the vehicle and other individuals, the safety requirement is y>0, which means no collision occurs; if y is the maximum acceleration of the vehicle, the safety requirement is y<5, which means no acceleration exceeds 5 m / s 2 sudden acceleration; if y is the maximum distance that the center of the vehicle deviates horizontally from the center line of the road, the safety requirement is y<1, which means that the horizontal deviation of the center of the vehicle from the center of the road does not exceed 1 meter).

[0048] Step 2: Perform uniform random sampling of scene parameters within their value range to form N groups of different parameter value combinations .

[0049] Step 4: For each set of parameter value combinations , generating a corresponding traffic scene in the driving simulator; executing a driving task in the corresponding traffic scene by a simulated vehicle equipped with an automatic driving system, collecting data in combination with the parameter values Corresponding safety indicators .

[0050] Step 5: Establish a neural network model (whose input is a combination of parameter values ​​and output is an approximate safety indicator) and use the collected data through machine learning algorithms Perform model training to obtain the trained model M.

[0051] Step 6: Test the model M: that is, perform large-scale uniform random sampling of the scenario parameters within their numerical range, input them into the model M, obtain the approximate safety index of the output and check whether it meets the safety requirements.

[0052] Step 7: For each scenario parameter value combination X that does not meet the safety requirements on the model M after verification (we call it a potential counterexample), we put it back into the driving simulator and perform another test. That is, generate a traffic scene corresponding to X, and let the simulated vehicle equipped with the autonomous driving system perform a driving task in the traffic scene, obtain the safety index y and check whether y meets the safety requirements. If not, a scenario parameter value combination (i.e., a counterexample) that causes the system to behave unsafely is found. Example

[0053] This embodiment discloses an automatic driving system simulation test system 800. Figure 2 As shown, the simulation test system includes a driving simulator 801, a preset unit 802, a sampling unit 803, a first execution unit 804, a training unit 805, a testing unit 806, a first judgment unit 807, and a second judgment unit 808.

[0054] The driving simulator 801 is used to perform simulated driving tasks. The preset unit 802 is used to determine the scene parameters and safety indicators. The sampling unit 803 is used to randomly sample the scene parameters to form multiple groups of parameter value combinations. The first execution unit 804 is used to import each group of the parameter value combinations into the driving simulator 801 to perform a driving task, and collect the safety indicators corresponding to the parameter value combinations. The training unit 805 is used to establish a neural network model, and train the neural network model using the parameter value combinations and the safety indicators to obtain a trained model. The testing unit 806 is used to uniformly randomly sample the scene parameters within their value range, input the formed multiple groups of parameter value combinations into the trained model, and output an approximate safety indicator. The first judgment unit 807 is used to receive the approximate safety index output by the test unit 806, and check whether the approximate safety index meets the safety requirements: if it does, the current round of simulation test is terminated; if it does not, the parameter value combination of the scenario parameters that do not meet the safety requirements is used as a potential counterexample, and the potential counterexample is put back into the driving simulator 801 and fed back to the test unit 806 to obtain a new safety index. The second judgment unit 808 is used to receive the new safety index and check whether the new safety index meets the safety requirements: if it does not, a scenario parameter value combination that causes the system to have unsafe behavior is found, and the output is notified to the tester; if it does, the current round of simulation test is terminated. Example

[0055] This embodiment provides an electronic device, which includes a processor, a memory, a communication interface and a communication bus. The processor, the memory and the communication interface communicate with each other through the communication bus. The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the automatic driving system simulation test method disclosed in the above embodiment. When the automatic driving system simulation test method is executed, the following steps are performed in sequence:

[0056] Determine scenario parameters and safety indicators; randomly sample the scenario parameters to form multiple groups of parameter value combinations; import each group of the parameter value combinations into a driving simulator to perform a driving task, and collect safety indicators corresponding to the parameter value combinations; establish a neural network model, and train the neural network model using the parameter value combinations and the safety indicators to obtain a trained model; test the trained model: perform large-scale uniform random sampling of scenario parameters within their value ranges, input the formed multiple groups of parameter value combinations into the trained model, output approximate safety indicators, and check whether the approximate safety indicators meet safety requirements: if they meet, end the current round of simulation testing; if not, use the parameter value combinations to which the scenario parameters that do not meet the safety requirements belong as potential counterexamples, put the potential counterexamples back into the driving simulator, repeat the above steps to obtain new safety indicators, and check whether the new safety indicators meet safety requirements: if not, find a scenario parameter value combination that causes unsafe behavior in the system, and output it to inform the tester; if satisfied, end the current round of simulation testing.

[0057] The electronic device can also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device, and / or communicate with any device that enables the electronic device to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be performed through an input / output (I / O) interface. In addition, the electronic device can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through a bus. It should be understood that other hardware and / or software modules can be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc. Example

[0058] This embodiment proposes a computer-readable storage medium, in which at least one executable instruction is stored. When the executable instruction is executed on an electronic device, the electronic device performs the operation of the automatic driving system simulation test method described in the above embodiment. More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device.

[0059] In combination with the above embodiments, the key point of the improvement of the present invention is to introduce "model learning" into the existing automatic driving system simulation test method, and its key steps are steps 5 and 6 in embodiment 1. The data collected in step 4 is fully utilized, and a model M is established through machine learning.

[0060] Model M is trained based on data collected in the driving simulator, so it can be considered as an effective approximation of the original autonomous driving system's behavior in different traffic scenarios. In other words, for a scenario parameter value combination X, the approximate safety index y' directly output by model M is close to the safety index y obtained in the driving simulator. Then, a scenario parameter value combination X (potential counterexample) that does not meet the safety requirements on model M is also likely to be unsafe in the driving simulator.

[0061] M is a neural network model, and the time cost (in milliseconds) of testing a scenario parameter value combination on M is much shorter than executing a driving task in a driving simulator. Therefore, we can quickly screen out some potential counterexamples that are likely to cause unsafe behaviors of the autonomous driving system based on this model M, and then put them back into the driving simulator for testing.

[0062] In summary, the advantage and effect of this method is that it can significantly improve the effectiveness of discovering counterexamples that cause unsafe behaviors in autonomous driving systems, improve the efficiency of the entire testing process, and save testing time and computing power.

[0063] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A simulation test method for an automatic driving system, characterized in that: The steps include: S1. Determine scenario parameters and safety indicators: Determine m scene parameters and the value ranges of the scene parameters, and use an m-dimensional vector to represent a set of vectors composed of specific values ​​of the m scene parameters; determine a safety index y and the safety requirements that the safety index y needs to meet; S2. Perform uniform random sampling of scene parameters within their value range to form N groups of different parameter value combinations ; S3, importing each group of the parameter value combination in step S2 into the driving simulator to perform a driving task, and collecting the safety index corresponding to the parameter value combination: For each set of the parameter value combinations, a corresponding traffic scene is generated in the driving simulator; a simulated vehicle equipped with the automatic driving system performs a driving task in the corresponding traffic scene, and a safety index corresponding to the parameter value combination is collected; S4. Establish a neural network model, the input of the neural network model is the combination of the parameter values, and the output is an approximate safety index; use the collected data through a machine learning algorithm Perform model training to obtain the trained model M; S5. Testing the trained model: Repeat step S2, input the formed multiple sets of parameter value combinations into the trained model, output an approximate safety index, and check whether the approximate safety index meets the safety requirements: If satisfied, the current round of simulation test ends; If not, the parameter value combination of the scenario parameters that do not meet the safety requirements is taken as a potential counterexample, and the potential counterexample is put back into the driving simulator to repeat steps S3 to S5 to obtain a new safety index, and check whether the new safety index meets the safety requirements: If not, a scenario parameter value combination that causes the system to behave unsafely is found and the output is notified to the tester; If satisfied, the current round of simulation test ends.

2. An automatic driving system simulation test system, used to execute the automatic driving system simulation test method according to claim 1, characterized in that: include: A driving simulator, used to perform simulated driving tasks; A preset unit, used to determine scene parameters and safety indicators; A sampling unit, used for randomly sampling the scene parameters to form multiple groups of parameter value combinations; A first execution unit, configured to import each group of the parameter value combination into a driving simulator to execute a driving task, and collect a safety index corresponding to the parameter value combination; A training unit, used for establishing a neural network model, and training the neural network model using the parameter value combination and the safety index to obtain a trained model; A testing unit, used for uniformly and randomly sampling scenario parameters within their value range, inputting the formed multiple sets of parameter value combinations into the trained model, and outputting an approximate safety index; The first judgment unit is used to receive the approximate safety index output by the test unit and check whether the approximate safety index meets the safety requirements: If satisfied, the current round of simulation test ends; If not, the parameter value combination of the scenario parameters that do not meet the safety requirements is taken as a potential counterexample, the potential counterexample is put back into the driving simulator, and fed back to the test unit to obtain a new safety indicator; The second judgment unit is used to receive the new security indicator and check whether the new security indicator meets the security requirements: If not, a scenario parameter value combination that causes the system to behave unsafely is found and the output is notified to the tester; If satisfied, the current round of simulation test ends.

3. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the automatic driving system simulation test method as claimed in claim 1 is implemented.

4. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction, and when the executable instruction is executed on the electronic device, the electronic device executes the automatic driving system simulation test method as claimed in claim 1.

Citation Information

Patent Citations

  • Test scene selection method and device, electronic equipment and storage medium

    CN113360412A