A point cloud instance segmentation method based on supervoxel neighbor clustering

Through the super-voxel proximity clustering method, combined with 3D point cloud feature learning and voxelization, the problem of difficult parameter selection and poor robustness for industrial robot crowd segmentation in the workshop environment is solved, achieving high-precision and efficient instance segmentation, improving The consistency between virtual and actual.

CN117593204BActive Publication Date: 2024-09-20UNIV OF SHANGHAI FOR SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311417216.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-09-20
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

Existing technologies have problems such as difficulty in parameter selection, poor robustness, and low processing efficiency and accuracy in instance segmentation of industrial robot groups in a workshop environment, making it difficult to achieve virtual-real consistency.

Method used

A point cloud instance segmentation method based on supervoxel proximity clustering is adopted. Noiseless three-dimensional point clouds are obtained through preprocessing, a cloth optimization model is constructed, feature learning and voxelization are performed, and a clustering algorithm is combined to achieve high-precision segmentation.

Benefits of technology

It improves the accuracy and efficiency of point cloud instance segmentation and effectively solves the problem of virtual and real consistency of industrial robot groups in the workshop environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593204B
    Figure CN117593204B
Patent Text Reader

Abstract

The present invention proposes a point cloud instance segmentation method based on supervoxel neighbor clustering. First, the three-dimensional point cloud of the target scene is collected, and a noise-free three-dimensional point cloud is obtained by preprocessing; the ground points of the three-dimensional point cloud are segmented by a cloth simulation optimization algorithm, and the target scene is divided into a ground scene and a non-ground scene; based on the three-dimensional point cloud feature learning technology, a coarse segmentation of the target scene is achieved; based on the octree search technology, the point cloud is voxelized, and on this basis, the voxels are initially clustered to achieve the conversion of the point cloud to the supervoxel cloud; the global features of the supervoxel cloud are extracted, the distance matrix between the global features is calculated, and the connectivity between the supervoxels is judged by using the voxel resolution to achieve the instance segmentation of the three-dimensional point cloud of the target type. The present invention adopts a step-by-step three-dimensional point cloud instance segmentation method, which integrates ground recognition, feature learning and voxel construction, and greatly improves the accuracy of point cloud instance segmentation while ensuring the segmentation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional point cloud processing, and in particular to a point cloud instance segmentation method based on supervoxel neighbor clustering. Background Art

[0002] Digital twin is a technology that creates virtual models for all products in the target scene in a digital way and simulates their behavior in the physical environment. It integrates algorithms such as virtual-real combination, multi-source data analysis, and decision-making iteration optimization to achieve the goal of shortening product development cycle and reducing costs. To achieve the above goals and help the implementation of digital twin technology in the manufacturing industry, the virtual-real consistency of the relative position relationship between products should be guaranteed.

[0003] In order to improve the virtual-real consistency of relative position relationship, with the help of mature 3D scanning technology and equipment, the 3D point cloud of the target scene is obtained by the equipment, and the virtual-real consistency of the relative position relationship between products is improved based on multi-source point cloud registration technology. However, due to the variety of products in the workshop, the number of instances of the same category of products is large, and the position errors of each instance are inconsistent, the problem of virtual-real consistency of relative position cannot be effectively solved by direct registration from scene to scene. Therefore, instance segmentation of products of the same category is particularly important, such as the instance segmentation of a single robot in an industrial robot group. The complexity of the workshop environment has brought many technical difficulties to point cloud instance segmentation. First, the parameter selection of the existing technology is difficult to control, and the algorithm for diversified scenes has poor robustness; second, although the data-driven method solves the problem of difficult parameter selection, it requires a large amount of data as support; finally, the large amount of data and inconsistent density of the 3D point cloud itself cause problems such as low processing efficiency and accuracy. The above three types of technical problems have brought great difficulties to the instance segmentation of the workshop industrial robot group. Summary of the invention

[0004] The purpose of the present invention is to provide a high-precision and high-efficiency instance segmentation method.

[0005] To achieve the above object, the present invention proposes a point cloud instance segmentation method based on supervoxel neighbor clustering, comprising the following steps:

[0006] Step 1: Acquire target scene information and preprocess the scene information to obtain noise-free three-dimensional point cloud information;

[0007] Step 2: construct a three-dimensional point cloud cloth optimization model, divide the three-dimensional point cloud information into ground point data and non-ground point data, and realize the ground point data;

