Geometric feature fusion-based point cloud semantic segmentation method and system

By introducing a geometric feature fusion module and a polar coordinate conversion module into point cloud semantic segmentation, combined with the Point Transformer network, the problem of reduced performance and low real-time performance of rotating object segmentation is solved, achieving more efficient point cloud semantic segmentation and balancing segmentation. Performance and time overhead.

CN118608776AActive Publication Date: 2024-09-06BEIJING JIAOTONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410241120.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-09-06
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

Existing point cloud semantic segmentation methods suffer from reduced segmentation performance and low real-time performance when processing rotating objects. It is difficult to strike a balance between segmentation performance and time overhead. Especially when processing large-scale point clouds, there is information loss and high computational cost. problem.

Method used

A method based on geometric feature fusion is used to perform preliminary feature extraction through the Point Transformer network, and random sampling is used to obtain key points in the down-sampling stage. The polar coordinate conversion module and the geometric feature fusion module are combined to splice point cloud coordinate information, feature information and angle information. , the feature dimension is adjusted through the Shared MLP layer, and the segmentation result is finally obtained through linear interpolation and MLP layer.

Benefits of technology

It improves the rotation robustness and segmentation performance of the model, achieves a balance between segmentation performance and time overhead, improves the efficiency of large-scale point cloud semantic segmentation, and reduces information loss and computing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608776A
    Figure CN118608776A
Patent Text Reader

Abstract

The invention provides a geometric feature fusion-based point cloud semantic segmentation method and system, belongs to the technical field of machine vision image processing, and introduces a polar coordinate conversion module to alleviate the problem that the segmentation performance is greatly reduced due to object rotation. In order to reduce the time required for segmentation without sacrificing the segmentation performance of the model, random sampling with low time overhead is adopted in the stage of obtaining key points by down-sampling, and part of feature information is lost inevitably due to the randomness of the random sampling, so that the segmentation performance of the model is not sacrificed. Therefore, a geometric feature fusion module is provided in a feature extraction and feature fusion stage, and an improved Point Transform module is added, so that the features are extracted and fused while the feature information is made up. Through the polar coordinate conversion module and the geometric feature fusion module, the segmentation performance and the segmentation time are balanced. According to the method, the segmentation performance and the time overhead can be balanced, the problems of information loss and rotation invariance are solved, and effective large-scale point cloud semantic segmentation is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine vision image processing, and in particular to a point cloud semantic segmentation method and system based on geometric feature fusion. Background Art

[0002] Point cloud semantic segmentation aims to associate a series of regularly or irregularly distributed points in three-dimensional space with semantic labels. It is of great significance for applications such as autonomous driving, augmented reality and robotics. For example, when a car is driving on the road, it can classify obstacles, vehicles, pedestrians, etc. on the road to help the car's autonomous driving system make decisions and plans, thereby greatly reducing the driver's energy consumption during driving. Usually, for the task of point cloud semantic segmentation, it is first necessary to obtain key points and neighboring points around key points, and then obtain results through feature extraction and feature aggregation. Since point clouds are unstructured and disordered, the methods for processing point cloud semantic segmentation in recent years can be divided into three categories: multi-view-based, voxel-based and point-based segmentation methods. The multi-view-based method solves the problem of unstructured point cloud data well, but there are many limitations and losses in geometric structure. The voxel-based method solves the problem of unstructured original point cloud and makes up for the limitations of multi-view-based methods in geometric structure, but there is a certain loss in data representation. In addition, the storage of voxel structure occupies a high memory requirement. Whether it is a multi-view or voxel-based method, when processing large-scale point clouds, the information loss or computational cost is very high. An additional process is required to convert the point cloud into a regular representation, and then convert the intermediate segmentation result back to the point cloud, which has serious limitations. Unlike these methods, point-based methods can directly process three-dimensional point clouds. So far, many point-based methods have emerged, and this method has become the mainstream method for semantic segmentation of point clouds. This paper also adopts a point-based segmentation method. Although the current work has made good progress, there are still the following two defects: On the one hand, when the segmented object rotates, the segmentation model inevitably has the problem of degraded segmentation performance (for example, when the pedestrian faces the scanner and faces the side of the scanner, when segmenting the point clouds obtained in these two cases, it can be found that the pedestrian facing the scanner is better), but the performance of most models in dealing with the rotation of the object is significantly reduced, resulting in poor rotation robustness of the model. On the other hand, in practical applications, most methods sacrifice operating efficiency in exchange for better segmentation results, resulting in low real-time performance.

