This application claims priority under 35 U.S.C. § 119 to patent application no. DE 10 2022 201 770.6, filed on Feb. 21, 2022 in Germany, the disclosure of which is incorporated herein by reference in its entirety.
The invention relates to a computer-implemented method and a corresponding system for predicting future developments of a traffic scene.
The prediction of future developments of a traffic scene can be used in the context of stationary applications, such as, for example, in a permanently installed traffic control system which monitors the traffic situation in a defined spatial region. On the basis of the prediction, such a traffic control system can then provide corresponding information at an early stage and possibly also driving recommendations in order to control the traffic flow in the monitored region and in the surroundings thereof.
Another important field of application for the prediction of future developments of a traffic scene is mobile applications, such as vehicles having assistance functions. To be able to plan safe and transparent maneuvers, automated vehicles thus not only have to determine the traffic situation in which they are currently located but also to anticipate how this traffic situation will develop.
Classic prediction methods generally result in a prediction based on kinematics/dynamics. Interactions between road users can thus be modeled only to a limited extent. In addition, these approaches provide a prediction which in most cases is only useful for a very short time, for example for less than 2 s. For this reason, the use of machine learning, in particular deep learning (DL), as the de facto standard for prediction has become established in recent years.
The starting point of the present invention is a method for predicting future developments of a traffic scene, comprising the following steps:
aggregating scene-specific information about a traffic scene,
using a pre-trained encoder network to transform scene-specific information into parameters of a multivariate probability distribution of latent features,
selecting samples of the multivariate probability distribution of latent features determined by the parameters, and
using a pre-trained decoder network to transform each of the selected samples into an output set.
Methods of this type, which are based on a variational autoencoder (VAE) architecture or on an extension based on the conditional variational autoencoder (CVAE), are known. In contrast to classic autoencoder architectures, VAE and CVAE architectures also comprise a probabilistic component in addition to an encoder network and a decoder network. While the encoder network of classic autoencoders is used to transform input data in the form of aggregated scene-specific information into a set of latent features, the encoder network of a VAE/CVAE architecture transforms the input data into parameters of a multivariate probability distribution of latent features. Since however the decoder network of a VAE/CVAE architecture—as also the decoder network of a classic autoencoder—requires a set of latent features as input variables, individual samples of the multivariate probability distribution determined by the parameters are used as input variables. The decoder network then generates an output set for each of these samples.
The quality of inference is decisively determined here by how well the totality of the generated output sets approximates a probability distribution that results from the input data of the encoder network. As a rule, the quality of inference increases directly with the number of samples. This is particularly striking if the samples are selected randomly, for example using a Monte Carlo simulation. The greater the number of samples for which an output set is generated, the better the underlying probability distribution of the output sets is approximated.
This proves to be problematic in practice. In general, only a limited processing time is available for the inference, in which only a comparatively small number of samples can be processed and a corresponding number of output sets generated. As a result, the approximation of the underlying probability distribution of the output sets is inevitably suboptimal. Furthermore, with a given probability distribution of latent features and random selection of a given number of samples the inference is not reproducible, i.e., the inference yields different results when repeated. In addition, it has been shown that—depending on the nature of the prediction task—the individual samples of the probability distribution are assigned different significances. In these cases, the random selection of a limited number of samples carries the risk of the generated output sets being unspecific or in any case outputting a distorted image of the solution space of the prediction problem.
With the invention, measures are proposed by which the inference quality and thus the quality of the prediction are, using VAE/CVAE architectures, significantly increased with a manageable computational effort.
According to the invention, this is achieved by the samples being selected deterministically, such that each selected sample represents a separate region of the multivariate probability distribution of the latent features and this probability distribution is sampled in a raster-like manner via the totality of the selected samples.
The measures according to the invention make use of the continuity of neural networks. This property is a necessary condition of a raster-like sampling of the probability distribution in the space of the latent features providing a corresponding sampling of the underlying probability distribution in the space of the output sets. In this way, it can be systematically ensured that the parts of the probability distribution of the latent features that are essential for the relevant prediction task are taken into account in the inference, even if only a limited number of samples is taken into account.
It is important that the totality of the selected samples represents the probability distribution of the latent features as comprehensively as possible. This can be achieved, for example, by a uniform sampling of the probability distribution, i.e. a sampling in a uniform raster dimension, which is selected exclusively on the basis of the number of samples but independently of the probability distribution.
In one variant of the method according to the invention, the sampling is carried out not only on the basis of the number of samples, but also on the basis of the probability distribution of the latent features. In this case, the raster distances between the selected samples are thus also selected on the basis of their weight in the probability distribution. It is particularly advantageous if regions of high probability density are sampled more closely than regions of lower probability density, the raster here therefore being more finely meshed than in regions of lower probability.
Alternatively or also in addition to this deviation from a uniform raster dimension, at least a portion of the selected samples can be somewhat noisy, but the raster-like distance relationship according to the invention between the selected samples should be maintained. For this purpose, noise is superimposed on a sampling in the raster dimension (deterministic sampling), which is referred to as semi-deterministic sampling.
As already mentioned, in practice, only a limited number of samples of the probability distribution of the latent features can in most cases be used for inference. An advantage of the method according to the invention is that the number of these samples to be selected can be fixedly prespecified. In principle, in the determination of the sample number, it is always necessary to weigh up between inference time and inference quality, that is to say between the time available for the generation of output sets and the quality of how well the totality of the generated output sets approximates a probability distribution of the output sets. Advantageously, in the determination of the number and/or in the selection of the samples, it is also taken into account how similar the selected samples should be to the training data of encoder network and decoder network (ground truth) and/or how well the totality of the generated output sets provides multiple different, predetermined results (empirical significance).
VAE/CVAE architectures are usually trained such that the latent features that are extracted by the encoder network from the input data follow a multivariate standard normal distribution as probability distribution. If such a pre-trained VAR/CVAE architecture is used within the scope of the method according to the invention, the scene-specific information will preferably be transformed into an expectation-value vector and a covariance matrix, since a multivariate standard normal distribution is unambiguously determined by these parameters.
In principle, there is a wide variety of methods for sampling according to the invention the probability distribution of the latent features or for selecting the samples for the inference. In the case of a multivariate standard normal distribution, the following methods are particularly suitable, which is explained in more detail in conjunction with
unscented Kalman filter (UKF) sampling,
Gauss-Hermite quadrature Kalman filter (GHKF) sampling,
cubature Kalman filter (CKF) sampling,
randomized unscented Kalman filter (RUKF) sampling,
asymmetric or symmetric localized cumulative distribution (LCD) sampling.
In addition, in order to implement the method described in detail above, a computer-implemented system for predicting future developments of a traffic scene is proposed, which comprises a perception plane for aggregating scene-specific information about a traffic scene, a pre-trained encoder network for transforming the scene-specific information into parameters of a multivariate probability distribution of latent features, a sampler for selecting individual samples of the multivariate probability distribution of latent features as is determined by the parameters, and a pre-trained decoder network for transforming each of the selected samples into an output set.
According to the invention, the sampler is configured to deterministically select the samples such that each selected sample represents a separate region of the multivariate probability distribution of the latent features and this probability distribution is sampled in a raster-like manner via the totality of the selected samples.
In a preferred embodiment of the system according to the invention, the encoder network and the decoder network are components of a variational autoencoder (VAE) architecture or a conditional variational autoencoder (CVAE) architecture.
Advantageous embodiments and developments of the invention will be explained in the following with reference to the drawings.
The VAE architecture 10 shown in
The encoder network 12 and decoder network 17 are pre-trained. Two properties have been impressed on the encoder network 12 and the decoder network 17. On the one hand, the decoder network 17 delivers as output sets 18 desired or expectable results for given input variables 11 of the encoder network 12. And on the other hand, the latent features, which are extracted by the encoder network 12 from the input variables 11, follow a multivariate standard normal distribution 13.
The input variables 11 for the encoder network 12 provide a perception plane, not shown here, with which scene-specific information about a traffic scene is aggregated. Advantageously, this scene-specific information comprises semantic information about the traffic scene, in particular map information. This semantic information can be provided both locally, for example by a local storage unit, or can also be retrievable centrally, for example via a cloud. Furthermore, the scene-specific information advantageously comprises information about road users in the traffic scene. Information about the current movement state and/or the trajectory covered by the individual road users is of particular interest. Such information can be captured by sensor systems and made available, which systems, for example, comprise sensors such as video, LIDAR and radar, or also GPS (global positioning system) in conjunction with classic inertial sensors.
The aggregated scene-specific information is then transferred into a data representation that can be processed by the encoder network, which preferably also takes place in the perception plane. For example, the scene-specific information is converted into a graph representation when the encoder network is implemented in the form of a graph neural network (GNN). If the encoder network is a convolutional neural network (CNN), then the scene-specific information will be converted into a grid representation or possibly also a voxel grid representation.
The scene-specific information thus preprocessed is transformed using the encoder network 12 into parameters of a multivariate standard normal distribution 13, namely into the expectation value vector μ0 and the covariance matrix Σ of the standard normal distribution 13.
However, the decoder network 17 cannot generate output sets 18 solely on the basis of these parameters of the probability distribution 13. For this purpose, the decoder network 17 requires individual sets of latent features obtained by sampling the multivariate probability distribution 13. For the inference, it is therefore necessary to sample, specifically as far as possible, such that the output sets generated on the basis of the selected samples correspond to a distribution determined by the input variables and learned in the training method. The sampler 15 is used for this purpose. According to the invention, it selects the samples 16 deterministically or semi-deterministically, specifically in such a way that each selected sample 16 represents a separate region of the multivariate probability distribution of the latent features and this probability distribution is sampled in a raster-like manner via the totality of the selected samples. For this reason, the sampler 15 is symbolized in
The diagrams shown in
Within the scope of the invention, the samples of the individual sampling approaches can be noisy “on a small scale”, similar to the small-signal randomization of UKF sampling in RUKF, as long as the raster-like distance relationship between the selected samples is maintained. This type of sampling is also referred to as semi-deterministic.
In principle, there are different possibilities for using a computer-implemented system according to the invention for predicting future developments of a traffic scene.
Finally, it should also be pointed out that the invention can also be used otherwise in the context of predicting future developments of a traffic scene.
For example, probabilities for a prespecified number of different modes for the future developments of the traffic scene can also be generated as an output set in order to base the totality of the determined output sets on a further prediction step and/or planning step.
| Number | Date | Country | Kind |
|---|---|---|---|
| 10 2022 201 770.6 | Feb 2022 | DE | national |