[0008] Step 3: Based on the 3D point cloud feature learning technology, complete the rough segmentation of the 3D point cloud of the target scene;

[0009] Step 4: voxelize the three-dimensional point cloud information of the target category after rough segmentation, construct supervoxels, and form a supervoxel cloud;

[0010] Step 5: extracting global attributes of the supervoxel cloud, segmenting the supervoxel cloud, and realizing point cloud instance segmentation of the target category.

[0011] Furthermore, in step 1, a laser radar or a depth camera type three-dimensional point cloud acquisition device is used to scan the target scene to obtain the workshop scene information, and the three-dimensional point cloud is preprocessed by downsampling technology and filtering technology. The downsampling method is as follows:

[0012] Assume that the input three-dimensional point cloud is P = {p i |1≤i≤N}, where N is the number of points in the three-dimensional point cloud;

[0013] Randomly select a point p0 from the three-dimensional point cloud to obtain a sampling point set S = {p0};

[0014] Calculate the distance between the remaining points and point p0, and select the point with the longest distance as p1, and update the sampling point set S = {p0, p1};

[0015] Calculate the distances between the remaining points in the three-dimensional point cloud and the points in the sampling point set S, and select the point with the closest distance to the sampling point to represent the distance to the sampling point set, select the point corresponding to the maximum distance as p2, and update the sampling point set S = {p0, p1, p2}. Repeat the above steps until the number of points in the sampling point set is N'.

[0016] Furthermore, the specific steps of step 2 are as follows:

[0017] 2.1 Flipping the three-dimensional point cloud of the target scene to obtain an inverted version of the three-dimensional point cloud of the target type;

[0018] 2.2 The point cloud matrix, cloth resolution, slope fitting factor and cloth hardness parameters of the traditional cloth simulation algorithm are used as the input of the optimization algorithm to achieve intelligent optimization of parameters;

[0019] 2.3 Based on the optimized parameters, determine the position of the cloth nodes and generate cloth that approximates the ground;

[0020] 2.4 By comparing the distances from all points in the three-dimensional point cloud of the target scene to the cloth curve, the extraction of ground data points can be achieved.

[0021] Furthermore, the specific steps of step 3 are as follows:

[0022] 3.1 semantically annotating the target scene point cloud and obtaining an annotation file, wherein the annotation file and the three-dimensional point cloud data of the target scene constitute a coarse segmentation data set required for subsequent model learning;

[0023] 3.2 Calculate the overall characteristics of the three-dimensional point cloud, including the maximum value, minimum value, average value and variance value in different directions;

[0024] 3.3 Calculate the covariance matrix of the three-dimensional point cloud, and based on the covariance matrix, obtain eigenvalues ​​and eigenvectors thereof to extract local features of the three-dimensional point cloud of the target scene;

[0025] 3.4 Use machine learning classification algorithms to learn different categories of 3D point cloud features and save algorithm parameters;

[0026] 3.5 Use the saved algorithm parameters to infer the three-dimensional point cloud of the target scene, input the subsequent scanned three-dimensional point cloud, and output the rough segmentation results of different semantic products in the target scene.

[0027] Furthermore, in step 4, the three-dimensional point cloud of the target type is gradually voxelized based on the octree algorithm. During the voxelization process, the calculation is stopped when the voxel size reaches the target resolution. The connectivity between the voxels is determined to construct a supervoxel. The specific calculation method is as follows:

[0028] 4.1 Calculate the maximum and minimum values ​​of the three-dimensional point cloud of the target scene in the X, Y, and Z directions, define the voxel resolution size, and obtain the defined resolution;

[0029] 4.2 construct a minimum bounding box of the three-dimensional point cloud of the target scene and divide it into eight sub-cubes;

[0030] 4.3 Determine whether there is a point cloud in the sub-cube respectively. If not, delete the sub-cube; if so, continue to divide the sub-cube into eight new sub-cubes;

[0031] 4.4 Repeat the above process until the voxel resolution is less than or equal to the defined resolution;

[0032] 4.5 Calculate the distance between two voxel blocks, perform preliminary clustering on the voxel blocks, construct supervoxels of the three-dimensional point cloud, and form a supervoxel cloud.

[0033] Furthermore, in step 5, the global attributes of the supervoxel cloud are extracted to form a supervoxel cloud with a macroscopic structure, and the supervoxel cloud is segmented based on a clustering algorithm to achieve point cloud instance segmentation of the target type. The specific steps are:

