Method for training elevation map completion model

Through the elevation map completion model based on U-Net and Vision Transformer, the problem of pose estimation and elevation map establishment when unmanned tracked vehicles drive in complex environments is solved, and high-quality images are achieved under GNSS signal loss and smoke interference. Real-time creation of elevation maps and environmental awareness of unknown areas.

CN118552806APending Publication Date: 2024-08-27BEIJING INST OF TECH

Patent Information

Application Number
CN202410618062.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When unmanned tracked vehicles drive in complex environments, it is difficult to accurately estimate vehicle poses and establish elevation maps in real time, leading to driving safety threats, especially when GNSS signals are lost, lidar observations are degraded, and smoke and dust interfere.

Method used

The U-Net neural network model based on the encoder-decoder is used, combined with the Vision Transformer model, to train the elevation map completion model by performing random masking and bilinear interpolation on the elevation map to achieve real-time completion and prediction of the elevation map. .

Benefits of technology

In scenarios where GNSS signals are lost, lidar observations are degraded, and smoke and dust interfere, high-quality elevation maps can be established in real time, improving the real-time performance of the system and enhancing environmental awareness of unknown areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552806A
    Figure CN118552806A
Patent Text Reader

Abstract

The invention relates to a training method of an elevation map completion model, relates to the technical field of autonomous navigation, and solves the problem of driving safety of an existing unmanned tracked vehicle in a complex environment. The training method of the elevation map completion model comprises the following steps: carrying out random masking processing on an elevation map in a training data set to obtain an elevation map mask; training an initial model of an elevation map completion model by taking the elevation map mask as input and the elevation map before random masking processing as expected output to obtain a trained elevation map completion model; wherein the elevation map completion model is a U-Net neural network model based on an encoder-decoder.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of autonomous navigation technology, and in particular to a training method for an elevation map completion model. Background Art

[0002] With the development of unmanned technology, unmanned tracked platforms have always been the most popular ground unmanned platforms due to their good performance, high safety, strong carrying capacity, and ability to adapt to harsh environments with complex conditions. In recent years, unmanned tracked platforms have been greatly developed, and related technologies have been widely used in various occasions, such as disaster relief and border patrol.

[0003] When unmanned tracked vehicles are driving in complex environments, especially in off-road conditions, the environment height fluctuates greatly and the vehicle posture changes greatly. If the three-dimensional characteristics of the environment are not considered and the three-dimensional motion planning and control of the vehicle are not performed, the actual performance of the vehicle is very likely to exceed the motion safety boundary, posing a great threat to driving safety. In order to maximize the driving safety of the vehicle and improve the system's passability, it is very necessary to accurately and real-timely estimate the posture of the unmanned vehicle and establish an elevation map. Summary of the invention

[0004] In view of the above analysis, an embodiment of the present invention aims to provide a training method for an elevation map completion model to solve the problem of driving safety of existing unmanned tracked vehicles in complex environments.

[0005] On the one hand, an embodiment of the present invention provides a method for training an elevation map completion model, comprising the following steps:

[0006] Perform random masking on the elevation map in the training data set to obtain an elevation map mask;

[0007] Taking the elevation map mask as input and the elevation map before random masking as expected output, an initial model of the elevation map completion model is trained to obtain a trained elevation map completion model; wherein,

[0008] The elevation map completion model is an encoder-decoder based U-Net neural network model.

[0009] Based on a further improvement of the above method, the encoder of the elevation map completion model includes a block position encoding module for encoding the blocks of the elevation map mask and a first hierarchical feature extraction network for mapping the elevation map mask to a plurality of feature maps with different resolutions, wherein each layer of the first hierarchical feature extraction network uses a convolution kernel of an S×S grid size for downsampling, where S is an integer greater than 1;

[0010] The decoder of the elevation map completion model includes a second hierarchical feature extraction network for mapping the elevation map mask to a plurality of feature maps with different resolutions, wherein each layer of the second hierarchical feature extraction network uses a convolution kernel of an S×S grid size for upsampling.