[0003] Therefore, in order to narrow the gap between point cloud semantic segmentation tasks and real-world applications and improve the real-time performance of the method, more and more models are trying to rotate random sampling methods in the key point acquisition stage, and use some methods in the feature extraction stage to compensate for the feature loss problem caused by randomness, thereby improving the real-time performance of the model, such as RandLA-Net.

[0004] RandLA-Net uses random sampling method to obtain key points in the downsampling stage, and then uses the K nearest neighbor method to obtain the neighboring points around the key points. In the feature extraction stage, the local feature fusion method is used to compensate and extract features, and finally the final segmentation result is obtained through the pooling layer.

[0005] On the one hand, the degradation of segmentation performance due to object rotation is inevitable (such as misidentifying pedestrians facing the scanner sideways as trees), but the performance of most models degrades significantly when objects rotate. On the other hand, in real applications, both segmentation performance and real-time performance of the model are required, but most models cannot achieve a good balance between the two. Summary of the invention

[0006] The purpose of the present invention is to provide a point cloud semantic segmentation method and system based on geometric feature fusion to solve at least one technical problem existing in the above-mentioned background technology.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] On the one hand, the present invention provides a point cloud semantic segmentation method based on geometric feature fusion, comprising:

[0009] The input point cloud data is subjected to preliminary feature extraction through an MLP layer and a GFF layer. PointTransformer is used as the backbone network, KNN is used to obtain neighboring points, and four upsampling layers use linear interpolation to restore the data to the original scale. Point Transformer includes two MLP layers at the input and output stages, nine PointTransformer layers for feature extraction and fusion, and four downsampling layers use FPS to obtain key points.

[0010] The extracted preliminary features are input into the downsampling layer; in the downsampling stage, the key points are obtained by random sampling method, and the neighboring points near the key points are obtained by KNN method; the downsampling results are input into the GFF module; the GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features. For the input points, the neighboring points are processed by LPC to obtain the relative angle of the neighboring points and the Euclidean distance between the neighboring points and the center point; the relative angle of the neighboring points, the geometric distance between the neighboring points and the center point, and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the Shared MLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point;

[0011] The local feature information representing the neighborhood of the center point is input to the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted through the MLP layer. The result is input to the last MLP layer to obtain the final segmentation result.

[0012] Furthermore, after random sampling, the center point P is obtained, and the KNN algorithm is used to obtain P i Neighboring points First, p i The neighboring points of are converted from the Cartesian coordinate system to the polar coordinate system, that is, using represents the neighboring points, where is the relative coordinate of the adjacent points in the Cartesian coordinate system. The conversion formula is as follows:

[0013]

[0014]

[0015]

[0016] Furthermore, we calculate p i The centroid point in the neighborhood The calculation method uses the method of taking the average of neighboring points, and defines from p i point to is the local direction, used to represent p i and Relative angles between adjacent points; Update the relative angles of adjacent points: Will and Update to and where δ i and θ i yes The relative angle of .

[0017] Furthermore, the following formula is used to perform local feature splicing:

[0018]

[0019] Indicates neighboring points The Euclidean distance to the key point, Represents a concatenation operation. and It is the neighboring point output by our LPC module and p i The relative distance and the converted relative angle.

[0020] Furthermore, through the output of LPC and the neighboring points The coordinate information is spliced ​​and then passed through the point-by-point MLP to obtain With sufficient spatial characteristics, and The characteristic information f i k Splice to get For the center point p i Get a set of neighboring features

[0021] Furthermore, the input to the PTL module in the Point Transformer network is:

[0022]

[0023] Among them, ω and ξ are two linear layers, γ consists of an MLP and two linear layers, and ρ consists of an MLP and a Softmax layer; it aims to calculate the correlation between the center point and the neighboring points, give the neighboring point features a weight score, and finally fuse the neighboring features through the summation function.

[0024] In a second aspect, the present invention provides a point cloud semantic segmentation system based on geometric feature fusion, comprising:

[0025] The feature extraction module is used to perform preliminary feature extraction on the input point cloud data through an MLP layer and a GFF layer. Point Transformer is used as the backbone network, KNN is used to obtain neighboring points, and four upsampling layers use linear interpolation to restore the data to the original scale. Point Transformer includes two MLP layers at the input and output stages, nine Point Transformer layers for feature extraction and fusion, and four downsampling layers use FPS to obtain key points.

[0026] The downsampling module is used to input the extracted preliminary features into the downsampling layer. In the downsampling stage, the key points are obtained by random sampling method, and the neighboring points near the key points are obtained by KNN method. The downsampling results are input into the GFF module. The GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features. For the input points, the neighboring points are processed by LPC to obtain the relative angles of the neighboring points and the Euclidean distances between the neighboring points and the center point. The relative angles of the neighboring points, the geometric distances between the neighboring points and the center point, and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the Shared MLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point;

[0027] The upsampling module is used to input the local feature information representing the neighborhood of the center point into the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted through the MLP layer, and the result is input into the last MLP layer to obtain the final segmentation result.

[0028] In a third aspect, the present invention provides a non-transitory computer-readable storage medium, which is used to store computer instructions. When the computer instructions are executed by a processor, the point cloud semantic segmentation method based on geometric feature fusion as described in the first aspect is implemented.

[0029] In a fourth aspect, the present invention provides a computer device comprising a memory and a processor, wherein the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the point cloud semantic segmentation method based on geometric feature fusion as described in the first aspect.

[0030] In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the point cloud semantic segmentation method based on geometric feature fusion as described in the first aspect.

[0031] Terminology explanation:

[0032] Point Cloud Semantic Segmentation (PCSS): Semantic segmentation, which associates pixels with semantic labels, is a fundamental research in image processing. Point cloud semantic segmentation is a three-dimensional form of semantic segmentation that uses regularly or irregularly distributed points in three-dimensional space to replace regularly distributed pixels in two-dimensional images.

[0033] Random Sampling (RS): Random sampling is a method of selecting samples from a population or data set in a random manner. It is an unbiased sampling method where each sample has an equal chance of being selected.

[0034] Encoder-Decoder: The encoder is a model that converts input data (such as images, videos) into a low-dimensional representation. It compresses the input data into a vector or feature map to make it easier to process the data and reduce storage space. The decoder is a model that converts the encoded low-dimensional representation back to the original data. It decodes the feature map or vector produced by the encoder into a form similar to the original data.

[0035] The beneficial effects of the present invention are as follows: it is possible to balance segmentation performance and time overhead, solve the problems of information loss and rotation invariance, and achieve more effective large-scale point cloud semantic segmentation.

[0036] Additional advantages of the present invention will be more clearly given in the following description or learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0038] Figure 1 The network framework diagram described in the embodiment of the present invention is compared with the Point Transformer network framework diagram. Figure 1(a) is the overall architecture diagram of the Point Transformer network; Figure 1 (b) is the overall architecture diagram of the GFF-Net network.

[0039] Figure 2 This is a structural framework diagram of the GFF module described in an embodiment of the present invention.

[0040] Figure 3 This is a structural framework diagram of the LPC module described in an embodiment of the present invention.

[0041] Figure 4 This is a visualization result diagram of the segmentation in the S3DIS dataset according to an embodiment of the present invention.

[0042] Table 1 shows the segmentation performance of the present invention in the S3DIS dataset;

[0043] Table 2 shows the performance and time cost comparison of the present invention on the SemanticKITTI dataset. DETAILED DESCRIPTION

[0044] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below by the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0045] It should be understood by those skilled in the art that unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this invention belongs.

[0046] It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have a meaning consistent with that in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless as defined herein.

[0047] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the 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 and / or groups thereof.

[0048] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0049] To facilitate understanding of the present invention, the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the specific embodiments do not constitute a limitation on the embodiments of the present invention.

[0050] Those skilled in the art should understand that the drawings are merely schematic diagrams of embodiments, and the components in the drawings are not necessarily necessary for implementing the present invention.

