Laser radar point cloud noise reduction method based on improved DBSCAN

By calculating the Euclidean distance distribution matrix and least square method fitting of the lidar point cloud data set, combined with the clustering evaluation index, the parameters of the DBSCAN algorithm are automatically optimized, which solves the adaptive problem of parameter selection in the DBSCAN algorithm and achieves high efficiency. LiDAR point cloud noise reduction effect.

CN118747725AActive Publication Date: 2024-10-08HUNAN UNIV OF TECH

Patent Information

Application Number
CN202410913853.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The selection of neighborhood radius and adjacent point threshold in the DBSCAN algorithm lacks adaptability, resulting in unstable lidar point cloud noise reduction effect and inability to realize automatic parameter adjustment.

Method used

By calculating the Euclidean distance distribution matrix of the LiDAR point cloud data set, using the least squares method to fit the distance curve, determine the optimal neighborhood radius and adjacent point threshold, and combine the clustering evaluation index to automatically optimize the parameters of the DBSCAN algorithm.

Benefits of technology

Adaptive denoising of lidar point clouds has been achieved, and the denoising accuracy, noise recall rate and origin retention rate have reached more than 90%, reducing the need for manual parameter adjustment and improving noise reduction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747725A_ABST
    Figure CN118747725A_ABST
Patent Text Reader

Abstract

The invention discloses a laser radar point cloud noise reduction method based on an improved DBSCAN, and relates to the technical field of laser radar data processing. The method aims at solving the problem that due to the fact that numerous differences exist between the neighborhood radius and the adjacent point threshold value in the DBSCAN algorithm, self-adaptive noise reduction cannot be achieved. According to the laser radar point cloud noise reduction method based on the improved DBSCAN, the neighborhood radius and the adjacent point threshold value are calculated according to the laser radar point cloud data set, the optimal neighborhood radius and the adjacent point threshold value are calculated according to the clustering evaluation index, and the laser radar point cloud noise reduction of the DBSCAN is realized according to the optimal neighborhood radius and the adjacent point threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of laser radar data processing. Background Art

[0002] Due to factors such as sensor errors and environmental interference, point cloud data often contains noise such as outliers and stray points, which reduce the quality of subsequent data processing and analysis. Traditional denoising methods are mostly filtering algorithms based on method libraries such as statistical filtering, bilateral filtering, and radius filtering. Inspired by one-dimensional and two-dimensional data clustering, the density-based spatial clustering algorithm (Density-Based Spatial Clustering of Applications with Noise, DBSCAN) has also been gradually applied to point cloud denoising.

[0003] Ma et al. proposed an algorithm combining DBSCAN with wave spectrum to successfully eliminate noise photons below the water surface; Wei Shuo et al. performed noise reduction by calculating point density to cluster point clouds; Zhao Kai et al. divided the point cloud data into voxel grids to reduce the domain search range of the DBSCAN algorithm, and Tao Zeyu et al. then used the rasterization network to find the grid with the largest point cloud density to find the clustering radius and complete the lidar point cloud filtering; Zhang et al. proposed a DBSCAN model with an ellipse as the search area to improve the accuracy of ground height estimation; Pan Chao et al. then used DBSCAN in the elliptical search area combined with statistical filtering for denoising to obtain signal point cloud data.

[0004] However, these algorithms do not consider the selection of two important parameters in the DBSCAN algorithm, Eps (neighborhood radius) and Minpts (near point threshold), and mainly select them manually or set them empirically. However, different parameters will lead to different denoising effects in experimental data, and adaptive denoising cannot be achieved. Summary of the invention

[0005] The present invention aims to solve the problem that adaptive denoising cannot be achieved due to the many differences in neighborhood radius and adjacent point thresholds in the DBSCAN algorithm. A lidar point cloud denoising method based on an improved DBSCAN is now provided.

[0006] The laser radar point cloud denoising method based on the improved DBSCAN includes:

[0007] The neighborhood radius and the adjacent point threshold are calculated according to the lidar point cloud data set, the optimal neighborhood radius and the adjacent point threshold are calculated according to the clustering evaluation index, and the lidar point cloud denoising of DBSCAN is implemented according to the optimal neighborhood radius and the adjacent point threshold.

[0008] Furthermore, the above calculation of the neighborhood radius based on the laser radar point cloud data set includes:

[0009] The lidar point cloud dataset is represented as an n×m matrix, where n is the total number of data points in the lidar point cloud dataset and m is the total number of features of the data points.

