A road point cloud segmentation method based on multi-task learning

By combining a multi-task learning approach with road skeleton extraction and a multi-branch MLP network, the problem of low road segmentation accuracy in point cloud segmentation is solved, achieving more efficient road point cloud segmentation results.

CN117576400BActive Publication Date: 2026-11-27SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311627341.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2026-11-27
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

Existing point cloud segmentation algorithms have low accuracy in road segmentation, mainly because road point cloud features are not obvious and are easily confused with ordinary ground, and they account for a small proportion in the point cloud, resulting in poor segmentation performance.

Method used

A multi-task learning approach is adopted, which calculates the road extension direction of each point in the point cloud through a road skeleton extraction algorithm, and builds a multi-branch MLP deep learning network to learn two tasks: road segmentation and extension direction. The network is trained using the intersection-union ratio and cross-entropy loss function, and finally performs point cloud segmentation through the multi-branch MLP network.

Benefits of technology

It improves the accuracy and robustness of road point cloud segmentation. Through multi-task learning and feature encoding, it accurately extracts road direction and spatial features, thereby enhancing the segmentation effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117576400B_ABST
    Figure CN117576400B_ABST
Patent Text Reader

Abstract

The application discloses a kind of road point cloud segmentation methods based on multi-task learning, specifically including the following steps: based on road skeleton extraction algorithm, the corresponding road extension direction of each point in point cloud is calculated;Build deep learning network based on multi-branch MLP, learn two tasks of road segmentation and road extension direction;With the point cloud data of road and non-road labeled, the above-mentioned deep learning network is trained, then the trained model is used for point cloud road segmentation.The road segmentation network based on multi-task learning is proposed in the application, the extension direction of road is also learned while segmenting road, two tasks promote each other, so that better segmentation effect is achieved;The road extension direction calculation mode based on the road skeleton extraction algorithm proposed, accurately extracts road direction;Meanwhile, the road feature encoding mode based on knn and normal vector, better extract the spatial features of road.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of road point cloud segmentation technology, specifically relating to a road point cloud segmentation method based on multi-task learning. Background Technology

[0002] With the rapid development and widespread application of oblique photogrammetry, acquiring large-scale point cloud data of outdoor scenes has become much easier. This point cloud data contains rich geographic information and is of great significance for urban modeling, urban planning, traffic management, and other fields. Accurate road segmentation is particularly important because roads are vital transportation components connecting various parts of a city, significantly impacting urban terrain modeling and urban planning. For example, in urban terrain modeling, road sections require separate model leveling and texture mapping to distinguish them from ordinary ground. However, point cloud data acquired through oblique photogrammetry is insufficient for practical applications; semantic segmentation of these point clouds is also necessary for subsequent modeling and use.

[0003] Currently, deep learning-based point cloud segmentation methods include PointNet, RandLAnet, and KPConvNet. These methods achieve an accuracy of 80%–90% in semantic segmentation of buildings, ground, and trees, but their accuracy in road segmentation is lower. This is mainly because road point cloud features are not prominent in oblique photogrammetric point clouds, making them easily confused with ordinary ground points. Furthermore, roads occupy a small proportion of the point cloud, leading to the loss of road features during downsampling. Therefore, this application learns point cloud segmentation and road extension direction features to improve the accuracy and robustness of point cloud road segmentation. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a road point cloud segmentation method based on multi-task learning. This segmentation method solves the problem that existing point cloud segmentation algorithms do not consider the characteristics of road extension and flatness, and therefore perform poorly in terms of road categories.

[0005] To solve the above-mentioned technical problems, the present invention is achieved through the following means:

[0006] A road point cloud segmentation method based on multi-task learning specifically includes the following steps:

[0007] S1. Based on the road skeleton extraction algorithm, calculate the road extension direction corresponding to each point in the point cloud;

[0008] S2. Build a deep learning network based on multi-branch MLP to learn two tasks: road segmentation and road extension direction.

[0009] S3. Train the above deep learning network using the labeled point cloud data of roads and non-roads, and then use the trained model to segment the point cloud roads.

[0010] Furthermore, the specific steps of step S1 are as follows:

[0011] S11, Road skeleton extraction and simplification

[0012] 1) Extract road centerline pixels based on Zhang-Suen algorithm, map point cloud onto 2D image. In 2D image, the pixels corresponding to road point cloud are white, and non-road pixels are black, forming road mask; Zhang-Suen algorithm refines 2D image by alternating two sub-iterations until all pixels are refined to the point that they cannot be refined further.

[0013] 2) Locate the intersection, delete the intersection pixels, and divide the road centerline into sub-segments to facilitate subsequent simplification of sub-segments;

[0014] 3) The pixel curves of sub-road segments are simplified based on the Ramer-Douglas-Peucker algorithm. The Ramer-Douglas-Peucker algorithm recursively divides the curve, finds representative points on the curve, and connects them to form a simplified curve as the final road skeleton.

