Point cloud dynamic object filtering method based on ray casting and probability estimation
Through methods based on ray casting and probability estimation, combined with dynamic point clustering and particle swarm models, the problem of dynamic object detection in laser point clouds in urban environments is solved, high-precision dynamic object filtering is achieved, and laser SLAM mapping is ensured accuracy and stability.
Patent Information
- Application Number
- CN202410444779.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-08-23
AI Technical Summary
In urban environments, existing technologies are difficult to effectively detect and remove dynamic objects in laser point clouds, resulting in artifacts in the laser SLAM mapping process, affecting positioning and navigation performance, and the versatility and robustness of semantic segmentation networks. The performance is poor, the amount of calculation is large, and the random movement of dynamic objects causes the failure of traditional methods.
Adopt a point cloud dynamic object filtering method based on ray casting and probability estimation to achieve initial segmentation of dynamic objects through ray casting. Combined with dynamic point clustering and particle swarm models, multiple observation results are integrated to estimate the probability of dynamic occupancy states, improving dynamic Object filtering accuracy.
It improves the accuracy and stability of dynamic object detection, reduces interference, ensures the continuity and effectiveness of detection, and achieves high-precision laser point cloud dynamic object filtering, with an average detection accuracy of 87.02%.
Smart Images

Figure CN118537568A
Abstract
Description
Technical Field
[0001] The invention relates to the field of laser point cloud processing and laser SLAM, and in particular to a point cloud dynamic object filtering method based on ray projection and probability estimation. Background Art
[0002] In recent years, the application of LiDAR in fields such as autonomous driving, robot navigation and environmental perception has become increasingly widespread. However, laser point clouds obtained in urban environments often contain dynamic moving objects, such as cars and pedestrians. Integrating this information into the map will cause artifact problems that may degrade the localization and navigation performance of mobile robots. Because common dynamic moving objects usually only occupy space temporarily, this may lead to misidentification of static features within the map. Therefore, laser point cloud dynamic object filtering becomes a key and necessary condition to reduce these negative effects, which can detect and remove dynamic points caused by such objects.
[0003] At present, most detection methods rely on deep learning technology, using semantic segmentation networks combined with artificially given prior information to try to simply filter out several categories of dynamic moving objects. However, in urban environments, the movement of dynamic objects is usually random, such as vehicles parked on the side of the road. Therefore, this type of method has major problems, which may cause laser SLAM to have problems such as insufficient features and positioning degradation during the mapping process due to the segmentation of some static points. At the same time, the versatility and robustness of semantic segmentation networks are not good, and the amount of calculation is large.
[0004] In the laser SLAM mapping process, the sampling of the laser radar is usually continuous, and the construction of the three-dimensional point cloud map is realized by accumulating the pose. Although some methods try to detect the dynamic points that have changed by comparing adjacent frames (such as the depth comparison method based on visibility), this method has limitations, especially when the dynamic object does not have enough displacement within the two-frame sampling period, the method fails. At the same time, the laser radar sampling will also have insufficient sampling problems such as sparse data due to different beams. Summary of the invention
[0005] In order to solve the problem of artifacts in laser point cloud maps caused by dynamic objects during laser SLAM mapping in urban environments, the present invention proposes a point cloud dynamic object filtering method based on ray casting and probability estimation. By utilizing the assumption that moving objects are temporarily occupied in consecutive frames, the initial segmentation of dynamic objects is achieved based on ray casting, and the movement modeling of the initial segmentation points is performed. The results of multiple observations are fused in the form of a posteriori updates to realize the probability estimation of dynamic occupancy states, so as to improve the accuracy of dynamic object filtering in laser point clouds.
[0006] The technical solution of the present invention is as follows: A point cloud dynamic object filtering method based on ray casting and probability estimation comprises the following steps:
[0007] Step 1: Obtain the laser frame point cloud, filter outliers and segment the ground in turn; calculate the laser frame pose based on the laser inertial odometer; construct a global occupied voxel map; traverse the global occupied voxel map through ray casting to obtain the penetrating voxel sequence, and use dynamic point clustering to obtain the initial dynamic object point cloud cluster;
[0008] Step 2: According to the initial dynamic object point cloud cluster, the voxel state of the global occupied voxel map is updated, and the particle swarm is initialized at the same time; according to the moving speed and time step of the dynamically occupied voxels, the particle state is updated and the state probability parameters of the voxels at the sampling position are predicted. Through the posterior observation state probability parameter estimation, the dynamic occupied voxel probability parameters are updated, and the dynamic point cloud is filtered according to the given parameters to realize the dynamic object filtering of the laser point cloud.
[0009] The outlier filtering is achieved by performing local feature statistics and field feature comparison on the laser frame point cloud; the local features include the distance mean and the distance standard deviation; the laser frame point cloud after outlier filtering is ground segmented by the Patchwork algorithm, and non-ground points are extracted to form a second point cloud.
[0010] The laser inertial odometer is used to obtain the first pose of all laser frame point clouds, and the second point clouds of multiple frames are adaptively meshed according to the first pose to construct a global occupancy voxel map;
[0011] The moving object has temporary occupancy in consecutive frames. According to the second point cloud and the first pose, a projection beam is constructed with the optical center of the second point cloud as the origin. The ray casting algorithm is used to project all beams into the global occupied voxel map to realize ray casting traversal and obtain the penetrating voxel sequence.
[0012] The point cloud within the penetrating voxel sequence is extracted to form a third point cloud. The third point cloud is used as the seed point for nearest neighbor search. The searched points and the third point cloud are subjected to dynamic point clustering using the HDBSCAN algorithm to obtain the initial dynamic object point cloud cluster.
[0013] The adaptive grid division is specifically as follows: initializing a VDB grid object according to a given global grid resolution, using the first pose of the laser frame point cloud to transform the second point cloud, filling the grid data in sequence, and storing the point cloud spatial position information and voxel state information in the grid.
[0014] The penetrating voxel sequence is specifically a sequence of voxels penetrated in the physical three-dimensional space after the global occupied voxel map is traversed by ray casting.
[0015] The step 2 comprises:
[0016] According to the point cloud spatial position of the initial dynamic object point cloud cluster, the dynamic occupancy state is mapped to the global occupied voxel map to obtain a group of dynamically occupied voxels. At the same time, the particle swarm state is initialized based on the centroid position of the dynamically occupied voxels. One particle swarm corresponds to a dynamic object enveloping a dynamic object point cloud cluster. The speeds of voxels in different states are different. According to the speed collected by the particle swarm, the moving speed of the dynamically occupied voxels is constructed.
[0017]
[0018] where ω p is the weight of a single particle, v p is the velocity value collected by a single particle, D indicates that the voxel state is dynamically occupied, t is the current sampling time, and i is the dynamically occupied voxel index;
[0019] According to the time step, the state of each particle in the particle swarm is updated through the constant speed motion model constraint, that is, the position x of the particle p and speed v p :
[0020]
[0021] where x ′ p and v ′ p are the position before updating and the speed collected before updating, d t is the interval sampling time of the laser radar, n x and n v is noise, which obeys Gaussian distribution;
[0022] According to the particle swarm position update result, the prior state probability parameters of the particle sampling position voxel are predicted:
[0023]
[0024] in, is an exponential function-based attenuation factor used to reduce the weight of the cumulative parameter; α S , α D , α F They are the state probability parameters of the voxels stored corresponding to the static occupied state, the state probability parameters of the voxels stored corresponding to the dynamic occupied state, and the state probability parameters of the voxels stored corresponding to the free state;
[0025] According to the updated position of the particle swarm and the state saved by the voxel at the particle sampling position, the posterior observation state probability parameters are estimated based on the Beta distribution kernel function:
[0026]
[0027] Where k(x) is the Beta distribution kernel function, which is used to represent the relationship between position and occupancy probability, x is the centroid position of the particle sampling position voxel, and x p is the position of the particle, y is the occupancy probability of the voxel at the particle sampling position; Δα O is the state probability parameter of the occupancy state estimated by the posterior observation, including dynamic occupancy and static occupancy, Δα F The state probability parameters of the free states estimated a posteriori;
[0028] When the state of the voxel stored at the particle sampling position is dynamically occupied, the prior state probability parameters and the posterior observed state probability parameters are fused to update the state probability parameters in the voxel:
[0029]
[0030] Where C(α)=tanh(α / α c ) is used to evaluate parameter reliability, α c is a given global credit threshold, β is the balance ratio used to control static occupancy and dynamic occupancy;
[0031] Finally, for the voxels in the global occupancy voxel map with dynamically occupied status, the confidence is calculated according to the state probability parameter, and the dynamic object point cloud and the static object point cloud are filtered out according to the given global dynamic occupancy filtering threshold.
[0032] Beneficial effects of the present invention:
[0033] (1) This method proposes a fast detection of dynamic objects based on ray casting, introduces ground segmentation and dynamic point clustering, further reduces the interference caused by positions with large incident angles, and ensures detection accuracy and stability.
[0034] (2) This method proposes motion modeling and dynamic occupancy state probability estimation, and integrates the results of multiple observations to improve the effectiveness and continuity of dynamic object segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flowchart of a method for filtering dynamic objects in point clouds based on ray casting and probability estimation;
[0036] Figure 2 A schematic diagram of light projection provided for this embodiment;
[0037] Figure 3 This is a diagram of the dynamic object filtering effect provided in this embodiment. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, rather than all of the embodiments. The specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. Based on the described embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art are within the scope of protection of the present disclosure. In addition, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0039] This example provides a point cloud dynamic object filtering method based on ray casting and probability estimation. Figure 1 and Figure 2 As shown, the following steps are included:
[0040] Step 1: Obtain laser frame point cloud, filter outliers and segment the ground for the laser frame point cloud, calculate the laser frame pose based on the laser inertial odometer, build a global occupancy voxel map, obtain the dynamic area through ray casting, and use dynamic point clustering to obtain a priori dynamic object point cloud clusters;
[0041] In some embodiments, the method specifically includes the following steps:
[0042] Step 1.1: Obtain all laser frame point clouds, perform statistical outlier filtering on the first point cloud, and then use the Patchwork algorithm to perform ground segmentation to extract non-ground points to form the second point cloud.
[0043] Step 1.2: Obtain the first pose of all laser frame point clouds through the laser inertial odometry, and adaptively mesh the second point clouds of multiple frames according to the first pose to construct a global occupancy voxel map.
[0044] Step 1.3: Based on the assumption that the moving object is temporarily occupied in consecutive frames, a projection beam is constructed with the optical center of the second point cloud as the origin according to the second point cloud and the first pose, and the beam is projected into the global occupied voxel map using the Ray-Casting algorithm to obtain a penetrating voxel sequence; the point cloud within the penetrating voxel sequence is extracted to form a third point cloud.
[0045] Step 1.4: Using the HDBSCAN algorithm, cluster the points obtained by the third point cloud and the nearest neighbor search of the third point cloud as seed points to obtain the initial dynamic object point cloud cluster.
[0046] Step 2: According to the initial dynamic object point cloud cluster, initialize the dynamically occupied voxels and construct a particle swarm. According to the moving speed and time step of the dynamically occupied voxels, update the particle state and predict the state probability parameters of the voxels at the sampling position. Through the posterior observation state probability parameter estimation, update the dynamically occupied voxel probability parameters to achieve dynamic object filtering.
[0047] Step 2.1: Based on the initial dynamic object point cloud cluster, update the corresponding voxel state to dynamic occupation, and initialize the particle swarm parameters. The speeds of voxels in different states are different. Based on the speed collected by the particle swarm, construct the moving speed of the dynamically occupied voxels.
[0048]
[0049] where ω p is the weight of a single particle, v p The velocity value collected for a single particle.
[0050] Step 2.2: Update the particle's position x according to the time step through the constant velocity motion model constraint p and particle velocity v p :
[0051]
[0052] where x ′ p and v ′ p is the position before updating and the speed collected before updating, d t is the interval sampling time of the laser radar, n x and n v is the noise, which follows Gaussian distribution.
[0053] Step 2.3: According to the particle group position update result, predict the state probability parameters of the particle sampling position voxel:
[0054]
[0055] in, Is a decay factor based on an exponential function, used to reduce the weight of the cumulative parameter. S , α D , α F The state probability parameters of the voxels corresponding to the three states of static occupation, dynamic occupation, and free are stored respectively.
[0056] Step 2.4: According to the updated position of the particle swarm and the state saved by the voxel of the particle sampling position, the posterior observation state probability parameters are estimated based on the Beta distribution kernel function:
[0057]
[0058] Where k(x) is the Beta distribution kernel function, which is used to represent the relationship between position x and occupancy state probability y. O is the state probability parameter of the occupancy state estimated by the posterior observation, including dynamic occupancy and static occupancy, Δα F represents the state probability parameter of the free state estimated from the posterior observations.
[0059] Step 2.5: Get all dynamically occupied voxels at the particle sampling position, fuse the prior state probability parameters and the posterior observed state probability parameters, and update the state probability parameters within the voxel:
[0060]
[0061] Where C(α)=tanh(α / α c ) is used to evaluate parameter reliability, α c is a given global credit threshold, and β is a balance ratio for controlling static occupancy and dynamic occupancy.
[0062] Step 2.6: Finally, the dynamic object point cloud and the static object point cloud are filtered out according to the given global dynamic occupancy filtering threshold.
[0063] This embodiment performs a laser point cloud dynamic object filtering test on the urban autonomous driving KITTI dataset. The average dynamic point cloud detection accuracy is 87.02%. According to the experimental test results, the method proposed in the present invention can achieve high-precision laser point cloud dynamic object filtering.
[0064] Table 1 Dynamic point cloud accuracy (DA) of the detection results of the method of the present invention, unit %
[0065]
[0066] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A point cloud dynamic object filtering method based on ray casting and probability estimation, characterized in that: The steps include: Step 1: Obtain the laser frame point cloud, filter outliers and segment the ground in turn; calculate the laser frame pose based on the laser inertial odometer; construct a global occupied voxel map; traverse the global occupied voxel map through ray casting to obtain the penetrating voxel sequence, and use dynamic point clustering to obtain the initial dynamic object point cloud cluster; Step 2: According to the initial dynamic object point cloud cluster, the voxel state of the global occupied voxel map is updated, and the particle swarm is initialized at the same time; according to the moving speed and time step of the dynamically occupied voxels, the particle state is updated and the state probability parameters of the voxels at the sampling position are predicted. Through the posterior observation state probability parameter estimation, the dynamic occupied voxel probability parameters are updated, and the dynamic point cloud is filtered according to the given parameters to realize the dynamic object filtering of the laser point cloud.
2. The point cloud dynamic object filtering method based on ray casting and probability estimation according to claim 1, characterized in that: The outlier filtering is achieved by performing local feature statistics and field feature comparison on the laser frame point cloud; the local features include the distance mean and the distance standard deviation; the laser frame point cloud after outlier filtering is ground segmented by the Patchwork algorithm, and non-ground points are extracted to form a second point cloud.
3. The point cloud dynamic object filtering method based on ray casting and probability estimation according to claim 2, characterized in that: The laser inertial odometer is used to obtain the first pose of all laser frame point clouds, and the second point clouds of multiple frames are adaptively meshed according to the first pose to construct a global occupancy voxel map; The moving object has temporary occupancy in consecutive frames. According to the second point cloud and the first pose, a projection beam is constructed with the optical center of the second point cloud as the origin. The ray casting algorithm is used to project all beams into the global occupied voxel map to realize ray casting traversal and obtain the penetrating voxel sequence. Extract the point cloud in the penetrating voxel sequence to form a third point cloud, use the third point cloud as the seed point to perform nearest neighbor search, and use the HDBSCAN algorithm to perform dynamic point clustering on the searched points and the third point cloud to obtain the initial dynamic object point cloud cluster; The penetrating voxel sequence is specifically a sequence of voxels penetrated in the physical three-dimensional space after the global occupied voxel map is traversed by ray casting.
4. The point cloud dynamic object filtering method based on ray casting and probability estimation according to claim 3 is characterized in that: The adaptive grid division is specifically as follows: initializing a VDB grid object according to a given global grid resolution, using the first pose of the laser frame point cloud to transform the second point cloud, filling the grid data in sequence, and storing the point cloud spatial position information and voxel state information in the grid.
5. The point cloud dynamic object filtering method based on ray casting and probability estimation according to any one of claims 1 to 4, characterized in that: The step 2 comprises: According to the point cloud spatial position of the initial dynamic object point cloud cluster, the dynamic occupancy state is mapped to the global occupied voxel map to obtain a group of dynamically occupied voxels. At the same time, the particle swarm state is initialized based on the centroid position of the dynamically occupied voxels. One particle swarm corresponds to a dynamic object enveloping a dynamic object point cloud cluster. The speeds of voxels in different states are different. According to the speed collected by the particle swarm, the moving speed of the dynamically occupied voxels is constructed. where ω p is the weight of a single particle, v p is the velocity value collected by a single particle, D indicates that the voxel state is dynamically occupied, t is the current sampling time, and i is the dynamically occupied voxel index; According to the time step, the state of each particle in the particle swarm is updated through the constant speed motion model constraint, that is, the position x of the particle p and speed v p : where x ′ p and v ′ p are the position before updating and the speed collected before updating, d t is the interval sampling time of the laser radar, n x and n v is noise, which obeys Gaussian distribution; According to the particle swarm position update result, the prior state probability parameters of the particle sampling position voxel are predicted: a ′ F =c dt (a F +a D )-a ′ D in, is an exponential function-based attenuation factor used to reduce the weight of the cumulative parameter; α S , α D , α F They are the state probability parameters of the voxels stored corresponding to the static occupied state, the state probability parameters of the voxels stored corresponding to the dynamic occupied state, and the state probability parameters of the voxels stored corresponding to the free state; According to the updated position of the particle swarm and the state saved by the voxel at the particle sampling position, the posterior observation state probability parameters are estimated based on the Beta distribution kernel function: Where k(x) is the Beta distribution kernel function, which is used to represent the relationship between position and occupancy probability, x is the centroid position of the particle sampling position voxel, and x p is the position of the particle, y is the occupancy probability of the voxel at the particle sampling position; Δα O is the state probability parameter of the occupancy state estimated by the posterior observation, including dynamic occupancy and static occupancy, Δα F The state probability parameters of the free states estimated a posteriori; When the state of the voxel stored at the particle sampling position is dynamically occupied, the prior state probability parameters and the posterior observed state probability parameters are fused to update the state probability parameters in the voxel: Where C(α)=tanh(α / α c ) is used to evaluate parameter reliability, α c is a given global credit threshold, β is the balance ratio used to control static occupancy and dynamic occupancy; Finally, for the voxels in the global occupancy voxel map with dynamically occupied status, the confidence is calculated according to the state probability parameter, and the dynamic object point cloud and the static object point cloud are filtered out according to the given global dynamic occupancy filtering threshold.
Citation Information
Cited By
Probability plane voxel map recursive construction and updating method for laser speedometer
CN121259213A
Three-dimensional point cloud dynamic object deletion method and three-dimensional reconstruction equipment
CN121353612A
Three-dimensional point cloud dynamic object deletion method and three-dimensional reconstruction device
CN121353612B
