A laser radar point cloud screening and mapping method based on semantic-geometric joint optimization
By employing a semantic-geometric joint optimization method, which combines local geometric networks and dynamic threshold adjustment, the robustness of existing lidar point cloud screening methods in complex scenarios is addressed, achieving higher point cloud screening accuracy and pose estimation stability.
Patent Information
- Application Number
- CN202611251951.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-24
AI Technical Summary
Existing lidar point cloud screening methods lack robustness in complex scenarios, cannot adapt to scene interference, are prone to misjudgment and missed judgment, and lack consistency verification in the temporal dimension, affecting the stability of pose estimation.
A semantic-geometric joint optimization method is adopted to obtain the semantic confidence of stable structural points in the point cloud through a local geometric network. Combined with the geometric judgment criteria of road surface points, rigid structural points, near ground point compensation and far point retention, a point cloud retention indicator function is constructed, the threshold parameter is dynamically adjusted, a closed-loop adaptive calibration mechanism is constructed, a geometric regularization loss is introduced to train the network, and a time-consistency weighted soft screening mechanism is adopted.
It improves the accuracy and robustness of point cloud selection in complex scenes, enhances the stability and accuracy of pose estimation, reduces single-frame noise interference, and improves the consistency of global mapping.
Smart Images

Figure CN123160656A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for LiDAR point cloud screening and mapping based on semantic-geometric joint optimization. Background Technology
[0002] This invention relates to the field of LiDAR real-time localization and mapping (SLAM) technology, and in particular to a LiDAR point cloud screening and mapping method based on semantic-geometric joint optimization.
[0003] LiDAR real-time localization and mapping is a core technology for autonomous vehicles and autonomous mobile robots to achieve environmental perception and autonomous navigation. Point cloud feature selection is a key preliminary step in LiDAR odometry calculation. The quality of the stable structural points obtained by selection directly determines the accuracy of pose estimation and the consistency of global mapping.
[0004] Currently, the mainstream laser point cloud screening methods are mainly divided into two categories:
[0005] One type of screening method is based on pure geometric rules, which determines stable structural points by setting fixed parameters such as height threshold and curvature threshold. This type of method relies on manually set fixed thresholds and has poor adaptability in non-flat surfaces (such as uphill and downhill slopes) and scenes with large differences in point cloud density at different distances: the point cloud is dense in the near-ground area but is easily affected by ground undulations, while the point cloud is sparse in the far-ground area and is easily mistakenly removed; in complex scenes with shade and vegetation cover, non-rigid vegetation points are easily misclassified as stable feature points, which ultimately leads to pose estimation drift and ghosting and deviation in mapping.
[0006] Another type is the selection method that incorporates semantic segmentation assistance. This method uses a semantic segmentation network to identify and remove unstable categories such as dynamic objects and vegetation. This type of method relies excessively on training the network with large-scale labeled data and makes selection decisions solely based on semantic categories, without considering the prior knowledge of the local geometric stability of the point cloud. In sparse, distant regions of the point cloud or in partially occluded areas, the accuracy of semantic confidence drops significantly, making it prone to misclassification and underclassification of feature points.
[0007] Furthermore, both of the aforementioned screening methods employ an open-loop processing architecture: the front-end screening parameters are fixed and independent of the back-end pose estimation process, making it impossible to dynamically adjust the screening strategy based on feedback from actual registration quality. When scene interference intensifies and the dispersion of feature registration residuals increases, the filtering intensity cannot be automatically enhanced to suppress interference; when the number of effective feature points is insufficient, the screening conditions cannot be automatically relaxed to supplement geometric constraints, resulting in significant limitations in the robustness of the algorithms in complex dynamic scenes. Simultaneously, existing screening methods generally adopt a binary hard decision mode, where laser points are either retained or discarded, easily leading to the loss of effective geometric information at the edges. Moreover, single-frame decisions are susceptible to transient noise interference and lack temporal consistency verification, further affecting the stability of pose solving. Summary of the Invention
[0008] This invention provides a method for LiDAR point cloud screening and mapping based on semantic-geometric joint optimization to solve the problems existing in the prior art.
[0009] The technical solutions adopted in this invention are as follows:
[0010] A method for LiDAR point cloud selection and mapping based on semantic-geometric joint optimization includes the following steps:
[0011] S1: Obtain the original laser point cloud, perform block sampling and scale normalization processing on the original laser point cloud, input the processed point cloud into a pre-trained local geometric network, and obtain the semantic confidence of the stable structure point corresponding to each laser point.
[0012] S2: Based on the semantic confidence of the stable structural points, and combined with four types of geometric decision constraints, namely the road surface point retention criterion, the rigid structure retention criterion, the near grounding point compensation criterion, and the far end point retention criterion, calculate the point cloud retention indicator function, retain the laser points that meet the retention conditions as stable structural points, remove the laser points that do not meet the retention conditions, and output the filtered point cloud.
[0013] S3: Input the filtered point cloud into the laser odometry, extract the edge feature point set and the planar feature point set respectively, construct the pose estimation optimization equation with the goal of minimizing the feature residual, solve it to obtain the pose of the current frame, and update the global point cloud map according to the pose of the current frame.
[0014] S4: Statistically analyze the feature residual distribution and effective feature point count of the current frame edge feature point set and planar feature point set. Based on the statistical results, dynamically adjust the threshold parameters corresponding to the four types of geometric decision constraints. Apply the adjusted threshold parameters to the calculation of the point cloud retention indicator function of the laser point cloud in the next frame.
[0015] Furthermore, in S1, the training process of the local geometric network includes:
[0016] The point-by-point semantic labels of the original point cloud are remapped to binary labels, with the labels corresponding to unstable categories assigned a value of 0 and the labels corresponding to stable structure categories assigned a value of 1. The local geometric network is trained using the normalized point blocks as input and the binary cross-entropy loss function. The trained network outputs the point-by-point semantic confidence of stable structure points with values ranging from 0 to 1.
[0017] Furthermore, the local geometric network adopts a point-level semantic segmentation architecture based on PointNet++, including a hierarchical feature extraction module and a feature propagation module;
[0018] The hierarchical feature extraction module selects the center point by sampling the farthest point, constructs a local neighborhood by using spherical neighborhood query, and inputs the three-dimensional coordinate difference between the neighborhood point and the center point and the reflection intensity into a shared multilayer perceptron, and obtains local geometric features by max pooling.
[0019] The feature propagation module uses distance-weighted interpolation to restore the original point resolution layer by layer, and outputs the semantic confidence of the stable structural points through a fully connected layer and a Sigmoid function.
[0020] Furthermore, in S1, the specific process of block sampling and scale normalization is as follows:
[0021] S11: Divide each frame of the original laser point cloud into several point blocks according to a fixed number of points, and calculate the center point coordinates of each point block using the following formula:
[0022] ,
[0023] In the formula, Let J be the coordinates of the center point of the j-th point block. A fixed number of points contained in a single point block. For the j-th point block, Let i be the i-th laser point within the point block. For laser points 3D coordinates;
[0024] The maximum Euclidean distance from each point within a block to its corresponding center point is determined as the scale factor of that block, and the scale factor is calculated using the following formula:
[0025] ,
[0026] In the formula, Let j be the scale factor of the j-th point block. Center point The three-dimensional coordinate components;
[0027] S12: Based on the center point coordinates and scale factor of the block, normalize the three-dimensional coordinates of each point within the block using the following formula:
[0028] ,
[0029] The reflection intensity of the laser point remains constant during the normalization process.
[0030] Furthermore, in S2, the four types of geometric decision constraints are specifically as follows:
[0031] Road surface point retention criteria: When the height of the laser point is lower than a set height threshold, a retention decision is triggered. The expression is:
[0032] ,
[0033] In the formula, The determination results of the road surface point retention criteria are used. For indicator functions, Let i be the height coordinates of the i-th laser point. The set height threshold;
[0034] Rigid structure retention criterion: When the semantic confidence of the stable structural point of the laser spot is greater than the set high confidence threshold, a retention decision is triggered. The expression is:
[0035] ,
[0036] In the formula, The determination results of the retention criteria for rigid structures are retained. The semantic confidence of the stable structural point for the i-th laser point. The set high confidence threshold;
[0037] Near-ground point compensation criterion: When the horizontal distance from the laser point to the radar origin is less than the set near-distance threshold, meets the near-ground determination, the height is lower than the set near-ground height threshold, and the semantic confidence of the stable structure point is greater than the set near-ground confidence threshold, a retention determination is triggered. The expression is:
[0038] ,
[0039] In the formula, The determination result of the near-grounding point compensation criterion. Let be the horizontal distance from the i-th laser point to the radar origin. For the set proximity threshold, For near-ground determination results, For the set near-ground altitude threshold, The set near-site confidence threshold;
[0040] The expression for the near-ground determination is:
[0041] ,
[0042] In the formula, For the bird's-eye view grid where the i-th laser point is located, For grid The lowest height inside, The set near-ground altitude tolerance;
[0043] Remote endpoint retention criterion: When the horizontal distance from the laser point to the radar origin is greater than or equal to a set remote distance threshold, and the semantic confidence of the stable structure point is greater than a set remote endpoint confidence threshold, a retention decision is triggered. The expression is:
[0044] ,
[0045] In the formula, The determination result of the criterion is retained for the remote endpoint. For the set distance threshold, The set confidence threshold for the remote endpoint.
[0046] Further, in S2, the point cloud preservation indicator function is calculated using the following formula:
[0047] ,
[0048] In the formula, To retain the indicator function for the point cloud corresponding to the i-th laser point, For logical OR operation.
[0049] Furthermore, in S3, the pose estimation optimization equation aims to minimize the sum of the point-to-line distance residuals of edge features and the point-to-plane distance residuals of planar features, and all residual terms are weighted using a robust kernel function.
[0050] Furthermore, in S4, the specific rules for dynamically adjusting the threshold parameter based on the statistical results are as follows:
[0051] When the dispersion of the feature residuals is higher than the set residual threshold, the high confidence threshold corresponding to the rigid structure retention criterion is increased simultaneously, and the near-ground height tolerance corresponding to the near-ground point compensation criterion is narrowed to enhance the point cloud filtering intensity.
[0052] When the number of valid feature points is lower than the set threshold, the confidence threshold of the far endpoint retention criterion is reduced, the near-ground height tolerance of the near-ground point compensation criterion is relaxed, and the confidence threshold of the near-ground point is reduced to supplement the valid geometric constraints.
[0053] Furthermore, when training the local geometric network, a joint loss function is used, which is obtained by weighted summation of binary cross-entropy loss and geometric regularization loss;
[0054] The geometric regularization loss includes a height regularization term, a local plane regularization term, and a distance weighting term:
[0055] The height regularization term is used to force the semantic confidence of stable structural points to approach 1 for laser points below the height threshold;
[0056] The local plane regularization term is used to adjust the classification loss weight of the corresponding point based on the local plane fitting residual of each point block. The smaller the residual, the higher the loss weight.
[0057] The distance-weighted term is used to adjust the classification loss weight of the corresponding point based on the distance from the laser point to the radar origin. The farther the distance, the lower the loss weight.
[0058] Furthermore, in S3, before substituting the filtered point cloud into the pose estimation optimization equation, a stable weight calculation step is also included:
[0059] The single-frame stable prior score of each retained laser point is calculated; the single-frame stable prior score is obtained by fusing the number of geometric decision constraints satisfied by the laser point with the semantic confidence of the stable structure point.
[0060] Using the pose of the previous frame, the laser points preserved in the current frame are projected onto the coordinate system of the previous frame, and the geometric matching residual between each laser point and the neighboring points of the previous frame is calculated to obtain the temporal consistency score.
[0061] The final stable weight of each laser point is obtained by multiplying the single-frame stable prior score with the temporal consistency score.
[0062] Substitute the final stable weights of each laser point into the pose estimation optimization equation, and weight the residual terms of the corresponding features.
[0063] The present invention has the following beneficial effects:
[0064] (1) A screening mechanism combining the semantic confidence of stable structural points and multi-scale geometric decision constraints is adopted. Based on the semantic confidence of the local geometric network output, four types of geometric decision rules are matched: road point retention, rigid structure retention, near ground point compensation, and far point retention. This takes into account both semantic category information and local geometric stability prior, effectively reducing the probability of misjudgment of vegetation and dynamic objects, and improving the feature screening accuracy of areas with different point cloud density such as near ground and far ends.
[0065] (2) Construct a closed-loop adaptive calibration mechanism for pose residual feedback. Based on the registration residual distribution of edge features and planar features of the current frame and the number of effective feature points, dynamically adjust the threshold parameters corresponding to the four types of geometric judgment constraints. When the residual dispersion is high, the filtering intensity is enhanced synchronously. When there are insufficient effective feature points, the effective geometric constraints are supplemented. This eliminates the limitation of fixed threshold on scene adaptability and significantly improves the robustness of mapping under different road conditions and different distance scenarios.
[0066] (3) When training the local geometric network, geometric regularization loss is introduced, and the height prior, local plane fitting residual and distance weight are incorporated into the loss function to guide the network to learn geometric features for SLAM stability. This improves the physical rationality and accuracy of confidence output in sparse point cloud and local occlusion scenarios, and further enhances the reliability of front-end screening.
[0067] (4) A soft screening mechanism with temporal consistency weighting is adopted to integrate the prior score of single-frame geometric semantics with the cross-frame matching consistency score into a continuous and stable weight, and substitute it into the pose estimation optimization equation to replace the traditional binary hard elimination mode; it not only retains the effective geometric constraints of the edge region, but also reduces the interference of instantaneous noise in a single frame, and improves the stability and accuracy of pose solution. Attached Figure Description
[0068] Figure 1 This is a flowchart of the present invention;
[0069] Figure 2 The flowchart shows the logical judgment process for four types of geometric constraints.
[0070] Figure 3 This is a schematic diagram of the training and inference architecture of a local geometric network. Detailed Implementation
[0071] The invention will now be further described with reference to the accompanying drawings.
[0072] like Figures 1 to 3 This invention discloses a method for LiDAR point cloud selection and mapping based on semantic-geometric joint optimization. The method executes the following steps in sequence: point cloud input, preprocessing and semantic reasoning, joint selection, pose calculation, and loop closure calibration. Specifically:
[0073] First, the raw 3D point cloud data output by the lidar is acquired. After block sampling and scale normalization, the raw lidar point cloud is input into a pre-trained local geometric network to obtain the semantic confidence of stable structural points corresponding to each lidar point. Then, based on the semantic confidence of stable structural points, a point cloud retention indicator function is calculated in combination with four types of geometric decision constraints to complete the point cloud screening and output the screened point cloud. The screened point cloud is input into a lidar odometry system to extract features and construct a pose estimation optimization equation. The equation is solved to obtain the pose of the current frame and update the global point cloud map. Finally, based on the registration residual and effective feature point statistics of the current frame, the threshold parameters of the four types of geometric decision constraints are dynamically adjusted and fed back to the point cloud screening process of the next frame, forming a closed-loop adaptive adjustment mechanism. As a preferred implementation, a temporal consistency weighted soft screening mechanism can be used to replace the binary hard screening mode. The single-frame geometric semantic prior and temporal consistency constraints are integrated into point-by-point stable weights, which are substituted into the pose optimization equation to further improve the pose solution accuracy and robustness.
[0074] When performing block sampling and scale normalization on the original laser point cloud, each frame of the original laser point cloud is divided into several overlapping point blocks with a fixed number of points. The number of points contained in a single point block is denoted as . This can be set to 1024 or 2048, and the overlap rate of adjacent point blocks can be set to 30% to avoid feature loss at block boundaries. For the first... A block of dots Calculate the coordinates of the center point of the block using the following formula:
[0075] ,
[0076] In the formula, For the first The three-dimensional coordinates of the center point of each block The first point within the block One laser point, For laser points Three-dimensional coordinates in the radar coordinate system.
[0077] After calculating the coordinates of the center point, the maximum Euclidean distance from each point within the block to the corresponding center point is used as the scale factor of that block. The scale factor is calculated using the following formula:
[0078] ,
[0079] In the formula, For the first The scale factor of each point block is used to characterize the spatial scale range of the point block.
[0080] Based on the center point coordinates and scale factor, the 3D coordinates of each point within the block are normalized. The normalization formula is as follows:
[0081] ,
[0082] In the formula, Normalized laser points The three-dimensional coordinates. During the normalization process, the reflection intensity of the laser point... The original values remain unchanged and are not included in the scale normalization calculation.
[0083] The normalized point blocks are input into the local geometric network, which outputs the semantic confidence of stable structural points point by point. The local geometric network adopts a point-level semantic segmentation architecture based on PointNet++, which consists of a hierarchical feature extraction module and a feature propagation module.
[0084] The hierarchical feature extraction module selects from the point patch by sampling the farthest point. For each of the given central points, a local neighborhood is constructed using a spherical neighborhood query. The number of points within each neighborhood is denoted as . The module concatenates the 3D coordinate differences of each point in the neighborhood relative to the center point with the reflection intensity of the corresponding point as input features. These features are then fed into a shared multilayer perceptron for feature extraction, and finally aggregated through max pooling to obtain the local geometric features corresponding to each center point. This module uses three downsampling layers to progressively expand the receptive field and extract multi-scale local geometric features.
[0085] The feature propagation module employs distance-weighted interpolation to upsample deep, low-resolution features layer by layer to restore them to the original point resolution. During interpolation, the feature of each point is obtained by weighting the features of its three neighboring center points inversely proportional to their distance. After upsampling, the semantic confidence of the stable structure point corresponding to each laser point is output after passing through two fully connected layers and a sigmoid activation function. The value range is [value missing]. The higher the value, the higher the probability that the point belongs to a rigid and stable structure.
[0086] The local geometric network was pre-trained using supervised learning. During training, the point-by-point semantic labels of the original point cloud were first remapped into binary labels. Non-rigid, easily changing categories such as dynamic objects, leaves, and grass were assigned a value of 0, while categories with stable structures such as hardened ground, tree trunks, building walls, and rigid, stationary objects were assigned a value of 1. The remapped binary labels are denoted as follows: , .
[0087] Using normalized data points as network input and binarized labels as ground truth for supervision, the binary cross-entropy loss function is used as the base loss. The expression for the binary cross-entropy loss function is:
[0088] ,
[0089] In the formula, This is the binary cross-entropy loss value. The first output of the network Semantic confidence of stable structural points. For the first Binary label truth values of each point.
[0090] As a preferred training method, geometric regularization loss is introduced on top of binary cross-entropy loss to construct a joint loss function, guiding the network to learn feature representations that conform to the geometric priors of the SLAM scene. The joint loss function is calculated as follows:
[0091] ,
[0092] In the formula, For the total joint loss, For geometric regularization loss, This is the weighting coefficient for geometric regularization loss, which can be set to 0.5.
[0093] Geometric regularization loss It is composed of a height regularization term, a local plane regularization term, and a distance weighting term. The height regularization term utilizes the geometric prior that the near-ground region is mostly ground, forcing the confidence of laser points below the ground height threshold to approximate 1, and its expression is:
[0094] ,
[0095] In the formula, The loss value is the high regularization term. For heights below the ground height threshold The total number of laser points, It can be set to 0.2m.
[0096] The local plane regularization term adjusts the classification loss weights based on the local plane fitting residuals of each point patch. Regions with better planarity receive higher loss weights, thus strengthening feature learning in rigid planar regions. First, principal component analysis is performed on each point patch to fit a local plane, and the distance from each point to the fitted plane is calculated. As the residual of the plane fitting; the expression for the local plane regularization term is:
[0097] ,
[0098] In the formula, These are the plane weighting coefficients. The smoothing coefficient can be set to 0.1m; The target confidence value for the planar region is denoted as 1. The smaller the planar fitting residual, the closer the target value is to 1.
[0099] The distance-weighted term adjusts the classification loss weights based on the distance from the laser point to the radar origin. Points at distant locations have sparse clouds and high noise levels, so their loss weights are reduced to avoid interference from distant noise during network training. The expression for the distance-weighted term is:
[0100] ,
[0101] In the formula, This is the distance weighting coefficient. The horizontal distance from the laser point to the radar origin. The distance threshold can be set to 50m.
[0102] The Adam optimizer was used during training. The initial learning rate was set to 0.001, the batch size was set to 16, and the number of training rounds was set to 50. The learning rate was reduced to 0.5 times every 10 rounds until the loss converged.
[0103] After obtaining the semantic confidence of the point-by-point stable structure, the retention decision result of each laser point is calculated by combining four types of geometric decision constraints. The four types of constraints are the road surface point retention criterion, the rigid structure retention criterion, the near grounding point compensation criterion, and the far end point retention criterion.
[0104] The logic for determining the road surface point retention criterion is as follows: when the height of the laser point is lower than a set height threshold, a retention determination is triggered, expressed as:
[0105] ,
[0106] In the formula, The result of the determination of the road surface point retention criterion is 0 or 1; This is an indicator function; the function takes the value 1 when the condition inside the parentheses is true, and takes the value 0 otherwise. For the first The height coordinates of each laser point; The height threshold can be set to 0.2m.
[0107] The logic for determining the retention criterion for rigid structures is as follows: when the semantic confidence of the stable structural point of the laser point is greater than the set high confidence threshold, a retention determination is triggered, expressed as:
[0108] ,
[0109] In the formula, The result of the criterion for retaining rigid structures is either 0 or 1. For the first Semantic confidence of stable structural points of each laser point; The high confidence threshold can be set to 0.7.
[0110] To address the issues of dense cloud cover and potential for missed detection near the ground, the near-ground point compensation criterion appropriately relaxes the confidence requirements for the near-ground region. When the horizontal distance from the laser point to the radar origin is less than a set near-range threshold, meets the near-ground determination criteria, the height is lower than a set near-ground height threshold, and the semantic confidence of the stable structure point is greater than a set near-ground confidence threshold, a retention decision is triggered. The expression is:
[0111] ,
[0112] In the formula, The result of the nearby grounding point compensation criterion is 0 or 1. For logical AND operation; The set proximity threshold can be set to 10m; The result for near-ground determination is either 0 or 1; The near-ground height threshold can be set to 0.5m; The near-site confidence threshold can be set to 0.4.
[0113] Near-ground detection is achieved through minimum height matching of the bird's-eye view grid. First, the current frame's point cloud is projected onto a horizontal plane and divided into equal-sized bird's-eye view grids, with each grid having a size of [size missing]. It can be set to 0.5m × 0.5m. (The last part is incomplete and likely refers to a different Index of the grid where each laser point is located Calculate using the following formula:
[0114] In the formula, , These are the minimum values of the point cloud in the x and y directions of the current frame, respectively. This is for floor function calculation. It calculates the minimum height of all laser points within each grid cell. For each laser point, if the difference between its height and the lowest height of its grid is less than the set near-ground height tolerance, it is considered to meet the near-ground criterion. The expression for the near-ground criterion is:
[0115] ,
[0116] In the formula, For the first The bird's-eye view grid where each laser point is located The tolerance for near-ground height can be set to 0.15m.
[0117] To address the issues of sparse clouds and limited features at distant endpoints, the remote endpoint retention criterion appropriately relaxes the confidence requirement for distant regions and supplements effective geometric constraints. A retention decision is triggered when the horizontal distance from the laser point to the radar origin is greater than or equal to a set remote distance threshold, and the semantic confidence of the stable structure point is greater than the set remote endpoint confidence threshold. The expression is:
[0118] ,
[0119] In the formula, The determination result of the criterion for the remote endpoint is retained, and the value is either 0 or 1; The set distance threshold can be set to 50m; The confidence threshold for the far endpoint can be set to 0.6. After obtaining the decision results for each of the four types of geometric decision constraints, the point cloud preservation indicator function is calculated using the following formula:
[0120] ,
[0121] In the formula, For the first The point cloud preservation indicator function corresponding to each laser point takes a value of 0 or 1; This is a logical OR operation. When the point cloud retention indicator function is 1, the corresponding laser point is included in the filtered stable structure point cloud; when the point cloud retention indicator function is 0, the corresponding laser point is discarded. After determining all points, the filtered stable structure point set is output.
[0122] The selected stable structural point cloud is input into the laser odometry module for pose calculation. First, the local curvature is calculated for each laser point, and edge features are distinguished from planar features based on the magnitude of the curvature. The local curvature is calculated as follows: a set of neighboring points of the current point is selected, and the three eigenvalues of the covariance matrix are obtained through principal component analysis. curvature Calculate using the following formula:
[0123] ,
[0124] Points with curvature greater than a set threshold are assigned to the edge feature point set, while points with curvature less than a set threshold are assigned to the planar feature point set.
[0125] The feature points of the current frame are matched with the feature point set of the previous frame. For each edge feature point, the point-to-line distance residual to the corresponding edge line is calculated; for each planar feature point, the point-to-plane distance residual to the corresponding plane is calculated. Point-to-line distance residual The expression is:
[0126] ,
[0127] In the formula, , To match the two endpoints on the edge line, This refers to the vector cross product operation. Let be the 2-norm of the vector.
[0128] Point-to-surface distance residual The expression is:
[0129] ,
[0130] In the formula, To match the unit normal vector of the plane, To match a point on the plane.
[0131] A pose estimation optimization equation is constructed with the objective of minimizing the sum of weighted residuals for all feature points. To reduce the interference of outliers on the optimization results, all residual terms are weighted using the Huber robust kernel function. The expression for the Huber kernel function is:
[0132] ,
[0133] In the formula, The output value of the robust kernel function. The residual value, The kernel function threshold can be set to 0.1m.
[0134] The objective function of the pose estimation optimization equation is:
[0135] ,
[0136] In the formula, This is the pose transformation matrix of the current frame relative to the previous frame. For the set of edge feature points, The set of feature points is a planar feature point set. The Levenberg-Marquardt nonlinear optimization algorithm is used to solve the above optimization equations to obtain the pose transformation of the current frame. The cumulative pose transformation is used to obtain the global pose of the current frame. The selected point cloud of the current frame is then projected onto the global coordinate system according to the global pose to update the global point cloud map.
[0137] After solving the pose for the current frame, the feature residual distribution and the number of effective feature points are statistically analyzed between the edge feature point set and the planar feature point set of the current frame. The dispersion of the feature residuals is expressed as the standard deviation of the residuals. Representation, number of effective feature points This refers to the total number of interior points whose residuals are less than a set threshold during the registration process.
[0138] Based on statistical results, the threshold parameters corresponding to the four types of geometric decision constraints are dynamically adjusted. The specific adjustment rules are as follows: when the standard deviation of the feature residuals... When the residual value exceeds the set residual threshold, the current scene is deemed to have strong interference, and the high confidence threshold corresponding to the rigid structure retention criterion is simultaneously increased. Narrowing the near-grounding point compensation criterion corresponding to the near-grounding height tolerance This enhances the point cloud filtering strength and reduces the interference of unstable points on registration; when the number of effective feature points... When the number falls below a set threshold, the current effective geometric constraints are deemed insufficient, and the far endpoint confidence threshold corresponding to the far endpoint retention criterion is lowered. Relaxing the near-ground height tolerance corresponding to the near-grounding point compensation criteria And lower the near-location confidence threshold Supplementing effective geometric constraints helps prevent pose calculation failures due to insufficient features.
[0139] During threshold adjustment, parameter amplitude limits and smoothing coefficients are set, with each adjustment not exceeding 10% of the original parameter value. A moving average is used to smooth the adjusted parameters, preventing frequent threshold parameter jumps. The adjusted threshold parameters are then applied to calculate the point cloud retention indicator function for the next frame of laser point cloud data, achieving online adaptive closed-loop calibration of the selection strategy.
[0140] As a preferred implementation, a time-consistency weighted soft screening mechanism can be used instead of the aforementioned binary hard screening mode. A single-frame stable prior score is calculated for each laser point. This single-frame stable prior score is obtained by fusing the number of geometric decision constraints satisfied by the laser point with the semantic confidence of stable structural points, and its value range is [value range missing]. The single-frame stable prior score is calculated using the following formula:
[0141]
[0142] In the formula, For the first The single-frame stable prior score of each laser point This represents the number of geometric constraints satisfied at this point, with a value ranging from 0 to 4. The semantic confidence of the stable structural point at this point.
[0143] Using the pose transformation matrix obtained from the previous frame Project the laser point cloud of the current frame onto the coordinate system of the previous frame; for each laser point, search for the coordinates of the previous frame. Given a set of neighboring points, calculate the average geometrical matching residual between the given point and its neighbors. Calculate the timing consistency score based on the matching residuals:
[0144] ,
[0145] In the formula, For the first Temporal consistency score of each laser point The smoothing coefficient can be set to 0.2m. Multiplying the single-frame stability prior score by the temporal consistency score yields the final stability weight for each laser point:
[0146] ,
[0147] In the formula, For the first The final stable weight of each laser point, with a value range of [value range missing]. .
[0148] When constructing the pose estimation optimization equation, the final stable weights of each laser point are substituted into the equation, and the residual terms of the corresponding features are weighted. The optimized objective function is then updated as follows:
[0149]
[0150] Feature points with higher stability weights contribute more to pose optimization, thereby preserving effective edge information while suppressing the interference of instantaneous noise in a single frame, thus improving the stability and accuracy of pose solving.
[0151] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several improvements without departing from the principle of the present invention, and these improvements should also be considered within the scope of protection of the present invention.
Claims
1. A method for laser radar point cloud screening and mapping based on semantic-geometric joint optimization, characterized in that: Includes the following steps: S1: Obtain the original laser point cloud, perform block sampling and scale normalization processing on the original laser point cloud, input the processed point cloud into a pre-trained local geometric network, and obtain the semantic confidence of the stable structure point corresponding to each laser point. S2: Based on the semantic confidence of the stable structural points, and combined with four types of geometric decision constraints, namely the road surface point retention criterion, the rigid structure retention criterion, the near grounding point compensation criterion, and the far end point retention criterion, calculate the point cloud retention indicator function, retain the laser points that meet the retention conditions as stable structural points, remove the laser points that do not meet the retention conditions, and output the filtered point cloud. S3: Input the filtered point cloud into the laser odometry, extract the edge feature point set and the planar feature point set respectively, construct the pose estimation optimization equation with the goal of minimizing the feature residual, solve it to obtain the pose of the current frame, and update the global point cloud map according to the pose of the current frame. S4: Statistically analyze the feature residual distribution and effective feature point count of the current frame edge feature point set and planar feature point set. Based on the statistical results, dynamically adjust the threshold parameters corresponding to the four types of geometric decision constraints. Apply the adjusted threshold parameters to the calculation of the point cloud retention indicator function of the laser point cloud in the next frame.
2. The method of claim 1, wherein: In S1, the training process of the local geometric network includes: The point-by-point semantic labels of the original point cloud are remapped to binary labels, with the labels corresponding to unstable categories assigned a value of 0 and the labels corresponding to stable structure categories assigned a value of 1. The local geometric network is trained using the normalized point blocks as input and the binary cross-entropy loss function. The trained network outputs the point-by-point semantic confidence of stable structure points with values ranging from 0 to 1.
3. The method of claim 2, wherein: The local geometric network adopts a point-level semantic segmentation architecture based on PointNet++, including a hierarchical feature extraction module and a feature propagation module; The hierarchical feature extraction module selects the center point by sampling the farthest point, constructs a local neighborhood by using spherical neighborhood query, and inputs the three-dimensional coordinate difference between the neighborhood point and the center point and the reflection intensity into a shared multilayer perceptron, and obtains local geometric features by max pooling. The feature propagation module uses distance-weighted interpolation to restore the original point resolution layer by layer, and outputs the semantic confidence of the stable structural points through a fully connected layer and a Sigmoid function.
4. The method of claim 1, wherein: In S1, the specific process of block sampling and scale normalization is as follows: S11: Divide each frame of the original laser point cloud into several point blocks according to a fixed number of points, and calculate the center point coordinates of each point block using the following formula: , wherein, is the coordinate of the center point of the jth point block, is the number of fixed points contained in a single point block, is the jth point block, is the ith laser point in the point block, is the three-dimensional coordinate of the laser point of the ith laser point in the jth point block. The maximum Euclidean distance from each point within a block to its corresponding center point is determined as the scale factor of that block, and the scale factor is calculated using the following formula: , In the formula, Let j be the scale factor of the j-th point block. Center point The three-dimensional coordinate components; S12: Based on the center point coordinates and scale factor of the block, normalize the three-dimensional coordinates of each point within the block using the following formula: , The reflection intensity of the laser point remains constant during the normalization process.
5. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 1, characterized in that: In S2, the four types of geometric decision constraints are specifically as follows: Road surface point retention criteria: When the height of the laser point is lower than a set height threshold, a retention decision is triggered. The expression is: , In the formula, The determination results of the criteria for retaining road surface points, For indicator functions, Let i be the height coordinates of the i-th laser point. The set height threshold; Rigid structure retention criterion: When the semantic confidence of the stable structural point of the laser spot is greater than the set high confidence threshold, a retention decision is triggered. The expression is: , In the formula, The determination results of the retention criteria for rigid structures are retained. The semantic confidence of the stable structural point for the i-th laser point. The set high confidence threshold; Near-ground point compensation criterion: When the horizontal distance from the laser point to the radar origin is less than the set near-distance threshold, meets the near-ground determination, the height is lower than the set near-ground height threshold, and the semantic confidence of the stable structure point is greater than the set near-ground confidence threshold, a retention determination is triggered. The expression is: , In the formula, The determination result of the near-grounding point compensation criterion. Let be the horizontal distance from the i-th laser point to the radar origin. For the set proximity threshold, For near-ground determination results, For the set near-ground altitude threshold, The set near-site confidence threshold; The expression for the near-ground determination is: , In the formula, For the bird's-eye view grid where the i-th laser point is located, For grid The lowest height inside, The set near-ground altitude tolerance; Remote endpoint retention criterion: When the horizontal distance from the laser point to the radar origin is greater than or equal to a set remote distance threshold, and the semantic confidence of the stable structure point is greater than a set remote endpoint confidence threshold, a retention decision is triggered. The expression is: , In the formula, The determination result of the criterion is retained for the remote endpoint. For the set distance threshold, The set confidence threshold for the remote endpoint.
6. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 5, characterized in that: In S2, the point cloud preservation indicator function is calculated using the following formula: , In the formula, To retain the indicator function for the point cloud corresponding to the i-th laser point, For logical OR operation.
7. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 1, characterized in that: In S3, the pose estimation optimization equation aims to minimize the sum of the point-to-line distance residuals of edge features and the point-to-plane distance residuals of planar features. All residual terms are weighted using a robust kernel function.
8. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 1, characterized in that: In S4, the specific rules for dynamically adjusting the threshold parameter based on the statistical results are as follows: When the dispersion of the feature residuals is higher than the set residual threshold, the high confidence threshold corresponding to the rigid structure retention criterion is increased simultaneously, and the near-ground height tolerance corresponding to the near-ground point compensation criterion is narrowed to enhance the point cloud filtering intensity. When the number of valid feature points is lower than the set threshold, the confidence threshold of the far endpoint retention criterion is reduced, the near-ground height tolerance of the near-ground point compensation criterion is relaxed, and the confidence threshold of the near-ground point is reduced to supplement the valid geometric constraints.
9. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 2, characterized in that: When training the local geometric network, a joint loss function is used, which is obtained by weighted summation of binary cross-entropy loss and geometric regularization loss; The geometric regularization loss includes a height regularization term, a local plane regularization term, and a distance weighting term: The height regularization term is used to force the semantic confidence of stable structural points to approach 1 for laser points below the height threshold; The local plane regularization term is used to adjust the classification loss weight of the corresponding point based on the local plane fitting residual of each point block. The smaller the residual, the higher the loss weight. The distance-weighted term is used to adjust the classification loss weight of the corresponding point based on the distance from the laser point to the radar origin. The farther the distance, the lower the loss weight.
10. The lidar point cloud screening and mapping method based on semantic-geometric joint optimization as described in claim 1, characterized in that: In S3, before substituting the filtered point cloud into the pose estimation optimization equation, a stable weight calculation step is also included: The single-frame stable prior score for each retained laser point is calculated; The single-frame stable prior score is obtained by fusing the number of geometric decision constraints satisfied by the laser point with the semantic confidence of the stable structure point; Using the pose of the previous frame, the laser points preserved in the current frame are projected onto the coordinate system of the previous frame, and the geometric matching residual between each laser point and the neighboring points of the previous frame is calculated to obtain the temporal consistency score. The final stable weight of each laser point is obtained by multiplying the single-frame stable prior score with the temporal consistency score. Substitute the final stable weights of each laser point into the pose estimation optimization equation, and weight the residual terms of the corresponding features.
