A multi-scale feature aggregation point cloud building extraction method integrating attention mechanism

By adopting a fusion attention mechanism multi-scale feature aggregation method with an encoder-decoder structure in point cloud building extraction, the problem of leakage extraction and computational complexity of small low-rise buildings is solved, and accurate extraction and calculation of building point clouds are achieved. More complete extraction results.

CN118644784BActive Publication Date: 2024-10-18SOUTHWEST JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411123705.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-18
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Existing point cloud building extraction methods have the problem of missing small low-rise buildings in large-scale complex scenes, and methods based on deep learning have challenges in computational complexity and parameter quantities, making it difficult to achieve accurate building extraction.

Method used

A multi-scale feature aggregation method using a fused attention mechanism with an encoder-decoder structure is adopted. Through the local feature extraction module based on the residual structure and the boundary point processing module based on enhanced semantic information, combined with the feature aggregation module of global dimension awareness, the point is realized. Accurate extraction and feature aggregation of clouds.

Benefits of technology

It effectively reduces the number of missed extractions of small low-rise buildings, improves the integrity and accuracy of building extraction results, enhances the model's ability to identify multi-category junction point clouds, and improves segmentation performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644784B_ABST
    Figure CN118644784B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for extracting buildings from a point cloud using a multi-scale feature aggregation method integrating an attention mechanism, and relates to the technical field of building extraction. The method is implemented by using an encoder-decoder structure, and the method comprises: extracting local features by using a local feature extraction module based on a residual structure in the encoding stage; processing boundaries by using a boundary point processing module based on enhanced semantic information; aggregating features by using a feature aggregation module based on global dimension perception in the decoding stage, and finally predicting the category of each point through a fully connected layer. The present invention can realize accurate extraction of building point clouds, effectively reduce the number of small and low houses that are missed, and make the building extraction result more complete.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building extraction, and in particular to a multi-scale feature aggregation point cloud building extraction method integrating an attention mechanism. Background Art

[0002] Accurately extracting building point clouds from point clouds essentially belongs to the category of point cloud semantic segmentation. At present, point cloud semantic segmentation methods can be divided into semantic segmentation based on artificial feature design and geometric constraints and semantic segmentation based on deep learning; specifically:

[0003] 1. Semantic segmentation method based on artificial feature design and geometric constraints:

[0004] Semantic methods for obtaining features through artificial feature design and geometric constraints include model fitting-based methods, clustering-based methods, region growing-based methods, etc. Model fitting-based methods are often used to detect planes, cylinders, and spheres, and are suitable for simple shapes, such as the RANSAC algorithm. Clustering-based segmentation methods define a feature vector for each point and cluster points with similar feature vectors into one category, but it requires certain prior knowledge of the point cloud. Clustering methods include K-means clustering, fuzzy clustering, spectral clustering, and many others. Region growing-based methods are suitable for scenes with more planes. Seed point selection and merging criteria are key, and efficiency may decrease when dealing with more outliers.

[0005] Semantic segmentation methods based on artificial feature design and geometric constraints are usually sensitive to noise and density unevenness. They have high computational complexity and low accuracy in large-scale complex scenes. Most segmentation methods also require several post-processing operations after the segmentation results are classified, making it difficult to accurately extract buildings.

[0006] 2. Semantic segmentation method based on deep learning:

[0007] Semantic segmentation methods based on deep learning are divided into projection-based methods, voxel-based methods, and point-based methods.

[0008] The projection-based method maps the 3D structure of the point cloud onto the projection plane, then uses a 2D convolutional model to perform segmentation, and then projects the segmentation result onto the original point cloud to obtain the semantic label of each point. Projecting a 3D object onto a plane and projecting multiple views only approximates the 3D scene, which has great limitations on refined classification tasks. In addition, since it is difficult to select enough appropriate viewpoints for multi-view projection, it is difficult to cover all objects in large-scale point cloud scenes. Therefore, few researchers have used projection-based methods for building extraction tasks in large-scale point cloud scenes.