[0010] Calculate the Euclidean distance between each pair of data points, and use all Euclidean distances to construct a distance distribution matrix;

[0011] Sort the elements of each row and each column in the distance distribution matrix in ascending order;

[0012] The order of the data point is used as the horizontal coordinate, and the k-th column element of the sorted distance distribution matrix is ​​used as the vertical coordinate to construct the k-th distance curve, 1≤k≤n;

[0013] The least square method is used to fit each distance curve respectively, and the goodness of fit value between the distance curve and the corresponding fitting curve is calculated, and then the optimal order of the fitting curve under the optimal range of the goodness of fit value is obtained, so as to obtain the optimal fitting curve;

[0014] The point with the largest change in the kth best fitting curve is taken as its inflection point, and the distance value corresponding to the inflection point in the kth distance curve is the kth neighborhood radius Eps k .

[0015] Furthermore, the above distance distribution matrix expression is as follows:

[0016] D n*n ={d(i,j)|1≤i≤n,1≤j≤n},

[0017] Among them, d(i,j) represents the Euclidean distance between the i-th data point and the j-th data point.

[0018] Furthermore, each distance curve is fitted using the least squares method, including:

[0019]

[0020] Among them, L is the fitting loss function, y k represents the kth distance curve function, f(x) represents the fitting curve function corresponding to the kth distance curve function, and:

[0021] f(x)=θ0+θ1x+θ2x 2 +…+θ q x q ,

[0022] Among them, x is the variable of the fitting curve function, θ λis the coefficient of the λth term, λ=0,1,2,…,q, where q is the polynomial order of f(x).

[0023] Furthermore, the calculation of the adjacent point threshold according to the lidar point cloud data set includes:

[0024] The neighboring point threshold is calculated according to the following formula:

[0025]

[0026] Among them, Minpts k is the kth neighboring point threshold, 1≤k≤n, β is the noise suppression threshold, and 0≤β<1, P α is the kth neighborhood radius Eps of the αth data point in the lidar point cloud k The number of data points contained in the range, 1≤α≤n.

[0027] Furthermore, the above calculation of the optimal neighborhood radius and adjacent point threshold according to the clustering evaluation index includes:

[0028] The corresponding neighborhood radius and adjacent point threshold Minpts k Bring it into the DBSCAN algorithm for clustering and calculate the clustering evaluation index of the DBSCAN algorithm.

[0029] A pair of neighborhood radius and adjacent point threshold corresponding to the highest value of the clustering evaluation index is selected as the optimal neighborhood radius and adjacent point threshold.

[0030] Furthermore, the clustering evaluation index is calculated according to the following formula:

[0031]

[0032] Among them, CH is the clustering evaluation index, c is the total number of clustering categories, B is the inter-class dispersion, and W is the intra-class dispersion.

[0033] Furthermore, the expression of the above inter-class dispersion B is as follows:

[0034]

[0035] Among them, a j is the number of samples in the jth cluster, c j is the center point of the jth cluster, j = 1, 2, ..., c, and b is the global centroid.

[0036] Furthermore, the expression of the above intra-class dispersion W is:

[0037]

[0038] Among them, D jis the sample set in the jth cluster, γ is D j The sample points in .

[0039] The improved DBSCAN-based laser radar point cloud denoising method described in the present invention determines the parameters suitable for point cloud DBSCAN denoising through the fitting curve of the distance matrix and the clustering evaluation index. In order to verify the effectiveness of the algorithm, it is applied to simple and complex scenes, and the denoising effect is comprehensively evaluated from the aspects of denoising accuracy, noise recall rate, origin retention rate, etc. Simulation experiments show that the present invention can effectively cluster noise and signals in both point cloud models and complex scenes, and the denoising accuracy, noise recall rate, and origin retention rate can be maintained at more than 90%, and the target point cloud can be effectively retained, which makes up for the defects of manual parameter adjustment and inability to switch parameters according to point cloud transformation when using DBSCAN for denoising, reducing manpower and time. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a flow chart of the laser radar point cloud denoising method based on the improved DBSCAN;

[0041] Figure 2 The distance curve and fitting curve diagram when k=100;

[0042] Figure 3 Neighborhood radius curve graph when k=100, where (a) represents the rabbit point cloud, (b) represents the pony point cloud, (c) represents the elephant point cloud, and (d) represents the residential point cloud;

[0043] Figure 4 The noisy point cloud images, where (a) represents the rabbit point cloud, (b) represents the pony point cloud, (c) represents the elephant point cloud, and (d) represents the residential point cloud;

