A weakly supervised point cloud semantic segmentation method based on cross-scene contrastive learning

Through cross-scene comparison learning strategy and pseudo-label generation selection, combined with cross-scene comparison regularization constraints, the problem of pseudo-label unreliability and noise in weakly supervised point cloud semantic segmentation is solved, and the discriminability of semantic features and model performance are improved. It is applicable in fields such as autonomous driving.

CN114187446BActive Publication Date: 2024-09-06XIAMEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing weakly supervised point cloud semantic segmentation methods fail to effectively deal with the unreliability of pseudo-labels and the adverse effects of noise on model training, and require complex data augmentation methods to reduce the impact of noise.

Method used

Using a cross-scenario comparative learning strategy, iteratively updates network parameters through model initialization, pseudo-label generation and selection, and cross-scenario comparison regularization constraints, reducing the impact of noisy pseudo-labels on model training, and adding methods without the need for complex data. Next, improve the discriminability of semantic features.

Benefits of technology

It achieves the reduction of the adverse effects of noisy pseudo-labels on model training with a small amount of annotation information, improves the accuracy of point cloud semantic segmentation and the discriminative ability of the model, and is suitable for automatic driving and perception applications in the field of three-dimensional point cloud processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114187446B
    Figure CN114187446B
Patent Text Reader

Abstract

A weakly supervised point cloud semantic segmentation method for cross-scene contrast learning, involving the field of three-dimensional point cloud processing. 1) Pre-train the point cloud data of each scene in the weakly supervised dataset, initialize the network parameters, and obtain the feature vector and category prediction distribution of the model output; 2) Use the existing network to generate the corresponding pseudo-labels for unlabeled sample reasoning, and use the dynamic threshold window method to select a part of reliable pseudo-labels; 3) Update the network parameters using cross-scene contrast constraints: Add cross-scene contrast regularization constraints to update the parameters of the network; 4) Iterate steps 2) and 3) until the model converges. While requiring the category prototypes of the same category of point clouds in different scenes to be compact, it also requires the category prototypes of different categories to be dispersed. There is no need to carefully design data augmentation methods, and the impact of noisy pseudo-labels on model performance is effectively reduced. It can be used for autonomous driving, augmented reality devices, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional point cloud processing, and in particular to a weakly supervised point cloud semantic segmentation method for cross-scene contrast learning. Background Art

[0002] Three-dimensional point cloud semantic segmentation has received extensive attention in recent years due to its application prospects and practical application value, and many excellent methods have emerged. These methods can be roughly divided into three categories: voxel-based methods, two-dimensional projection-based methods, and point-based methods. Compared with the first two methods, point-based methods can directly process the original three-dimensional point cloud data with disorder and irregularity, without the need for time-consuming data preprocessing and post-processing that easily causes context information loss, so they have received more extensive attention. Existing methods usually rely on densely annotated point-level semantic labels to provide supervision for network training. For example, Chinese patent CN111242208A discloses a method for point cloud classification and segmentation based on graph convolution and channel attention mechanism, the method comprising: capturing local features of point cloud data through a KNN graph convolution module, increasing the association between point clouds in the field in the feature space; increasing the channel attention of point cloud data through a channel attention module, increasing the mutual dependence between feature channels, and strengthening the global feature representation of point clouds, thereby improving the prediction accuracy of classification and / or segmentation of three-dimensional point clouds using deep networks. However, for large-scale real-world scenes containing billions of points, this type of method is time-consuming, labor-intensive and impractical to label each point.

[0003] Weak labeling is an effective way to reduce labeling costs. In recent years, weakly supervised learning, which only labels a small number of points or semantic categories, has received widespread attention. Weakly supervised learning uses a large number of unlabeled samples and a small number of labeled samples to train the network. It can be roughly divided into two categories: methods based on perturbation consistency regularization and methods based on pseudo labels.

[0004] The main goal of the perturbation consistency regularization method is to obtain a perturbation / augmentation-invariant output distribution. It uses data augmentation techniques to ensure that different perturbation versions of the same unlabeled sample have the same model prediction output. However, this type of method requires the careful design of a suitable data augmentation method, which limits its further application in practice. The pseudo-label-based method uses a trained network to generate artificial pseudo-labels for unlabeled samples, and adds them to the training dataset to participate in subsequent training. However, too many incorrect pseudo-labels may be selected, which causes subsequent training to become noise learning, thereby reducing the performance of the model. Summary of the invention

