Point cloud part-level segmentation method based on PointNet graph convolution and KNN search

By introducing graph convolution and KNN search methods into the PointNet network, constructing a k-nearest neighbor graph and combining it with a multi-layer perceptron network, it solves the problem of PointNet's low semantic segmentation accuracy in point cloud part-level segmentation, and achieves a more efficient Local and global feature extraction significantly improves segmentation accuracy.

CN114170410BActive Publication Date: 2024-09-06XIAN UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111442718.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2024-09-06
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

In the point cloud part-level segmentation, the PointNet network only extracts the features of individual points, resulting in low semantic segmentation accuracy and failure to effectively capture the geometric relationships and local features between nodes.

Method used

Using the graph convolution and KNN search method based on PointNet, by constructing a k-nearest neighbor graph, local features are extracted and dynamically updated, and combined with the multi-layer perceptron network and the newly designed T-Net network to ensure rotation invariance and global feature fusion. Implement part-level segmentation of point clouds.

Benefits of technology

It improves the part-level segmentation accuracy of three-dimensional point cloud objects, effectively captures local and global features of point clouds, and improves the accuracy of segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114170410B
    Figure CN114170410B
Patent Text Reader

Abstract

The present invention discloses a point cloud part-level segmentation method based on PointNet graph convolution and KNN search. Firstly, a micro-network T‑Net is used to ensure the rotation invariance of the point cloud. Then, the Euclidean distance between each pair of points is calculated, and the k points with the closest distance are selected. i A k-nearest neighbor graph is constructed for the center point to extract local features. In the subsequent model training, the k-nearest neighbor graph is dynamically updated for each layer to obtain local feature information. Next, a new T-Net micro-network is designed to align local feature data of different point clouds. Finally, the output multi-layer local features are spliced ​​with the global features, and then multiple MLP operations are performed to obtain the part-level segmentation result of the three-dimensional point cloud object. The present invention can improve the part-level segmentation accuracy of the three-dimensional point cloud object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of point cloud object segmentation, and in particular relates to a point cloud part-level segmentation method based on PointNet graph convolution and KNN search. Background Art

[0002] The analysis and understanding of three-dimensional shapes has always been an important research topic in computer graphics. In recent years, the popularity of depth sensors and three-dimensional laser scanners has promoted the rapid development of three-dimensional point cloud processing methods. As the basis for 3D scene understanding and analysis, part-level segmentation of three-dimensional point cloud objects has become a research focus in the fields of navigation and positioning, medical image analysis, pattern recognition, etc., with important research value and broad application prospects.

[0003] Point cloud part-level segmentation is to divide the point cloud into several areas with detailed semantic categories. The basic point cloud contains 6-dimensional features, namely XYZ coordinates and RGB color information. With the emergence of large-scale data sets, the reduction of computer hardware costs and the improvement of GPU parallel computing capabilities, deep learning has gradually occupied an absolute dominant position in the field of point cloud segmentation. Deep learning with PointNet network as the pioneer has been studied and used by more scholars. The network model is very simple. According to the characteristics of point cloud data, it can directly operate on the original point cloud data. At the same time, MaxPooling is used as a symmetric function to deal with the disorder of point clouds, and two T-net networks are used to process the model for rotation invariance.

[0004] The PointNet network mainly processes points independently at a local scale, maintaining arrangement invariance, but does not take into account the interaction between neighboring points, thus missing local features of the geometric relationship between nodes. Based on this, the present invention optimizes the PointNet network and proposes a part-level segmentation method based on PointNet graph convolution and KNN search, which more efficiently aggregates the neighborhood features of the point cloud. Summary of the invention

[0005] The purpose of the present invention is to provide a point cloud part-level segmentation method based on PointNet graph convolution and KNN search, which solves the problem of low semantic segmentation accuracy caused by the PointNet network only extracting features of individual points.

[0006] The technical solution adopted by the present invention is a point cloud part-level segmentation method based on PointNet graph convolution and KNN search, which is specifically implemented in the following steps:

[0007] Step 1, point cloud spatial alignment: input point cloud data, use T-Net micro network to predict the affine transformation matrix, and use the matrix to align the input point cloud data;

[0008] Step 2, local feature extraction: In order to capture local features, each point in step 1 is regarded as a vertex, the nearest k points are selected to construct a k-nearest neighbor graph, and edge convolution is applied on the edges connecting adjacent point pairs to obtain the edge feature information between each pair of points. Then, the local feature matrix information is extracted through the multi-layer perceptron network MLP operation;

