A multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning

Multi-view point cloud registration is carried out through the latent variable supervised learning method based on Gaussian mixture model, which solves the accuracy and efficiency problems of traditional methods in textureless workpiece measurement, and achieves efficient and low-cost free-form surface workpiece measurement.

CN113989242BActive Publication Date: 2024-09-10HUNAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111272107.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-09-10
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

Traditional three-dimensional vision measurement methods are difficult to efficiently and accurately perform multi-view point cloud registration of free-form surface workpieces, especially in the case of non-textured workpieces. The existing methods are complex and costly, and traditional methods are susceptible to outliers and noise. influence.

Method used

The latent variable supervised learning method based on Gaussian mixture model is used to discretize the CAD model into point cloud, and the optimal Gaussian mixture model parameters are solved through neural network for point cloud registration, which reduces the need to align the measurement data with the CAD model. Improved robustness and efficiency of registration.

Benefits of technology

The accuracy and speed of multi-view point cloud registration for textureless workpieces are improved, system complexity and hardware costs are reduced, measurement robustness and efficiency are improved, and program running time is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113989242B
    Figure CN113989242B
Patent Text Reader

Abstract

The invention discloses a multi-point cloud registration method based on Gaussian mixture model hidden variable supervised learning, constructs a standard point cloud and a set of point clouds to be registered; models the standard point cloud and the set of point clouds to be registered as the same Gaussian mixture model, and sets the hyperparameter of the Gaussian mixture model as K; assumes the standard point cloud as a sample generated by the Gaussian mixture model, uses a neural network to obtain hidden variables, and solves the optimal Gaussian mixture model parameters; assumes the set of point clouds to be registered after the rigid transformation of the set of point clouds to be registered as a sample generated by the Gaussian mixture model, uses a neural network to obtain hidden variables, uses the optimal Gaussian mixture model parameters obtained in the previous step, and solves the optimal transformation parameters, so that the Gaussian mixture model of the transformed point cloud is consistent with the Gaussian mixture model of the standard point cloud; completes the registration of multiple point clouds according to the optimal transformation parameters obtained in the previous step, and also completes the alignment with the standard point cloud. The point cloud registration speed is fast, the registration steps are simple, and the robustness to noise is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of three-dimensional visual measurement, and in particular relates to a multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning. Background Art

[0002] Free-form surfaces are the most complex surfaces in industrial manufacturing. Due to the rapid development of modern industry, higher requirements are placed on product performance and appearance, so free-form surfaces have been widely used, such as aircraft wings, turbine blades, ship hulls, car bodies, etc. Free-form surfaces have complex shapes, are difficult to accurately represent with mathematical expressions, and require high processing accuracy. Their measurement is a difficult problem in production and manufacturing. The traditional measurement method uses a three-coordinate measuring machine and a probe to contact the surface of the workpiece for measurement, which can easily cause scratches on the workpiece. In addition, the detection efficiency is low when the workpiece is large, and it is not suitable for the measurement of large components. In recent years, optical scanners have been used in many measurement sites due to their fast measurement speed, high efficiency, and continuously improving measurement accuracy.

[0003] The steps of using an optical scanner for digital-analog comparison testing are as follows: first scan the point cloud data of the workpiece from multiple perspectives, then align the point clouds from multiple perspectives, and then align the registered point cloud data with the designed CAD model, analyze the difference between the measured data and the designed model, and finally obtain an error comparison chart. Among them, multi-point cloud registration is a key step in digital-analog comparison, and the accuracy and speed of registration directly affect the detection results and detection efficiency.

[0004] Since most free-form surface workpieces have no texture, the success rate of registration using feature matching methods is low. Existing measurement methods attach marker points on the workpiece surface to facilitate registration, or use laser trackers to locate the camera position in real time to achieve registration, which increases the complexity of the operation and hardware costs. Summary of the invention

[0005] In view of this, the present invention discloses a multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning, which discretizes the CAD model into point cloud and models it as a Gaussian mixture model to guide the registration of multiple point clouds, so as to solve the multi-view point cloud registration problem of textureless workpieces, while eliminating the process of aligning the measurement data with the CAD model.

[0006] The purpose of the present invention is achieved by the following technical solution: a multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning is provided, comprising the following steps:

[0007] Step 1, constructing a standard point cloud W and a set of point clouds to be registered V: sampling the preset CAD model of the workpiece to be inspected, discretizing it into point cloud data, and preprocessing it to obtain a standard point cloud W; using a 3D scanner to sample the workpiece to be inspected, obtaining point cloud data of N viewing angles, and preprocessing the N point cloud data to obtain a set of point clouds to be registered V, where N is a positive integer;

[0008] Step 2: Model the standard point cloud W and the point cloud set V to be registered as the same Gaussian mixture model, and set the hyperparameter of the Gaussian mixture model to K;

[0009] Step 3: Assume that the standard point cloud W is a sample generated by the Gaussian mixture model described in step 2, use the preset neural network to obtain the latent variables, and solve the optimal Gaussian mixture model parameters;

[0010] Step 4: Assume that the point cloud set T(V) to be registered after the rigid transformation of the point cloud set V is a sample generated by the Gaussian mixture model in step 2, use the preset neural network to obtain the latent variable, and use the optimal Gaussian mixture model parameters obtained in step 3 to solve the optimal transformation parameter T;

[0011] Step 5: The registration of multiple point clouds is completed according to the optimal transformation parameter T, and the alignment with the standard point cloud W is also completed.

[0012] As a further improvement, the preprocessing process of obtaining the point cloud set V to be registered in step 1 is specifically as follows: first, outliers are removed, then voxel downsampling method is used to obtain point cloud data with uniform density, and then random sampling is used to obtain N point cloud data with M points each, to obtain the point cloud set V to be registered, where: V i represents the point cloud obtained by the i-th sampling, v ij Represents point cloud V i The jth point in Represents the set of real numbers.

[0013] As a further improvement, the preprocessing process of obtaining the standard point cloud W in step 2 is specifically as follows: sampling the preset CAD model of the workpiece to be inspected to obtain point cloud data, using the voxel downsampling method to obtain a point cloud with uniform density, and then using random sampling to obtain a standard point cloud W with a point number M, wherein, W j Represents the jth point in the standard point cloud W.

[0014] As a further improvement, the specific steps of step 3 are as follows:

[0015] Step 3a: transform the standard point cloud W = [w1, ..., w j ,...,w M] is modeled as a Gaussian mixture model, and the model parameters are Among them, w1, w j 、w M All of them represent points in the standard point cloud W. The lower right subscript is the ordinal number of each point in the standard point cloud W. M is the total number of points in the standard point cloud W, which is a positive integer. k 、u k ,∑ k They represent the weight, mean, and variance of the kth Gaussian model respectively. K is the hyperparameter of the Gaussian mixture model, indicating that the Gaussian mixture model is the weighted sum of K Gaussian models.

[0016] Step 3b: Introduce hidden variable Z = {z j |j∈[1...M]},z j represents the correspondence between the jth point and the Gaussian mixture model component, and z j = k represents the standard point cloud W = [w1, ..., w j ,...,w M ] j Generated by the kth Gaussian model;

[0017] Step 3c: transform the standard point cloud W = [w1, ..., w j ,...,w M ] is input into the preset neural network 3D Network, and the M×K matrix A=[α jk ],in α jk Indicates point w j The probability generated by the k-th Gaussian model, that is, p(z j = k) = α jk ;

[0018] Step 3d: Solve the optimal Gaussian mixture model parameters by using the preset first optimization function Make the likelihood of generating the standard point cloud W as large as possible, where p k * 、u k * ,∑ k * They represent the optimal weight, optimal mean and optimal variance of the kth Gaussian model respectively.

[0019] As a further improvement, the first optimization function preset in step 3d is:

[0020]

[0021] Through the above formula, μ k ,Σ k 、p kDerivative and make the derivative zero, the optimal Gaussian mixture model parameters are solved as follows:

[0022]

[0023] In the formula, It represents the value of Θ corresponding to the maximum value of L(·), and the superscript T represents the matrix transpose.

[0024] As a further improvement, the specific steps of step 4 are as follows:

[0025] Step 4a: Assemble the point clouds The model is a Gaussian mixture model with model parameters as follows: In the formula, Respectively represent the weight, mean and variance of the kth Gaussian model, N represents the number of point clouds in the point cloud set V to be registered, and i represents the ordinal number of each point in the point cloud set V to be registered;