[0009] The voxel-based method first voxelizes the point cloud at a certain resolution, converts it into a regular three-dimensional grid, and then convolves it in three-dimensional space. Due to the irregularity of the spatial distribution of the point cloud, the density of the point cloud is unequal. If the voxel size is too small, the fineness of the point cloud division can be guaranteed, but the number of voxels will be seriously increased, which greatly increases the calculation and memory overhead; if the size is too large, the fineness will be lost, and it will not be easy to use for applications in refined scenes, and the accuracy will be low. In addition, voxelizing the point cloud loses the geometric structure details of the point cloud, resulting in a decrease in accuracy. The voxel-based method faces the problem of balancing computational efficiency, performance, and storage space occupancy.

[0010] Point-based methods process points directly, retaining the topological relationship between points, and have advantages in accuracy and efficiency. This category can be further divided into graph convolution-based methods, Transformer-based methods, and point-by-point MLP-based methods.

[0011] (1) The graph convolution-based method connects the point cloud into a graph structure, regards each point in the point cloud as a vertex of the graph structure, and formulates a specific point-edge calculation strategy based on the neighborhood points of each point. The pioneering work of this type of method is the graph classification ECC network proposed by Simonovsky et al. In the graph convolution-based method, according to the different ways of processing the point cloud neighborhood, it can be divided into graph convolution based on the spectral domain and graph convolution based on the spatial domain. In the spectral domain graph convolution, typical works include PointGCN network and 3DTI-Net network. In the spatial domain graph convolution, the dynamic graph convolution neural network DGCNN is a typical work. Of the two convolution methods, the graph convolution based on the spatial domain has the advantages of greater flexibility and applicability to more scenarios. The disadvantages of this type of method are complex graph calculation, large number of parameters, and long overall running time.

[0012] (2) The core idea of ​​the Transformer-based method is the self-attention mechanism and feedforward neural network. It can be generally divided into Transformer-based global methods and Transformer-based local methods. Transformer-based global methods focus on learning the long-range dependencies of the entire point cloud. Classic networks such as Point Cloud Transformer (PCT) input neighborhood embedding points into a series of stacked Transformer modules for global feature learning. The main disadvantage of the global Transformer is the high computational cost. The running time of this type of method grows quadratically with the increase in the number of input point clouds. Transformer-based local methods focus on extracting local information of a subset of the target point cloud and then using the window shift strategy to achieve global feature learning. However, this indirect global feature learning method is not conducive to the modeling of Transformer in remote context information. In summary, this type of method is more suitable for small scenes such as semantic segmentation of indoor point clouds. The network overuses Transformer layers, has a large number of parameters, and is very complex to calculate. It is not suitable for large-scale scenes.

[0013] (3) The point-by-point MLP-based method uses shared MLP as the basic structure of the network. Each point in the point cloud shares the same parameters, which has the advantages of simplicity and efficiency. PointNet is a pioneering work, but the network is only composed of stacked MLP layers, and the ability to extract local information is weak. PointNet++ expands PointNet. The network includes a sampling layer, a grouping layer, and a PointNet backbone network, but this method still has certain shortcomings in capturing information such as direction and distance between points. This type of method can be used for large-scale point cloud scenes, but it is easy to ignore the geometric structure and local details of the three-dimensional point cloud. Summary of the invention

[0014] In order to solve the problems existing in the prior art, the purpose of the present invention is to provide a multi-scale feature aggregation point cloud building extraction method integrating the attention mechanism. The present invention can realize the accurate extraction of building point clouds, effectively reduce the number of small and low houses that are missed, and the building extraction results are more complete.

[0015] To achieve the above purpose, the technical solution adopted by the present invention is: a multi-scale feature aggregation point cloud building extraction method integrating attention mechanism, which is implemented by an encoder-decoder structure, and the method comprises the following steps:

[0016] Step 1: In the encoding stage, a local feature extraction module based on residual structure is used to extract local features; a boundary point processing module based on enhanced semantic information is used to process the boundary;

[0017] Step 2: In the decoding stage, a feature aggregation module based on global dimension perception is used to aggregate features, and finally the category of each point is predicted through the fully connected layer.

[0018] As a further improvement of the present invention, in step 1, extracting local features using a local feature extraction module based on a residual structure specifically includes:

[0019] Step (1), searching for local neighborhood points of each point in the point cloud; after determining the local neighborhood of the point cloud, encoding the local spatial position and local feature information of the point cloud;

