A deep learning method for 3D point cloud object classification and recognition

By combining the network composition of PointNet and PointNet++, using T-Net and Multi-resolution grouping methods to extract and fuse local features, it solves the problems of low accuracy and high complexity of existing technologies in large-scale point cloud processing, and achieves High-accuracy and low-complexity 3D point cloud object classification and recognition in industrial scenes.

CN118429962BActive Publication Date: 2024-10-08WUXI TUCHUANG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410891934.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-08
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing deep learning algorithms for 3D visual inspection, such as PointNet and PointNet++, are difficult to effectively capture global and local features when processing large-scale point clouds, resulting in low pattern recognition accuracy and high computational complexity, making it difficult to be widely used in industrial scenarios.

Method used

A PointNet+-model is proposed, which combines the network composition of PointNet and PointNet++, adopts T-Net structure and Multi-resolution grouping method, and reduces complexity and improves generalization ability through one-dimensional convolution and maximum pooling operations. Set abstraction is used and the farthest point sampling method to extract and fuse local features to improve pattern recognition accuracy.

Benefits of technology

It achieves high-accuracy classification and recognition of 3D point cloud objects in industrial scenes, reduces computational complexity and time consumption, improves the generalization performance of the model, and is suitable for large-scale point cloud data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429962B_ABST
    Figure CN118429962B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of industrial detection technology, and in particular to a deep learning method for classification and recognition of three-dimensional point cloud objects, comprising a PointNet+ model; the construction of the PointNet+ model adopts two networks, PointNet++ and PointNet; the PointNet+ model comprises a T-Net structure in the PointNet network and an MLP network for storing information for a single or a small number of point cloud groups, and an MRG method in the PointNet++ model for fusing global and local features; the PointNet+ model comprises three layers of Sa feature extraction layers, three layers of Fc fully connected layers, two layers of T-Net and one layer of one-dimensional convolutional layer; wherein the one-dimensional convolutional layer comprises a one-dimensional convolution operation Conv and a maximum pooling operation Maxp. The method has a fast operation speed and maintains a high accuracy rate of pattern recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention discloses a deep learning method, which belongs to the field of industrial detection technology using artificial intelligence and deep learning algorithms, and specifically relates to a deep learning method for classification and recognition of three-dimensional point cloud objects. Background Art

[0002] The existing deep learning algorithms used in 3D visual detection are mainly PointNet and PointNet++. Figure 1 As shown in the figure, the main advantage of PointNet is that it is an end-to-end learning method with fast calculation speed and low resource requirements. At the same time, based on the T-Net transformation network and maximum pooling symmetric function at the front end of the model, this model supports any sequence of point cloud inputs and can ensure effective feature extraction. However, its disadvantage is that based on the maximum pooling operation mechanism, it is difficult to capture local and global features of dense structures. Therefore, when dealing with large-scale problems, PointNet has poor extraction effects on global features and large-scale local features, which will lead to low overall pattern recognition accuracy. The generalization performance is poor. As Figure 2 As shown in the figure, the PointNet++ network captures the local features of dense structures at multi-scale angles through a hierarchical method, enhancing the ability to identify local structures. By setting different radii and sampling points, it can better fuse local and global features. Through the adaptive learning method, it can better handle the adjustment of the number of sampling points when the point cloud density changes, so that its generalization ability is improved and its adaptability in complex environments is stronger. However, the computational complexity and time complexity of the adaptive method for local and global feature extraction are high. If applied to large-scale point cloud problems, it will consume a lot of resources. Therefore, developing a three-dimensional deep learning algorithm with strong generalization and not too high complexity has become a hot issue in industrial scene detection. Summary of the invention

[0003] Purpose of the invention: To provide a deep learning method for classification and recognition of three-dimensional point cloud objects to solve the above-mentioned problems.

