Automatic driving loss assessment method and device
By correcting the loss value of the observation object based on the actual driving scene in the autonomous driving algorithm evaluation, and using the context-aware weighting method, the bias problem of the general evaluation method in specific driving fields is solved, and the algorithm performance and evaluation accuracy are improved.
Patent Information
- Application Number
- CN202180004560.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-04-27
AI Technical Summary
Existing autonomous driving algorithm evaluation methods are used in general settings, resulting in algorithm performance not being optimally optimized in specific driving fields and causing bias.
By classifying or locating the observed objects, and correcting the loss value of each observed object based on the real scene in actual driving, using a context-aware weighting method, such as multi-classification logical loss value and regression based on the category, size or distance of the object. Loss values are weighted.
It improves the performance of the algorithm in actual driving scenarios, provides more practical evaluation results, and enhances the accuracy and effectiveness of the evaluation of autonomous driving algorithms.
Smart Images

Figure CN114945953B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of algorithm evaluation in autonomous driving, and in particular to a loss assessment method and device for autonomous driving. Background Art
[0002] Currently, the evaluation of algorithms in autonomous driving, especially learning algorithms, relies heavily on some near-standard and publicly available algorithms or matrices that are widely used by the algorithm in question. For example, object detection algorithms are evaluated in a fairly general setting rather than in a specific driving domain.
[0003] Typical evaluation methods for target algorithms perform better in general settings than in the driving domain. Although these algorithms are usually trained and tracked using driving data, the methods used in general evaluation are not consistent with the algorithms used in autonomous driving scenarios. This results in a suboptimal solution to improve the performance of the algorithm based on the actual situation in the driving domain.
[0004] It should be noted that the contents disclosed in the background of the present invention are only used to enhance the understanding of the background of the present invention, and are not and should not be understood as an acknowledgement or any form of suggestion of the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The embodiments of the present invention provide a loss assessment method and device for autonomous driving, aiming to solve the problem of deviation in algorithms used in autonomous driving scenarios when using general assessment methods.
[0006] According to an embodiment of the present invention, a loss assessment method for autonomous driving is provided, the method comprising: classifying or locating an observed object, the observed object referring to a task of an autonomous driving model; and correcting the loss value of each observed object based on real scenarios in actual driving.
[0007] In an exemplary embodiment, correcting the loss value of each observation object includes: correcting the multi-classification logistic loss value or the cross entropy loss value of each observation object.
[0008] In an exemplary embodiment, the multi-classification logistic loss value or cross entropy loss value of each observation object is corrected by the following formula:
[0009]
[0010] Among them, L o Represents the loss value of the observed object o; W o represents the context weight of the observation object o; M represents the number of categories; log represents the natural logarithm; P o,c Indicates the predicted probability of the observed object o being category c; yo,c represents a binary indicator 0 or 1, if c is the correct class label for observation o, then y o,c The value of is 1, otherwise, y o,c The value of is 0.
[0011] In an exemplary embodiment, the weight W o Are context-aware and defined by the class, size, or distance of an object.
[0012] In an exemplary embodiment, correcting the loss value of each observation object includes: correcting the regression loss value of each observation object.
[0013] In an exemplary embodiment, the regression loss value of each observation object is corrected by the following formula:
[0014] L' loc =w o ·L loc ,
[0015] Among them, L loc Represents the positioning loss value of each observation object; W o Represents the context weight of the observation object o.
[0016] In an exemplary embodiment, based on real scenes in actual driving, correcting the loss value of each observed object includes: weighting the loss value from the error based on the distance from the object to the observer, wherein the farther the object is, the smaller the loss value caused by the error object.
[0017] In an exemplary embodiment, based on real scenes in actual driving, correcting the loss value of each observed object includes: weighting the loss value according to the category of the object, wherein the loss value caused by the classification error of pedestrians is higher than that of vehicles.
[0018] In an exemplary embodiment, based on real scenes in actual driving, correcting the loss value of each observed object includes: increasing the loss value of the error object based on the scene, wherein the loss value caused by the recognition error of pedestrians on the crosswalk is higher than that of pedestrians on the sidewalk.
[0019] In an exemplary embodiment, based on real scenarios in actual driving, correcting the loss value of each observed object includes: for a learning-based action algorithm, a collision causes a greater loss value to a human than to other objects.
[0020] According to another embodiment of the present invention, a loss assessment device for autonomous driving is provided. The device may include: an autonomous driving module for classifying or locating an observed object, where the observed object refers to a task of an autonomous driving model; and a correction module for correcting the loss value of each observed object based on a real scene in actual driving.
[0021] According to an embodiment of the present invention, a non-volatile computer-readable storage medium is provided. The program is stored in the non-volatile computer-readable storage medium and can implement the steps of the method in the above embodiment when executed by a computer.
[0022] According to an embodiment of the present invention, an automatic vehicle is provided, which includes the automatic driving loss assessment device provided in the above embodiment.
[0023] Based on the above embodiments of the present invention, in the concepts of the above embodiments, real values of real scenes can be used in the evaluation of autonomous driving algorithms; and deviations in the algorithms used in autonomous driving scenarios evaluated using general evaluation methods can be corrected. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings described herein provide further understanding of the present application and form a part of the present application. The illustrative embodiments of the present application and their description are only used to explain the present application and are not intended to limit the present application.
[0025] Figure 1 A flow chart of a method for loss assessment of autonomous driving provided by an embodiment of the present application is shown;
[0026] Figure 2 A block diagram of a device structure for loss assessment of autonomous driving provided by another embodiment of the present application is shown; and
[0027] Figure 3 A structural block diagram of an automatic vehicle provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be understood that the embodiments and features in the embodiments in the present application can be combined without conflict.
[0029] Example 1
[0030] This embodiment provides a loss assessment method for autonomous driving. This embodiment has modified the assessment method so that the assessment they establish has more specific physical meaning, for example, the misdetection of a distant object is less serious than that of a nearby object. Similarly, if both are in the same location, the classification error of a pedestrian is much more serious than that of a rigid body. This new concept is an improvement on the existing algorithm evaluation and can take into account real-life scenarios in actual driving. Therefore, these assessments combined with the algorithms will be better suited for actual use in the driving field.
[0031] like Figure 1 As shown, the method includes the following steps.
[0032] S102, classifying or locating an observation object, where the observation object refers to a task of the autonomous driving model;
[0033] S104, based on the real scene in actual driving, correct the loss value of each observed object.
[0034] In this embodiment, step S102 may include: correcting the multi-classification logistic loss value or cross entropy loss value of each observation object.
[0035] In this embodiment, the multi-classification logistic loss value or cross entropy loss value of each observation object is corrected by the following formula:
[0036]
[0037] Among them, L o Represents the loss value of the observed object o; W o represents the context weight of the observation object o; M represents the number of categories; log represents the natural logarithm; P o,c Indicates the predicted probability of the observed object o being category c; y o,c represents a binary indicator 0 or 1, if c is the correct class label for observation o, then y o,c The value of is 1, otherwise, y o,c The value of is 0.
[0038] In this embodiment, the weighted W o Are context-aware and defined by the class, size, or distance of an object.
[0039] In this embodiment, step S104 may include: correcting the regression loss value of each observed object.
[0040] In this embodiment, the regression loss value of each observation object is corrected by the following formula:
[0041] L' loc =w o ·L loc ,
[0042] Among them, L loc Represents the positioning loss value of each observed object; W o Represents the context weight of the observation object o.
[0043] In this embodiment, step S104 may include: weighting the loss value from the error based on the distance from the object to the observer, wherein the farther the object is, the smaller the loss value caused by the error object.
[0044] In this embodiment, step S104 may include: weighting the loss value according to the category of the object, wherein the loss value caused by the classification error of the pedestrian is higher than that of the vehicle.
[0045] In this embodiment, step S104 may include: increasing the loss value of the error object based on the scene, wherein the loss value caused by the recognition error of the pedestrian on the crosswalk is higher than that of the pedestrian on the sidewalk.
[0046] In this embodiment, step S104 may include: for the learning-based motion algorithm, the loss value caused by the collision to a person is higher than that to other objects.
[0047] Example 2
[0048] The basic strategy of this embodiment is to cyclically target data-driven algorithm training or refine data, and introduce various possibilities of actual use into algorithm evaluation in the driving field, which helps to enhance algorithm performance and limit its functional characteristics and side effects to a smaller range.
[0049] In this embodiment, it is assumed that the target algorithm is data-driven and can be tracked and refined through a training process with a properly defined loss function as the main evaluation matrix.
[0050] Traditional loss and evaluation matrices ignore many differences, including but not limited to the following factors. This application proposes some new concepts to be considered during algorithm implementation and when evaluating them in the driving domain.
[0051] 1) Weight the loss value (ratio) from the error according to the distance of the target from the observer. A natural example is that the farther the wrong target is, the smaller the loss value.
[0052] 2) The loss is weighted according to the classification of the object. For example, misclassifying a pedestrian will result in a higher loss (and thus incur a penalty) than misclassifying a vehicle ahead.
[0053] 3) Consider the scene and semantics and increase the loss value of the erroneous object. For example, the recognition error of a pedestrian on a crosswalk will result in a higher loss value than that of a pedestrian on a sidewalk.
[0054] 4) For learning-based motion algorithms, collisions with people will result in greater algorithm loss values.
[0055] In this embodiment, by incorporating this new concept into the field of autonomous driving, the evaluation of the algorithms being used can be enhanced, so that more meaningful data models can be obtained when the algorithms return, ultimately achieving better algorithm performance and improving product and customer experience.
[0056] Example 3
[0057] This embodiment provides a specific implementation of loss assessment.
[0058] This embodiment corrects the loss (object) function by example (using the concept of this application to train a better model):
[0059] 1. Use multi-class classification as a task or subtask of the model.
[0060] Assume that the original multi-classification logistic loss or cross entropy loss for each observation (each sample) is defined as (according to current practice):
[0061]
[0062] in:
[0063] M - the number of categories
[0064] log―natural logarithmlogy o,c
[0065] y o,c represents a binary indicator (0 or 1), where 1 indicates if c is the correct class label for observation o
[0066] p o,c ―The predicted probability of the observation value o is the category
[0067] In this embodiment, according to the technical solution of the present disclosure, the loss value of each observed object is expanded to:
[0068]
[0069] in:
[0070] L o ―The loss value of observation o
[0071] w o ―Context weight of observation o
[0072] w o ― is the main concept of this application. The weighting is context-aware and can be flexibly defined, e.g.
[0073] w pedestrain >w bike >w truck >w car (by class),―or―
[0074] w small_object >w medium_object >w large_object (by size),―or―
[0075] w near_object >w middle_object >w farther_object (by distance)
[0076] 2. Localizing objects as a task or subtask of the target model (e.g., identifying the bounding box of an object in a camera view / image)
[0077] Assume that the original regression loss value (L1 or L2 regression loss value) or the target of the bounding box of each sample object is defined as (according to current / previous practice):
[0078]
[0079] loc-localization
[0080] bbox - bounding box
[0081] Corners—shape corners
[0082] Ctr,w,h―centers,width,height
[0083] L1 / 2_regression―Level 1 / 2regression termo―observation's predictionover th
[0084] e points―or―dimensionsc―observation's ground truth of the points
[0085] ―or―dimensions
[0086] In this embodiment, according to the technical solution of the present disclosure, it can be expanded (each term L loc )for:
[0087] L' loc =w o ·L loc
[0088] in:
[0089] L loc ―Localization loss for each observation
[0090] w o ―Context weight of observation o
[0091] w o ― is the main concept of this application;
[0092] As above, the weighting is context-aware and can be flexibly defined
[0093] Example 4
[0094] This embodiment provides a loss assessment device for autonomous driving. The device is suitable for loss assessment of autonomous driving, and is used to execute the above embodiment in a preferred implementation mode. What has been described is not repeated here. For example, the term "module" below can be a combination of software and / or hardware that implements a predetermined function. The device described in the following embodiments can preferably be implemented by software, or by hardware or a combination of software and hardware.
[0095] Figure 2 FIG. 1 shows a structural block diagram of a loss assessment device for autonomous driving provided in an embodiment of the present application. Figure 2 As shown, the device 100 includes an automatic driving module 10 and a correction module 20 .
[0096] The autonomous driving module 10 is used to classify or locate an observation object, where the observation object refers to a task of the autonomous driving model.
[0097] The correction module 20 is used to correct the loss value of each observed object based on the real scene in actual driving.
[0098] In this embodiment, the device improves upon existing algorithm evaluations to take into account real-world scenarios in actual driving, so that these evaluations combined with algorithms are better suited for actual use in the field of driving.
[0099] Example 5
[0100] According to the present embodiment, a non-volatile computer-readable storage medium is provided. The non-volatile computer-readable storage medium stores a program. When the program is executed by a computer, the following steps are performed.
[0101] S1, classify or locate the observed object, which refers to the task of the autonomous driving model;
[0102] S2, based on the real scene in actual driving, correct the loss value of each observed object.
[0103] In one embodiment, the storage medium in this embodiment may include but is not limited to various media capable of storing computer programs, such as a USB flash drive, a read-only memory, a random access memory, a mobile hard disk, a magnetic disk, or an optical disk.
[0104] Example 6
[0105] According to this embodiment, an automatic vehicle is provided. Figure 3 As shown, the automatic vehicle 200 includes the automatic driving loss assessment device provided by the above embodiment. It should be noted that the automatic vehicle in this embodiment can be different types of vehicles.
[0106] Obviously, it should be understood by those of ordinary skill in the art that each module or each step of the present application can be performed by a general-purpose computing device, and these modules or steps can be concentrated on a single computing device or distributed on a network formed by multiple computing devices, and can be implemented by a computer executable program code in an embodiment. Therefore, the module or step can be stored in a storage device to be executed together with a computer. In some cases, the steps shown or described can be performed in an order different from that described in the present application, or separate integrated circuit modules can be formed respectively, or multiple modules or steps therein can form a single integrated circuit module to be executed. Therefore, the present application is not limited to any specific hardware and software combination.
[0107] The above are merely exemplary embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made in accordance with the spirit and principle of the present application should be understood to fall within the scope of protection of the present application.
Claims
1. A method for loss assessment of autonomous driving, characterized in that: include: Classifying or locating an observation object, wherein the observation object refers to a task of the autonomous driving model; Based on the real scenes in actual driving, correct the loss value of each observed object; Based on the real scene in actual driving, the loss value of each observation object is corrected including: The loss is weighted according to the object category, so that the loss caused by misclassification of pedestrians is higher than that of vehicles. Increase the loss value of the error object based on the scene, where the recognition error of pedestrians on the crosswalk will cause a higher loss value than that of pedestrians on the sidewalk; For learning-based action algorithms, collisions give humans larger penalty values than other objects; The loss value is weighted according to the distance, the farther the wrong target is, the smaller the loss value; The correction of the loss value of each observation object includes: Correct the multi-classification logistic loss or cross entropy loss for each observation, and correct the regression loss for each observation.
2. The method according to claim 1, characterized in that: The multi-classification logistic loss or cross entropy loss value of each observation is corrected by the following formula: Among them, L o Represents the loss value of the observed object o; W o represents the context weight of the observation object o; M represents the number of categories; log represents the natural logarithm; P o,c Indicates the predicted probability of the observed object o being category c; y o,c represents a binary indicator 0 or 1, if c is the correct class label for observation o, then y o,c The value of is 1, otherwise, y o,c The value of is 0.
3. The method according to claim 2, characterized in that The W o Are context-aware and defined by the class, size, or distance of an object.
4. The method according to claim 1, characterized in that: The regression loss value of each observation is corrected by the following formula: L' loc =w o ·L loc , Among them, L loc represents the positioning loss value of each observed object; w o Represents the context weight of the observation object o.
5. The method according to claim 1, based on the real scene in actual driving, correcting the loss value of each observed object comprises: The penalty value from the error is weighted based on the distance from the object to the observer, wherein the further away the object is, the smaller the penalty value caused by the error object.
6. A loss assessment device for autonomous driving, characterized in that: include: An autonomous driving module, used to classify or locate an observation object, where the observation object refers to a task of the autonomous driving model; The correction module is used to correct the loss value of each observed object based on the real scene in actual driving; Based on the real scene in actual driving, the loss value of each observation object is corrected including: The loss is weighted according to the object category, so that the loss caused by misclassification of pedestrians is higher than that of vehicles. Increase the loss value of the error object based on the scene, where the recognition error of pedestrians on the crosswalk will cause a higher loss value than that of pedestrians on the sidewalk; For learning-based action algorithms, collisions give humans larger penalty values than other objects; The loss value is weighted according to the distance, the farther the wrong target is, the smaller the loss value; The correction of the loss value of each observation object includes: Correct the multi-classification logistic loss or cross entropy loss for each observation, and correct the regression loss for each observation.
7. A non-volatile computer-readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is executed by a computer, the method according to any one of claims 1 to 5 is implemented.
8. An automatic vehicle, characterized in that: Comprising the device as claimed in claim 6.
Citation Information
Patent Citations
Image detection method, device and computer readable storage medium
CN108376235A
Assisted driving early warning method and system
CN108423006A
A road environment visual perception method based on an improved Faster R-CNN
CN109447018A
A road scene image semantic segmentation method based on importance weighting
CN109740451A
Machine learning system for generating classification data and part localization data for objects depicted in images
US20190073560A1