[0011] Based on the further improvement of the above method, each layer in the first hierarchical feature extraction network and the second hierarchical feature extraction network uses a Vision Transformer model for feature extraction.

[0012] Based on the further improvement of the above method, the feedforward network layer in the Vision Transformer model includes a tensor deformation operation layer, a convolution layer, an activation layer, a tensor deformation operation layer, a linear layer, an activation layer, and a linear layer interconnected in sequence.

[0013] Based on the further improvement of the above method, the convolution layer adopts a convolution kernel of S×S grid size, and the activation layer adopts GeLU activation function.

[0014] Based on the further improvement of the above method, the convolution layer adopts a convolution kernel of S×S grid size, and the activation layer adopts GeLU activation function.

[0015] Based on the further improvement of the above method, the elevation map in the training data set is obtained by the following method:

[0016] Determine the first position information of the vehicle through the point cloud data of the vehicle;

[0017] Determine the second position information of the vehicle through the inertial navigation data of the vehicle;

[0018] Extracting a global descriptor from the point cloud data and performing loop closure detection to obtain third pose information of the vehicle;

[0019] Establishing and solving a factor graph with the first posture information, the second posture information and the third posture information as observation factors to obtain posture information of the vehicle;

[0020] splicing the point cloud data based on the posture information to obtain a point cloud map;

[0021] Performing clustering processing on the point cloud in the point cloud map and establishing an elevation map based on the clustering processing result;

[0022] The missing values ​​in the elevation map are completed by bilinear interpolation to obtain an elevation map for training.

[0023] Based on the further improvement of the above method, after clustering the point cloud in the point cloud map and before establishing the elevation map based on the clustering processing result, it also includes:

[0024] Counting the distribution information of each type of point cloud in the point cloud map;

[0025] Outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are considered as smoke and filtered out.

[0026] Based on the further improvement of the above method, the step of splicing the point cloud data based on the pose information to obtain a point cloud map includes:

[0027] Determine position change information and first attitude change information through the position and posture information, wherein the first attitude change information includes pitch angle change information, roll angle change information, and heading angle change information;

[0028] The point cloud data are spliced ​​according to the position change information and the posture change information to obtain a point cloud map.

[0029] Based on the further improvement of the above method, the elevation map is M×M grids, the bilinear interpolation window is m×m grids, and the elevation map mask is n×n grids, wherein M, m, and n are positive integers, and M>m>n.

[0030] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:

[0031] 1. The present invention can establish high-quality elevation maps in real time in scenarios where GNSS signals are lost or jump, and in scenarios where lidar observations are severely degraded or interfered by smoke and dust.

[0032] 2. The present invention improves the real-time performance of the system and realizes the environmental perception capability of predicting unknown areas by constructing data sets offline and training elevation map completion models with masks.

[0033] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0035] Figure 1 A schematic flow chart of a method for training an elevation map completion model according to an embodiment of the present invention is shown.

[0036] Figure 2A schematic diagram of performing mask processing on an elevation map according to an embodiment of the present invention is shown.

[0037] Figure 3 A schematic diagram of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown.

[0038] Figure 4 A schematic diagram of a neural network structure of an improved ViT module according to an embodiment of the present invention is shown.

[0039] Figure 5 A structural schematic diagram of a deep convolutional feed-forward network in an improved ViT module according to an embodiment of the invention is shown.

[0040] Figure 6 4 is a flow chart of a method for establishing an elevation map according to an embodiment of the present invention.

[0041] Figure 7 A schematic diagram of a loop closure detection based on deep learning according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0042] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0043] Figure 1 FIG. 2 shows a flow chart of a method for training an elevation map completion model according to an embodiment of the present invention. Figure 1 As shown, the training method of the elevation map completion model includes the following steps:

[0044] Step 101: Perform random masking on the elevation map in the training data set to obtain an elevation map mask.

[0045] In this embodiment, the elevation map in the training data set can be stored in the form of a grid map, and the size of each grid represents a fixed length in reality. For example, the elevation map has a total of 224×224 grids, and the side length of each grid represents 0.2m in reality. At this time, the elevation map can represent the elevation information of 44.8m to the left and right of the vehicle, 67.2m in front, and 22.4m behind.