[0005] The purpose of the present invention is to provide a weakly supervised point cloud semantic segmentation method with cross-scene comparative learning, which can utilize a small amount of annotation information, reduce the adverse effect of noisy pseudo-labels on model training, and obtain discriminative semantic features for each point without designing complex data augmentation methods, in order to address the problems that the existing weakly supervised point cloud semantic segmentation methods do not take into account the unreliability of pseudo-labels and cannot effectively deal with the adverse effects of noise in pseudo-labels in model optimization.

[0006] The present invention comprises the following steps:

[0007] 1) Model initialization: Pre-train the point cloud data of each scene in the weakly supervised dataset, initialize the network parameters, and obtain the feature vector and category prediction distribution of the model output;

[0008] 2) Generate and select pseudo labels: Use the existing network to generate corresponding pseudo labels for unlabeled sample reasoning, and use the dynamic threshold window method to select a part of reliable pseudo labels;

[0009] 3) Update network parameters using cross-scenario contrast constraints: Add cross-scenario contrast regularization constraints to update network parameters;

[0010] 4) Determine whether the model has converged. If so, end the process. Otherwise, repeat steps 2) and 3) until the model has converged.

[0011] In step 1), the point cloud data of each scene contains a set of label points (X l ,Y) and the set of unlabeled points in, Respectively indicates that each scene contains N l There are labeled points and N u Unlabeled points (N l <<N l ), is the label corresponding to the labeled point;

[0012] The pre-training can adopt a grid sampling pre-processing method, select 8 different point clouds for each batch, and sample 40960 points for each point cloud as the network input of the current batch; initialize the network with labeled points, and use the category prediction distribution of the labeled points output by MLPs-2 and its corresponding label for cross entropy to obtain the segmentation loss L seg , in order to train the network; in the pre-training stage, only the segmentation loss L is used seg Constrain the optimization process of the model and only calculate the loss for labeled points.

[0013] The specific steps of obtaining the feature vector and category prediction distribution output by the model can be:

[0014] (1) A batch of point cloud data is divided into two parts, that is, 8 point clouds are combined into 4 point cloud pairs, which are input into the backbone network (Backbone). After passing through an MLP layer (MLPs-1) and activated with the ReLU function, the point cloud data is mapped to a shared feature space to obtain a 128-dimensional feature vector corresponding to each point;

[0015] (2) The feature vector is input into the MLP layer (MLPs-2) and activated with the softmax function to obtain the C-dimensional category prediction distribution corresponding to each point, where C indicates that the dataset contains a total of C categories.

[0016] In step 2), the pseudo labels are generated and selected by first sampling multiple sub-cloud sets with high overlap from a point cloud of a scene according to different local geometric structures and contexts, and smoothing the predictions to obtain the final prediction result of each point; then the dynamic threshold window method is used to select some reliable pseudo labels and alleviate the class imbalance of the samples to a certain extent; the specific steps can be:

[0017] (1) The sampling-shifting-smoothing method generates pseudo labels for unlabeled points: The spatial position encoding of points in the backbone network is affected by the neighborhood information. For each scene, t sub-clouds with large overlap are sampled, and the prediction corresponding to each sub-cloud is obtained through an MLP layer MLPs-2. Where N' is the number of points in each sub-cloud; further add 0 vectors at the corresponding positions of the points that are not sampled, so that Expand to space, where N is the total number of points in the entire point cloud, and the order of the points is in all is consistent, then the sampling-movement-smoothing method is formulated as:

[0018]

[0019] Among them, τ is the smoothing coefficient, and the final prediction result of each point cloud is By normalization Each row of is obtained; Since the points in different sub-clouds contain different local geometric structures and contexts, the sampling-moving smoothing operation eliminates the fluctuations in the prediction of different sub-clouds, effectively reducing the wrong prediction;

