LiDAR point cloud semantic segmentation method and system fused with multi-view aviation inclined image
By integrating the LiDAR point cloud semantic segmentation method with multi-view aerial oblique images, using multi-level, multi-scale feature extraction and global joint loss function, the problem of ground object category confusion and misclassification in LiDAR point cloud semantic segmentation is solved, and the semantics are improved. Segmentation accuracy provides more accurate ground object classification results.
Patent Information
- Application Number
- CN202410848135.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing technology is difficult to effectively distinguish point cloud areas with similar arrangement and distribution in LiDAR point cloud semantic segmentation, resulting in confusion of ground object categories. Multi-modal data feature fusion is difficult to focus on key information, making it difficult to improve the misclassification of ground objects.
A LiDAR point cloud semantic segmentation method that integrates multi-view aerial oblique images is adopted. By sampling and geometrically registering the LiDAR point cloud and multi-view aerial oblique images, a parallel semantic segmentation branch is constructed, and multi-level and multi-scale feature extraction is used. The backbone network performs feature fusion and calculates a global joint loss function to update model parameters to enhance LiDAR point cloud features and improve semantic segmentation results.
It effectively improves the accuracy of LiDAR point cloud semantic segmentation, reduces ground object category confusion, and meets the needs of downstream tasks such as large scene understanding and three-dimensional reconstruction. It uses the texture features provided by multi-view aerial oblique images to guide attention to point cloud features. , highlighting key features and improving the accuracy of segmentation results.
Smart Images

