Calibrating the uncertainty of an object detector

The method addresses the challenge of calibrating uncertainties in neural networks for object detection by separating calibration from training and optimizing parameters, achieving high accuracy and efficiency for object localization and classification, particularly in safety-critical applications like driver assistance systems.

WO2024200136A1PCT designated stage expired Publication Date: 2024-10-03CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/057366
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-20
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing methods for calibrating uncertainties in neural networks used for object detection, particularly in safety-critical applications like advanced driver assistance systems, face challenges with accuracy and computational efficiency, often leading to over-fitting and sensitivity to outliers.

Method used

A method that separates uncertainty calibration from neural network training, using a separate calibration dataset to optimize calibration parameters through normalization and comparison with an error function, ensuring accurate and efficient uncertainty estimation for object localization and classification, suitable for embedded systems.

Benefits of technology

The method achieves high accuracy and resource efficiency, allowing for precise uncertainty calibration regardless of object size or class, making it suitable for driver assistance systems and other applications like computer vision and medical imaging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024057366_03102024_PF_FP_ABST
    Figure EP2024057366_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The invention relates to a method, in particular a computer-implemented method, for calibrating at least one uncertainty (σ) of a neural network (NN) of an object detector, which neural network (NN) is designed to output, depending on input data, at least one statement (μ) about an object (O) and at least one uncertainty (μ) associated with the statement (μ). The invention also relates to a method for detecting at least one object by means of an object detector comprising a neural network calibrated according to the invention, a computer program, and a computer program product. In the method, calibration data (Ikal) for the neural network (NN) and an indication (Ind) regarding the uncertainty (σ) are provided, and a statement (μ) and the associated uncertainty (σ) are determined by processing the calibration data (Ikal) by means of the neural network (NN) in accordance with parameters for the neural network (NN). Subsequently, the normalised, generated uncertainty (σnor) is compared with a similarly and identically normalised deviation of the statement (μ) of the indication (Ind) using at least one error function (Error), wherein at least one calibration parameter (pkal) is taken into account for the error function (Error), and the calibration parameter (pkal) is optimised based on said comparison.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description

[0002] Calibration of the uncertainty of an object detector

[0003] The present invention relates to a method, in particular a computer-implemented method, for calibrating at least one uncertainty of a neural network of an object detector, a method, in particular a computer-implemented method, for detecting at least one object by means of an object detector comprising a neural network calibrated according to the invention, a computer program for carrying out the method according to the invention and a computer program product on which the method according to the invention is stored.

[0004] When using neural networks for regression or classification, it is often important to determine not only the prediction result but also the uncertainty associated with that prediction. This is especially true in safety-critical situations.

[0005] A prominent example in this context is advanced driver assistance systems (ADAS), where neural networks can be used, for example, to process input data from various sensors, such as radar, lidar, or ultrasonic sensors, as well as cameras. ADAS functions typically provided by ADAS systems can either support the driver while retaining control of the vehicle, or, depending on the level of automation, fully automated driving can be realized.Examples of ADAS functions include various methods for detecting objects or obstacles on the road, methods for detecting lane boundaries and / or keeping the vehicle in a lane, methods for detecting rain on the windshield, or even methods for assisting or executing a parking maneuver. The input data from the respective ADAS sensors used can be subject to a variety of problems, such as insufficient sensor resolution, problematic weather conditions, or rarely occurring scenarios. In addition, certain objects may be obscured by other objects and thus not visible in the input data. In all of these cases, knowledge of the uncertainty of the respective prediction is crucial.

[0006] For example, DE 102020215860A1 discloses a method for correcting input image data from a plurality of cameras of an all-round vision system that is impaired by rain, light, and / or dirt. In this method, input image data captured by the cameras is processed by a trained neural network, which also outputs an uncertainty for the determined image correction. A similar method for correcting input image data from a camera is disclosed in DE 102020215859A1.

[0007] However, neural networks, especially those used for regression tasks—i.e., networks that output continuous values ​​as prediction results—tend to have inaccurate and therefore not directly usable uncertainties. To increase accuracy, calibration or adjustment of the uncertainties is required. This also applies, among other things, to object localization using an object detector, which precedes any object classification. In this case, little or no information is available regarding the confidence of the respective prediction, i.e., its reliability.

[0008] For example, DE102019217300A1 describes a method for training a neural network to output a prediction and associated uncertainty, in which the determined uncertainty is taken into account by the loss function. This ensures that the network determines well-calibrated uncertainties when the distribution of the data to be processed resembles the distribution of the training data. A method specifically for calibrating uncertainties in regression has been described in "Accurate Uncertainties for Deep Learning Using Calibrated Regression" by V. Kuleshov et al., published on arXiv: 1807.00263, 2018 (DOI: https: / / doi.org / 10.48550 / arXiv.1807.00263). However, this method carries the risk of overfitting. Furthermore, it is based on isotonic regression and is therefore comparatively computationally intensive.