[0020] (2) Dynamic threshold window selection of reliable pseudo-labels: In order to reduce the problem of sample class imbalance, the dynamic threshold window method is used to filter pseudo-labels; for category k, let the dynamic threshold δ corresponding to this category be k for: Among them, δ len Indicates the width of the threshold window, which is 0.2 in the application. dis the lower bound of the threshold, which is taken as 0.5 in the application; for each sample x (i) , generate its corresponding pre-selected pseudo label in, 1[·] is the indicator function; then the pseudo-label of each point is updated by the label of the labeled point and the pre-selected pseudo-label:

[0021]

[0022] In step 3), the cross-scene contrast regularization constraint includes: 1) using cross-scene contrast constraints to make the network pay more attention to the common features of the same category between different scenes; 2) using the category prototypes of each category of each point cloud as contrast constraints to reduce the adverse effects of individual incorrect pseudo-labels on network training. For each point cloud pair, the feature vector of each point cloud obtained by an MLP layer MLPs-1 is used to calculate the category prototype of each category of each scene point cloud; the category prototypes of the same category between two different scene point clouds in each point cloud pair are made compact while the category prototypes of different categories are dispersed, that is, the category prototypes of the same category are close to each other in the feature space, and the category prototypes of different categories are far away from each other; during testing, the category prediction distribution of each point obtained by an MLP layer MLPs-2 is compared with the true label to calculate the accuracy of semantic segmentation (mIoU).

[0023] The specific steps of updating the network parameters are as follows:

[0024] (1) The category prototype is a representative feature vector for each category, and the two scene point clouds of each point cloud pair are represented as P (a) and P (b) , the feature vector of each point in the two point clouds is obtained through MLPs-1 and Using the feature vectors and the corresponding labels and pseudo labels, the category prototypes of each category of the two scene point clouds are calculated. and Among them, the category prototype corresponding to the category that does not exist in the point cloud is a 0 vector;

[0025] (2) Let L (a) and L (b) Respectively represent the semantic categories contained in the two scene point clouds, L ∩ =L (a) ∩L (b) is the semantic category contained in both point clouds; (a) and L (b) Query the category prototypes of the non-zero vectors corresponding to the two point clouds, extract and combine them Where M = |L (a)|+|L (b) |, The contrast constraint is to make the category prototypes of the same category between two point clouds of different scenes in each point cloud pair close to each other, and the category prototypes of different categories far away from each other. The contrast loss consists of two parts, one of which is the Pull loss L pull , part of which is Push loss L push :

[0026]

[0027]

[0028] L con =L pull +α·L push

[0029] Among them, the Pull loss term is to pull the distance between the category prototypes of the same category in the feature space, and the Push loss term is to push the distance between the category prototypes of different categories in the feature space. The two constrain each other and combine to form a contrast loss term; γ is a hyperparameter, which takes a value of 2 in the application. The function g(·) maps the category prototype to the semantic category to which it belongs;

[0030] (3) During training, the overall loss is the segmentation loss L seg and contrast loss L con The segmentation loss uses the traditional cross entropy, and the predicted distribution of the labeled points generated by the MLPs-2 layer and the unlabeled points with selected pseudo labels are used to perform cross entropy with their corresponding labels and pseudo labels. The overall loss of training is:

[0031] L=L seg +λ·L con

[0032] Among them, λ is the balance coefficient of the two losses and is taken as 1 in the application.

[0033] Compared with the prior art, the present invention has the following outstanding advantages:

[0034] 1. The present invention proposes for the first time to use a cross-scenario contrastive learning strategy. First, in the first stage of pre-training, a small number of labeled points are used to initialize the network; then the second stage is carried out to generate corresponding pseudo-labels for unlabeled points using the existing network, and a part of reliable pseudo-labels is selected using the dynamic threshold window method; finally, the third stage is carried out to add cross-scenario contrastive regularization constraints to update the parameters of the network; the second and third stages are iteratively performed until the model converges.

[0035] 2. The present invention cleverly utilizes the core idea of ​​the pseudo-label based method, designs a sampling-movement-smoothing strategy to generate pseudo-labels, and designs a dynamic threshold window method to reduce the class imbalance problem and select some reliable pseudo-labels.

[0036] 3. The present invention combines the consistency-based regularization method and designs cross-scene comparison regularization, so that the category prototypes of the same category between point clouds of different scenes are compact, and the category prototypes of different categories are dispersed, forcing the network to pay more attention to the common features of the same category between point clouds of different scenes, thereby obtaining more discriminative semantic features.