[0004] Technical solution: A deep learning method for classification and recognition of three-dimensional point cloud objects, the deep learning method includes a PointNet+-model; the construction of the PointNet+-model adopts two networks, PointNet++ and PointNet; the PointNet+-model includes a T-Net structure in the PointNet network and an MLP network for storing information for a single or a small number of point cloud groups, and a Multi-resolution grouping method in the PointNet++ model for fusing details and local features;

[0005] The PointNet+- model includes three layers of Sa feature extraction layers, three layers of Fc fully connected layers, two layers of T-Net and one layer of one-dimensional convolutional layer; wherein the one-dimensional convolutional layer includes a one-dimensional convolution operation Conv and a maximum pooling operation Maxp.

[0006] In a further embodiment, different circles in the Sa feature extraction layer represent that for the same center point, different radii are used to search for local features in different neighborhoods and perform fusion operations; then a multi-layer perceptron is used to perform high-dimensional expansion on these features to facilitate the extraction of high-dimensional features in the data.

[0007] In a further embodiment, the structure of the T-Net is a hierarchical convolution module with three layers, that is, convolution kernels of different sizes are used to extract features from a single point cloud and a local point cloud respectively and superimpose the feature vectors in a certain dimension.

[0008] In a further embodiment, the working method of the PointNet+-model comprises the following specific steps:

[0009] Step 1: Construct Multi-scale grouping based on set abstraction and perform feature reorganization and extraction; that is, randomly sample and search for point clouds in different areas in multiple point cloud data of the object to ensure that the features of each part of the object can be sampled;

[0010] Step 2: After the local features of the point cloud object are reorganized and extracted, the extracted point cloud is fed into T-Net for feature alignment; this ensures that the network can still extract effective features under the premise of different point cloud arrangements, thereby improving the accuracy of pattern recognition;

[0011] Step 3: After passing through two T-Nets with latent spaces of different dimensions, the remaining point cloud passes through three one-dimensional convolutional layers, one maximum pooling layer, and three fully connected layers to obtain the final output.

[0012] In a further embodiment, in step one, a certain point is first randomly sampled from all the point cloud data, and then a radius value and a sampling value are randomly set, and several point clouds representing the local features in this area are searched within a sphere with this point as the center and this radius value as the radius, and then one-dimensional convolution and multi-layer perceptron networks are used to train the detailed features and local features in this neighborhood, and store them in the parameters of the neural network.

[0013] In a further embodiment, one-dimensional convolution plays an important role in extracting features of a single point cloud, and a multi-layer perceptron is used for fusing local features; the specific method is as follows:

[0014] Step 11. After training this neighborhood, use the farthest point sampling method to find the next center point. First, initialize a distance value, then randomly sample a point outside the current center sphere, calculate the Euclidean distance from all points sampled in the center sphere to this point, and store it in a list. Set the number of random searches to find several points outside the center sphere, and select the point with the largest distance as the center point for the next calculation. Set the radius, sample several points in this new center sphere, extract features, and perform fusion.

[0015] Step 12: When the number of points in the current center ball is too small and does not meet the set requirements, this center point is discarded and the next center point is searched for;

[0016] Step 13: When searching for sampling points in each central sphere, first normalize all points, determine radii of different sizes, then index all points in the central sphere, randomly sample to obtain index values ​​of these points, and calculate their Euclidean distance to the central point. All points whose distance is greater than the square of the radius are discarded, and then select a specified number of points from the remaining points, and return their specific location information and feature information according to their indexes;

[0017] Step 14: For the features extracted at different radii, use the Concatenation function to concatenate the features obtained in different spaces;

[0018] Step 15: Repeat the above steps 11 to 14 to extract valid features.

[0019] In a further embodiment, in step 2, the T-Net structure includes a one-dimensional convolution layer, a maximum pooling layer and a fully connected layer; in order to ensure that the single feature of each point cloud is completely integrated with the local feature in a neighborhood, the convolution layer uses two convolution kernels of size 1 and size 5, and the features obtained are added after the convolution with the two convolution kernels is completed; the convolution layer uses the GELU activation function for nonlinear mapping; the maximum pooling layer uses the maximum pooling operation to extract features; finally, the data passes through several layers of fully connected layers whose activation function is the parameters of GELU for further storage of features.