[0009] Another method for calibrating uncertainties is described in “Well-calibrated Model Uncertainty with Temperature Scaling for Dropout Variational Inference” by MH. Laves et al., published on arXiv: 1909.13550, 2019 (DOI: https: / / doi.org / 10.48550 / arXiv.1909.13550). This method is less computationally intensive, but can be very sensitive to

[0010] outliers and misassigned variables, which can be particularly relevant for real data sets.

[0011] It would therefore be desirable to provide a method for calibrating uncertainties for object detection that is characterized by high accuracy and high computational efficiency.

[0012] Therefore, the object underlying the invention is to provide a possibility for calibrating uncertainties which is characterized by high accuracy and high computational efficiency.

[0013] The object underlying the invention is achieved by the method according to claim 1, the method according to claim 10, the computer program according to claim 13 and the computer program product according to claim 14.

[0014] With regard to the method, the object underlying the invention is achieved by a method, in particular a computer-implemented method, for calibrating at least one uncertainty of a neural network of an object detector, which neural network is designed to output at least one statement about an object and at least one uncertainty associated with the statement depending on input data. The method comprises the following method steps:

[0015] - Providing calibration data for the neural network,

[0016] - Providing an indication of the uncertainty concerning the statement for all calibration data,

[0017] - Generating a statement and associated uncertainty for all calibration data by processing the calibration data using the neural network in accordance with parameters for the neural network,

[0018] - Normalizing the uncertainty generated for at least one statement,

[0019] - comparing the standardised, generated uncertainty with a likewise and identically standardised deviation of the statement from the indication using at least one error function, whereby at least one calibration parameter is taken into account for the error function, and

[0020] - Optimize the calibration parameter based on the comparison.

[0021] According to the invention, the calibration of the uncertainties is separated from the training of the neural network and is performed downstream of it. The calibration of the uncertainties is carried out using a, in particular, separate, calibration data set.

[0022] In an object detector, objects are first localized and then classified. The object detector thus comprises a localization unit and a classification unit. The present invention relates in particular to the localization of objects and the associated uncertainties regarding object localization.

[0023] The inventive approach offers the advantage of high accuracy combined with resource efficiency. This makes it particularly suitable for use in embedded systems, such as those frequently used in driver assistance systems. Furthermore, the normalization of the generated uncertainties and the deviation of the statement from the indication, i.e., the ground truth, has the advantageous effect that the uncertainties for each statement can be correctly calibrated regardless of the respective object size and object class.

[0024] According to an advantageous embodiment, the neural network is a trained neural network. The method according to the invention can be part of a training method for training the neural network, or it can be a separate method running separately from the training method.

[0025] The neural network can be, for example, a convolutional neural network (CNN), a mixture-density network, a transformer network, a recurrent neural network, a multi-layer perceptron or a generative adversary network.

[0026] In one embodiment, the object detector is an anchor-based, a center-point-based, a multi-stage, a single-stage, a CNN-based, or a transformer-based object detector. For example, it can be a YOLO object detector, an SSD object detector, or an EfficientDet object detector.

[0027] It is advantageous if the statement is a statement about the position of an object, a statement about a property of the object, or a statement about a geometric dimension of the object. The position of the object can, for example, be specified using one or more coordinates for the object. A property of the object is, for example, an object type, and a geometric dimension relates, for example, to its geometric dimensions, its size, cross-sectional area, or a volume of the object. It should be noted, however, that other statements about the object can also be made and fall within the scope of the present invention.

[0028] If multiple statements about an object class and / or statements about multiple object classes are output, calibration is preferably performed separately for each object class and / or for each statement. If the statement is a statement about the position of an object, which is determined by multiple coordinates, each coordinate can be considered a single statement. However, it is also conceivable to combine all coordinates into one statement.

[0029] According to an advantageous embodiment, the uncertainty and the deviation of the statement from the indication are normalized to a geometric dimension of the object, in particular a length, width, height, area, or volume of the object. This has the advantageous effect that different object sizes, aspect ratios, geometric dimensions, and bounding box sizes can be taken into account for the calibration. This can prevent, for example, larger objects or bounding boxes from having a negative influence on the calibration for smaller objects or bounding boxes.

[0030] It is also advantageous if the parameters of the model are optimized by means of an optimization method, in particular by means of an isotonic regression, a gradient method, a Platt scaling method or a histogram binning approach.

[0031] In one embodiment, the error function is a distance metric, in particular a mean square deviation or an absolute deviation. A distance metric is a metric or distance function for a metric space that assigns a non-negative, real value to two elements or points of a space. A distance metric is symmetric and satisfies the triangle inequality. However, the invention can also be used in conjunction with other error functions.