[0037] 4. The present invention relates to the field of three-dimensional point cloud processing and can be widely used in perception aspects such as autonomous driving, augmented reality equipment, and mobile robots. It also involves key technologies such as weakly supervised learning, semi-supervised learning, and contrastive learning.

[0038] 5. The present invention uses cross-scene contrast constraints; the category prototypes of each category of each point cloud are used as contrast constraints instead of the features of independent points. The former can make the network pay more attention to the common features of the same category between different scenes, and the latter can reduce the adverse effects of individual incorrect pseudo-labels on network training.

[0039] 6. Based on the core ideas of the consistency regularization method and the pseudo-labeling method, this paper designs a cross-scene comparison regularization method based on pseudo-labeling, which requires the compactness of the category prototypes of the same category of point clouds in different scenes and the dispersion of the category prototypes of different categories. This can effectively reduce the impact of noisy pseudo-labels on model performance without the need to carefully design data augmentation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is the framework of the weakly supervised point cloud semantic segmentation method for cross-scene contrast learning of the present invention.

[0041] Figure 2 It is the visualization result of the feature vector extracted by the network. (a) is scene A; (b) is scene B. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following embodiments will further illustrate the present invention in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0043] The framework of the present invention is shown in Figure 1 , the embodiment of the present invention includes the following steps:

[0044] Step 1: Get the input point cloud of the model.

[0045] The point cloud dataset is preprocessed by grid sampling. During training, 8 different point clouds are selected in each batch, and 40,960 points are sampled in each point cloud as the network input of the current batch.

[0046] Step 2: Get the feature vector and category prediction distribution (logits) of the model output.

[0047] (2a) A batch of point cloud data is divided into two parts, that is, 8 point clouds are combined into 4 point cloud pairs, which are input into the backbone network (Backbone). After passing through an MLP layer (MLPs-1) and activated with the ReLU function, the point cloud data is mapped to a shared feature space to obtain a 128-dimensional feature vector corresponding to each point.

[0048] (2b) The feature vector is input into the MLP layer (MLPs-2) and activated with the softmax function to obtain the C-dimensional category prediction distribution corresponding to each point, where C indicates that the dataset contains a total of C categories.

[0049] Step 3: Generate and select pseudo labels, use cross-scene comparison constraints to update network parameters, and perform three-stage training.

[0050] (3a) The first stage is pre-training, which uses labeled points to initialize the network. The class prediction distribution of the labeled points output by MLPs-2 is used to perform cross entropy with their corresponding labels to obtain the segmentation loss L seg , in order to train the network and initialize the network;

[0051] (3b) The second stage is to generate and select pseudo labels, which mainly includes the following two main steps: i. Sampling multiple sub-cloud sets with high overlap from a scene point cloud according to different local geometric structures and contexts, smoothing the category prediction distribution of each point, and obtaining the final prediction of each point; ii. Using the dynamic threshold window method to select some reliable pseudo labels and alleviate the category imbalance of samples to a certain extent;

[0052] (3c) The third stage is to use the cross-scene contrast constraint to update the network parameters. With the help of the feature vector of each point cloud obtained by MLPs-1, the category prototype of each category of each point cloud is calculated. The category prototypes of the same category between two point clouds of different scenes in each point cloud pair are made compact while the category prototypes of different categories are dispersed. This forces the feature extractor of the network to pay more attention to the common features between point cloud categories of different scenes, and can alleviate the adverse effects of noisy pseudo-labels on training to a certain extent.

[0053] (3d) Iterate the second and third stages until the network converges.

[0054] Furthermore, an embodiment of the weakly supervised point cloud semantic segmentation method for cross-scene contrastive learning of the present invention comprises the following steps:

[0055] (1) The point cloud data of each scene in the weakly supervised dataset contains a set of labeled points (X l ,Y) and the set of unlabeled points in Respectively indicates that each scene contains N l There are labeled points and N u Unlabeled points (N l <<N l ), is the label corresponding to the labeled point;