[0020] In a further embodiment, when constructing the loss function, the unit matrix and the feat matrix reconstructed after the full connection layer in T-net are used to solve the Frobenius norm of the two matrices for optimization.

[0021] In a further embodiment, in step three, all features of the point cloud object are finally passed to the last layer of the deep neural network through layer-by-layer extraction, and then the output layer is used to perform feature compression to leave key feature information that can distinguish the point cloud objects and perform output prediction; wherein the loss function mainly includes the orthogonal loss of the two T-Net networks and the computational loss of the label and the true value.

[0022] Beneficial effects: The present invention is based on the existing three-dimensional visual deep learning algorithm, creates a new algorithm, and is aimed at the pattern recognition problem of three-dimensional point cloud objects in industrial environments, including the PointNet+-model; the construction of the PointNet+-model adopts two networks, PointNet++ and PointNet; the PointNet+-model includes the T-Net structure in the PointNet network and the MLP network for storing information for a single point cloud and the Multi-resolution grouping method in the PointNet++ model for fusing details and local features; the PointNet+-model includes three layers of Sa feature extraction layers, three layers of Fc fully connected layers, two layers of T-Net and one layer of one-dimensional convolution layer Conv; wherein the one-dimensional convolution layer includes a one-dimensional convolution operation and a maximum pooling operation Maxp. The present invention has a fast computing speed and maintains a high accuracy rate of pattern recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is the schematic diagram of the traditional Pointnet framework.

[0024] Figure 2 This is the schematic diagram of the traditional PointNet++ framework.

[0025] Figure 3 It is the overall structure diagram of the PointNet+-model of the present invention.

[0026] Figure 4 Schematic diagram of the Sa feature extraction layer (set abstraction) of the PointNet+-model of the present invention.

[0027] Figure 5 It is a structural diagram of T-Net of the PointNet+-model of the present invention.

[0028] Figure 6 This is a visualization of part of the point cloud of the dataset tested by the PointNet+-model of the present invention using the Modelnet10 dataset.

[0029] Figure 7 This is a schematic diagram of testing the PointNet+-model of the present invention in actual industrial scene detection.

[0030] Glossary: ​​Multi-Resolution Grouping (MRG) means multi-resolution grouping, Sa means feature extraction layer (set abstraction), Fc means fully connected layer, Conv means one-dimensional convolution layer, Maxp means maximum pooling operation. DETAILED DESCRIPTION

[0031] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] A deep learning method for classification and recognition of three-dimensional point cloud objects, including: PointNet+-model.

[0033] Example 1

[0034] The PointNet+-model proposed in the present invention is a deep learning algorithm for classification and recognition of three-dimensional point cloud objects based on the designs of PointNet++ and PointNet networks. The PointNet+-model retains the T-Net structure in the PointNet network and the MLP network for information storage for a single point cloud, while introducing the Multi-scale grouping method in the PointNet++ model to fuse details and local features. At the same time, considering the complexity issue, this network abandons the Multi-resolution grouping method in PointNet++ and redesigns a one-dimensional convolution method that fuses local and global features to replace the more complex Multi-resolution grouping method. The deep learning program is written in Pytorch. Its specific structure is as follows:

[0035] First, we redesigned the Multi-scale grouping method based on set abstraction. Its main purpose is to randomly sample and search for point clouds in different areas in multiple point cloud data of an object to ensure that the features of each part of the object can be sampled. At the same time, compared with the traditional method of searching all point clouds and extracting features, this method not only ensures the reduction of complexity, but also alleviates the overfitting problem to a certain extent. First, we randomly sample a certain point in all point cloud data, and then randomly set a radius value and sampling value. In the sphere with this point as the center and this radius value as the radius, we search for several point clouds representing the local features in this area. Then, we innovatively use one-dimensional convolution and multi-layer perceptron network to train the detailed features and local features in this neighborhood and store them in the parameters of the neural network. One-dimensional convolution plays an important role in the extraction of single point cloud features, while multi-layer perceptron plays a key role in the fusion of local features. After training this neighborhood, we use the farthest point sampling method to find the next center point. Its strategy is to first initialize a distance value, then randomly sample a point outside the current center ball, calculate the Euclidean distance from all points sampled in the center ball to this point, and store it in a list, set the number of random searches, find several points outside the center ball, and select the point with the largest distance as the center point for the next calculation, and set the radius, sample several points in this new center ball and extract features for fusion. If the number of points in the current center ball is too small and does not meet the set requirements, then discard this center point and continue to look for the next center point. When looking for sampling points in each center ball, in order to facilitate calculation and unify the space, first normalize all points, determine radii of different sizes, then index all points in the center ball, randomly sample to obtain the index values ​​of these points, and calculate their Euclidean distance to the center point, discard all points whose distance is greater than the square of the radius, and then select a specified number of points from the remaining points, and return their specific location information and feature information according to their index. And for the features extracted from different radii, use the Concatenation function to splice the features obtained in different spaces. Repeating this extraction operation several times can effectively reduce the amount of calculation and extract effective features.

[0036] After the local features of the point cloud objects are reorganized and extracted, these newly extracted point clouds enter the T-Net for feature alignment to ensure that the network can still extract effective features under the premise of different point cloud arrangements, thereby improving the accuracy of pattern recognition. The T-Net structure contains a one-dimensional convolution layer, a maximum pooling layer, and a fully connected layer. In order to ensure that the single feature of each point cloud is completely integrated with the local features in a certain neighborhood, the convolution layer uses two convolution kernels of size 1 and size 5. After the convolution of the two convolution kernels is completed, the obtained features are added. The GELU activation function is used for nonlinear mapping to get closer to the real data manifold space. According to the symmetric function principle proposed by PointNet, no matter what form the data input into the network passes through the symmetric function, the same result must be obtained. Considering the convenience of maximum pooling, we still use the maximum pooling operation to extract features. Finally, the data passes through several layers of fully connected layers with more parameters of GELU activation function for further storage of features. In addition, when constructing the loss function, the unit matrix and the feat matrix reconstructed by the fully connected layer in T-net are used to solve the Frobenius norm of the two matrices for optimization.

[0037] After passing through two T-Nets with different dimensions of latent space, the remaining point cloud passes through a one-dimensional convolution layer, a maximum pooling layer, and three fully connected layers to obtain the final output. Through layer-by-layer extraction, all features of the point cloud object are finally passed to the last layer of the deep neural network, and then the output layer is used for feature compression to leave the key feature information that can distinguish the point cloud object and make output predictions. The loss function mainly includes the orthogonal loss of the two T-Net networks and the calculation loss of the label and the true value. In order to ensure the generalization and universality of the model, such as Figure 6 As shown, the present invention first uses the Modelnet10 data set for testing, and then applies the model to a specific scenario of industrial detection.

[0038] In addition to testing on standard open source datasets, this model is also tested in actual industrial scene detection. Figure 7 As shown in the figure, this figure includes three-dimensional surface point cloud defect detection of heat straps and heat pipes, and both have achieved good results. Compared with pointnet, the network accuracy of the present invention is slightly higher under the same hyperparameter conditions and number of iterations. Compared with pointnet++, the model operation time of the present invention is slightly shorter, and it is expected to be applied in more industrial scenarios.

[0039] Example 2

[0040] The overall structure of the PointNet+-model proposed in this invention is as follows Figure 3As shown, it includes: Sa layer, Fc, T-Net and Conv; Sa represents the set abstraction feature extraction layer, there are three layers of Sa, Fc represents the fully connected layer, there are three layers in total, T-Net has two layers, Conv represents the one-dimensional convolution layer, and Maxp represents the maximum pooling operation.