Figure CN118747800A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of airborne LiDAR point cloud data processing, and in particular to an airborne LiDAR point cloud semantic segmentation method and system integrating multi-view aerial oblique images. Background Art
[0002] Airborne LiDAR point cloud data is a dense, high-precision set of three-dimensional point coordinates on the surface. Semantic segmentation can assign a corresponding ground object category to any point in the irregular three-dimensional point cloud data. LiDAR point cloud semantic segmentation is crucial for understanding large-scale scenes.
[0003] At present, deep learning methods are widely used in LiDAR point cloud semantic segmentation tasks. Common point cloud semantic segmentation model methods can be divided into single-modal point cloud segmentation models and point cloud segmentation models that integrate multimodal data. Single-modal point cloud segmentation models rely on the spatial features of point clouds to complete segmentation tasks, but it is difficult to distinguish point cloud areas with similar arrangement and distribution, and there are still many confusions in the segmentation results. Some studies tend to fuse multimodal data to optimize the segmentation results of objects, but due to the difficulty of feature fusion between modal data to focus on key information and incomplete feature matching, the misclassification of objects in LiDAR point clouds is difficult to improve. Summary of the invention
[0004] The present invention mainly solves the technical problems existing in the prior art, provides a LiDAR point cloud semantic segmentation method integrating multi-view aerial oblique images, and improves the ground object confusion phenomenon of LiDAR point cloud classification results.
[0005] The above technical problem of the present invention is mainly solved by the following technical solution: A LiDAR point cloud semantic segmentation method integrating multi-view aerial oblique images comprises the following steps: Step 1: Sampling and geometrically registering the two modal data of LiDAR point cloud and multi-view aerial oblique image to obtain LiDAR point cloud and multi-view aerial oblique image samples; Step 2: Construct a LiDAR point cloud semantic segmentation model that integrates multi-view aerial oblique images, including parallel LiDAR point cloud semantic segmentation branches and multi-view aerial oblique image semantic segmentation branches, including the following sub-steps: Step 2.1, the multi-view aerial oblique image semantic segmentation branch specifically includes: constructing a multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the multi-view aerial oblique image, and then obtaining the multi-view aerial oblique image semantic segmentation result through the convolution output layer; the input of the multi-view aerial oblique image feature extraction backbone network is the multi-view aerial oblique image sample; Step 2.2, the LiDAR point cloud semantic segmentation branch specifically includes: constructing a LiDAR point cloud feature extraction backbone network to obtain multi-level and multi-scale features of the LiDAR point cloud, and fusing the multi-scale features extracted by the multi-view aerial oblique image feature extraction backbone network with the multi-scale features of the LiDAR point cloud to enhance the LiDAR point cloud features, and then obtaining the LiDAR point cloud semantic segmentation result through the convolution output layer; the input of the LiDAR point cloud feature extraction backbone network is the LiDAR point cloud sample; Step 3: Calculate the global joint loss function to update the semantic segmentation model parameters; Step 4: Use the trained semantic segmentation model parameters to perform semantic segmentation on the LiDAR point cloud and multi-view aerial oblique image data to be segmented, and map the semantic segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
[0006] Furthermore, the specific implementation of step one includes the following sub-steps: Step 1.1, randomly select a point from the original LiDAR point cloud, and randomly select a certain number of points within a certain rectangular range centered on the point as LiDAR point cloud samples; In step 1.2, the selected LiDAR point cloud samples find the corresponding coordinate set on the original multi-view aerial oblique image according to the central projection relationship, and downsample and crop the original multi-view aerial oblique image to obtain the multi-view aerial oblique image samples.
[0007] Furthermore, in step 1.2, the calculation method of the central projection relationship is as follows: Formula (1) Formula (2) Formula (3) Formula (4) Formula (5) in, represents the rotation matrix, Represents the 3D coordinates of any point in the selected LiDAR point cloud sample, Represents the position coordinates of the camera, is the focal length of the aerial oblique image in the x and y directions, is the pixel coordinate of the principal point of the image, Represents the projected pixel coordinates of the LiDAR point cloud calculated on the image; according to the camera parameters provided by each aerial oblique image, the pixel coordinates of each point in the LiDAR point cloud on the aerial oblique image are determined; If the pixel coordinate set exceeds the range of the current aerial oblique image, skip the aerial oblique image and find other aerial oblique images for calculation to obtain the pixel coordinate set of the image block; crop the original multi-view aerial oblique image to the same size according to the center of the coordinate set, and translate the original coordinates to obtain the coordinates of the LiDAR point cloud on the cropped image. The calculation is shown in equations (6) and (7): Formula (6) Formula (7) in, and Indicates the maximum and minimum pixel coordinates of the point cloud projection pixels on the current image, from which the image point coordinates corresponding to the center of the LiDAR point cloud data block are calculated ; The new coordinates of the LiDAR point cloud data block on the cropped image From the original coordinates Calculated, where and Represents the number of pixels in the x and y directions of the cropped image.
[0008] Furthermore, the multi-view aerial oblique image feature backbone network adopts a U-shaped structure, uses a 2×2 pooling operation to downsample the aerial oblique image samples layer by layer, retains multi-scale image features, and fuses them with the upsampled image features through jump connections to effectively transmit multi-level texture information; the Swin-Transformer structure is added to the upsampling and downsampling, and a 5×5 convolutional layer is also added to the upsampling.
[0009] Furthermore, the LiDAR point cloud feature extraction backbone network adopts a U-shaped structure. The downsampling stage uses the random sampling method of RandLANet to improve the efficiency of point cloud feature extraction. At the same time, the point cloud features are enhanced according to the point cloud neighborhood spatial relationship encoding and self-attention feature encoding. In the upsampling stage, the LiDAR point cloud features are enhanced by fusing multi-level image features, including perspective-based multi-view aerial oblique image feature aggregation, and image-guided multimodal feature fusion.
[0010] Furthermore, the specific implementation of multi-view aerial image feature aggregation based on perspective is as follows: First, according to the normal of the aerial oblique image Normals with LiDAR point cloud , calculate the cosine of the angle between the two , using it as the authenticity weight of the aerial oblique image texture, and then multi-viewing the pixel features of the aerial oblique image The weighted sum with the weight value is used to obtain the global feature, and Subtract the global feature to get the optimized pixel feature , calculated as follows: Formula (8) Optimized K pixel features Connect in the channel dimension , then construct the channel attention structure and the spatial attention structure to reduce the redundant information in the multi-view image features, where K represents the number of multi-view aerial oblique images, N represents the number of point cloud samples, corresponding to the pixels of the image, and C is the number of channels of the image corresponding to the pixel features; the calculation of the channel attention structure is shown in the following formula: Formula (9) Among them, the salient features of the image features With global features Depend on The maximum pooling and average pooling are performed in the spatial dimension respectively. The MLP layer plays the role of re-encoding the features. Represents the sigmoid function; Next, the features after channel attention optimization Processing is performed and the maximum value is calculated on its channel dimension With the average , after concatenating in the channel dimension, a convolutional layer is used for encoding, and then a sigmoid activation function is used to obtain the spatial attention score, which is consistent with the feature Multiply to get optimized features , highlighting the significant areas in the input features and reducing the influence of irrelevant areas. The process is shown in the following formula: Formula (10) in, Indicates a connection operation. Represents the convolution layer; finally, a one-dimensional convolution layer is used to reduce the image features after two attention optimizations The channel dimension of the output is the aggregated multi-view image features .
[0011] Furthermore, the specific implementation of image-guided multimodal feature fusion is as follows: For the aggregated pixel features , the number of feature channels is , calculate the maximum value in the channel dimension and average , which is used to express the significant information and global information reflected by the pixels corresponding to N points in the image block; then the maximum value and the average value are connected, the convolution layer is used to re-encode the pixel features, and the sigmoid function is constructed to obtain the texture weight distribution map corresponding to N points , as shown below: Formula (11) in, Indicates a connection operation. Represents the convolutional layer; texture weight distribution map Then the number of channels extracted from the LiDAR point cloud feature extraction backbone network is Spatial features of LiDAR point cloud Perform weighted calculation and output optimized point cloud features; in order to retain the original LiDAR point cloud spatial features, connect them with the weighted LiDAR features to obtain the initial fused LiDAR point cloud features , as shown below: Formula (12) The bottleneck structure is further used to aggregate features, which are then added to the initially fused LiDAR point cloud features to obtain the output features. , as shown below: Formula (13) Among them, F() and G() are convolution blocks in the bottleneck structure. F() consists of a 1×1 convolution layer, a batchnorm layer, and a sigmoid layer, and G(x) consists of a 3×1 convolution layer, a batchnorm layer, and a sigmoid layer.
[0012] Furthermore, the overall global joint loss function is as follows:
[0013] Formula (14) in , Represents two modal inputs, Represents the probability distribution graph of the category, and represents the weight used to calculate the loss of the image segmentation task, Represent the cross entropy loss and dice loss respectively, represents the KL divergence loss.
[0014] Furthermore, the KL divergence loss is defined as follows: Formula (17) KL divergence loss is used to calculate the difference between the point cloud category probability distribution and the image probability distribution, where Represents the category probability distribution map of the point cloud, Represents the category probability distribution map of the pixels corresponding to the point cloud on the image; When using multi-view oblique images to extract features, the category probability distribution maps of different viewing angles can be obtained. Since the KL divergence can only be calculated using the predicted distribution probability maps of the same size, the most likely predicted probability distribution is selected to calculate the KL divergence, as shown in formula (18): Formula (18) in, represents the pixel distribution probability corresponding to point cloud i, Refers to the distribution probability of the point on the multi-view aerial oblique image, Indicates the predicted category of the point on any image in the multi-view oblique image. Represents the count of the predicted value. The argmax function is used to obtain the distribution probability of the pixel represented by the most frequent occurrence in the predicted value. The image index with the highest correlation is obtained by selecting the most likely predicted category, and the category distribution probability of the corresponding pixel of the image is obtained to participate in the loss calculation. That is, Substituting (17) Participate in loss calculation.
[0015] The present invention also provides a LiDAR point cloud semantic segmentation system integrating multi-view aerial oblique images, comprising the following modules: The sample acquisition module is used to sample and geometrically register the two modal data of LiDAR point cloud and multi-view aerial oblique image to obtain LiDAR point cloud and multi-view aerial oblique image samples; The semantic segmentation model building module is used to build a LiDAR point cloud semantic segmentation model that integrates multi-view aerial oblique images. It includes parallel LiDAR point cloud semantic segmentation branches and multi-view aerial oblique image semantic segmentation branches, specifically including: The multi-view aerial oblique image semantic segmentation branch submodule is used to construct a multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the multi-view aerial oblique image, and then obtain the multi-view aerial oblique image semantic segmentation results through the convolution output layer; the input of the multi-view aerial oblique image feature extraction backbone network is the multi-view aerial oblique image samples; The LiDAR point cloud semantic segmentation branch submodule is used to build a LiDAR point cloud feature extraction backbone network to obtain multi-level and multi-scale features of the LiDAR point cloud, and fuse the multi-scale features extracted by the multi-view aerial oblique image feature extraction backbone network with the multi-scale features of the LiDAR point cloud to enhance the LiDAR point cloud features, and then obtain the LiDAR point cloud semantic segmentation results through the convolution output layer; the input of the LiDAR point cloud feature extraction backbone network is the LiDAR point cloud sample; Model training module, used to calculate the global joint loss function and update the semantic segmentation model parameters; The segmentation result output module is used to perform semantic segmentation on the LiDAR point cloud and multi-view aerial oblique image data to be segmented using the trained semantic segmentation model parameters, and map the semantic segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
[0016] The present invention proposes a semantic segmentation method for LiDAR point cloud fused with multi-view aerial oblique images, extracts multi-scale texture features and spatial features from multi-view aerial oblique images and LiDAR point clouds, and constructs a multimodal data fusion module on this basis. The strongly correlated texture features obtained by aggregating multi-view aerial oblique images are used to guide the attention of LiDAR point cloud features, highlight the key features in the LiDAR point cloud, effectively improve the semantic segmentation accuracy of LiDAR point clouds, and meet the needs of downstream tasks such as large scene understanding and three-dimensional reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Schematic diagram of the structure of the semantic segmentation model in an embodiment of the present invention.
[0018] Figure 2 It is a schematic diagram of the branch structure of multi-view aerial oblique image semantic segmentation in an embodiment of the present invention.
[0019] Figure 3 It is a schematic diagram of the LiDAR point cloud semantic segmentation branch structure in an embodiment of the present invention.
[0020] Figure 4 It is a schematic diagram of the correspondence between LiDAR point cloud and multi-view aerial oblique image in an embodiment of the present invention.
[0021] Figure 5 Schematic diagram of multi-view aerial oblique image feature aggregation based on viewing angle in an embodiment of the present invention.
[0022] Figure 6 Schematic diagram of multimodal feature fusion guided by aggregated multi-view aerial oblique image features in an embodiment of the present invention.
[0023] Figure 7 is a schematic diagram comparing the LiDAR point cloud segmentation results of various models in the embodiment of the present invention, where different colors represent different types of objects. DETAILED DESCRIPTION
[0024] The technical solution of the present invention is further specifically described below in conjunction with the accompanying drawings and embodiments.
[0025] The embodiment of the present invention proposes a semantic segmentation method of LiDAR point cloud fused with multi-view aerial oblique images, performs feature extraction of multi-view aerial oblique images and LiDAR point cloud data at multiple levels, and uses the aggregated multi-view image features to guide the attention of point cloud features in the stage of fusion of the two data features, so as to highlight the key features in the point cloud. In addition, the designed global joint loss function takes into account the similarity loss of strongly correlated pixel label prediction values and point cloud label prediction values in multiple images, reduces the interference of mismatching between different modal features on model training, and ensures the segmentation accuracy and reliability of ground object point cloud. The overall structure of the model is shown in Figure 1 .
[0026] The data of the embodiment is obtained by CityMapper. The image sensor unit of the device is composed of 6 150M pixel scalable aerial cameras, which can collect oblique aerial images of five viewing angles (front, left, right, rear, and downward), and the resolution of the downward image can reach 5cm. Each collected aerial image consists of 14192*10640 pixels, and the pixel size is 3.76μm. In addition to the image sensor, the device is also equipped with an all-terrain laser radar, which can obtain a large amount of point cloud data, and the sampling density of the point cloud is about 39 / square meter.
[0027] The embodiment provides a method for semantic segmentation of LiDAR point cloud fused with aerial images, comprising the following steps: Step 1: Sample and geometrically register the LiDAR point cloud and multi-view aerial oblique image to obtain the LiDAR point cloud and multi-view aerial oblique image samples required by the model. This includes random sampling of the LiDAR point cloud based on samples of a set size area, downsampling of the original multi-view aerial oblique image, and registration of the LiDAR point cloud and multi-view aerial oblique image pixels based on camera parameters.
[0028] The sampling and geometric registration of the LiDAR point cloud and the multi-view aerial oblique image in step 1 include the following steps: Step 1.1, randomly select a point from the original LiDAR point cloud, and randomly select a certain number of points within a certain rectangular range centered on the point as LiDAR point cloud samples; In step 1.2, the selected LiDAR point cloud samples find the corresponding coordinate set on the original multi-view aerial oblique image according to the central projection relationship, and downsample and crop the original multi-view aerial oblique image to obtain the multi-view aerial oblique image samples.
[0029] In the embodiment, step 1 is implemented as follows: After randomly selecting a point in the original LiDAR point cloud, a search is performed in a rectangular area with a radius of 10m. The sample capacity of the LiDAR point cloud is 4096. If the number of points in the current area is less than 4096, the points in the area are repeatedly sampled.
[0030] After the LiDAR point cloud sampling is completed, the corresponding pixel coordinate set of the point cloud on each original multi-view aerial oblique image is calculated according to the central projection relationship, as shown below: Formula (1) Formula (2) Formula (3) Formula (4) Formula (5) in, represents the rotation matrix, Represents the 3D coordinates of any point in the selected LiDAR point cloud sample, Represents the position coordinates of the camera, is the focal length of the aerial oblique image in the x and y directions, is the pixel coordinate of the principal point of the image, Indicates the projected pixel coordinates of the LiDAR point cloud calculated on the image. Based on the camera parameters provided by each aerial oblique image, the pixel coordinates of each point in the LiDAR point cloud on the aerial oblique image can be determined.
[0031] The registration process of multi-view aerial oblique images and LiDAR point cloud data is as follows: first, the LiDAR point cloud data is sampled into several data blocks with the same number of points, and the pixel coordinate set of the corresponding image block is found on the multi-view aerial oblique image according to equations (1) to (5). If the image coordinate set exceeds the range of the current aerial oblique image, the aerial oblique image is skipped, and other aerial oblique images are found for calculation to obtain the image block pixel coordinate set. Since the input image of the image feature extraction network requires the same size, it is necessary to crop the original multi-view aerial oblique image to the same size according to the center of the coordinate set, and translate the original coordinates to obtain the coordinates of the LiDAR point cloud on the cropped image, as shown in equations (6) and (7).
[0032] Formula (6) Formula (7) in, and Indicates the maximum and minimum pixel coordinates of the point cloud projection pixels on the current image, from which the image point coordinates corresponding to the center of the LiDAR point cloud data block can be calculated The new coordinates of the LiDAR point cloud data block on the cropped image The original coordinates can be Calculated, where and Represents the number of pixels of the cropped image in the x and y directions. For the correspondence between LiDAR point cloud and multi-view aerial oblique image, see Figure 4 .
[0033] Step 2: Build a parallel LiDAR point cloud and multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the two modal data and extract unique information of each modality; like Figure 2 and Figure 3 As shown, the step 2 of constructing a parallel LiDAR point cloud and multi-view aerial oblique image feature extraction backbone network includes the following steps: In order to make full use of texture information at different scales, the multi-view aerial oblique image feature backbone network adopts a U-shaped structure, uses a 2×2 pooling operation to downsample the aerial oblique image samples layer by layer, retains multi-scale image features, and fuses them with the upsampled image features through jump connections, effectively transmitting multi-level texture information. On this basis, the Swin-Transformer structure is also added to the upsampling and downsampling of the multi-view aerial oblique image feature extraction backbone network. The internal communication of image features is strengthened through the window self-attention structure and the moving window self-attention structure, and the extraction of local image information and contextual information is strengthened. A 5×5 convolution layer is added to each upsampling layer of the image feature, and the image features after block processing (obtained by the Swin-Transformer structure) are smoothed to output the pixel features of the multi-view aerial oblique image. In this embodiment, 4 upsampling and downsampling processes are performed.
[0034] In order to make full use of the spatial information reflected by the LiDAR point cloud at different scales, the LiDAR point cloud feature extraction backbone network also adopts a U-shaped structure. The input is the LiDAR point cloud sample. The downsampling stage uses the random sampling method of RandLANet to improve the efficiency of point cloud feature extraction. At the same time, the point cloud features are enhanced according to the point cloud neighborhood spatial relationship encoding and self-attention feature encoding. The upsampling stage realizes the enhancement of LiDAR point cloud features by fusing multi-level image features. In this embodiment, four upsampling and downsampling processes are performed.
[0035] In the embodiment, batchsize is 4, the maximum number of iterations is 32, the LiDAR point cloud backbone network optimizer selects Adam, the learning rate is 0.01, the multi-view aerial oblique image backbone network optimizer selects SGD, the learning rate is 0.05, weight_decay is 0.0001, and momentum is set to 0.9. The two modal data contain three identical ground object category labels: buildings, impervious surfaces, and land vegetation. The downsampling ratio in the LiDAR point cloud feature extraction backbone network is set to [4,4,2,2,2]. The input image size is 224×224 pixels, the window segmentation size of Swin-Transformer is set to 7 pixels, and the number of multi-head attention dimensions is set to [3,6,12,24].
[0036] Step 3: Perform multi-scale feature fusion of multi-view aerial oblique images and LiDAR point clouds, including perspective-based multi-view aerial oblique image feature aggregation and image-guided multi-modal feature fusion, to highlight key information in point cloud features.
[0037] The multi-scale feature fusion of multi-view aerial oblique images and LiDAR point clouds in step 3 includes the following steps: Step 3.1: Build a multi-view aerial oblique image feature aggregation module based on perspective, and calculate the aggregated multi-view aerial oblique image features. The overall process is shown in Figure 5 When photographing a ground object from the front, the normal of the ground object is almost consistent with the normal direction of the image. Therefore, the smaller the angle between the normal of the aerial oblique image and the normal of the target point, the more comprehensive the object texture it contains, and the greater the correlation between the two modalities of the aerial oblique image and the LiDAR point cloud. First, according to the normal of the aerial oblique image, Normals with LiDAR point cloud , calculate the cosine of the angle between the two , using it as the authenticity weight of the aerial oblique image texture, and then multi-viewing the pixel features of the aerial oblique image The weighted sum with the weight value is used to obtain the global feature, and Subtract the global feature to get the optimized pixel feature , calculated as follows: Formula (8) Afterwards, the optimized K pixel features Connecting in the channel dimension, we get , then construct the channel attention structure and the spatial attention structure to reduce the redundant information in the multi-view image features, where K represents the number of multi-view aerial oblique images, N represents the number of point cloud samples, corresponding to the pixels of the image, and C is the number of channels of the image corresponding to the pixel features. The calculation of the channel attention structure is shown in formula (9): Formula (9) Among them, the salient features of the image features With global features Depend on The maximum pooling and average pooling are performed in the spatial dimension respectively. The multi-layer perceptron MLP layer plays the role of re-encoding the features. Represents the sigmoid function, which is used to calculate the weight score.
[0038] Features after channel attention optimization Processing is performed and the maximum value is calculated on its channel dimension With the average , after concatenating in the channel dimension, a convolutional layer is used for encoding, and then a sigmoid activation function is used to obtain the spatial attention score, which is consistent with the feature Multiply to get optimized features , highlighting the significant areas in the input features and reducing the influence of irrelevant areas. The process is shown in formula (10).
[0039] Formula (10) in, Indicates a connection operation. Represents the convolution layer. Finally, a one-dimensional convolution layer is used to reduce the image features after two attention optimizations. The channel dimension of the output is the aggregated multi-view image features .
[0040] Step 3.2, use the aggregated image features for encoding, use them as weight distribution and perform weighted calculation with the corresponding LiDAR point cloud features, highlight the key information in the LiDAR point cloud features, and realize the fusion of image features and point cloud features. This process is referred to Figure 6 .
[0041] For the aggregated pixel features , which is the multi-view image feature after output aggregation , the number of feature channels is , calculate the maximum value in the channel dimension and average , which is used to express the significant information and global information reflected by the pixels corresponding to the N points in the image block. Then the maximum value and the average value are connected, the pixel features are re-encoded using the convolution layer, and the sigmoid function is constructed. Through a series of operations, the texture weight distribution map corresponding to the N points is obtained. , as shown in formula (11): Formula (11) in, Represents a connection operation. Texture weight distribution map Then the number of channels extracted from the point cloud backbone network is Spatial features of LiDAR point cloud Perform weighted calculations and output optimized point cloud features. In order to retain the original LiDAR point cloud spatial features, connect them with the weighted LiDAR features to obtain the initial fused LiDAR point cloud features. , as shown in formula (12): Formula (12) Since the connection between the original LiDAR point cloud features and the weighted LiDAR point cloud features will generate redundant information, this module further uses the bottleneck structure to further aggregate features. The bottleneck module consists of two consecutive convolution blocks F(x) and G(x). F(x) consists of a 1×1 convolution layer, a batchnorm layer, and a sigmoid layer. G(x) has a similar structure but uses a 3×1 convolution kernel. The aggregated features are then added to the initially fused LiDAR point cloud features to obtain the output features. , as shown in formula (13). Formula (13) This feature is compressed in dimension through the convolution layer in the upsampling layer of the LiDAR point cloud feature extraction backbone network. The model transfers key information in multimodal data through layer-by-layer upsampling.
[0042] Step 4: Finally, by adding a convolutional output layer after the LiDAR point cloud and multi-view aerial oblique image feature extraction backbone network, the LiDAR point cloud semantic segmentation results and the multi-view aerial oblique image semantic segmentation results are obtained; The semantic segmentation result of multi-view aerial oblique imagery is the predicted value of the semantic category of each pixel in the image.
[0043] The semantic segmentation result corresponding to a single LiDAR point cloud sample is the predicted value of the semantic category of each point.
[0044] In step 5, the similarity between the strongly correlated classification results of the LiDAR point cloud and the multi-view aerial oblique image is calculated as the loss function of the model, which is used to update the model parameters and strengthen the constraints between the two models.
[0045] The loss function of the LiDAR point cloud semantic segmentation model (i.e., the overall model formed by steps 2-4) proposed in the present invention that integrates multi-view aerial oblique images is as shown in formula (14):
[0046] Formula (14) in , Represents two modal inputs, Represents the probability distribution graph of the category, and Represents the weights used to calculate the loss of the image segmentation task, which are set to 0.6 and 0.4 respectively. Represent the cross entropy loss and dice loss respectively, represents the KL divergence loss.
[0047] For the segmentation results of a single modality, the cross entropy loss is mainly used to optimize the parameters. The cross entropy loss is a measure of the difference between the predicted probability distribution and the target, and its definition is shown in formula (15): Formula (15) in Represents the number of point clouds or pixels, Indicates the number of categories for segmentation. Represents the predicted probability of the segmentation result. For images, the cross entropy It is a symbolic function. If the true label of each pixel is equal to the current category, it takes 1, otherwise it takes 0. For point clouds, if the true label of each point cloud is equal to the current category, Take 1, otherwise take 0.
[0048] In addition, in order to better optimize the image model, this model applies DiceLoss to the loss metric of the multi-view aerial oblique image segmentation branch. The loss calculation definition for a single category is as follows: Formula (16) in Indicates the number of pixels, represents the segmentation probability of the current category, is a symbolic function, indicating whether the label of the current pixel is equal to the true label. is a constant used to avoid extreme values in the calculation process.
[0049] In addition to the cross entropy loss in unimodal tasks With dice loss In addition, the joint loss function further considers the similarity between the segmentation results of the two modalities and uses the Kullback-Leibler divergence for further optimization, which is defined as follows: Formula (17) KL divergence loss is used to calculate the difference between the point cloud category probability distribution and the image probability distribution, where Represents the point cloud category probability distribution map, Represents the probability distribution map of pixel categories corresponding to the point cloud on the image. In the calculation of the loss function, the model considers the probability distribution map of pixel segmentation categories corresponding to the point cloud as a soft target. By calculating the probability distribution difference between the image and LiDAR point cloud object segmentation results at the same location, the KL divergence can more strictly constrain the segmentation results to achieve error correction.
[0050] When using multi-view oblique images to extract features, the category probability distribution maps of different viewing angles can be obtained. Since KL divergence can only be calculated using predicted distribution probability maps of the same size, the most likely predicted probability distribution is selected to calculate KL divergence, as shown in formula (18): Formula (18) in, represents the pixel distribution probability corresponding to point cloud i, Refers to the distribution probability of the point on the multi-view oblique image, Indicates the predicted category of the point on any image in the multi-view oblique image. Represents the count of the predicted value. The argmax function is used to obtain the distribution probability of the pixel represented by the most frequent occurrence in the predicted value. The image index with the highest correlation is obtained by selecting the most likely predicted category, and the category distribution probability of the corresponding pixel of the image is obtained to participate in the loss calculation. That is, Substituting (17) Participate in loss calculation.
[0051] During specific implementation, extreme values may appear in the probability distribution of the segmentation results of the two modal data. In the embodiment, the probability distribution results need to be normalized using a sigmoid function to ensure that the KL divergence can be calculated normally.
[0052] Step 6: Use the trained model parameters to perform semantic segmentation on the input LiDAR point cloud and multi-view aerial oblique image data, and map the segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
[0053] Similar to the training process, the LiDAR point cloud to be segmented and the multi-view aerial oblique image samples are sorted, and semantic segmentation is performed using the trained model parameters. In this process, batchsize can be set to 1. The capacity of the LiDAR point cloud sample and the sample size of the corresponding multi-view aerial oblique image are consistent with the training process, which are 4096 points and 224×224 pixels respectively. The segmentation result of each LiDAR point cloud sample is mapped to the original LiDAR point cloud according to the index relationship. The final segmentation result of each point is determined by the maximum number of times the segmentation result of the point appears on each sample.
[0054] The embodiment of the present invention also provides a LiDAR point cloud semantic segmentation system integrating multi-view aerial oblique images, comprising the following modules: The sample acquisition module is used to sample and geometrically register the two modal data of LiDAR point cloud and multi-view aerial oblique image to obtain LiDAR point cloud and multi-view aerial oblique image samples; The semantic segmentation model building module is used to build a LiDAR point cloud semantic segmentation model that integrates multi-view aerial oblique images. It includes parallel LiDAR point cloud semantic segmentation branches and multi-view aerial oblique image semantic segmentation branches, specifically including: The multi-view aerial oblique image semantic segmentation branch submodule is used to construct a multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the multi-view aerial oblique image, and then obtain the multi-view aerial oblique image semantic segmentation results through the convolution output layer; the input of the multi-view aerial oblique image feature extraction backbone network is the multi-view aerial oblique image samples; The LiDAR point cloud semantic segmentation branch submodule is used to build a LiDAR point cloud feature extraction backbone network to obtain multi-level and multi-scale features of the LiDAR point cloud, and fuse the multi-scale features extracted by the multi-view aerial oblique image feature extraction backbone network with the multi-scale features of the LiDAR point cloud to enhance the LiDAR point cloud features, and then obtain the LiDAR point cloud semantic segmentation results through the convolution output layer; the input of the LiDAR point cloud feature extraction backbone network is the LiDAR point cloud sample; Model training module, used to calculate the global joint loss function and update the semantic segmentation model parameters; The segmentation result output module is used to perform semantic segmentation on the LiDAR point cloud and multi-view aerial oblique image data to be segmented using the trained semantic segmentation model parameters, and map the semantic segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
[0055] In order to better illustrate the semantic segmentation effect of the present invention, the performance of the point cloud semantic segmentation model of the existing multimodal data is compared, and the results are shown in Table 1. The comparison shows that the semantic results of the method of the present invention are relatively better. The comparison diagram of the segmentation results of the LiDAR point cloud of various models can be seen in Figure 7 .
[0056] Table 1 Comparison of LiDAR point cloud semantic segmentation accuracy of each model (unit: %)
[0057] Therefore, the present invention has the following advantages: in the LiDAR point cloud semantic segmentation task, not only the spatial characteristics of the point cloud are taken into account, but also the optimization effect of the strongly correlated texture features provided by multi-view aerial oblique images on the point cloud features is taken into account, which provides rich contextual information for the LiDAR point cloud, effectively improves the confusion phenomenon in the LiDAR point cloud semantic segmentation results, and improves the semantic segmentation accuracy of the LiDAR point cloud.
[0058] In specific implementation, the method proposed in the technical solution of the present invention can be implemented by technical personnel in this field using computer software technology to realize automatic operation process. System devices for implementing the method, such as computer-readable storage media storing the corresponding computer program of the technical solution of the present invention and computer equipment running the corresponding computer program, should also be within the scope of protection of the present invention.
[0059] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A LiDAR point cloud semantic segmentation method integrating multi-view aerial oblique images, characterized in that: The following steps are involved: Step 1: Sampling and geometrically registering the two modal data of LiDAR point cloud and multi-view aerial oblique image to obtain LiDAR point cloud and multi-view aerial oblique image samples; Step 2: Build a LiDAR point cloud semantic segmentation model that integrates multi-view aerial oblique images, including parallel LiDAR point cloud semantic segmentation branches and multi-view aerial oblique image semantic segmentation branches, specifically including the following sub-steps: Step 2.1, the multi-view aerial oblique image semantic segmentation branch specifically includes: constructing a multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the multi-view aerial oblique image, and then obtaining the multi-view aerial oblique image semantic segmentation result through the convolution output layer; the input of the multi-view aerial oblique image feature extraction backbone network is the multi-view aerial oblique image sample; Step 2.2, the LiDAR point cloud semantic segmentation branch specifically includes: constructing a LiDAR point cloud feature extraction backbone network to obtain multi-level and multi-scale features of the LiDAR point cloud, and fusing the multi-scale features extracted by the multi-view aerial oblique image feature extraction backbone network with the multi-scale features of the LiDAR point cloud to enhance the LiDAR point cloud features, and then obtaining the LiDAR point cloud semantic segmentation result through the convolution output layer; the input of the LiDAR point cloud feature extraction backbone network is the LiDAR point cloud sample; Step 3: Calculate the global joint loss function to update the semantic segmentation model parameters; Step 4: Use the trained semantic segmentation model parameters to perform semantic segmentation on the LiDAR point cloud and multi-view aerial oblique image data to be segmented, and map the semantic segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
2. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 1, characterized in that: The specific implementation of step one includes the following sub-steps: Step 1.1, randomly select a point from the original LiDAR point cloud, and randomly select a certain number of points within a certain rectangular range centered on the point as LiDAR point cloud samples; In step 1.2, the selected LiDAR point cloud samples find the corresponding coordinate set on the original multi-view aerial oblique image according to the central projection relationship, and downsample and crop the original multi-view aerial oblique image to obtain the multi-view aerial oblique image samples.
3. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 2, characterized in that: In step 1.2, the calculation method of the central projection relationship is as follows: Formula (1) Formula (2) Formula (3) Formula (4) Formula (5) in, represents the rotation matrix, Represents the 3D coordinates of any point in the selected LiDAR point cloud sample, Represents the position coordinates of the camera, is the focal length of the aerial oblique image in the x and y directions, is the pixel coordinate of the principal point of the image, Represents the projected pixel coordinates of the LiDAR point cloud calculated on the image; according to the camera parameters provided by each aerial oblique image, the pixel coordinates of each point in the LiDAR point cloud on the aerial oblique image are determined; If the pixel coordinate set exceeds the range of the current aerial oblique image, skip the aerial oblique image and find other aerial oblique images for calculation to obtain the pixel coordinate set of the image block; crop the original multi-view aerial oblique image to the same size according to the center of the coordinate set, and translate the original coordinates to obtain the coordinates of the LiDAR point cloud on the cropped image. The calculation is shown in equations (6) and (7): Formula (6) Formula (7) in, and Indicates the maximum and minimum pixel coordinates of the point cloud projection pixels on the current image, from which the image point coordinates corresponding to the center of the LiDAR point cloud data block are calculated ; The new coordinates of the LiDAR point cloud data block on the cropped image From the original coordinates Calculated, where and Represents the number of pixels in the x and y directions of the cropped image.
4. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 1, characterized in that: The multi-view aerial oblique image feature backbone network adopts a U-shaped structure, uses a 2×2 pooling operation to downsample the aerial oblique image samples layer by layer, retains multi-scale image features, and fuses them with the upsampled image features through skip connections to effectively transmit multi-level texture information; the Swin-Transformer structure is added in the upsampling and downsampling, and a 5×5 convolutional layer is also added in the upsampling.
5. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 1, characterized in that: The backbone network for LiDAR point cloud feature extraction adopts a U-shaped structure. In the downsampling stage, the random sampling method of RandLANet is used to improve the efficiency of point cloud feature extraction. At the same time, the point cloud features are enhanced according to the point cloud neighborhood spatial relationship encoding and self-attention feature encoding. In the upsampling stage, the LiDAR point cloud features are enhanced by fusing multi-level image features, including perspective-based multi-view aerial oblique image feature aggregation and image-guided multimodal feature fusion.
6. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 5, characterized in that: The specific implementation of multi-view aerial image feature aggregation based on perspective is as follows: First, according to the normal of the aerial oblique image Normals with LiDAR point cloud , calculate the cosine of the angle between the two , using it as the authenticity weight of the aerial oblique image texture, and then multi-viewing the pixel features of the aerial oblique image The weighted sum with the weight value is used to obtain the global feature, and Subtract the global feature to get the optimized pixel feature , calculated as follows: Formula (8) Optimized K pixel features Connect in the channel dimension , then construct the channel attention structure and the spatial attention structure to reduce the redundant information in the multi-view image features, where K represents the number of multi-view aerial oblique images, N represents the number of point cloud samples, corresponding to the pixels of the image, and C is the number of channels of the image corresponding to the pixel features; the calculation of the channel attention structure is shown in the following formula: Formula (9) Among them, the salient features of the image features With global features Depend on The maximum pooling and average pooling are performed in the spatial dimension respectively. The MLP layer plays the role of re-encoding the features. Represents the sigmoid function; Next, the features after channel attention optimization Processing is performed and the maximum value is calculated on its channel dimension With the average , after concatenating in the channel dimension, a convolutional layer is used for encoding, and then a sigmoid activation function is used to obtain the spatial attention score, which is consistent with the feature Multiply to get optimized features , highlighting the significant areas in the input features and reducing the influence of irrelevant areas. The process is shown in the following formula: Formula (10) in, Indicates a connection operation. Represents the convolution layer; finally, a one-dimensional convolution layer is used to reduce the image features after two attention optimizations The channel dimension of the output is the aggregated multi-view image features .
7. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 5, characterized in that: The specific implementation of image-guided multimodal feature fusion is as follows: For the aggregated pixel features , the number of feature channels is , calculate the maximum value in the channel dimension and average , which is used to express the significant information and global information reflected by the pixels corresponding to N points in the image block; then the maximum value and the average value are connected, the convolution layer is used to re-encode the pixel features, and the sigmoid function is constructed to obtain the texture weight distribution map corresponding to the N points , as shown below: Formula (11) in, Indicates a connection operation. Represents the convolutional layer; texture weight distribution map Then the number of channels extracted from the LiDAR point cloud feature extraction backbone network is Spatial features of LiDAR point cloud Perform weighted calculation and output optimized point cloud features; in order to retain the original LiDAR point cloud spatial features, connect them with the weighted LiDAR features to obtain the initial fused LiDAR point cloud features , as shown below: Formula (12) The bottleneck structure is further used to aggregate features, which are then added to the initially fused LiDAR point cloud features to obtain the output features. , as shown below: Formula (13) Among them, F() and G() are convolution blocks in the bottleneck structure. F() consists of a 1×1 convolution layer, a batchnorm layer, and a sigmoid layer, and G(x) consists of a 3×1 convolution layer, a batchnorm layer, and a sigmoid layer.
8. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 1, characterized in that: The overall global joint loss function is as follows: Formula (14) in , Represents two modal inputs, Represents the probability distribution graph of the category, and represents the weight used to calculate the loss of the image segmentation task, Represent the cross entropy loss and dice loss respectively, represents the KL divergence loss.
9. The method for semantic segmentation of LiDAR point cloud by fusing multi-view aerial oblique images according to claim 8, characterized in that: The KL divergence loss is defined as follows: Formula (17) KL divergence loss is used to calculate the difference between the point cloud category probability distribution and the image probability distribution, where Represents the category probability distribution map of the point cloud, Represents the category probability distribution map of the pixels corresponding to the point cloud on the image; When using multi-view oblique images to extract features, the category probability distribution maps of different viewing angles can be obtained. Since the KL divergence can only be calculated using the predicted distribution probability maps of the same size, the most likely predicted probability distribution is selected to calculate the KL divergence, as shown in formula (18): Formula (18) in, represents the pixel distribution probability corresponding to point cloud i, Refers to the distribution probability of the point on the multi-view aerial oblique image, Indicates the predicted category of the point on any image in the multi-view oblique image. Represents the count of the predicted value. The argmax function is used to obtain the distribution probability of the pixel represented by the most frequent occurrence in the predicted value. The image index with the highest correlation is obtained by selecting the most likely prediction category, and the category distribution probability of the corresponding pixel of the image is obtained to participate in the loss calculation. That is, Substituting (17) Participate in loss calculation.
10. A LiDAR point cloud semantic segmentation system integrating multi-view aerial oblique images, characterized in that: Includes the following modules: The sample acquisition module is used to sample and geometrically register the two modal data of LiDAR point cloud and multi-view aerial oblique image to obtain LiDAR point cloud and multi-view aerial oblique image samples; The semantic segmentation model building module is used to build a LiDAR point cloud semantic segmentation model that integrates multi-view aerial oblique images. It includes parallel LiDAR point cloud semantic segmentation branches and multi-view aerial oblique image semantic segmentation branches, specifically including the following sub-branches: The multi-view aerial oblique image semantic segmentation branch submodule is used to construct a multi-view aerial oblique image feature extraction backbone network to obtain multi-level and multi-scale features of the multi-view aerial oblique image, and then obtain the multi-view aerial oblique image semantic segmentation results through the convolution output layer; the input of the multi-view aerial oblique image feature extraction backbone network is the multi-view aerial oblique image samples; The LiDAR point cloud semantic segmentation branch submodule is used to build a LiDAR point cloud feature extraction backbone network to obtain multi-level and multi-scale features of the LiDAR point cloud, and fuse the multi-scale features extracted by the multi-view aerial oblique image feature extraction backbone network with the multi-scale features of the LiDAR point cloud to enhance the LiDAR point cloud features, and then obtain the LiDAR point cloud semantic segmentation results through the convolution output layer; the input of the LiDAR point cloud feature extraction backbone network is the LiDAR point cloud sample; Model training module, used to calculate the global joint loss function and update the semantic segmentation model parameters; The segmentation result output module is used to perform semantic segmentation on the LiDAR point cloud and multi-view aerial oblique image data to be segmented using the trained semantic segmentation model parameters, and map the semantic segmentation results of the LiDAR point cloud samples to the original LiDAR point cloud to obtain the final global segmentation result.
Citation Information
Patent Citations
Semantic segmentation method based on multi-scale convolutional neural networks (CNNs)
CN108230329A
Point cloud semantic segmentation method based on cross-modal Transform
CN116468731A
Semantic segmentation method based on Transform laser radar point cloud and camera image information fusion
CN117788823A
Boundary-optimized remote sensing image semantic segmentation method and apparatus, and device and medium
WO2023077816A1
Cited By
Building identification method based on three-dimensional point cloud
CN121708487A