[0056] (2) The original point cloud data is preprocessed by grid sampling before training. In training, each batch selects 8 point clouds of different scenes and divides them into two parts. The 8 point clouds are composed of 4 point cloud pairs. Each point cloud samples 40,960 points as the network input of the current batch;

[0057] (3) The point cloud is input into the backbone network (Backbone), and then passes through an MLP layer (MLPs-1) and is activated with the Relu function to obtain a 128-dimensional feature vector corresponding to each point. The feature vector is then input into an MLP layer (MLPs-2) and activated with the Softmax function to obtain the C-dimensional category prediction distribution (logits) corresponding to each point, where C indicates that the dataset contains a total of C categories.

[0058] (4) The entire training process of the model is divided into three stages: pre-training, generating and selecting pseudo labels, and updating network parameters using cross-scenario comparison constraints. Pre-training is performed only once, with 100 epochs; the third stage uses the pseudo labels updated in the second stage for training, with 30 epochs per iteration.

[0059] (5) During the entire training process, the segmentation loss L is used seg and contrast loss L con Constrain the optimization process of the model, where only the segmentation loss L is used in the pre-training stage seg , and only calculate the loss for labeled points.

[0060] (6) In the second stage, the existing network model is used to predict each point, and pseudo labels are generated for unlabeled points based on the predictions. A dynamic filtering method is invented to retain some highly credible pseudo labels, thereby improving the credibility of the pseudo labels. The process of generating and selecting pseudo labels mainly includes the following two main steps: i. Sample multiple sub-cloud sets with high overlap from a point cloud of a scene according to different local geometric structures and contexts, and smooth the predictions to obtain the final prediction results for each point; ii. Use the dynamic threshold window method to select some reliable pseudo labels and alleviate the class imbalance of samples to a certain extent.

[0061] (7) In the third stage, the core idea of ​​contrastive learning is used. For each point cloud pair, the feature vector of each point obtained by the MLPs-1 layer is used to calculate the category prototype of each category of each scene point cloud. The category prototypes of the same category between two different scene point clouds in each point cloud pair are made compact while the category prototypes of different categories are made dispersed, that is, the category prototypes of the same category are close to each other in the feature space, and the category prototypes of different categories are far away from each other. This makes the network pay more attention to the common features of the same category between different scene point clouds, and can alleviate the adverse effects of noisy pseudo-labels on training to a certain extent.

[0062] (8) After the first stage of pre-training, the second and third stages are performed alternately and iteratively until the model converges. After three stages of iterative training, the model's ability to discriminate decision boundaries of different categories is greatly improved. In the test phase, the predicted category distribution of each point obtained by the output of MLPs-2 is compared with the true label to calculate the accuracy of semantic segmentation (mIoU).

[0063] In step (6), the generation and selection of pseudo labels using the dynamic filtering method is:

[0064] (6.1) The sampling-movement-smoothing method generates pseudo labels for unlabeled points: The spatial position encoding of points in the backbone network is affected by the neighborhood information. For each scene, t sub-clouds with large overlap are sampled, and the corresponding prediction of each sub-cloud can be obtained through MLPs-2. Where N' is the number of points in each sub-cloud. Further add 0 vectors to the corresponding positions of the points that are not sampled, so that Expand to space, where N is the total number of points in the entire point cloud, and the order of the points is in all is consistent. Then the sampling-movement-smoothing method can be formulated as:

[0065]

[0066] Where τ is the smoothing coefficient, and the final prediction result of each point cloud is By normalization Each row of is obtained. Since points in different sub-clouds contain different local geometric structures and contexts, the sampling-movement smoothing operation eliminates the fluctuations in the prediction of different sub-clouds and effectively reduces the wrong prediction.

[0067] (6.2) Dynamic threshold window to select reliable pseudo-labels: In order to reduce the problem of sample class imbalance, a dynamic threshold window method is invented to filter pseudo-labels. For class k, let the dynamic threshold δ corresponding to this class be k for: where δ len Indicates the width of the threshold window, which is 0.2 in the application. d is the lower bound of the threshold, which is 0.5 in the application. (i) , generate its corresponding pre-selected pseudo label in 1[·] is the indicator function. Then the pseudo label of each point is updated by the label of the labeled point and the pre-selected pseudo label:

[0068]