[0020] Step (2), using the self-attention mechanism to extract local features, and using the pooling block to combine spatial information and color attributes to aggregate the features after self-attention through attention pooling;

[0021] Step (3) uses the residual connection structure to alleviate the gradient disappearance.

[0022] As a further improvement of the present invention, in step (1), a K-nearest neighbor search algorithm is selected, and Euclidean distance is selected as a distance metric to search for local area points.

[0023] As a further improvement of the present invention, in step (1), the local spatial position encoding and local feature information encoding of the point cloud are specifically as follows:

[0024] Select any point in the 3D point cloud and obtain the neighborhood points through the KNN algorithm. The neighborhood points are expressed as , is the number of local neighborhood points, and the local spatial position is encoded as follows: ;

[0025] in, Represents multi-layer MLP convolution calculation, Indicate point The features after spatial position encoding, represents the position coordinates of the i-th point, Indicates splicing, Indicates the center point The coordinates of and its neighboring points Subtract coordinates, Indicates the center point Its neighboring points The Euclidean distance of

[0026] The local feature information of the point cloud is encoded as follows:

[0027] ;

[0028] in, Indicate point The result after feature information encoding, Represents the RGB value of the color of the i-th point, Indicates splicing, Indicates the center point The color attribute of and its neighboring points Subtract the corresponding values ​​of the color attributes. Indicates the center point Its neighboring points The Euclidean distance.

[0029] As a further improvement of the present invention, in step (2), the local features are extracted using a self-attention mechanism as follows:

[0030] ;

[0031] represents the features after self-attention, Indicates the point cloud The characteristics of a point, For the The neighborhood point set of a point, represents the transformed features, represents a trainable transformation; is an MLP with one linear layer, It consists of two linear layers with ReLU activation function. Indicate point Local spatial information encoding and local feature information encoding.

[0032] As a further improvement of the present invention, in step (2), the attention pooling process of aggregating the features after self-attention by using the pooling block in combination with the spatial information and the color attribute is specifically as follows:

[0033] The neighborhood point features after self-attention , local spatial location characteristics of neighborhood points , local feature information Splicing to form combined features ;

[0034] Using shared functions Get the attention weight of the combined features after aggregation. The shared function consists of a shared MLP layer and Softmax. The learnable weights in the shared MLP Assign a unique attention score to each feature, weight and sum these features to get the final aggregated result.

[0035] As a further improvement of the present invention, in step 1, using a boundary point processing module based on enhanced semantic information to process the boundary specifically includes the following steps:

[0036] Step 1: Boundary point screening: define that when there are points with different annotation labels in the neighborhood around a point, the point is considered a boundary point:

[0037] ;

[0038] in, represents the set of boundary points and, represents the center point, represents its neighboring points, represents the set of neighborhood points of the center point, and Represent the labels of the center point and the neighborhood points respectively;

[0039] Step 2: Boundary point processing: traverse each point in the boundary point set, and for a point in the point set , search for points within its neighborhood, and place the center point The labels of the center point are compared with those of the neighboring points. When the label of the center point is consistent with that of its neighboring points, the neighboring point is considered to be similar to the center point and is included in the similar point set. When the label of the center point is different from that of its neighboring points, the neighboring point is considered to be different from the center point and is included in the dissimilar point set.

[0040] As a further improvement of the present invention, in step ②,

[0041] For the neighborhood points in the similar point set, aggregate and splice the center point features , its neighborhood point features And the feature encoding contributed by the surrounding neighborhood points , and then trained through a shared MLP layer to enhance similar information:

[0042] ;

[0043] in, represents the contribution made by the similarity point set, Indicates the number of similar neighbor points;

[0044] For the neighborhood points in the dissimilar point set, the center point features, the difference between the center point features and the neighborhood point features, and the feature encoding of the surrounding neighborhood points are aggregated and spliced, and the shared MLP layer is trained to enhance different information:

[0045] ;

[0046] in, represents the contribution made by dissimilar point sets, Indicates the number of different neighbor points;

[0047] Finally, the contributions of the two branches are summed up, and the most important features are learned through a structure composed of two fully connected layers and a sigmoid function to achieve adaptive feature fusion.

