A point cloud classification and segmentation method based on fast sampling and attention mechanism
By introducing sparse matrix-based downsampling and attention mechanism to improve the SA layer, the problems of low sampling efficiency and poor feature extraction accuracy in the PointNet++ method are solved, and more efficient point cloud processing and more accurate feature extraction are achieved.
Patent Information
- Application Number
- CN202411778440.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-12-05
AI Technical Summary
The existing PointNet++ method has low sampling efficiency, poor local feature extraction accuracy, and inaccurate interpolation in point cloud processing, resulting in increased computational complexity and model design difficulty during large-scale point cloud data processing.
The SA layer is improved by using a sparse matrix-based downsampling method and attention mechanism, and the sampling speed and feature extraction accuracy are improved through self-attention encoder and bilinear interpolation.
It improves the efficiency of point cloud sampling and the accuracy of feature extraction, reduces computational complexity, and significantly improves the performance of point cloud classification and segmentation tasks.
Smart Images

Figure CN119251602B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a point cloud classification and segmentation method based on fast sampling and attention mechanism. Background Art
[0002] With the rapid development and widespread application of advanced depth sensing technologies such as LiDAR, RGB-D cameras, 3D structured light cameras, and ToF cameras, it has become easier than ever to obtain and use point cloud data. Compared with traditional two-dimensional images, three-dimensional point cloud data contains richer information on form, size, and geometric structure, providing smart devices with a deeper level of environmental perception. Taking autonomous driving as an example, the LiDAR carried by the vehicle can continuously scan the surrounding environment and generate a detailed three-dimensional point cloud model including road layout, traffic signs, surrounding vehicles, pedestrians, and even roadside buildings, which greatly promotes the understanding and interaction of the surrounding world. In recent years, three-dimensional point cloud data has shown great potential in many fields closely related to human life, such as driverless cars, robotics, and geospatial mapping, prompting efficient processing and in-depth analysis of such data to become a frontier hotspot in current research.
[0003] In the field of 3D point cloud data processing, classification and segmentation are two core challenges. The goal of point cloud classification is to accurately assign category labels to each point, such as identifying objects such as chairs, cars or buildings in the point cloud; while point cloud segmentation is committed to dividing the point cloud data set into multiple subsets, and the points in each subset belong to the same object or share similar feature attributes. These 3D visual tasks are crucial for path planning of autonomous driving systems, autonomous navigation of robots, urban management optimization, ecological environment monitoring and even remote sensing image analysis. However, due to the inherent irregularity, disorder and uneven density distribution of point cloud data, its processing and analysis process faces high computational complexity and model design difficulties. Early studies mostly relied on traditional image processing algorithms and machine learning strategies. Although they have achieved certain results in specific situations, these methods are often sensitive to noise, have limited generalization performance, and are unable to cope with complex and changeable actual scenes. Therefore, exploring new methods for 3D point cloud processing that are more robust, efficient and adaptable has become a key issue that needs to be broken through.
[0004] In recent years, deep learning technology has made remarkable achievements in the field of computer vision and has gradually become the mainstream method for 3D point cloud processing. Most of the 3D point cloud processing methods based on deep learning are neural network (NN) model architectures. Neural network models such as PointNet and PointNet++ use multilayer perceptrons (MLP) or convolutional neural networks (CNN) as the backbone network for feature extraction, and then combine the farthest point sampling (FPS) and nearest neighbor search for local feature extraction, which performs well in point cloud classification and segmentation tasks.
[0005] Pointnet++ mainly consists of three parts: Hierarchical point set feature learning module, segmentation network and classification network. Regarding the hierarchical point set feature learning module: multiple SA (Set Abstraction) layers are used for feature extraction. The difference is that the number of sampling points (K) and sampling radius (R) of each SA layer are different. As the level deepens, K and R will increase accordingly. The SA layer contains three key layers: Sampling Layer, Grouping Layer, and PointNetLayer. Among them, the Sampling Layer selects several center points from the point cloud to form a point set based on FPS sampling. The Grouping Layer divides the point set into several regions based on the ball query and K nearest neighbor grouping method. The PointNet Layer performs MLP feature extraction, maximum pooling and other operations on each region to obtain data features, and then splices them into a set of multi-scale features. However, the existing methods of Pointnet++ still have some problems in sampling efficiency and spatial information extraction in point cloud processing:
[0006] (1) PointNet++ selects the center points of local areas through FPS sampling and constructs local areas around these center points. This process involves multiple nearest neighbor searches, which significantly increases the amount of computation, especially when processing large-scale point cloud data. Although FPS is more accurate, it still needs to traverse the entire dataset to find the farthest point, which will result in higher computational costs when the amount of data is large. And as the number of points increases, it will bring higher computational complexity.
[0007] (2) PointNet++ designed a skip link module for the segmentation task. However, this skip link module makes less use of the spatial information between points, which limits the ability of feature extraction and leads to poor results in feature extraction accuracy.
[0008] (3) PointNet++ uses the nearest neighbor search interpolation method when upsampling segmentation tasks. This method depends on the selected neighborhood size and point distribution during interpolation, which can lead to inaccurate interpolation.
[0009] Glossary: The JL (Johnson-Lindenstrauss) lemma is a lemma widely used in mathematics and computer science, mainly used to deal with the dimensionality reduction problem of high-dimensional data. The lemma states that for n points in a high-dimensional space, they can be mapped to a low-dimensional space through a random projection while keeping the distances between these points roughly unchanged. Summary of the invention
[0010] The purpose of the present invention is to provide a point cloud classification and segmentation method based on fast sampling and attention mechanism, which can solve the problems of slow sampling speed, poor local feature extraction accuracy, inaccurate interpolation, etc. of Pointnet++.
[0011] In order to achieve the above object, the technical solution adopted by the present invention is as follows: a point cloud classification and segmentation method based on fast sampling and attention mechanism, comprising the following steps;
[0012] S1, load the point cloud classification dataset D consisting of point cloud classification samples c , a point cloud segmentation dataset D consisting of point cloud segmentation samples s ;
[0013] S2, constructing a point cloud classification and segmentation network, including steps S21 to S24;
[0014] S21, select a PointNet++ network, including a hierarchical point set feature learning module, a segmentation network, and a classification network, wherein the hierarchical point set feature learning module includes two first SA layers L connected in sequence SA1 , the second SA layer L SA2 , the two have the same structure, both of which include a sampling layer, a grouping layer and a point network layer connected in sequence; the hierarchical point set feature learning module inputs point cloud data and outputs corresponding multi-scale features, and the point cloud data is a point cloud classification sample or a point cloud segmentation sample;
[0015] S22, constructing a downsampling layer to downsample the point cloud data based on the sparse matrix;
[0016] S23, construct a segmentation network N based on the attention mechanism St, including a first interpolation layer, a first splicing layer, a second interpolation layer, a second splicing layer, two fully connected layers and a segmentation layer connected in sequence;
[0017] S24, select two downsampling layers and label them as L Ds1 , L Ds2 , respectively replace L SA1 and L SA2 The sampling layer in the L SA1 , L SA2 Marked as the first improved SA layer , the second improved SA layer ; in L Ds1 The input end is connected to the input end of the first concatenation layer through the first self-attention encoder. Ds2 The input end is connected to the input end of the second concatenation layer through the second self-attention encoder, and N St Replace the segmentation network to obtain the point cloud classification segmentation network;
[0018] One point cloud segmentation sample X S Send it to the point cloud classification and segmentation network. , The output features are obtained respectively , , Enter N St middle;
[0019] The first interpolation layer is based on Perform interpolation to obtain the first feature F St1 , the first concatenation layer is used to convert X S With F St1 Splice and get the second feature F St2 , the second interpolation layer is used to St2 Interpolation operation is performed to obtain the third feature F St3 , the second stitching layer is used to With F St3 After splicing, we get the fourth feature F St4 , F St4 The two layers of fully connected layers are used to reduce the dimension, and then the segmentation layer is used to perform semantic segmentation point by point, and the segmentation result F is output. S-out ;
[0020] S3, with D c and D s Train until the point cloud classification and segmentation network converges to obtain a point cloud classification and segmentation model;
[0021] S4, obtaining the point cloud data to be processed, and classifying or segmenting it using a point cloud classification and segmentation model.
[0022] Preferably, in S1, the point cloud classification dataset is the Modelnet40 dataset, and the point cloud segmentation dataset is the ShapeNet or S3DIS dataset.
[0023] Preferably, the downsampling method of the downsampling layer comprises steps Sa1 to Sa3;
[0024] Sa1, obtain a point cloud data X, which contains N data points, each of which contains m-dimensional features, and construct X into an N×m matrix;
[0025] Sa2, determine the number of data points n after downsampling, from the normal distribution Randomly sample an N×n sparse matrix Φ, Φ satisfies the JL lemma, and n<<N;
[0026] Sa3, according to the formula Y=XΦ, obtain an n×m downsampled point cloud data Y.
[0027] Preferably, the first interpolation layer and the second interpolation layer both perform interpolation operations based on a bilinear interpolation method.
[0028] Preferably, the classification network comprises a dot-net layer, two fully connected layers, and a classification layer which are connected in sequence.
[0029] Compared with the prior art, the advantages of the present invention are:
[0030] (1) A method for downsampling point cloud data based on a sparse matrix is designed and executed by the downsampling layer of the present invention. This method can obtain sampling points through a single matrix multiplication, thereby improving the sampling speed and is particularly suitable for large-scale point cloud data.
[0031] (2) Improve the skip connection in the original PointNet++ network, and transform the point cloud data X S The first feature F output by the first interpolation layer St1 Splice and improve the first SA layer Output The third feature F output by the second interpolation layer St3 Splicing is performed to solve the problem that existing studies ignore the spatial information between each point, so that the overall model can extract spatial and related information in the sampled point cloud, improving the accuracy of segmentation.
[0032] (3) In the segmentation network, the first interpolation layer and the second interpolation layer are interpolated based on bilinear interpolation, which overcomes the problem of inaccurate interpolation caused by the selected neighborhood size and point distribution during interpolation. We invented a bilinear interpolation method. Experimental results show that the test results of this method on multiple data sets are significantly improved compared with existing methods.
[0033] In summary, the present invention designs a point cloud classification and segmentation network based on fast sampling and attention mechanism, and a point cloud classification and segmentation method based on the network, which can improve sampling efficiency, feature extraction accuracy, and segmentation accuracy. A large number of experiments have verified that the present invention has achieved better results than PointNet++ in classification and segmentation tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a schematic diagram of the point cloud classification and segmentation network structure;
[0035] Figure 2 Schematic diagram of the interpolation operation of the first interpolation layer. DETAILED DESCRIPTION
[0036] The present invention will be further described below in conjunction with the accompanying drawings.
[0037] Example 1: See Figure 1 and Figure 2 ,A point cloud classification and segmentation method based on fast sampling and attention mechanism, includes the following steps;
[0038] S1, load the point cloud classification dataset D consisting of point cloud classification samples c , a point cloud segmentation dataset D consisting of point cloud segmentation samples s ;
[0039] S2, constructing a point cloud classification and segmentation network, including steps S21 to S24;
[0040] S21, select a PointNet++ network, including a hierarchical point set feature learning module, a segmentation network, and a classification network, wherein the hierarchical point set feature learning module includes two first SA layers L connected in sequence SA1 , the second SA layer L SA2 , the two have the same structure, both of which include a sampling layer, a grouping layer and a point network layer connected in sequence; the hierarchical point set feature learning module inputs point cloud data and outputs corresponding multi-scale features, and the point cloud data is a point cloud classification sample or a point cloud segmentation sample;
[0041] S22, constructing a downsampling layer to downsample the point cloud data based on the sparse matrix;
[0042] S23, construct a segmentation network N based on the attention mechanism St , including a first interpolation layer, a first splicing layer, a second interpolation layer, a second splicing layer, two fully connected layers and a segmentation layer connected in sequence;
[0043] S24, select two downsampling layers and label them as L Ds1 , L Ds2 , respectively replace LSA1 and L SA2 The sampling layer in the L SA1 , L SA2 Marked as the first improved SA layer , the second improved SA layer ; in L Ds1 The input end is connected to the input end of the first concatenation layer through the first self-attention encoder. Ds2 The input end is connected to the input end of the second concatenation layer through the second self-attention encoder, and N St Replace the segmentation network to obtain the point cloud classification segmentation network;
[0044] One point cloud segmentation sample X S Send it to the point cloud classification and segmentation network. , The output features are obtained respectively , , Enter N St middle;
[0045] The first interpolation layer is based on Perform interpolation to obtain the first feature F St1 , the first concatenation layer is used to convert X S With F St1 Splice and get the second feature F St2 , the second interpolation layer is used to St2 Interpolation operation is performed to obtain the third feature F St3 , the second stitching layer is used to With F St3 After splicing, we get the fourth feature F St4 , F St4 The two layers of fully connected layers are used to reduce the dimension, and then the segmentation layer is used to perform semantic segmentation point by point, and the segmentation result F is output. S-out ;
[0046] S3, with D c and D s Train until the point cloud classification and segmentation network converges to obtain a point cloud classification and segmentation model;
[0047] S4, obtaining the point cloud data to be processed, and classifying or segmenting it using a point cloud classification and segmentation model.
[0048] Example 2: See Figure 1 and Figure 2 , based on Example 1, in S1, the point cloud classification dataset is the Modelnet40 dataset, and the point cloud segmentation dataset is the ShapeNet or S3DIS dataset.
[0049] The downsampling method of the downsampling layer includes steps Sa1 to Sa3;
[0050] Sa1. Obtain a point cloud data X, which contains N data points in total. Each data point contains m-dimensional features, and m is generally 3 or 6. The data points are numbered from 1 to N in sequence. Then the point cloud data X can be represented as an N×m matrix;
[0051] ,
[0052] In this matrix, each row represents 1 point cloud, and x 11 ~x 1m respectively represent the eigenvalue of the 1st to mth dimension features of the 1st data point, and x N1 、x Nm respectively represent the eigenvalue of the 1st to mth dimension features of the Nth data point;
[0053] Sa2. Assume that the number of data points after downsampling is n. Then randomly sample an N×n sparse matrix Φ from the normal distribution . Φ satisfies the JL lemma, and n << N. Usually, constructing an N×n matrix has a time complexity of O(N×n), but since n << N, in this step, the time complexity of constructing the sparse matrix Φ can be approximated as O(N). For the FPS algorithm, the time complexity is usually O( ), where N is the number of points before sampling. From the perspective of the time complexity order, our sampling algorithm is far superior to FPS. Moreover, subsequently, we only need one matrix multiplication to complete the selection of all points, while FPS needs to calculate the Euclidean distance from the selected points to all the remaining points in each point selection iteration;
[0054] Sa3. According to the formula Y = XΦ, obtain a downsampled point cloud data Y of n×m. Through this step, high-dimensional data can be randomly mapped to a low-dimensional space.
[0055] The first interpolation layer and the second interpolation layer both perform interpolation operations based on the bilinear interpolation method.
[0056] The classification network includes a point network layer, two fully connected layers, and a classification layer connected in sequence.
[0057] In addition, more specifically, regarding the grouping layer and the point network layer: the results obtained by the sampling layer are grouped according to the ball query method, that is, the sampled points are used as the center points to set three groups of radii (0.1, 0.2 and 0.4), and the number of points within the radius (16, 32, 128 correspond to radii 0.1, 0.2 and 0.4 respectively) are grouped, and each center point is a cluster according to a group of points, and multi-scale point cloud data with three different clusters are obtained; then they are sent to the point network layer, and the point cloud data features of different clusters are first extracted by MLP, and then three groups of data features are obtained by performing maximum pooling on each cluster, and then the three groups of features are spliced into one group of features to obtain the output of the sampling module.
[0058] Regarding the classification network, it is the original classification network of the PointNet++ network. In this classification network, the point network layer is also called the Pointnet layer, which is used to perform maximum pooling on the results of the input classification network to obtain a set of one-dimensional global features, and then pass through two layers of fully connected layers in sequence to perform feature dimensionality reduction on the one-dimensional global features, effectively extracting and retaining the key features in the point cloud data, and finally pass through the classification layer to obtain the scores of the corresponding point cloud data in different categories, and select the highest score as the classification result.
[0059] About the segmentation network based on attention mechanism N St The principle of its segmentation layer is the same as the principle of the segmentation layer in the PointNet++ network. St When the fourth feature F St4 After the dimension reduction by two layers of fully connected layers, it is sent to the segmentation layer. Assuming that there are C segmentation categories in the segmentation task, for each point input to the segmentation layer, it will output the score of each segmentation category. For point cloud data X, there are N points, and the segmentation layer will output N×C scores to form the segmentation result F. S-out .
[0060] About the self-attention encoder: It includes the first self-attention encoder and the second self-attention encoder, and the connection method is as follows Figure 1 As shown in . The self-attention mechanism is a special attention mechanism that allows the model to consider the relationship between each element and all other elements in the sequence when processing the sequence. In the present invention, the first and second self-attention encoders first perform self-attention encoding on their inputs, extract the spatial relationship of each point, and then each is connected to the segmentation network N based on the attention mechanism through a jump link. St middle.
[0061] Regarding the first interpolation layer and the second interpolation layer, the two have the same structure. For their interpolation methods, see Figure 2: First, cut the three-dimensional point cloud data into two-dimensional form, and use f(x, y) to represent a point. In the figure, f(x0, y0), f(x1, y0), f(x1, y1), and f(x0, y1) respectively represent four points in space; then perform three bilinear interpolation operations: the first time, perform bilinear interpolation on the two points f(x0, y0) and f(x0, y1) to obtain point z0, the second time, perform bilinear interpolation on the two points f(x1, y0) and f(x1, y1) to obtain point z1, and the third time, perform bilinear interpolation on the two points z0 and z1 to obtain point z, which is the final interpolation result.
[0062] About using D c and D s Train until the point cloud classification and segmentation network converges to obtain the point cloud classification and segmentation model. A simple training process is given below:
[0063] Step 1: Data preparation and division
[0064] Dataset selection: Point cloud classification dataset D c Select Modelnet40 dataset, point cloud segmentation dataset D s Select ShapeNet.
[0065] Data preprocessing: 1) Preload points: Randomly sample a fixed number of points for each point cloud object to form point cloud data. In this embodiment, 1024 points are sampled; 2) Divide the data set: Divide the data set into a training set and a test set in proportion. The proportions of the present invention are 80% and 20%.
[0066] Step 2: Model architecture setup
[0067] Network selection: 1) Improve the SA layer first , the second improved SA layer and classification network to form the classification task network structure; 2) Improve the first SA layer , the second improved SA layer , first self-attention encoder, second self-attention encoder, segmentation network based on attention mechanism N St Construct the network structure for segmentation tasks.
[0068] Layer grouping: such as the first improved SA layer Sampling 512 points, 128 points, etc., setting the grouping radius and number of neighbors. The present invention: the first improved SA layer Sampling 512 points, second improved SA layer The sampling points are 256. The grouping radius is 0.1, 0.2 and 0.4, corresponding to the number of neighbors 16, 32 and 128.
[0069] Step 3: Set hyperparameters
[0070] Learning rate: 0.0001, using Adam optimizer, using Step Decay to adjust the learning rate.
[0071] Batch size: 16.
[0072] Loss function: cross entropy loss function.
[0073] Number of training rounds: 200.
[0074] Step 4: Training process
[0075] First, the predefined model architecture of the present invention is loaded, the weight parameters are initialized, and then the point cloud data and its labels are loaded from the training set in batches and accelerated by GPU. Then the forward propagation process is: for the classification task, after , The multi-scale features are obtained and sent to the classification network. The classification result is output through the classification layer. The classification result is the prediction result of the classification task. , , first self-attention encoder, second self-attention encoder, N St After that, the output segmentation result is the score of each point belonging to each segmentation category, which is the prediction result of the segmentation task. Then the loss value between the prediction result and the label is calculated, the gradient is calculated by the back propagation algorithm, and the network parameters are updated. Then, the model is verified every several training rounds, the performance is evaluated on the verification set, and the model parameter file with the best performance is saved. Finally, the model is tested and evaluated.
[0076] Example 3: Based on Examples 1 and 2, the present invention is used to conduct comparative experiments with two typical point cloud task models. The experimental results are shown in Tables 1 and 2:
[0077] Table 1 Comparison of classification tasks of different models
[0078] Model Instance Acc (%) Class Acc(%) PointNet 89.2 86.2 PointNet++ 91.1 90.7 The present invention 92.1 91.0
[0079] Table 2 Comparison of segmentation tasks of different models
[0080] Model MIoU (%) PointNet 83.7 PointNet++ 85.1 The present invention 85.2
[0081] In the table, Instance Acc: Instance Accuracy in English and instance accuracy in Chinese is a commonly used evaluation indicator in point cloud classification tasks. It refers to the total number of correct predictions made by the model in all predictions divided by the total number of samples involved in the prediction, regardless of the category.
[0082] Class Acc: Class Accuracy in English and classification accuracy in Chinese. It is also a commonly used evaluation indicator in point cloud classification tasks. It refers to the average accuracy (or recall) of each category. It first calculates the accuracy of each category and then averages these accuracy rates. This accuracy rate can better reflect the impact of class imbalance.
[0083] MIoU: Mean Intersection over Union in English, is a commonly used evaluation indicator in point cloud segmentation tasks. It measures model performance by calculating the ratio between the intersection and union of the predicted results and the true labels.
[0084] In addition, based on the model of the present invention, we replaced some modules for comparative experiments. Among them, the corresponding positions of the first interpolation layer and the second interpolation layer in the segmentation network need to be interpolated, and the moving least squares interpolation method and the interpolation operation based on the bilinear interpolation method described in the present invention are respectively selected. The first self-attention encoder and the second self-attention encoder are combined into a spatial self-attention module, and the spatial self-attention module is set to 0, 1, and 2 for comparative experiments. The experimental results are shown in Table 3:
[0085] Table 3 Comparison of different interpolation methods and the number of spatial self-attention modules
[0086] Modules result Moving Least Squares Interpolation Number of spatial self-attention modules Bilinear interpolation Instance Acc (%) MIoU (%) √ - - 91.1 80.0 - - √ 91.0 81.2 - 1 - 94.3 85.2 - 2 √ 94.2 85.1
[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A point cloud classification and segmentation method based on fast sampling and attention mechanism, characterized by: The steps include: S1, load the point cloud classification dataset D consisting of point cloud classification samples c , a point cloud segmentation dataset D consisting of point cloud segmentation samples s ; S2, constructing a point cloud classification and segmentation network, including steps S21 to S24; S21, select a PointNet++ network, including a hierarchical point set feature learning module, a segmentation network, and a classification network, wherein the hierarchical point set feature learning module includes two first SA layers L connected in sequence SA1 , the second SA layer L SA2 , the two have the same structure, both of which include a sampling layer, a grouping layer and a point network layer connected in sequence; the hierarchical point set feature learning module inputs point cloud data and outputs corresponding multi-scale features, and the point cloud data is a point cloud classification sample or a point cloud segmentation sample; S22, constructing a downsampling layer to downsample the point cloud data based on the sparse matrix; S23, construct a segmentation network N based on the attention mechanism St , including a first interpolation layer, a first splicing layer, a second interpolation layer, a second splicing layer, two fully connected layers and a segmentation layer connected in sequence; S24, select two downsampling layers and label them as L Ds1 , L Ds2 , respectively replace L SA1 and L SA2 The sampling layer in the L SA1 , L SA2 Marked as the first improved SA layer , the second improved SA layer ; in L Ds1 The input end is connected to the input end of the first concatenation layer through the first self-attention encoder. Ds2 The input end is connected to the input end of the second concatenation layer through the second self-attention encoder, and N St Replace the segmentation network to obtain the point cloud classification segmentation network; One point cloud segmentation sample X S Send it to the point cloud classification and segmentation network. , The output features are obtained respectively , , Enter N St middle; The first interpolation layer is based on Perform interpolation to obtain the first feature F St1 , the first concatenation layer is used to convert X S With F St1 Splice and get the second feature F St2 , the second interpolation layer is used to St2 Interpolation operation is performed to obtain the third feature F St3 , the second stitching layer is used to With F St3 After splicing, we get the fourth feature F St4 , F St4 The two layers of fully connected layers are used to reduce the dimension, and then the segmentation layer is used to perform semantic segmentation point by point, and the segmentation result F is output. S-out ; S3, with D c and D s Train until the point cloud classification and segmentation network converges to obtain a point cloud classification and segmentation model; S4, obtaining the point cloud data to be processed, and classifying or segmenting it using a point cloud classification and segmentation model.
2. According to claim 1, a point cloud classification and segmentation method based on fast sampling and attention mechanism is characterized in that: In S1, the point cloud classification dataset is the Modelnet40 dataset, and the point cloud segmentation dataset is the ShapeNet or S3DIS dataset.
3. The point cloud classification and segmentation method based on fast sampling and attention mechanism according to claim 1, characterized in that: The downsampling method of the downsampling layer includes steps Sa1 to Sa3; Sa1, obtain a point cloud data X, which contains N data points, each of which contains m-dimensional features, and construct X into an N×m matrix; Sa2, determine the number of data points n after downsampling, from the normal distribution Randomly sample an N×n sparse matrix Φ, Φ satisfies the JL lemma, and n<<N; Sa3, according to the formula Y=XΦ, obtain an n×m downsampled point cloud data Y.
4. The point cloud classification and segmentation method based on fast sampling and attention mechanism according to claim 1, characterized in that: The first interpolation layer and the second interpolation layer both perform interpolation operations based on bilinear interpolation.
5. The point cloud classification and segmentation method based on fast sampling and attention mechanism according to claim 1, characterized in that: The classification network includes a dot network layer, two fully connected layers, and a classification layer which are connected in sequence.
Citation Information
Patent Citations
Three-dimensional point cloud semantic segmentation method based on context and attention
CN114693923A
Point cloud data preprocessing method based on fuzzy C-means clustering
CN115758185A