[0015] S12, Calculation of Road Extension Direction

[0016] The orientation of each road pixel in the road mask is calculated based on the road skeleton, and the orientation is classified into four directions; then the road pixels are mapped back to the 3D point cloud, and the corresponding points in the point cloud are marked as one of the four directions.

[0017] Furthermore, the specific steps of step S2 are as follows:

[0018] S21. Loss Function Calculation

[0019] The expression for the road segmentation loss function based on the intersection-union ratio is as follows:

[0020] L1 = -IoU(MLP) seg (P))

[0021] Where P represents a point in the point cloud, MLP seg This represents the point cloud classification prediction function of the MLP module;

[0022] The expression for the road extension direction loss function based on cross-entropy is as follows:

[0023]

[0024] Among them, MLP direcThis represents the road extension direction classification prediction function of the MLP module;

[0025] The final loss function is the sum of L1 and L2.

[0026] S22, Nearest Neighbor Coding Method

[0027] For each point in the point cloud, select the k nearest neighbors (kNN) with the closest Euclidean distance. Calculate the position encoding and normal vector encoding of the center point and its nearest neighbors. Then, concatenate the position encoding and normal vector encoding together as the input feature vector of the deep learning network. The specific expression is as follows:

[0028]

[0029] S23, Multi-branch MLP Network Setup

[0030] Deep learning networks based on multi-branch MLP mainly include a shared Encoder module, a multi-branch MLP module, and branch modules for road surface classification and road extension direction prediction.

[0031] The shared Encoder module is composed of stacked modules of downsampling, MLP and MaxPool, which are used for downsampling and extracting local features in outdoor oblique photography point clouds with large scale, and at the same time better adapt to input point clouds of different densities.

[0032] The multi-branch MLP module consists of two branches: road segmentation and road direction. Each branch is composed of an MLP module and multiple upsampling modules stacked together. The input data of each stack is connected to the input data of the corresponding downsampling module. The multi-branch MLP module is stacked twice, with a Fusion module inserted between the two stacks. The MLP module processes complex nonlinear patterns and high-dimensional data through multi-layer neurons and nonlinear activation functions, thereby achieving better classification results.

[0033] The road classification and road extension direction prediction branch modules predict the results of the two branches respectively. The prediction results of road segmentation are divided into two categories: roads and non-roads, and the prediction results of road extension direction are divided into four categories.

[0034] Furthermore, the specific method for step S3 is as follows:

[0035] The point cloud data with labeled roads and non-roads are divided into training set, validation set and test set. The training is carried out for 100 rounds. The model with the highest IoU is saved and then used to segment the road point cloud on the test set.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] This invention proposes a road segmentation network based on multi-task learning, which learns the extension direction of roads while segmenting them. The two tasks complement each other, resulting in better segmentation performance. The proposed road extension direction calculation method based on the road skeleton extraction algorithm accurately extracts the road direction. At the same time, the road feature encoding method based on k-nn and normal vectors better extracts the spatial features of roads. Attached Figure Description

[0038] Figure 1 This is a schematic diagram of the network structure of the multi-branch MLP based on the present invention;

[0039] Figure 2 This is a schematic diagram of the four road extension directions of the present invention;

[0040] Figure 3 This is a schematic diagram of the road shielding of the present invention;

[0041] Figure 4 This is a schematic diagram of the road centerline pixel extraction according to the present invention;

[0042] Figure 5 This is a schematic diagram of the sub-path skeleton of the present invention;

[0043] Figure 6 This is a schematic diagram illustrating the difference between ordinary roads and intersections according to the present invention. Detailed Implementation

[0044] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and specific examples.

[0045] like Figure 1 As shown, a road point cloud segmentation method based on multi-task learning specifically includes the following steps:

[0046] S1. Based on the road skeleton extraction algorithm, calculate the road extension direction corresponding to each point in the point cloud. The specific steps are as follows:

[0047] S11, Road skeleton extraction and simplification

[0048] 1) Extract road centerline pixels based on the Zhang-Suen algorithm, and map the point cloud onto a 2D image, such as... Figure 3As shown, a 1km*1km plot is mapped along the z-axis to a 512*512 pixel 2D image, with each pixel taking the lowest point in its corresponding point cloud. Since roads and trees may overlap along the z-axis, selecting the lowest point preserves more ground point cloud information. During mapping, if the road point cloud within a pixel exceeds 50%, the corresponding pixels in the 2D image are white, while non-road pixels are black, forming a road mask. The Zhang-Suen algorithm refines the 2D image by alternating between two sub-iterations until all pixels are refined to the minimum, thereby extracting the centerline pixels, as shown below. Figure 4 As shown, this is the result of extracting the road centerline.