[0026] Step 4b: Introducing hidden variables z ij Represents point cloud V i The correspondence between the jth point in and the Gaussian mixture model component, z ij = k represents the point cloud V i Point v in ij Generated by the kth Gaussian model;

[0027] Step 4c: Input the point cloud set V to be registered into the preset neural network 3D Network to obtain N M×K matrices B = [β ijk ],in β ijk Indicates point v ij The probability generated by the k-th Gaussian model, that is, p(z ij = k) = β ijk ;

[0028] Step 4d: Solve the optimal transformation parameters by using the preset second optimization function The likelihood of generating point cloud T(V) by Gaussian mixture model is maximized, where They represent the i-th optimal rotation matrix and the i-th optimal translation matrix respectively.

[0029] As a further improvement, the second optimization function preset in step 4d is:

[0030]

[0031]

[0032] in, Indicates the R corresponding to the minimum value of the functioni Value and t i Value, R i represents the rotation matrix, t i represents the translation matrix, represents the point cloud after weighted calculation of the i-th point cloud, represents the set of real numbers, is the weighted average of the i-th point cloud matched to the k-th Gaussian mixture distribution, is a unit vector, and the superscript T indicates matrix transposition. is a diagonal matrix whose diagonal elements are ||·|| F is the F norm, I represents the identity matrix, and the expression after st is the constraint condition of the second optimization function;

[0033] Solve the preset second optimization function and get the optimal transformation parameter T as:

[0034]

[0035]

[0036] in, The matrices are The left matrix and right matrix after SVD decomposition are: diag(·) represents a diagonal matrix, tr(·) represents the trace of the matrix, is a unit vector.

[0037] As a further improvement, the processing flow of the preset neural network in step 3 and step 4 is as follows:

[0038] Input a point cloud with M points, each point cloud is represented by three-dimensional coordinates, forming an M×3 matrix, which is input into the MLP network, and the point cloud is mapped from three-dimensional space to high-dimensional space to obtain an M×1024 point feature matrix, where the feature dimension of each point cloud is 1024; the point feature matrix is ​​subjected to a maximum pooling operation to obtain a 1×1024 global feature, which is expanded to an M×1024 matrix and concatenated with the point feature matrix to obtain an M×2048 matrix. The concatenated M×2048 matrix is ​​input into the MLP network, and the high-dimensional data is mapped to K dimensions to obtain an M×K matrix, where K is the hyperparameter of the Gaussian mixture model.

[0039] As a further improvement, the neural network preset in step 3 and step 4 needs to be trained before obtaining the latent variables. The specific process is as follows:

[0040] Step a: construct a training data set. The training data set uses a simulated data set or a real data set. The construction of the simulated data set is carried out by sampling the preset CAD model of the workpiece to be inspected, and recording the sampled posture as the training truth value; the construction of the real data set is carried out by using a three-dimensional scanner to sample the workpiece to be inspected, and recording the posture during sampling as the training truth value;

[0041] Step b: Train the neural network, input the point cloud set V to be registered and the corresponding standard point cloud W into the preset neural network, and set the point cloud V i The transformation matrix to the standard point cloud W is T i , given a point cloud V i The true value of the transformation to W is T igt , the Loss function of neural network training is: Loss=||T i T igt -1 -I||, where I is the unit matrix, and the preset neural network is trained by the Loss function until the test error Reaching the preset threshold range, T i (v ij ) represents point v ij After transformation T i The point obtained later, T igt (v ij ) represents point v ij After transformation T igt After getting the point.

[0042] Compared with the prior art, the advantages of the present invention are:

[0043] (1) Good robustness. There are many outliers and noise points in point cloud measurement, which cannot be completely removed using existing algorithms, affecting the registration accuracy. The present invention models the point cloud as a Gaussian mixture model (i.e., a probability model), reducing the impact of outliers or noise points on the registration accuracy.

[0044] (2) Fast reconstruction speed. Since there is no requirement for overlapping areas, the collected point cloud only needs to cover the measured area, which can minimize the number of sampling times. The trained neural network is used to solve the registration parameters without iteration, which reduces the program running time.

[0045] (3) Low reconstruction cost and simple steps. No need to paste markers, which reduces time costs; no need for precise external positioning equipment such as laser trackers, which reduces system complexity and hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0047] Figure 1 It is a flowchart of the multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning.

[0048] Figure 2 This is a training framework diagram of the neural network 3D Network in the method described in the present invention.

