A method for augmenting and optimizing radar point cloud data for autonomous driving
By defining variation rules and using entropy and selection methods, point cloud data is automatically generated and selected and retrained, the problem of test inadequacy of the autonomous driving system under limited resources is solved, and the robustness of the radar target detection model is significantly improved. can better deal with a variety of environmental factors.
Patent Information
- Application Number
- CN202111496532.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In the case of limited resources, it is difficult for autonomous driving systems to fully cover radar point cloud data through real-life road tests and 3D simulation environment tests, resulting in software defects that may lead to catastrophic consequences, and existing methods are difficult to quickly generate points under multiple environmental factors Cloud data to improve model robustness.
By defining and designing variation rules, the point cloud operation library is used to automatically generate amplified data, and use entropy and selection methods to select data that is prone to trigger model errors for retraining, improving the robustness of the radar target detection model.
It realizes the rapid generation of point cloud data of a large number of boundary use cases at a small cost, significantly improving the robustness of the radar target detection model and better cope with severe weather and road conditions.
Smart Images

Figure CN114241258B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of software testing and program analysis, and is particularly suitable for the field of complex intelligent software system testing in software testing. Its purpose is to provide guidance for autonomous driving software testing companies during testing. It is a point cloud data augmentation method that uses a small amount of cost to quickly generate a large number of boundary cases, and this method can improve the robustness of radar target detection models. Background Art
[0002] With the advancement of artificial intelligence technology, autonomous driving systems have achieved extremely rapid development. As a typical intelligent software, autonomous driving systems use sensors such as radars and cameras to capture information about the surrounding environment as input, and make driving decisions through artificial intelligence models, thereby automatically completing various driving tasks. At present, more than 50 companies are actively developing autonomous vehicles and drones. In these autonomous driving systems, software plays a core role in realizing their environmental perception, intelligent autonomous decision-making, path prediction, driving operation control functions, etc. However, like any other software system, autonomous driving systems are also susceptible to software defects, and since autonomous driving systems are usually deployed in safety-critical environments, their software defects are likely to lead to catastrophic consequences. Considering the high complexity of radar acquisition weather roads and driving environments, it is difficult to ensure the completeness and sufficiency of the test by only obtaining radar point cloud perception data through real-life road tests and 3D simulation environment tests to test the autonomous driving system. Therefore, how to quickly generate a large amount of point cloud data for edge cases at a low cost and improve the robustness of the model is a challenging task.
[0003] How to generate point cloud data under the influence of multiple environmental factors is an important research issue. In the operating environment of the autonomous driving system, the point cloud data perceived by its radar sensor may be affected by multiple environmental factors including weather factors, haze conditions, etc. These influences may cause the perceived point cloud data to have varying degrees of attenuation or various types of noise information, which may cause the autonomous driving system to make errors in operational judgments. Obtaining a large amount of diverse point cloud data through repeated real-life road tests usually consumes extremely large amounts of resources. Therefore, how to automatically generate point cloud data that can describe a variety of real environmental factors without significantly increasing additional resource consumption is a key issue that needs to be solved.
[0004] How to select data that is more likely to trigger bugs from different point cloud data under the influence of various environmental factors and retrain the model is another important research issue. In the operating environment of the autonomous driving system, point cloud data generated or collected by various factors including weather factors, haze conditions, etc. have different degrees of influence on the target detection model. Obtaining a large amount of diverse point cloud data through repeated real-life road testing or expansion will not trigger all defects in the deep learning model. Therefore, how to select a large number of boundary cases and improve the robustness of the radar target detection model while saving training costs and not significantly increasing additional resource consumption is a key problem that needs to be solved.
[0005] In this regard, the present invention proposes a method for augmenting and optimizing radar point cloud data for autonomous driving
[0006] . The basic idea of the present invention is: first, it is necessary to define the mutation rules related to the design, and then mutate the point cloud data according to the rules. According to the characteristics of the driving scene, the mutation rules can be defined with the assistance of domain experts or further obtained by means of crowdsourcing. After completing the design of the rules, we need to apply the rules to the real scene data to obtain a large amount of mutation data. The implementation of the point cloud data mutation technology needs to be completed by combining the mutation rules with the dependency library to implement the relevant algorithms, and then realize the visualization operation of the original data and the augmented data. After generating a large amount of data according to different point cloud augmentation rules, a data selection method is used to select a certain proportion of augmented point cloud data. The characteristics of these data are that it is very easy to make the autonomous driving target detection model make mistakes (including false detection and missed detection). The number of defects that can be found by this selection method is significantly higher than that of the random selection method. Finally, the selected point cloud data is added to the original data for retraining, so as to obtain a more robust radar target detection model. Summary of the invention
[0007] The present invention provides an amplification and optimization method for autonomous driving radar point cloud data to quickly generate a large number of point cloud data augmentation methods for boundary cases at a small cost, and the method can improve the robustness of the radar target detection model.
[0008] To achieve the above objectives, the present invention proposes a method for amplifying and optimizing point cloud data for autonomous driving radar. The method first defines the mutation rules (weather transformation and affine transformation) of point cloud data by domain experts, and then automatically applies the mutation rules to the seed point cloud data through the point cloud operation library, thereby obtaining an enhanced lidar point cloud data set and testing the target detection model. On this basis, entropy and selection methods are used to select data that is more likely to trigger model errors for retraining, and finally an optimized target detection model is obtained, which is more robust to some severe weather and road conditions. Specifically, the method comprises the following steps:
[0009] 1) Mutation rule formulation: Domain experts give radar amplification rules, including affine transformation (translation, rotation, scaling, symmetry) and weather transformation (rain, snow, fog). More transformation rules can be defined according to actual driving scenarios. These mutation rules are used to amplify seed point cloud data.
[0010] 2) Point cloud data augmentation: given a seed point cloud data P0, the mutation rules are automatically applied to the seed point cloud data through the point cloud operation library to generate the corresponding augmented point cloud data P a , and form an augmented data set;
[0011] The purpose of this step is to generate a large amount of real point cloud data, which can simulate many different weather and road conditions; put the augmented data into the pre-trained model M 0, , compare the accuracy of target detection before and after amplification. The decrease in accuracy indicates that the amplification method is effective. The target detection accuracy is defined as follows:
[0012]
[0013] Using R 40 Equidistant recall, using R 40 For equidistant recall, the interpolation function ρ gives the precision at point r;
[0014] 3) Visualization of point cloud data, realizing visualization operations on original data and augmented data. The visualization processing of point cloud data is performed using the PCL (Point Cloud Library) point cloud operation library. The PCL point cloud operation library is a large open source project for 2D / 3D image and point cloud processing, which can realize operations such as point cloud acquisition, registration, retrieval, feature extraction, recognition, tracking, and visualization;
[0015] 4) Boundary case data selection, in order to save costs and find boundary cases that trigger errors, a data selection method for autonomous driving radar point cloud data is used. The entropy and method are expressed as follows:
[0016]
[0017] where b ic The i-th image is a set of 3D object detection boxes of the c-th category. conf(j) represents the confidence of the model for the j-th detection box.
[0018] A data priority sorting sequence can be obtained through the above formula. The higher the priority, the greater the probability of the autonomous driving model making an error in judgment, and the better the retraining effect.
[0019] 5) Model retraining optimization: the data selected by the above entropy and selection methods are added to the original data for retraining to obtain a new model M1, which has higher robustness than the pre-trained model, that is, the 3D object detection model can better cope with extreme weather and road conditions.
[0020] Further, the specific steps of the above step 1) are as follows:
[0021] Step 1)-1: Starting state;
[0022] Step 1)-2: Enter the description of autonomous driving conditions, including weather and road conditions;
[0023] Step 1)-3: Collect point cloud augmentation rules using crowdsourcing methods;
[0024] Step 1)-4: The expert judges the feasibility of the amplification rules collected by the decision-making. If feasible, the next step is executed, otherwise step 1)-3 is executed;
[0025] Step 1)-5: Output the point cloud augmentation rules determined by experts;
[0026] Step 1)-6: End state.
[0027] Further, the specific steps of the above step 2) are as follows:
[0028] Step 2)-1: Starting state;
[0029] Step 2)-2: Input the seed point cloud data and the domain-specific rules selected in the previous step;
[0030] Step 2)-3: PCL operation library realizes point cloud expansion;
[0031] Step 2)-4: Generate data and store it to the corresponding physical address;
[0032] Step 2)-5: The original data and the augmented data are simultaneously put into the pre-trained model for accuracy testing;
[0033] Step 2)-6: Output test report;
[0034] Step 2)-7: End state.
[0035] Further, the specific steps of the above step 3) are as follows:
[0036] Step 3)-1: Starting state;
[0037] Step 3)-2: Input the original data and the augmented data as well as the test results of the pre-trained model respectively;
[0038] Step 3)-3: Use point cloud visualization tools to complete data visualization;
[0039] Step 3)-4: Store and analyze the visualization results;
[0040] Step 3)-5: Output visualization effect diagram and analysis report;
[0041] Step 3)-6: End state.
[0042] Further, the specific steps of the above step 4) are as follows:
[0043] Step 4)-1: Starting state;
[0044] Step 4)-2: Input an augmented point cloud dataset based on an augmentation rule in a certain field;
[0045] Step 4)-3: Specify appropriate data selection ratio;
[0046] Step 4)-4: Determine and implement data selection methods;
[0047] Step 4)-5: Determine whether the number of bugs found by the selection method is significantly better than that of the random selection method. If it is, proceed to the next step, otherwise proceed to step 4)-4;
[0048] Step 4)-6: Output the selected boundary case point cloud data;
[0049] Step 4)-7: End state.
[0050] Further, the specific steps of the above step 5) are as follows:
[0051] Step 5)-1: Starting state;
[0052] Step 5)-2: Input the selected edge case;
[0053] Step 5)-3: Add the original data for data retraining;
[0054] Step 5)-4: Determine whether the retrained new model is more robust. If so, proceed to the next step, otherwise proceed to step 5)-3;
[0055] Step 5)-5: Output the retrained model;
[0056] Step 5)-6: End state. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 The present invention is a flowchart of a method for amplifying and optimizing radar point cloud data for autonomous driving in the implementation of the present invention.
[0058] Figure 2 for Figure 1 Flowchart of mutation rule formulation.
[0059] Figure 3 for Figure 1 Flowchart of point cloud data augmentation.
[0060] Figure 4 for Figure 1 Flowchart of point cloud data visualization.
[0061] Figure 5 for Figure 1 Flowchart of data selection for edge case.
[0062] Figure 6 for Figure 1 Flowchart of model retraining optimization. DETAILED DESCRIPTION
[0063] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.
[0064] Figure 1 The present invention is a flowchart of a method for amplifying and optimizing radar point cloud data for autonomous driving.
[0065] A method for augmenting and optimizing radar point cloud data for autonomous driving, characterized by comprising the following steps.
[0066] S1 mutation rule formulation: point cloud mutation data is collected through crowdsourcing, and experts discuss and decide on effective point cloud amplification rules for autonomous driving scenarios.
[0067] S2 point cloud data augmentation: after determining the point cloud augmentation rules (such as weather transformation, affine transformation), the seed point cloud data is augmented to obtain augmented point cloud data. The original data and augmented data are input into the pre-trained model for accuracy testing, and the augmented point cloud and accuracy test report are output.
[0068] S3 point cloud data visualization uses the lidar point cloud visualization tool to visualize the original data and augmented data, and simultaneously displays the inference boxes generated by the input to the pre-trained model. The visualization results are then stored and analyzed to produce an analysis report.
[0069] S4 boundary case data selection, data selection is performed on the augmented data set generated based on a certain domain rule. After determining the data selection ratio, a suitable data selection method (such as entropy and) is selected. This method finds more bugs than the random selection method, and the boundary case point cloud data is obtained.
[0070] S5 model retraining optimization adds the selected boundary data to the original data for retraining until the newly trained model is more robust than the original pre-trained model, and outputs the retrained model.
[0071] Figure 2 Flowchart for mutation rule formulation. Through crowdsourcing, experts discuss and obtain reliable professional point cloud augmentation rules. The specific steps are as follows:
[0072] Step 1: Starting state; Step 2: Input driving condition description (weather, road environment, etc.); Step 3: Crowdsourcing to collect point cloud augmentation rules; Step 4: Experts decide whether the collection domain rules are passed, if so, execute the next step, otherwise execute step 3; Step 5: Output the point cloud augmentation rules that pass the decision; Step 6: End state.
[0073] Figure 3 This is a flowchart for point cloud data augmentation. Use the point cloud visualization tool to visualize the original and augmented point cloud connectivity inference results, save the results and output a test report. The specific steps are as follows:
[0074] Step 1: Starting state; Step 2: Input domain-specific augmentation rules and seed point cloud data; Step 3: PCL point cloud operation library implementation; Step 4: Augmented point cloud data generation and storage; Step 5: Object detection accuracy test of original and augmented point cloud data; Step 6: Output augmented point cloud and test report. Step 7: End state.
[0075] Figure 4 This is a flowchart for point cloud data visualization. Based on the previously generated data and original data, use visualization tools to complete data visualization, save and analyze the visualization results. The specific steps are as follows:
[0076] Step 1: Starting state; Step 2: Input the original point cloud, augmented point cloud, and pre-trained model test results; Step 3: Use the point cloud visualization tool to perform visualization; Step 4: Store and analyze visualization results; Step 5: Output visualization effect diagrams and analysis reports containing inference results before and after augmentation; Step 6: End state.
[0077] Figure 5 Flowchart for edge case data selection. For a certain augmented data set, a data selection method is used with an appropriate data selection ratio (such as entropy and selection method), which significantly finds more bugs than random selection, and finally obtains the selected edge cases. The specific steps are as follows:
[0078] Step 1: Starting state; Step 2: Input the augmented point cloud dataset based on a certain domain rule; Step 3: Determine the appropriate data selection ratio; Step 4: Determine and implement the data selection method; Step 5: Determine whether the number of bugs is more than the random selection, if so, execute the next step, otherwise execute step 4; Step 6: Output the boundary case data; Step 7: End state.
[0079] Figure 6 Flowchart for model retraining optimization. The selected boundary case point cloud data is added to the original data for retraining to obtain a more robust retrained model, that is, the detection accuracy of the retrained model is improved to a certain extent compared with the original one. The specific steps are as follows:
[0080] Step 1: Starting state; Step 2: Input the edge case data selected by the data selection method; Step 3: Data retraining; Step 4: Determine whether the retrained model is more robust, if so, proceed to the next step. Otherwise, proceed to step 3; Step 5: Output the retrained model; Step 6: End state.
[0081] In summary, the present invention solves the current problems of difficulty in collecting valuable radar data and the inability to ensure the adequacy of autonomous driving tests under limited resources, and saves a lot of costs, thereby helping testers use simple and efficient methods to discover boundary cases and improve model robustness, ultimately achieving the purpose of improving software testing efficiency and ensuring the quality of autonomous driving intelligent software.
Claims
1. A method for augmenting and optimizing radar point cloud data for autonomous driving, characterized in that: First, domain experts define the weather transformation and affine transformation mutation rules of point cloud data, and then automatically apply the mutation rules to the seed point cloud data through the point cloud operation library to obtain an enhanced lidar point cloud data set. The characteristics of these data are that they can trigger bugs in the autonomous driving target detection model. In order to find boundary cases and save retraining costs, a data selection method is used on this basis to select data that is more likely to trigger model errors, and then select data to be added for retraining. Finally, an optimized target detection model is obtained, which is more robust to some severe weather and road conditions. The method includes the following steps: 1) Mutation rule formulation: Domain experts give radar amplification rules, including affine transformations of translation, rotation, scaling, symmetry characteristics, and weather transformations of rain, snow, and fog characteristics. More transformation rules can be defined based on actual driving scenarios. These mutation rules are used to amplify seed point cloud data. 2) Point cloud data augmentation: given seed point cloud data P 0 , automatically apply the mutation rules to the seed point cloud data through the point cloud operation library to generate the corresponding augmented point cloud data P a , and form an augmented data set; The purpose of this step is to generate a large amount of real point cloud data, which can simulate many different weather and road conditions; put the augmented data into the pre-trained model M 0 , compare the accuracy of target detection before and after amplification. The decrease in accuracy indicates that the amplification method is effective. The target detection accuracy is defined as follows: use R 40 Equidistant recall, with R 40 For equidistant recall, the interpolation function ρ gives the precision at point r; 3) Point cloud data visualization, to realize the visualization operation of original data and augmented data. The visualization processing of point cloud data is carried out using the PCL point cloud operation library. The PCL point cloud operation library is a large open source project for 2D / 3D image and point cloud processing, which can realize the acquisition, registration, retrieval, feature extraction, recognition, tracking and visualization of point clouds; 4) Boundary case data selection. In order to save costs and find boundary cases that trigger errors, a data selection method for autonomous driving radar point cloud data is used. The entropy and selection method are expressed as follows: in b ic The set of 3D object detection boxes for the i-th image and the c-th category, conf(j) Represents the model's confidence in the jth detection box; A data priority sorting sequence can be obtained through the above formula. The higher the priority, the greater the probability of the autonomous driving model making an error in judgment, and the better the retraining effect. 5) Model retraining optimization: add the data selected by the above entropy and selection methods to the original data, retrain and obtain a new model M 1 , the model has higher robustness than the pre-trained model, that is, 3D The target detection model can better cope with extreme weather and road conditions.
2. The method for augmenting and optimizing radar point cloud data for autonomous driving according to claim 1, characterized in that: In step 1), mutation rules are formulated; the rule formulation is universal and professional, and attention is paid to explaining the meaning of point cloud data before and after amplification, and the amplification has solid theoretical support, such as weather changes will affect the reflection intensity of radar laser.
3. The method for augmenting and optimizing radar point cloud data for autonomous driving according to claim 1, characterized in that: In step 2), the completeness rules summarized by the domain experts in the previous step are automatically applied to the seed point cloud data through the point cloud operation library. An augmented dataset is generated for each transformation rule. The accuracy of the original dataset and the augmented dataset in each detection category is compared, the quality and effect of the augmented test set are analyzed, and a test report is generated.
4. The method for augmenting and optimizing radar point cloud data for autonomous driving according to claim 1, characterized in that: In step 3), each typical case of the amplified transformation part is visualized and compared with the original data visualization result; the comparison result can clearly show the change of point cloud data and the change of detection results before and after amplification.
5. The method for augmenting and optimizing radar point cloud data for autonomous driving according to claim 1, characterized in that: In step 4), a method is used to select a certain proportion of data. The number of bugs found in the data selected by this method is significantly more than the number of bugs found by the random selection method. This method is applicable to various models, all augmentation transformations, and various types of data.
6. The method for augmenting and optimizing radar point cloud data for autonomous driving according to claim 1, characterized in that: In step 5), the data selected in the previous step is added to the original data for retraining. By comparing the detection accuracy of the pre-trained model and the retrained model, the accuracy improvement is calculated and the effect of improving the robustness of point cloud target detection is analyzed.