[0048] Finally, the contributions of the two branches are summed up, and the most important features are learned through a structure composed of two fully connected layers and a sigmoid function to achieve adaptive feature fusion.

[0049] As a further improvement of the present invention, the step 2 is specifically as follows:

[0050] Nearest neighbor feature interpolation: In the decoder stage, the high-level abstract features are mapped back to the original point set through the nearest neighbor interpolation upsampling method;

[0051] Cross-level connection and feature fusion: Use cross-level connection of features to retain high-level features, then concatenate high-level semantic features with low-level semantic features in the channel dimension, and then use the SE-Block channel attention mechanism based on SE-Net to establish feature weights at each level in different stages, and finally obtain the aggregated features.

[0052] As a further improvement of the present invention, the nearest neighbor interpolation upsampling method is specifically as follows:

[0053] First, for each point to be upsampled, the nearest neighbor point is searched through Euclidean distance or KD tree to determine the set of nearest neighbor points in its neighborhood; then, for the selected neighborhood point set, new sampling points are generated through interpolation method; and the process is repeated until all the points to be upsampled are processed.

[0054] The beneficial effects of the present invention are:

[0055] In view of the serious problem of small and low buildings being missed in existing point cloud-based building extraction methods, the present invention utilizes a multi-scale feature aggregation network that integrates an attention mechanism, proposes a local feature extraction module based on a residual structure and a boundary point processing module based on enhanced semantic information in the encoder of the network, fully utilizing the original attributes of the point cloud and improving the model's recognition ability for point clouds at the intersection of multiple categories. In the decoder stage of the network, a feature aggregation module based on global dimensional perception is proposed, which increases the information association at different levels of the network and improves the network's ability to understand and utilize semantic information. The network performs feature aggregation of local features and global features at different scales, which enhances the extraction and utilization of network information, thereby improving the segmentation performance of the network; the present invention can achieve accurate extraction of building point clouds, effectively reduce the number of small and low houses that are missed, and make the building extraction results more complete. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 Schematic diagram of the structure of the multi-scale feature aggregation network integrating the attention mechanism in Example 1 of the present invention. DETAILED DESCRIPTION

[0057] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0058] Embodiment 1:

[0059] A multi-scale feature aggregation point cloud building extraction method fused with attention mechanism is adopted. Figure 1 The multi-scale feature aggregation network with fusion attention mechanism shown in the figure is implemented. The overall structure of the network is an encoder-decoder structure. The feature dimensions of each layer of the encoder are [32, 128, 256, 512, 1024], and the feature dimensions of the decoder are [1024, 512, 256, 128, 32]. In addition, a local feature extraction module based on residual structure, a boundary point processing module based on enhanced semantic information, and a feature aggregation module based on global dimension perception are added to the network. Finally, the category of each point is predicted through the fully connected layer. The following introduces each module proposed:

[0060] Module 1: Local feature extraction module based on residual structure. The specific method is as follows:

[0061] 1. Point-based feature encoding:

[0062] The premise of point cloud feature encoding is to search for suitable local neighborhood points. Point clouds are composed of discrete points and do not have a fixed shape and structure. In order to better extract local point cloud features, it is necessary to continuously build neighborhoods. This patent uses the K nearest neighbor search algorithm and selects Euclidean distance as the distance measurement method. The number of neighborhood points k is set to 16. The advantage of this method is that no matter how the point cloud density changes, the neighborhood points are always the k points closest to the center point, which is a density-adaptive neighborhood.

[0063] After determining the point cloud neighborhood, the local spatial position encoding and local feature information encoding of the point cloud are performed. Select any point in the 3D point cloud and obtain the neighborhood points through the KNN algorithm. The neighborhood points can be expressed as , the local spatial position encoding is shown in formula (1).

[0064] ;

[0065] In formula (1), Represents multi-layer MLP convolution calculation, Indicate point Features after spatial position encoding. represents the position coordinates of the i-th point, Indicates splicing, Indicates the center point The coordinates of and its neighboring points Subtract coordinates, Indicates the center point Its neighboring points The Euclidean distance.

