Method for training a neural network to predict objects in hidden areas of a robot's environment

The Hungarian matching algorithm integrated with a transformer-based neural network addresses the ambiguity and instability in occluded environment predictions, improving precision and efficiency for robots by reducing redundant predictions and enhancing trajectory planning.

DE102025131865B3Undetermined Publication Date: 2026-11-26ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE102025131865
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2025-08-11
Publication Date
2026-11-26
Estimated Expiration
2045-08-11

AI Technical Summary

Technical Problem

Current systems for predicting objects in occluded environments, such as Scenelnformer, suffer from ambiguous interpretations due to excessive false positive predictions and lack of stability in training, leading to combinatorial explosion of trajectory scenarios and impaired real-time capability.

Method used

An integrated approach using the Hungarian matching algorithm for one-to-one mapping between predictions and ground-truth objects, combined with a transformer-based neural network architecture, to improve positional and classification accuracy, and optionally include object class and trajectory prediction.

Benefits of technology

This method enhances prediction precision and interpretability by reducing redundant predictions, stabilizing the training process, and enabling more efficient trajectory planning for robots in obscured environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Method for training (20) a neural network to predict objects in hidden areas of a robot's environment, the method comprising the following steps: a. providing training data (22); b. processing (28) the training data using a transformer encoder; c. generating (32), wherein a prediction comprises at least one predicted object class and a predicted position; characterized by: d. determining (36) a one-to-one mapping between a subset of the predictions (34) of a set of ground-truth objects using a mapping algorithm, wherein the mapping algorithm minimizes a cost function which, for each pair of a prediction and a ground-truth object, takes into account a classification error between the predicted object class and the ground-truth object class, as well as a position error between the predicted position and the ground-truth position; e.Calculating (38) a loss value as a result of a loss function. f. Adjusting (39) weights of the neural network based on the calculated loss value.
Need to check novelty before this filing date? Find Prior Art

Description