[0049] 2) Locate the intersection, such as Figure 6 As shown, within a local sliding window, pixels with 2 or more pixels at the window edge are generally ordinary road segments, while those with 3 or more pixels at the window edge are generally intersections. The road centerline is divided into sub-segments. All road centerline pixels are traversed. Pixels with 3 or more pixels at the window boundary within a 5x5 neighborhood window are considered intersections. All intersections are traversed, and intersections within a distance of less than one 5x5 window are merged. Then, pixels within all intersections are deleted to separate them into sub-segments for easier simplification later. This divides the road pixels into sub-segments that do not include intersections. A sub-segment is a curved curve composed of pixels and has no branches.

[0050] 3) Simplify sub-road segment curves based on the Ramer-Douglas-Peucker algorithm. Since the road pixels extracted based on the Zhang-Suen algorithm are curved and have variable directions, they cannot accurately reflect the road extension direction. Therefore, it is necessary to simplify the curves based on the Ramer-Douglas-Peucker algorithm.

[0051] The region growing algorithm iterates through all road pixels to obtain the pixel set of each sub-segment. For each sub-segment pixel set, the Ramer-Douglas-Peucker algorithm is used to simplify the road segment curve. The Ramer-Douglas-Peucker algorithm recursively divides the curve, finds representative points on the curve, and connects them to form a simplified curve as the final road skeleton. The simplified sub-segment curve is shown in Figure 5, where the bolded points are the start or end points of the sub-segment.

[0052] S12, Calculation of Road Extension Direction

[0053] The orientation of each road pixel in the road mask is calculated based on the road skeleton, and the orientation is classified as follows: Figure 2The four directions are shown. For each road pixel p, the nearest sub-road segment is calculated, and the direction vector of the sub-road segment is obtained. The direction closest to the direction vector among the four directions is taken as the road extension direction of pixel p. The road pixel is then mapped back to the 3D point cloud, and the corresponding 3D point in the point cloud is marked as the road extension direction for subsequent multi-task learning.

[0054] S2. Build a deep learning network based on a multi-branch MLP to learn two tasks: road segmentation and road extension direction. The specific steps are as follows:

[0055] S21. Loss Function Calculation

[0056] The expression for the road segmentation loss function based on the intersection-union ratio is as follows:

[0057] L1 = -IoU(MLP) seg (P))

[0058] Where P represents a point in the point cloud, MLP seg This represents the point cloud classification prediction function of the MLP module;

[0059] The expression for the road extension direction loss function based on cross-entropy is as follows:

[0060]

[0061] Among them, MLP direc This represents the road extension direction classification prediction function of the MLP module;

[0062] The final loss function is the sum of L1 and L2.

[0063] S22, Nearest Neighbor Coding Method

[0064] For each point in the point cloud, select the k nearest Euclidean neighbors, i.e., knn (k-nearest-neighbor). Calculate the position encoding and normal vector encoding of the center point and its nearest neighbors. Then, concatenate the position encoding and normal vector encoding together as the input feature vector of the deep learning network. The specific expression is as follows:

[0065]

[0066] S23, Multi-branch MLP Network Setup

[0067] like Figure 1As shown, the tensor dimension in the encoder goes through four stages: N*32, N / 4*64, N / 16*128, and N / 64*256. Each stage includes a downsampling module, a k-nil feature encoding module, and a max-pooling module. To perform pointwise segmentation, the tensor dimension in the decoder stage is reversed compared to the encoder, ultimately restoring the dimension to N*32. Skip connections are made between corresponding modules in the encoder and decoder to address the vanishing gradient problem in deep neural networks and accelerate training.

[0068] Deep learning networks based on multi-branch MLP mainly include a shared Encoder module, a multi-branch MLP module, and branch modules for road surface classification and road extension direction prediction.

[0069] The shared Encoder module is composed of stacked modules of downsampling, MLP and MaxPool, which is used to extract local features while downsampling is required for large outdoor oblique photography point clouds, and can better adapt to input point clouds of different densities.

[0070] The multi-branch MLP module consists of two branches: road segmentation and road direction. Each branch is composed of an MLP module and multiple upsampling modules stacked together. The input data of each stack is connected to the input data of the corresponding downsampling module (skip connection), which addresses the vanishing gradient problem during deep learning training and accelerates training. This patent employs two stacks of the multi-branch MLP module, with a Fusion module inserted between the two stacks. This is to fuse the features of road segmentation and road direction, allowing the two branches to influence and promote each other. The MLP module, through multiple layers of neurons and non-linear activation functions, can handle complex non-linear patterns and high-dimensional data. The structure of stacking the multi-branch MLP twice facilitates the fusion and transmission of information from road segmentation and road direction, while also increasing the receptive field of the features, thereby achieving better classification results.