[0049] Figure 3 It is a structural diagram of the neural network 3D Network in the method described in the present invention.

[0050] Figure 4 Schematic diagram of using a 3D scanner to sample a free-form surface workpiece. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other without conflict.

[0052] like Figure 1 The figure shows the overall flow chart of the method of the present invention, a multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning, comprising the following steps:

[0053] Step 1: Construct a standard point cloud W and a set of point clouds to be registered V: Sample the preset CAD model of the workpiece to be inspected, discretize it into point cloud data, perform preprocessing, and obtain a standard point cloud W; use a 3D scanner to sample the workpiece to be inspected, obtain point cloud data of N perspectives, preprocess the N point cloud data, and obtain a set of point clouds to be registered V, where N is a positive integer; It should be noted that, if Figure 4 As shown, for a cylindrical workpiece, sampling at six viewing angles (V1 to V6) can cover the entire workpiece. During actual sampling, the sampling area should cover the workpiece to be inspected as completely as possible, and the number of sampling times N should be as small as possible to improve the registration speed.

[0054] Step 2: Model the standard point cloud W and the point cloud set V to be registered as the same Gaussian mixture model, and set the hyperparameter K of the Gaussian mixture model;

[0055] It should be noted that the expression of the Gaussian mixture model is Among them, p k , μ k ,Σ kare the weight, mean and covariance of each Gaussian distribution, An expression representing a single Gaussian model with model parameters Preferably, the value of K is 16.

[0056] Step 3: Assume that the standard point cloud W is a sample generated by the Gaussian mixture model described in step 2, use the preset neural network to obtain the latent variables, and solve the optimal Gaussian mixture model parameters;

[0057] Step 4: Assume that the point cloud set T(V) to be registered after the rigid transformation of the point cloud set V is a sample generated by the Gaussian mixture model described in step 2, use the preset neural network to obtain the latent variable, and use the optimal Gaussian mixture model parameters obtained in step 3 to solve the optimal transformation parameter T, so that the Gaussian mixture model of the point cloud set V to be registered is consistent with the Gaussian mixture model of the standard point cloud W;

[0058] Step 5: The registration of multiple point clouds is completed according to the optimal transformation parameter T, and the alignment with the standard point cloud W is also completed.

[0059] The multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning provided by the present invention first samples the preset CAD model of the workpiece to be inspected, obtains the standard point cloud after preprocessing, and at the same time, measures the workpiece to be inspected with a three-dimensional scanner, and obtains the set of point clouds to be registered after preprocessing; then the standard point cloud and the set of point clouds to be registered are modeled as the same Gaussian mixture model, and the hyperparameter of the Gaussian mixture model is set to K; the standard point cloud is assumed to be a sample generated by the Gaussian mixture model, and the latent variables are obtained by using a preset neural network to solve the optimal Gaussian mixture model parameters; the point cloud set to be registered after the rigid transformation of the point cloud set to be registered is assumed to be a sample generated by the Gaussian mixture model, and the latent variables are obtained by using the preset neural network, and the optimal transformation parameters are solved by using the aforementioned optimal Gaussian mixture model parameters, so that the Gaussian mixture model of the point cloud set to be registered after the transformation is consistent with the Gaussian mixture model of the standard point cloud; the registration of multiple point clouds is completed according to the aforementioned optimal transformation parameters, and the alignment with the standard point cloud is also completed. This method uses a Gaussian mixture model (i.e., a probabilistic model) to model point cloud data, which has good robustness to noise; uses a preset CAD model to guide the alignment of multiple point clouds, and there is no need to consider the overlap of adjacent point clouds during scanning; uses a preset neural network to model model latent variables, which does not require an iterative process and improves the alignment speed; and does not require the addition of landmarks or external positioning devices, simplifying the alignment steps.

[0060] In one embodiment, the preprocessing process in step 1 is specifically as follows: first, outliers are removed, then voxel downsampling method is used to obtain point cloud data with uniform density, and then random sampling is used to obtain N point cloud data with M points each, and a point cloud set V to be registered is obtained, where: Vi represents the point cloud obtained by the i-th sampling, v ij Represents point cloud V i The jth point in represents a set of real numbers; preferably, in this embodiment, N=6, M=1024;