[0034] 5.1 Calculate the center of each supervoxel block and extract the global features of the supervoxel cloud;

[0035] 5.2 calculating the global feature distance matrix of the supervoxel cloud, and using the defined resolution as prior knowledge, judging different supervoxel instances based on the distance matrix;

[0036] 5.3 Based on the judgment results, upsample different instances to achieve the instance segmentation task of target types in the three-dimensional point cloud of the target scene.

[0037] Compared with the prior art, the advantages of the present invention are:

[0038] The point cloud instance segmentation method based on supervoxel neighbor clustering in the present invention adopts a step-by-step three-dimensional point cloud instance segmentation method, which integrates ground recognition, feature learning and voxel construction. While effectively improving the segmentation efficiency, it greatly improves the accuracy of point cloud instance segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a principle block diagram of an embodiment of a point cloud instance segmentation method based on supervoxel neighbor clustering of the present invention;

[0040] Figure 2 It is a rough segmentation result of an embodiment of the point cloud instance segmentation method based on supervoxel neighbor clustering of the present invention;

[0041] Figure 3 The robot group instance segmentation result diagram of the point cloud instance segmentation method based on supervoxel neighbor clustering of the present invention DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be further described below.

[0043] This embodiment proposes a method for segmenting a point cloud instance of a workshop industrial robot group based on supervoxel neighbor clustering. Figure 1 As shown, the specific steps are as follows:

[0044] Step 1: Use the laser radar of the 3D point cloud acquisition device to scan the workshop scene to obtain the 3D point cloud information of the workshop scene, and complete the preprocessing of the 3D point cloud through the 3D point cloud downsampling technology and statistical filtering technology to obtain noise-free point cloud information.

[0045] Among them, the specific operations of the downsampling technology are as follows: first, for a three-dimensional point cloud containing N points, select any point p0 as the first sampling point, and establish a sampling point set S = {p0}; secondly, calculate the distance to p0 for N-1 points in the three-dimensional point cloud except p0, select the point p1 with the largest distance as the new sampling point, and update the sampling point set S = {p0, p1}; thirdly, calculate the distance from the points in the three-dimensional point cloud except the sampling point set to all points in the sampling point set, and use the minimum distance from any point in the sampling point set as the distance from each other point to the sampling point set, select the point with the largest distance from each point to the sampling point set as the new sampling point p2, and update the sampling point set S = {p0, p1, p2}; finally, repeat the above process until the required N' sampling points are obtained. The point set S = {p0, p1, p2, ..., p N'};

[0046] The specific operations of filtering technology are as follows:

[0047] Based on the prior knowledge of the workshop scene, operations are performed in the Z direction of the scene to intercept the 3D point cloud of the target workshop scene within a certain interval and complete the filtering operation. At the same time, the 3D point cloud outside this area is saved in the memory to facilitate the subsequent program to complete the processing.

[0048] Step 2: Streamline the 3D point cloud of the target workshop scene, improve the subsequent rough segmentation accuracy, build a 3D point cloud cloth optimization model, and divide the workshop 3D point cloud into ground point data and non-ground point data. The specific operations are as follows:

[0049] First, invert the original 3D point cloud and define the formula to simulate the "cloth":

[0050]

[0051] Among them, X(t): the position information of the simulated "cloth" particle at time t;

[0052] F out (X,t): external driving factors such as collision, gravity, etc.;

[0053] F in (X,t): Internal driving factors between particles.

[0054] Assume that the cloth particles are only affected by external factors F during their movement. out (X, t), the update formula of the corresponding particle position is as follows:

[0055]

[0056] Where G is a constant; m is the particle weight, which is usually set to 1;

[0057] Under the premise of a given time step Δt, the above formula can be used to calculate the next position of the particle.

[0058] On this basis, the internal factors of the cloth particles are added, and the displacement calculation formula is as follows:

[0059]

[0060] Where d is the displacement of the particle due to internal force. When b is equal to 1, it means that the particle can move, and when b is equal to 0, it means that the particle cannot move.

[0061] p0: The position of the current particle that has not yet moved, p i : The particle adjacent to p0; n is the unit vector (0,0,1) after normalizing the point in the vertical direction;

[0062] In view of the significant impact of different scenarios on algorithm parameters, a heuristic optimization algorithm is used to autonomously search for parameters. By constructing a fitness function, the iterative optimization technology of the heuristic algorithm is integrated to ultimately achieve adaptive selection of fabric optimization algorithm parameters.