[0071] The road classification and road extension direction prediction branch modules can predict the results of the two branches respectively. The road segmentation prediction result is divided into two categories: roads and non-roads. The road extension direction prediction result is divided into four categories, corresponding to... Figure 2 The four directions shown.

[0072] S3. Train the above deep learning network using the labeled point cloud data of roads and non-roads, and then use the trained model to perform point cloud road segmentation. The specific method is as follows:

[0073] Point cloud data with labeled roads and non-roads were divided into training, validation, and test sets, and trained for 100 rounds. The model with the highest IoU was saved and then used for road point cloud segmentation on the test set. Six-fold cross-validation was used in the experiment. The training set consisted of 30 1km*1km point cloud plots, the validation set consisted of 10 plots, and the test set consisted of 10 plots. The downsampling ratio was set to 1 / 4 each time, the maximum number of training rounds was 100, and the learning rate was 1e-2.

[0074] The above description is merely an embodiment of the present invention. It should be reiterated that those skilled in the art can make several improvements to the present invention without departing from the principle of the present invention, and these improvements are also included within the scope of protection of the claims of the present invention.

Claims

1. A road point cloud segmentation method based on multi-task learning, characterized in that: Specifically, the following steps are included: S1. Based on the road skeleton extraction algorithm, calculate the road extension direction corresponding to each point in the point cloud; S2. Build a deep learning network based on multi-branch MLP to learn two tasks: road segmentation and road extension direction. S3. Train the above deep learning network using the labeled point cloud data of roads and non-roads, and then use the trained model to segment the point cloud roads. The specific steps of step S1 are as follows: S11, Road skeleton extraction and simplification 1) Extract road centerline pixels based on Zhang-Suen algorithm, map the point cloud onto a two-dimensional image. In the two-dimensional image, the pixels corresponding to the road point cloud are white, and the non-road pixels are black, forming a road mask. The Zhang-Suen algorithm refines the two-dimensional image by alternating two sub-iterations until all pixels are refined to the point that they cannot be refined further. 2) Locate the intersection, delete the intersection pixels, and divide the road centerline into sub-segments to facilitate subsequent simplification of sub-segments; 3) The pixel curves of sub-road segments are simplified based on the Ramer-Douglas-Peucker algorithm. The Ramer-Douglas-Peucker algorithm recursively divides the curve, finds representative points on the curve, and connects them to form a simplified curve as the final road skeleton. S12, Calculation of Road Extension Direction The orientation of each road pixel in the road mask is calculated based on the road skeleton, and the orientation is classified into four directions; then the road pixels are mapped back to the 3D point cloud, and the corresponding points in the point cloud are marked as one of the four directions; The specific steps of step S2 include the following: Nearest neighbor coding method For each point in the point cloud, select the k nearest neighbors (kNN) with the closest Euclidean distance. Calculate the position encoding and normal vector encoding of the center point and its nearest neighbors. Then, concatenate the position encoding and normal vector encoding together as the input feature vector of the deep learning network. The specific expression is as follows: Multi-branch MLP network construction The deep learning network based on multi-branch MLP includes a shared Encoder module, a multi-branch MLP module, and branch modules for road surface classification and road extension direction prediction. The shared Encoder module is composed of stacked modules of downsampling, MLP and MaxPool, which are used for downsampling and extracting local features in outdoor oblique photography point clouds with large scale, and at the same time better adapt to input point clouds of different densities. The multi-branch MLP module consists of two branches: road segmentation and road direction. Each branch is composed of an MLP module and multiple upsampling modules stacked together. The input data of each stack is connected to the input data of the corresponding downsampling module. The multi-branch MLP module is stacked twice, with a Fusion module inserted between the two stacks. The MLP module uses multi-layer neurons and non-linear activation functions to process complex non-linear patterns and high-dimensional data, achieving better classification results.

2. The road point cloud segmentation method based on multi-task learning as described in claim 1, characterized in that: The specific steps of step S2 also include the following: Loss function calculation The expression for the road segmentation loss function based on the intersection-union ratio is as follows: in, P Represents points in a point cloud. MLP seg This represents the point cloud classification prediction function of the MLP module; The expression for the road extension direction loss function based on cross-entropy is as follows: in, MLP direc This represents the road extension direction classification prediction function of the MLP module; The final loss function is the sum of L1 and L2; The road surface classification and road extension direction prediction branch modules predict the results of two branches respectively. The prediction results of road segmentation are divided into two categories: road and non-road, and the prediction results of road extension direction are divided into four categories.

3. The road point cloud segmentation method based on multi-task learning as described in claim 1, characterized in that: The specific method for step S3 is as follows: The point cloud data with labeled roads and non-roads are divided into training set, validation set and test set. The training is carried out for 100 rounds. The model with the highest IoU is saved and then used to segment the road point cloud on the test set.