[0066] The encoding of local feature information of point cloud is similar to the encoding of local spatial position, and its encoding method is shown in formula (2).

[0067] ;

[0068] In formula (2), Indicate point The result after feature information encoding, Represents the RGB value of the color of the i-th point, Indicates splicing, Indicates the center point The color attribute of and its neighboring points Subtract the corresponding values ​​of the color attributes. Indicates the center point Its neighboring points The Euclidean distance.

[0069] 2. Dual attention mechanism:

[0070] This embodiment uses a dual attention mechanism in the local feature extraction stage. First, a paired self-attention mechanism is used. The experimental formula is shown in (3). In formula (3), represents the features after self-attention, Indicates the point cloud The characteristics of a point, For the The neighborhood point set of a point, represents the transformed features, Represents a trainable transformation. is an MLP with one linear layer, Unlike other training transformations, it also contains two linear layers with ReLU activation function, , Indicate point Local spatial information encoding and local feature information encoding.

[0071] ;

[0072] In addition to the self-attention mechanism, this embodiment also designs an attention pooling block that aggregates the features after self-attention by combining spatial information and color attributes. , local spatial location characteristics of neighborhood points , local feature information , first concatenate the three to form a combined feature . Using shared functions Get the attention weight of the combined features after aggregation. The shared function consists of a shared MLP layer and Softmax. The learnable weights in the shared MLP Assign a unique attention score to each feature, weight and sum these features to get the final aggregated result.

[0073] 3. Residual connection structure:

[0074] When the neighborhood coverage area is too small, the aggregated features have limitations, and the network uses downsampling operations to improve learning efficiency, resulting in more points being eliminated. Therefore, two self-attention mechanisms and two attention pooling are used to aggregate three-dimensional point features in a larger range, expanding the receptive field of the point cloud, and using the residual connection structure to alleviate the gradient vanishing problem.

[0075] Module 2: Boundary point module based on enhanced semantic information. The specific method is as follows:

[0076] 1. Boundary point screening:

[0077] For the point set involved in training, each point has a label. It is defined that when there are points with different annotation labels in the neighborhood around a point, the point is considered to be a boundary point. The formula is shown in (4).

[0078] ;

[0079] In formula (4), represents the set of boundary points and, represents the center point, represents its neighboring points, represents the set of neighborhood points of the center point, and Represent the labels of the center point and the neighborhood points respectively.

[0080] 2. Boundary point processing:

[0081] Specifically, traverse each point in the boundary point set, for a point in the point set , search for points within its neighborhood, and place the center point The labels of the center point are compared with those of the neighboring points. When the label of the center point is consistent with that of its neighboring points, the neighboring point is considered to be similar to the center point and is included in the similar point set. When the label of the center point is different from that of its neighboring points, the neighboring point is considered to be different from the center point and is included in the dissimilar point set.

[0082] For the neighborhood points in the similar point set, aggregate and splice the center point features , its neighborhood point features And the feature encoding contributed by the surrounding neighborhood points , and then train through the shared MLP layer to enhance similar information. The calculation formula is as follows (5). Among them, represents the contribution made by the similarity point set, Indicates the number of similar neighbor points.

[0083] ;

[0084] For the neighborhood points in the dissimilar point set, the center point features, the difference between the center point features and the neighborhood point features, and the feature encoding of the surrounding neighborhood points are aggregated and spliced, and the shared MLP layer is trained to enhance different information. In formula (6), represents the contribution made by dissimilar point sets, Indicates the number of different neighbor points.

[0085] ;

[0086] Finally, the contributions of the two branches are summed up, and the most important features are learned through a structure composed of two fully connected layers and a sigmoid function to achieve adaptive feature fusion.

[0087] Module 3: Feature aggregation module based on global dimension perception:

[0088] 1. Nearest neighbor feature interpolation:

[0089] In the decoder stage, the method to restore the number of point clouds is the nearest neighbor interpolation upsampling method, which maps the high-level abstract features back to the original point set. The main steps of the nearest neighbor interpolation upsampling of the point cloud are as follows:

[0090] First, for each point to be upsampled, search for the nearest neighbor point through Euclidean distance or KD tree to determine the set of nearest neighbor points in its neighborhood; then, for the selected neighborhood point set, generate new sampling points through interpolation method. Repeat the above two steps until all the points to be upsampled have been processed.