[0063] Step 3: Obtain the streamlined 3D point cloud of the workshop scene through step 2. Based on the 3D point cloud feature learning technology, realize the point cloud segmentation of the robot group, tooling and other objects in the workshop scene, and complete the rough segmentation of the workshop point cloud, such as Figure 2 As shown, the specific operations are as follows:

[0064] First, the robot group, tooling and other products are semantically annotated on the workshop scene point cloud of this embodiment and annotated files are obtained, so that the annotated files and the three-dimensional point cloud data of the workshop scene constitute a coarse segmentation data set required for subsequent model learning;

[0065] Secondly, calculate the overall characteristics of the three-dimensional point cloud of the workshop scene, such as the maximum value, minimum value, average value and variance value in different directions;

[0066] Secondly, the covariance matrix of the three-dimensional point cloud of the workshop scene is calculated, and the eigenvalues ​​and eigenvectors are obtained based on the covariance matrix to extract the local features of the three-dimensional point cloud of the target workshop scene;

[0067] Then, the machine learning classification algorithm is used to learn the features of different categories of three-dimensional point clouds and save the algorithm parameters;

[0068] Finally, the saved algorithm parameters are used to infer the 3D point cloud of the target workshop scene, and the subsequent scanned 3D point cloud is input to output the rough segmentation results of the robot swarm, tooling and other products.

[0069] Step 4: Based on the octree algorithm, the three-dimensional point cloud of the robot group is gradually voxelized. The calculation is stopped when the voxel size reaches the target resolution. On this basis, the connectivity between voxels is determined and supervoxels are constructed. The specific steps are as follows:

[0070] 4.1 Calculate the maximum and minimum values ​​of the three-dimensional point cloud of the workshop scene in this embodiment in the X, Y, and Z directions, define the voxel resolution size, and obtain the defined resolution;

[0071] 4.2 Construct the minimum bounding box of the three-dimensional point cloud of the workshop scene, calculate the bounding box, and divide the bounding box into eight sub-cubes. The length, width and height of each cube are L x , L y and L z ;

[0072] 4.3 Determine whether there is a point cloud in the sub-cube. If not, delete the sub-cube. If there is a point cloud, divide the sub-cube into eight sub-cubes.

[0073] 4.4 Repeat the above process until the voxel resolution is less than or equal to the defined resolution;

[0074] 4.5 Calculate the distance between two voxel blocks, perform preliminary clustering on them, and complete the conversion of three-dimensional point cloud to super voxel cloud.

[0075] Step 5: Extract the global properties of the supervoxel cloud to form a supervoxel cloud with a macroscopic structure. On this basis, segment the supervoxel cloud based on the clustering algorithm to achieve point cloud instance segmentation of the robot swarm, such as Figure 3 As shown, the specific steps are:

[0076] 5.1 Calculate the center of each supervoxel block and extract the global features of the supervoxel cloud. The global features used mainly include but are not limited to: the average value of the block, the maximum value of the block and the minimum value of the block;

[0077] 5.2 Calculate the global feature distance matrix of the supervoxel cloud, and use the defined voxel resolution as prior knowledge to judge different supervoxel instances based on the distance matrix;

[0078] 5.3 Based on the judgment results, different instances are upsampled to achieve the robot group instance segmentation task in the three-dimensional point cloud of the workshop scene.

[0079] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any technician in the relevant technical field, without departing from the scope of the technical solution of the present invention, makes any form of equivalent replacement or modification to the technical solution and technical content disclosed in the present invention, which does not depart from the content of the technical solution of the present invention and still falls within the protection scope of the present invention.

Claims

