Further processing of probability distributions using non-linear functions

DE102023201735A1Pending Publication Date: 2024-08-29AUMOVIO AUTONOMOUS MOBILITY GERMANY GMBH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE102023201735
Authority / Receiving Office
DE · DE
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-29

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention relates to a method, in particular a computer-implemented method, for further processing a, in particular parametric, probability distribution (ω) for a predeterminable variable (x), which further processing comprises at least one further processing step using a non-linear, invertible and differentiable transformation function (T), a computer program for carrying out the inventive method, and a computer-readable storage medium. The method comprises the following method steps: - providing the probability distribution (w(x)), - determining a transformed probability distribution (ω(y)) by applying the method of a normalized flow (NF) based on the transformation function (T), and - outputting the transformed probability distribution (w(y)).
Need to check novelty before this filing date? Find Prior Art

Description

The present invention relates to a method, in particular a computer-implemented method, for further processing a, in particular parametric, probability distribution for a predeterminable variable, which further processing comprises at least one further processing step using a non-linear, invertible and differentiable transformation function, a computer program for carrying out the method according to the invention and a computer-readable medium on which the computer program is stored. In many cases, input and / or output variables for calculations are not provided in the form of singular values. Rather, probability distributions for the respective variables are used. However, the mathematical processing of probability distributions is not straightforward, especially when the required processing steps involve the use of nonlinear functions. A prominent example of such a case can be found in the field of object detectors. In object detectors, it is often desirable to know or determine the uncertainty of the object detector. Accordingly, detected objects are not specified in the form of scalar values, but rather using distribution functions. A calculation of the location or coordinates of the detected object following detection is often performed, at least in part, using nonlinear functions, such as exponential functions, especially in the case of anchor-based object detectors. If a probability distribution is the starting point for a further calculation or analysis, often only the mean values of the probability distributions are used for the respective calculation. This means, however, that a large part of the information contained in the distribution is lost. It has also become known to further process variances of the distribution analogously to the mean values. However, such an approach is mathematically incorrect and can actually lead to incorrect results. Both approaches are nevertheless widely used for object detectors. Furthermore, probability distributions for certain variables, especially output variables, are often only considered with regard to certain partial aspects, for example in the context of training neural networks that are designed to perform specific tasks. Here, too, valuable information inherent in the respective distribution is lost. From the article "Uncertainty estimation for deep neural object detectors in safety-critical applications" by MT Le et al., published in 2018 in the 21st International Conference on Intelligent Transportation Systems (ITSC), pp. 2873-3878 (doi: 10.1109 / ITSC.2018.8569637 ), a method for taking uncertainties into account in object detectors has become known. Using the probability distribution in the form of a normal distribution, a predefined set of values is determined for the respective variable under consideration. These values are further processed using the non-linear function, and then a mean and variance are calculated for the further processed variables. However, such an approach requires a high level of computing power due to the large number of values required for each variable under consideration.If, on the other hand, the number of values for each considered quantity is minimized, this disadvantageously leads to low reproducibility and low accuracy. Accordingly, the object of the present invention is to provide a way to solve the problems mentioned in the further processing of probability distributions. This object is achieved by the method according to claim 1, the computer program according to claim 10 and the computer-readable storage medium according to claim 11. With regard to the method, the object underlying the invention is achieved by a method, in particular a computer-implemented method, for further processing a, in particular parametric, probability distribution for a predeterminable variable, which further processing comprises at least one further processing step using a non-linear, invertible, and differentiable transformation function. The method comprises the following method steps: - Providing the probability distribution, - Determining a transformed probability distribution by applying the method of a normalized flow based on the transformation function, and - Outputting the transformed probability distribution. The method according to the invention can be used whenever a probability distribution is the starting point for a calculation based on a non-linear function. The method enables the mathematically exact propagation of a probability distribution using a transformation function. Within the context of the present invention, a transformation function is understood to be any function suitable for further processing the specified variable that is non-linear, invertible, and differentiable. The proposed method allows for further processing of the probability distribution in a simple, exact, and efficient manner. It also requires comparatively low computing power to implement it. The normalized flow method is described in the article "Normalizing flows: An introduction and review of current methods" by I. Kobyzev et al., published in 2020 in IEEE transactions on pattern analysis and machine intelligence, 43(11):3964-3979 (doi: https: / / doi.org / 10.1109 / TPAMI.2020.2992934). It is a generative model from the field of machine learning for generating parameterizable probability distributions. In the context of the present invention, this method is, in principle, misused and applied to propagate probability distributions using non-linear functions. In this way, the problems associated with non-linear functions in processing probability distributions can be cleverly avoided. The present invention is not limited to a specific field of application. Furthermore, one or more transformation functions can be used during further processing. Furthermore, a mean and a variance of the transformed probability distribution can be calculated if necessary. Some particularly preferred embodiments and uses of the method according to the invention are described in more detail below. The normalized flow method advantageously allows probability distributions to be processed using one or more bijective functions, which are created from the nonlinear functions as a chain of transformations (bijection). These transformations can then be applied directly to the probability distribution to obtain the transformed probability distribution. For example, a mean and / or variance can be determined directly for the transformed probability distribution. It is advantageous if the transformed probability distribution is determined using the transformation theorem (changing variables). In particular, a scaling factor for the transformed probability distribution is calculated using a determinant of a Jacobian matrix of an inverse of the transformation function. According to an advantageous embodiment of the method according to the invention, the predeterminable quantity is a geometric quantity relating to the coordinates of an object, for example, in a predeterminable coordinate system in space or in an image, i.e., the position of the object, coordinates of an optical flow, or coordinates of a spatial depth. It can also be a density. According to a further preferred embodiment of the method according to the invention, an output of a neural network is used as the predeterminable variable and / or probability distribution for the predeterminable variable. In this case, the output of the neural network is post-processed using a non-linear function. The neural network is preferably configured to output the respective predeterminable variable or the probability distribution for the variable and has been trained accordingly, for example, through a supervised, semi-supervised, or unsupervised learning process using suitable training data. It is advantageous if the network is a convolutional neural network (CNN), a mixture-density network, a transformer network, a recurrent neural network (RNN), a multilayer perceptron (MLP) or a generative adversial network (GAN). The neural network is preferably a network constructed from several layers, with the outputs of individual or multiple layers representing probability distributions. It is also advantageous if the neural network is part of an object detector, in particular an anchor-based object detector. An object detector is used to detect and localize an object based on suitable input data, for example, based on image data containing the object. With an anchor-based object detector, for example, offsets of the object's position relative to one or more predeterminable anchors are determined, and the position of the object is subsequently determined from these offsets and the coordinates of the anchors. In particular, coordinates of the object are determined, for example, the center coordinates of the object as well as the height and width of the object. It is also advantageous if at least one processing step of the further processing is part of the object detector. In the case of an anchor-based object detector, the at least one processing step can, for example, include determining the coordinates of the object based on the offsets and the coordinates of the anchors. A further embodiment of the method according to the invention includes the probability distribution being a parameterizable distribution, in particular a Gaussian distribution, a Laplace distribution, or a Cauchy distribution. A parameterizable probability distribution is a distribution that can be precisely described based on its parameters. The method according to the invention according to one of the described embodiments is preferably used for object detection, particularly in three dimensions. However, the method according to the invention is generally applicable in many different technology fields, for example, in the field of driver assistance systems, in the field of autonomous driving, in robotics, in computer vision, and also in image processing in medicine. The object underlying the invention is further achieved by a computer program comprising instructions which, when executed by a computer, cause the computer to execute the inventive method according to one of the described embodiments. The computer program can be either a separate computer program relating to the inventive method or part of a larger computer program that further processes a probability distribution using a non-linear function, for example, relating to an object detector. The object underlying the invention is further achieved by a computer-readable medium on which the computer program according to the invention is stored. The embodiments described in connection with the method according to the invention are also applicable, mutatis mutandis, to the computer program according to the invention and to the computer-readable storage medium. The invention and its advantageous embodiments are described in more detail with reference to the following figures. Figure 1 shows a flowchart for the method according to the invention; Figure 2 shows a flowchart for the method according to the invention in the context of an anchor-based object detector. The method according to the invention offers a precise and efficient solution for further processing probability distributions using non-linear functions, as illustrated in Fig. 1. The starting point for the method according to the invention is a probability distribution w(x) for a quantity x, which may, for example, but not necessarily, be the coordinates of an object in space. The probability distribution w(x) can, for example, be a normal distribution, which can be characterized by a mean µx and a variance. For further processing, the distribution function w(x) is to be passed through a non-linear, invertible, and differentiable transformation function T. In order to be able to carry out this non-trivial further processing with mathematical precision, the method of a normalized flow NF is used according to the invention based on the transformation function T, and a transformed probability distribution ω(y) is calculated. The transformed probability distribution ω(y) can be determined, for example, by calculating a determinant of a Jacobian matrix of an inverse of the transformation function T as the scaling factor, where T-1 denotes the inverse of the transformation function T, DT-1(y) denotes its Jacobian matrix, and det, in turn, its determinant. For the transformed probability distribution ω(y), a transformed mean µy and a transformed variance can then be calculated directly. In the following, the method according to the invention is explained in more detail, without limiting its generality, using Fig. 2 as an example of an anchor-based object detector OD for detecting objects for a driver assistance system. In this case, the predeterminable quantity or quantities are, for example, the coordinates of an object, i.e., the position of an object, for example, in space, or one or more quantities related to the position of the object. In driver assistance systems, data about the vehicle's surroundings is collected (input) for object detection using various sensors, such as cameras, ultrasound, radar, and / or LIDAR sensors. The quality of the collected data, especially image data, depends crucially on the environmental conditions, particularly weather conditions, lighting conditions, occlusion, or rare scenarios. The detection accuracy of the respective detector therefore also depends to a large extent on these environmental conditions. This inaccuracy regarding object detection is generally referred to as aleatoric uncertainty and is often integrated into the respective detector using loss attenuation and when predicting the position of an object. However, other uncertainties regarding the detection of the respective position of an object can also be taken into account. Anchor-based object detectors, such as the EfficientDet detector, the Single-Shot Detector (SSD), and the YOLO detector, are well known in the art. The EfficientDet detector, for example, is described in "EfficientDet: Scalable and efficient object detection" by M. Tan et al., published in 2020 in Proceedings of the IEEE / CVF conference on computer vision and pattern recognition, pp. 10781–10790 (doi: https: / / doi.org / 10.48550 / arXiv.1911.09070). The single-shot detector is described in “Single shot multibox detector” by W. Liu et al., published in 2016 in European conference on computer vision, pp. 21-73, Springer (doi: https: / / doi.org / 10.1007 / 978-3-319-46448-0_2), and the YOLOv3 detector is described in “Yolov3: An incremental improvement” by J. Redmann and A. Farhadi, published in 2018 on arXIv (doi: https: / / doi.org / 10.48550 / arXiv.1804.02767). In anchor-based object detectors, the position of an object Po is typically expressed using its center coordinates x, y, as well as a width w and a height h. In the case of the EfficientDet detector, for example, an object position PO,del is first predicted using the neural network NN, and mean values µ and variances σ2 for the center coordinates x̂, ŷ, as well as an object width ŵ and an object height ĥ of the object to be detected are determined relative to predefined anchor coordinates xa, ya, wa, ha. These are then transformed into the object coordinates x, y, w, h using the anchor coordinates xa, ya, wa, ha as follows: The transformation rules for the object position Po(x, y, w, h) can be reformulated to apply the normalized flow method as transformations for two normal distributions and two log-normal distributions, or for four normal distributions and an exponential transformation applied to two of the normal distributions. Let g1(y) and g2(y) be two invertible functions, then the normal distributions for width w and height h can be given as follows: These transformation rules can be implemented, for example, using bijective functions, which represent differentiable and invertible functions. QUOTES CONTAINED IN THE DESCRIPTION This list of documents submitted by the applicant was generated automatically and is included solely for the convenience of the reader. This list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions. Cited non-patent literature M. T. Le et al., erschienen 2018 in 21stInternational Conference on Intelligent Transportation Systems (ITSC), S. 2873-3878 (doi: 10.1109 / ITSC.2018.8569637

[0005] „Normalizing flows: An introduction and review of current methods" von I. Kobyzev et al., erschienen 2020 in IEEE transactions on pattern analysis and machine intelligence, 43(11):3964-3979 (doi: https: / / doi.org / 10.1109 / TPAMI.2020.2992934)

[0010] „EfficientDet: Scalable and efficient object detection" von M. Tan et al., erschienen 2020 in Proceedings oft he IEEE / CVF conference on computer vision and pattern recognition, S. 10781-10790 (doi: https: / / doi.org / 10.48550 / arXiv.1911.09070)

[0030] „Single shot multibox detector" von W. Liu et al., erschienen 2016 in European conference on computer vision, S. 21-73

[0030]

Claims

Method, in particular a computer-implemented method, for further processing a, in particular parametric, probability distribution (ω) for a predeterminable variable (x), which further processing has at least one further processing step using a non-linear, invertible and differentiable transformation function (T), wherein the method comprises the following method steps:- providing the probability distribution (w(x)),- determining a transformed probability distribution (ω(y)) by applying the method of a normalized flow (NF) based on the transformation function (T), and- outputting the transformed probability distribution (w(y)). Method according to claim 1, wherein the transformed probability distribution (ω(y)) is determined using the transformation theorem, in particular wherein a scaling factor is calculated using a determinant of a Jacobian matrix of an inverse of the transformation function (T-1). Method according to claim 1 or 2, wherein the predeterminable quantity (x) is a geometric quantity relating to coordinates of an object, an optical flow or a spatial depth. Method according to one of the preceding claims, wherein an output of a neural network (NN) is used as the predeterminable variable (x) and / or probability distribution for the predeterminable variable (w(x)). Method according to claim 4, wherein the neural network (NN) is a convolutional neural network, a mixture-density network, a transformer network, a recurrent neural network, a multi-layer perceptron or a generative adversary network. Method according to claim 4 or 5, wherein the neural network (NN) is part of an object detector (OD), in particular an anchor-based object detector. Method according to claim 6, wherein at least one processing step of the further processing is part of the object detector (OD). Method according to one of the preceding claims, wherein the probability distribution (w(x)) is a parameterizable distribution, in particular a Gaussian distribution, a Laplace distribution or a Cauchy distribution. Use of a method according to one of the preceding claims for object detection. A computer program comprising instructions which, when executed by a computer, cause the computer to carry out the method according to any one of claims 1 to 8. A computer-readable medium on which the computer program according to claim 10 is stored.