Super-class-based point cloud key point detection method and detection system thereof
By generating super-category point cloud features and constructing twin network models, and using the MHSCPD algorithm for adaptive clustering and comparative learning, the problem of limited recognition accuracy caused by the complexity of super-categories in point cloud classification is solved, and a higher point cloud key is achieved. Point detection accuracy and robustness.
Patent Information
- Application Number
- CN202410956189.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-06
AI Technical Summary
In point cloud classification, it is difficult for existing technologies to effectively handle the complexity of super categories, resulting in limited recognition accuracy in classification tasks. Especially when the data set contains multiple categories of super categories, traditional classification methods will lead to low recognition accuracy. decline.
The point cloud key point detection method based on super class is used to generate super class point cloud features, build a twin network model and use the MHSCPD algorithm to adaptively select virtual super class anchor points for clustering and adjust the distance between samples with large differences in similar features. , combined with contrastive learning and multi-head classification mechanism, to achieve point cloud key point detection.
It significantly improves the accuracy and robustness of point cloud key point detection, avoids errors caused by artificial category labels, enhances the flexibility and recognition accuracy of the network model, and is suitable for classification tasks of complex data sets.
Smart Images

Figure CN118608802A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of point cloud detection, and in particular relates to a point cloud key point detection method based on a superclass and a detection system thereof. Background Art
[0002] In recent years, primitive classification at the basic level (e.g., cat vs. dog, apple vs. banana) has been greatly developed, while the problem of high-level or super-coarse-grained visual classification (e.g., recyclable waste vs. kitchen waste, organism vs. non-organism) has recently received increasing attention. It is believed that the classification of all datasets according to the distribution of the original feature space is the optimal category label of the dataset, which is called the primitive category of the dataset. In many real scenes, there are usually a few high-level categories where many images from different basic level categories share a common label. This super-coarse-grained class is defined as a superclass. In point cloud classification, due to the complexity of the data, the human label of the dataset is usually a superclass. The aircraft category includes passenger planes, fighter jets, helicopters, etc. Usually, one output head represents one category in the classification task, but the classification process uses one output head for aircraft detection, which subconsciously forces passenger planes, fighter jets, helicopters, etc. with large feature differences to be classified into one category, and a large number of private features are lost without using superclass learning algorithms, resulting in greatly limited recognition accuracy. The same problem is also prevalent in the image field, but the category division of data sets in the image field is relatively more consistent with the original categories, and the artificial labels are closer to the original labels rather than the super-class labels, so the error caused is smaller.
[0003] Classification tasks are the most basic in deep learning, and many complex detection tasks such as 3D key point detection require the participation of classification tasks. The important reason is that the output of the detection head of these key points is not flexible enough, and a key point detection head can often only be responsible for the detection of one original category. When facing complex data such as ModelNet40, the artificially created labels are more like superclass labels and do not conform to the original category labels, such as the aircraft category includes passenger planes, helicopters, and fighter jets. If the category samples that a detection head is responsible for are too complex, that is, when facing a complex superclass such as an aircraft, after the training is completed, this detection head will only learn the common features of the category it is responsible for, resulting in limited accuracy. From the output result, it is explained that when the detection head responsible for the aircraft category completes the training, its output is not flexible enough. Regardless of the input of passenger planes, helicopters or fighter jets, this detection head will only output the key points of the passenger plane shape that accounts for the largest proportion in the aircraft category data set, and cannot effectively output the key points of helicopters and fighter jets. The present invention believes that this is the superclass problem that causes the limitation of network model learning for all tasks based on classification tasks. It can be assumed that any category in the data set is a superclass composed of multiple categories. When the sample data in a superclass differs too much or is too similar to other superclasses, the recognition accuracy obtained by general classification method training will also drop significantly. However, if the classification method of superclass learning is used for training, the accuracy can be improved in theory, and this improvement can also promote any downstream detection tasks that require classification tasks. How to determine the original label of the superclass is the core issue of using the superclass idea to improve classification accuracy.
[0004] The superclass problem leads to the collapse of network model learning in downstream tasks. The present invention believes that any category of the data set is a superclass composed of multiple categories. When the sample data in a superclass is too different or too similar to other superclasses, the recognition accuracy obtained by training with general classification methods will also drop significantly. However, if the classification method of superclass learning is used for training, the accuracy can be improved in theory, and this improvement can also promote any downstream detection tasks that require classification tasks. How to determine the original label of the superclass is the core issue of using the superclass idea to improve the classification accuracy. Summary of the invention
[0005] The present invention provides a point cloud key point detection method based on a superclass, which greatly improves the accuracy of the point cloud key point detection method and has better robustness.
[0006] The present invention provides a superclass-based point cloud key point detection system, which implements a superclass-based point cloud key point detection method.
[0007] The present invention is achieved through the following technical solutions: A superclass-based point cloud key point detection method, the method comprising the following steps: Step 1: Generate features of super-category point cloud; Step 2: Build a twin network model and use the MHSCPD algorithm to detect key points of the point cloud; Step 3: Train the twin network model constructed in step 2 to realize point cloud key point detection; Specifically, step 2 is to use the multi-head classification mechanism of the super category of MHSC in the feature space to adaptively select virtual super category anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjust the distance between samples with large differences in the same category of features according to the private features between the same category.
[0008] Furthermore, the MHSCPD algorithm is specifically, based on the USIP as the baseline, and on the basis of the multi-head classification mechanism, a corresponding key point detection head is added to each classification output head, that is, the point cloud key point detection algorithm MHSCPD.
[0009] Furthermore, the loss function is classified into:
[0010] The original data Using data enhancement Feed In passing Get category confidence score , in, is encode; is a classification label; The calculated total contrastive loss of the Siamese network; is the total loss, It is augmented data.
[0011] Furthermore,
[0012]
[0013] Among them are categories, and the confidence score for each category is Dimension; through Select the score with the largest confidence in each category and get ,pass Calculate the classification loss and class confidence score Feed into the linear layer translator get ,use The loss of contrastive learning is calculated to promote further segmentation of samples of the same category.
[0014] Furthermore, the classified loss function is further divided into:
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024] Among them, D is the similarity between the two data. The first hyperparameter set manually, The second hyperparameter is manually set. is the Euclidean distance, is the first point cloud input points, exp is the power of e, The second point cloud of the input Points, i is the serial number of a point in the hypothetical point cloud, Used together to refer to a specific point. h is a linear layer, is the first point cloud of the input The labels of the points, represents the number of points, It is the constrained point cloud key point, which is obtained by the USIP algorithm; is an unconstrained point cloud keypoint; is the number of key points; is the score with the highest confidence from The corresponding position is selected; is the chamfer loss, is the probability chamfer loss in USIP; It is data augmentation; It is the loss of key points.
[0025] Furthermore, the key point detection is performed again as follows:
[0026]
[0027]
[0028]
[0029] +
[0030]
[0031] in, L is the total loss, is the key point set of the second point cloud, is the key point set of the first point cloud, Restoration for data enhancement.
[0032] Furthermore, the step 3 is trained by back-propagating only the maximum value output by the prediction layer.
[0033] A superclass-based point cloud key point detection system, the system adopts the superclass-based point cloud key point detection method as described above, the system includes a point cloud generation module, a network model construction module and a network model training module; Point cloud generation module, generating features of super-category point clouds; The network model construction module uses the MHSCPD algorithm to build a twin network model; In the feature space, the multi-head classification mechanism of the superclass of MHSC is used to adaptively select virtual superclass anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjust the distance between samples with large feature differences of the same category according to the private features between the same category; Network model training module: train the constructed twin network model to realize point cloud key point detection.
[0034] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the above method is implemented.
[0035] A computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0036] The beneficial effects of the present invention are: The present invention designs a new unsupervised superclass learning algorithm (multi-output head classification mechanism MHSC), which adds an output head for each category and combines contrastive learning (simsiam) to unsupervisedly learn the features of a single superclass and thus realize superclass learning. Unlike the original category required in the past, the present invention uses contrastive learning to perform implicit classification of the original category in the feature space without supervision. Contrastive learning can be regarded as an unsupervised clustering algorithm, avoiding the classification error caused by artificial category labels. The algorithm of the present invention only trains the output head with the largest confidence in each category during the iteration process, which can avoid the problem of convergence difficulties caused by simultaneous iteration of multiple output heads. Since simsiam does not need to use negative samples for contrastive learning and has strong compatibility, it can play a better role in downstream tasks. The present invention adds the output of corresponding 3D key points to multiple output heads of each category, and designs a new point cloud key point detection algorithm MHSCPD. Experiments have proved that the multi-output head classification mechanism MHSC can be conveniently applied to 3D key point detection and point cloud segmentation, and brings certain performance improvements to them. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Schematic diagram of the structure of MHSC and MHSCPD of the present invention, wherein (a) is the classification mechanism MHSC of multiple output heads, and (b) is the key point detection.
[0038] Figure 2 This is a diagram showing the visualization results of the classification of 10 categories of the ResNet18 model and the number of 10 displayed categories.
[0039] Figure 3 This is a diagram showing the visualization results of the classification of 10 categories and the number of displayed categories of the MHSC mechanism of the ResNet18 model.
[0040] Figure 4 This is a diagram of the visualization results of the classification of 5 categories of the ResNet18 model and the number of 5 displayed categories.
[0041] Figure 5 This is a diagram showing the visualization results of the ResNet18 model's classification of 5 categories and the number of displayed categories of 10.
[0042] Figure 6 This is a diagram showing the visualization results of the classification of 5 categories and the number of 5 displayed categories of the MHSC mechanism of the ResNet18 model.
[0043] Figure 7 This is a diagram showing the visualization results of the MHSC mechanism of the ResNet18 model with 5 categories of classification and 10 displayed categories.
[0044] Figure 8This is a diagram showing the visualization results of the classification of 2 categories of the ResNet18 model and the number of 2 displayed categories.
[0045] Fig. 9 This is a diagram showing the visualization results of the ResNet18 model's 2-category classification and 10 displayed categories.
[0046] Fig.10 This is a diagram showing the visualization results of the classification of 2 categories and the number of 2 displayed categories of the MHSC mechanism of the ResNet18 model.
[0047] Fig.11 This is a diagram showing the visualization results of the MHSC mechanism of the ResNet18 model with 2 categories of classification and 10 displayed categories.
[0048] Fig.12 It is a schematic diagram of the ModelNet40 curve of the present invention.
[0049] Fig.13 It is a schematic diagram of the comparison ModelNet40 curve of the training process baseline USIP of the present invention.
[0050] Fig.14 It is a schematic diagram of the robustness test curve of the MHSCPD of the present invention on ModelNet40.
[0051] Fig.15 It is a visualization diagram of the key point detection results of a single visual defect point cloud based on ModelNet40 of the present invention.
[0052] Fig.16 It is a visualization diagram of TSAPD and USIP of key point detection based on KITTI data set in the present invention.
[0053] Fig.17 It is a schematic diagram of the Rotate data enhancement method used in the MHSCPD of the present invention.
[0054] Fig.18 It is a schematic diagram of the Scal data enhancement method used in the MHSCPD of the present invention.
[0055] Fig.19 It is a schematic diagram of the Discard data enhancement method used in the MHSCPD of the present invention.
[0056] Fig. 20 It is a schematic diagram of the Translation data enhancement method used in the MHSCPD of the present invention.
[0057] Fig.21 It is a schematic diagram of the Perturbation data enhancement method used in the MHSCPD of the present invention. Fig. 22 It is a schematic diagram of the Crop data enhancement method used in the MHSCPD of the present invention.
[0058] Fig.23 It is a schematic diagram of the Single Vision data enhancement method used in the MHSCPD of the present invention.
[0059] Fig.24 The coverage of the present invention is obtained by testing the data enhancement effect used in the MHSC comparative learning link to obtain a confusion matrix, and its value is a schematic diagram of the CP coverage.
[0060] Fig.25 It is a flow chart of the method of the present invention.
[0061] Fig.26 It is a schematic diagram of comparing the classification performance of the algorithm of the embodiment of the present invention on Cifar10 and Mnist10 after 50 epochs.
[0062] Fig. 27 3 is a schematic diagram of the classification performance comparison of the algorithms of the embodiments of the present invention on ModelNet40, epoch=80.
[0063] Fig.28 4 is a schematic diagram of comparing the segmentation performance of the algorithms of the embodiments of the present invention on ShapeNet.
[0064] Fig.29 3 is a schematic diagram of key point detection performance comparison of the algorithms of the embodiments of the present invention under the conditions of ModelNet40, epoch=200, and MHSC=2.
[0065] Fig.30 4 is a schematic diagram of key point detection performance comparison of the algorithm of the embodiment of the present invention under the conditions of KITTI, epoch=500, MHSC=10.
[0066] Fig.31 4 is a schematic diagram of key point detection performance comparison of the algorithm of the embodiment of the present invention under the conditions of KITTI, epoch=500, MHSC=10.
[0067] Fig.32 It is a schematic diagram of the impact of the loss function in the MHSC mechanism of an embodiment of the present invention on the key point detection performance of ModelNet40. DETAILED DESCRIPTION
[0068] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0069] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0070] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.
[0071] The following is attached to this application specification Figure 1-Figure 32 , the technical solutions in the embodiments of the present application are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0072] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0073] Embodiment 1 This embodiment provides a point cloud key point detection method based on a superclass, the method comprising the following steps: Step 1: Generate features of super-category point cloud through encoder network; Step 2: Build a twin network model and use the MHSCPD algorithm to detect key points of the point cloud; Step 3: Train the twin network model constructed in step 2 to realize point cloud key point detection; Specifically, step 2 is to use the multi-head classification mechanism of the super category of MHSC in the feature space to adaptively select virtual super category anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjust the distance between samples with large differences in the same category of features according to the private features between the same category, so as to enhance the personalization between the same category of samples.
[0074] Furthermore, the MHSCPD algorithm is specifically, based on the multi-head classification mechanism proposed in the present invention, taking USIP as the baseline, adding a corresponding key point detection head to each classification output head, that is, the point cloud key point detection algorithm MHSCPD. The classification output head of categories is , then the corresponding number of key point detection heads is also , according to the output category confidence score, the corresponding key point detection head is selected to calculate the loss, and the rest are not involved in the calculation.
[0075] Furthermore, the loss function is classified into:
[0076] The original data Using data enhancement Feed In passing Get category confidence score , in, is encode; is a classification label; The calculated total contrastive loss of the Siamese network; is the total loss, It is augmented data.
[0077] Furthermore,
[0078]
[0079] Among them are categories, and the confidence score for each category is Dimension; through Select the score with the highest confidence for each category ,pass Calculate the classification loss and class confidence score Send to translator get ,use The loss of contrastive learning is calculated to promote further segmentation of samples of the same category.
[0080] Furthermore, the classified loss function is further divided into:
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090] Among them, D is the similarity between the two data. The first hyperparameter set manually, The second hyperparameter is manually set. is the Euclidean distance, is the first point cloud input points, exp is the power of e, The second point cloud of the input Points, i is the serial number of a point in the hypothetical point cloud, Used together to refer to a specific point. h is a linear layer, is the first point cloud of the input The label of each point is either zero or one. In the point cloud segmentation task The number of representative points, the implementation of the rest of the algorithm is the existing technology, It is the constrained point cloud key point, which is obtained by the USIP algorithm; is an unconstrained point cloud keypoint; is the number of key points; is the score with the highest confidence from The corresponding position is selected, only Will participate in iterative training; is the chamfer loss, is the probability chamfer loss in USIP; is data enhancement, used to obtain ; It is a restoration of data augmentation (only rotation, translation, and scaling); It is the loss of key points.
[0091] Furthermore, the key point detection is performed again as follows:
[0092]
[0093]
[0094]
[0095] +
[0096]
[0097] in, L is the total loss, is the key point set of the second point cloud, is the key point set of the first point cloud, For data-enhanced restoration, It is the constrained point cloud key point, which is obtained by the USIP algorithm; is an unconstrained point cloud keypoint; is the number of key points; is the score with the highest confidence from The corresponding position is selected, only Will participate in iterative training; is the chamfer loss, is the probability chamfer loss in USIP; is data enhancement, used to obtain ; It is a restoration of data augmentation (only rotation, translation, and scaling); It is the loss of key points.
[0098] Furthermore, the step 3 is trained by back-propagating only the maximum value output by the prediction layer.
[0099] Specifically, the present invention comprises Fig.26It can be seen that the MHSC Mnist10 of the Cifar10 dataset will cause a slight decrease in the accuracy of classification with 10, because the label Mnist10 of Cifar10 is relatively consistent with the original label. However, on the AlexNet and GoogLeNet network models, the classification accuracy of 10 is still slightly improved. When the label of the dataset is consistent with the label of the original dataset, the MHSC mechanism not only fails to improve the performance of the network model, but also leads to a decrease in the accuracy of cer and other models. After the task in super classification is completed, the MHSC mechanism is used to make most of the network models have a good improvement in the accuracy of super classification tasks. It is proved that the MHSC mechanism is an effective super classification. When faced with complex data sets, the MHSC mechanism can extract more category features and form a more reasonable classification boundary. Please note that here is the data enhancement cropping used by the MHSC mechanism, color. The present invention can also see that the MHSC mechanism mostly comes from the collocation of convolutional neural networks, which is in the self-attention network model, which may be related to the basic principle of extracting features from the self-attention network model. The self-attention network model itself can make it have a sufficiently strong fitting ability through global attention. Reasonable overfitting can improve the performance of the algorithm superclassification.
[0100] Fig.26 The classification performance comparison of the algorithm after 50 epochs on Cifar10 and Mnist10. The network model is frozen and used as a feature extraction module. The supervised training MLP is used to obtain mAcc, and Class*Num is 20. When Class=5 Class=2, it is the accuracy of the super classification task.
[0101] The present invention is to prove Fig.26 As mentioned above, when the labels of the dataset match the original labels, the MHSC mechanism not only fails to improve the performance of the network model, but also causes a certain degree of decrease in accuracy. Fig. 27 In this paper, the ModelNet40 dataset is used for verification. The labels of ModelNet40 are more consistent with the superclass labels than the original labels. For example, the aircraft category contains samples with large feature differences such as passenger planes, fighter jets, and helicopters. In theory, when Class=40, the accuracy of the MHSC mechanism will be improved. Fig. 27 It can be seen that the MHSC mechanism also brings an improvement in accuracy in the 40 classification, although the improvement is not large. In other super-class tasks of ModelNet40, the MHSC mechanism improves the super-classification accuracy of the existing network model. This proves that the MHSC mechanism is a general method that can be used for most types of dataset classification. Fig.28In the figure, the present invention compares the performance of the point cloud segmentation task. In fact, the point cloud segmentation task can still be regarded as a classification task. It can be seen that the MHSC mechanism can still improve the accuracy of the network model, but the use of the self-attention mechanism causes serious performance degradation to PTv1 and PTv2. The accuracy here is the mIou of point cloud segmentation. Category miou and instance miou are commonly used performance evaluation indicators in point cloud segmentation. Please note that the data enhancement used in the present invention here includes rotation, scaling, discarding, translation, perturbation, cropping and single vision.
[0102] Fig. 27 Comparison of the classification performance of the algorithms on ModelNet40, epoch=80. Except for Class=4, they are all superclasses.
[0103] Fig.28 Comparison of the segmentation performance of the algorithm on ShapeNet, epoch = 80, MHSC = 2. The output head here is the class of the part, not the object class of the point cloud.
[0104] In the present invention, DP coverage is the coverage of the defective part by the point cloud, which is the coverage of the output key points by the point cloud, so that the calculation can maximize the coverage of the defective part. CP coverage is the coverage of the key points to the point cloud. The input of the network model of the present invention is the single-view defect point cloud after single vision for calculation, as well as the complete point cloud for DP coverage and KP coverage. Fig.29 It can be seen that MHSCPD achieved the best performance, with DP coverage improved by 15.5% and CP coverage improved by 15.6% compared with the baseline algorithm USIP.
[0105] Fig.29 Comparison of key point detection performance of the algorithm under ModelNet40, epoch=200, MHSC=2 conditions.
[0106] from Fig.30 It can be seen that MHSCPD achieves the best performance, with DP coverage exceeding the baseline algorithm USIP by 14.8, and CP coverage by 15.7. It can be proved that without using classification labels, MHSCPD can still perform better than the baseline algorithm USIP, which once again proves the effectiveness of the MHSC mechanism in the unsupervised case. For the KITTI
[37] dataset, the algorithm of the present invention does not require loss for classification training. In this case, MHSCP=10. At this time, the input is the cropped defect point cloud.
[0107] Fig.30Comparison of key point detection performance of algorithms under KITTI, epoch=500, MHSC=10 conditions.
[0108] The present invention Fig.31 It can be seen that the coverage is highest when the number of MHSCS is 2. As the number of MHSCS increases, the coverage decreases to the level of randomly generated key points. The MHSC mechanism has a flaw that a large number of MHSCS will cause the model to collapse.
[0109] Fig.31 Comparison of key point detection performance of the algorithms under KITTI, epoch=500, MHSC=10 conditions.
[0110] The present invention Fig.32 In , the baseline algorithm is not USIP either. It can be seen that both can bring certain improvements to the ModelNet40 key point detection performance. The improvement of is the largest, indicating that the classification task can bring a great performance improvement to the ModelNet40 key point detection. On the other hand, using only is equivalent to doing an unsupervised classification task, and the performance is not as good as the supervised classification task, so in comparison, the improvement is relatively small. When and are used together, the best performance can be obtained.
[0111] Fig.32 The impact of the loss function in the MHSC mechanism on the key point detection performance of ModelNet40.
[0112] This paper uses the model ResNet18 and Cifar10 data sets to perform classification tasks and visualize the results. Figure 2-11 shown. Figure 2 and Figure 3 is a classification of 10 categories. It can be seen that when the dataset is divided into 10 categories, the MHSC mechanism Figure 3 The distribution of samples in the ResNet18 feature space between different categories is more dispersed, and the distribution of samples in the same category is more compact. When the data set is divided into 5 categories and 2 categories, it can be seen that in the network model without using the MHSC mechanism and using the MHSC mechanism, the samples can be effectively divided in the feature space, but the distribution of samples in the feature space in the network model using the MHSC mechanism is more consistent with the distribution of the original class. The present invention can be compared in the following order, Figure 2 and Figure 3 , Figure 4 and Figure 5 , Figure 6 and Figure 7 , Figure 8 and Fig. 9 , Fig.26 and Fig. 27 . Compare 10 categories Figure 2 and Figure 3 , 5 categories Figure 4 and Figure 6 , 2 categories Figure 8 and Fig.26 After using the MHSC mechanism, the distribution between different categories is more dispersed, and the distribution of samples in the same category is more compact. Figure 5 and Figure 7 , 2 Classification Fig. 9 and Fig. 27 , the MHSC mechanism makes the distribution of the data set more consistent with the original category Figure 7 and Fig. 27 The distribution of Figure 5 and Fig. 9 Superclass classification can be achieved, but the original categories in each single superclass are chaotic. The above comparison can prove the effectiveness of the MHSC mechanism in superclass classification. At the same time, it can be proved that the MHSC mechanism can enable the network model to extract more reasonable features and more privacy features when facing complex data. The so-called personalized features refer to the features that are conducive to classifying superclasses from Figure 5 and Fig. 9 Change to Figure 7 and Fig. 27 It is not difficult to see that such a feature should be a private feature of the original class itself.
[0113] The present invention examines the effects of different levels of random perturbations on model performance. Fig.30 shown.
[0114] Embodiment 2 This embodiment adopts the method as in Embodiment 1 to provide a superclass-based point cloud key point detection system, the system comprising a point cloud generation module, a network model construction module and a network model training module; The point cloud generation module generates features of a super-category point cloud through an encoder network; The network model construction module uses the MHSCPD algorithm to construct a twin network model; The multi-head classification mechanism using the super-category of MHSC in the feature space adaptively selects virtual super-category anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjusts the distance between samples with large feature differences of the same category according to the private features between the same category, so as to enhance the personalization between the same category samples; Network model training module: train the constructed twin network model to realize point cloud key point detection.
[0115] This paper uses the model ResNet18 and Cifar10 data sets to perform classification tasks and visualize the results. Figure 2-11 shown. Figure 2 and Figure 3 is a classification of 10 categories. It can be seen that when the dataset is divided into 10 categories, the MHSC mechanism Figure 3 The distribution of samples in the ResNet18 feature space between different categories is more dispersed, and the distribution of samples in the same category is more compact. When the data set is divided into 5 categories and 2 categories, it can be seen that in the network model without using the MHSC mechanism and using the MHSC mechanism, the samples can be effectively divided in the feature space, but the distribution of samples in the feature space in the network model using the MHSC mechanism is more consistent with the distribution of the original class. The present invention can be compared in the following order, Figure 2 and Figure 3 , Figure 4 and Figure 5 , Figure 6 and Figure 7 , Figure 8 and Fig. 9 , Fig.26 and Fig. 27 . Compare 10 categories Figure 2 and Figure 3 , 5 categories Figure 4 and Figure 6 , 2 categories Figure 8 and Fig.26 After using the MHSC mechanism, the distribution between different categories is more dispersed, and the distribution of samples in the same category is more compact. Figure 5 and Figure 7 , 2 Classification Fig. 9 and Fig. 27 , the MHSC mechanism makes the distribution of the data set more consistent with the original category Figure 7 and Fig. 27 The distribution of Figure 5 and Fig. 9 Superclass classification can be achieved, but the original categories in each single superclass are chaotic. The above comparison can prove the effectiveness of the MHSC mechanism in superclass classification. At the same time, it can be proved that the MHSC mechanism can enable the network model to extract more reasonable features and more privacy features when facing complex data. The so-called personalized features refer to the features that are conducive to classifying superclasses from Figure 5 and Fig. 9 Change to Figure 7 and Fig. 27 It is not difficult to see that such a feature should be a private feature of the original class itself.
[0116] Embodiment 3 An embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the memory is used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory and the processor are connected via a bus. Specifically, the processor implements any step in the first embodiment above by running the computer program stored in the memory.
[0117] It should be understood that in the embodiments of the present invention, the processor referred to may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0118] The memory may include a read-only memory, a flash memory, and a random access memory, and provides instructions and data to the processor. A part or all of the memory may also include a nonvolatile random access memory.
[0119] As can be seen from the above, the electronic device provided by the embodiment of the present invention can implement the superclass-based point cloud key point detection method as described in Example 1 by running a computer program, and obtain a new algorithm, called the point cloud key point detection algorithm MHSCPD, which is used to implement point cloud key point detection when using a twin network model. The algorithm of the present invention only trains the output head with the largest confidence in each category during the iteration process, which can avoid the problem of convergence difficulties caused by simultaneous iteration of multiple output heads.
[0120] It should be understood that if the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0121] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined in the present invention may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in the present invention, but will conform to the widest scope consistent with the principles and novel features disclosed in the present invention.
[0122] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0123] It should be noted that the methods and detailed examples provided in the above embodiments can be combined with the devices and equipment provided in the embodiments, and references can be made to each other, and no further details will be given.
[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0126] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A point cloud key point detection method based on superclass, characterized in that: The method comprises the following steps: Step 1: Generate features of super-category point cloud; Step 2: Build a twin network model, and use the MHSCPD algorithm for point cloud key point detection. Specifically, the MHSCPD algorithm uses USIP as the baseline and adds a corresponding key point detection head to each classification output head on the basis of a multi-head classification mechanism, which is the point cloud key point detection algorithm MHSCPD. Step 3: Train the twin network model constructed in step 2 to realize point cloud key point detection; Specifically, step 2 is to use the multi-head classification mechanism of the super category of MHSC in the feature space to adaptively select virtual super category anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjust the distance between samples with large differences in the same category of features according to the private features between the same category.
2. The point cloud key point detection method according to claim 1, characterized in that: The loss function is classified into: in, is encode; is a classification label; is the calculated total contrast loss of the twin network; is the total loss, It is augmented data.
3. The point cloud key point detection method according to claim 2, characterized in that: Among them are categories, and the confidence score for each category is Dimension; through Select the score with the largest confidence in each category and get ,pass Calculate the classification loss and class confidence score Feed into the linear layer translator get ,use The loss of contrastive learning is calculated to promote further segmentation of samples of the same category.
4. The point cloud key point detection method according to claim 3, characterized in that: The classified loss function is further divided into: Among them, D is the similarity between the two data. The first hyperparameter set manually, The second hyperparameter is manually set. is the Euclidean distance, is the first point cloud input points, exp is the power of e, is the first point cloud of the input Points, i is the serial number of a point in the hypothetical point cloud, Used together to refer to a specific point. h is a linear layer, is the first point cloud of the input The labels of the points, represents the number of points, is the constrained point cloud key point; is an unconstrained point cloud keypoint; is the number of key points; is the chamfer loss, is the probability chamfer loss in USIP; It is data augmentation; It is the loss of key points.
5. The point cloud key point detection method according to claim 4, characterized in that: The key point detection is performed again as follows: + in, L is the total loss, is the key point set of the second point cloud, is the key point set of the first point cloud, Restoration for data enhancement.
6. The point cloud key point detection method according to claim 5, characterized in that: The step 3 is trained by back-propagating only the maximum value output by the prediction layer.
7. A superclass-based point cloud key point detection system, characterized in that: The system adopts the superclass-based point cloud key point detection method as described in any one of claims 1-6, and the system includes a point cloud generation module, a network model construction module and a network model training module; Point cloud generation module, generating features of super-category point clouds; The network model construction module uses the MHSCPD algorithm to build a twin network model; In the feature space, the multi-head classification mechanism of the superclass of MHSC is used to adaptively select virtual superclass anchor points for clustering according to the distribution of the existing point cloud in the feature space, and adjust the distance between samples with large feature differences of the same category according to the private features between the same category; Network model training module: train the constructed twin network model to realize point cloud key point detection.
8. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Building three-dimensional point cloud registration method based on deep learning
CN108765475A
Method and device for detecting point cloud key points based on twin network
CN118038085A