[0069] In step (7), the network parameters are updated using the idea of ​​contrastive learning:

[0070] (7.1) Even after the generation and selection of pseudo labels in step (6), the absolute correctness of pseudo labels cannot be guaranteed. In order to reduce the adverse effects of noisy pseudo labels, this invention uses two methods: 1) using cross-scene comparison constraints; 2) using the category prototypes of each category of each point cloud as comparison constraints instead of the features of independent points. The former can make the network pay more attention to the common features of the same category between different scenes, and the latter can reduce the adverse effects of individual incorrect pseudo labels on network training.

[0071] (7.2) The intuitive interpretation of the category prototype is a representative feature vector for each category, which can usually be expressed as the mean of the feature vectors of all points belonging to the category. Let the two scene point clouds of each point cloud pair be represented by P (a) and P (b) , through MLPs-1, we can get the feature vector of each point in the two point clouds and Using the feature vectors and the corresponding labels and pseudo labels, the category prototypes of each category of the two scene point clouds can be calculated. and The category prototype corresponding to the category that does not exist in the point cloud is a 0 vector.

[0072] (7.3) Let L(a) and L (b) Respectively represent the semantic categories contained in the two scene point clouds, L ∩ =L (a) ∩L (b) is the semantic category that the two point clouds contain. (a) and L (b) Query the category prototypes of the non-zero vectors corresponding to the two point clouds, extract and combine them Where M = |L (a) |+|L (b) |, The contrast constraint is to make the category prototypes of the same category between two point clouds of different scenes in each point cloud pair close to each other, and the category prototypes of different categories far away from each other. The contrast loss can be composed of two parts, one of which is the Pull loss L pull , part of which is Push loss L push :

[0073]

[0074]

[0075] L con =L pull +α·L push

[0076] Among them, the Pull loss term is to pull the distance between category prototypes of the same category in the feature space, and the Push loss term is to push the distance between category prototypes of different categories in the feature space. The two constrain each other and combine to form a contrast loss term. γ is a hyperparameter, which takes a value of 2 in the application. The function g(·) maps the category prototype to the semantic category to which it belongs.

[0077] (7.4) During training, the overall loss is the segmentation loss L seg and contrast loss L con The segmentation loss uses the traditional cross entropy, which uses the predicted distribution of the labeled points generated by the MLPs-2 layer and the unlabeled points with selected pseudo labels to perform cross entropy with their corresponding labels and pseudo labels. The overall training loss is:

[0078] L=L seg +λ·L con

[0079] Among them, λ is the balance coefficient of the two losses and is taken as 1 in the application.

[0080] The experimental results and analysis are given below:

[0081] Experiment 1: An ablation experiment of weakly supervised point cloud semantic segmentation is performed on the S3DIS dataset using the present invention.

[0082] To verify the effectiveness of the algorithm, a weak annotation strategy of annotating only one point per category in each scene point cloud is used to conduct an ablation experiment on the test set (Area 5) of S3DIS. Table 1 shows the experimental results. Among them, 'Backbone network' means the use of the backbone network, 'Iteration' means the second and third stages of iteration, 'Dynamic threshold window' means the dynamic threshold window method, 'Pull' means the Pull loss in the contrast loss term, 'Push' means the Push loss in the contrast loss term, '√' and '×' mean the method or loss of using and not using the corresponding item, and 'mIoU' means the mean intersection over union, i.e. the evaluation index of semantic segmentation. The experimental results show that the iterative training strategy, pseudo-label generation and selection method, and cross-scene contrast constraint proposed in this invention have greatly improved the performance of weakly supervised point cloud semantic segmentation tasks, verifying the effectiveness of the three-stage training strategy.

[0083] In experiment 2, the present invention is used to perform weakly supervised point cloud semantic segmentation on the S3DIS dataset, ScanNet dataset, Semantic3D dataset, and SemanticKITTI dataset.