[0032] In this case, it is also advantageous if the calibration parameter includes a scaling factor, which is particularly taken into account for the error function. The scaling factor can be one or more constant scaling factors, a scaling vector, or a scaling matrix. The scaling factor can be taken into account for all predicted uncertainties after calibration is complete. Using scaling, calibration for all predicted uncertainties can be achieved quickly, effectively, and precisely.

[0033] A further advantageous embodiment involves determining a calibration rule, by means of which at least one uncertainty determined by the neural network is calibrated. The calibration rule is thus taken into account, particularly when using the neural network to output the statement and the uncertainty. The rule takes into account the at least one calibration parameter and can include a multiplication by a scalar value or even a model.

[0034] The object underlying the invention is also achieved by a method, in particular a computer-implemented method, for detecting at least one object using an object detector comprising a neural network calibrated according to the invention. The method comprises the following method steps:

[0035] - capturing input data comprising at least one piece of information about the at least one object,

[0036] - Providing the input data as input for the calibrated neural network, which neural network is designed to output at least one statement about the object and at least one uncertainty associated with the statement based on the input,

[0037] - Normalization of uncertainty,

[0038] - Calibration of the normalized uncertainty, and

[0039] - Output the statement and the calibrated, normalized uncertainty for the statement.

[0040] The input data can be acquired using one or more sensors. In the case of a driver assistance system, for example, these are various ADAS sensors. The information about the object is, in particular, its position. The method then concerns object localization. The uncertainty is preferably normalized in the same way as the uncertainties generated during the calibration procedure using the calibration data. In particular, the uncertainty is normalized to a geometric dimension of the object. The calibration of the uncertainty, in turn, is preferably carried out using a previously determined calibration specification.

[0041] In one embodiment, a calibrated, absolute uncertainty is determined and output. To determine the absolute uncertainty, the calibrated, normalized uncertainty can be multiplied by the normalization.

[0042] The method according to the invention for detecting at least one object using an object detector is preferably used for driver assistance systems. However, the method can also be used in other areas, for example, in computer vision or for medical imaging methods. The method for calibrating at least one uncertainty of a neural network of an object detector is also preferably used in connection with a driver assistance system.

[0043] When an object is detected using an object detector in a driver assistance system, statements about at least one object, such as its position or geometric size, are determined using at least one ADAS sensor, such as a camera. The object can be another road user in the vehicle's surroundings, an animal, a road marking, an object in the vehicle's surroundings, or a traffic sign or traffic light. In addition to the statement, an uncertainty for the statement is also determined, calibrated, and output.

[0044] The object underlying the invention is further achieved by a computer program with instructions which, when the computer program is executed by a computer, cause the computer to execute the method according to the invention for calibrating at least one uncertainty of a neural network or the method for detecting at least one object by means of an object detector, depending on one of the described embodiments, and by a computer program product on which the computer program according to the invention is stored.

[0045] The invention is explained in more detail with reference to the following figures. They show:

[0046] Fig. 1 shows a first advantageous embodiment of the method according to the invention, and

[0047] Fig. 2 shows an object detection using a neural network calibrated according to the invention.

[0048] In the figures, identical elements are given the same reference numerals.

[0049] For the advantageous embodiment illustrated in Fig. 1, a pre-trained neural network NN in an object detector is assumed.

[0050] The neural network NN is used to determine a statement p about an object 0 and an uncertainty a associated with the statement. The statement in this case is the position of object 0.

[0051] The uncertainties a output by a neural network (NN) are typically subject to errors and do not correspond to the actual uncertainty. To enable a precise prediction of the uncertainty a, the uncertainties a must be calibrated, which can be performed using the method according to the invention. After calibration, the uncertainty a can be interpreted probabilistically, ie, statements can be made such as that the correct value lies within the predicted uncertainty interval with a probability of 95%.

[0052] For the purpose of calibration, calibration data Ikai are first provided for the neural network NN, as well as an indication Ind for all calibration data Ikai. The calibration data Ikai are processed by the neural network, and a statement p and associated uncertainty a are generated based on the calibration data Ikai. The generated uncertainty <J wird dann normiert und beispielsweise durch einen Normierungsfaktor n geteilt, d.h.

[0053] Likewise, the deviation of the statement p from the indication Ind is normalized with the normalization factor n. The normalized, generated uncertainty a nor is then compared with the normalized deviation of the statement p from indication Ind using an error function Error and at least one calibration parameter pkai is optimized based on the comparison.

[0054] In the case that the error function is a distance metric for which a scaling s is taken into account and if the scaling s is a constant, scalar value, a function based on a mean square deviation can be chosen as the error function Error, which is then given for N detections, for example, by