[0044] Figure 5 These are denoised point cloud images, where (a) represents the rabbit point cloud, (b) represents the pony point cloud, (c) represents the elephant point cloud, and (d) represents the residential point cloud. DETAILED DESCRIPTION

[0045] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0046] Specific implementation method 1: refer to Figure 1Specifically describing this embodiment, the improved DBSCAN-based laser radar point cloud denoising method described in this embodiment first calculates the backup neighborhood radius and the adjacent point threshold according to the point cloud set; then calculates the optimal parameters according to the clustering evaluation index; finally, DBSCAN clustering denoising is implemented according to the obtained optimal parameters. The details are as follows:

[0047] The lidar point cloud dataset is represented as a matrix D n*m , the matrix D n*m Each row represents a data point in the lidar point cloud dataset, and each column represents a feature of the data point. n is the total number of data points in the lidar point cloud dataset, and m represents the total number of features of a data point.

[0048] Calculate the Euclidean distance between two data points, then the distance distribution matrix D n*n for:

[0049] D n*n ={d(i,j)|1≤i≤n,1≤j≤n},

[0050] Among them, d(i,j) represents the Euclidean distance between the i-th data point and the j-th data point.

[0051] The distance distribution matrix D n*n The elements of each row in are sorted in ascending order. After sorting, the first column of the matrix is ​​the distance from each data point to itself, that is, d(i,i) = 0. After that, the elements of each column are sorted in ascending order.

[0052] The index of the data point is used as the horizontal coordinate and the elements of the kth column are used as the vertical coordinate to construct the kth distance curve, where 1≤k≤n, 1≤Index≤n. In the kth distance curve, when the horizontal coordinate Index is i, the vertical coordinate is the distance value of the row number i in the kth column.

[0053] The least square method is used to fit each distance curve. The calculation method of the least square method is as follows:

[0054]

[0055] Among them, L is the fitting loss function; y k represents the kth distance curve function; f(x) represents the fitting curve function, and:

[0056] f(x)=θ0+θ1x+θ2x 2 +…+θ q x q ,

[0057] Among them, x is the fitting function variable, θ λis the coefficient of the λth term, λ=0,1,2,…,q, where q is the polynomial order of f(x).

[0058] Calculate the goodness of fit value R between each fitting curve and the corresponding distance curve 2 , according to the set goodness of fit value R 2 The optimal range is then used to find the most suitable order in the fitting curve function, thereby obtaining the best fitting curve. In this embodiment, the optimal range of the goodness of fit value is R 2 ≥0.99.

[0059] The point with the largest change in the kth best fitting curve is taken as its inflection point, and the distance value corresponding to the inflection point in the kth distance curve is the kth neighborhood radius Eps k .

[0060] Calculate the number of data points contained in the neighborhood radius of each inflection point in the lidar point cloud, and use mathematical expectation to generate the neighboring point threshold:

[0061]

[0062] Among them, Minpts k is the kth neighboring point threshold; β is the noise suppression threshold, and 0≤β<1 (β is set to 0.5 in the experiment); P α is the kth neighborhood radius Eps of the αth data point in the lidar point cloud k The number of data points contained in the range, 1≤α≤n.

[0063] The cluster evaluation index (CH) index evaluates the clustering quality by calculating the consistency within the cluster (i.e., the closeness between points in the same cluster) and the separation between clusters (i.e., the distance between different cluster centers). k and Minpts k After that, Eps k and Minpts k Bring it into the DBSCAN algorithm for clustering. The higher the CH index, the better the clustering result. When selecting DBSCAN parameters, you can compare the CH index of different parameter combinations. By calculating the CH index under different neighborhood radius and adjacent point threshold combinations, you can quantitatively evaluate the clustering effect of each combination, and then select the parameter combination with the highest CH index. The corresponding Eps k and Minpts k The optimal method is to finally realize the denoising of LiDAR point cloud.

[0064] The expression for calculating the CH index is:

[0065]

[0066] Among them, c is the total number of cluster categories.

[0067] B is the inter-class dispersion, defined as:

[0068]

[0069] a j is the number of samples in the jth cluster, c j is the center point of the jth cluster, j = 1, 2, ..., c, and b is the global centroid, that is, the average value of all samples.

[0070] W is the intra-class dispersion (intra-class variance), defined as:

[0071]

[0072] Among them, D j is the sample set in the jth cluster, γ is D j The sample points in .

