Iterative method of advanced aided driving algorithm
By collecting and labeling data on mass-produced vehicles, conducting in-loop testing and scene enhancement, the problem of limited scene coverage and untimely iteration in ADAS algorithm verification has been solved, efficient algorithm testing and iteration has been achieved, and the rationality of the model has been ensured. and accuracy.
Patent Information
- Application Number
- CN202410830186.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-13
AI Technical Summary
Existing advanced driver assistance system (ADAS) algorithm verification methods have problems such as limited scene coverage and inability to meet the timeliness of software update iterations, especially in open road testing and hardware-in-the-loop testing based on artificially established simulation scenarios.
By collecting data on mass-produced vehicles, performing data annotation and enhancement processing, combined with autonomous driving algorithms for in-loop testing and debugging, multi-dimensional evaluation of test results using preset thresholds, and retesting of critical results after scenario enhancement, Enable rapid iteration and comprehensive verification of algorithms.
It realizes the rapid verification of the rationality and accuracy of the model under the performance of real vehicle dynamics, solves the problem of timeliness and comprehensiveness of algorithm testing through a rich database of actual measurement scenarios, and supports the rapid iteration and optimization of the algorithm.
Smart Images

Figure CN118642965A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile testing technology, and in particular to an advanced driver assistance algorithm iteration method. Background Art
[0002] The Advanced Driver Assistance System (ADAS) can be divided into the perception layer, decision layer, and execution layer. The perception layer is composed of radar sensors (millimeter, ultrasonic, lidar), visual sensors (monocular and binocular cameras, infrared thermal imaging sensors), high-precision maps, etc.; the decision layer is implemented by chips through algorithms to achieve interactive decision-making, path planning, etc.; the execution layer realizes the power conversion, braking, steering and lighting effects of the car. The ADAS domain controller connects these sensor devices, and makes decisions and controls through multi-sensor fusion, positioning, and path planning. This process requires a large number of calculations, and once an error occurs, it may lead to serious consequences. Therefore, it is necessary to fully test the overall performance of the controller and the vehicle.
[0003] The relevant technical contents involved in the testing phase mainly include: data closed loop, which is the data collected by the car undergoing a series of processing, labeling, management, storage, etc. to form a valid data set, which is stored in the cloud server for algorithm training and testing and vehicle-side deployment, forming a set of data-driven algorithm iterations, thereby driving the upgrade of intelligent driving capabilities. A set of closed-loop systems; real-vehicle in-the-loop simulation testing (VIL) is to establish a virtual model consistent with the real world in a virtual environment. The real vehicle drives on the real test site and is mapped to the virtual test environment at the same time. The vehicle-in-the-loop test simulation platform interacts with the real vehicle to be tested through real-time data to complete the closed-loop test system for the whole vehicle for ADAS function verification.
[0004] Therefore, one of the current verification methods for controller ADAS algorithms is closed-field testing + open road testing based on the set real-world scenarios. The test vehicle is tested in a closed test field or on an actual road for specific ADAS functions. The scenario is based on regulations, and the target and the main vehicle movement mode are set on site. The target in front of the closed-field test is a dummy car / dummy. A mobile car is installed at the bottom of the dummy to control the dummy's movement speed and direction. After the test is completed, the algorithm is manually judged based on the judgment conditions to see whether it meets the preset and regulatory requirements; while the open road test needs to be carried out after the functional safety is verified in the closed-field test, which is in the later stage of the project. After the algorithm is updated, the site layout and targeted testing are re-performed. This testing method has at least the following disadvantages: (1) The open road test is a real traffic environment with a high risk factor. (2) The scenario coverage is limited. When problems occur, the timeliness of software updates and iterations cannot be met.
[0005] At present, the second verification method for controller ADAS algorithm is hardware-in-the-loop test HIL (Hardware-in-the-Loop) based on artificially established simulation scenarios + real vehicle-in-the-loop test VIL (Vehicle-In-the-Loop). Specifically, when the controller software and hardware are close to mass production, the controller is verified on the test bench and the real vehicle. In the HIL stage, a virtual simulation environment is established, and the required test scenarios are preset in the virtual simulation environment. The controller communicates with the real controller, and the real camera shoots the virtual scene or obtains the virtual scene through injection. In the VIL stage, the controller is installed on the real vehicle and performs calculations, decision-making and control. This testing method has at least the following disadvantages: (1) The scene coverage is limited. When problems occur, it cannot meet the timeliness of software updates and iterations. (2) The software and hardware are close to mass production, and software development problems cannot be discovered in time. Summary of the invention
[0006] In view of the above, the present invention aims to provide an advanced driver assistance algorithm iteration method to solve the above-mentioned technical problems.
[0007] The technical solution adopted by the present invention is as follows:
[0008] The present invention provides an advanced driver assistance algorithm iteration method, which includes:
[0009] Based on the data collected by the test vehicle and the production vehicle, the test scenario data is obtained; the production vehicle data collection method includes automatic sampling and manual sampling;
[0010] After preprocessing the test scenario data, perform data annotation and data enhancement processing;
[0011] After in-loop testing and debugging of the autonomous driving algorithm, use the annotated and enhanced test scenario data to conduct in-loop simulation testing of the autonomous driving algorithm on a real vehicle;
[0012] Use preset thresholds to conduct multi-dimensional evaluation of the test results of the real vehicle-in-the-loop simulation test, and retest the critical test results after scenario enhancement;
[0013] After the autonomous driving algorithm is optimized and passes the evaluation, it will be deployed on the vehicle.
[0014] In at least one possible implementation, the automatic sampling and manual sampling are set to shadow mode and one-key trigger mode respectively; wherein the shadow mode is a built-in trigger mode, which automatically triggers the capture of scene data when the scene is a preset scene; the one-key trigger mode is that the user can capture the required scene data through button commands.
[0015] In at least one possible implementation, the one-key trigger mode includes:
[0016] After manually providing instructions, the user is asked whether to capture scene data and upload it;
[0017] If the upload is confirmed, the data of the specified time period before and after the instruction is provided will be collected, and the required scene will be captured from it;
[0018] If you confirm not to upload or there is no response after waiting for the preset time, exit the one-key trigger mode.
[0019] In at least one possible implementation, the real vehicle-in-the-loop simulation test includes:
[0020] The controller obtains point cloud data and video data from the cloud, and the millimeter wave radar signal is bus-simulated through the simulation platform and transmitted to the controller;
[0021] The controller senses and fuses the injected radar signal and camera signal, makes a decision, and issues a control command to the test vehicle to execute the corresponding control strategy.
[0022] The motion state of the test vehicle based on the actual execution of the control strategy is transmitted to the simulation vehicle through the inertial navigation system, realizing the linkage between the simulation vehicle and the test vehicle;
[0023] Among them, the test vehicle is a real vehicle, which is located in a real closed test site; the simulated vehicle is a virtual vehicle in a simulation platform, which is located in a virtual test scene provided by the cloud, and the simulated vehicle is equipped with a true value radar sensor as test data for test evaluation.
[0024] In at least one possible implementation, the real vehicle-in-the-loop simulation test further includes:
[0025] The video data provided by the camera and the point cloud data provided by the lidar are time-synchronized during the acquisition process; and
[0026] Enhance the laser radar point cloud data through dynamic point cloud overlay;
[0027] The perception of camera videos is enhanced by transferring the style of the camera videos and superimposing weather conditions.
[0028] In at least one possible implementation, the retesting of the critical test results after scenario reinforcement includes:
[0029] When the evaluation is between the preset upper and lower thresholds, the test scenario is strengthened through cloud-based parameter adjustment, where the parameter adjustment refers to comprehensive strengthening of all parameters that affect the evaluation criteria;
[0030] The enhanced test scenario is reloaded onto the vehicle side, and the real vehicle in-the-loop simulation enhanced test is performed again.
[0031] In at least one possible implementation, performing data annotation and data enhancement processing includes:
[0032] After preprocessing the test scene data, the camera video and radar point cloud data are annotated, and the annotated content includes at least one of the following: lane lines, traffic signs, vehicles, and pedestrians;
[0033] The annotation information is stored in the cloud together with the video and point cloud data as the test truth value;
[0034] The labeled scene data is enhanced from two dimensions: static scene information and dynamic target information.
[0035] Compared with the prior art, the main design concept of the present invention is to quickly adopt cloud scenarios for testing under the actual vehicle dynamics performance. The test scenarios come from real collected data and mass-produced vehicle triggered upload data, and the scenarios are rich through generalization, which is in line with reality and has high coverage of long-tail scenarios, and can quickly and accurately verify the rationality and accuracy of the model; in addition, the mass-produced vehicle data collection includes shadow mode and one-key trigger mode, covering built-in dangerous scene uploads, and unreasonable scene uploads that the driver considers, which is conducive to optimizing the model more reasonably through model optimization and VIL testing. Furthermore, the threshold of the test evaluation is set with upper and lower limits, and the critical test results are strengthened from the cloud, and the VIL test vehicle is loaded for retesting, and it can be combined with real vehicle driving to achieve enhanced VIL testing. The present invention completes the algorithm test closed loop based on a rich database of measured scenarios, solves the timeliness and comprehensiveness of algorithm testing, and combines the qualification evaluation method and the enhanced test method to achieve comprehensive testing and rapid iteration of the algorithm.
[0036] Regarding the trigger mode for uploading data of mass-produced vehicles, it can also be added that scene capture can be divided into two levels. The first level is unified time capture, and the second level is detailed capture under the automatic algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described below with reference to the accompanying drawings, in which:
[0038] Figure 1 A schematic diagram of an advanced driver assistance algorithm iteration method provided by an embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a VIL test provided by an embodiment of the present invention;
[0040] Figure 3A schematic diagram of the test and evaluation of the autonomous driving algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0042] The present invention proposes an embodiment of an advanced driver assistance algorithm iteration method. Specifically, Figure 1 shown, including:
[0043] Step S1, based on the data collected by the test vehicle and the production vehicle, the test scenario data is obtained; wherein the method of collecting data for the production vehicle includes automatic sampling and manual sampling;
[0044] There are two ways to acquire test scene data: data collection vehicle (special test vehicle) and mass production vehicle (vehicle side). The data collection vehicle collects data by configuring special data collection equipment; while the mass production vehicle can upload the scenes to be collected to the cloud through shadow mode trigger or one-click trigger. Among them, shadow mode is a built-in trigger mode. When the scene is a built-in preset scene (such as an accident, dangerous driving, the value does not meet the preset threshold, etc.), the scene is automatically triggered to upload to the cloud; one-click trigger mode, for example, when the driver thinks that the current assisted driving decision is unreasonable, manually use the one-click trigger button to provide instructions, and the system confirms whether to upload. After confirmation, collect data 60s before touching the key and 30s after the trigger, and intercept the required scenes and automatically mark them; if it is confirmed not to upload or there is no response for 10s, exit the one-click trigger mode. This step takes into account that if the driver touches the button by mistake, no further upload is required.
[0045] Step S2: After preprocessing the test scene data, perform data labeling and data enhancement processing;
[0046] The collected data is screened, cleaned, and compliantly processed in the data mining process. The video captured by the camera and the radar point cloud are sent to the annotation platform for data annotation of the sliced scene. The annotation content includes lane lines, traffic signs, vehicles, pedestrians and other information. The annotated documents are sent to the cloud storage as the true value together with the video and point cloud. The annotated scene is enhanced in terms of static scene information and dynamic target information, generalizing more long-tail scenes to meet more comprehensive testing needs.
[0047] Step S3: After the autonomous driving algorithm is tested and debugged in the loop, the autonomous driving algorithm is tested in the loop using the annotated and enhanced test scenario data;
[0048] Specifically, the autonomous driving algorithm (model) is first tested and debugged in the model in the loop. After debugging, the data is injected into the controller rapid prototype for the whole vehicle VIL test. Among them, the whole vehicle VIL test is a full-scale scenario test in the development stage and a specific reproduction scenario test in the mass production stage. The requirements of different stages of model testing are realized. For details, please see below:
[0049] Combination Figure 2 The schematic diagram of the algorithm VIL test shows that the VIL test includes a test vehicle and a simulated vehicle: the test vehicle is a real vehicle, located in a real closed test site, and the controller used is a rapid prototype in the early stage to achieve early real vehicle testing, which can be replaced by a physical controller at the end of the project; the simulated vehicle is a virtual vehicle in the simulation software, located in a virtual scene, which is a test scene loaded in the cloud scene library. The simulated vehicle is equipped with a true radar sensor as test data for test evaluation. The millimeter-wave radar signal is simulated by the bus through the simulation platform and transmitted to the controller (the radar data is measured by the simulated true sensor and transmitted to the controller through the CAN network), and the camera signal and laser point cloud can be obtained through the cloud and injected into the controller and the simulation platform.
[0050] Specifically, the controller rapid prototype obtains the lidar point cloud data and video scene data from the cloud scene library through the injection device, and sends them to the camera signal end and the lidar signal end. After that, the controller rapid prototype deploying the algorithm model perceives and fuses the injected camera signal and radar signal, makes a decision, and issues control instructions to the test vehicle, including brake, accelerator, and steering signals. The actuator of the test vehicle executes the corresponding control strategy.
[0051] The camera video and LiDAR point cloud are processed synchronously during the acquisition process. The sparse LiDAR point cloud data can be enriched and enhanced through dynamic point cloud overlay. The camera video style transfer processing and rain and fog weather overlay can realize enhanced testing under camera perception intervention.
[0052] Afterwards, the motion state of the test vehicle based on the control strategy, that is, the driving position relative to the origin, can be transmitted to the simulation vehicle through the inertial navigation system, thereby realizing the linkage between the simulation vehicle and the test vehicle. Afterwards, in the following step S4, the simulation platform performs test evaluation based on the driving state and test data of the simulation vehicle and the true value data loaded from the cloud through threshold comparison.
[0053] Step S4: using preset thresholds to perform multi-dimensional evaluation on the test results of the real vehicle-in-the-loop simulation test, and retesting the critical test results after scenario enhancement;
[0054] Step S5: After the autonomous driving algorithm is optimized and passes the evaluation, it is deployed on the vehicle side to complete the algorithm iteration closed loop.
[0055] You can refer to Figure 3 Schematic diagram of model algorithm testing and evaluation:
[0056] Among them, the true value data can be input through the imported cloud true value data and the data measured by the simulated radar sensor. Specifically, the true value data imported from the cloud includes lane line information, traffic sign information, etc.; the simulated radar sensor data mainly includes target object information.
[0057] Among them, the test data includes vehicle data and distance data. Specifically, vehicle data includes vehicle speed, heading angle, acceleration / deceleration, throttle position, pedal position, etc., which can be obtained through the real vehicle CAN network; distance data is obtained through the simulated radar true value, including the distance to the vehicle in front / pedestrian, the minimum vehicle distance for entering the scene, and the position of deviation from the center line of the lane.
[0058] The evaluation of the test data results through threshold setting includes dimensions such as safety, accuracy, smoothness, and violations. In actual operation, the threshold setting can specifically include threshold 1 and threshold 2, where threshold 1 is the lower limit and threshold 2 is the upper limit. When it is lower than threshold 1, it means that the model performance is good under the current working conditions; when it is higher than threshold 2, it means that the model performance is poor and unacceptable under the current working conditions; and when it is between threshold 1 and threshold 2 (that is, the aforementioned critical situation), it means that there is a certain risk in the current working conditions. On the one hand, it can trigger a threshold reminder, and strengthen the scene through cloud scene parameter adjustment, and retest the algorithm performance under established extreme conditions. That is to say, if the VIL test results are at the edge of the evaluation standard, the scene can be strengthened from the cloud, that is, all parameters that affect the evaluation dimension standard can be comprehensively strengthened and reloaded to the VIL vehicle for enhanced testing.
[0059] When the VIL test results do not meet the design requirements, the algorithm needs to be optimized, debugged and re-verified until it meets the design requirements and is deployed on the vehicle side. Here, the aforementioned process can be combined. For the special working conditions of mass-produced vehicles, when the algorithm needs to be optimized, the upload → VIL retest → model algorithm optimization → deployment process can also be triggered according to the special working conditions to achieve rapid iteration of the algorithm. As mentioned above, it should be emphasized again that the VIL test scenarios of the present invention are all from actual vehicle collection and generalized scenarios. The long-tail parameters of the scenarios can be set through scene editing, and the real vehicle can simulate extreme working conditions through aggressive driving operations to achieve special scenario testing and meet the algorithm testing requirements of special scenario conditions and different driving styles.
[0060] In summary, the main design concept of the present invention is to quickly adopt cloud scenarios for testing under the actual vehicle dynamics performance. The test scenarios come from real collected data and mass-produced vehicle triggered upload data, and the scenarios are rich through generalization, which is in line with reality and has high coverage of long-tail scenarios, and can quickly and accurately verify the rationality and accuracy of the model; in addition, the mass-produced vehicle data collection includes shadow mode and one-key trigger mode, covering built-in dangerous scene uploads, and unreasonable scene uploads that the driver considers, which is conducive to optimizing the model more reasonably through model optimization and VIL testing. Furthermore, the thresholds for test evaluation are set with upper and lower limits, and for critical test results, the scenarios are enhanced from the cloud, and the VIL test vehicle is loaded for retesting, and can be combined with real vehicle driving to achieve enhanced VIL testing. The present invention completes the algorithm test closed loop based on a rich database of measured scenarios, solves the timeliness and comprehensiveness problems of algorithm testing, and combines the qualification evaluation method and the enhanced test method to achieve comprehensive testing and rapid iteration of the algorithm.
[0061] If the expressions expressing orientation are mentioned in the embodiments of the present invention, they are relative concepts based on the embodiments. In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b, c can be single or multiple.
[0062] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. An iterative method for advanced driver assistance algorithms, It is characterized in that include: Based on the data collected by the test vehicle and the production vehicle, the test scenario data is obtained; the production vehicle data collection method includes automatic sampling and manual sampling; After preprocessing the test scenario data, perform data annotation and data enhancement processing; After in-loop testing and debugging of the autonomous driving algorithm, use the annotated and enhanced test scenario data to conduct in-loop simulation testing of the autonomous driving algorithm on a real vehicle; Use preset thresholds to conduct multi-dimensional evaluation of the test results of the real vehicle-in-the-loop simulation test, and retest the critical test results after scenario enhancement; After the autonomous driving algorithm is optimized and passes the evaluation, it will be deployed on the vehicle.
2. The advanced driver assistance algorithm iteration method according to claim 1, It is characterized in that The automatic sampling and manual sampling are set to shadow mode and one-key trigger mode respectively; among them, the shadow mode is a built-in trigger mode, which automatically triggers the capture of scene data when the scene is a preset scene; the one-key trigger mode is that the user can capture the required scene data through button instructions.
3. The advanced driver assistance algorithm iteration method according to claim 2, It is characterized in that The one-key trigger mode includes: After manually providing instructions, the user is asked whether to capture scene data and upload it; If the upload is confirmed, the data of the specified time period before and after the instruction is provided will be collected, and the required scene will be captured from it; If you confirm not to upload or there is no response after waiting for the preset time, exit the one-key trigger mode.
4. The advanced driver assistance algorithm iteration method according to claim 1, It is characterized in that The real vehicle-in-the-loop simulation test includes: The controller obtains point cloud data and video data from the cloud, and the millimeter wave radar signal is bus-simulated through the simulation platform and transmitted to the controller; The controller senses and fuses the injected radar signal and camera signal, makes a decision, and issues a control command to the test vehicle to execute the corresponding control strategy. The motion state of the test vehicle based on the actual execution of the control strategy is transmitted to the simulation vehicle through the inertial navigation system, realizing the linkage between the simulation vehicle and the test vehicle; Among them, the test vehicle is a real vehicle, which is located in a real closed test site; the simulated vehicle is a virtual vehicle in a simulation platform, which is located in a virtual test scene provided by the cloud, and the simulated vehicle is equipped with a true value radar sensor as test data for test evaluation.
5. The advanced driver assistance algorithm iteration method according to claim 4, It is characterized in that The real vehicle-in-the-loop simulation test also includes: The video data provided by the camera and the point cloud data provided by the lidar are time-synchronized during the acquisition process; and Enhance the laser radar point cloud data through dynamic point cloud overlay; The perception of camera videos is enhanced by transferring the style of the camera videos and superimposing the weather.
6. The advanced driver assistance algorithm iteration method according to claim 1, It is characterized in that The retesting of the critical test results after scenario reinforcement includes: When the evaluation is between the preset upper and lower thresholds, the test scenario is strengthened through cloud-based parameter adjustment, where the parameter adjustment refers to comprehensive strengthening of all parameters that affect the evaluation criteria; The enhanced test scenario is reloaded onto the vehicle side, and the real vehicle in-the-loop simulation enhanced test is performed again.
7. The advanced driver assistance algorithm iteration method according to any one of claims 1 to 6, It is characterized in that The data annotation and data enhancement processing includes: After preprocessing the test scene data, the camera video and radar point cloud data are annotated, and the annotated content includes at least one of the following: lane lines, traffic signs, vehicles, and pedestrians; The annotation information is stored in the cloud together with the video and point cloud data as the test truth value; The labeled scene data is enhanced from two dimensions: static scene information and dynamic target information.