[0055] Alternatively, an error function Error can be used based on an absolute deviation, which is given by

[0056] Here, A = \Ind - [i\ is the absolute deviation, ie, the difference between the indication Ind and the prediction p. Furthermore, a calibration rule KAL can be determined, which can be used for the embodiment shown here for object localization in the object detector, as illustrated in Fig. 2.

[0057] To localize objects, for the embodiment shown in Fig. 2, information about a vehicle's surroundings, and in particular about at least one object 0 in the vehicle's surroundings, is first acquired using one or more ADAS sensors. This information is provided to the neural network NN as input. The neural network NN is designed to use the input to make a statement about the position P of at least one object and to output an uncertainty o associated with the position. In addition to the position P of the object, which can be given, for example, by its center coordinates, a statement can also be made about a size of the object 0, for example, a length, width, height, area, or volume of the object 0. The uncertainty o output by the network NN is then normalized o norand calibrated according to the calibration specification KAL. The result is a calibrated, normalized uncertainty Okai.nor, from which a calibrated, absolute uncertainty can also be determined.

Claims

Patent claims 1. Method, in particular a computer-implemented method, for calibrating at least one uncertainty (o) of a neural network (NN) of an object detector, which neural network (NN) is designed to output at least one statement (p) about an object (0) and at least one uncertainty (p) associated with the statement (p) depending on input data, comprising the method steps: - Providing calibration data (Ikai) for the neural network (NN), - Providing an indication (Ind) regarding the uncertainty (o) concerning the statement for all calibration data, - Generating a statement and associated uncertainty (o) for all calibration data (Ikai) by processing the calibration data (Ikai) using the neural network (NN) in accordance with parameters for the neural network (NN), - Normalizing the generated uncertainty (o) for at least one statement (p), - Compare the normalized, generated uncertainty (o nor ) with a likewise and identically standardized deviation of the statement (p) of the indication (Ind) using at least one error function (Error), wherein at least one calibration parameter (pkai) is taken into account for the error function (Error), and - Optimize the calibration parameter (pkai) based on the comparison.

2. The method according to claim 1, wherein the neural network (NN) is a trained neural network (NN).

3. The method according to claim 1 or 2, wherein the object detector is an anchor-based, a central point-based, a multi-stage, a single-stage, a CNN-based or a transformer-based object detector.

4. Method according to at least one of the preceding claims, wherein the statement (p) is a statement about a position (P), a property or a geometric size of the object (0).

5. Method according to at least one of the preceding claims, wherein the uncertainty (o) is normalized to a geometric size of the object (0), in particular a length, width, height, area or volume of the object (0).

6. Method according to at least one of the preceding claims, wherein the indication (Ind) is normalized, in particular wherein the indication (Ind) is normalized to a geometric size of the object (0).

7. Method according to at least one of the preceding claims, wherein the parameters of the model are optimized by means of an optimization method, in particular by means of an isotonic regression, a gradient method, a Platt scaling method or a histogram binning method.

8. Method according to at least one of the preceding claims, wherein the error function (Error) is a distance metric, in particular a mean square deviation or an absolute deviation.

9. Method according to at least one of the preceding claims, wherein a calibration rule (KAL) is determined by means of which at least one uncertainty (o) determined by means of the neural network (NN) is calibrated.

10. Method, in particular a computer-implemented method, for detecting at least one object (0) by means of an object detector comprising a neural network (NN) calibrated according to at least one of the preceding claims, comprising the method steps: - capturing input data (input) comprising at least one piece of information about the at least one object (0), - Providing the input data (input) as input for the calibrated neural network, which neural network is designed (NN) to output at least one statement (p) about the object (0) and at least one uncertainty (o) associated with the statement based on the input, - Normalization of uncertainty (o), - Calibration of the normalized uncertainty (Onor), and - Output the statement (p) and the calibrated, normalized uncertainty (Okal ,nor ) for the statement (p).

11. The method of claim 10, wherein a calibrated absolute uncertainty is determined and output.

12. Use of the method according to claim 10 or 11 or of the method according to one of claims 1-9 for a driver assistance system.

13. A computer program comprising instructions which, when the computer program is executed by a computer, cause the computer to carry out the method according to any one of claims 10 or 11 or the method according to any one of claims 1-9.

14. A computer program product on which the computer program according to claim 13 is stored.

Citation Information

Patent Citations

  • Method for training an artificial neural network, computer program, storage medium, device, artificial neural network and application of the artificial neural network

    DE102019217300A1

  • Correction of camera images in case of rain, light exposure and dirt

    DE102020215859A1

  • Correction of images from a 360° camera system in case of rain, light exposure and dirt.

    DE102020215860A1