[0061] The preprocessing process in step 2 is as follows: sampling the preset CAD model of the workpiece to be inspected to obtain point cloud data, using the voxel downsampling method to obtain a point cloud with uniform density, and then using random sampling to obtain a standard point cloud W with a point number M, where: W j Represents the jth point in the standard point cloud W. It should be noted that the value of the hyperparameter K of the Gaussian mixture model should be much smaller than M to increase the computing speed and reduce memory usage.

[0062] As a further preferred embodiment, the specific steps of step 3 are as follows:

[0063] Step 3a: transform the standard point cloud W = [w1, ..., w j ,...,w M ] is modeled as a Gaussian mixture model, and the model parameters are Among them, w1, w j 、w M All of them represent points in the standard point cloud W. The lower right subscript is the ordinal number of each point in the standard point cloud W. M is the total number of points in the standard point cloud W, which is a positive integer. k 、u k ,∑ k They represent the weight, mean, and variance of the kth Gaussian model respectively. K is the hyperparameter of the Gaussian mixture model, indicating that the Gaussian mixture model is the weighted sum of K Gaussian models.

[0064] Step 3b: Introduce hidden variable Z = {z j |j∈[1...M]},z j represents the correspondence between the jth point and the Gaussian mixture model component, and z j = k represents the standard point cloud W = [w1, ..., w j ,...,w M ] in the point cloud w j Generated by the kth Gaussian model;

[0065] Step 3c: transform the standard point cloud W = [w1, ..., w j ,...,w M ] is input into the preset neural network 3DNetwork, and the M×K matrix A=[α jk ],in α jk Represents the point cloud w jThe probability generated by the k-th Gaussian model, that is, p(z j = k) = α jk ;

[0066] The specific structure of the three-dimensional neural network (3D Network) can be found in Figure 3 , the processing flow of the neural network is as follows:

[0067] Input a point cloud with M points, each point cloud is represented by three-dimensional coordinates, forming an M×3 matrix, which is input into a multi-layer perceptron network (MLP), and the point cloud is mapped from three-dimensional space to high-dimensional space to obtain an M×1024 point feature matrix (Point Feature), where the feature dimension of each point cloud is 1024; the point feature is subjected to a maximum pooling (Point-wise Maxpool) operation to obtain a 1×1024 global feature, which is expanded (Expand) into an M×1024 matrix and concatenated with the point feature matrix to obtain an M×2048 matrix (Combined Feature), which is input into the MLP network after concatenation, and the high-dimensional data is mapped to K dimensions to obtain an M×K matrix (Correspondence), where K is the hyperparameter of the Gaussian mixture model;

[0068] Step 3d: Solve the optimal Gaussian mixture model parameters by using the preset first optimization function Make the likelihood of generating the standard point cloud W as large as possible, where p k * 、u k * ,∑ k * They represent the optimal weight, optimal mean and optimal variance of the kth Gaussian model respectively.

[0069] Specifically, the above preset first optimization function can be expressed as:

[0070]

[0071] Among them, the three-dimensional Gaussian model expression is:

[0072]

[0073] Among them, |Σ k | represents the matrix Σ k The determinant of y is an example of a variable, representing w in the above formula j -μ k ,||·|| is an operator, That is, Description of the calculation method. Taking the log of the Gaussian distribution function and ignoring the constant term, the final optimization function is as follows:

[0074]

[0075] Through the above formula, μ k ,Σ k 、p k Derivative and make the derivative zero, the optimal Gaussian mixture model parameters are solved as follows:

[0076]

[0077] In the formula, It represents the value of Θ corresponding to the maximum value of L(·), and the superscript T represents the matrix transpose.

[0078] In one embodiment, the specific steps of step 4 are as follows:

[0079] Step 4a: Assemble the point clouds The model is a Gaussian mixture model with model parameters as follows: In the formula, Respectively represent the weight, mean and variance of the kth Gaussian model, N represents the number of point clouds in the point cloud set V, and i represents the ordinal number of each point in the point cloud set V to be registered;

[0080] Step 4b: Introducing hidden variables z ij Represents point cloud v i The correspondence between the jth point in and the Gaussian mixture model component, z ij = k represents the point cloud v i Point v in ij Generated by the kth Gaussian model;

[0081] Step 4c: Input the point cloud set V to be registered into the preset neural network 3D Network to obtain N M×K matrices B = [β ijk ],in β ijk Indicates point v ij The probability generated by the k-th Gaussian model, that is, p(z ij = k) = β ijk ;