[0073] Specific implementation method 2: refer to Figure 3 to Figure 2 Specifically describe this embodiment, the laser radar point cloud denoising method based on the improved DBSCAN described in this embodiment, taking the Stanford rabbit point cloud model as an example, uses the distance matrix calculation method to measure the distance between each point cloud in the point cloud set. The details are as follows:

[0074] Represent the point cloud dataset as a matrix D n*3 , and then use the Euclidean distance to calculate the distance between each pair of data points in the data set to obtain the distance distribution matrix dist n*n , for the distance distribution matrix dist n*n Sort (rows and columns are in ascending order) to get the distance curve of each column. Use the least squares method to fit each distance curve, and calculate the goodness of fit R to evaluate the quality of the model. 2 , and obtain R 2 The best term k when ≥0.99, R 2 The calculation expression is as follows:

[0075]

[0076] Among them, SS resid is the residual sum of squares, which represents the sum of squares of the differences between the actual observed values ​​and the fitted values; SS total is the total sum of squares, which represents the sum of squares of the differences between the actual observations and their means.

[0077] Figure 2 The distance curve and fitting curve corresponding to the 100th data point are shown. 2=0.9901. Next, calculate the stationary point on the fitting curve. Figure 2 From the mid-distance curve, we can see that the data point that starts to change is near Index = 10000, so the point selected into the neighborhood radius list is the largest inflection point within 0-10000, such as Figure 3 shown.

[0078] When generating Eps k and Minpts k After that, it is brought into the DBSCAN algorithm for clustering. When the calculated CH index is the highest, the parameters at this time are defined as the optimal parameters.

[0079] Based on the above evaluation indicators of denoising effect, this implementation can complete the denoising task without multiple testing parameters, and can improve the noise recall rate to a certain extent.

[0080] Experimental verification

[0081] The experiment first uses the rabbit, pony, and elephant point cloud models in the Stanford database for simulation analysis, and adds Gaussian noise points with a mean of 0 and a standard deviation of 0.1 to the original point cloud to form a noisy point cloud. Then, the public real residential area point cloud provided by NSF (National Science Foundation) is used for testing. The point cloud data in the experiment only includes location information. Based on the above point cloud data, the optimal parameter group calculated according to the method described in this embodiment is listed in Table 1.

[0082] Table 1 The optimal neighborhood radius and adjacent point threshold given by this method

[0083]

[0084] After setting the above optimal parameters, the DBSCAN denoising effects of the rabbit, pony, and elephant point cloud models are shown below. Figure 5 As shown. Figure 5 From the displayed results, it is obvious that this method can filter noise more accurately and leave clear target objects.

[0085] Introducing denoising accuracy P d , noise recall rate R d , origin retention rate R oTo quantitatively compare the denoising degree of the filtering algorithm. Denoising precision refers to the proportion of points correctly marked as noise by the algorithm that are actually noise, reflecting the accuracy of the algorithm in identifying noise; noise recall refers to the proportion of all real noise points correctly marked as noise by the algorithm, measuring the ability of the algorithm to identify noise; origin retention rate refers to the proportion of points that are not marked as noise in the original data that are correctly retained in the clustering results, measuring the ability of the algorithm to denoise while retaining the original information. By comprehensively considering these indicators, the performance of the algorithm can be more comprehensively evaluated. The calculation formulas for each indicator are as follows:

[0086]

[0087] Where N q is the amount of noise filtered; N g is the total noise; N y is the total number of point clouds filtered; N o is the number of signal points in the remaining point cloud; N f is the number of points remaining after filtering. After denoising, N and N q 、N g 、N y 、N o 、N f The number is as shown in the table, where N is the total number of point clouds.

[0088] Table 2 Results after denoising

[0089]

[0090] The evaluation index after noise reduction in this implementation is as follows:

[0091] Table 3 Evaluation indicators after denoising

[0092]

[0093] The denoising accuracy, noise recall rate, and origin retention rate of this implementation in the point cloud model are all kept high. However, due to the complexity of the target objects and environmental information in the residential scene, the noise is easily mixed with the main body, and the denoising accuracy and noise recall rate are slightly reduced, but the overall effect can be maintained well.

[0094] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that the features described in conjunction with a single embodiment may be used in other described embodiments.

Claims

1. A laser radar point cloud denoising method based on improved DBSCAN, characterized in that: include: The neighborhood radius and the adjacent point threshold are calculated according to the lidar point cloud data set, the optimal neighborhood radius and the adjacent point threshold are calculated according to the clustering evaluation index, and the lidar point cloud denoising of DBSCAN is implemented according to the optimal neighborhood radius and the adjacent point threshold.