[0009] Step 3, dynamically update the local neighborhood graph: update the k-nearest neighbor graph of each layer of the MLP according to the embedding order, and extract the updated local feature matrix information;

[0010] Step 4, point cloud feature transformation: design a new T-Net micro network, input the updated local feature matrix information into the new T-Net network for coordinate alignment, and ensure the rotation invariance of the feature points;

[0011] Step 5, local feature and global feature fusion: MaxPolling maximum pooling operation is performed on the aligned and updated local feature matrix information. The global feature information obtained by this operation is aggregated and then processed through multiple MLPs to obtain the category score of each object, thereby realizing part-level segmentation of three-dimensional objects.

[0012] The present invention is also characterized in that:

[0013] Step 1 is as follows:

[0014] Step 1.1: Input the point cloud data of the 3D object P = {p1, p2, ..., p i ,…,p N}, where p i Represents the position information of the i-th point, N is the number of points of the object, i.e. point_num, N=2048, the batch processing batch_size is 4, and the epoch size of one training period is 200;

[0015] Step 1.2, in order to make the model permutation invariant to the input, use a symmetric function to aggregate the information of each point to obtain the affine matrix A:

[0016] f({p1,…,p N})≈g(h(p1),…,h(p N )), (1)

[0017] In formula (1), h represents the multi-layer perceptron network, g represents the maximum pooling function, and f represents the feature information of the captured point cloud set;

[0018] In step 1.3, the input point cloud data is multiplied by the affine matrix A and then processed by multiple MLPs to achieve coordinate alignment of the input point cloud.

[0019] Step 2 is as follows:

[0020] Step 2.1, use Euclidean distance as the metric to select k nearest neighbor points k = 20;

[0021] Step 2.2: for each point p of the point cloud data obtained after alignment in step 1 i and its k nearest neighbor points q j ,j=1,2,…,k constructs a k-nearest neighborhood graph, where R F Represents the F-dimensional input point cloud matrix.

[0022] Step 2.3, the k-nearest neighbor graph structure is G = (V, E), where V = {p i |i=1,…,N} represents the vertex set, E={e i =(e i1 ,e i2 ,…,e ij ,…e ik )|i=1,2,…,N} represents the edge set between vertices, e ij Represents point p i Directed edges with k nearest neighbors;

[0023] In step 2.4, the k-nearest neighbor graph obtained after the update in step 2.3 is processed by MLP convolution to obtain the local feature matrix information of the three-dimensional point cloud object.

[0024] Step 3 is as follows:

[0025] Step 3.1, MLP contains two convolutional layers, a batch normalization layer and an activation layer. The convolution kernel sizes of the two convolutional layers are 64, 64 from left to right. The output point cloud data of each layer of the MLP network is l represents the lth layer of the MLP network;

[0026] Step 3.2: According to the output point cloud data of each layer of the MLP network, each layer of the MLP network obtains a different output k-nearest neighbor graph G l =(V l ,E l ), G l represents the k-nearest neighbor graph of the output of layer l, V l Represents G l The corresponding vertex set, E l Represents G l The set of edges between corresponding vertices;

[0027] Step 3.3, obtain the local feature matrix information of each layer based on the k-nearest neighbor graph output by each layer.

[0028] The new T-Net network is designed to add a regularization term as shown in formula (3) to the softmax training loss of the conventional T-Net network framework, which restricts the feature transformation matrix to be close to an orthogonal matrix.

[0029]

[0030] In formula (3), A is the affine matrix predicted by the T-Net network, which ensures that the orthogonal transformation will not lose the input information, I is the unit matrix, and F represents the point cloud dimension.

[0031] Step 5 is as follows:

[0032] Step 5.1, taking the aligned updated local feature matrix information as input, and performing convolution operation processing through three spatial_transform modules to obtain three local feature information net1, net2, and net3 respectively;

[0033] Step 5.2, concatenate the three local features corresponding to the three spatial_transform modules: net1, net2, and net3, and output them as out;

[0034] Step 5.3, the output out data is subjected to the MaxPolling maximum pooling operation to obtain the global features of the current layer;

[0035] Step 5.4, concatenate the global features of the current layer with the label information of the input point cloud in the data set to obtain the global feature global_feature of the entire network;

[0036] Step 5.5, concatenate the global feature global_feature with net1, net2, and net3;

[0037] Step 5.6, perform MLP multi-layer perceptron processing on the data spliced ​​in step 5.5 to obtain the category scores of all objects and realize part-level segmentation of three-dimensional objects.