[0041] like Figure 4 As shown in the figure, different circles in the Sa (set abstraction) feature extraction layer represent that for the same center point, different radii are used to search for local features in different neighborhoods and perform fusion operations, and then a multi-layer perceptron is used to perform high-dimensional expansion on these features. Figure 5 As shown in the figure, in the structure of T-Net, H-conv represents a hierarchical convolution module, that is, convolution kernels of different sizes are used to extract and add features of a single point cloud and a local point cloud respectively.

[0042] Assume that the input point cloud data The tensor shape is ,in It stands for batch size, which refers to the number of data samples processed simultaneously in each iteration of model training. Represents the number of point clouds in a batch, Represents the feature dimension of the point cloud (including location information and feature information). After passing through three layers of Sa, the point cloud data is output The tensor shape is ,in represents the number of point clouds in a batch, and , represents the feature dimension of the point cloud, and The role of the Fc1 layer is to increase the last dimension of the point cloud after dimensionality reduction, so as to pass it into the T-Net for alignment. After two T-Nets, the model returns two values: the first value is the point cloud data that will enter the convolutional layer and the fully connected layer for further training. , its tensor shape is ,in Represents the number of point clouds in a batch, Represents the feature dimension of the point cloud and the other is used to train the orthogonal loss after deformation. and Three-dimensional matrix, shape and Then after further one-dimensional convolution and maximum pooling operation in the last dimension, the dimension of the tensor changes from 3D to 2D, and finally passes through the fully connected layer to get the output . It can be expressed as:

[0043]

[0044]

[0045]

[0046] The loss function Designed for:

[0047]

[0048] in is the NLLloss function, , , Represents the true label of each point cloud. and are all hyperparameters.

[0049] Comparing the three deep learning frameworks, they all use the maximum pooling mechanism as a symmetric function, they all use one-dimensional convolution and fully connected layers for feature learning, and their layer-by-layer feature transfer mechanisms are also very similar. The difference is that compared to PointNet, the PointNet+- model of the present invention uses a set abstraction mechanism to merge single point clouds and spherical local point cloud features by radius, thereby promoting feature transfer and learning and improving pattern recognition accuracy. In T-net, the framework of the present invention adopts a hierarchical convolution strategy to perfectly integrate features at different levels. Compared to PointNet++, PointNet+- retains the T-net structure to better train orthogonal losses in order to support inputs of different shapes, and it also removes the set abstraction method of MRG, thereby further reducing the complexity of the network while ensuring that the accuracy is basically not reduced, so that the network can be better applied to large-scale point cloud problems. In addition, PointNet+- has more layers than the first two classic deep learning frameworks, and introduces partial residual learning and dense learning mechanisms in each layer, which means that the features of the first few layers are transferred to the next few layers in the form of linear addition, thus ensuring more complete and sufficient feature extraction. At the same time, the introduction of these two learning mechanisms avoids the gradient vanishing problem that may be encountered in deep learning to a certain extent, ensuring smoother model training. The learning rate of the model is set to 0.001, and the optimization algorithm is the Adam algorithm. The network is set to 300 epochs.