[0051] The present invention relates to applications such as autonomous driving, augmented reality, and robotics. For example, when a car is driving on a road, obstacles, vehicles, pedestrians, etc. on the road can be classified to help the car's autonomous driving system make decisions and plans, thereby greatly reducing the driver's energy consumption during driving. Point cloud semantic segmentation is the basis for understanding three-dimensional environments. Current point cloud semantic segmentation methods usually perform poorly when objects are rotated, and usually sacrifice operating efficiency in exchange for better segmentation effects. In response to this, this paper proposes a codec architecture GFF-Net to implement point cloud semantic segmentation. In this network, in order to address the problem that the rotation of the object affects the segmentation result, a polar coordinate conversion module (Local Polar Conversion, LPC) is introduced to obtain a geometric space representation that does not change with the rotation of the Z axis. On this basis, a geometric feature fusion module (Geometric feature fusion, GFF) is proposed, so that the network can better supplement the lost information in the downsampling stage.

[0052] Example 1

[0053] In this embodiment 1, a point cloud semantic segmentation system based on geometric feature fusion is first provided, including: a feature extraction module, which is used to perform preliminary feature extraction on the input point cloud data through an MLP layer and a GFF layer; wherein, Point Transformer is used as the backbone network, KNN is used to obtain neighboring points and 4 upsampling layers use linear interpolation to restore the data to the original scale; wherein Point Transformer includes two MLP layers in the input and output stages, 9 Point Transformer layers are used for feature extraction and fusion, and 4 downsampling layers use FPS to obtain key points; a downsampling module is used to input the extracted preliminary features into the downsampling layer; in the downsampling stage, a random sampling method is used to obtain key points, and a KNN method is used to obtain neighboring points near the key points; the downsampling result is input into the GFF module; the GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features, and for the input points, LPC processing is performed on its neighboring points to obtain the relative angle of the neighboring points and the Euclidean distance between the neighboring points and the center point; the relative angle of the neighboring points, the geometric distance between the neighboring points and the center point and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the SharedMLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point; the upsampling module is used to input the local feature information representing the neighborhood of the center point into the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted again through the MLP layer, and the result is input into the last MLP layer to obtain the final segmentation result.

[0054] In this embodiment 1, the above-mentioned system is used to implement a point cloud semantic segmentation method based on geometric feature fusion, including: the input point cloud data is subjected to preliminary feature extraction through an MLP layer and a GFF layer; wherein, PointTransformer is used as the backbone network, KNN is used to obtain neighboring points, and 4 upsampling layers use linear interpolation to restore the data to the original scale; wherein, Point Transformer includes two MLP layers in the input and output stages, 9 PointTransformer layers are used for feature extraction and fusion, and 4 downsampling layers use FPS to obtain key points; the extracted preliminary features are input into the downsampling layer; in the downsampling stage, a random sampling method is used to obtain key points, and a KNN method is used to obtain neighboring points near the key points; the downsampling results are input into the GFF module; the GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features, and for the input points, LPC processing is performed on its neighboring points to obtain the relative angles of the neighboring points and the Euclidean distances between the neighboring points and the center point; the relative angles of the neighboring points, the geometric distances between the neighboring points and the center point, and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the Shared MLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point; the local feature information representing the neighborhood of the center point is input to the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted again through the MLP layer, and the result is input into the last MLP layer to obtain the final segmentation result.

[0055] Specifically, in this embodiment, the point cloud semantic segmentation method based on geometric feature fusion is implemented, and the specific design ideas are as follows:

[0056] Step S1: Point Transformer is used as the backbone network. Point Transformer includes two MLP layers at the input and output stages, 9 Point Transformer layers for feature extraction and fusion, 4 downsampling layers using FPS to obtain key points, using KNN to obtain neighboring points, and 4 upsampling layers using linear interpolation to restore the data to the original scale, such as Figure 1 shown.

[0057] Step S2: Replace the Point Transformer layer adjacent to the first MLP layer and the Point Transformer layer adjacent to the four downsampling layers with the GFF module proposed in this embodiment, and use the random sampling replacement FPS method to obtain key points in the downsampling layer. Replace the four Point Transformer layers adjacent to the upsampling stage with MLP layers such as Figure 1 The network architecture is shown in Figure 2. In this step, the Point Transformer layer is replaced by the GFF module to improve the feature extraction capability, and the Point Transformer layer is subsequently replaced by the MLP layer to save time.

[0058] Step S3: The input point cloud data first passes through an MLP layer and a GFF layer to perform a preliminary feature extraction. The GFF structure is as follows Figure 2 As shown, the detailed introduction of GFF will be given in step S4. The GFF module is used to better extract features, and on the other hand, the rotation robustness of the method is improved by introducing polar coordinates.