[0082] Step 4d: Solve the optimal transformation parameters by using the preset second optimization function The likelihood of generating point cloud T(V) by Gaussian mixture model is maximized, where They represent the i-th optimal rotation matrix and the i-th optimal translation matrix respectively.

[0083] Specifically, The maximum likelihood estimate of is To make the Gaussian mixture model parameter Θ of the standard point cloud W required in step 3 * It tends to be consistent with the Gaussian mixture model of the point cloud set T(V) registered after rigid transformation, that is, minimizing the KL divergence (ie, relative entropy) of the distribution functions of the two models. The specific expression is: In the formula, It represents the T value corresponding to the minimum value of the subsequent formula. This problem (i.e., minimizing the KL divergence of the distribution functions of the two models) is equivalent to maximizing the Gaussian mixture model of the point cloud set T(V) In the standard point cloud distribution Θ * The log-likelihood under :

[0084]

[0085] In the formula, Indicates the T value corresponding to the maximum value of the subsequent formula.

[0086] In order to eliminate the summation symbol in the log function, a hidden variable is introduced Get the optimized function:

[0087]

[0088] Substituting the above three-dimensional Gaussian model expression into the above formula and eliminating the negative sign of the exponential function in the Gaussian model expression, the above maximization problem can be simplified to minimize the following optimization function:

[0089]

[0090] To obtain a closed-form solution, assuming that the Gaussian distribution is isotropic, the covariance matrix can be expressed as Σ k =σ k I 3 , where I 3 is the unit matrix, σ k As a constant, we get the final optimization function:

[0091]

[0092] The problem of solving the optimal value of the transformation matrix can be transformed into a constrained optimization problem in the following matrix form:

[0093]

[0094]

[0095] in, Indicates the R corresponding to the minimum value of the function i Value and t i Value, Ri represents the rotation matrix, t i represents the translation matrix, represents the point cloud after weighted calculation of the i-th point cloud, represents the set of real numbers, is the weighted average of the i-th point cloud matched to the k-th Gaussian mixture distribution, is a unit vector, and the superscript T indicates matrix transposition. is a diagonal matrix whose diagonal elements are ||·|| F is the F norm, I represents the identity matrix, and the expression after st is the constraint condition of the second optimization function;

[0096] Solve the preset second optimization function and get the optimal transformation parameter T as:

[0097]

[0098]

[0099] in and is a matrix After SVD decomposition, the left and right matrices are diag(·) represents a diagonal matrix, tr(·) represents the trace of the matrix, is a unit vector.

[0100] After obtaining the rotation matrix, the translation matrix can be obtained as:

[0101]

[0102] Here, tr(·) represents the trace of the matrix.

[0103] It should be noted that the processing flow of the neural network in step 5 is the same as the processing flow of the neural network in step 4, and will not be repeated here.

[0104] In addition, the neural network preset in steps 4 and 5 needs to be trained before obtaining the latent variables. For details, see Figure 2 , the process is as follows:

[0105] Step a: Construct a training data set. The training data set uses simulated data or real data. The construction of the simulated data set is achieved by sampling the preset CAD model of the workpiece to be inspected, and recording the sampled pose as the true value of the training; the construction of the real data set requires the use of a 3D scanner to sample the workpiece to be inspected, and recording the pose during sampling as the true value of the training; it should be noted that during the neural network training process, the ratio of training data to test data is 3:1.

[0106] Step b: Train the neural network, input the point cloud set V to be registered and the corresponding standard point cloud W into the preset neural network, and set the point cloud V i The transformation matrix to the standard point cloud W is T i , given a point cloud V i The true value of the transformation to W is T igt , the Loss function of neural network training is: Where I is the unit matrix, and the preset neural network is trained by the Loss function until the test error Reaching the preset threshold range, T i (v ij ) represents point v ij After transformation T i The point obtained later, T igt (v ij ) represents point v ij After transformation T igt The above process is detailed in Figure 3 .

[0107] The present invention uses a probabilistic model to model point cloud data, which has good robustness to noise; uses a CAD model to guide the registration of multiple point clouds, and there is no need to consider the overlap of adjacent point clouds during scanning; uses a deep learning algorithm to model model latent variables, and does not require an iterative process, thereby improving the registration speed; and does not require the addition of landmarks or external positioning equipment, thereby simplifying the registration steps.

