Simultaneous localization and mapping method integrating self-supervised temporal masking and machine learning model to generate such masking.
A self-supervised learning method using a recurrent neural network optimizes SLAM performance by adaptively masking moving objects, addressing the challenge of dynamic scenes and reducing manual intervention in SLAM algorithms.
Patent Information
- Application Number
- FR2021012893
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing SLAM methods struggle with performance drops when moving objects occupy a significant part of the observed scene, leading to positioning errors due to incorrect masking techniques that either fail to mask moving objects or incorrectly mask static objects.
A self-supervised learning approach using a recurrent neural network to determine optimal temporal masking sequences for each image, automatically deciding which objects to mask based on performance optimization criteria, reducing the need for manual adjustments and improving robustness across various SLAM algorithms.
Enhances SLAM performance by adaptively masking moving objects, maintaining accuracy and reducing the reliance on manual annotation and threshold adjustments, thus improving trajectory estimation in dynamic environments.
Smart Images

Figure 00000025_0000 
Figure 00000025_0001 
Figure 00000026_0000
Abstract
Description
Description Title of the invention: Simultaneous localization and mapping method integrating self-supervised temporal masking and machine learning model for generating such masking.
[0001] — The invention relates to the field of computer vision and more specifically methods and systems for simultaneous localization and mapping also known under the Anglo-Saxon acronym SLAM for “Simultaneous Localization And Mapping”. These methods and systems aim to locate a mobile device in its environment by estimating its trajectory and reconstructing its environment simultaneously. The algorithms implemented for this work from data acquired by an environmental perception system, on board the mobile device. An environmental perception system is, for example, consisting of a single monocular camera or two cameras operating in stereo or a LIDAR system or a depth sensor or any other type of device integrating sensors to characterize the environment of the mobile device during its movement so that it can map this three-dimensional environment and locate the device within this environment. SLAM processes and systems are used in particular, but not only, for applications in the field of autonomous vehicles, automatic piloting of mobile robots or even for virtual reality headsets and increased.
[0002] …— In this context, the invention proposes a method of localization and mapping simultaneous which integrates a temporal masking step determined from a self-supervised learned model which allows, for a sequence of images given, to determine the most optimal temporal masking sequence, in the sense from machine learning and algorithm performance perspective localization. For this, the annotations are automatically determined from data, without manual intervention. The invention also relates to a method automatic annotation of training data for model training of generation of temporal masking sequences.
[0003] — The literature on so-called “SLAM” methods includes numerous proposals of various algorithms all aiming to reconstruct a trajectory as precise possible of the mobile device in its environment, whatever the nature of the environment and in particular the presence of fixed or moving objects in this environment. Early SLAM methods were initially designed for a static environment and suffer from significant performance loss or even failure when moving objects appear in the observed scene. For this reason, dynamic “SLAM” method approaches have been developed in order to be more robust to the presence of moving objects, particularly when these occupy a significant part of the observed scene. One of the known approaches specific to dynamic SLAM methods consists of spatially masking a part of the scene in order to eliminate the elements that disturb the calculation of the trajectory of the camera wearer. Different known methods allow generating such spatial masks by detecting and characterizing the objects whose masking improves the overall performance. However, these methods still have certain limitations and there is therefore a need to improve the masking techniques in order to further enhance the overall performance of a SLAM method. Reference [0] presents a review of different “SLAM” methods according to the prior art. The general principle of these methods consists of identifying local characteristics in the scene such as points of interest or contours, then estimating the pose of the camera from these characteristics. In nominal operation, the local characteristics associated with static elements of the scene constitute useful characteristics for pose estimation (also called “inliers”), while the local characteristics associated with moving elements in the scene constitute local characteristics which disturb the pose estimation (also called “outliers”) when these are in the minority in the image. Recent "SLAM" methods such as, for example, the "ORB-SLAM 2" method described in reference [1] are relatively robust to small moving objects as long as they occupy a very small part of the scene, but their performance drops when these objects occupy a significant part of the scene. The principle of so-called dynamic "SLAM" methods is to mask moving objects, so as to only consider the static part of the scene to estimate the trajectory of the mobile carrier from local descriptors. Two main families of approaches can be distinguished to determine what to mask in the scene: Approaches based on motion detection. Approaches based on the detection of objects supposed to be potentially dynamic. There are also hybrid methods that combine these two approaches. References [2,3,4] disclose several examples of dynamic “SLAM” methods based on motion detection. These methods estimate the moving regions of the image, typically with an optical flow-based approach. These regions are then masked during camera pose estimation which includes camera position and orientation, meaning that local features detected in these regions are not taken into account by the algorithm. A disadvantage of masking methods based on motion detection is that moving regions are assumed to be a minority in the image. If they become a majority, they will be considered as the reference background, and the SLAM algorithm will base its position on these moving regions, inducing positioning errors. Such a situation typically occurs when a moving object is close to the camera, either because the object has moved closer to it, or because the device equipped with the camera has itself moved closer to a momentarily static object which then starts moving (e.g., traffic jam). This situation corresponds to a consensus inversion. To overcome this problem, approaches based on segmentation or object detection, as illustrated in particular in reference [5], propose to choose to exclude a priori the regions corresponding to classes of objects likely to start moving (for example vehicle, pedestrian, etc.), regardless of whether they are actually moving or not at the time of capture by the camera. The regions corresponding to these objects are typically estimated with a semantic segmentation method such as for example the “Mask-RCNN” method described in reference [6]. These regions are then masked during trajectory estimation by the SLAM algorithm, which means that the local characteristics detected in these regions are not taken into account. Methods based on object detection also have several drawbacks. First, the list of classes of potentially moving objects is defined a priori and constitutes a finite list of possible objects. If a moving object not present in the list (i.e., not expected in the use case) moves in the scene, it is not masked and is likely to cause estimation errors by the SLAM algorithm. Then, moving objects present in the list are masked even if they are static at the time of their capture by the device's camera. If they occupy a very large part of the scene, for example when they are close to the camera, most of the local characteristics will be ignored by the SLAM algorithm. The number of local characteristics exploited will then be reduced and it will be more difficult to estimate the camera movement robustly. Finally, semantic detection may fail and the object may be wrongly identified as non-moving. Conversely, a static object may be incorrectly excluded due to misidentification by object recognition. Hybrid approaches combine the two aforementioned criteria to improve the overall robustness of SLAM methods. In the case of monocular capture, the DynaSLAM method described in reference [7] reverts to a method based on object detection. When depth information is available by means of a stereo device, the identification of regions is refined by means of an additional motion detection process. Additional regions can be identified as moving by this means, and also be masked during trajectory estimation by the SLAM algorithm. These regions may not be included in the list of moving objects a priori (e.g., a book moved by a pedestrian). A disadvantage of the aforementioned hybrid methods is that, in the monocular case, we find the problems of the approaches based on object detection in the stereo case, the approach can add masking regions, but cannot remove them even if this is relevant to improve the robustness of the SLAM algorithm. The Slamantic method described in reference [8] is based on object detection but adds a process for verifying the consistency of the position of 3D points over time, which amounts to checking whether the detected objects are moving. Thus, an object considered moving by its semantic classification (e.g., a car), can be identified as not moving momentarily (e.g., a parked car) and therefore be used for estimating the SLAM trajectory. In practice, the method consists of assigning a "dynamic factor" (df = dynamic factor) to each 3D point, the value of which determines whether it should be used for calculating the SLAM trajectory or not. The calculation of this dynamic factor involves several thresholds to be set manually, some for each type of object class considered. In a fixed number of previous images, the method counts the number of times the 3D point is correctly reprojected during the calculation.If this number exceeds a threshold, this increases its chances of being taken into account for the trajectory calculation. A disadvantage of this method is that it requires setting thresholds for each object class, which is potentially harmful to the SLAM algorithm. Furthermore, if such an object occupies a large part of the scene (consensus inversion case), the method chooses it as a reference, similar to methods based on motion detection. Another disadvantage is that the memory is arbitrary and limited to the last N frames. The method described in reference [9] uses a learning phase. It assumes that the regions where the SLAM algorithm identifies many irrelevant points of interest or "outliers" are moving areas that are harmful. Thus, on "easy" sequences such areas are identified and their characteristics are learned using a deep neural network. This method does not make any a priori on whether a particular semantic or movement is associated with the area. The learned neural model is then used in the production phase on more difficult sequences, where regions that could disrupt the trajectory estimation by the SLAM algorithm are identified and masked. A disadvantage of this method is that if an object that can move does not move in the "easy" training sequences, it will not be learned by the neural model and therefore not identified in the inference phase. On the contrary, if a region is learned as being able to disrupt the SLAM algorithm, it will be systematically masked in the production phase, even if it does not actually disrupt the SLAM algorithm (for example because it is static at the time of capture). The aforementioned prior art methods all have certain disadvantages described above. The invention proposes a new approach which aims to improve methods involving masking by object detection by determining for each class of objects to be masked and / or for each image, whether or not the masking of said objects brings a final performance gain to the algorithm and more precisely to the estimation of the trajectory of the mobile device. To this end, the invention proposes to determine, by learning, a prediction model which, for a given sequence of images, determines when it is appropriate to apply the spatial masking of the object classes, so as to improve the performance of the SLAM algorithm. The prediction model is determined by self-supervised learning in that the training data is automatically annotated using a particular method that does not require manual annotations of the data by an expert. The invention differs from the dynamic or hybrid “SLAM” methods according to the prior art in that it involves, for each image, an intelligent decision of whether or not to mask the objects identified by the spatial mask, with a view to actually improving the final performance. The method according to the invention is based on self-supervised learning in nominal operation, it automatically determines (without manual adjustment) the characteristics of the regions to be masked; on the contrary, the method described in reference [8] requires the manual adjustment of several thresholds, for each class of object. Just like reference [8], the invention involves a form of memory with respect to images preceding the current image. The memory proposed by the method of reference [8] is however fixed arbitrarily and essentially consists of counting the number of times a point has been correctly reprojected in a fixed number of previous images. On the contrary, the invention involves a decision to mask or not using a neural model learning from the entire past sequence. It thus takes into account short and long temporal dependencies. In case of consensus inversion, methods based on motion detection do not work. On the contrary, the method according to the invention continues to ignore the problematic region and relies on the reliable parts of the scene to calculate the trajectory. The invention advantageously reduces the cost required to annotate the training data of the prediction model. It makes it possible to optimize the performance of any type of SLAM algorithm, without using a human expert. It is adaptable to any type of SLAM algorithm based on the extraction of local visual characteristics. The subject of the invention is a computer-implemented method for automatic learning of a prediction model configured to determine, for a given sequence of images associated with a spatial masking sequence of said images, a temporal masking sequence consisting, for each image, of a decision to apply all or part of the spatial masking to the image, the prediction model being trained from training data to determine a temporal masking sequence which optimizes a predetermined performance criterion of an algorithm for simultaneous mapping and localization of a mobile device capable of acquiring said sequence of images and locating the mobile device in its environment. According to a particular aspect of the invention, said prediction model is at least based on a recurrent neural network. According to a particular aspect of the invention, said prediction model consists of a first learning model intended to generate a spatial representation from said images and at least one recurrent neural network intended to determine the decision to apply all or part of the spatial masking to an image from said spatial representation. According to a particular aspect of the invention, the recurrent neural network is configured to provide a probability of improving the performance of the simultaneous mapping and localization algorithm as a function of the application of all or part of the spatial masking and the method further comprises a step of thresholding said probability to generate a binary decision of application of all or part of the spatial masking to each image. The invention also relates to a prediction model implemented by computer, obtained according to the machine learning method according to the invention. The invention also relates to a method, implemented by computer, for automatic annotation of learning data to train the prediction model according to the invention, the method comprising the steps of: Receive a training dataset comprising a sequence of images and a spatial masking sequence associated with the sequence of images, Select a subset of temporal masking sequences from all possible sequences, a temporal masking sequence being consisting, for each image to be masked, of a binary application decision of all or part of the spatial masking in the image, Determine, for each temporal masking sequence, a metric performance evaluation of a mapping and localization algorithm simultaneous using said temporal masking sequence to mask the image sequence using spatial masking sequence, Aggregate at least some of the temporal masking sequences to using a weighted combination of their evaluation metrics performance, in order to produce a unique temporal masking sequence constituting a sequence of annotations of said data set learning. According to a particular aspect of the invention, the step of selecting a subset of temporal masking sequences consists of randomly and uniformly selecting a predetermined restricted number of binary sequences comprising blocks of at least ky consecutive “0” values and k consecutive “1” values, with k and k two strictly positive integers. According to a particular aspect of the invention, the performance evaluation metric is taken from a first metric for evaluating the accuracy of the trajectory estimated by the mapping and localization algorithm, a second metric for evaluating a percentage of images in the image sequence for which a trajectory has been calculated by the mapping and localization algorithm, or a combination of the first metric and the second metric. According to a particular aspect of the invention, the performance evaluation metric is given by the formula p*e"*"“, where α denotes the first metric, p denotes the second metric and λ is a predetermined parameter. According to a particular aspect of the invention, the step of aggregating at least part of the temporal masking sequences consists at least of: calculate a combination of the temporal masking sequences or pairwise differences of temporal masking sequences, weighted by their performance evaluation metrics, normalize the combination between 0 and 1, apply at least one predetermined threshold to the normalized combination for produce the sequence of annotations. According to an alternative embodiment, the method for automatic annotation of learning data according to the invention further comprises the steps of: Apply several predetermined thresholds to the normalized combination for produce several candidate annotation sequences, Evaluate the performance of the mapping and localization algorithm simultaneous for each sequence of candidate annotations and retain the sequence of annotations which produces the most optimal evaluation metric. The invention also relates to a method for automatic learning of a prediction model according to the invention in which said model is trained using the training data obtained by the automatic annotation method according to the invention. The invention also relates to a method for simultaneous mapping and localization of a mobile device comprising the implementation of the prediction model according to the invention to apply, for each image of a given sequence of images acquired by the mobile device and associated with a spatial masking sequence, a decision to apply all or part of the spatial masking to the image during the execution of an algorithm for simultaneous mapping and localization of the mobile device. In an alternative embodiment, the method for simultaneous mapping and localization of a mobile device according to the invention comprises the steps of: acquire a time sequence of images using the mobile device and, for each image received, Determine a set of points of interest in the image, Run the prediction model for the received image and a plurality of previous images to determine a spatial masking decision for all or part of the image received, If the spatial masking decision is positive, generate a spatial mask and mask the set of points of interest in the image using the mask spatial to generate a set of filtered points of interest, Apply an audit camera pose estimation and tracking algorithm set of filtered points of interest to determine a trajectory of the mobile device in its environment. According to a particular aspect of the invention, a spatial masking sequence is a semantic masking sequence configured to mask one or more object classes in the image sequence. According to a particular aspect of the invention, a temporal masking sequence consists of binary masking decisions for each object class in the entire image sequence. According to a particular aspect of the invention, a temporal masking sequence is further comprised of binary masking decisions for each image and each class of objects in the image. The invention also relates to a computer program product comprising code instructions for implementing the methods according to the invention. The invention also relates to a system for simultaneous mapping and localization of a mobile device comprising a mobile device capable of acquiring perception data of its environment to produce a sequence of images and a calculation unit configured to implement the simultaneous mapping and localization method according to the invention from said sequence of images. Other features and advantages of the present invention will become more apparent upon reading the following description in relation to the following appended drawings. [Fig.1] illustrates, on a functional diagram, the operation of a static mapping and localization method according to the prior art, [Fig.2] illustrates, on a functional diagram, the operation of a dynamic mapping and localization method according to the prior art, |Fig.3] illustrates, on a functional diagram, the operation of a mapping and localization method according to an embodiment of the invention, [Fig.4] illustrates, in a functional diagram, an automatic prediction engine configured to determine a temporal masking decision for the method of [Fig.3], according to an embodiment of the invention, [Fig.5] illustrates, on a flowchart, the steps of implementing a method of automatic annotation of learning data to train the automatic prediction engine of [Fig.4], [Fig.6] illustrates an example of the implementation of temporal mask selection for the implementation of the method of [Fig.5]. [Fig. 1] schematically represents the operating steps of a static “SLAM” method according to the prior art. Such a method receives as input a sequence of images captured by an acquisition device on board a mobile carrier. For each image I captured at time t, the SLAM algorithm essentially applies two steps: a first step 101 of detection of points of interest which makes it possible to extract particular points of interest PI in the image, a second step 102 of calculating a pose of the camera which produces a map of the wearer's environment and an estimate of his trajectory in his environment at time t. A step of matching the points of interest 103 with the images is carried out before the step 102 of calculating the pose of the camera. This step 103 may include filtering the points of interest in order to eliminate the points of interest corresponding to moving objects. Different types of known algorithms may be used to implement steps 101 and 102, for example those described in reference [0]. The invention does not specifically relate to the implementation of these algorithms. [Fig. 2] represents the operating steps of a dynamic “SLAM” method according to the prior art as discussed above. Such a method comprises, in addition to the steps 101, 102 described in [Fig. 1], a step 201 of generating a spatial mask by semantic detection or motion detection and filtering the points of interest located in the masked areas of the image and a step 202 of applying the generated spatial mask to filter the points of interest at the output of step 101. Step 102 of calculating the pose of the camera is then applied to a filtered set of points of interest FPI comprising only the points of interest located in unmasked areas. The generation of a semantic mask is for example carried out via the method of reference [6] or any other appropriate method based on a semantic detection of object classes in a sequence of images. The methods in Figures 1 and 2 have the drawbacks discussed previously. [Fig. 3] shows schematically the operating steps of a simultaneous mapping and localization method according to one embodiment of the invention. The diagram in [Fig. 3] represents both the steps of the method according to the invention and the calculation modules implemented by a simultaneous localization and mapping system according to the invention. The method receives as input a temporal sequence of successive SI images. As previously indicated, the images constitute data on the perception of the environment of a moving mobile carrier. They can be acquired by different means of capture: monocular camera, pair of cameras, LIDAR device, depth camera, or more generally any device embedded on a mobile carrier capable of acquiring data on the perception of the carrier's environment. Step 101 of calculating points of interest in the current image I is identical to that of the methods of the prior art. At each time L, the algorithm receives an image I, and also keeps in memory a set of images previously acquired in the time sequence. This set of images is not necessarily made up of the images which immediately precede image I but is, more generally, made up of any group of previous images, which are not necessarily consecutive. In step 301, a temporal mask is determined from the set of images using a prediction model previously learned using a machine learning engine. A temporal mask consists of a set of binary decisions, for example represented in the form of a matrix of size N by p, with N the number of images in the sequence and p the number of object classes detected by a semantic masking method 201. The object classes preferably correspond to mobile objects or objects likely to move in the scene, for example vehicles or pedestrians. Thus, the temporal mask generated in step 301 gives for each image I, and for each class of objects to be masked in the image I, a binary decision to mask or not this object. In an alternative embodiment, the same masking decision is applied to all objects of the same class in all images; in this alternative, the temporal mask can be determined from a binary vector of size p which gives for each class of objects the decision to be applied in the entire sequence. More precisely, for each new image I, the learning engine executed in step 301 determines, from the entire sequence of images SI, a masking decision for each class of objects present in the image I. The masking decision is transmitted to the filtering step 302 of the points of interest. If the decision is negative, the detected points of interest corresponding to the class of objects associated with this decision are transmitted directly to the trajectory calculation step 102. If the decision is positive, the points of interest [belonging to the spatial zones masked by the semantic mask determined in step 201 are filtered before being transmitted to step 102. Step 201 of determining the spatial semantic mask is similar to that of the method described in [Fig.2]. Thus, the temporal masking determined by learning in step 301 is configured to optimize the overall performance of the localization method based on an evaluation criterion of the precision of the trajectory generated by step 102. [Fig.4] shows a schematic of an example of the implementation of the learning engine used in step 301 to implement the prediction model making it possible to predict a masking decision for each new image I. A first feature extraction module 401 is applied to the images of the sequence to generate a spatial representation of these images. This first module 401 is, for example, implemented by means of a convolutional neural network and has the effect of reducing the dimension of the data to be processed. The characteristics of the spatial representation are, for example, extracted at the output of one of the layers of the convolutional neural network, for example the last layer. Any other encoding algorithm making it possible to generate a spatial representation of the images in reduced form can be considered to carry out the module 401. The extraction of characteristics carried out by the first module 401 makes it possible to obtain a more condensed representation of the sequence of images in order to limit the complexity of the following processing operations. Then, the characteristics of the spatial representation are provided as input to an artificial recurrent neural network 402, for example an encoder-decoder of the LSTM “Long Short Term Memory” type. The representations are possibly reduced by principal component analysis. In an alternative embodiment, the first module 401 is omitted and the images are directly provided as input to the learning module 402. The recurrent neural network 402 implements a prediction model that determines a probability that masking a given object class in the image of index n will improve the final performance of the localization algorithm. More precisely, it is a multi-class classification model. A thresholding step 403 makes it possible to generate a binary decision of masking or not for each class of objects in the image. Without departing from the scope of the invention, the artificial recurrent neural network can be replaced by any other artificial intelligence or machine learning technique making it possible to automatically predict a function associating a decision to mask a class of objects in an image with a constraint of optimizing the performance of a mapping and localization algorithm. It can in particular be replaced by an attention model of the transformer network type or by an ID convolution model. According to a particular embodiment, the recurrent neural network 402 consists of several layers of connected neurons, the last layer having p+1 outputs with p the number of semantic classes to be masked. The additional output corresponds to a “nothing to mask” class. According to another particular embodiment, the recurrent neural network 402 is made up of several LSTM type sub-networks, each sub-network receiving as input characteristics extracted from a different layer of the convolutional neural network 401 configured to generate the spatial representation. The machine learning engine described in [Fig.4], in particular the recurrent neural network 402, must be trained, from training data, to be able to learn the desired prediction function. The recurrent neural network uses an activation function (in its last layer), for example a sigmoid function and a cost function of the binary cross-entropy type. The cost function uses annotated training data to evaluate the masking probability. This is a supervised learning mechanism. To be able to train the learning engine described in [Fig.4] and learn the multi-class classification model implemented by module 402, this learning engine is previously trained from an annotated learning database. This database consists of several video sequences, each sequence being associated with a spatial masking sequence obtained, for example, by a semantic masking technique or any other spatial masking technique. The spatial masking sequence defines, in each image, the object classes to be masked. The training video sequences are further annotated by temporal masking sequences which specify, for each image and each object class, a masking decision. The task of annotating video sequences is particularly challenging because it is desirable that the masking decision be made based on the desired final result, i.e., based on an evaluation of the final performance of the SLAM algorithm. In practice, the annotation work cannot always be done manually by an expert, as it represents a significant workload (the number of cases to be tested and compared is extremely large). Furthermore, the annotation is a priori dependent on the type of SLAM localization algorithm used, in particular on the choice of the specific algorithms used to perform steps 101, 302, and 102. Furthermore, even an expert in a type of SLAM algorithm is not always able to decide a priori whether masking a given image is beneficial or not to the final result.In practice, training the temporal masking model and then testing the SLAM algorithm for each critical binary annotation choice and for combinations of these choices is a very complex and expensive task. Finally, testing all possible temporal masks is also difficult to envisage since, for a training sequence comprising N images, there are 2Ÿ possible temporal masks and several training sequences must be used. To solve this problem, a first solution is to annotate the entire video sequence with motion information when a movement is detected in the sequence. This is then a weakly supervised learning. Alternatively, a particular embodiment of the invention is proposed for automatically annotating a training video sequence. [Fig.5] details the main steps of implementing a method for automatic annotation of learning data according to one embodiment of the invention. The method essentially comprises three steps 501,502,503 described via the flowchart in [Fig.5]. The first step 501 consists of selecting a limited number of binary temporal masks from the set of possible masks. The selection is random and uniform. A binary temporal mask is constituted by a binary sequence of O and 1 of dimension n by p where p is as explained previously. For example, the value O corresponds to a decision not to mask and the value 1 corresponds to a decision to mask. A first possibility consists of generating all the 2" possible masks. Advantageously, it is preferable to reduce this set to a limited number of masks in order to limit the complexity of the method. For this, a particular embodiment of step 501 is proposed consisting of generating a set of binary masks respecting a constraint of including blocks of consecutive “0” of length at least equal to kp and blocks of consecutive “1” of length at least equal to k, with ko and k, two strictly positive integers. Indeed, such a mask model including blocks of several identical consecutive values is particularly suited to the context because it is likely that identical masking decisions must be applied to several consecutive images insofar as the objects to be masked evolve slowly in the scene. Furthermore, this constraint makes it possible to limit the number of possible temporal masks. To obtain a random and uniform draw respecting the aforementioned constraints, a possible implementation consists of representing all the temporal masks in the form of a tree of binary masks as represented in [Fig.6]. [Fig.6] shows an example of a binary mask tree for generating masks of length nin=7 with kç=2 and k,=3. The nodes on a gray background are bifurcation nodes for which it is possible to choose one of the two following branches, in other words one of the two child nodes. The nodes on a white background are nodes for which there is only one possible path to a single possible child node. For example, the sequences 1110000 and 0011100 respect the constraints kç=2 and k; =3 while the sequences 1110111 and 0011000 do not respect them. The space of possible time masks that respect the constraints nin=7 with Ko=2 and k,=3 is represented in [Fig.6]. The constraint-respecting tree (nim, Ko, k1) is generated by specifying branching nodes and non-branching nodes that are defined based on their parents. To select a time mask from the tree that meets the constraints defined by the parameters (nins Ko, k:), one procedure is to start at the root node 600 and traverse the tree. As soon as a node with two children is encountered, randomly chooses one of the two child nodes and then continues to the leaves of the tree. Such a procedure has the advantage of allowing a random and uniform selection of binary time masks respecting the predefined constraints (nims Ko, Ki). At the end of step 501, a set of binary time masks is obtained. In step 502, the performance of the simultaneous localization and mapping method as specified in [Fig. 3] is then evaluated for each time mask obtained in step 501, by replacing step 301 with the time mask selected in step 501. The performance evaluation can be carried out using any metric suitable for estimating the accuracy of the trajectory determined at the output of step 102. According to a particular embodiment, a first possible metric consists of an absolute error calculated between the estimated trajectory and a reference trajectory determined from a ground truth. This error is for example determined via a mean square error calculation or any other suitable error metric. In another embodiment, a second possible metric is a tracking rate representing the percentage of frames in a sequence for which a trajectory has been calculated before the localization algorithm stops working. According to another embodiment, a third metric consists of a combination of the two aforementioned metrics, for example calculated via the following relation: f = pe”* with “ and P respectively the first and second metrics. An advantage of this third metric is that it allows to take into account both the precision given by the absolute error on the estimated trajectory and the robustness of the tracking rate. The parameter À allows to adjust the respective influence given to each of the two metrics. If the second metric is equal to 100% and the first metric “ is small compared to the inverse of À, then the third metric is quasi-linear with *. If the tracking rate ” is lower, the third metric is proportionally penalized. Such linear dependencies make this metric a measure closer to human intuition. For example, the value of the parameter À is chosen between | and 10. In step 503, a single time mask is finally calculated by aggregation from all the time masks obtained in step 501 and their performance evaluated in step 502. To do this, we determine a combination of time masks weighted by their performance evaluation metrics. According to a first variant embodiment of step 503, a linear combination N is produced, with $; a binary sequence corresponding to a temporal mask R=L0$r6; kq P q selected in step 501 and BR a performance metric of this sequence calculated in step 502, N being the number of sequences selected in step 501. Next, we normalize the vector R between 0 and 1, then we binarize the vector R by applying a predetermined threshold, with a value between 0 and 1, to each component of the vector. We obtain a unique binary sequence which corresponds to the desired time mask. Alternatively, several predetermined thresholds are chosen, for example 9 thresholds {0.1; 0.2;… 0.9}. Each of these thresholds is used to binarize the vector R. We obtain as many binary sequences as thresholds. Finally, we evaluate the performance of the localization algorithm for each of these sequences and we retain the one which gives the best performance. According to a second variant embodiment of step 503, a linear combination of the differences between each pair of binary sequences is calculated. In other words, for any pair of temporal masks (S, Sy) having respective performances (B. By), the combination is calculated: R= Enr -SyX6,- B,) Then the same steps as described above are applied to binarize the vector R into a single temporal sequence. According to a variant, the combination R is weighted by a coefficient making it possible to reinforce the significant differences between two sequences (S,.S,): R=E,max(0, sen(15,-Sy| -maxColS;t, 04) )XS:- S,AR.-8,)" Ja is an absolute noise threshold below which the result of the weighted difference calculation must be considered equal to 0, Jr is a relative noise threshold The inserted weighting coefficient makes it possible to set to Ô certain values which are considered insignificant. According to yet another variant, step 503 consists of selecting the time mask which provides the best performance (according to the chosen criterion) from among the masks obtained in step 501. At the end of step 503, a binary time sequence is obtained which is used to annotate the image sequence. The method of [Fig.5] is iterated for each image sequence of a training database. Thus, the annotation process in [Fig.5] makes it possible to automatically generate annotated learning data in order to then carry out self-supervised learning. The annotation process was described above in the case of a single semantic object class to be masked. In the case of multiple object classes, the following adaptations must be made. In step 501, a set of time sequences is generated for each object class. In step 503, the calculation of the combination R is applied for each class of objects, the combination R is binarized according to the method indicated for each class of objects. Then, these binary sequences are transformed into temporal masks by retaining only the masking decisions relating to the class of objects considered and by applying a non-masking decision for the other classes. Finally, the temporal mask which makes it possible to obtain the best performance for the localization algorithm is selected. The invention may be implemented as a computer program comprising instructions for its execution. The computer program may be recorded on a recording medium readable by a processor. Reference to a computer program that, when executed, performs any of the functions described above, is not limited to an application program running on a single host computer. Rather, the terms computer program and software are used herein in a general sense to refer to any type of computer code (e.g., application software, firmware, microcode, or any other form of computer instruction) that can be used to program one or more processors to implement aspects of the techniques described herein. In particular, the computing means or resources may be distributed ("Cloud computing"), possibly using peer-to-peer technologies.The software code may be executed on any suitable processor (e.g., a microprocessor) or processor core or a set of processors, whether provided in a single computing device or distributed among several computing devices (e.g., as may be accessible in the device environment). The executable code of each program enabling the programmable device to implement the processes according to the invention may be stored, for example, in the hard disk or in read-only memory. Generally, the program(s) may be loaded into one of the storage means of the device before being executed. The central unit may control and direct the execution of the instructions or portions of software code of the or . programs according to the invention, instructions which are stored in the hard disk or in the read-only memory or in the other aforementioned storage elements. The invention can be implemented on a computing device based, for example, on an embedded processor. The processor can be a generic processor, a specific processor, an application-specific integrated circuit (also known as an ASIC for "Application-Specific Integrated Circuit") or an in situ programmable gate network (also known as an FPGA for "Field-Programmable Gate Array"). The computing device can use one or more dedicated electronic circuits or a general-purpose circuit. The technique of the invention can be carried out on a reprogrammable computing machine (a processor or a microcontroller for example) executing a program comprising a sequence of instructions, or on a dedicated computing machine (for example a set of logic gates such as an FPGA or an ASIC, or any other hardware module). The invention can also be implemented in a simultaneous location and mapping system embedded in a mobile device further comprising one or more environmental perception sensors. The mapping and trajectory calculated by the invention can be returned to a user via a human-machine interface in a three-dimensional virtual environment. References [0] Muhamad Risqi U. Saputra, Andrew Markham, and Niki Trigoni. Visual SLAM and structure from motion in dynamic environments: To survey. ACM Comput. Surv., 2018 [1] R. Mur-Artal and JD Tardés. ORB-SLAM2: An open-source SLAM system for monocular, stereo, and RGB-d cameras. IEEE Transactions on Robotics, 2017 [2] Binbin Xu, Wenbin Li, Dimos Tzoumanikas, Michael Bloesch, Andrew Davison, and Stefan Leutenegger. MID-fusion: Octree-based object-level multi-instance dynamic SLAM. In International Conference on Robotics and Automation (ICRA), 2019 [3] R. Scona, M. Jaimez, Y. R. Petillot, M. Fallon, and D. Cremers. StaticFusion: Back-ground reconstruction for dense RGB-d SLAM in dynamic environments. In 2018 IEEE International Conference on Robotics and Automation (ICRA), 2018. [4] Jiyu Cheng, Yuxiang Sun, and Max Q.-H. Meng. Improving monocular visual SLAM in dynamic environments: an optical-flow-based approach. Advanced Robotics, 2019 [5] M. Kaneko, K. lwami, T. Ogawa, T. Yamasaki, and K. Aizawa. Mask-SLAM: Robust feature-based monocular SLAM by masking using semantic segmentation. In IEFE / CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 2018 [6] Kaiming He, Georgia Gkioxari, Piotr Dollär, and Ross Girshick. Mask r-CNN. In IEEE International Conference on Computer Vision (ICCV), 2017. [7] B. Bescos, J. M. Fâcil, J. Civera, and J. Neira. DynaSLAM: Tracking, mapping, and inpainting in dynamic scenes. IEEE Robotics and Automation Letters, 2018. [8] Matthias Schorghuber, Daniel Steininger, Yohann Cabon, Martin Humenberger, and Margrit Gelautz. SLAMANTIC - leveraging semantics to improve VSLAM in dynamic environments. In Proceedings of the IEEF / CVF International Conference on Computer Vision (ICCV) Workshops, 2019 [9] Adrian Bojko, Romain Dupont, Mohamed Tamaazousti, and Hervé Le Borgne. Learning to segment dynamic objects using slam outliers. In 25th International Conference on Pattern Recognition (ICPR), 2021
Claims
Claims
1. Computer-implemented method of machine learning of a prediction model (402) configured to determine, for a given image sequence associated with a masking sequence spatial of said images, a temporal masking sequence consisting, for each image, of a decision to apply any or part of the spatial masking in the image, the prediction model (402) being trained from training data for determine a temporal masking sequence that optimizes a predetermined performance criterion of an algorithm simultaneous mapping and localization of a mobile device able to acquire said sequence of images and to locate the device mobile in its environment, the performance criterion being based on a performance evaluation metric of said algorithm using said time masking sequence to mask the image sequence using spatial masking sequence, the performance evaluation metric being taken from a first metric for evaluating trajectory accuracy estimated by the mapping and localization algorithm, one second metric for evaluating a percentage of images in the sequence of images for which a trajectory has been calculated by the algorithm mapping and localization, or a combination of the former metric and the second metric.
2. A machine learning method according to claim 1 in wherein said prediction model (402) is at least based on a recurrent neural network.
3. A machine learning method according to claim 2 wherein said prediction model (401,402) consists of a first learning model intended to generate a representation spatial from said images and at least one neural network recurring intended to determine the decision to apply any or part of the spatial masking to an image from said spatial representation.
4. A machine learning method according to claim 3 in which the recurrent neural network is configured to provide a probability of improving the performance of the algorithm simultaneous mapping and localization depending on the application of all or part of the spatial masking and the method comprises in in addition to a thresholding step (403) of said probability to generate a binary decision to apply all or part of the masking spatial to each image.
5. A machine learning method according to any one of claims 1 to 4 wherein a spatial masking sequence is a semantic masking sequence configured to mask one or more object classes in the image sequence.
6. The method of claim 5 wherein a sequence of Temporal masking consists of binary masking decisions for each class of objects in the entire sequence of images.
7. A method according to claim 5 wherein a sequence of Temporal masking consists of binary masking decisions for each image and each class of objects in the image.
8. A computer-implemented method of automatic annotation of training data to train a prediction model (402) configured to determine, for a given sequence of images associated with a sequence of spatial masking of said images, a temporal masking sequence consisting, for each image, of a decision to apply all or part of the spatial masking to the image, the method comprising the steps of: Receive a training dataset comprising a sequence of images and a sequence of spatial masking associated with the image sequence, Select (501) a subset of sequences from temporal masking among all possible sequences, a temporal masking sequence being constituted, for each image to be masked, a binary decision application of all or part of the spatial masking to the image, Determine (502), for each masking sequence temporal of the subset, an evaluation metric of performance of a mapping and localization algorithm simultaneous using said temporal masking sequence to hide the image sequence using the spatial masking sequence, Aggregate (503) at least part of the sequences of temporal masking of the subset using a combination weighted by their evaluation metrics performance, in order to produce a unique sequence of temporal masking constituting a sequence of annotations said training data set, the performance evaluation metric being taken from a first metric for evaluating the accuracy of the trajectory estimated by the mapping algorithm and localization, a second metric for evaluating a percentage of frames in the image sequence for which a trajectory was calculated by the algorithm of mapping and localization, or a combination of the first metric and the second metric.
9. Method for automatic annotation of training data according to claim 8 wherein the step of selecting (501) a sub- set of temporal masking sequences consists of selecting randomly and uniformly a predetermined small number of binary sequences comprising blocks of at least ky values at "0" » consecutive and k, consecutive “1” values, with k, and k, two strictly positive integers.
10. Method for automatic annotation of training data according to any one of claims 8 or 9 wherein the combination of the first metric and the second metric is given by the formula p*e*"“, where à denotes the first metric, p denotes the second metric and A is a predetermined parameter.
11. A method for automatically annotating training data according to any one of claims 8 to 10 wherein step (503) to aggregate at least part of the temporal masking sequences consists of at least: calculate a combination of masking sequences temporal or pairwise differences of sequences temporal masking, weighted by their metrics performance evaluation, normalize the combination between 0 and 1, apply at least one predetermined threshold to the combination normalized to produce the annotation sequence.
12. Method for automatic annotation of training data according to claim 11 further comprising the steps of: Apply multiple predetermined thresholds to the combination normalized to produce multiple annotation sequences candidates, Evaluate the performance of the mapping algorithm and simultaneous localization for each sequence of candidate annotations and retain the sequence of annotations that produces the most evaluation metric optimal.
13. Method for automatically learning a prediction model according to any one of claims 1 to 7 wherein said model is trained using the obtained training data by the automatic annotation process according to any of the claims 8 to 12.
14. Method for simultaneous mapping and localization of a device mobile comprising the implementation (301) of a model of prediction trained using the learning process automatic according to any one of claims 1 to 7 or 13to apply, for each image of an image sequence data acquired by the mobile device and associated with a sequence spatial masking, a decision to apply all or part of the spatial masking in the image during the execution of an algorithm for simultaneous mapping and localization of the mobile device.
15. Method for simultaneous mapping and localization of a device mobile according to claim 14 comprising the steps of: acquire a time sequence of images using the mobile device and, for each image received, Determine (101) a set of points of interest in the image, Run (301) the prediction model for the received image and a plurality of prior images to determine a spatial masking decision for all or part of the image of image interests by means of the spatial mask for generate a set of filtered points of interest, Apply (102) a pose estimation and tracking algorithm camera audit set of filtered points of interest for determine a trajectory of the mobile device in its environment.
16. Computer program product comprising code instructions for the implementation of any of the methods according to one any of claims 1 to 15.
17. System for simultaneous mapping and localization of a device mobile comprising a mobile device capable of acquiring data of perception of its environment to produce a sequence of images and a computing unit configured to implement the process of simultaneous mapping and localization according to one any of claims 14 to 15 from said sequence of images.