[0059] Step S4: The output of step S3 is input into the downsampling layer. In the downsampling stage, we use random sampling method to obtain key points, and use KNN method to obtain neighboring points near key points. The downsampling result is input into the GFF layer. The GFF input is the three-dimensional coordinate information of the point cloud and the corresponding semantic features. The semantic features here may be the RGB features of the original point cloud, or they may be the features after GFF processing in the previous layer. For the input points, LPC processing is performed on the neighboring points to obtain the relative angles of the neighboring points and the Euclidean distances between the neighboring points and the center point. Then the relative angles of the neighboring points, the geometric distances between the neighboring points and the center point, and the feature information of the neighboring points are concatenated to obtain Then It is sent to the PTL (Point Transformer Layer) layer, and finally passes through the Shared MLP layer, that is, the same MLP operation is performed on the feature dimension of each point. After dimensional adjustment, the local feature information representing the neighborhood of the center point can be obtained. The introduction of each layer of GFF is shown below.

[0060] Step S4-1: After random sampling, the center point P is obtained, and the KNN algorithm is used to obtain P i Neighboring points First, p i The neighboring points of are converted from the Cartesian coordinate system to the polar coordinate system, that is, using represents the neighboring point, and the conversion formula is as follows. are the relative coordinates of neighboring points in the Cartesian coordinate system.

[0061]

[0062]

[0063]

[0064] Step S4-2: Calculate p first i The centroid point in the neighborhood The calculation of is based on the method of taking the average of neighboring points, so it is defined Can better reflect p i The overall situation in the local neighborhood. Defined from p i point to is the local direction, used to represent p i and Update the relative angles of neighboring points: and Update to and where δ i and θ i yes It can be seen from formulas (4) and (5) that when the point cloud rotates around the Z axis, and The above is the complete process of LPC. The structure of LPC is as follows: Figure 3 shown.

[0065]

[0066]

[0067] Step S4-3: Use the following formula to perform local feature splicing:

[0068] Indicates neighboring points The Euclidean distance to the key point, Represents a concatenation operation. and is the neighboring point output by the LPC module and p i The relative distance and the converted relative angle

[0069] Step S4-4: Through the output of LPC and the neighboring points The coordinate information is spliced ​​and then passed through the point-by-point MLP to obtain With sufficient spatial characteristics, then and The characteristic information fi k Splice to get

[0070] Through the above operations, for the center point p i A set of neighboring features can be obtained

[0071] Step S4-5: The input part of the PTL (Point Transformer Layer) module in the Point Transformer network is also improved. The improved formula is:

[0072] ω and ξ are two linear layers, γ consists of an MLP and two linear layers, and ρ consists of an MLP and a Soft max layer. It aims to calculate the correlation between the center point and the neighboring points, give the neighboring point features a weight score, and finally fuse the neighboring features through the summation function.

[0073] Step S5: After 4 rounds (4 rounds are a limiting condition. After many experiments, it was found that too few rounds would lead to a significant decrease in the segmentation effect. Too many rounds would only improve the results but would bring higher time costs.) After S4, the output result is input to the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted through the MLP layer.

[0074] Step S6: After 4 rounds (4 rounds are a limiting condition, the reason is the same as S5), the result after S5 is input into the last MLP layer to obtain the final segmentation result.

[0075] Figure 4 Table 1 shows the effect of the method described in this embodiment on the S3DIS dataset (bold indicates the best performance of the current type, and horizontal lines indicate suboptimal performance). Table 2 compares the segmentation performance and segmentation time of this method with other methods on the large-scale outdoor dataset SemanticKITTI, which shows that the method proposed in this embodiment has achieved a relatively good balance between time and performance.

[0076] Table 1

[0077]

[0078] Table 2

[0079]

[0080] Example 2

[0081] This embodiment 2 provides a non-transitory computer-readable storage medium, which is used to store computer instructions. When the computer instructions are executed by a processor, the point cloud semantic segmentation method based on geometric feature fusion as described above is implemented.

[0082] Example 3

[0083] This embodiment 3 provides a computer device, including a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the point cloud semantic segmentation method based on geometric feature fusion as described above.

[0084] Example 4

[0085] This embodiment 4 provides an electronic device, including: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the point cloud semantic segmentation method based on geometric feature fusion as described above.