2. The laser radar point cloud denoising method based on improved DBSCAN according to claim 1, characterized in that: The calculating of the neighborhood radius according to the laser radar point cloud data set includes: The lidar point cloud dataset is represented as an n×m matrix, where n is the total number of data points in the lidar point cloud dataset and m is the total number of features of the data points. Calculate the Euclidean distance between each pair of data points, and use all Euclidean distances to construct a distance distribution matrix; Sort the elements of each row and each column in the distance distribution matrix in ascending order; The order of the data point is used as the horizontal coordinate, and the k-th column element of the sorted distance distribution matrix is ​​used as the vertical coordinate to construct the k-th distance curve, 1≤k≤n; The least square method is used to fit each distance curve respectively, and the goodness of fit value between the distance curve and the corresponding fitting curve is calculated, and then the optimal order of the fitting curve under the optimal range of the goodness of fit value is obtained, so as to obtain the optimal fitting curve; The point with the largest change in the kth best fitting curve is taken as its inflection point, and the distance value corresponding to the inflection point in the kth distance curve is the kth neighborhood radius Eps k .

3. The laser radar point cloud denoising method based on improved DBSCAN according to claim 2 is characterized in that: The distance distribution matrix expression is as follows: D n*n ={d(i,j)|1≤i≤n,1≤j≤n}, Among them, d(i,j) represents the Euclidean distance between the i-th data point and the j-th data point.

4. The laser radar point cloud denoising method based on improved DBSCAN according to claim 2, characterized in that: Each distance curve is fitted using the least squares method, including: Among them, L is the fitting loss function, y k represents the kth distance curve function, f(x) represents the fitting curve function corresponding to the kth distance curve function, and: f(x)=θ0+θ1x+θ2x 2 +…+θ q x q , Among them, x is the variable of the fitting curve function, θ λ is the coefficient of the λth term, λ=0,1,2,…,q, where q is the polynomial order of f(x).

5. The laser radar point cloud denoising method based on improved DBSCAN according to claim 1, characterized in that: Calculating the adjacent point threshold according to the laser radar point cloud data set includes: The neighboring point threshold is calculated according to the following formula: Among them, Minpts k is the kth neighboring point threshold, 1≤k≤n, β is the noise suppression threshold, and 0≤β<1, P α is the kth neighborhood radius Eps of the αth data point in the lidar point cloud k The number of data points contained in the range, 1≤α≤n.

6. The laser radar point cloud denoising method based on improved DBSCAN according to claim 1, 2 or 5, characterized in that: The method of calculating the optimal neighborhood radius and the adjacent point threshold according to the clustering evaluation index includes: The corresponding neighborhood radius and adjacent point threshold Minpts k Bring it into the DBSCAN algorithm for clustering and calculate the clustering evaluation index of the DBSCAN algorithm. A pair of neighborhood radius and adjacent point threshold corresponding to the highest value of the clustering evaluation index is selected as the optimal neighborhood radius and adjacent point threshold.

7. The laser radar point cloud denoising method based on improved DBSCAN according to claim 6, characterized in that: The clustering evaluation index is calculated according to the following formula: Among them, CH is the clustering evaluation index, c is the total number of clustering categories, B is the inter-class dispersion, and W is the intra-class dispersion.

8. The laser radar point cloud denoising method based on improved DBSCAN according to claim 7, characterized in that: The expression of the inter-class dispersion B is as follows: Among them, a j is the number of samples in the jth cluster, c j is the center point of the jth cluster, j = 1, 2, ..., c, and b is the global centroid.

9. The laser radar point cloud denoising method based on improved DBSCAN according to claim 7 or 8, characterized in that: The expression of the intra-class dispersion W is: Among them, D j is the sample set in the jth cluster, γ is D j The sample points in .

Citation Information

Patent Citations

  • Data mining improved type K mean value clustering method based on linear discriminant analysis

    CN103678500A

  • 4D millimeter wave radar point cloud-based vehicle detection method

    CN113537316A

  • Long-distance laser radar point cloud data processing method

    CN114494287A

  • Laser radar point cloud denoising method based on multi-scale noise

    CN115222625A

  • Satellite-borne laser radar data denoising method based on improved density peak clustering

    CN116910458A

Cited By

  • Photon counting data denoising method based on density self-adaption

    CN119669652A

  • A density-adaptive photon counting data denoising method

    CN119669652B