[0050] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A deep learning method for classification and recognition of three-dimensional point cloud objects, characterized in that: The deep learning method includes a PointNet+-model; the PointNet+-model is constructed by using two networks, PointNet++ and PointNet; the PointNet+-model includes a T-Net structure in the PointNet network and an MLP network for storing information for a single or a small number of point cloud groups, and uses a Multi-resolution grouping method in the PointNet++ model to fuse details and local features; The PointNet+-model includes three layers of Sa feature extraction layers, three layers of Fc fully connected layers, two layers of T-Net and one layer of one-dimensional convolutional layer; wherein the one-dimensional convolutional layer includes a one-dimensional convolution operation Conv and a maximum pooling operation Maxp; The structure of the T-Net is a hierarchical convolution module with three layers, that is, using one-dimensional convolution kernels of different sizes to extract features from a single point cloud and a local point cloud respectively and superimpose feature vectors in a certain dimension; The working method of the PointNet+-model is as follows: Step 1: Construct Multi-scale grouping based on set abstraction and perform feature reorganization and extraction; that is, randomly sample and search for point clouds in different areas in multiple point cloud data of the object to ensure that the features of each part of the object can be sampled; Step 2: After the local features of the point cloud object are reorganized and extracted, the extracted point cloud is fed into T-Net for feature alignment; this ensures that the network can still extract effective features under the premise of different point cloud arrangements, thereby improving the accuracy of pattern recognition; Step 3: After passing through two T-Nets with different dimensions of latent space, the remaining point cloud passes through three one-dimensional convolutional layers, one maximum pooling layer, and three fully connected layers to obtain the final output; In step 2, the T-Net structure includes a one-dimensional convolution layer, a maximum pooling layer and a fully connected layer. In order to ensure that the single feature of each point cloud is completely integrated with the local features in a neighborhood, the convolution layer uses two one-dimensional convolution kernels of size 1 and size 5. After the convolution with the two convolution kernels is completed, the obtained features are added together. The convolution layer uses the GELU activation function for nonlinear mapping. The maximum pooling layer uses the maximum pooling operation to extract features. Finally, the data passes through several layers of fully connected layers with the activation function of GELU parameters for further storage of features.

2. A deep learning method for classification and recognition of three-dimensional point cloud objects according to claim 1, characterized in that: The different circles in the Sa feature extraction layer represent that for the same center point, different radii are used to search for local features in different neighborhoods and perform fusion operations; then a multi-layer perceptron is used to perform high-dimensional expansion on these features.

3. The deep learning method for classification and recognition of three-dimensional point cloud objects according to claim 1, characterized in that: In step 1, some points are randomly sampled from all point cloud data, and then a radius value and sampling value are randomly set. Several point clouds representing the local features in this area are searched within a sphere with this point as the center and this radius value as the radius. Then, one-dimensional convolution and multi-layer perceptron network are used to train the detailed features and local features in this neighborhood and store them in the parameters of the neural network.

4. A deep learning method for classification and recognition of three-dimensional point cloud objects according to claim 3, characterized in that: One-dimensional convolution plays an important role in extracting single point cloud features, while multi-layer perceptron is used for the fusion of local features; the specific methods are as follows: Step 11. After training this neighborhood, use the farthest point sampling method to find the next center point. First, initialize a distance value, then randomly sample a point outside the current center sphere, calculate the Euclidean distance from all points sampled in the center sphere to this point, and store it in a list. Set the number of random searches to find several points outside the center sphere, and select the point with the largest distance as the center point for the next calculation. Set the radius, sample several points in this new center sphere, extract features, and perform fusion. Step 12: When the number of points in the current center ball is too small and does not meet the set requirements, this center point is discarded and the next center point is searched for; Step 13: When searching for sampling points in each central sphere, first normalize all points, determine radii of different sizes, then index all points in the central sphere, randomly sample to obtain index values ​​of these points, and calculate their Euclidean distance to the central point. All points whose distance is greater than the square of the radius are discarded, and then select a specified number of points from the remaining points, and return their specific location information and feature information according to their indexes; Step 14: For the features extracted at different radii, use the Concatenation function to concatenate the features obtained in different spaces; Step 15: Repeat the above steps 11 to 14 to extract valid features.

5. The deep learning method for classification and recognition of three-dimensional point cloud objects according to claim 1, characterized in that: When constructing the loss function, the unit matrix and the feat matrix reconstructed after the fully connected layer in T-net are used to solve the Frobenius norm of the two matrices for optimization.

6. The deep learning method for classification and recognition of three-dimensional point cloud objects according to claim 1, characterized in that: In step 3, all features of the point cloud object are finally transferred to the last layer of the deep neural network through layer-by-layer extraction, and then the output layer is used to perform feature compression to retain the key feature information that distinguishes the point cloud object and perform output prediction; The loss function includes the orthogonal loss of the two T-Net networks and the computational loss of the labels and true values.