State of the art Lange et al. 2024 “Scene Informer: Anchor-based Occlusion Inference and Trajectory Prediction in Partially Observable Environments”, https: / / arxiv.org / pdf / 2309.13893 reveals a unified approach for predicting observed trajectories of objects and inferring occlusions in a partially observable environment. WANG, Yuping [et al.]: Generative AI for autonomous driving: Frontiers and opportunities. arXiv preprint arXiv:2505.08854, 2025 provides an overview of GenAl methods in automated driving. KUHN, HW: The Hungarian method for the assignment problem. Naval Research Logistics Quarterly, Vol. 2, No. 1-2, pp. 83-97, 1955 reveals the Hungarian method. Advantages of the invention Mobile robots, such as at least partially automated vehicles, are typically confronted with environments where objects that could influence the robot are obscured and therefore cannot be directly perceived. Nevertheless, it is desirable for robots to be able to make safe decisions even in such environments with limited visibility. Obscured areas, such as zones between parked vehicles from which pedestrians might suddenly emerge, pose a particular challenge. Current systems for predicting objects in occlusions, such as Scenelnformer (Lange et al. 2024), use transformer-based architectures to predict both the occupancy probability and possible trajectories for raster-distributed anchor points within an occlusion. However, these systems suffer from significant technical problems: The prediction often forecasts multiple adjacent points with a high occupancy probability within a region of interest. This leads to an ambiguous interpretation—is it a single object with positional uncertainty or several separate objects? This ambiguity results directly from the training approach used, in which the mapping between predictions and ground-truth objects is based solely on position. The excessive number of false positive predictions poses a significant technical problem, as it considerably complicates subsequent trajectory planning of the robot. Since multiple possible movement trajectories are predicted for each anchor point that is correctly identified as occupied, the total number of trajectories to be considered can increase exponentially. This leads to a combinatorial explosion of possible scenarios, which impairs the real-time capability of the planning system. The root cause of this problem lies in the training methodology: Conventional systems like Scenelnformer use a weighted cross-entropy as a loss function, which penalizes false negatives more severely than false positives. While this is necessary to handle the extreme class imbalance (significantly more unoccupied than occupied anchor points), it leads to a systematic overestimation of occupied anchor points during inference. Furthermore, a systematic method for grouping the predicted anchor points into meaningful object hypotheses is lacking. Another technical problem is the lack of stability in the training process. Calculating the loss point by point can lead to abrupt increases if the correct position is incorrectly classified as free, while neighboring points are incorrectly predicted as occupied. This instability hinders the model's convergence and impairs its generalizability. The present invention overcomes these limitations through an integrated approach that addresses the mapping problem between predictions and ground-truth objects using the Hungarian matching algorithm. This mathematically sound approach enables one-to-one mapping, taking into account both classification and positional accuracy, thereby effectively penalizing redundant predictions during training. The invention also optionally introduces an additional prediction header that predicts the object class and optionally allows positional corrections, thus improving the precision and interpretability of the predictions. Disclosure of the invention In a first aspect, the invention relates to a method for training a neural network according to claim 1. The term "robot" can be understood as a technical system that perceives its environment, processes this information, and independently performs actions based on this processing. A partially automated vehicle can be considered a special type of robot that uses sensors (such as cameras, lidar, or radar) to detect its surroundings, interprets this sensor data using processing units, and makes control decisions based on this interpretation, leading to physical actions (such as accelerating, braking, and steering). Obscured areas can be understood as spatial regions in a robot's environment that cannot be directly observed by the robot due to obstructions from other objects or sensor limitations. In the context of autonomous vehicles, these are typically areas that cannot be detected by the vehicle's sensors because they are obscured by other objects such as parked vehicles, buildings, vegetation, or topographical features. For example, areas between parked vehicles, around street corners, or beyond hilltops can be considered obscured areas. The representation of the environment can be understood as a structured depiction of the environmental information perceptible to the robot. It serves as input for the neural network and includes, in particular, historical trajectories of observed objects and a vectorized map of the environment. The representation of the environment can be designed, in particular, as described in Lange et al. 2024: The historical trajectories of observed objects can be formally represented as a tensor Opast ∈ ℝNo × H × Da, where No is the number of observed objects, H is the time horizon of the observations, and Da denotes the dimensionality of the object features. These object features can include position, orientation, velocity, acceleration, and geometric properties such as width and length. The position is typically specified in an egocentric coordinate system with the robot as the origin. The vectorized map can be represented as a tensor M ∈ ℝ∧(Nm× Np× Dm), where Nm denotes the number of polylines (e.g., road markings, lane boundaries, intersections), Np the maximum number of points per polyline, and Dm the dimensionality of the point features. The point features can include the point's position, the vector to the next point in the polyline, and semantic information about the polyline type (e.g., solid line, dashed line, stop lines, crosswalk). The representation of the environment can be determined based on various sensor data from the robot, particularly from an autonomous vehicle. A typical autonomous vehicle can be equipped with a variety of sensors that contribute to creating the environmental representation, such as cameras, LiDAR sensors, radar sensors, and ultrasonic sensors. Using computer vision algorithms, especially deep learning-based object detection and tracking, object positions, classes, and movements can be extracted from the sensor data thus obtained. Similarly, computer vision algorithms can be used to detect relevant road elements such as lane markings, drivable areas, road signs, traffic lights, and the like. The sensor data can be combined using sensor fusion algorithms to leverage the respective strengths of the different sensor modalities and generate a more robust representation.Probabilistic methods such as Kalman filters or particle filters can be used to account for uncertainties in the measurements and to generate temporally consistent object trajectories. The vectorized map can be partially derived from pre-installed map data (HD maps), which are updated and refined with local sensor data. Alternatively, it can be generated in real time from the sensor data, especially in unknown environments. The transformation between global map coordinates and the robot's local, egocentric coordinate system is typically achieved using GPS / INS (Global Positioning System / Inertial Navigation System) in combination with SLAM (Simultaneous Localization and Mapping) techniques. For the specific case of identifying obscured areas, a visibility analysis can be performed. Starting from the sensor positions, lines of sight are drawn to potential points in the environment. Points obscured by already detected objects can then be classified as part of an obscured area. This analysis can be implemented using ray casting on 3D point clouds or 2D projections thereof. Anchor points can be understood as spatial reference points that serve as a basis for object prediction in obscured areas. In the context of the present invention and in accordance with Scenelnformer (Lange et al. 2024), anchor points can be used to define discrete positions at which the presence of objects, their properties, and possible trajectories can be predicted. Formally, anchor points could be represented as a set A ∈ ℝNa×2, where Na denotes the total number of anchor points and each anchor point is defined by its two-dimensional position (x,y) in the plane. Anchor points can be divided into two categories: Anchor points for observed objects: These could be placed at the last observed positions of already visible objects and serve to predict the future trajectories of these objects. Anchor points in hidden areas: These could be systematically placed within the areas identified as hidden, typically in a regular grid with equal spacing. They can be used to predict possible but currently invisible objects. Anchor points in obscured areas could be placed using various strategies. One approach is a uniform distribution in a rectangular or hexagonal grid with a fixed distance between adjacent anchor points. This distance can be chosen based on the expected minimum size of the objects to be detected, such as the minimum size of a road user. Alternatively, anchor points could be placed adaptively, with a higher density in areas where objects are more likely to be found, such as near the center of the road or at intersections. For an anchor point, the neural network can generate a prediction that may include the following components: • A probability (pocc) that the anchor point is occupied by an object • A classification of the object type (e.g., vehicle, bicycle, pedestrian, or "no object") • Optionally, a position correction that allows fine-tuning of the actual object position relative to the anchor point • Optionally, a plurality of possible future trajectories of the object with corresponding probabilities The term “Transformer Encoder” can be understood as a special component of a neural network based on the Transformer architecture as originally presented by Vaswani et al. (2017). In the context of the present invention, the Transformer Encoder can be used to transform the representation of the environment, consisting of historical trajectories of observed objects and a vectorized map, into an aggregated scene representation. The transformer encoder could consist of multiple layers, with each layer typically including a multi-head attention mechanism and a feed-forward network. The multi-head attention allows the model to capture relationships between different elements of the input, regardless of their position in the sequence. As described in Lange et al. 2024, the transformer encoder can first process the different input types using specific encoder modules. Dedicated multi-layer perceptrons (MLPs) could be used for the trajectories of observed objects, with a separate MLP for each object class (e.g., vehicles, bicycles, pedestrians). A PointNet-based polyline encoder can be used for the vectorized map, enabling the processing of polylines of variable length. The output of these encoder modules could then be concatenated into a common representation Sin∈ ℝ(No+Nm)×Denc, where No denotes the number of observed objects, Nm the number of map elements, and Denc the dimensionality of the embedding. This common representation is then processed by the actual transformer encoder to model relationships between the different elements and generate a contextualized representation. Formally, the process could be described as follows: where φ is a max-pooling operator over the last feature dimension, MLP denotes a multi-layer perceptron, and TransformerEncoder is the actual transformer encoder. The resulting aggregated scene representation Semb∈ ℝ(No+Nm)×Doutent contains information about objects and map elements, with the relationships between them captured by the attention mechanism. The transformer encoder can process a variable number of input elements, which is particularly advantageous because the number of observed objects and map elements can vary between different scenes. Furthermore, the use of attention mechanisms enables efficient modeling of interactions between different elements, which can be especially important for predicting objects in hidden areas, as the behavior of visible objects often provides clues about the presence and behavior of hidden objects. The term transformer decoder can be understood as a complementary component to the transformer encoder, which is also based on the transformer architecture. In the context of the present invention, the transformer decoder can be used to process the aggregated scene representation generated by the encoder, together with a set of anchor points, and to generate predictions about objects at these anchor points. The transformer decoder, like the encoder, could consist of multiple layers, with each layer typically comprising several attention mechanisms and a feed-forward network. A key difference from the encoder, however, lies in the use of cross-attention mechanisms, which allow the decoder to selectively query information from the aggregated scene representation and relate it to the anchor points. As described in Lange et al. 2024, the transformer decoder can function as follows: First, the anchor points A ∈ ℝNa×2, which correspond either to the last known positions of observed objects or to systematically placed points in hidden areas, are projected into a higher-dimensional feature space by a multi-layer perceptron (MLP). This projection can be understood as a kind of position coding that transforms the spatial information of the anchor points into a form that is more readily processable by the neural network. The projected anchor points, along with the aggregated scene representation Sembin, are then input into the Transformer decoder. Through the cross-attention mechanism, the decoder can extract relevant information for each anchor point from the entire scene representation. This allows the model to consider not only local information for predictions at a given anchor point, but also global contextual information such as the behavior of other road users, road geometry, or typical movement patterns in similar situations. Formally, the process could be described as follows: Where MLP(A) represents the projection of the anchor points into the higher-dimensional feature space, Semb is the aggregated scene representation generated by the encoder, and TransformerDecoder is the actual transformer decoder. The resulting anchor point embedding Aemb∈ ℝNa×D contains a contextualized representation for each anchor point, integrating all relevant information from the scene. These anchor point embeddings are then processed by specific output heads (MLP-based networks) to generate various aspects of the prediction. The output heads can be configured as follows: • A head for predicting the occupancy probability pocc • A head for classifying the object type • Optionally, a head for position correction • Optionally, a head for predicting K possible trajectories and their probabilities The transformer decoder thus enables flexible, context-sensitive prediction for each anchor point, whereby the predictions for different anchor points can also depend on each other due to the self-attention mechanism within the decoder. This is particularly important for avoiding inconsistent or redundant predictions at neighboring anchor points. The mapping algorithm can be understood as a method that finds an optimal one-to-one mapping between two sets of elements, based on a cost function defined for each possible pair. In the context of the present invention, the mapping algorithm can be used during training to find an optimal mapping between predicted objects at anchor points and actual (ground-truth) objects in hidden areas. A particularly suitable assignment algorithm for this task is the Hungarian method (also known as the Kuhn-Munkres algorithm). This assignment algorithm can be applied before calculating the training loss. This contrasts with conventional approaches such as Lange et al. 2024, where the assignment is purely position-based, which can lead to redundant predictions. The assignment process could proceed as follows: 1. For each pair of a prediction (at an anchor point) and a ground truth object, a cost value is calculated. This cost value can be a weighted sum of a classification error (e.g., negative log likelihood of the predicted class given the true class) and a position error (e.g., L2 distance between predicted and true position). 2. These costs are summarized in a cost matrix C, where Cij represents the cost of assigning the i-th prediction to the j-th ground truth object. 3. The Hungarian method is applied to this cost matrix to find the optimal assignment σ that minimizes the sum of the costs ΣiCi, σ(i), where σ(i) denotes the ground truth object to which the i-th prediction is assigned. 4.Predictions that have not been assigned a Ground-Truth object (because there are more predictions than Ground-Truth objects) are expected to predict the "no-object" class. The Hungarian method ensures that each ground truth object is assigned to at most one prediction, and vice versa. This results in a unique assignment that avoids redundant predictions and improves training efficiency. The advantage of this approach over conventional position-based assignments is that it considers not only spatial proximity but also the quality of the classification. This allows a prediction that is spatially farther away but correct in its classification to be preferred over a closer prediction with an incorrect classification. The inventors have found that this results in more precise and semantically accurate predictions. Furthermore, the Hungarian method allows for flexible weighting of different error components in the cost function, so that different aspects of prediction quality can be emphasized depending on the application. For example, in safety-critical applications, the position error could be weighted more heavily than the classification error. Unlike alternative methods such as Non-Maximum Suppression (NMS), which are typically applied as a post-processing step, the Hungarian method is used during training, allowing the model to learn directly and avoid redundant predictions. Ground-truth data can be understood as the actual, correct information that serves as a reference for the neural network's behavior to be learned during the training process. In the context of the present invention, ground-truth data can, in particular, include information about objects in hidden areas that the neural network is to learn to predict. The ground truth data could contain at least the following information for each object located in a hidden area: • A ground truth position (x, y) that specifies the actual position of the object in the plane • A ground truth object class that specifies the type of object (e.g., vehicle, bicycle, pedestrian) • Optionally, a ground truth trajectory that describes the future movement of the object For training a neural network to predict objects in occulted areas, the availability of such ground-truth data is a challenge, since in real-world applications, occulted objects are by definition not directly observable. Therefore, various methods could be used to generate or approximate this data: 1. Simulation: In simulated environments, ground-truth information about all objects, including those in occulted areas, can be extracted directly from the simulation environment. 2. Offline processing: When acquiring training data in real-world environments, multiple sensors could be deployed at different locations to achieve more comprehensive coverage.Alternatively, temporary occlusions could be identified by post-processing the data, approximating objects observed before and after an occlusion through interpolation or predictive models. 3. Off-board perception: As used in the Waymo Open Motion Dataset (WOMD), non-causal methods can be employed that are not constrained by real-time requirements and can utilize future observations to detect past objects in occlusions. This method can provide particularly accurate ground-truth data for training. 4. Artificial occlusions: Starting with fully observable scenes, artificial occlusions could be created by marking certain lines of sight as occluded. This allows for the generation of ground-truth data for objects in these artificially occluded areas. In the context of the present invention, the ground truth data serve as a reference for the mapping algorithm, which finds an optimal one-to-one mapping between predicted and actual objects. The loss function can be understood as a mathematical measure that quantifies the deviation between the neural network's predictions and the ground truth data. In the context of the present invention, the loss function can play a central role in training the neural network by guiding the network's parameters toward more precise and non-redundant predictions. The loss function could consist of two main components: 1. First loss term: This could be calculated for predictions that were assigned to a ground-truth object by the assignment algorithm. It could include a weighted sum of a classification error (e.g., cross-entropy between predicted and actual object class) and a position error (e.g., mean square error between predicted and actual position). Optionally, this term could also include a trajectory error, which measures the deviation between predicted and actual trajectories. 2. Second loss term: This could be calculated for predictions that were not assigned to a ground-truth object. It could include a classification error with respect to a predefined "no-object" class, which teaches the model not to predict objects for anchor points with no actual object nearby. The overall loss function could be formulated as the sum of these two terms, possibly with additional weighting factors to control their relative importance. Combining these terms guides the neural network to generate accurate predictions for actually present objects while avoiding false positives. The cost function can be understood as a mathematical measure that, in the context of the present invention, quantifies the dissimilarity or "cost" of the mapping between a neural network prediction and a ground truth object. It serves as the basis for the mapping algorithm, in particular the Hungarian method, to find the optimal one-to-one mapping between predictions and ground truth objects. The cost function could be defined for each potential pair of a prediction and a ground truth object and would typically include two main components: 1. Classification error: This could measure the discrepancy between the predicted object class and the actual class of the ground truth object. A common choice would be the negative log likelihood or cross-entropy. 2.Position error: This could quantify the spatial distance between the predicted position and the actual position of the ground-truth object. Typical metrics could be the Euclidean distance (L2 norm) or the mean squared error. The total cost for a pair could be calculated as a weighted sum of these two components. Such a cost function allows the matching algorithm to consider both the semantic correctness (correct class) and the spatial precision (correct position) of the predictions. This can be particularly advantageous compared to simpler matching strategies based solely on spatial proximity, since a prediction with the correct class but a slightly different position might be more valuable than a prediction with the wrong class but exact position. The "no-object" class can be understood as a special category that identifies anchor points where no object is present. In typical scenarios, the majority of anchor points are not associated with actual objects, representing a significant class imbalance. In a training context, the "no-object" class could be used for anchor points that were not assigned to a ground-truth object by the mapping algorithm. The second term of the loss function promotes the correct prediction of this class for such anchor points. During inference, predictions with a high probability for the "no-object" class or a low probability of occupancy could be discarded, resulting in a filtered set of relevant object hypotheses.Explicit modeling of this class allows the model to distinguish between different causes for low occupancy probabilities and to generate more precise, economical predictions, which is advantageous for subsequent processing steps such as trajectory planning. In preferred embodiments, it is possible that the prediction generated for the respective anchor point further includes a position correction vector and that the predicted position is calculated by applying the position correction vector to an original position of the anchor point. The discrete nature of the anchor points, which are typically arranged in a regular grid, limits the spatial resolution of the predictions. By introducing a position correction vector, the model can advantageously predict object positions with an accuracy exceeding the spatial resolution of the anchor point grid. This enables more precise position predictions without the need to increase the density of the anchor points, which would significantly increase the computational cost. In preferred embodiments, it is possible that the position correction vector includes parameters of a probability distribution for the position, in particular the means, standard deviations and the correlation of a bivariate Gaussian distribution. Unlike a deterministic position correction vector, a probability distribution allows for the explicit modeling of uncertainty in position prediction. This is particularly valuable in hidden areas, where there is inherent uncertainty about the precise location of objects. The neural network can learn to predict higher standard deviations for positions with greater uncertainty. Downstream decision-making processes, such as the trajectory planning of an autonomous vehicle, can benefit from this explicit uncertainty quantification. For example, a vehicle could maintain a larger safety distance from areas with high positional uncertainty or adjust its speed accordingly. Advantageously, a bivariate Gaussian distribution with correlation parameters allows for the modeling of anisotropic uncertainties and spatial dependencies.This is particularly relevant in scenarios where the uncertainty may differ in various spatial directions, such as when predicting objects on narrow roads or in tight corridors. In preferred embodiments, it is possible that in step c) the prediction generated for the respective anchor point further comprises a set of future trajectories, and wherein the first loss term for associated predictions additionally includes a term that characterizes a trajectory error between one of the predicted future trajectories and a ground-truth future trajectory of the associated ground-truth object. Predicting not only the position and class, but also the future movement of objects in obscured areas enables a more comprehensive representation of the environment. This is particularly important for the safety planning of autonomous vehicles, as the hazard potential of an obscured object depends heavily on its future movement. Integrating trajectory prediction into the same neural network that performs object detection in obscured areas allows for more efficient end-to-end training. The network can utilize common features for both tasks and exploit potential synergies between obscured object detection and predicting their movement. Furthermore, predicting multiple possible trajectories for each object enables the modeling of multimodal future scenarios. This is especially relevant in traffic scenarios, where objects can exhibit different movement patterns (e.g.,(a vehicle that could drive straight ahead, turn left, or turn right). Considering this multimodality leads to more robust planning decisions. Furthermore, incorporating the future trajectory into the mapping process results in more consistent mappings between predictions and ground-truth objects: objects with similar current positions but different directions of movement can be better distinguished. By effectively limiting the number of trajectories predicted for each object through training with the mapping algorithm, the complexity for downstream planning systems can also be significantly reduced. This is a crucial advantage over approaches like Scenelnformer, where combining multiple anchor points, each with multiple trajectories, can lead to a combinatorial explosion of possible scenarios. In a further aspect, the invention relates to a method for predicting objects in hidden areas of a robot's environment, the method comprising the following steps: a. providing a representation of the environment, including historical trajectories of observed objects and a vectorized map; b. providing a set of anchor points in a hidden area; c. processing the representation of the observed scene context and the set of anchor points using a neural network, wherein the neural network has been trained according to the method; d. obtaining, as output of the neural network, a set of predictions, wherein for each anchor point a prediction is generated that includes at least one predicted object class and one predicted position; e.Rejecting predictions where the predicted object class corresponds to a predefined "no-object" class to generate a filtered set of object hypotheses. The prediction procedure can be understood as an inference counterpart to the training procedure, in which a neural network trained according to the training procedure (or an embodiment thereof) is used. The term "whereby the neural network was trained according to the training method" can be interpreted in two different ways, both of which may be encompassed by the invention: On the one hand, this term can mean that the training of the neural network is an integral part of the overall method. In this case, the prediction method would include a preliminary training step in which the neural network is trained with training data according to an embodiment of the training method before it is used for the actual prediction. On the other hand, the term can also be understood to mean that an already trained neural network is provided to the prediction method, wherein this network was previously trained externally according to an embodiment of the training method. In this case, the training would be a separate process preceding the prediction method.The trained model could, for example, be downloaded from a server, loaded from storage, or obtained from an external provider. Embodiments of the invention are explained in more detail below with reference to the accompanying drawings. The drawings show: Fig. 1 a flowchart of a method for training a neural network; Fig. 2 a schematic of a training system; Fig. 3 a schematic of a control system for controlling an actuator; Fig. 4 a schematic embodiment for controlling an at least semi-autonomous robot. Description of the exemplary implementations Fig. 1 shows a flowchart of an embodiment of the method (20) for training a neural network to predict objects in hidden areas of a robot's environment. The method (20) begins with the step of providing training data (22). This training data comprises a representation of the environment (24) and ground-truth data (26). The representation of the environment (24) includes historical trajectories of observed objects in the environment and a vectorized map. The historical trajectories can be represented as a tensor Opast∈ ℝNo×H×Da, where N0 is the number of observed objects, H is the time horizon of the observations (in particular, 1 second with a 10 Hz sampling rate, i.e., H = 10 time steps), and Da is the dimensionality of the object features.The vectorized map can be represented as a tensor M ∈ ℝNm×Np×Dm, where Nm denotes the number of polylines, Np the maximum number of points per polyline, and Dm the dimensionality of the point features. The ground truth data (26) includes a ground truth position and a ground truth object class for at least one object located in a hidden area. Optionally, the ground truth data can also include a ground truth future trajectory for each object. In the next step, the representation of the observed scene context is processed (28) using a transformer encoder to generate an aggregated scene representation (30). This processing step can be mathematically described as follows: First, the different input modalities are processed by specific encoder modules: where φ is a max-pooling operator over the last feature dimension and MLP stands for Multi-Layer Perceptron. Dedicated MLPs with their own parameter sets can be used for different object types. The outputs of these modules are then concatenated into a common representation: This shared representation is processed by the transformer encoder: Subsequently, a set of predictions (34) is generated (32) using a transformer decoder by processing the aggregated scene representation (30) and a set of anchor points A ∈ ℝNa×2 in the hidden area. The anchor points are first projected into a higher-dimensional feature space by an MLP and then, together with the aggregated scene representation, fed into the transformer decoder: For each anchor point in the set of anchor points, a prediction is generated that includes at least one predicted object class and one predicted position. Optionally, the prediction can also include a position correction vector, where the predicted position is calculated by applying the position correction vector to an original position of the anchor point. In another optional embodiment, the position correction vector can include parameters of a probability distribution for the position, in particular the means µx and µy, standard deviations σx and σy, and the correlation ρ of a bivariate Gaussian distribution. The probability density at a point (x,y) can then be calculated as follows: where Optionally, the prediction generated for the respective anchor point can also include a set of K future trajectories with corresponding probabilities, where each trajectory can be represented as a sequence of two-dimensional positions or as parameters of trajectory models. After generating the predictions, a one-to-one mapping between a subset of the predictions (34) and the set of ground truth objects is determined (36) using a mapping algorithm, in particular the Hungarian method. The mapping algorithm minimizes a cost function that, for each pair of a prediction and a ground truth object, takes into account a classification error between the predicted object class and the ground truth object class, as well as a position error between the predicted position and the ground truth position: where λcls and λpos are weighting factors. Based on this mapping, the calculation (38) of a loss value is then performed as the result of a loss function. The loss function includes a first loss term for predictions mapped to a ground-truth object and a second loss term for predictions not mapped to a ground-truth object. The first loss term can be calculated as a weighted sum of the classification error and the position error for each mapped pair. Optionally, it can also include a trajectory error if the prediction involves future trajectories: where CE is the cross-entropy, MSE the mean squared error, zi the predicted logits for the class, yσ(i) the true class, pi the predicted position, and pσ(i) the true position.The second loss term can be calculated as a classification error with respect to a predefined "no-object" class for each unassigned prediction: where Ø denotes the "no-object" class. The loss function is then the sum of the two loss terms: where the terms can optionally be weighted. Finally, the weights of the neural network are adjusted (39) based on the calculated loss value. This can be done using a gradient descent method, where the weights are updated in the direction of the negative gradient of the loss. The training procedure can be performed iteratively, repeating the steps of processing, generating, determining the mapping, calculating the loss value, and adjusting the weights for different batches of training data until a convergence criterion is met or a maximum number of iterations is reached. Fig. 2 shows an embodiment of a training system (140) for training a neural network to predict objects in hidden areas of a robot's environment using a training data set (T). The training data set (T) comprises a plurality of representations of the environment (24) and ground truth data (26), as shown in Fig. 1. For training, a training data unit (150) accesses a computer-implemented database (St2), which provides the training data set (T). The training data unit (150) preferably randomly selects at least one representation of the environment (24) and the corresponding ground truth data (26) from the training data set (T) and transmits these to the neural network (60). The neural network (60) processes the representation of the environment (24) using a transformer encoder to generate an aggregated scene representation (30) and, using a transformer decoder, generates a set of predictions (34) by processing the aggregated scene representation (30) and a set of anchor points in the hidden area. The ground truth data (26) and the generated set of predictions (34) are transmitted to a change unit (180). Based on the ground truth data (26) and the set of predictions (34), the change unit (180) then determines new parameters (Φ') for the neural network (60). To do this, the change unit (180) first establishes a one-to-one mapping between a subset of the predictions (34) and the set of ground truth objects using a mapping algorithm. This mapping algorithm minimizes a cost function that, for each pair of a prediction and a ground truth object, takes into account a classification error between the predicted object class and the ground truth object class, as well as a position error between the predicted position and the ground truth position. The change unit (180) then calculates a loss value as the result of a loss function. The loss function includes a first loss term for predictions associated with a ground truth object and a second loss term for predictions not associated with a ground truth object. The first loss term comprises a weighted sum of the classification error and the position error for each associated pair. The second loss term comprises a classification error with respect to a predefined "no-object" class for each unassociated prediction. The change unit (180) determines the new parameters (Φ') based on the loss value. In the exemplary embodiment, this is done using a gradient descent method, preferably Stochastic Gradient Descent, Adam, or AdamW. In other exemplary embodiments, the training can also be based on an evolutionary algorithm or second-order optimization. The determined new parameters (Φ') are stored in a model parameter memory (St1). Preferably, the determined new parameters (Φ') are provided as parameters (Φ) to the neural network (60). In further preferred embodiments, the described training is repeated iteratively for a predefined number of iteration steps or iteratively until the loss value falls below a predefined threshold. Alternatively or additionally, it is also conceivable that the training is terminated when an average loss value with respect to a test or validation dataset falls below a predefined threshold. In at least one of the iterations, the new parameters (Φ') determined in a previous iteration are used as parameters (Φ) of the neural network (60). Furthermore, the training system (140) can comprise at least one processor (145) and at least one machine-readable storage medium (146) which contains instructions which, when executed by the processor (145), cause the training system (140) to perform a training method according to one of the aspects of the invention. Fig. 3 shows a control system (40) which uses a neural network (60) to determine control signals (A) for an actuator based on the prediction of objects in obscured areas of a robot's environment. Preferably at regular intervals, the environment (20) of the actuator (10) is detected by a sensor (30), in particular an imaging sensor such as a camera sensor, which can also be a plurality of sensors, for example, a stereo camera, LiDAR, or radar. The sensor signal (S) – or, in the case of multiple sensors, a single sensor signal (S) from each sensor (30) – is transmitted to the control system (40). The control system (40) thus receives a sequence of sensor signals (S). From this, the control system (40) determines control signals (A), which are then transmitted to the actuator (10). The control system (40) receives the sequence of sensor signals (S) from the sensor (30) in a receiver (50), which converts the sequence of sensor signals (S) into a representation of the environment (52) containing historical trajectories of observed objects and a vectorized map. The representation can be configured, in particular, according to a configuration as described above. Additionally, the receiver (50) generates a set of anchor points (54) in a hidden area of ​​the environment. The representation of the environment (52) and the set of anchor points (54) are fed to the neural network (60). The neural network (60) is parameterized by parameters (Φ) stored in and provided by a parameter memory (P). The neural network (60) processes the representation of the environment (52) and the set of anchor points (54) and generates a set of predictions (56) as output. For each anchor point, a prediction is generated that includes at least one predicted object class and one predicted position. The set of predictions (56) is fed to a filter unit (80), which rejects predictions for which the predicted object class corresponds to a predefined "no-object" class, in order to generate a filtered set of object hypotheses. Based on this filtered set of object hypotheses, the filter unit (80) determines control signals (A), which are fed to the actuator (10) to control the actuator (10) accordingly. The actuator (10) receives the control signals (A), is controlled accordingly, and performs a corresponding action. The actuator (10) may include (not necessarily structurally integrated) control logic, which derives a second control signal from the control signal (A), which is then used to control the actuator (10). In further embodiments, the control system (40) includes the sensor (30). In still further embodiments, the control system (40) alternatively or additionally also includes the actuator (10). In further preferred embodiments, the control system (40) comprises at least one processor (45) and at least one machine-readable storage medium (46) on which instructions are stored which, when executed on the at least one processor (45), cause the control system (40) to execute the object prediction method. In alternative embodiments, a display device (10a) is provided as an alternative or additional to the actuator (10), which can, for example, show a driver of a vehicle the predicted objects in hidden areas. Fig. 4 shows how the control system (40) can be used to control at least a semi-autonomous robot (100), here a semi-autonomous motor vehicle (100). The sensor (30) can, for example, be a video sensor, LiDAR sensor, or radar sensor, preferably arranged in the motor vehicle (100). The neural network (60) can, in particular, be configured to predict potential objects in obscured areas based on the representation of the environment and the set of anchor points. This is especially important for situations in which critical objects such as pedestrians or other vehicles might be obscured by obstacles such as parked cars, buildings, or vegetation. The actuator (10), preferably arranged in the motor vehicle (100), can be, for example, a brake, a drive, or a steering system of the motor vehicle (100). The control signal (A) can then be determined such that the actuator or actuators (10) are controlled in such a way that the motor vehicle (100) prevents, for example, a collision with the objects predicted by the neural network (60) in obscured areas. This is particularly relevant for situations such as approaching an intersection with limited visibility or passing through gaps between parked vehicles from which pedestrians might suddenly emerge. Alternatively or additionally, the control signal (A) can be used to control the display device (10a), and, for example, to display the predicted objects in obscured areas. It is also conceivable that the display device (10a) can be controlled by the control signal (A) in such a way that it emits a visual or audible warning signal when it is determined that the motor vehicle (100) is in danger of colliding with one of the predicted objects. The warning by means of a warning signal can also be given by means of a haptic warning signal, for example by a vibration of the steering wheel of the motor vehicle (100). Alternatively, the at least semi-autonomous robot could also be another mobile robot (not shown), for example, one that moves by flying, swimming, diving, or walking. The mobile robot could, for instance, also be at least a semi-autonomous lawnmower or at least a semi-autonomous cleaning robot. In these cases as well, the control signal (A) can be determined such that the drive and / or steering of the mobile robot are controlled in such a way that the at least semi-autonomous robot, for example, prevents a collision with objects predicted by the neural network (60) in hidden areas. The term "computer" encompasses any device for executing predefined computational instructions. These instructions can be in the form of software, hardware, or a hybrid of both. In general, a plural can be understood as indexed, i.e., each element of the plural is assigned a unique index, preferably by assigning consecutive integers to the elements contained in the plural. Preferably, if a plural comprises N elements, where N is the number of elements in the plural, the elements are assigned the integers from 1 to N.