[0086] In summary, the point cloud semantic segmentation method based on geometric feature fusion described in the embodiment of the present invention uses polar coordinates that are more robust to rotation to replace the Cartesian coordinates of the point cloud data, and introduces a polar coordinate conversion module (Local Polar Conversion, LPC) to obtain a geometric space representation that does not change with the Z-axis rotation. This measure can effectively improve the rotation robustness of the model. In order to improve the real-time performance of the model, random sampling is used in the downsampling stage to save time overhead, but this method will lose some feature information. Therefore, on this basis, a geometric feature fusion module (Geometric feature fusion, GFF) is proposed. By splicing point cloud coordinate information, feature information and angle information, and combining it with the improved Point Transformer Layer based on the Point Transformer network, better segmentation accuracy is achieved.

[0087] The present invention introduces a polar coordinate conversion module to improve the model rotation robustness, and innovatively designs a geometric feature fusion module for feature extraction, achieving a good balance between segmentation performance and segmentation time. The present invention improves the existing model framework to further improve its segmentation efficiency. Inspired by the polar coordinate conversion, the LPC module is introduced to improve the model rotation robustness. In the downsampling stage, a faster random sampling is selected. In order to compensate for the loss of some feature information caused by random sampling, the GFF module is creatively proposed. On the one hand, it can better extract features, and on the other hand, it also fully compensates for the loss of feature information. Influenced by Point Transformer, the Point Transformer Block is introduced, but improvements are also made at the same time, which can more effectively aggregate features and embed them into the GFF module. The efficiency of point cloud semantic segmentation is effectively improved.

[0088] Compared with the current point-based semantic segmentation methods, most of the current methods ignore the impact of object rotation on segmentation performance, and many methods rotate the way of sacrificing segmentation time in exchange for higher segmentation performance, because point cloud semantic segmentation not only has high requirements for segmentation results in real applications, but also often has high requirements for the time consumed by segmentation. This requires that the point cloud semantic segmentation network should consider both segmentation performance and time consumption in the design process. Therefore, some methods with better segmentation performance are often limited in real applications due to time consumption considerations. The present invention introduces a polar coordinate conversion module to alleviate the problem of a significant decrease in segmentation performance due to object rotation. In order to reduce the time required for segmentation while not sacrificing the segmentation performance of the model, the rotation adopts random sampling with less time overhead in the stage of downsampling to obtain key points. Due to the randomness of random sampling, some feature information will inevitably be lost. Therefore, a geometric feature fusion module is proposed in the feature extraction and feature fusion stage and an improved Point Transformer module is added. While compensating for feature information, features can also be extracted and fused well. Through the polar coordinate conversion module and the geometric feature fusion module, a good balance is achieved in segmentation performance and segmentation time.

[0089] The present invention splices key point information, key point neighboring point distance information, neighboring point polar coordinate information and semantic information at the feature stage, making up for the problem of partial feature information loss due to random sampling. Then it is input into the improved Point Transformer module, and the feature extraction and fusion are completed after passing through the MLP layer. Thereby effectively improving the performance of the network. The present invention provides a unique idea in the process of compensating feature information. Other information can also be spliced ​​in the feature compensation stage, but it should be noted that excessive pursuit of feature information will also lead to an increase in segmentation time.

[0090] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0091] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device, and a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.

[0094] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative work on the basis of the technical solution disclosed in the present invention should be included in the scope of protection of the present invention.

Claims

1. A point cloud semantic segmentation method based on geometric feature fusion, characterized in that: include: The input point cloud data is subjected to preliminary feature extraction through an MLP layer and a GFF layer. PointTransformer is used as the backbone network, KNN is used to obtain neighboring points, and four upsampling layers use linear interpolation to restore the data to the original scale. Point Transformer includes two MLP layers at the input and output stages, nine PointTransformer layers for feature extraction and fusion, and four downsampling layers use FPS to obtain key points. The extracted preliminary features are input into the downsampling layer; in the downsampling stage, the key points are obtained by random sampling method, and the neighboring points near the key points are obtained by KNN method; the downsampling results are input into the GFF module; the GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features. For the input points, the neighboring points are processed by LPC to obtain the relative angle of the neighboring points and the Euclidean distance between the neighboring points and the center point; the relative angle of the neighboring points, the geometric distance between the neighboring points and the center point, and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the SharedMLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point; The local feature information representing the neighborhood of the center point is input to the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted through the MLP layer. The result is input to the last MLP layer to obtain the final segmentation result.