[0046] In the above embodiment, the elevation map in the training data set may be randomly masked to obtain an elevation map mask. Specifically, the elevation values ​​in some grids may be randomly masked in a preset area of ​​the elevation map to obtain an elevation map mask.

[0047] Figure 2 FIG. 4 is a schematic diagram showing mask processing of an elevation map according to an embodiment of the present invention. Figure 2As shown, within each window composed of 7×7 grids, 75% of the elevation values ​​within the grids can be randomly masked to obtain an elevation map mask.

[0048] Step 102: Taking the elevation map mask as input and the elevation map before random masking as expected output, an initial model of an elevation map completion model is trained to obtain a trained elevation map completion model.

[0049] In this embodiment, the elevation map completion model may be an encoder-decoder based U-Net neural network model.

[0050] Figure 3 A schematic diagram of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown. Figure 3 The neural network structure of the elevation map completion model according to the embodiment of the present invention is described.

[0051] like Figure 3 As shown in the figure, the elevation map completion model includes an encoder and a decoder. The encoder includes a block position encoding layer and four feature extraction networks, each of which includes a two-dimensional convolution layer with a 3×3 convolution kernel and an improved ViT module. The ViT here refers to the Vision Transformer model. The Vision Transformer (ViT) model is a deep learning model with a Transformer architecture for processing computer vision tasks. It can divide an image into a series of image blocks and pass each image block as an input sequence to the Transformer encoder. Each image block is converted into a vector representation through a linear projection layer, combined with a position embedding vector, and then output to the Transformer encoder for processing. The Transformer encoder includes multiple self-attention layers and feedforward neural network layers to learn global and local features in the image. Finally, the output of the encoder is split by a linear classifier.