Claims

Method (20) for training a neural network to predict objects in hidden areas of a robot's environment, the method comprising the following steps: a. Providing training data (22), comprising: ii. a representation of the environment (24), containing historical trajectories of observed objects in the environment and a vectorized map; and iii. ground-truth data (26), containing, for at least one object located in a hidden area, a ground-truth position and a ground-truth object class; b. Processing (28) the representation of the environment using a transformer encoder to generate an aggregated scene representation (30); c.Generating (32) a set of predictions (34) by processing the aggregated scene representation (30) and a set of anchor points in the hidden area using a transformer decoder, wherein for each anchor point of the set of anchor points a prediction is generated which includes at least one predicted object class and one predicted position; characterized by: d. Determining (36) a one-to-one mapping between a subset of the predictions (34) from step c) and the set of ground truth objects from step a) using a mapping algorithm, wherein the mapping algorithm minimizes a cost function which, for each pair of a prediction and a ground truth object, takes into account a classification error between the predicted object class and the ground truth object class, as well as a position error between the predicted position and the ground truth position; e.Compute (38) a loss value as a result of a loss function, wherein the loss function: i. includes a first loss term, wherein the first loss term is computed for predictions that have been associated with a ground-truth object and includes a weighted sum of the classification error and the position error for each associated pair; ii. includes a second loss value, wherein the second loss term is computed for predictions that have not been associated with a ground-truth object and includes a classification error with respect to a predefined 'no-object' class for each unassociated prediction; f. Adjust (39) weights of the neural network based on the computed loss value. Method according to claim 1, wherein the prediction generated for the respective anchor point further comprises a position correction vector and the predicted position is calculated by applying the position correction vector to an original position of the anchor point. Method according to claim 2, wherein the position correction vector comprises parameters of a probability distribution for the position, in particular the means, standard deviations and the correlation of a bivariate Gaussian distribution. Method according to one of the preceding claims, wherein in step c) the prediction generated for the respective anchor point further comprises a set of future trajectories, and wherein the first loss term for associated predictions additionally comprises a term that characterizes a trajectory error between one of the predicted future trajectories and a ground-truth future trajectory of the associated ground-truth object. Method according to one of the preceding claims, wherein the assignment algorithm used is the Hungarian method. A method for predicting objects in hidden areas of a robot's environment (100), the method comprising the following steps: a. Providing a representation of the environment (52) containing historical trajectories of observed objects and a vectorized map; b. Providing a set of anchor points (54) in a hidden area; c. Processing the representation of the environment (52) and the set of anchor points (54) using a neural network (60), wherein the neural network (60) was trained according to a method according to any one of claims 1 to 5; d. Obtaining, as output of the neural network, a set of predictions (58), wherein for each anchor point a prediction is generated comprising at least one predicted object class and one predicted position; e.Rejecting predictions for which the predicted object class corresponds to a predefined "no-object" class to generate a filtered set of object hypotheses (62). Method according to claim 6, wherein the training of the neural network according to any one of claims 1 to 5 is carried out before the execution of steps a) to e) of claim 6. Method according to claim 6, wherein the trained neural network used in step c) is obtained from an external source, in particular by downloading from a server. Training device (140) which is configured to perform the method according to any one of claims 1 to 5. Control system (40) for determining a control signal (A) for controlling an actuator (10) or a display device (10a) of a robot, wherein the control signal (A) is determined based on a prediction of objects in hidden areas in an environment of the robot according to one of claims 6 to 8. Computer program configured to execute the method according to any one of claims 1 to 8 when executed by a processor (45, 145). Machine-readable storage medium (46, 146) on which the computer program according to claim 11 is stored.