[0091] 2. Cross-level connection and feature fusion:

[0092] The number of point clouds is restored after nearest neighbor interpolation upsampling. For the symmetrical structure of the encoder-decoder, the cross-level connection of features is used to retain high-level features, and then the high-level semantic features are spliced ​​with the low-level semantic features in the channel dimension. The SE-Block channel attention mechanism based on SE-Net is used to establish the feature weights of each level at different stages, and finally the aggregated features are obtained.

[0093] Embodiment 2:

[0094] A multi-scale feature aggregation point cloud building extraction method that integrates the attention mechanism proposes a local feature extraction module based on the residual structure, which solves the problem that random sampling in the network encoder stage may lead to the loss of key points and key information, and improves the correlation between point cloud points in the local range of the point cloud, promoting the learning of the local geometric structure of the point cloud.

[0095] Local feature extraction module based on residual structure:

[0096] In this module, each point is firstly encoded with local spatial position and local feature information. In formula (1), Indicate point Features after spatial position encoding. represents the position coordinates of the i-th point, Indicates splicing, Indicates the center point The coordinates of and its neighboring points Subtract coordinates, express Its neighboring points The Euclidean distance.

[0097] ;

[0098] Represents multi-layer MLP convolution calculations. Local spatial position encoding uses both the relative position and Euclidean distance of the point cloud. The relative position between points determines the direction between the neighborhood point and the center point, and the Euclidean distance determines the specific length between the neighborhood point and the center point. The combination of the two helps determine the specific orientation of the neighborhood point, further clarifying the location of the neighborhood point in three-dimensional space, and enabling the network to more effectively learn the local geometric structure and spatial information of the point cloud.

[0099] The local feature information encoding of the point cloud is shown in formula (2). In formula (2), Indicate point The result after feature information encoding, Represents the RGB value of the color of the i-th point, Indicates splicing, Indicates the center point The color attribute of and its neighboring points Subtract the corresponding values ​​of the color attributes. express Its neighboring points The "Euclidean distance" of

[0100] ;

[0101] The color characteristics or intensity attributes of point clouds play an important role. Objects of the same category generally have similar color attributes, so it is necessary to set local feature information encoding. Local spatial position encoding emphasizes the geometric relationship of point clouds, while local feature information encoding emphasizes the color characteristics of the point clouds themselves. Applying local feature information encoding is more helpful to distinguish point clouds with similar position attributes but different colors.

[0102] In addition, the introduction of the dual attention mechanism helps to further learn the feature relationship between the center point and its neighborhood points. This embodiment focuses on processing the local neighborhood of the point cloud, and uses the self-attention mechanism that combines spatial information and color attributes to learn the internal connection of the point cloud within the local neighborhood. The attention pooling block accurately aggregates the features after self-attention again, although common non-parametric symmetric functions such as maximum pooling and mean pooling. They can also be used to aggregate the local information of the points, but simple pooling operations are also prone to losing information, especially for points with similar positions, they often have similar local contextual information, and the attention pooling block can aggregate neighborhood features more finely.

[0103] Finally, the local feature extraction module is embedded in the dilated residual block as a whole. Using two self-attention mechanisms and two pooling operations, the three-dimensional point features in a larger range are aggregated together, which expands the receptive field of the point cloud. The residual connection structure effectively avoids the gradient vanishing problem of the network.

[0104] In order to solve the problem of poor object boundary information extraction in point cloud semantic segmentation, a boundary point processing module based on enhanced semantic information was built. This improved the recognition ability of the network at the junction of multiple categories and helped the network to build a judgment on the category of the boundary area.

[0105] Boundary point module based on enhanced semantic information:

[0106] The boundary problem is a classic problem in two-dimensional image processing, and for point cloud data, the boundary problem still exists. In the intersection area of ​​multi-category point clouds, category misclassification often occurs. For example: in the area adjacent to buildings and trees, it is very easy to misclassify the two types of point clouds. In most previous models, there was no distinction between boundary points and non-boundary points, and all neighborhood points around the center point were treated with the same importance. For point clouds in non-boundary areas, the attribute differences of their local neighborhood point clouds will not be particularly large. Therefore, treating the surrounding neighborhood points with the same importance will not have too much impact. However, for points in the boundary area, there may be multiple categories in its local neighborhood, and neighborhood points of multiple categories interfere with the correct classification of the center point. If the influence weight is treated the same as the points of the same category as the center point, it is obviously unreasonable. The boundary point processing module of this embodiment is divided into two parts:

[0107] The first part is to screen the boundary points and find all the boundary points according to the boundary point determination criteria. The boundary point determination formula is as follows (3):

[0108] ;

[0109] In formula (3), represents the set of boundary points and, represents the center point, represents its neighboring points, represents the set of neighborhood points of the center point, and Represent the labels of the center point and the neighborhood points respectively.

[0110] The second part is boundary point processing. According to different labels, the neighborhood points around the center point are divided into two different sets, namely, dissimilar neighbor point sets and similar neighbor point sets. According to the two processing formulas (4) and (5), the contributions of the two types of neighborhood points to the center point are extracted respectively.

[0111] ;

[0112] In formula (4) and formula (5), represents the center point feature, represents the neighborhood point features, The feature encoding that represents the contribution of the surrounding neighborhood points, represents the contribution made by the similarity point set, Indicates the number of similar neighbor points. represents the contribution made by dissimilar point sets, Indicates the number of different neighbor points. Finally, the contributions of the two different sets are aggregated together, and the feature adaptive fusion mechanism is used to selectively focus on the most relevant parts.

[0113] To address the problem that nearest neighbor interpolation upsampling does not fully utilize semantic information, this paper builds a feature aggregation module based on global dimension perception. The module makes full use of information at each level in the global dimension and improves the information correlation at different levels of the network.

[0114] Feature aggregation module based on global dimension perception:

[0115] When the features are transferred backwards, the high-level abstract features need to be mapped back to the original point set first. This patent uses the nearest neighbor feature interpolation method to restore the number of point clouds, and then concatenates the high-level features corresponding to the encoder stage with the features obtained after the nearest neighbor interpolation. The global perception aggregation module is applied to further filter important features from the channel dimension. Compared with ordinary cross-level connections, this module realizes the effective fusion of deep features and shallow features, makes full use of information at each level from a global dimension, and increases the information association between different levels of the network.