[0108] Many specific details are set forth in the above description to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein, and therefore, they should not be construed as limiting the scope of protection of the present invention.

[0109] In summary, although the present invention lists the above-mentioned preferred embodiments, it should be noted that although technicians in this field can make various changes and modifications, unless such changes and modifications deviate from the scope of the present invention, they should be included in the protection scope of the present invention.

Claims

1. A multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning, characterized in that: The following steps are involved: Step 1: Construct the standard point cloud W and the point cloud set V to be registered: sample the preset CAD model of the workpiece to be inspected, discretize it into point cloud data, perform preprocessing, and obtain the standard point cloud W; A 3D scanner is used to sample the workpiece to be inspected, and point cloud data of N viewing angles are obtained. The N point cloud data are preprocessed to obtain a point cloud set V to be registered, where N is a positive integer. Step 2: Model the standard point cloud W and the point cloud set V to be registered as the same Gaussian mixture model, and set the hyperparameter of the Gaussian mixture model to K; Step 3: Assume that the standard point cloud W is a sample generated by the Gaussian mixture model described in step 2, use the preset neural network to obtain the latent variables, and solve the optimal Gaussian mixture model parameters; Step 4: Assume that the point cloud set T(V) to be registered after the rigid transformation of the point cloud set V is a sample generated by the Gaussian mixture model in step 2, use the preset neural network to obtain the latent variable, and use the optimal Gaussian mixture model parameters obtained in step 3 to solve the optimal transformation parameter T; Step 5: completing the registration of multiple point clouds according to the optimal transformation parameter T, and also completing the alignment with the standard point cloud W; The specific steps of step 3 are as follows: Step 3a: transform the standard point cloud W = [w1, ..., w j ,...,w M ] is modeled as a Gaussian mixture model, and the model parameters are Among them, w1, w j 、w M All of them represent points in the standard point cloud W. The lower right subscript is the ordinal number of each point in the standard point cloud W. M is the total number of points in the standard point cloud W, which is a positive integer. k , μ k ,∑ k They represent the weight, mean, and variance of the kth Gaussian model respectively. K is the hyperparameter of the Gaussian mixture model, indicating that the Gaussian mixture model is the weighted sum of K Gaussian models. Step 3b: Introduce hidden variable Z = {z j |j∈[1...M]},z j represents the correspondence between the jth point and the Gaussian mixture model component, and z j = k represents the standard point cloud W = [w1, ..., w j ,...,w M ] j Generated by the kth Gaussian model; Step 3c: transform the standard point cloud W = [w1, ..., w j ,...,w M ] is input into the preset neural network 3DNetwork, and the M×K matrix A=[α jk ],in α jk Indicates point w j The probability generated by the k-th Gaussian model, that is, p(z j = k) = α jk ; Step 3d: Solve the optimal Gaussian mixture model parameters by using the preset first optimization function Make the likelihood of generating the standard point cloud W as large as possible, where p k * 、u k * ,∑ k * They represent the optimal weight, optimal mean and optimal variance of the k-th Gaussian model respectively; The first optimization function preset in step 3d is: The above formula is respectively for μ k ,Σ k 、p k Derivative and make the derivative zero, the optimal Gaussian mixture model parameters are solved as follows: In the formula, represents the value of Θ corresponding to the maximum value of L(·), and the superscript T represents the matrix transpose; The specific steps of step 4 are as follows: Step 4a: Assemble the point clouds The model is a Gaussian mixture model with model parameters as follows: In the formula, They represent the weight, mean and variance of the kth Gaussian model respectively, N represents the number of point clouds in the point cloud set V to be registered, and i represents the ordinal number of each point cloud in the point cloud set V to be registered; Step 4b: Introducing hidden variables z ij Represents point cloud V i The correspondence between the jth point in and the Gaussian mixture model component, z ij = k represents the point cloud V i Point v in ij Generated by the kth Gaussian model; Step 4c: Input the point cloud set V to be registered into the preset neural network 3DNetwork to obtain N M×K matrices B=[β ijk ],in β ijk Indicates point v ij The probability generated by the k-th Gaussian model, that is, p(z ij = k) = β ijk ; Step 4d: Solve the optimal transformation parameters by using the preset second optimization function The likelihood of the Gaussian mixture model generating the point cloud set T(V) is maximized, where Represent the i-th optimal rotation matrix and the i-th optimal translation matrix respectively; The second optimization function preset in step 4d is: s.t.R i R i T =I 3 ,|R i |=1 in, Indicates the R corresponding to the minimum value of the function i Value and t i Value, R i represents the rotation matrix, t i represents the translation matrix, It represents the point cloud after weighted calculation of the i-th point cloud. represents the set of real numbers, is the weighted average of the i-th point cloud matched to the k-th Gaussian distribution, is a unit vector, and the superscript T indicates matrix transposition. is a diagonal matrix whose diagonal elements are ||·|| F is the F norm, I represents the identity matrix, and the expression after st is the constraint condition of the second optimization function; Solve the preset second optimization function and get the optimal transformation parameter T as: in, The matrices are The left matrix and right matrix after SVD decomposition are: diag(·) represents a diagonal matrix, tr(·) represents the trace of the matrix, is a unit vector.