[0052] In this embodiment, the original elevation map is divided into a series of image blocks ( Figure 3 (not shown), Figure 3 The block position encoding module in can encode a series of segmented image blocks to obtain the position embedding vector of each image block. Each image block is also passed through a linear projection layer ( Figure 3 The vector representation is converted into a vector representation (not shown), and is combined with its position embedding vector, and then output to the improved ViT module. The improved ViT module in this embodiment refers to an improved Transformer encoder. Figure 4 FIG. 2 shows a schematic diagram of a neural network structure of an improved ViT module according to an embodiment of the present invention. Figure 4As shown, along the input to output direction, the improved ViT module includes interconnected tensor deformation operation layers, multi-head self-attention layers, layer normalization layers, deep convolutional feedforward network layers, layer normalization layers, and tensor deformation operation layers in sequence, wherein the output of the first tensor deformation operation layer is also interconnected with the first layer normalization layer, and the output of the first layer normalization layer is also interconnected with the second layer normalization layer.

[0053] It should be noted that the improved ViT module in the embodiment of the present invention is mainly an improvement on the feedforward neural network layer in the Transformer encoder. Specifically, the improved ViT module in the present invention adopts a deep convolutional feedforward network. Figure 5 FIG. 4 shows a schematic diagram of a structure of a deep convolutional feedforward network in an improved ViT module according to an embodiment of the invention. Figure 5 As shown, the deep convolutional feedforward network includes an interconnected tensor deformation operation layer, a deep convolutional layer with 3×3 convolution kernels, an activation layer (GeLU activation function), a tensor deformation operation layer, a linear layer, an activation layer (GeLU activation function), and a linear layer in sequence from input to output, wherein the input of the deep convolutional feedforward network and the output of the second linear layer are XORed and used as the output of the deep convolutional feedforward network. The improved ViT module proposed in the embodiment of the present invention uses a deep convolutional feedforward network to extract information within the grid near the elevation map, which can reduce the computational cost and improve the perception of the adjacent elevation grids. The improved ViT module proposed in the embodiment of the present invention uses a multi-head self-attention mechanism to aggregate long-distance contextual information within the entire grid of the elevation map. Return Figure 3 , the four feature extraction networks in the encoder can downsample through the convolution operation of the 3X3 grid size convolution kernel, thereby mapping the original elevation map (i.e., the elevation map in the training dataset in this article) into four feature maps with resolutions from fine to coarse. The four feature extraction networks in the decoder can map the elevation map output by the encoder into four feature maps with resolutions from coarse to fine through the deconvolution operation of the 3X3 grid size convolution kernel. Figure 3 In the example, the encoder and decoder also use horizontal cross-layer connections for deep features. Specifically, the output of the 2D convolutional layer of the second feature extraction network in the encoder is input into the fourth feature extraction network in the decoder, the output of the 2D convolutional layer of the third feature extraction network in the encoder is input into the third feature extraction network in the decoder, and the output of the 2D convolutional layer of the fourth feature extraction network in the encoder is input into the first feature extraction network in the decoder.

[0054] It should be noted that although Figure 3An example of a neural network structure of an elevation map completion model according to an embodiment of the present invention is shown, but the present invention is not limited to this. Specifically, the encoder and the decoder can adopt 8 feature extraction networks. No matter how many feature extraction networks are adopted, as long as the structure of the hierarchical feature extraction network proposed by the present invention is adopted, it falls within the protection scope of the present invention; the convolution kernels of the encoder and the decoder can also adopt convolution kernels of other grid sizes (for example, 9×9 grid size).

[0055] In this embodiment, the parameters of the ViT neural network can be pre-trained to construct a U-shaped structure network for encoding and decoding. Afterwards, the elevation map after masking can be used as the input of the U-shaped structure network, and the mean square error between the elevation map output by the U-shaped structure network and the elevation map without masking can be used as the loss function to self-supervise the fine-tuning model, and the elevation map completion model can be obtained after the training is completed.

[0056] In some embodiments, the elevation map in the training data set in step 101 may be based on Figure 6 The elevation map obtained by the elevation map creation method shown.

[0057] Figure 6 4 is a flow chart of a method for establishing an elevation map according to an embodiment of the present invention.

[0058] Combine the following Figure 6 The method for creating the elevation map is described below.

[0059] like Figure 6 As shown, the method for establishing the elevation map includes the following steps:

[0060] Step 601: Determine the first position information of the vehicle through the point cloud data of the vehicle.

[0061] The point cloud data here may be point cloud data acquired by a laser radar.

[0062] In this embodiment, line and surface features may be extracted from the point cloud data first, and then the position change of the vehicle may be obtained based on inter-frame matching. The process is described below in conjunction with a specific embodiment.

[0063] First, the point cloud P can be projected into a distance image R1, which can be expressed as: Each pixel of the distance image R1 corresponds to a point in the point cloud. Specifically, for point p in the point cloud i =(x,y,z)P, the pixel representing the distance information in the distance image can be converted by equation 1.1 (u n ,v n ):

[0064]

[0065] In equation 1.1, ξ=|φ up |+|φ down | represents the vertical field of view of the laser radar, φ up and φ down is the upward and downward tilt angle of the laser radar, (x, y, z) represents the three-dimensional coordinates of the point cloud, x n ,y n 、z n Represents the three-dimensional coordinates of the nth point cloud, r n represents the radius from the nth point cloud to the lidar, w represents the width of the range image, and h represents the height of the range image.

[0066] Then, line and surface feature extraction is performed on the range image. Specifically, let S be the set of continuous points in the same row of the range image, and the roughness c can be calculated by equation 1.2:

[0067]

[0068] In equation 1.2, r i ,r j is the pixel value of the distance image, that is, the distance from the corresponding point cloud to the lidar, |S| represents the number of points in the set S, and the double vertical line ‖ represents the modulus.

[0069] Next, sort the roughness c of the points in each row of the distance image and use the threshold c th Distinguish line and surface features. For example, if the roughness c of the point is greater than the threshold c th , then the point is segmented into a line feature; if the roughness c of the point is less than the threshold c th , then the points are segmented into surface features.

[0070] Finally, the laser radar is used to calculate the vehicle's posture change. Specifically, the midline feature E of the point cloud at the next moment is first established through equation 1.3 k+1 Features of dough k+1 Line features reprojected to the point cloud coordinate system at the previous moment Features of dough The relationship between:

[0071]

[0072] In equation 1.3, X (k+1,i) Yes k+1 or k+1 The coordinates of feature point i in , yes or The coordinates of the corresponding points in T (k+1,i) (1:3) is the transformation matrix T (k+1,i) =[tx ,t y ,t z ,θ x ,θ y ,θ z ] Τ The first three rows of R are the rotation matrices defined by the Rodriguez formula (i.e., equation 1.4):

[0073]

[0074] In equation 1.4, θ = ||T (k+1,i) (4:6)|| is the last three rows of the transformation matrix; ω is the unit vector of the rotation axis. Afterwards, for each feature point X (k+1,i) In E k+1 or k+1 In any case, a nonlinear function can be established (e.g., Equation 1.5):

[0075]

[0076] In equation 1.5, is the normalized feature point distance, n T is the line feature E k+1 Direction unit vector or surface feature Η k+1 Normal unit vector. Then, the Levenberg-Marquard algorithm is used to optimize the corresponding distance d to make it close to 0, thereby solving the rotation matrix R and transformation matrix T (k+1,i) (1:3). Finally, use the solved rotation matrix R and transformation matrix T (k+1,i) (1:3), the posture information of the vehicle at the next moment is obtained based on the posture information at the previous moment, which is the first posture information of the vehicle in the present invention.

[0077] Step 602: Determine second position information of the vehicle through the inertial navigation data of the vehicle.

[0078] In this embodiment, the inertial navigation data of the vehicle at different times can be used to calculate the vehicle's posture information through pre-integration. Specifically, the inertial navigation data between the i-th frame and the j-th frame are used to calculate the vehicle's posture, displacement and speed information at time j through equation 1.6:

[0079]

[0080]

[0081]

[0082] In equation 1.6, q i The quaternion representation q representing the vehicle posture corresponding to the i-th framei (α i ,β i ,γ i ), α i represents the pitch angle, β i represents the roll angle, γ i represents the heading angle, p i represents the vehicle position corresponding to the i-th frame, V i represents the vehicle speed corresponding to the i-th frame, R k Q k The matrix representation is: △t represents the time interval between two adjacent frames of inertial navigation data, ω k represents the angular velocity measured by the gyroscope, b g represents the angular velocity offset, a k represents the acceleration measured by the accelerometer, b a is the acceleration offset.

[0083] Using wheel odometers as the position and posture estimate in off-road environments is easily affected by ground undulations, slips, and turns, resulting in large errors. Using the results of inertial navigation data pre-integration to estimate vehicle position and posture can avoid this problem.

[0084] Step 603: extracting a global descriptor from the point cloud data and performing loop detection to obtain the third posture information of the vehicle.

[0085] Loop detection refers to the process in which the system can identify and use this information to correct the accumulated positioning error when the unmanned vehicle returns to a previously visited location (forming a closed loop) within a period of time. Loop detection methods include feature-based methods, appearance-based methods, topology-based methods, and consistency-based methods. In feature-based methods, features can be extracted from images or sensor data and a feature database can be constructed. When the unmanned vehicle returns to a previously visited location, the loop is detected by matching the features in the current image with the features in the database.

[0086] A global descriptor is a feature vector used in the field of computer vision to represent the content of an image. It can capture the overall information of an image. The purpose of a global descriptor is to enable computers to have a high-level understanding of an image, such as identifying scenes and object categories in an image, or comparing similarities between images. Methods for generating global descriptors include histogram statistics, feature aggregation, and deep learning. In histogram statistics, the features of a scene can be statistically described by manually designing a global descriptor.

[0087] In some embodiments, a deep learning-based method may be used to extract a global descriptor of the range image R1 and perform loop detection. Figure 7The following is a schematic diagram of the loop detection principle based on deep learning according to an embodiment of the present invention. Figure 7 Provide explanation.

[0088] like Figure 7 As shown in the figure, the frames with every 1m change in position or 10° change in posture can be set as key frames, and the corresponding distance image R1 uses a deep neural network with a "Transformer + multi-layer perceptron (MLP)" architecture to extract the global descriptor (also known as the "global descriptor vector"). Specifically, first, the hierarchical Transformer extracts the high-dimensional features of the distance image R1 through local and global receptive fields at different spatial resolutions; then, the multi-layer perceptron (MLP) aggregates the high-dimensional features of the distance image R1 into a compact global descriptor vector, and the aggregated global descriptor can characterize whether the distance images R1 at two moments correspond to the same posture; finally, the global descriptors of the current frame and the historical frame are matched by K-NN nearest neighbors to obtain the loop detection factor, thereby obtaining the vehicle's posture estimation information.

[0089] In this embodiment, compared with the original point cloud and the range image R1, the dimension of the global descriptor vector in this embodiment is lower, so the amount of data is very small. Using it for loop detection can greatly improve the real-time performance of the system.

[0090] Step 604: Establish and solve a factor graph with the first posture information, the second posture information and the third posture information as observation factors to obtain the posture information of the vehicle.

[0091] The factor graph is a one-way graph model used to represent the dependencies between variables and factors in a probability model. In this embodiment, the pose information calculated by the inertial navigation data (i.e., the second pose information in the present invention) can be used to initialize the factor graph to obtain the initial factors. The frames where the position changes by 1m or the attitude changes by 10° are set as key frames, and a sliding window is established with the most recent 30 key frames. The first pose information, the second pose information, and the third pose information are then inserted into the factor graph in incremental form for solution, and the following Bayesian network is used for smoothing and mapping:

[0092]

[0093] In this formula, x1, x2, and x3 are three example key frames, φ(x1,l1)φ(x2,l1)φ(x3,l2) are three observation factors (i.e., the first pose information, the second pose information, and the third pose information), φ(x1,x2)φ(x2,x3) are the optimized odometer factors, and φ(x1) is the initial factor.

[0094] According to the Bayesian formula, the probability formula of the most likely posture information of the vehicle can be derived from the formula, and then the probability problem is transformed into a nonlinear least squares problem to find a set of posture information that is as consistent as possible with all observation factors.

[0095] In some embodiments, the vehicle's Global Navigation Satellite System (GNSS) data can be received, and the position data in the longitude, latitude, and altitude coordinate systems can be converted to position data in the east, north, and sky coordinate systems. Then, the GNSS data is inserted into the factor graph in incremental form for solution, and the Bayesian network shown in equation 1.7 is used for smoothing and mapping. In this embodiment, the GNSS data is inserted into the factor graph as the fourth node, and φ(x1, l1)φ(x2, l1)φ(x3, l2) in equation 1.7 are observation factors for the four types of posture information.

[0096] It should be noted that the smoothed posture information obtained according to equation 1.7 is the posture information in the embodiment of the present invention.

[0097] In the above embodiment, the data of multiple frames can be fused together through the factor graph to achieve smoothing and optimization of the vehicle posture information, thereby increasing the perception range and reducing the blind spot of the field of vision.

[0098] Step 605: stitching the point cloud data based on the posture information to obtain a point cloud map.

[0099] In this embodiment, based on the smoothed pose obtained in step 104, the original point cloud data corresponding to the key frame in the sliding window can be rotated and translated by equation 1.8 to obtain the coordinate system of the vehicle's current k-th frame, thereby splicing to obtain a point cloud map:

[0100]

[0101] In equation 1.8, is the point cloud map of the kth frame, N is the total number of frames in the sliding window, R k-i and T k-i (1:3) is the rotation and translation matrix.

[0102] Step 606: clustering the point cloud in the point cloud map and establishing an elevation map based on the clustering results.

[0103] In this embodiment, a clustering algorithm may be used to cluster the point clouds in the spliced ​​point cloud map. The clustering algorithm here may be a KD-Tree algorithm. The KD-Tree algorithm, also known as the K-Dimensional Tree algorithm, is a segmentation method for processing high-dimensional data space. It is a binary tree structure, each node represents a partition in the K-dimensional space, and a tree structure is constructed by recursively selecting a dimension to segment the space.

[0104] In this embodiment, the elevation map can be stored in the form of a grid map, and the size of each grid represents a fixed length in reality. For example, the elevation map has a total of 224×224 grids, and the side length of each grid represents 0.2m in reality. At this time, the elevation map can represent the elevation information of 44.8m to the left and right of the vehicle, 67.2m in front, and 22.4m in the back.

[0105] In this embodiment, since the elevation map represents the grounded part within its range (i.e., the height information of the ground relative to the sea level or other reference datum plane), after clustering the point clouds in the spliced ​​point cloud map using a clustering algorithm, other categories of point clouds can be discarded, and only the category of point clouds with the lowest cluster center height can be retained.

[0106] In some embodiments, after clustering the point clouds in the point cloud map and before establishing the elevation map based on the clustering processing results, the method for establishing the elevation map also includes: counting the distribution information of each type of point cloud in the point cloud map; treating outliers whose nearest neighbor Euclidean distance is greater than a preset threshold as smoke and filtering them out.

[0107] In view of the problem that unmanned vehicles are prone to generate smoke when driving in off-road environments, this embodiment proposes that after clustering the point clouds in the spliced ​​point cloud map, statistical distribution information can be obtained in each class, and outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are regarded as smoke and filtered out. Exemplarily, the statistical distribution information in each class is determined by equations 1.9 and 1.10:

[0108]

[0109]

[0110] At this time, the preset threshold may be 1.96σ.

[0111] In this embodiment, after the smoke is filtered out, the average height of the lowest N points (for example, N is 10) in the point cloud retained in each grid can be used as the elevation information of the grid.

[0112] In some embodiments, if the elevation map in the training data set is obtained according to steps 601 to 606, the elevation map in the training data set can be enhanced using data enhancement methods such as random rotation, random cropping, and random symmetry to obtain more elevation maps for training.

[0113] In some implementations, the elevation map completion model is trained using a learning rate adjustment strategy of linear warmup (WarmUp) and cosine annealing (Consine).

[0114] In some embodiments, since the laser may be blocked by objects or terrain, some grids of the elevation map obtained according to steps 601 to 606 may not have elevation values. In this embodiment, bilinear interpolation may be performed near the blank grid (here, the grid without elevation value in the elevation map) (e.g., a 12×12 window around the blank grid) according to equation 1.11 to complete the elevation information of the grid:

[0115]

[0116] In equation 1.11, Q ij The coordinates (u,v)=(x i ,y j ), i,j∈(1,2).

[0117] After that, the completed elevation map can be normalized, and the range of the height value is limited to [0-255], so that the highest point of the entire elevation map is 255 and the lowest point is 0. The normalized height value is used as the value of the RGB channel and the elevation map is stored in an image format to construct the data set required for self-supervised training.

[0118] In some embodiments, when obtaining the elevation map of the training data set according to steps 601 to 606, step 605 includes:

[0119] Step S10: determining position change information and first attitude change information through the position and posture information, wherein the first attitude change information includes pitch angle change information, roll angle change information, and heading angle change information.

[0120] Step S20: splicing the point cloud data according to the position change information and the posture change information to obtain a point cloud map.

[0121] If the purpose of the spliced ​​point cloud map is to construct a training data set, dense original point cloud data can be used. At this time, the original point cloud data corresponding to the key frame in the sliding window can be rotated and translated to the current k-th frame coordinate system of the vehicle through equation 1.8, so as to obtain a dense point cloud map by splicing. In this embodiment, the rotation matrix in equation 1.8 includes pitch angle change information, roll angle change information and heading angle change information.

[0122] Compared with the prior art, the embodiments of the present invention can achieve at least one of the following beneficial effects:

[0123] 1. The present invention can establish high-quality elevation maps in real time in scenarios where GNSS signals are lost or jump, and in scenarios where lidar observations are severely degraded or interfered by smoke and dust.

[0124] 2. The present invention improves the real-time performance of the system and realizes the environmental perception capability of predicting unknown areas by constructing data sets offline and training elevation map completion models with masks.

[0125] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A training method for an elevation map completion model, characterized in that: The following steps are involved: Perform random masking on the elevation map in the training data set to obtain an elevation map mask; Taking the elevation map mask as input and the elevation map before random masking as expected output, an initial model of the elevation map completion model is trained to obtain a trained elevation map completion model; wherein, The elevation map completion model is an encoder-decoder based U-Net neural network model.

2. The training method according to claim 1, characterized in that: The encoder of the elevation map completion model includes a block position encoding module for encoding the blocks of the elevation map mask and a first hierarchical feature extraction network for mapping the elevation map mask to a plurality of feature maps with different resolutions, wherein each layer of the first hierarchical feature extraction network uses a convolution kernel of an S×S grid size for downsampling, where S is an integer greater than 1; The decoder of the elevation map completion model includes a second hierarchical feature extraction network for mapping the elevation map mask to a plurality of feature maps with different resolutions, wherein each layer of the second hierarchical feature extraction network uses a convolution kernel of an S×S grid size for upsampling.

3. The training method according to claim 2, characterized in that: Each layer in the first hierarchical feature extraction network and the second hierarchical feature extraction network uses a Vision Transformer model to extract features.

4. The training method according to claim 3, characterized in that: The feedforward network layer in the Vision Transformer model includes a tensor deformation operation layer, a convolution layer, an activation layer, a tensor deformation operation layer, a linear layer, an activation layer, and a linear layer that are interconnected in sequence.

5. The training method according to claim 4, characterized in that: The convolution layer uses a convolution kernel with a grid size of S×S, and the activation layer uses a GeLU activation function.

6. The training method according to claim 4, characterized in that: The layers of the first hierarchical feature extraction network and the second hierarchical feature extraction network are connected horizontally across layers.

7. The training method according to claim 1, characterized in that: The elevation map in the training data set is obtained by the following method: Determine the first position information of the vehicle through the point cloud data of the vehicle; Determine the second position information of the vehicle through the inertial navigation data of the vehicle; Extracting a global descriptor from the point cloud data and performing loop closure detection to obtain third pose information of the vehicle; Establishing and solving a factor graph with the first posture information, the second posture information and the third posture information as observation factors to obtain posture information of the vehicle; splicing the point cloud data based on the posture information to obtain a point cloud map; Performing clustering processing on the point cloud in the point cloud map and establishing an elevation map based on the clustering processing result; The missing values ​​in the elevation map are completed by bilinear interpolation to obtain an elevation map for training.

8. The training method according to claim 7, characterized in that: After clustering the point cloud in the point cloud map and before establishing the elevation map based on the clustering processing result, the method further includes: Counting the distribution information of each type of point cloud in the point cloud map; Outliers whose nearest neighbor Euclidean distance is greater than a preset threshold are considered as smoke and filtered out.

9. The training method according to claim 7, characterized in that: The step of stitching the point cloud data based on the posture information to obtain a point cloud map comprises: Determine position change information and first attitude change information through the position and posture information, wherein the first attitude change information includes pitch angle change information, roll angle change information, and heading angle change information; The point cloud data are spliced ​​according to the position change information and the posture change information to obtain a point cloud map.

10. The training method according to claim 8, characterized in that: The elevation map is M×M grids, the bilinear interpolation window is m×m grids, and the elevation map mask is n×n grids, wherein M, m, and n are positive integers, and M>m>n.

Citation Information

Patent Citations

  • Image segmentation model with coding and decoding structure combined with attention mechanism and training method thereof

    CN114445420A

  • Training method of image restoration model and image restoration method, device and equipment

    CN114998149A

  • Interferent elimination and hole filling method for DEM image

    CN115423974A

  • Rugged terrain-oriented mobile robot terrain mapping method and system

    CN115619953A

  • Lane line detection method for automatic driving

    CN116363621A

Cited By

  • Method and device for determining target meteorological data, storage medium and electronic device

    CN119179859A

  • Robot observation data completion model training method and device

    CN120068952A

  • Robot Observation Data Completion Model Training Method and Device

    CN120068952B