[0116] The above-mentioned embodiments only express the specific implementation of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A multi-scale feature aggregation point cloud building extraction method integrating attention mechanism, It is characterized in that The encoder-decoder structure is adopted to implement the method, and the method comprises the following steps: Step 1: In the encoding stage, a local feature extraction module based on residual structure is used to extract local features; a boundary point processing module based on enhanced semantic information is used to process the boundary; In step 1, extracting local features using a local feature extraction module based on a residual structure specifically includes: Step (1), searching for local neighborhood points of each point in the point cloud; after determining the local neighborhood of the point cloud, encoding the local spatial position and local feature information of the point cloud; Step (2), using the self-attention mechanism to extract local features, and using the pooling block to aggregate the features after self-attention by combining spatial information and color attributes; In step (2), the self-attention mechanism is used to extract local features as follows: Y i represents the feature after self-attention, X i Represents the feature of the i-th point in the point cloud, R i is the neighborhood point set of the i-th point, Y i represents the transformed features, γ, ω, β represent trainable transformations; ω and β are MLPs with one linear layer, γ is an MLP with two linear layers with ReLU activation function, and P i , C i Represents the local spatial information encoding and local feature information encoding of point i; In step (2), the attention pooling process of aggregating the features after self-attention by using the pooling block combined with spatial information and color attributes is as follows: The neighborhood point features Y after self-attention i , the local spatial position feature P of the neighborhood point i , local feature information C i Splicing to form a combined feature F = Y i ⊕P i ⊕C i ; The attention weight of the aggregated combined features is obtained by using the shared function f(·). The shared function consists of a shared MLP layer and Softmax. The learnable weight w in the shared MLP is i Assign a unique attention score to each feature, weight and sum these features to get the final aggregated result; Step (3), using the residual connection structure to alleviate the gradient disappearance; In step 1, the boundary point processing module based on enhanced semantic information is used to process the boundary, which specifically includes the following steps: Step 1: Boundary point screening: define that when there are points with different annotation labels in the neighborhood around a point, the point is considered a boundary point: Among them, B l represents the boundary point set and x i represents the center point, x j represents its neighborhood points, N i represents the neighborhood point set of the center point, l i and l j Represent the labels of the center point and the neighborhood points respectively; Step ②, boundary point processing: traverse each point in the boundary point set, for a certain point i in the point set, search for points in its neighborhood range, compare the label of the center point i with the label of the neighborhood point, when the center point label is consistent with its neighborhood point label, it is considered that the neighborhood point is similar to the center point, and the neighborhood point is included in the similar point set; when the center point label is different from its neighborhood point label, it is considered that the neighborhood point is different from the center point, and the neighborhood point is included in the dissimilar point set; In step ②, For the neighborhood points in the similar point set, aggregate and splice the center point features f C , its neighborhood point features f N The feature encoding f contributed by the surrounding neighborhood points is then trained through a shared MLP layer to enhance similar information: Among them, F s ' represents the contribution made by the similar point set, and M represents the number of similar neighborhood points; For the neighborhood points in the dissimilar point set, the center point features, the difference between the center point features and the neighborhood point features, and the feature encoding of the surrounding neighborhood points are aggregated and spliced, and the shared MLP layer is trained to enhance different information: Among them, F d ' represents the contribution made by dissimilar point sets, and N represents the number of different neighborhood points; Finally, the contributions of the two branches are summed up, and the most important features are learned through a structure composed of two fully connected layers and a sigmoid function to achieve adaptive feature fusion. Step 2: In the decoding stage, a feature aggregation module based on global dimension perception is used to aggregate the features, and finally the category of each point is predicted through the fully connected layer; The step 2 is specifically as follows: Nearest neighbor feature interpolation: In the decoder stage, the high-level abstract features are mapped back to the original point set through the nearest neighbor interpolation upsampling method; Cross-level connection and feature fusion: Use cross-level connection of features to retain high-level features, then concatenate high-level semantic features with low-level semantic features in the channel dimension, and then use the SE-Block channel attention mechanism based on SE-Net to establish feature weights at each level in different stages, and finally obtain the aggregated features.

2. The multi-scale feature aggregation point cloud building extraction method integrating attention mechanism according to claim 1, It is characterized in that In step (1), the K nearest neighbor search algorithm is used, and the Euclidean distance is selected as the distance metric to search for local area points.

3. The multi-scale feature aggregation point cloud building extraction method integrating attention mechanism according to claim 2, It is characterized in that In step (1), the local spatial position encoding and local feature information encoding of the point cloud are specifically as follows: Select any point in the 3D point cloud and obtain the neighborhood points through the KNN algorithm. The neighborhood points are expressed as k is the number of local neighborhood points, and the local spatial position is encoded as follows: Among them, mlps represents multi-layer MLP convolution calculation, P i Represents point p i The feature after spatial position encoding, p i represents the position coordinates of the i-th point, ⊕ represents splicing, represents the center point p i The coordinates of and its neighboring points Subtract coordinates, represents the center point p i Its neighboring points The Euclidean distance of The local feature information of the point cloud is encoded as follows: Among them, C i Represents point p i The result after feature information encoding, f i represents the RGB value of the color of the i-th point, ⊕ represents splicing, represents the center point f i The color attribute of and its neighboring points Subtract the corresponding values ​​of the color attributes. represents the center point f i Its neighboring points The Euclidean distance.

4. The multi-scale feature aggregation point cloud building extraction method integrating attention mechanism according to claim 1, It is characterized in that The nearest neighbor interpolation upsampling method is as follows: First, for each point to be upsampled, the nearest neighbor point is searched through Euclidean distance or KD tree to determine the set of nearest neighbor points in its neighborhood; then, for the selected neighborhood point set, new sampling points are generated through interpolation method; and the process is repeated until all the points to be upsampled are processed.

Citation Information

Patent Citations

  • Building facade semantic segmentation method based on attention fusion global and local depth features

    CN114092697A

  • Noisy plant point cloud semantic segmentation method and system based on self-attention feature fusion

    CN116311218A