1. A point cloud instance segmentation method based on supervoxel neighbor clustering, characterized in that: The steps include: Step 1: Acquire target scene information and preprocess the scene information to obtain noise-free three-dimensional point cloud information; Step 2: construct a three-dimensional point cloud cloth optimization model, divide the three-dimensional point cloud information into ground point data and non-ground point data, and realize the ground point data; Step 3: Based on the 3D point cloud feature learning technology, complete the rough segmentation of the 3D point cloud of the target scene; The specific steps of step 3 are as follows: 3.1 semantically annotating the target scene point cloud and obtaining an annotation file, wherein the annotation file and the three-dimensional point cloud data of the target scene constitute a coarse segmentation data set required for subsequent model learning; 3.2 Calculate the overall characteristics of the three-dimensional point cloud, including the maximum value, minimum value, average value and variance value in different directions; 3.3 Calculate the covariance matrix of the three-dimensional point cloud, and based on the covariance matrix, obtain eigenvalues ​​and eigenvectors thereof to extract local features of the three-dimensional point cloud of the target scene; 3.4 Use machine learning classification algorithms to learn different categories of 3D point cloud features and save algorithm parameters; 3.5 Use the saved algorithm parameters to infer the three-dimensional point cloud of the target scene, input the subsequent scanned three-dimensional point cloud, and output the rough segmentation results of different semantic products in the target scene; Step 4: voxelize the three-dimensional point cloud information of the target category after rough segmentation, construct supervoxels, and form a supervoxel cloud; In step 4, the three-dimensional point cloud of the target type is gradually voxelized based on the octree algorithm. During the voxelization process, the calculation is stopped when the voxel size reaches the target resolution. The connectivity between the voxels is determined to construct a supervoxel. The specific calculation method is as follows: 4.1 Calculate the maximum and minimum values ​​of the three-dimensional point cloud of the target scene in the X, Y, and Z directions, define the voxel resolution size, and obtain the defined resolution; 4.2 construct a minimum bounding box of the three-dimensional point cloud of the target scene and divide it into eight sub-cubes; 4.3 Determine whether there is a point cloud in the sub-cube respectively. If not, delete the sub-cube; if so, continue to divide the sub-cube into eight new sub-cubes; 4.4 Repeat the above process until the voxel resolution is less than or equal to the defined resolution; 4.5 calculating the distance between two voxel blocks, performing preliminary clustering on the voxel blocks, constructing supervoxels of the three-dimensional point cloud, and forming a supervoxel cloud; Step 5: extracting the global attributes of the supervoxel cloud, segmenting the supervoxel cloud, and realizing point cloud instance segmentation of the target category; In step 5, the global attributes of the supervoxel cloud are extracted to form a supervoxel cloud with a macro structure, and the supervoxel cloud is segmented based on a clustering algorithm to achieve point cloud instance segmentation of the target type. The specific steps are: 5.1 Calculate the center of each supervoxel block and extract the global features of the supervoxel cloud; 5.2 calculating the global feature distance matrix of the supervoxel cloud, and using the defined resolution as prior knowledge, judging different supervoxel instances based on the distance matrix; 5.3 Based on the judgment results, upsample different instances to achieve the instance segmentation task of target types in the three-dimensional point cloud of the target scene.

2. The point cloud instance segmentation method based on supervoxel neighbor clustering according to claim 1, characterized in that: In step 1, a laser radar or a depth camera type 3D point cloud acquisition device is used to scan the target scene to obtain workshop scene information, and the 3D point cloud is preprocessed by downsampling technology and filtering technology. The downsampling method is as follows: Assume that the input three-dimensional point cloud is P = {p i |1≤i≤N}, where N is the number of points in the three-dimensional point cloud; Randomly select a point p0 from the three-dimensional point cloud to obtain a sampling point set S = {p0}; Calculate the distance between the remaining points and point p0, and select the point with the longest distance as p1, and update the sampling point set S = {p0, p1}; Calculate the distances between the remaining points in the three-dimensional point cloud and the points in the sampling point set S, and select the point with the closest distance to the sampling point to represent the distance to the sampling point set, select the point corresponding to the maximum distance as p2, and update the sampling point set S = {p0, p1, p2}; repeat the above steps until the number of points in the sampling point set is N'.

3. The point cloud instance segmentation method based on supervoxel neighbor clustering according to claim 2, characterized in that: The specific steps of step 2 are as follows: 2.1 Flipping the three-dimensional point cloud of the target scene to obtain an inverted version of the three-dimensional point cloud of the target type; 2.2 The point cloud matrix, cloth resolution, slope fitting factor and cloth hardness parameters of the traditional cloth simulation algorithm are used as the input of the optimization algorithm to achieve intelligent optimization of parameters; 2.3 Based on the optimized parameters, determine the position of the cloth nodes and generate cloth that approximates the ground; 2.4 By comparing the distances from all points in the three-dimensional point cloud of the target scene to the cloth curve, the extraction of ground data points can be achieved.

Citation Information

Cited By

  • Point cloud rapid splicing method and system for surface confocal surface topography

    CN120765458A