An end-to-end 3D point cloud registration method
Feature aggregation and matrix correction are performed in point cloud registration through graph neural network and mutual vector consistency, which solves the limitations and noise impact of point cloud registration methods in the existing technology, and achieves more accurate and flexible point cloud registration. allow.
Patent Information
- Application Number
- CN202111578638.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-22
AI Technical Summary
Existing point cloud registration methods tend to converge to local minimums and rely on initial parameters. Feature-based methods have low efficiency and flexibility. Deep learning-based methods have poor performance in the presence of noise and partial overlap, and are end-to-end. It is difficult to obtain an accurate corresponding matrix with this method.
Graph neural network and mutual vector consistency are used for end-to-end 3D point cloud registration. Through the local feature extractor of shared weights and feature aggregation of graph neural network, combined with self and cross attention mechanisms, mutual vector consistency correction is used Initial correspondence matrix, deep neural network is trained to obtain accurate rigid transformation matrix.
The accuracy and robustness of point cloud registration are improved, especially in the case of noise and partial overlap, high registration accuracy can be achieved, and the influence of outliers is avoided.
Smart Images

Figure CN114332176B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of point cloud registration, and in particular to an end-to-end three-dimensional point cloud registration technical solution and system using graph neural networks and mutual vector consistency. Background Art
[0002] The goal of point cloud registration is to find an accurate rigid transformation matrix to align two point clouds. Point cloud registration has a wide range of applications in computer vision and robotics, such as target pose estimation, simultaneous localization and mapping, etc. The most classic point cloud registration method, the iterative closest point method and its various variants, iteratively optimize the transformation matrix by minimizing the metric error. The metric error is usually defined as the point-to-point distance. However, these methods are heavily dependent on the initial parameters and tend to converge to local minima. Some other widely used point cloud registration methods are feature-based methods. However, these methods require manually designed descriptors for feature point matching, so their efficiency and flexibility are relatively low. In addition, if there are a large number of repeated geometric structures in the two point clouds to be registered, these feature-based methods may have poor registration effects.
[0003] With the development of deep neural networks for point clouds, many point cloud registration methods based on deep learning have emerged. In general, these methods can be divided into two categories: correspondence-free methods and correspondence-based methods. Correspondence-free methods usually first use deep neural networks to extract global features of each point cloud, and then apply fully connected layers to directly regress the transformation matrix from the global feature differences of the two point clouds. These correspondence-free methods are direct and fast, however, since the physical model is not integrated into their networks, these methods may have poor generalization capabilities. In addition, for partially overlapping point clouds, the performance of this method will be overly dependent on the feature extraction network.
[0004] The correspondence-based deep learning method inherits the overall process of the traditional method, which can be divided into four steps: feature extraction, feature matching, outlier removal, and transformation estimation. Some deep learning-based point cloud registration methods propose to use deep neural networks to replace one or more links in the traditional method. For example, a deep neural network is used to extract feature descriptors, and then the transformation matrix is estimated in combination with the RANSAC algorithm; or a traditional algorithm is used for feature extraction and matching, and then a deep neural network is used to divide the initial match into inliers and outliers, and then the transformation matrix is estimated. However, these correspondence-based methods are not end-to-end. Recently, some end-to-end deep learning methods have been proposed for point cloud registration. The two point clouds to be registered are input, and the transformation matrix is directly output through the network. The key to these end-to-end deep learning methods is to obtain an accurate correspondence matrix. However, when the point clouds to be registered are noisy or partially overlapped, the obtained correspondence matrix may contain a large number of outliers, which makes it impossible to obtain accurate registration results. Summary of the invention
[0005] In order to achieve more accurate end-to-end point cloud registration, the present invention provides an end-to-end 3D point cloud registration method using graph neural network and mutual vector consistency. Figure 1 As shown in the figure, the arrows represent the displacement vectors between the corresponding points. For correct correspondence, the displacement vectors have the same length and opposite directions (left). This constraint is defined as mutual vector consistency in the present invention; otherwise, the displacement vectors do not satisfy this geometric constraint (right). The overall network structure is shown in Figure 2 shown.
[0006] Assume that the two point clouds to be registered are represented as and Where X is the source point cloud, Y is the target point cloud, N1 and N2 represent the number of points in X and Y respectively. The purpose of point cloud registration is to obtain a rigid transformation {R, t} between the input data, where R represents the rotation matrix and t represents the translation vector. Assume that a correspondence matrix M of size N1×N2 is used to represent the point correspondence between X and Y. If x i and j is a pair, then M i,j The value is 1 if yes, otherwise it is 0.
[0007] The technical solution of the present invention is an end-to-end three-dimensional point cloud registration method, comprising the following steps:
[0008] Step 1, preparation of training sample data and data to be registered;
[0009] Step 2, building an end-to-end deep neural network, includes the following sub-steps;
[0010] Step 2.1: Extract local features of point clouds. Use a local feature extractor with shared weights to extract local feature descriptors for the source point cloud X and the target point cloud Y, respectively. and N1 and N2 represent the number of X and Y midpoints, respectively;
[0011] Step 2.2: Based on the feature aggregation of the graph neural network, the final feature descriptor used for matching is obtained, and the initial soft correspondence matrix is further obtained. The initial soft correspondence matrix represents the initial matching probability between the points of the two point clouds;
[0012] Step 2.3, the matching result is corrected based on the consistency of the mutual vectors, that is, the initial soft correspondence matrix Make corrections to obtain the final corresponding matrix M;
[0013] Step 3, using the training sample data in step 1 to train the deep neural network built in step 2;
[0014] Step 4: Input the two point clouds to be registered into the trained deep neural network to obtain the final corresponding matrix, and use the final corresponding matrix to solve the final rigid transformation matrix {R, t}. The final rigid transformation matrix {R, t} is used to realize point cloud registration, where R represents the rotation matrix and t represents the translation vector.
[0015] Furthermore, the preparation of the training sample data in step 1 includes:
[0016] Apply random transformation {ω1, ω2, ω3, t1, t2, t3} to the source point cloud X to obtain the target point cloud Y, where ω1, ω2 and ω3 are three rotation Euler angles randomly sampled in the range of [0, 45]°, and t1, t2 and t3 are three displacements randomly sampled in the range of [-0.5, 0.5]; In order to simulate the partial overlapping registration situation, for each point cloud, independently create a random plane through the origin, translate along its normal, and retain 70% of the points; In order to make the trained model more robust, each point is independently and randomly added from a normal distribution with a mean of 0 and a standard deviation of 0.1 The noise is subsampled and clipped to [-0.05, 0.05].
[0017] Furthermore, the specific implementation of step 2.1 is as follows;
[0018] The source point cloud X and the target point cloud Y are embedded into a common feature space using a local feature extractor with shared weights. In the local feature extractor, a low-dimensional local feature descriptor is first constructed for each point using the coordinates of the point. i The low-dimensional local feature descriptor of is:
[0019]
[0020] in Represents point x i Then, using the nonlinear function f θ Mapping low-dimensional local feature descriptors to high-dimensional feature space The mapping is as follows:
[0021] F (0) (x i )=f θ (D(x i )),
[0022] Where θ represents the parameters of the nonlinear function, which consists of a shared multilayer perceptron, a pooling layer, and a concatenation operation; similarly, the same local feature extractor is used to extract local feature descriptors for the point cloud Y
[0023] Furthermore, the specific implementation of step 2.2 is as follows;
[0024] First, we establish an undirected complete graph with the original points in the point cloud as nodes, and the local feature descriptors as the initial features of the nodes. The edges of the graph can be divided into two categories: self-edges ε self and the cross edge ε cross ; ε self ={(x i , x j )|x i , x j ∈X,i≠j,i,j=1,2,…,N1}∪{(y i ,y j )|y i ,y j ∈Y, i≠j, i, j = 1, 2, ..., N2} is the edge set from any point in the point cloud to all other points in the same point cloud, ε cross ={(x i ,y j )|x i ∈X,y j ∈Y, i = 1, 2, ..., N1, j = 1, 2, ..., N2} is the edge set from any point in a point cloud to all points in another point cloud;
[0025] Then, the graph neural network is used for feature aggregation. The graph neural network has A layers. In each layer, the intermediate feature representation of each node is updated by aggregating messages from self-edges or cross-edges. i The intermediate feature at layer l is represented as F (l) (x i ), then point x i The intermediate feature representation at the l+1th layer is:
[0026]
[0027] Concat(·) represents the concatenation operation, ε∈{ε cross , ε self}, MLP stands for multilayer perceptron; if l is an even number, ε = ε self , Represents point x i From all nodes {x j |(x i , x j )∈ε self} aggregated messages; otherwise, if l is an odd number, ε=ε cross , Represents that from all nodes {y j |(x i ,y j )∈ε cross} Aggregated messages; In order to achieve long-distance context information aggregation, the message passing along the self-edge is called self-attention, and the message passing along the fork edge is called cross-attention. The self-attention and cross-attention mechanisms are used to realize the message passing within and across point clouds; The specific calculation method of cross-attention is:
[0028]
[0029] Where softmax represents the softmax function, q i represents the query, which is the node feature F (l) (x i ), k j and v j Represent the key and value respectively, which are the node features F (l) (y j ), we can also get self-attention Calculation method:
[0030]
[0031] where q i It also represents the node feature F (l) (x i ), it should be noted that in self-attention, k j and v j is the node feature F (l) (x j ) linear mapping;
[0032] Finally, the features of the last layer of the graph neural network are linearly mapped to obtain the final feature descriptor used for matching:
[0033]
[0034] Where W is the weight matrix and b is the bias; similarly, the feature F(y j ), and Represent the feature descriptors of point cloud X and point cloud Y respectively;
[0035] After obtaining the final matching feature descriptor, first calculate F X and F Y The affinity matrix is then converted into a matrix of all positive numbers by applying instance normalization. Finally, the Sinkhorn algorithm is applied to the matrix to obtain the initial correspondence matrix.
[0036] Furthermore, the specific implementation of step 2.3 is as follows;
[0037] Correction using the mutual vector consistency principle And filter out outliers as much as possible. The basic assumption of mutual vector consistency is that the displacement vectors between two matching points are equal in length and opposite in direction. The specific implementation process is as follows:
[0038] First, for each point x in the source point cloud X i , using the initial soft correspondence matrix To calculate its weighted average corresponding point x′ i , the calculation method is:
[0039]
[0040] in Represents point x i and point y j The matching probability of point x i The displacement vector You can also use Calculate the point y j The weighted average corresponding point y′ j , the calculation method is:
[0041]
[0042] The corresponding displacement vector remember and Represent all displacement vectors of point cloud X and point cloud Y respectively;
[0043] Considering that the displacement vectors in local areas have similar patterns, namely neighborhood consistency, we first use the vector encoder module to quantize the displacement vectors. and The local information of the vector encoder is encoded, and the architecture of the vector encoder is the same as the local feature extractor used in step 2.1. Then the final displacement feature O of the two input point clouds can be obtained. X and O Y ; Calculate O X and O Y The difference ΔO = O X -O Y , where ΔO i,j Measuring point x i and point y j The mutual vector consistency between them; then update the initial soft correspondence matrix:
[0044]
[0045] Where MLP stands for multi-layer perceptron. However, not all elements in the corresponding matrix M′ are positive numbers, so the corresponding matrix M′ is normalized using the instance normalization layer, and then the Sinkhorn algorithm is applied to obtain the final corresponding matrix M.
[0046] Furthermore, the real correspondence matrix M is used in step 3 gt To train the end-to-end deep neural network constructed in step 2, in order to obtain M gt , first apply the real transformation {ω1, ω2, ω3, t1, t2, t3} to the source point cloud X to obtain the transformed source point cloud Calculate point cloud and the point-to-point distance between point cloud Y. If point and point y j The distance between ∈Y is less than 0.1 and satisfies the following formula:
[0047]
[0048] They are considered to be a pair of corresponding points, and they will not participate in the next round of calculations. Then, the corresponding point pairs are searched among the remaining points according to the above formula again. gt is a binary matrix of size N1×N2. If x i and j is a pair, then Otherwise it is equal to 0;
[0049] Total loss function Defined as:
[0050]
[0051] Where α is the weight coefficient, Represents the initial correspondence matrix and the true corresponding matrix M gt The cross entropy loss between Represents the final corresponding matrix M and the true corresponding matrix M gt The cross entropy loss between .
[0052] Furthermore, the two point clouds to be registered are input into the trained deep neural network to obtain the final correspondence matrix M″. In order to obtain the hard correspondence matrix , first calculate the sum of each row and column of M″, then take out the rows and columns whose sum is greater than 0.5 to form a temporary matrix C, and apply the linear assignment problem solver based on the Hungarian algorithm to the temporary matrix C to obtain a binary matrix C′; First, it is set to a zero matrix of the same size as M″, and then the elements in C′ are assigned to Last pair The singular value decomposition algorithm is applied to solve the rigid transformation matrix; the above steps are repeated twice, each time using the rigid transformation matrix obtained last time to transform the source point cloud and then input it into the deep neural network to achieve coarse-to-fine alignment and obtain the final rigid transformation matrix {R, t}.
[0053] Compared with the prior art, the advantages and beneficial effects of the present invention are as follows: The present invention uses a graph neural network based on self-attention and cross-attention mechanisms to explore contextual information within and between point clouds, so that a more powerful feature representation of the input point cloud can be learned. In addition, the present invention uses mutual vector consistency to correct the initial correspondence matrix to obtain a more accurate correspondence. Compared with the prior art, the registration result of the present invention is more accurate, and a higher registration accuracy can still be achieved when the point cloud to be registered is noisy and partially overlapped. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of the mutual vector consistency used in the present invention;
[0055] Figure 2 This is a schematic diagram of the overall network structure proposed by the present invention;
[0056] Figure 3 It is a detailed structural diagram of the local feature extractor;
[0057] Figure 4 Detailed structural diagram of the mutual vector consistency module. DETAILED DESCRIPTION
[0058] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0059] Mutual vector consistency Figure 1 As shown in the figure, the arrows represent the displacement vectors between the corresponding points. For correct correspondence, the displacement vectors have the same length and opposite directions (left). This constraint is defined as mutual vector consistency in the present invention; otherwise, the displacement vectors do not satisfy this geometric constraint (right). The overall network structure is shown in Figure 2 shown.
[0060] Assume that the two point clouds to be registered are represented as and Where X is the source point cloud, Y is the target point cloud, N1 and N2 represent the number of points in X and Y respectively. The purpose of point cloud registration is to obtain a rigid transformation {R, t} between the input data, where R represents the rotation matrix and t represents the translation vector. Assume that a correspondence matrix M of size N1×N2 is used to represent the point correspondence between X and Y. If x i and j is a pair, then M i,j The value is 1 if yes, otherwise it is 0.
[0061] Step 1: Preparation of training sample data
[0062] First, the original point cloud is normalized and downsampled as the source point cloud X. Then, a random transformation {ω1, ω2, ω3, t1, t2, t3} is applied to the point cloud X to obtain the target point cloud Y, where ω1, ω2 and ω3 are three rotation Euler angles randomly sampled in the range of [0, 45]°, and t1, t2 and t3 are three displacements randomly sampled in the range of [-0.5, 0.5]. In order to simulate the partial overlapping registration situation, for each point cloud, a random plane passing through the origin is independently created, translated along its normal, and 70% of the points are retained. In order to make the trained model more robust, each point is independently and randomly added from a normal distribution with a mean of 0 and a standard deviation of 0.1 The noise is subsampled and clipped to [-0.05, 0.05].
[0063] Step 2: Building an end-to-end deep neural network
[0064] Step 2.1, point cloud local feature extraction.
[0065] In order to establish the correspondence matrix between two point clouds, the present invention uses a local feature extractor with shared weights to embed the source point cloud X and the target point cloud Y into a common feature space. Figure 3 As shown in the local feature extractor, a low-dimensional local feature descriptor is first constructed for each point using the coordinates of the point. i The low-dimensional local feature descriptor of is:
[0066]
[0067] in Represents point x i Then, using the nonlinear function f θ Mapping low-dimensional local feature descriptors to high-dimensional feature space The mapping is as follows:
[0068] F (0) (x i )=f θ (D(x i)),
[0069] Where θ represents the parameter of the nonlinear function, which is composed of a shared multilayer perceptron, a pooling layer, and a concatenation operation. Similarly, the present invention uses the same local feature extractor to extract local feature descriptors for point cloud Y
[0070] Step 2.2: Feature aggregation based on graph neural network
[0071] Due to the limitation of the receptive field size, the extracted local features may not be discriminative enough. In order to improve the saliency of features, the present invention uses an attention graph neural network for feature aggregation. First, an undirected complete graph with the original points in the point cloud as nodes is established. The local feature descriptors and As the initial feature of the nodes, the edges of the graph can be divided into two categories: self-edges ε self and the cross edge ε cross ε self ={(x i , x j )|x i , x j ∈X,i≠j,i,j=1,2,…,N1}∪{(y i ,y j )|y i ,y j ∈Y, i≠j, i, j = 1, 2, ..., N2} is the edge set from any point in the point cloud to all other points in the same point cloud, ε cross ={(x i ,y j )|x i ∈X,y j ∈Y, i = 1, 2, ..., N1, j = 1, 2, ..., N2} is the edge set from any point in a point cloud to all points in another point cloud.
[0072] Then, the graph neural network is used for feature aggregation. The graph neural network has 9 layers in total. In each layer, the intermediate feature representation of each node is updated by aggregating the message passing from the self-edge or the cross-edge. i The intermediate feature at layer l is represented as F (l) (x i ), then point x i The intermediate feature representation at the l+1th layer is:
[0073]
[0074] Concat(·) represents the concatenation operation, ε∈{ε cross , ε self}, MLP stands for Multilayer Perceptron. If l is even, ε = εself , Represents point x i From all nodes {x j |(x i , x j )∈ε self} aggregated messages; otherwise, if l is an odd number, ε=ε cross , Represents that from all nodes {y j |(x i ,y j )∈ε cross In order to achieve long-distance context information aggregation, the message passing along the self-edge is called self-attention, and the message passing along the fork edge is called cross-attention. The present invention uses the self-attention and cross-attention mechanisms to achieve message passing within and across point clouds. The specific calculation method of cross-attention is:
[0075]
[0076] Where softmax represents the softmax function, q i represents the query, which is the node feature F (l) (x i ), k j and v j Represent the key and value respectively, which are the node features F (l) (y j ), we can also get self-attention Calculation method:
[0077]
[0078] where q i It also represents the node feature F (l) (x i ), it should be noted that in self-attention, k j and v j is the node feature F (l) (x j ) is a linear map.
[0079] Finally, the features of the last layer of the network are linearly mapped to obtain the final feature descriptor used for matching:
[0080]
[0081] Where W is the weight matrix and b is the bias. Similarly, the feature F(y j ). and Represent the feature description sets of point cloud X and point cloud Y respectively.
[0082] After obtaining the final matching descriptor, first calculate F X and F Y The affinity matrix is then converted into a matrix of all positive numbers by applying instance normalization. Finally, the Sinkhom algorithm is applied to the matrix to obtain the initial soft correspondence matrix. The initial soft correspondence matrix represents the initial matching probability between points of two point clouds.
[0083] Step 2.3, Matching result correction based on mutual vector consistency
[0084] Although self- and cross-attention mechanisms are used to obtain contextual information within and across point clouds, the initial soft correspondence matrix There may still be outliers in . Therefore, the present invention uses a mutual vector consistency module to correct And filter out outliers as much as possible. The detailed architecture of the proposed mutual vector consistency module is shown in Figure 4 The basic assumption is that the displacement vectors between two matching points are of equal length and opposite direction, such as Figure 1 shown.
[0085] First, for each point x in the source point cloud X i , using the initial soft correspondence matrix To calculate its weighted average corresponding point x′ i , the calculation method is:
[0086]
[0087] in Represents point x i and point y j The matching probability of point x i The displacement vector You can also use Calculate the point y j The weighted average corresponding point y′ j , the calculation method is:
[0088]
[0089] The corresponding displacement vector remember and Represent all displacement vectors of point cloud X and point cloud Y respectively.
[0090] Considering that the displacement vectors in local areas have similar patterns, namely neighborhood consistency, we first use the vector encoder module to quantize the displacement vectors. and The local information of the vector encoder is encoded, and the architecture of the vector encoder is the same as the local feature extractor used in step 2.1. Then the final displacement feature O of the two input point clouds can be obtained. X and O Y Calculate O X and O Y The difference ΔO = O X -O Y , where ΔO i,j Measuring point x i and point y j The mutual vector consistency between them. Then update the initial soft correspondence matrix:
[0091]
[0092] Where MLP stands for Multilayer Perceptron. However, not all elements in the correspondence matrix M′ are positive numbers, so the correspondence matrix M′ is normalized using an instance normalization layer, and then the Sinkhorn algorithm is applied to obtain the final correspondence matrix M.
[0093] Step 3: Network training
[0094] The present invention uses the real correspondence matrix M gt To train the end-to-end deep neural network constructed in step 2. In order to obtain M gt , first apply the real transformation {ω1, ω2, ω3, t1, t2, t3} to the source point cloud X to obtain the transformed source point cloud Calculate point cloud and the point-to-point distance between point cloud Y. If point The distance between the point yi∈Y is less than 0.1 and satisfies the following formula:
[0095]
[0096] Then we think x i and j is a pair of corresponding points, and they are not involved in the next round of calculation, and then the corresponding point pairs are found among the remaining points again according to the above formula. gt is a binary matrix of size N1×N2. If x i and j is a pair, then Otherwise equal to 0.
[0097] Total loss function Defined as:
[0098]
[0099] Where α is the weight coefficient, which is set to 0.5. Represents the initial correspondence matrix and the true corresponding matrix M gt The cross entropy loss between Represents the final corresponding matrix M and the true corresponding matrix M gt The cross entropy loss between . The Stochastic Gradient Descent (SGD) optimizer is used with an initial learning rate of 0.001.
[0100] Step 4: Application in actual registration
[0101] The two point clouds to be registered are input into the trained deep neural network to obtain the final correspondence matrix M. In order to obtain a hard correspondence matrix that represents the correspondence between points in binary form First, the sum of each row and column of M is calculated, and then the rows and columns with a sum greater than 0.5 are taken out to form a temporary matrix C. The temporary matrix C is applied with a linear assignment problem (LAP) solver based on the Hungarian algorithm to obtain a binary matrix C′. First, it is set to a zero matrix of the same size as M, and then the elements in C′ are assigned to Last pair The singular value decomposition (SVD) algorithm is applied to solve the rigid transformation matrix {R, t}. The above steps are repeated twice, each time using the rigid transformation matrix obtained last time to transform the source point cloud and then input it into the deep neural network to achieve coarse-to-fine registration and obtain the final rigid transformation matrix {R, t}.
[0102] It should be understood that parts not elaborated in detail in this specification belong to the prior art.
[0103] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. An end-to-end 3D point cloud registration method, characterized in that: The following steps are involved: Step 1: Preparation of training sample data and data to be registered; Step 2, building an end-to-end deep neural network, includes the following sub-steps; Step 2.1: Extract local features of point clouds. Use a local feature extractor with shared weights to extract local feature descriptors for the source point cloud X and the target point cloud Y, respectively. and N1 and N2 represent the number of X and Y midpoints, respectively; Step 2.2: Based on the feature aggregation of the graph neural network, the final feature descriptor used for matching is obtained, and the initial soft correspondence matrix is further obtained. The initial soft correspondence matrix represents the initial matching probability between the points of the two point clouds; Step 2.3, the matching result is corrected based on the consistency of the mutual vectors, that is, the initial soft correspondence matrix Make corrections to obtain the final corresponding matrix M; Step 3, using the training sample data in step 1 to train the deep neural network built in step 2; Step 4: Input the two point clouds to be registered into the trained deep neural network to obtain the final corresponding matrix, and use the final corresponding matrix to solve the final rigid transformation matrix {R, t}. The final rigid transformation matrix {R, t} is used to realize point cloud registration, where R represents the rotation matrix and t represents the translation vector.
2. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: The preparation of training sample data in step 1 includes: Apply random transformation {ω1, ω2, ω3, t1, t2, t3} to the source point cloud X to obtain the target point cloud Y, where ω1, ω2 and ω3 are three rotation Euler angles randomly sampled in the range of [0, 45]°, and t1, t2 and t3 are three displacements randomly sampled in the range of [-0.5, 0.5]; In order to simulate the partial overlapping registration situation, for each point cloud, independently create a random plane through the origin, translate along its normal, and retain 70% of the points; In order to make the trained model more robust, each point is independently and randomly added from a normal distribution with a mean of 0 and a standard deviation of 0.1 The noise is subsampled and clipped to [-0.05, 0.05].
3. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: The specific implementation of step 2.1 is as follows; The source point cloud X and the target point cloud Y are embedded into a common feature space using a local feature extractor with shared weights. In the local feature extractor, a low-dimensional local feature descriptor is first constructed for each point using the coordinates of the point. i The low-dimensional local feature descriptor of is: in Represents point x i Then, using the nonlinear function f θ Mapping low-dimensional local feature descriptors to high-dimensional feature space The mapping is as follows: F (0) (x i )=f θ (D(x i )), Where θ represents the parameters of the nonlinear function, which consists of a shared multilayer perceptron, a pooling layer, and a concatenation operation; similarly, the same local feature extractor is used to extract local feature descriptors for the point cloud Y 4. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: The specific implementation of step 2.2 is as follows; First, we establish an undirected complete graph with the original points in the point cloud as nodes, and the local feature descriptors as the initial features of the nodes. The edges of the graph can be divided into two categories: self-edges ε self and the cross edge ε cross ; ε self ={(x i ,x j )|x i ,x j ∈X,i≠j,i,j=1,2,…,N1}∪{(y i ,y j )|y i ,y j ∈Y,i≠j,i,j=1,2,…,N2} is the edge set from any point in the point cloud to all other points in the same point cloud, ε cross ={(x i ,y j )|x i ∈X,y j ∈Y,i=1,2,…,N1,j=1,2,…,N2} is the edge set from any point in a point cloud to all points in another point cloud; Then, the graph neural network is used for feature aggregation. The graph neural network has a total of A layers. In each layer, the intermediate feature representation of each node is updated by aggregating the message passing from the self-edge or the cross-edge. Mark x i The intermediate feature at layer l is represented as F (l) (x i ), then point x i The intermediate feature representation at the l+1th layer is: Concat(·) represents the concatenation operation, ε∈{ε cross ,ε self }, MLP stands for multilayer perceptron; if l is an even number, ε = ε self , Represents point x i From all nodes {x j |(x i ,x j )∈ε self } aggregated messages; otherwise, if l is an odd number, ε=ε cross , Represents that from all nodes {y j |(x i ,y j )∈ε cross } Aggregated messages; In order to achieve long-distance context information aggregation, the message passing along the self-edge is called self-attention, and the message passing along the fork edge is called cross-attention. The self-attention and cross-attention mechanisms are applied to realize the message passing within and across point clouds; The specific calculation method of cross attention is: Where softmax represents the softmax function, q i represents the query, which is the node feature F (l) (x i ), k j and v j Represent the key and value respectively, which are the node features F (l) (y j ), we can also get self-attention Calculation method: where q i It also represents the node feature F (l) (x i ), in self-attention k j and v j is the node feature F (l) (x j ) is linearly mapped; finally, the features of the last layer of the graph neural network are linearly mapped to obtain the final feature descriptor used for matching: Where W is the weight matrix and b is the bias; similarly, the feature F(y j ), and Represent the feature descriptors of point cloud X and point cloud Y respectively; After obtaining the final matching feature descriptor, first calculate F X and F Y The affinity matrix is then converted into a matrix of all positive numbers by applying instance normalization. Finally, the Sinkhorn algorithm is applied to the matrix to obtain the initial correspondence matrix.
5. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: The specific implementation of step 2.3 is as follows; Correction using the mutual vector consistency principle And filter out outliers as much as possible. The basic assumption of mutual vector consistency is that the displacement vectors between two matching points are equal in length and opposite in direction. The specific implementation process is as follows: First, for each point x in the source point cloud X i , using the initial soft correspondence matrix To calculate its weighted average corresponding point x′ i , the calculation method is: in Represents point x i and point y j The matching probability of point x i The displacement vector You can also use Calculate the point y j The weighted average corresponding point y′ j , the calculation method is: The corresponding displacement vector remember and Represent all displacement vectors of point cloud X and point cloud Y respectively; Considering that the displacement vectors in local areas have similar patterns, namely neighborhood consistency, we first use the vector encoder module to quantize the displacement vectors. and The local information of the vector encoder is encoded, and the architecture of the vector encoder is the same as the local feature extractor used in step 2.
1. Then the final displacement feature O of the two input point clouds can be obtained. X and O Y ; Calculate O X and O Y The difference ΔO = O X -O Y , where ΔO i,j Measuring point x i and point y j Mutual vector consistency between ; Then update the initial soft correspondence matrix: Where MLP stands for multi-layer perceptron. However, not all elements in the corresponding matrix M′ are positive numbers, so the corresponding matrix M′ is normalized using the instance normalization layer, and then the Sinkhorn algorithm is applied to obtain the final corresponding matrix M.
6. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: In step 3, the real correspondence matrix M is used gt To train the end-to-end deep neural network constructed in step 2, in order to obtain M gt First, apply the real transformation {ω1,ω2,ω3,t1,t2,t3} to the source point cloud X to obtain the transformed source point cloud Calculate point cloud and the point-to-point distance between point cloud Y. If point and point y j The distance between ∈Y is less than 0.1 and satisfies the following formula: Then we think x i and j is a pair of corresponding points, and they will not participate in the calculation in the next round, and then find the corresponding point pair among the remaining points according to the above formula again; M gt is a binary matrix of size N1×N2. If x i and j is a pair, then Otherwise it is equal to 0; Total loss function Defined as: Where α is the weight coefficient, Represents the initial correspondence matrix and the true corresponding matrix M gt The cross entropy loss between Represents the final corresponding matrix M and the true corresponding matrix M gt The cross entropy loss between .
7. The end-to-end 3D point cloud registration method according to claim 1, characterized in that: The two point clouds to be registered are input into the trained deep neural network to obtain the final correspondence matrix M″. In order to obtain a hard correspondence matrix that represents the correspondence between points in binary form First, calculate the sum of each row and column of M″, then take out the rows and columns whose sum is greater than 0.5 to form a temporary matrix C. Apply the linear assignment problem solver based on the Hungarian algorithm to the temporary matrix C to obtain a binary matrix C′; First, it is set to a zero matrix of the same size as M″, and then the elements in C′ are assigned to Last pair The singular value decomposition algorithm is applied to solve the rigid transformation matrix; the above steps are repeated twice, each time using the rigid transformation matrix obtained last time to transform the source point cloud and then input it into the deep neural network to achieve coarse-to-fine alignment and obtain the final rigid transformation matrix {R, t}.
Citation Information
Patent Citations
Outdoor scene point cloud registration method based on graph neural network
CN112581515A
Point cloud matching method
US20190295266A1
Systems and methods for place recognition based on 3D point cloud
US20210124901A1