[0038] The beneficial effects of the present invention are:

[0039] The present invention proposes a point cloud part-level segmentation method based on PointNet graph convolution and KNN search. First, a micro-network T-Net (input_transform) is used to ensure the rotation invariance of the point cloud. Then, the Euclidean distance between each pair of points is calculated, and the k points with the closest distance are selected. iA k-nearest neighbor graph is constructed for the center point to extract local features. In subsequent model training, the k-nearest neighbor graph is dynamically updated for each layer to obtain local feature information. Next, local feature data of different point clouds are aligned through a T-Net (feature_transform) micro-network. Finally, the output multi-layer local features are spliced ​​with the global features, and then multiple MLP (multi-layer perceptron) operations are performed to obtain the part-level segmentation result of the three-dimensional point cloud object. The present invention can improve the part-level segmentation accuracy of the three-dimensional point cloud object. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a network architecture diagram of the point cloud part-level segmentation method based on PointNet graph convolution and KNN search;

[0041] Figure 2 It is a point cloud part-level segmentation method based on PointNet's graph convolution and KNN search. It is an improved graph convolution and KNN search edge feature (edge_feature) extraction network diagram;

[0042] Figure 3 It is the result of part-level segmentation of 3D objects in the ShapeNetCore dataset;

[0043] Figure 4 (a) is the loss curve during the ShapeNetCore dataset training process

[0044] Figure 4 (b) is the accuracy curve during the training process of ShapeNetCore dataset. DETAILED DESCRIPTION

[0045] The present invention is described in detail below in conjunction with specific implementation modes.

[0046] Example

[0047] This embodiment provides a point cloud part-level segmentation method based on PointNet graph convolution and KNN search, such as Figure 1 As shown, the specific steps are as follows:

[0048] Step 1, point cloud spatial alignment: input point cloud data, use T-Net micro network to predict the affine transformation matrix, and use the matrix to align the input point cloud data;

[0049] Step 1.1: Input the point cloud data of the 3D object P = {p1, p2, ..., p i ,…,p N}, where p iRepresents the position information of the i-th point, N is the number of points of the object, i.e. point_num, N=2048, the batch processing batch_size is 4, and the epoch size of one training period is 200;

[0050] Step 1.2, in order to make the model permutation invariant to the input, use a symmetric function to aggregate the information of each point to obtain the affine matrix A:

[0051] f({p1,…,p N})≈g(h(p1),…,h(p N )), (1)

[0052] In formula (1), h represents the multi-layer perceptron network, g represents the maximum pooling function, and f represents the feature information of the captured point cloud set;

[0053] In step 1.3, the input point cloud data is multiplied by the affine matrix A and then processed by multiple MLPs to achieve coordinate alignment of the input point cloud.

[0054] Step 2, local feature extraction: In order to capture local features, each point in step 1 is regarded as a vertex, the nearest k points are selected to construct a k-nearest neighbor graph, and edge convolution is applied on the edges connecting adjacent point pairs to obtain the edge feature information between each pair of points. Then, the local feature matrix information is extracted through the multi-layer perceptron network MLP operation;

[0055] Step 2.1, use Euclidean distance as the metric to select k nearest neighbor points k = 20;

[0056] Step 2.2: for each point p of the point cloud data obtained after alignment in step 1 i and its k nearest neighbor points q j ,j=1,2,…,k constructs a k-nearest neighborhood graph, where R F Represents the F-dimensional input point cloud matrix.

[0057] Step 2.3, the k-nearest neighbor graph structure is G = (V, E), where V = {p i |i=1,…,N} represents the vertex set, E={e i =(e i1 ,e i2 ,…,e ij ,…e ik )|i=1,2,…,N} represents the edge set between vertices, e ij Represents point p i Directed edges with k nearest neighbors;

[0058] In step 2.4, the k-nearest neighbor graph obtained after the update in step 2.3 is processed by MLP convolution to obtain the local feature matrix information of the three-dimensional point cloud object.

[0059] Step 3, dynamically update the local neighborhood graph: update the k-nearest neighbor graph of each layer of the MLP according to the embedding order, and extract the updated local feature matrix information;

[0060] Step 3.1, MLP contains two convolutional layers, a batch normalization layer and an activation layer. The convolution kernel sizes of the two convolutional layers are 64, 64 from left to right. The output point cloud data of each layer of the MLP network is l represents the lth layer of the MLP network;

