3D point cloud object identification method and system, storage medium and product
By adopting a metric learning framework and a dual-network embedding model in 3D point cloud recognition, combined with a representation enhancement algorithm, the model overfitting problem of point cloud small sample recognition in the existing technology is solved, and a more efficient point cloud object recognition effect is achieved .
Patent Information
- Application Number
- CN202411484121.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-10-23
AI Technical Summary
The existing small sample learning methods for image data are difficult to adapt to the recognition of 3D point cloud data, resulting in poor model overfitting and recognition effects.
Using the metric learning framework, a dual-network embedding model and representation enhancement algorithm are designed, and local and global features are extracted through dynamic graph convolution networks and global feature extraction networks, and feature enhancement of prototype vectors and query vectors is implemented on the classifier to realize point cloud Effective identification of small sample objects.
It improves the accuracy and robustness of point cloud small sample object recognition, making prototype vectors and query vectors closer to each other, reducing the risk of model overfitting.
Smart Images

Figure CN119007188A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of 3D object recognition, and in particular to a 3D point cloud object recognition method, system, storage medium and product. Background Art
[0002] Currently, the mainstream small sample learning methods are widely used on image data, while the small sample recognition methods for 3D point cloud data are still in the initial development stage.
[0003] The existing point cloud small sample classification methods directly use the paradigm of image data small sample learning, but 3D point cloud data is disordered and irregularly distributed in the 3D coordinate system, which is different from image data distributed in a 2D plane grid. In addition, image small sample learning can use large data sets such as ImageNet1K for large network pre-training, while point cloud small sample classification does not have this condition, so using a large network for small sample classification is prone to model overfitting. In general, the small sample learning method that directly applies existing image data is difficult to adapt to point cloud small sample object recognition. Summary of the invention
[0004] The object of the present invention is to provide a 3D point cloud object recognition method, system, storage medium and product that can be applied to point cloud small sample object recognition.
[0005] In order to achieve the above object, the present invention adopts such technical solution: A 3D point cloud object recognition method comprises the following steps performed in sequence: S1: collect point cloud data of the object and sample the point cloud data to construct a point cloud dataset; S2: The sampled point cloud dataset is divided into non-overlapping meta-training dataset and meta-testing dataset using a metric learning framework. The single batch input samples for training and testing include B samples, and the B samples contain K*C support samples and K*Q query samples. S3: A dual-network embedding model is constructed on the embedding network. The dual-network embedding model includes a parallel dynamic graph convolutional network and a global feature extraction network, which focus on local feature extraction and global feature extraction of point clouds respectively. The dynamic convolutional network includes a first concatenation module, a first maximum pooling module, and multiple EdgeConv modules. The global feature extraction network includes a second splicing module, a copy module, two second maximum pooling modules and a multi-layer perceptron module; S4: Input the B samples divided in step S2 into the dual-network embedding model, and the dynamic graph convolutional network extracts features from the B samples to obtain B*512 local features X D, the global feature extraction network extracts features from B samples and obtains B*512 global features X G , X D and X G Concatenate and obtain the B*1024 embedding vector; S5: Design a representation enhancement algorithm module on the classifier to perform weighted operations on the B*1024 embedding vector. The specific operations of the enhancement algorithm module are as follows: S5-1: Separate J query vectors from the B*1024 embedding vector, J=K*Q, and obtain the query vector matrix Q Q =J*D; S5-2: Separate K*C support vectors from the B*1024 embedding vector, and take the average of the C support vectors (C*D) in the same category, so that each category gets a prototype vector 1*D. There are K prototype vectors for K categories in total, and the prototype vector matrix S is obtained. S =K*D, then calculate the distance between the K prototype vectors and the J query vectors to get the distance matrix D=K*J; S5-3: Enhancement process for prototype vectors: According to the distance matrix D = K * J, the M indexes closest to the K prototype vectors are obtained respectively, and then the query vector matrix Q Q =J*D to extract the corresponding J query vectors and get Q M The matrix is then Q M The matrix is feature fused through the multi-layer perceptron module, and then the fused matrix is swapped in the last two dimensions to obtain the enhanced weight W s , the prototype vector matrix S S =K*D after expansion and enhanced weight W s Multiply and take the mean in the last dimension to get the enhanced prototype vector; S5-4: Enhancement process for query vector: Transpose the distance matrix D = K * J to the distance matrix D T = J*K, get the H indexes closest to the J query vectors respectively, and then get the prototype vector matrix S S =K*D to extract the corresponding prototype vector and get S H Matrix, then S H The matrix is feature fused through a multi-layer perceptron, and the fused matrix is swapped in the last two dimensions to obtain the enhanced weight W Q , the prototype vector matrix Q Q =J*D after expansion and enhanced weight W Q Multiply them and take the mean in the last dimension to get the enhanced query vector; S6: Use the Euclidean distance to calculate the distance between the enhanced query vector and the enhanced prototype vector, and classify the query sample corresponding to the enhanced query vector into the category where the nearest enhanced prototype vector is located.
[0006] Preferably, in step S1, a three-dimensional point cloud scanner, a laser radar or a millimeter wave radar RGB-D depth camera is used to collect point cloud data of the object.
[0007] Preferably, in step S1, the point cloud data is sampled using a farthest point sampling algorithm to obtain a point cloud data set with a consistent number of points.
[0008] Preferably, in step S4, the feature extraction process of the dual-network embedding model is as follows: The dynamic graph convolution network extracts features through multiple EdgeConv modules respectively, uses the first splicing module to splice the output features of each EdgeConv module, and uses the first maximum pooling module to perform maximum pooling on the spliced features to obtain the B*512 local feature X D ; The global feature extraction network uses a multi-layer perceptron module to increase the dimension of the point feature to 256, and obtains a B*N*256 feature, which is recorded as feature X l ; One of the second maximum pooling modules takes the feature X l Perform maximum pooling in the dimension of N to obtain a global feature of B*1*256. The replication module repeats the global feature N times, that is, replicates the global feature B*1*256 N times to obtain a global feature of B*N*256, which is recorded as feature X g , the second splicing module converts feature X g and feature X l Concatenate on the feature dimension to get feature X of B*N*512 lg , in feature X lg Each point in the image has a global feature. Through a multi-layer perceptron, the feature X lg The features in are fused, and another second maximum pooling module performs a maximum pooling operation in the dimension of N to obtain the B*512 feature X G , the feature X extracted by the dynamic graph convolutional network D And the features extracted by the global feature extraction network X G Concatenate and get the B*1024 embedding vector.
[0009] A 3D point cloud object recognition system comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the above methods is implemented.
[0010] A storage medium comprises a memory, wherein a computer program is stored in the memory, and when the computer program is executed by a processor, any of the above methods is implemented.
[0011] A 3D point cloud object recognition product includes a computer program, and when the computer program is executed by a processor, it implements any of the above methods.
[0012] By adopting the aforementioned design scheme, the beneficial effects of the present invention are as follows: the present application adopts a metric learning framework, and improves the embedding network and the classifier respectively to make them suitable for point cloud small sample object recognition. On the embedding network, a dual-network embedding model is designed, and two parallel subnetworks are used to extract features, a dynamic graph convolutional network is used to extract local features, and a global feature extraction network is used to enhance its global feature capture capability; on the classifier, an embedding representation enhancement algorithm is designed to perform feature enhancement on the prototype vector and the query vector, so that each type of prototype vector is close to the center of its similar query vector, and at the same time, each type of query vector is close to its prototype vector. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a recognition flow chart of the recognition method of the present invention; Figure 2 It is an architecture diagram of the dual-network embedding model of the present invention; Figure 3 This is the processing flow of the representation enhancement algorithm module of the present invention. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only partial embodiments of the present invention, rather than all 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.
[0015] A 3D point cloud object recognition method, such as Figure 1 As shown, the steps include the following steps performed in sequence: S1: Collect point cloud data of the object and sample the point cloud data to construct a point cloud data set. In this embodiment, a three-dimensional point cloud scanner, a laser radar, or a millimeter wave radar RGB-D depth camera can be used to collect the point cloud data of the object.
[0016] Radar uses laser to measure distance and thus detect the spatial distribution of objects; depth cameras add depth measurement to traditional cameras to obtain depth information of the scene. This application takes the most basic point cloud representation of three-dimensional spatial coordinates (x, y, z) as an example. At the same time, this method is also applicable to point cloud data represented by higher-dimensional spatial coordinates such as four-dimensional and five-dimensional coordinates that have more dimensions to preserve color information, reflectivity and other indicators.
[0017] In this embodiment, the farthest point sampling algorithm (FPS) is used to sample the point cloud data to obtain a point cloud data set with a consistent number of points.
[0018] S2: The metric learning framework is used to divide the sampled point cloud dataset into non-overlapping meta-training dataset and meta-testing dataset. The meta-training dataset is used for model training, and the meta-testing dataset is used for model verification. The single batch (episode) input samples for training and testing include B samples, and B samples include K*C support samples and K*Q query samples. The training and testing process adopts the widely used K-way C-shot data setting method: define multiple batches (episodes) to train and test the model. Each batch randomly samples data from the dataset in the form of K-way C-shot, that is, K categories, each category has C samples. The sampling of each batch includes the support set of K-way C-shot and the query set of K-way Q-query. By learning the features of the support set and the query set, the samples of the query set are classified according to their similarity.
[0019] S3: A dual-network embedding model is constructed on the embedding network. The dual-network embedding model includes a parallel dynamic graph convolutional network (DGCNN) and a global feature extraction network (Global Feature Extraction Network, GFENet), which focus on local feature extraction and global feature extraction of point clouds respectively. The dynamic convolutional network includes a first splicing module, a first maximum pooling module, and multiple EdgeConv modules, and the global feature extraction network includes a second splicing module, a copy module, two second maximum pooling modules, and a multi-layer perceptron module (MLP).
[0020] Figure 2 The architecture of the dual-network embedding model is presented.
[0021] The dynamic graph convolutional network builds maps through local display and has a strong ability to capture local features. At the same time, it focuses on the extraction of local geometric topological structure features by dynamically searching for neighbors, which improves its ability to extract global information to a certain extent.
[0022] S4: Input the B samples divided in step S2 into the dual-network embedding model, and the dynamic graph convolutional network extracts features from the B samples to obtain B*512 local features X D , the global feature extraction network extracts features from B samples and obtains B*512 global features X G ; X D and X G After splicing, a B*1024 embedding vector is obtained, which simultaneously extracts information such as the local topological structure and global contour of the point cloud sample.
[0023] The dynamic graph convolution network extracts features through multiple EdgeConv modules respectively, uses the first splicing module to splice the output of each EdgeConv module, and uses the first maximum pooling module to perform maximum pooling on the spliced features to obtain the B*512 local feature X D .
[0024] The global feature extraction network first upgrades the point feature (x, y, z) to 256 through the multi-layer perceptron module to obtain B*N*256 features, recorded as feature X l ; One of the second maximum pooling modules takes the feature X l Perform maximum pooling in the dimension of N to obtain a global feature of B*1*256. The replication module repeats the global feature N times, that is, replicates the global feature B*1*256 N times to obtain a global feature of B*N*256, which is recorded as feature X g , the second splicing module converts feature X g and feature X l Concatenate on the feature dimension to get feature X of B*N*512 lg In Feature X lg Each point in the image has a global feature. Through a multi-layer perceptron, the feature X lg The features in are fused, and another second maximum pooling module performs a maximum pooling operation in the dimension of N to obtain the B*512 feature X G .
[0025] S5: Design a Representation Enhancement Algorithm (REA) module on the classifier to perform weighted operations on the B*1024 embedding vector. like Figure 3 The specific operation of the enhancement algorithm module is as follows: S5-1: Separate J query vectors from the B*1024 embedding vector, J=K*Q, and obtain the query vector matrix Q Q =J*D; S5-2: Separate K*C support vectors from the B*1024 embedding vector, and take the average of the C support vectors (C*D) in the same category, so that each category gets a prototype vector 1*D. There are K prototype vectors for K categories in total, and the prototype vector matrix S is obtained. S =K*D, then calculate the distance between the K prototype vectors and the J query vectors to get the distance matrix D=K*J; S5-3: Enhancement process for prototype vectors: According to the distance matrix D = K * J, the M indexes closest to the K prototype vectors are obtained respectively, and then the query vector matrix Q Q =J*D to extract the corresponding J query vectors and get Q M The matrix is then Q M The matrix is feature fused through the multi-layer perceptron module, and then the fused matrix is permuted in the last two dimensions (Permute (0, 2, 1)) to obtain the enhanced weight W s , the prototype vector matrix S S =K*D Expanded and enhanced weight W s Multiply and take the mean in the last dimension to get the enhanced prototype vector; S5-4: Enhancement process for query vector: Transpose the distance matrix D = K * J to the distance matrix D T = J*K, get the H indexes closest to the J query vectors respectively, and then get the prototype vector matrix S S =K*D to extract the corresponding prototype vector and get S H Matrix, then S H The matrix is feature fused through a multi-layer perceptron, and the fused matrix is permuted in the last two dimensions (Permute (0, 2, 1)) to obtain the enhanced weight W Q , the prototype vector matrix Q Q =J*D Expand and enhance weight W Q Multiply them and take the mean in the last dimension to get the enhanced query vector; Step S5-3 and step S5-4 may be performed separately or simultaneously. In this embodiment, step S5-3 and step S5-4 are performed simultaneously.
[0026] S6: Use the Euclidean distance to calculate the distance between the enhanced query vector and the enhanced prototype vector, and classify the query sample corresponding to the enhanced query vector into the category where the nearest enhanced prototype vector is located.
[0027] This embodiment also provides a system for implementing the above method.
[0028] A 3D point cloud object recognition system comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the above methods is implemented.
[0029] This embodiment also provides a storage medium storing a computer program capable of implementing the above method.
[0030] A storage medium comprises a memory, wherein a computer program is stored in the memory, and when the computer program is executed by a processor, any of the above methods is implemented.
[0031] This embodiment also provides a product that can implement the above method.
[0032] A 3D point cloud object recognition product includes a computer program, and when the computer program is executed by a processor, it implements any of the above methods.
[0033] In summary, this application adopts a metric learning framework, and makes improvements on the embedding network and classifier to make them suitable for point cloud small sample object recognition. On the embedding network, a dual-network embedding model is designed, using two parallel subnetworks to extract features, a dynamic graph convolutional network to extract local features, and a global feature extraction network to enhance its global feature capture capability; on the classifier, an embedding representation enhancement algorithm is designed to perform feature enhancement on the prototype vector and the query vector, so that each type of prototype vector moves closer to the center of its similar query vector, and at the same time makes each type of query vector approach its prototype vector.
[0034] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A 3D point cloud object recognition method, Features: The process includes the following steps: S1: collect point cloud data of the object and sample the point cloud data to construct a point cloud dataset; S2: The sampled point cloud dataset is divided into non-overlapping meta-training dataset and meta-testing dataset using a metric learning framework. The single batch input samples for training and testing include B samples, and the B samples contain K*C support samples and K*Q query samples. S3: A dual-network embedding model is constructed on the embedding network. The dual-network embedding model includes a parallel dynamic graph convolutional network and a global feature extraction network, which focus on local feature extraction and global feature extraction of point clouds respectively. The dynamic convolutional network includes a first concatenation module, a first maximum pooling module, and multiple EdgeConv modules. The global feature extraction network includes a second splicing module, a copy module, two second maximum pooling modules and a multi-layer perceptron module; S4: Input the B samples divided in step S2 into the dual-network embedding model, and the dynamic graph convolutional network extracts features from the B samples to obtain B*512 local features X D , the global feature extraction network extracts features from B samples and obtains B*512 global features X G , X D and X G Concatenate and obtain the B*1024 embedding vector; S5: Design a representation enhancement algorithm module on the classifier to perform weighted operations on the B*1024 embedding vector. The specific operations of the enhanced algorithm module are as follows: S5-1: Separate J query vectors from the B*1024 embedding vector, J=K*Q, and obtain the query vector matrix Q Q =J*D; S5-2: Separate K*C support vectors from the B*1024 embedding vector, and take the average of the C support vectors (C*D) in the same category, so that each category gets a prototype vector 1*D. There are K prototype vectors for K categories in total, and the prototype vector matrix S is obtained. S =K*D, then calculate the distance between the K prototype vectors and the J query vectors to get the distance matrix D=K*J; S5-3: Enhancement process for prototype vectors: According to the distance matrix D = K * J, the M indexes closest to the K prototype vectors are obtained respectively, and then the query vector matrix Q Q =J*D to extract the corresponding J query vectors and get Q M The matrix is then Q M The matrix is feature fused through the multi-layer perceptron module, and then the fused matrix is swapped in the last two dimensions to obtain the enhanced weight W s , the prototype vector matrix S S =K*D after expansion and enhanced weight W s Multiply and take the mean in the last dimension to get the enhanced prototype vector; S5-4: Enhancement process for query vector: Transpose the distance matrix D = K * J to the distance matrix D T = J*K, get the H indexes closest to the J query vectors respectively, and then get the prototype vector matrix S S =K*D to extract the corresponding prototype vector and get S H Matrix, then S H The matrix is feature fused through a multi-layer perceptron, and the fused matrix is swapped in the last two dimensions to obtain the enhanced weight W Q , the prototype vector matrix Q Q =J*D after expansion and enhanced weight W Q Multiply them and take the mean in the last dimension to get the enhanced query vector; S6: Use the Euclidean distance to calculate the distance between the enhanced query vector and the enhanced prototype vector, and classify the query sample corresponding to the enhanced query vector into the category where the nearest enhanced prototype vector is located.
2. The 3D point cloud object recognition method according to claim 1, Features: In step S1, a 3D point cloud scanner, a laser radar or a millimeter wave radar RGB-D depth camera is used to collect point cloud data of the object.
3. The 3D point cloud object recognition method according to claim 2, Features: In step S1, the point cloud data is sampled using the farthest point sampling algorithm to obtain a point cloud data set with a consistent number of points.
4. The 3D point cloud object recognition method according to claim 1, Features: In step S4, The feature extraction process of the dual-network embedding model is as follows: The dynamic graph convolution network extracts features through multiple EdgeConv modules respectively, uses the first splicing module to splice the output features of each EdgeConv module, and uses the first maximum pooling module to perform maximum pooling on the spliced features to obtain the B*512 local feature X D ; The global feature extraction network uses a multi-layer perceptron module to increase the dimension of the point feature to 256, and obtains a B*N*256 feature, which is recorded as feature X l ; One of the second maximum pooling modules takes the feature X l Perform maximum pooling in the dimension of N to obtain a global feature of B*1*256. The replication module repeats the global feature N times, that is, replicates the global feature B*1*256 N times to obtain a global feature of B*N*256, which is recorded as feature X g , the second splicing module converts feature X g and feature X l Concatenate on the feature dimension to get feature X of B*N*512 lg , in feature X lg Each point in the image has a global feature. Through a multi-layer perceptron, the feature X lg The features in are fused, and another second maximum pooling module performs a maximum pooling operation in the dimension of N to obtain the B*512 feature X G , The feature X extracted by the dynamic graph convolutional network D And the features extracted by the global feature extraction network X G Concatenate and get the B*1024 embedding vector.
5. A 3D point cloud object recognition system, comprising a memory and a processor, wherein the memory stores a computer program, Features: When the computer program is executed by the processor, the method according to any one of claims 1 to 4 is implemented.
6. A storage medium comprising a memory, wherein a computer program is stored in the memory. Features: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. A 3D point cloud object recognition product, comprising a computer program, Features: When the computer program is executed by a processor, the method described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Commodity identification method based on self-attention deep network
CN112528928A
Incremental few-sample relation classification method and device fusing relation concept, equipment and storage medium
CN116069945A
Less-sample image classification method and device introducing local feature alignment and prototype correction mechanism
CN117576471A
Metametric learning-based small sample radiation source individual identification method and device
CN117688473A
Data enhancement and elevation embedding point cloud classification method based on deep learning
CN117893802A