2. The point cloud semantic segmentation method based on geometric feature fusion according to claim 1, characterized in that: After random sampling, the center point P is obtained, and the KNN algorithm is used to obtain P i Neighboring points First, p i The neighboring points of are converted from the Cartesian coordinate system to the polar coordinate system, that is, using represents the neighboring points, where is the relative coordinate of the adjacent points in the Cartesian coordinate system. The conversion formula is as follows:

3. The point cloud semantic segmentation method based on geometric feature fusion according to claim 2, characterized in that: Calculate p i The centroid point in the neighborhood The calculation method uses the method of taking the average of neighboring points, and defines from p i point to is the local direction, used to represent p i and Relative angles between adjacent points; Update the relative angles of adjacent points: Will and Update to and where δ i and θ i yes The relative angle of .

4. The point cloud semantic segmentation method based on geometric feature fusion according to claim 3 is characterized in that: The following formula is used for local feature splicing: Indicates neighboring points The Euclidean distance to the key point, Represents a concatenation operation. and It is the neighboring point output by our LPC module and p i The relative distance and the converted relative angle.

5. The point cloud semantic segmentation method based on geometric feature fusion according to claim 4, characterized in that: Through the LPC output and adjacent points The coordinate information is spliced, and then the point-by-point MLP is used to obtain r i k ; r i k With sufficient spatial characteristics, r i k and The characteristic information f i k Splice to get For the center point p i Get a set of neighboring features 6. The point cloud semantic segmentation method based on geometric feature fusion according to claim 5, characterized in that: The input to the PTL module in the Point Transformer network is: Among them, ω and ξ are two linear layers, γ consists of an MLP and two linear layers, and ρ consists of an MLP and a Softmax layer; it aims to calculate the correlation between the center point and the neighboring points, give the neighboring point features a weight score, and finally fuse the neighboring features through the summation function.

7. A point cloud semantic segmentation system based on geometric feature fusion, characterized in that: include: The feature extraction module is used to perform preliminary feature extraction on the input point cloud data through an MLP layer and a GFF layer. Point Transformer is used as the backbone network, KNN is used to obtain neighboring points, and four upsampling layers use linear interpolation to restore the data to the original scale. Point Transformer includes two MLP layers at the input and output stages, nine Point Transformer layers for feature extraction and fusion, and four downsampling layers use FPS to obtain key points. The downsampling module is used to input the extracted preliminary features into the downsampling layer. In the downsampling stage, the key points are obtained by random sampling method, and the neighboring points near the key points are obtained by KNN method. The downsampling results are input into the GFF module. The GFF inputs the three-dimensional coordinate information of the point cloud and the corresponding semantic features. For the input points, the neighboring points are processed by LPC to obtain the relative angles of the neighboring points and the Euclidean distances between the neighboring points and the center point. The relative angles of the neighboring points, the geometric distances between the neighboring points and the center point, and the feature information of the neighboring points are spliced ​​to obtain Then It is sent to the PTL layer and finally passes through the Shared MLP layer, that is, the same MLP operation is performed on the feature dimension of each point, and the dimension is adjusted to obtain the local feature information representing the neighborhood of the center point; The upsampling module is used to input the local feature information representing the neighborhood of the center point into the upsampling layer. The method used for upsampling is linear interpolation. After each upsampling, the dimension is adjusted through the MLP layer, and the result is input into the last MLP layer to obtain the final segmentation result.

8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by the processor, the point cloud semantic segmentation method based on geometric feature fusion as described in any one of claims 1-6 is implemented.

9. A computer device, characterized in that: It includes a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the point cloud semantic segmentation method based on geometric feature fusion as described in any one of claims 1-6.

10. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the point cloud semantic segmentation method based on geometric feature fusion as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Point cloud semantic segmentation method and device, electronic equipment and storage medium

    CN113516663A

  • Indoor mapping method based on single-line laser radar

    CN117011485A

  • Point cloud semantic segmentation model based on local surface distribution and continuous coding and decoding pyramid

    CN117095170A

  • Point cloud segmentation and virtual environment generation method and apparatus based on pointnet network

    WO2022252274A1