A method for separating branches and leaves from forest point cloud based on segmentation geometric features
Through the combination of DBSCAN and RANSAC algorithms, the coarse and fine segmentation of forest point clouds is realized, which solves the problems of relying on training data and low accuracy in the existing technology. It achieves fast and efficient branch and leaf separation effects, and provides information for large-area forest point cloud processing. new method.
Patent Information
- Application Number
- CN202210835301.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-07-15
AI Technical Summary
Existing forest point cloud branch and leaf separation methods rely on training data, have low accuracy and slow speed, and are difficult to automatically process large-scale data sets.
The DBSCAN algorithm is used for coarse segmentation and the RANSAC algorithm for fine segmentation. The branch and leaf point clouds are gradually separated through horizontal layering, layer-by-layer clustering, size filtering, projection classification and cylindrical segmentation to achieve fast and high-precision branch and leaf separation.
It can quickly separate the branch and leaf components of forest point clouds with less manual intervention, maintain high separation accuracy, and is suitable for processing large-area forest point clouds.
Smart Images

Figure CN115390040B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of ground laser radar point cloud data processing, and in particular relates to a method for separating branches and leaves of a forest point cloud based on segmentation geometric features. Background Art
[0002] In recent decades, the development and application of optical remote sensing technology has facilitated traditional forest surveys and can obtain a wide range of forest growth parameters and ecological and environmental information. However, optical remote sensing technology is limited by its own technical characteristics and it is difficult to obtain three-dimensional structural parameters of forests. Lidar (light detection and ranging) can actively emit laser beams to obtain accurate and high-resolution forest point cloud data. It is an important data source in quantitative forestry research and is considered to be a technology with broad prospects. Lidar can be roughly divided into aerial laser scanning (ALS) and terrestrial laser scanning (TLS) according to the different platforms they are carried on. They vary greatly in application scale, resolution, accuracy, observation angle, and data acquisition capabilities. TLS can obtain high-resolution and detailed three-dimensional structural data of trees at the scale of single trees and sample plots, and is used for leaf area index inversion, wood volume estimation, and realistic three-dimensional modeling of trees.
[0003] The above applications cannot be separated from the accurate segmentation of branch point clouds and leaf point clouds. For a single tree, manual separation can ensure accuracy and is not time-consuming, but for plots and forests, manual separation will be time-consuming and labor-intensive. In order to automatically, efficiently and accurately separate branch point clouds, many studies on point cloud branch and leaf separation have appeared at home and abroad in recent years. TLS provides echo intensity data and three-dimensional coordinate data, both of which can be used for point cloud classification. Since echo intensity is affected by factors such as distance and incident angle, and the reflection difference of branches and leaves in the bands used by some instruments is not obvious, the use of echo intensity for branch and leaf separation is not universal. Coordinate data is the basic data of TLS, which can reflect the geometric shape of branches and leaves. Therefore, the morphological differences of branches and leaves can be used to separate branches and leaves in point clouds. According to the spatial scale of morphological differences, the classification features used in the current method are divided into local geometric features and segmentation geometric features.
[0004] The local geometric features are calculated by the k-neighborhood or radius neighborhood of each point, and the morphological differences of branches and leaves in the local area constitute the basis for classification. Yun Ting et al. (2018) obtained the normal vector, structural tensor features, and shape features of each laser point, and combined with the Gaussian classifier to achieve the branch and leaf separation operation of the rubber forest section. Ma Lixia (2015) used local geometric features to select training samples of different categories, and constructed a Gaussian mixture model for each class based on the expectation maximization algorithm. This was used as a classifier to classify the forest point cloud point by point, and the forest point cloud was divided into three categories: ground, branches and trunks, leaves, and bushes. Wang Xianyi et al. (2019) used the xgboost tree classifier to construct dynamic neighbor features and multi-scale features based on 6 empirical features with good separation properties, and achieved better branch and leaf separation accuracy than fixed neighbor features.
[0005] Segmentation geometric features refer to branches being linear or cylindrical, leaves being flat, leaves being discretely distributed, branches being continuously distributed, etc. These features can be used to segment and identify tree point clouds. Tao et al. (2015) separated the photosynthetic and non-photosynthetic components of trees based on the circular or elliptical horizontal sections of branch point clouds and the characteristics of leaf cluster sections that can be abstracted as line segments. Wang et al. (2018) proposed a method called dynamic segmentation merging, which uses density and normal differences to segment point clouds and recognizes tree branch point clouds based on the linear characteristics of branches. Ferrara et al. (2018) voxelized single tree point clouds and used a density-based spatial clustering algorithm (DBSCAN) to separate branch and leaf point clouds in a regional growth manner. Su et al. (2019) proposed a method that combines classification and segmentation to extract single tree branch point clouds. This method first horizontally stratifies the tree point cloud and clusters it within each layer, and then uses the random sampling consensus algorithm (RANSAC) to classify each cluster and segment the branch point cloud part in the branch and leaf mixed cluster.
[0006] In summary, methods based on geometric neighborhood features can be used to separate branches and leaves of individual trees and forest lands. However, these methods are mainly based on machine learning and require manual training data. Different forest lands require separate training and are difficult to automatically process large-scale data sets. Methods based on segmentation geometric features do not rely on training data, but require parameter settings based on data characteristics and require large amounts of calculation. The classification accuracy and speed of forest lands are low and are currently mainly used at the scale of individual trees. Summary of the invention
[0007] In view of the above problems or shortcomings, in order to solve the problems of existing forest point cloud branch and leaf separation methods such as dependence on training data, low accuracy, slow speed, etc., the present invention provides a forest point cloud branch and leaf separation method based on segmentation geometric features. This method gradually separates the branch and leaf point clouds through DBSCAN coarse segmentation and RANSAC fine segmentation, which can quickly separate the branch and leaf components of the forest point cloud with less manual intervention and maintain a high separation accuracy.
[0008] A method for separating branches and leaves of forest point clouds based on segmentation geometric features comprises the following steps:
[0009] Step 1: Rough segmentation: This aims to segment the forest point cloud and extract the branch cluster point cloud and the upright trunk cluster point cloud in a simple and fast way.
[0010] 1-1. Horizontal stratification of forest point cloud: The purpose is to reduce the complexity of the canopy and make branches and leaves easier to distinguish. The layer number L to which each point belongs i Determined by the following formula:
[0011]
[0012] In the formula, dz is the layer spacing, which is 20 to 30 cm; floor means rounding down, Z i Represents the coordinate Z value of point i, Z min Indicates the minimum coordinate Z value of all points, L i ∈(0,1,2,3,…).
[0013] 1-2. Layer-by-layer clustering: After stratification, although the distance between branches and leaves is obvious and easy to distinguish, they are still a whole at the data level and need to be separated by a clustering algorithm. The DBSCAN algorithm is used here to cluster each layer of point cloud. The DBSCAN algorithm contains two parameters: one is Eps, which is used to specify the minimum adjacent distance between clusters; the other is MinPts, which is used to determine whether a point is a core point participating in clustering. Eps is 5 to 10 cm, and MinPts is fixed to 1.
[0014] 1-3. Identification of initial branch clusters: All clusters generated by clustering in step 1-2 are judged in turn as follows to extract the twig clusters and upright trunk segment clusters.
[0015] 1-3-1. Size filtering: If the height V of the external cube of the current cluster h <0.75*dz, it is determined as a broken leaf cluster and filtered out;
[0016] 1-3-2. Projection classification: If the current cluster is not filtered out by 1-3-1, the current cluster point cloud is projected onto a plane grid, which is a matrix grid composed of squares with a side length of 5 to 10 cm. When a data point falls into a grid, the grid is assigned a value of 1, otherwise it is assigned a value of 0. Traverse the grid, and if there is no situation where the values of the grids in the 3*3 neighborhood are all 1, the cluster is determined to be a twig cluster or an upright trunk segment cluster and extracted.
[0017] The projections of leaves and leaf clusters onto the horizontal plane present large and dense shadows, while the projections of twigs and upright trunk segments are small and sparse. This difference is used to separate the twig clusters and the upright trunk segment clusters.
[0018] Step 2: Perform the following operations on the remaining clusters that are not identified as broken leaf clusters, twig clusters or upright trunk segment clusters in all clusters generated by clustering in steps 1-2 to extract the branch components therein.
[0019] The purpose is to extract the branches and trunks in the mixed branch and leaf clusters that are not identified in step 1, as well as the branch and trunk clusters with larger projection surfaces. Since the branches and trunks in this part of the clusters are thicker and have obvious cylindrical features, the RANSAC algorithm is used for cylindrical segmentation and identification.
[0020] 2-1. Use the RANSAC algorithm to perform cylindrical segmentation on the current cluster to obtain the inner point of the cylinder Inner and the corresponding cylindrical model C; the parameters used include the normal estimation neighborhood radius r, the maximum number of iterations n, and the model surface distance threshold d, where r is 0.5 to 2 cm, n is 100 to 1000, and d is 1 to 2 cm.
[0021] 2-2. Inner point identification: Count the number of points k inside the cylindrical model C in the current cluster. If k < (0.5 ~ 0.6) * Inner, the inner point Inner is a branch point.
[0022] The purpose is to identify whether the inner point Inner segmented by RANSAC cylinder is a branch point. Since the LiDAR can only scan the surface of the branch, the branch is hollow in the point cloud data, and the inner point is judged based on this feature.
[0023] 2-3. Circular segmentation: When step 2-2 identifies the inner point Inner as a branch point, extract Inner and separate it from the current cluster, and then repeat the segmentation of the cluster from step 2-1 until step 2-2 identifies the inner point Inner as not a branch point.
[0024] A cluster may contain multiple cylindrical branches, and cyclic segmentation is performed to fully extract the branch components in the cluster.
[0025] Principles involved in step 1 and step 2:
[0026] DBSCAN algorithm principle (such as Figure 2 As shown in the figure): DBSCAN is a clustering algorithm based on distance and density. When the number of points in the Eps radius neighborhood of a point is greater than or equal to MinPts, the point is a core point, which is eligible to merge other points in its Eps radius neighborhood. The same operation is performed on other core points in the merged point until no new core points are merged, forming a cluster. The present invention sets MinPts to 1 to indicate that all points are core points, so the clustering process only considers the distance factor.
[0027] RANSAC cylindrical segmentation principle (such as Figure 3 As shown in the figure): Randomly extract two points with non-collinear normals from the point cloud with normals to calculate a cylindrical model whose surface passes through these two points and whose axis is orthogonal to the normals of these two points. Points that are less than a specified distance from the surface of the model are inliers. By continuously randomly generating cylindrical models and corresponding inliers within the maximum number of iterations, the cylindrical model that finally contains the most inliers is the optimal cylindrical model. The algorithm is random. When the proportion of inliers is small, the number of iterations needs to be increased to ensure a robust estimate. The present invention sets the maximum number of iterations to 100 to 1000, which can maintain a high processing efficiency while slightly losing separation accuracy.
[0028] The present invention first performs a coarse segmentation on the forest point cloud, which specifically includes horizontal stratification, layer-by-layer DBSCAN clustering, size filtering, and projection classification, so as to realize the extraction of twig clusters and upright trunk clusters. Then a fine segmentation is performed, which specifically includes RANSAC cylindrical segmentation, internal point recognition, and circular segmentation, so as to realize the extraction of branch components in mixed branch and leaf clusters and pure branch clusters with larger horizontal projection surfaces. After two segmentation extractions, the forest branch point cloud is obtained, and the rest are leaf point clouds. Since the present invention gradually separates the branch and leaf point clouds through DBSCAN coarse segmentation and RANSAC fine segmentation, it can quickly separate the branch and leaf components of the forest point cloud with less manual intervention and maintain a high separation accuracy. The process is as follows Figure 1 shown.
[0029] In summary, the present invention is based on the forest point cloud data acquired by ground-based laser radar, undergoes DBSCAN coarse segmentation and RANSAC fine segmentation, and establishes a forest point cloud branch and leaf separation method for distinguishing the branch and leaf components of the forest point cloud. The method is simple and efficient, and can quickly and accurately separate branches and leaves from large-area forest point clouds, providing a new idea for branch and leaf separation of forest point clouds, and can be further applied to the fields of leaf area index inversion, wood volume estimation, and realistic three-dimensional modeling of trees. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the process of the present invention;
[0031] Figure 2 RANSAC principle diagram, a. cylindrical model, b. model internal points;
[0032] Figure 3 This is the schematic diagram of DBSCAN;
[0033] Figure 4 The results of branch and leaf separation are as follows; a. branch point cloud, b. branch and leaf combination. DETAILED DESCRIPTION
[0034] The present invention is further described in detail below by using an example of a magnolia plot data and in conjunction with the accompanying drawings. The development environment is vs2013, the programming language is c++, and the class library used is mainly PCL (Point Cloud Library).
[0035] A method for separating branches and leaves of forest point clouds based on segmentation geometric features comprises the following steps:
[0036] Step 1, data acquisition and preprocessing: The data collection area is a magnolia forest on the campus of the University of Electronic Science and Technology of China, and the collection equipment is Leica ScanStation C10. The instrument is set up in a location in the forest with good visibility and weak obstruction. In order to avoid measurement errors caused by wind blowing branches, it is necessary to scan in windless or light wind conditions. The scanning mode is single-station 360°×270° panoramic scanning.
[0037] After the scan was completed, a sample plot of 10m×10m was cut out. The terrain of the sample plot was relatively undulating, and the measuring station was roughly in the center of the sample plot. There were 23 trees in total, with uniform growth, generally upright growth, regular shape, and smooth surface. The average tree height was 6.5m, the maximum branch diameter was 13cm, and the leaf size was about 10cm×5cm. After the data was collected and exported, CloudCompare point cloud processing software was used to denoise, downsample, and filter the data on the ground. Several layers in the trunk and crown were selected for artificial branch and leaf separation, which was used as reference data for accuracy verification.
[0038] Step 2: perform rough segmentation as described in step 1 of the present invention.
[0039] Step 3: perform fine segmentation as described in step 2 of the invention.
[0040] Step 4: Accuracy evaluation:
[0041] After the above steps 1-3, the point cloud branch and leaf separation results of the magnolia plot are obtained, as shown in Figure 4As shown in the figure, it is difficult to obtain the tree point cloud completely by scanning at a single station, resulting in many missing points in the result. This missing point also increases the difficulty of segmenting and identifying the branch and leaf point cloud. This problem can be solved by adding more measuring stations.
[0042] The accuracy evaluation index proposed by Bennett et al. (2013) is used to reflect the overall effect of branch and leaf separation from the accuracy of branch extraction. The indicators used are correctness and completeness. Correctness refers to the ratio of the number of points correctly classified as branch point clouds to the number of points classified as branch point clouds, and completeness refers to the ratio of the number of points correctly classified as branch point clouds to the number of points in the actual branch point cloud.
[0043] Due to the large scale of the forest sample plot, several representative layers were selected for quantitative evaluation; they are the 5th layer (0.8-1.0m) located at the trunk position, the 15th layer (2.8-3.0m) located at the lower part of the canopy, the 20th layer (3.8-4.0m) located in the middle of the canopy, and the 25th layer (4.8-5.0m) located in the upper part of the canopy. The evaluation results of these four layers represent the accuracy of branch and leaf point cloud separation of the entire forest sample plot.
[0044] The accuracy of branch point cloud separation is shown in Table 1. The accuracy and completeness of the main trunk extraction in the lower part of the forest sample are both 100%, and the extraction is very complete. However, there are differences in the extraction accuracy of the lower, middle and upper layers of the canopy. The accuracy and completeness decrease with the increase of height. This is mainly because there are more fine branches at high altitudes and they are severely blocked, which makes segmentation and recognition difficult. Despite this, the average accuracy of the upper, middle and lower layers of the canopy reached 86%, and the average completeness reached 85%.
[0045] Table 1 Branch point cloud separation accuracy
[0046]
[0047] It can be seen from the above experimental data that this embodiment processes the magnolia sample point cloud data scanned by a single station according to the method of the present invention. According to the method steps, the separation of branches and leaves of the magnolia sample point cloud is achieved. The separation results are quantitatively evaluated by the accuracy and completeness. The results show that the method of the present invention can quickly separate the branch and leaf components of the forest point cloud with less manual intervention and maintain a high separation accuracy.
Claims
1. A method for separating branches and leaves from forest point clouds based on segmentation geometric features. It is characterized in that The following steps are involved: Step 1, coarse segmentation: segment the forest point cloud and extract the branch cluster point cloud and the upright trunk cluster point cloud; 1-1. Horizontally layer the forest point cloud, and each point belongs to the layer number L i Determined by the following formula: In the formula, dz is the layer spacing, which is 20 to 30 cm; floor means rounding down, Z i Represents the coordinate Z value of point i, Z min Indicates the minimum coordinate Z value of all points, L i ∈(0,1,2,3,…); 1-2. Use the DBSCAN algorithm to cluster each layer of point cloud after stratification in step 1-1. The DBSCAN algorithm contains two parameters: one is Eps, which is used to specify the minimum adjacent distance between clusters; the other is MinPts, which is used to determine whether a point is a core point participating in clustering. Eps is 5 to 10 cm, and MinPts is fixed to 1. 1-3. Perform the following judgments on all clusters generated by clustering in step 1-2 respectively, so as to extract the twig cluster and the upright trunk segment cluster; 1-3-1. Size filtering: If the height V of the external cube of the current cluster h <0.75*dz, it is determined as a broken leaf cluster and filtered out; 1-3-2. Projection classification: If the current cluster is not filtered out by 1-3-1, the current cluster point cloud is projected onto a plane grid. The grid is a matrix grid composed of squares with a side length of 5 to 10 cm. When a data point falls into a grid, the grid is assigned a value of 1, otherwise it is assigned a value of 0. Traverse the grid, and if there is no situation where the values of the grids in the 3*3 neighborhood are all 1, the cluster is determined to be a twig cluster or an upright trunk segment cluster and extracted. Step 2, performing the following operations on the remaining clusters that are not identified as broken leaf clusters, twig clusters or upright trunk segment clusters in all clusters generated by clustering in step 1-2, so as to extract the branch components therein; 2-1. Use the RANSAC algorithm to perform cylinder segmentation on the current cluster to obtain the inner point of the cylinder Inner and the corresponding cylinder model C; the parameters used include the normal estimation neighborhood radius r, the maximum number of iterations n, and the model surface distance threshold d, where r is 0.5 to 2 cm, n is 100 to 1000, and d is 1 to 2 cm; 2-2. Count the number of points k inside the cylindrical model C in the current cluster. If k < (0.5-0.6)*Inner, the inner point Inner is a branch point. 2-3. When step 2-2 identifies the inner point Inner as a branch point, extract Inner and separate it from the current cluster, and then repeat the segmentation of the cluster from step 2-1 until step 2-2 identifies the inner point Inner as not a branch point.
Citation Information
Cited By
Tree point cloud branch and leaf separation method based on dynamic hypergraph guided Mama
CN121053406A