[0061] Step 3.2: According to the output point cloud data of each layer of the MLP network, each layer of the MLP network obtains a different output k-nearest neighbor graph G l =(V l ,E l ), G l represents the k-nearest neighbor graph of the output of layer l, V l Represents G l The corresponding vertex set, E l Represents G l The set of edges between corresponding vertices;

[0062] Step 3.3, obtain the local feature matrix information of each layer based on the k-nearest neighbor graph output by each layer.

[0063] Step 4, point cloud feature transformation: design a new T-Net micro network, input the updated local feature matrix information into the new T-Net network for coordinate alignment, and ensure the rotation invariance of the feature points;

[0064] The new T-Net network is designed to add a regularization term as shown in formula (3) to the softmax training loss of the conventional T-Net network framework, which restricts the feature transformation matrix to be close to an orthogonal matrix.

[0065]

[0066] In formula (3), A is the affine matrix predicted by the T-Net network, which ensures that the orthogonal transformation will not lose the input information, I is the unit matrix, and F represents the point cloud dimension.

[0067] Step 5, local feature and global feature fusion: MaxPolling maximum pooling operation is performed on the aligned and updated local feature matrix information. The global feature information obtained by this operation is aggregated and then processed through multiple MLPs to obtain the category score of each object, thereby realizing part-level segmentation of three-dimensional objects.

[0068] Step 5.1, the aligned updated local feature matrix information is used as input, and the convolution operation is processed by three spatial_transform modules to obtain three local feature information net1, net2, net3, and spatial_transform modules respectively. Figure 2 As shown, the spatial_transform module consists of a side convolution module and multiple MLP multi-layer perceptron modules;

[0069] Step 5.2, concatenate the three local features corresponding to the three spatial_transform modules: net1, net2, and net3, and output them as out;

[0070] Step 5.3, the output out data is subjected to the MaxPolling maximum pooling operation to obtain the global features of the current layer;

[0071] Step 5.4, concatenate the global features of the current layer with the label information of the input point cloud in the data set to obtain the global feature global_feature of the entire network;

[0072] Step 5.5, concatenate the global feature global_feature with net1, net2, and net3;

[0073] Step 5.6: Process the data concatenated in step 5.5 using the MLP multi-layer perceptron to obtain the category scores of all objects, such as Figure 3 As shown, part-level segmentation of three-dimensional objects is achieved.

[0074] In the training process, the present invention uses the cross entropy loss function to learn parameters, so that the model reaches a convergence state and reduces the error of the model prediction value. Figure 4 As shown, Figure 4 (a) represents the loss curve during training. Figure 4 (b) represents the accuracy curve. As the number of epochs increases, the accuracy of the training set increases and the loss decreases steadily, which shows that the learning model of the present invention has good adaptability to the training set.

[0075] From the above method, it can be seen that since point clouds essentially lack topological information, graph convolutional neural networks can run directly on graph structures and can rely on information transfer between nodes in the graph to capture dependencies in the graph. In view of the limitations of local feature extraction in the PointNet framework, the present invention uses graph convolutional neural networks to extract the features of the center point and the edge vectors between the center point and its k nearest neighboring points to obtain the local features of the point cloud, which more effectively improves the problem that the PointNet network cannot extract local structures.

Claims

1. A point cloud part-level segmentation method based on PointNet graph convolution and KNN search, characterized in that: The specific steps are as follows: Step 1, point cloud spatial alignment: input point cloud data, use T-Net micro network to predict the affine transformation matrix, and use the matrix to align the input point cloud data; Step 2, local feature extraction: In order to capture local features, each point in step 1 is regarded as a vertex, the nearest k points are selected to construct a k-nearest neighbor graph, and edge convolution is applied on the edges connecting adjacent point pairs to obtain the edge feature information between each pair of points. Then, the local feature matrix information is extracted through the multi-layer perceptron network MLP operation; Step 3, dynamically update the local neighborhood graph: update the k-nearest neighbor graph of each layer of the MLP according to the embedding order, and extract the updated local feature matrix information; Step 4, point cloud feature transformation: design a new T-Net micro network, input the updated local feature matrix information into the new T-Net network for coordinate alignment, and ensure the rotation invariance of the feature points; Step 5, local feature and global feature fusion: MaxPolling maximum pooling operation is performed on the aligned and updated local feature matrix information. The global feature information aggregated by this operation is then processed through multiple MLPs to obtain the category score of each object, thereby realizing part-level segmentation of three-dimensional objects.