[0084] To verify the effectiveness of the algorithm, this experiment uses three weak annotation methods: 1pt, 10pt, and 100pt, which respectively indicate that 1 point, 10 points, and 100 points are annotated for each category in each scene. Table 2 shows the experimental results. The second and third rows of the table respectively indicate the accuracy of the baseline under 1pt and full supervision. From the results, it can be seen that the weakly supervised point cloud semantic segmentation method based on cross-scene comparison proposed in this invention achieves good performance on all four datasets, and only a small number of annotation points are needed to approach or even exceed the performance of full supervision. Figure 2 It is the visualization result of projecting the feature vectors extracted by the network onto a two-dimensional plane in two scenes randomly selected from the S3DIS data by the baseline method (Baseline) and the method of the present invention (CSC) under the setting of 1pt weak annotation. Figure 2 (a) is scene A; (b) is scene B. Figure 2 It can be seen that the feature vectors extracted by the method of the present invention are more compact in the same category and more dispersed in different categories.

[0085] Table 1: Ablation experiments on the S3DIS dataset

[0086] Serial number Backbone network Iteration Dynamic Threshold Window Pull Push QUR 1 √ × × × × 41.7 2 √ √ × × × 52.9 3 √ √ √ × × 53.5 4 √ √ √ √ × 55.8 5 √ √ √ × √ 54.5 6 √ √ √ √ √ 56.5

[0087] Table 2: Experimental results (mIoU) on S3DIS, ScanNet, Semantic3D and SemanticKITTI datasets

[0088] Marking method S3DIS ScanNet Semantic3D SemanticKITTI Baseline(1pt) 41.7 40.5 19.9 42.5 Baseline (100%) 63.0 64.5 77.4 53.9 1pt 56.5 49.4 37.3 46.1 10pt 61.7 54.4 67.4 50.7 100pt 66.7 61.4 70.0 51.5

[0089] Combining Experiments 1 and 2, the present invention has significant performance advantages on the four existing point cloud semantic segmentation datasets, surpassing the highest level in the current academic field, verifying the effectiveness of the three-stage cross-scene comparative weakly supervised point cloud semantic segmentation method proposed in the present invention.

Claims