2. The multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning according to claim 1, characterized in that: The preprocessing process of obtaining the point cloud set V to be registered in step 1 is specifically as follows: first, outliers are removed, then voxel downsampling method is used to obtain point cloud data with uniform density, and then random sampling is used to obtain N point cloud data with M points each, to obtain the point cloud set V to be registered, where: V i represents the point cloud obtained by the i-th sampling, v ij Represents point cloud V i The jth point in Represents the set of real numbers.

3. The multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning according to claim 2 is characterized in that: The preprocessing process of obtaining the standard point cloud W in step 2 is specifically as follows: sampling the preset CAD model of the workpiece to be inspected to obtain point cloud data, using the voxel downsampling method to obtain a point cloud with uniform density, and then using random sampling to obtain a standard point cloud W with a point number M, wherein, w j Represents the jth point in the standard point cloud W.

4. The multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning according to claim 3 is characterized in that: The processing flow of the preset neural network described in step 3 and step 4 is as follows: Input a point cloud with M points, each point cloud is represented by three-dimensional coordinates, forming an M×3 matrix, which is input into the MLP network, and the point cloud is mapped from three-dimensional space to high-dimensional space to obtain an M×1024 point feature matrix, where the feature dimension of each point cloud is 1024; the point feature matrix is ​​subjected to a maximum pooling operation to obtain a 1×1024 global feature, which is expanded to an M×1024 matrix and concatenated with the point feature matrix to obtain an M×2048 matrix. The concatenated M×2048 matrix is ​​input into the MLP network, and the high-dimensional data is mapped to K dimensions to obtain an M×K matrix, where K is the hyperparameter of the Gaussian mixture model.

5. The multi-point cloud registration method based on Gaussian mixture model latent variable supervised learning according to claim 4 is characterized in that: The neural network preset in step 3 and step 4 needs to be trained before obtaining the hidden variables. The specific process is as follows: Step a: construct a training data set. The training data set uses a simulated data set or a real data set. The construction of the simulated data set is carried out by sampling the preset CAD model of the workpiece to be inspected, and recording the sampled posture as the training truth value; the construction of the real data set is carried out by using a three-dimensional scanner to sample the workpiece to be inspected, and recording the posture during sampling as the training truth value; Step b: Train the neural network, input the point cloud set V to be registered and the corresponding standard point cloud W into the preset neural network, and set the point cloud V i The transformation matrix to the standard point cloud W is T i , given a point cloud V i The true value of the transformation to W is T igt , the Loss function of neural network training is: Loss=||T i T igt -1 -I||, where I is the unit matrix, and the preset neural network is trained by the Loss function until the test error Reaching the preset threshold range, T i (v ij ) represents point v ij After transformation T i The point obtained later, T igt (v ij ) represents point v ij After transformation T igt After getting the point.

Citation Information

Patent Citations

  • Convex hull feature retrieval based Gaussian mixture model point cloud registration method

    CN104318551A

  • Unsupervised multi-view three-dimensional point cloud joint registration method based on WGAN

    CN112837356A

  • Multi-station scanning global point cloud registration method based on graph optimization

    US11037346B1

  • Fast multi-scale point cloud registration with a hierarchical gaussian mixture

    US20190319851A1

  • Method and system for automatically optimizing quality of point cloud data

    WO2015039375A1