2. The point cloud part-level segmentation method based on PointNet graph convolution and KNN search according to claim 1, characterized in that: The step 1 is specifically as follows: Step 1.1: Input the point cloud data of the 3D object P = {p1, p2, ..., p i ,…,p N }, where p i Represents the position information of the i-th point, N is the number of points of the object, that is, point_num, N = 2048, the batch processing batch_size is 4, and the epoch size of one training period is 200; Step 1.2, in order to make the model permutation invariant to the input, use a symmetric function to aggregate the information of each point to obtain the affine matrix A: f({p1,…,p N })≈g(h(p1),…,h(p N )), (1) In formula (1), h represents the multi-layer perceptron network, g represents the maximum pooling function, and f represents the feature information of the captured point cloud set; In step 1.3, the input point cloud data is multiplied by the affine matrix A and then processed by multiple MLPs to achieve coordinate alignment of the input point cloud.

3. The point cloud part-level segmentation method based on PointNet graph convolution and KNN search according to claim 2 is characterized in that: The step 2 is specifically as follows: Step 2.1, use Euclidean distance as the metric to select k nearest neighbor points k = 20; Step 2.2: for each point p of the point cloud data obtained after alignment in step 1 i and its k nearest neighbor points q j ,j=1,2,…,k constructs a k-nearest neighborhood graph, where R F Represents the F-dimensional input point cloud matrix; Step 2.3, the k-nearest neighbor graph structure is G = (V, E), where V = {p i |i=1,…,N} represents the vertex set, E={e i =(e i1 ,e i2 ,…,e ij ,…e ik )|i=1,2,…,N} represents the edge set between vertices, e ij Represents point p i Directed edges with k nearest neighbors; In step 2.4, the k-nearest neighbor graph obtained after the update in step 2.3 is processed by MLP convolution to obtain the local feature matrix information of the three-dimensional point cloud object.

4. The point cloud part-level segmentation method based on PointNet graph convolution and KNN search according to claim 1, characterized in that: The step 3 is specifically as follows: Step 3.1, MLP contains two convolutional layers, a batch normalization layer and an activation layer. The convolution kernel sizes of the two convolutional layers are 64, 64 from left to right. The output point cloud data of each layer of the MLP network is l represents the lth layer of the MLP network; Step 3.2: According to the output point cloud data of each layer of the MLP network, each layer of the MLP network obtains a different output k-nearest neighbor graph G l =(V l ,E l ), G l represents the k-nearest neighbor graph of the output of layer l, V l Represents G l The corresponding vertex set, E l Represents G l The set of edges between corresponding vertices; Step 3.3, obtain the local feature matrix information of each layer based on the k-nearest neighborhood graph output by each layer.

5. The point cloud part-level segmentation method based on PointNet graph convolution and KNN search according to claim 1, characterized in that: The new T-Net network designed in step 4 adds a regularization term as shown in formula (3) to the softmax training loss of the conventional T-Net network framework, restricting the feature transformation matrix to be close to an orthogonal matrix; In formula (3), A is the affine matrix predicted by the T-Net network, which ensures that the orthogonal transformation will not lose the input information, I is the unit matrix, and F represents the point cloud dimension.

6. The point cloud part-level segmentation method based on PointNet graph convolution and KNN search according to claim 1, characterized in that: The step 5 is specifically as follows: Step 5.1, taking the aligned and updated local feature matrix information as input, and performing convolution operations through three spatial_transform modules to obtain three local feature information net1, net2, and net3 respectively; Step 5.2, concatenate the three local features corresponding to the three spatial_transform modules: net1, net2, and net3, and output them as out; Step 5.3, the output out data is subjected to the MaxPolling maximum pooling operation to obtain the global features of the current layer; Step 5.4, concatenate the global features of the current layer with the label information of the input point cloud in the data set to obtain the global feature global_feature of the entire network; Step 5.5, concatenate the global feature global_feature with net1, net2, and net3; Step 5.6, perform MLP multi-layer perceptron processing on the data spliced ​​in step 5.5 to obtain the category scores of all objects and realize part-level segmentation of three-dimensional objects.

Citation Information

Patent Citations

  • Three-dimensional point cloud automatic classification method based on graph convolutional neural network

    CN112488210A

  • Direction and distance fused three-dimensional point cloud segmentation method based on graph convolution

    CN113628217A

  • Point cloud component segmentation method based on local feature enhancement and similarity measurement

    CN115049833A

  • Point cloud segmentation method, computer-readable storage medium and computer device

    WO2020173297A1