1. A weakly supervised point cloud semantic segmentation method based on cross-scene contrastive learning, characterized by The following steps are involved: 1) Model initialization: Pre-train the point cloud data of each scene in the weakly supervised dataset, initialize the network parameters, and obtain the feature vector and category prediction distribution of the model output; The specific steps of obtaining the feature vector and category prediction distribution output by the model are: (1) A batch of point cloud data is divided into two parts, that is, 8 point clouds are combined into 4 point cloud pairs, which are input into the backbone network. After passing through an MLP layer MLPs-1 and activated with the ReLU function, the point cloud data is mapped to a shared feature space to obtain a 128-dimensional feature vector corresponding to each point; (2) The feature vector is input into the MLP layer MLPs-2 and activated with the softmax function to obtain the C-dimensional category prediction distribution corresponding to each point, where C indicates that the dataset contains C categories in total; 2) Generate and select pseudo labels: Use the existing network to generate corresponding pseudo labels for unlabeled sample reasoning, and use the dynamic threshold window method to select a part of reliable pseudo labels; The pseudo-label generation and selection first downsamples a plurality of sub-cloud sets with high overlap from a point cloud of a scene according to different local geometric structures and contexts, and smoothes the prediction to obtain the final prediction result of each point; then, a dynamic threshold window method is used to select some reliable pseudo-labels to alleviate the class imbalance of the samples; The specific steps of generating and selecting pseudo labels are: (1) The sampling-shifting-smoothing method generates pseudo labels for unlabeled points: The spatial position encoding of points in the backbone network is affected by the neighborhood information. For each scene, t sub-clouds with large overlap are sampled, and the prediction corresponding to each sub-cloud is obtained through an MLP layer MLPs-2. Where N' is the number of points in each sub-cloud; further add 0 vectors at the corresponding positions of the points that are not sampled, so that Expand to space, where N is the total number of points in the entire point cloud, and the order of the points is in all is consistent, then the sampling-movement-smoothing method is formulated as: i={2,…,t} Among them, τ is the smoothing coefficient, and the final prediction result of each point cloud is By normalization Each row of is obtained; Since the points in different sub-clouds contain different local geometric structures and contexts, the sampling-moving smoothing operation eliminates the fluctuations in the prediction of different sub-clouds to reduce wrong predictions; (2) Dynamic threshold window selection of reliable pseudo-labels: In order to reduce the problem of sample class imbalance, the dynamic threshold window method is used to filter pseudo-labels; for category k, let the dynamic threshold δ corresponding to this category be k for: Among them, δ len Indicates the width of the threshold window, which is 0.2 in the application. d is the lower bound of the threshold, which is taken as 0.5 in the application; for each sample x (i) , generate its corresponding pre-selected pseudo label in, 1[·] is the indicator function; then the pseudo-label of each point is updated by the label of the labeled point and the pre-selected pseudo-label: 3) Update network parameters using cross-scenario contrast constraints: Add cross-scenario contrast regularization constraints to update network parameters; The cross-scene comparison regularization constraint includes: 1) using cross-scene comparison constraints to make the network pay more attention to the common features of the same category between different scenes; 2) using the category prototypes of each category of each point cloud as comparison constraints to reduce the adverse effects of individual incorrect pseudo-labels on network training; for each point cloud pair, using the feature vector of each point obtained by an MLP layer MLPs-1, the category prototype of each category of each scene point cloud is calculated; the category prototypes of the same category between two different scene point clouds in each point cloud pair are made compact while the category prototypes of different categories are dispersed, that is, the category prototypes of the same category are close to each other in the feature space, and the category prototypes of different categories are far away from each other; during testing, the category prediction distribution of each point obtained by an MLP layer MLPs-2 output is compared with the true label to calculate the accuracy of semantic segmentation; The specific steps of updating the network parameters are as follows: (1) The category prototype is a representative feature vector for each category, and the two scene point clouds of each point cloud pair are represented as P (a) and P (b) , the feature vector of each point in the two point clouds is obtained through MLPs-1 and Using the feature vectors and the corresponding labels and pseudo labels, the category prototypes of each category of the two scene point clouds are calculated. and Among them, the category prototype corresponding to the category that does not exist in the point cloud is a 0 vector; (2) Let L (a) and L (b) Respectively represent the semantic categories contained in the two scene point clouds, L ∩ =L (a) ∩L (b) is the semantic category contained in both point clouds; (a) and L (b) Query the category prototypes of the non-zero vectors corresponding to the two point clouds, extract and combine them Where M = |L (a) |+|L (b) |, The contrast constraint is to make the category prototypes of the same category between two point clouds of different scenes in each point cloud pair close to each other, and the category prototypes of different categories far away from each other. The contrast loss consists of two parts, one of which is the Pull loss. Part of it is Push loss Among them, the Pull loss term is to pull the distance between the category prototypes of the same category in the feature space, and the Push loss term is to push the distance between the category prototypes of different categories in the feature space. The two constrain each other and combine to form a contrast loss term; γ is a hyperparameter, which takes a value of 2 in the application. The function g(·) maps the category prototype to the semantic category to which it belongs; (3) During training, the overall loss is the segmentation loss and contrast loss The segmentation loss uses the traditional cross entropy, and the predicted distribution of the labeled points generated by the MLPs-2 layer and the unlabeled points with selected pseudo labels are used to perform cross entropy with their corresponding labels and pseudo labels. The overall loss of training is: Where λ is the balance coefficient of the two losses, which is taken as 1 in the application; 4) Determine whether the model has converged. If so, end the process. Otherwise, repeat steps 2) and 3) until the model has converged.

2. A weakly supervised point cloud semantic segmentation method for cross-scene contrastive learning as claimed in claim 1, characterized in that In step 1), the point cloud data of each scene contains a set of label points (X l ,Y) and the set of unlabeled points in, Respectively indicates that each scene contains N l There are labeled points and N u Unlabeled points (N l <<N l ), is the label corresponding to the labeled point.

3. A weakly supervised point cloud semantic segmentation method for cross-scene contrastive learning as claimed in claim 1, characterized in that In step 1), the pre-training adopts the grid sampling preprocessing method, 8 different point clouds are selected for each batch, and 40960 points are sampled for each point cloud as the network input of the current batch; the network is initialized with labeled points, and the category prediction distribution of the labeled points output by MLPs-2 is used with the corresponding labels for cross entropy to obtain the segmentation loss This is used to train the network; Only segmentation loss is used in the pre-training stage Constrain the optimization process of the model and only calculate the loss for labeled points.