Single tree crown segmentation method based on deep learning and airborne laser point cloud
Through the airborne laser point cloud method based on deep learning, combined with voxelization and gradient information, the problem of low accuracy of single tree crown segmentation in the existing technology is solved, and high-precision crown identification and segmentation effects in complex forests are achieved.
Patent Information
- Application Number
- CN202110092586.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-01-24
AI Technical Summary
Existing single tree canopy segmentation methods have low accuracy in forests due to inhomogeneity, occluded canopy, and opaque canopy. It is especially difficult to achieve accurate segmentation in complex scenes.
Using a method based on deep learning and airborne laser point cloud, the point cloud is divided into multiple voxels through a voxelization strategy, and the PointNet deep neural network is combined with highly correlated gradient information to identify and segment the tree crown.
It achieves accurate segmentation of individual tree crowns in different forest types, and the detection rate and crown width estimation accuracy are significantly improved. It performs well especially in scenes with complex forest structures and a mixture of multiple buildings.
Smart Images

Figure CN112819830B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of forestry, and in particular relates to a single tree crown segmentation method based on deep learning and airborne laser point cloud. Background Art
[0002] Precise separation of individual trees plays a vital role in the inversion of tree parameters. Forest parameters, such as tree location, tree height, canopy density, tree crown width, tree species and diameter at breast height, are crucial for forest resource management, field inventory and afforestation activities. Traditional tree structural parameters are usually obtained through field measurements, but this process is very time-consuming, labor-intensive and destructive. Light detection and ranging (LiDAR) is an automatic remote sensing technology. With its high precision and high efficiency, it has become one of the most effective measurement technologies for obtaining detailed and accurate target phenotypic data. According to the different carrier platforms, laser scanning systems can be divided into four categories: airborne laser scanning (ALS), satellite-based laser scanning (SLS), vehicle-based laser scanning (VLS) and terrestrial laser scanning (TLS). Similar to ALS, unmanned aerial vehicles (UAVs) provide an alternative platform for LiDAR data collection, which can reduce costs and provide denser LiDAR points when flying at low speeds and low altitudes.
[0003] As mentioned above, the detection and segmentation of individual tree crowns is a basic step to accurately estimate the structural properties of individual trees. We divide the existing methods for individual tree crown segmentation into two categories, both of which have been widely used in the forestry field: (1) CHM (Canopy Height Model)-based methods, which use image processing to segment the crown width of individual trees and then use local maxima to determine the position of the crown. The crown segmentation is completed according to the detected tree top position using algorithms such as the marker-controlled watershed algorithm, graph-based segmentation algorithm, and local contour expansion based on topological relationships. However, due to the heterogeneity of the forest, occluded canopies, and opaque canopies, the accuracy of these algorithms is relatively low. (2) Point-based methods, which are a method that calculates a large number of three-dimensional points. This method effectively reduces the loss of information at the scale of individual trees and avoids the errors caused by point cloud interpolation in the process of generating CHM, such as K-means clustering, mean-shift algorithm, voxel space projection, adaptive multi-scale filtering, and region growing method. However, since tree crowns can be extremely irregular and often heavily intersected in natural forests, the results of these methods for accurate segmentation of individual tree crowns still need to be improved.
[0004] As a new field of machine learning, deep learning has been widely used in image classification, target detection and positioning. Deep learning algorithms using convolutional neural networks (CNNs) have good results and applications in the automatic classification of two-dimensional images, such as face recognition, autonomous driving, medical imaging, and fruit and vegetable detection. However, the phenotypic structure of more three-dimensional objects will be directly reflected in the point cloud, and the use of two-dimensional networks will lose the original information and spatial features. Therefore, many research teams have proposed methods for three-dimensional space target detection.
[0005] At present, with the development of laser scanning technology, 3D deep learning has attracted widespread attention. 3D point cloud recognition methods based on deep learning can be divided into four categories: (1) Feature-based methods, which extract feature descriptors from point clouds and then use fully connected networks to classify shapes. However, this method is limited by the representation ability of the extracted features. (2) Multi-view methods, which use 2D convolution to classify 2D images that convert 3D point clouds or shapes from different angles using projection strategies. Multi-view-based methods have achieved good results in classification tasks, but the original 3D spatial position information is lost in the process of conversion to 2D images. (3) Voxel-based methods, which convert disordered point clouds into continuously arranged voxel grids and classify the voxel grids through 3D convolutional neural networks. Voxel-based methods can effectively retain the original spatial information of the point cloud in each voxel, which is conducive to subsequent fine processing to obtain accurate target depiction. Comparing the performance of the above three methods, the voxel-based method can use a divide-and-conquer strategy to identify small targets from the entire acquisition data of the complex scene under study, and then splice the recognition results together to achieve the extraction of small objects from the entire acquisition data. Many researchers have also proposed some related deep learning frameworks, such as PointNet, Kd-Network and PointCNN. PointNet is a pioneering work that uses the original point cloud in each voxel as the input of deep learning. The model provides a unified architecture framework for applications ranging from object classification, part segmentation to scene semantic parsing.
[0006] In summary, it is necessary to provide a single tree crown segmentation method based on the PointNet method to achieve accurate segmentation of the single tree crown. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a single tree crown segmentation method based on deep learning and airborne laser point cloud in response to the above-mentioned deficiencies in the prior art. The single tree crown segmentation method based on deep learning and airborne laser point cloud identifies trees at the voxel scale, and combines highly correlated gradient information to complete the delineation of single tree crowns. The single tree crown segmentation is highly accurate.
[0008] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0009] A single tree crown segmentation method based on deep learning and airborne laser point cloud includes the following steps:
[0010] (1) Obtain lidar point cloud data of the research site;
[0011] (2) removing noise points from the point cloud data and dividing the denoised point cloud data into ground points and surface points;
[0012] (3) Manually extract the point cloud of individual trees from the ground, and then use voxels as boundaries to divide different trees into different voxels;
[0013] (4) After converting the point cloud data format of a single tree in each voxel into the format required by PointNet, a training sample dataset is constructed;
[0014] (5) The training sample data set in step (4) is used to generate a new training sample data set by using a data augmentation method;
[0015] (6) Use the new training sample data set to train the PointNet deep neural network to obtain a trained PointNet model;
[0016] (7) Collect the laser radar point cloud data of the site to be measured, remove the noise points of the point cloud data, divide the denoised point cloud data into ground points and ground points, subdivide the ground points into multiple voxels by voxelization, convert the point cloud data in each voxel into the format required by PointNet, and input them into the trained PointNet model together to automatically identify the point cloud in each voxel of the tree;
[0017] (8) The point cloud in each voxel identified as a tree is mapped to the DSM, and the gradient information of the DSM of each voxel is calculated. The gradient information of the DSM of each voxel is combined with the inertial momentum gradient method to locate the boundary points of adjacent tree crowns. The surface of the tree crown to be segmented is then outlined based on the boundary points to achieve the segmentation of the crown of a single tree.
[0018] As a further improved technical solution of the present invention, the laser radar point cloud data is collected and acquired by a Velodyne HDL-32E sensor on a drone.
[0019] As a further improved technical solution of the present invention, the noise points of the point cloud data are removed in the steps (2) and (7), and the denoised point cloud data are divided into ground points and ground points, specifically:
[0020] Gaussian filtering is used to remove noise points from point cloud data, and cloth simulation filtering is used to divide the denoised point cloud into ground points and surface points.
[0021] As a further improved technical solution of the present invention, the format required by PointNet is HDF5 format.
[0022] As a further improved technical solution of the present invention, the step (3) specifically includes:
[0023] (3.1) Manually extract the point cloud of individual trees from the ground, and then use voxels as boundaries to divide different trees into different voxels;
[0024] (3.2) Manually extract the point cloud of the building from the ground points, and then subdivide the ground points belonging to the building into multiple voxels by voxelization;
[0025] (3.3) Manually extract the point clouds of objects other than trees and buildings from the ground points, and then subdivide the ground points belonging to other objects into multiple voxels through voxelization.
[0026] As a further improved technical solution of the present invention, the step (4) is specifically as follows:
[0027] After converting the point cloud data format of each voxel in step (3) into the format required by PointNet, a training sample dataset is constructed.
[0028] As a further improved technical solution of the present invention, during the training process of the PointNet deep neural network, the loss function of the voxel is:
[0029]
[0030] in is an indicator. If the current calculation category ζ is the same as the training sample category l, then otherwise There are three categories, namely trees, buildings and other objects; N = (number of categories - 1) = 2; l = {0, 1, 2};
[0031]
[0032] Represents the point cloud p within the jth voxel j The probability obtained by the change of the linear weight ω of the deep learning network, softmax represents the corresponding Softmax nonlinear activation function; L reg = l2_loss(I-AA T), where A is the 64*64 matrix output by the transformation matrix prediction network, I is the 64*64 unit matrix, and the l2_loss function represents the matrix (I-AA T ) and then sum each element after square and divide by 2, weight regre is the weight value.
[0033] As a further improved technical solution of the present invention, a stochastic gradient descent algorithm is used to update the weights ω of each layer of the PointNet deep neural network.
[0034] As a further improved technical solution of the present invention, in the step (8), the point cloud in each voxel identified as a tree is mapped to the DSM, and the gradient information of the DSM of each voxel is calculated, specifically:
[0035] The point cloud in each voxel identified as a tree is mapped onto the DSM, that is, a uniformly distributed plane grid C, with the grid cell k The elevation value of ∈C is equal to the maximum height value of the point cloud vertically projected within the unit, where k = 1, 2, ... m 2 , m 2 Represents the number of grids derived from the point cloud within a single voxel;
[0036] The gradient equation for each grid in the three-dimensional space defined by the x-axis, y-axis, and z-axis is:
[0037]
[0038] In the equation, and are the unit vectors in the x, y, and z directions respectively; the gradient is the Hamiltonian operator acting directly on each grid cell k ∈C, where C is the DSM generated by the point cloud within a single voxel; the resolution of each voxel at the grid unit scale is m*m, and are the derivatives of the height change of the highest scan point of each grid cell along the x, y and z directions respectively.
[0039] As a further improved technical solution of the present invention, the specific equation of the method for calculating the inertial momentum gradient in step (8) is as follows:
[0040]
[0041] In formula (3) is the cell at the current iteration t k The gradient value calculated according to formula (2); is the updated gradient value calculated according to the inertia gradient formula (3) at time t, and α is the weight of the inertia gradient; Represents the current cell k The projection value of the gradient in the direction τ, τ = {1, 2, 3...16} represents 16 directions; in formula (4) Represents the cell that is reached by extending forward in one of the 16 directions according to the accumulated gradient value: β is the step size.
[0042] The beneficial effects of the present invention are:
[0043] The present invention adopts a novel deep learning framework to directly process the point cloud of the forest in the research site to achieve the segmentation of individual tree crowns. The specific steps of the method of the present invention are as follows: First, a voxelization strategy is adopted to divide the collected point clouds of different tree species in the forest into multiple voxels. These voxels containing point clouds are used as training samples of the PointNet deep learning framework to identify tree crowns at the voxel scale. Secondly, based on the initial segmentation results, the gradient information related to the height is combined with the water spread method to accurately characterize the boundaries of each tree crown. At the same time, the crown width of the retrieved individual trees is compared with the field measurement values to verify the effectiveness of the method used in the present invention. The results show that among the four forest types, the nursery base has better quantification results (crown detection rate r = 0.90; crown width estimation R 2 >0.94, root mean square error RMSE <0.2m). Good results were also achieved for temple gardens and mixed forests with complex forest structures, overlapping branches, and mixed buildings (R = 0.85 for temple gardens, R 2 >0.88, RMSE<0.6m, r=0.80 for mixed forest, r 2 >0.85, RMSE<0.8m). For the study of the distribution of crown leafless forest in the fourth plot type, the present invention also obtained satisfactory results (r=0.82 for leafless forest, R 2 >0.79, RMSE<0.7m). This method is based on deep learning technology and computer graphics theory, and uses a good framework to solve the problems of single tree crown segmentation and forest parameter inversion in different forests. In summary, this single tree crown segmentation method based on deep learning and airborne laser point cloud identifies trees at the voxel scale and combines highly correlated gradient information to complete the delineation of single tree crowns. The single tree crown segmentation is highly accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the process of the present invention.
[0045] Figure 2 (a) is a schematic diagram of four experimental sites located in the Qishan Scenic Area in Chizhou City, Anhui Province.
[0046] Figure 2 (b) is a remote sensing image obtained from Google Maps.
[0047] Figure 2 (c) shows the tree growth images in the four experimental sites.
[0048] Figure 3 To collect part of the training set of point clouds for the PointNet network.
[0049] Figure 4 This is a schematic diagram of the PointNet architecture.
[0050] Figure 5 (a) is a schematic diagram of the segmentation of a single tree crown based on the point cloud of 21 adjacent voxels based on highly correlated gradient information.
[0051] Figure 5 (b) is Figure 5 Side view of the magnified area of the light white cuboid in (a).
[0052] Figure 5 (c) is Figure 5 Top view of the magnified area of the light white rectangle in (a).
[0053] Figure 6 (a) is a schematic diagram of inertial gradient descent pushing the ball to the true lowest point without staying at the local pseudo-extreme point.
[0054] Figure 6 (b) is a schematic diagram of each crown seeking the crown boundary points by inertial gradient descent along 16 directions of the vertex.
[0055] Figure 7 (a) is a curve diagram of the training accuracy value of tree recognition from input voxels using PointNet.
[0056] Figure 7 (b) is a curve diagram of the training loss value of tree recognition from input voxels using PointNet.
[0057] Figure 8 (a1) is a schematic diagram of using the PointNet model to identify part of the LiDAR data of the sample site type as a nursery base.
[0058] Figure 8 Where (a2) is Figure 8 Schematic diagram of the enlarged classification results of some voxel point clouds in (a1).
[0059] Figure 8 In (a3), Figure 8 Schematic diagram of the enlarged classification results of some voxel point clouds in (a1).
[0060] Figure 8 (a4) is Figure 8 Schematic diagram of the enlarged classification results of some voxel point clouds in (a1).
[0061] Fig. 9 (b1) is a schematic diagram of using the PointNet model to identify part of the LiDAR data whose sample type is temple gardens.
[0062] Fig. 9 (b2) is Fig. 9 Schematic diagram of the enlarged classification results of some voxel point clouds in (b1).
[0063] Fig. 9 In (b3) Fig. 9 Schematic diagram of the enlarged classification results of some voxel point clouds in (b1).
[0064] Fig. 9 In (b4) Fig. 9 Schematic diagram of the enlarged classification results of some voxel point clouds in (b1).
[0065] Fig.10 (c1) is a schematic diagram of using the PointNet model to identify some lidar data whose sample type is mixed forest.
[0066] Fig.10 In (c2) Fig.10 Schematic diagram of the enlarged classification results of some voxel point clouds in (c1).
[0067] Fig.10 In (c3) Fig.10 Schematic diagram of the enlarged classification results of some voxel point clouds in (c1).
[0068] Fig.10 In (c4) Fig.10 Schematic diagram of the enlarged classification results of some voxel point clouds in (c1).
[0069] Fig.11 (d1) is a schematic diagram of using the PointNet model to identify part of the LiDAR data whose plot type is leafless forest.
[0070] Fig.11 (d2) is Fig.11 Schematic diagram of the enlarged classification results of some voxel point clouds in (d1).
[0071] Fig.11 In (d3) Fig.11 Schematic diagram of the enlarged classification results of some voxel point clouds in (d1).
[0072] Fig.11 In (d4) Fig.11 Schematic diagram of the enlarged classification results of some voxel point clouds in (d1).
[0073] Fig.12 (a) is a schematic diagram of the crown segmentation results of a single tree in a nursery base.
[0074] Fig.12 (b) is a schematic diagram of the crown segmentation results of a single tree in a temple garden.
[0075] Fig.12 (c) is a schematic diagram of the crown segmentation results of a single tree in a mixed forest plot.
[0076] Fig.12 Middle (d) is a schematic diagram of the crown segmentation results of a single tree in a leafless forest.
[0077] Fig.13 (a) is a schematic diagram of the comparison results of the crown width of a sample plot type of a nursery base and the method of the present invention.
[0078] Fig.13 Middle (b) is a schematic diagram of the comparison results of the crown width of a sample plot of temple garden and the method of the present invention.
[0079] Fig.13 (c) is a schematic diagram of the comparison results of the crown width of a mixed forest and the method of the present invention.
[0080] Fig.13 Middle (d) is a schematic diagram showing the comparison results of the crown width of a leafless forest with the method of the present invention. DETAILED DESCRIPTION
[0081] The specific embodiments of the present invention are further described below according to the accompanying drawings:
[0082] This embodiment provides a method for segmenting a single tree crown based on deep learning and airborne laser point cloud, which mainly includes: (1) using drone-borne laser LiDAR to collect data; (2) voxelizing the training and test sites; (3) converting the data of the training and test sites from voxelization to the format required by the model PointNet for training and testing; (4) based on the model PointNet, identifying segmented voxels, using gradient information to construct and describe the boundary of each voxel tree, and realizing the segmentation of a single tree crown. The workflow of the method of this embodiment is as follows: Figure 1 shown.
[0083] Study plots:
[0084] The study area is located in Qishan Scenic Area, Chizhou City, southwest Anhui Province (30°38'15.89"N, 117°30'11.33"E) Figure 2 ). As a national forest city, Chizhou City has a warm climate, four distinct seasons, abundant rainfall, and a warm and humid subtropical monsoon climate. The average annual precipitation here is 1400-2200 mm, the average annual temperature is 16.7℃, and the average temperatures of the coldest month (January) and the hottest month (July) are approximately 3.1℃ and 28.7℃, respectively. Qishan has a total area of 36 square kilometers and a maximum altitude of 868 meters. The tree population in the area is mainly composed of 10 tree species, including Metasequoia, Fir, Cedar, Ginkgo, Soapberry, Apple, Poplar, Camphor, Kapok, and Robinia. Such as Figure 2 As shown, this embodiment selected four experimental site types: Qishan Scenic Area Nursery Base (experimental site 1), Temple Garden (experimental site 2), Mixed Forest (experimental site 3) and Leafless Forest (experimental site 4) for experiment. Experimental sites 1, 2, and 4 are located at the foot of the mountain, and experimental site 3 is located on the hillside with uneven hilly terrain. All four experimental sites are composed of buildings, shrubs and trees. Figure 2 To study the regional profile, Figure 2 Middle (a): Four experimental sites located in Qishan Scenic Area, Chizhou City, Anhui Province. Figure 2 (b) is a remote sensing image obtained from Google Maps, where rectangles of different grayscale colors mark the boundaries of different experimental sites. Figure 2 Middle (c): Photos showing the growth of trees in four experimental sites.
[0085] In subsequent experiments, this embodiment selects four experimental sites with areas of 1,947.16, 44596.64, 60601.78 and 14780.11 square meters as the research areas. The vegetation components and buildings within 50% of the area of each subset are extracted as training samples. The remaining four subsets are used as test samples (which do not intersect with the subsets used as training samples).
[0086] Laser data collection:
[0087] The lidar data was measured using a Velodyne HDL-32E sensor on a DJI FC6310 drone. The laser scanning in the system can achieve an angle adjustment from -30.67° to +10.67°, providing a 360° horizontal field of view. The sensor can output about 700,000 scan point clouds per second with a measurement accuracy of + / -2cm. In addition, the sensor has the advantage of penetrating smoke and the working environment can be from -10℃ to +60℃, which greatly improves the redundancy of the working environment. The Velodyne lidar system combines laser scanning with SLAM (simultaneous localization & mapping) technology to quickly complete each scan and generate a high-density point cloud for each target tree. During the data collection process, the flight speed, flight altitude, and laser scanning overlap were 18m / s, 60m (above the take-off position level), and 40%, respectively. The final extracted point cloud is stored in LAS1.2 format. The average point cloud density of the collected LiDAR data for the nursery, temple garden, mixed forest, and leafless forest habitats was 1511.30 pts·m -2 、1002.17pts·m -2 、 722.31pts·m -2 and 502.34 pts·mm -2 ;
[0088] Data preprocessing:
[0089] After obtaining point cloud data at the experimental site scanned by a laser scanner, this embodiment uses a Gaussian filtering method to remove noise points in the scanned data. The denoised point cloud is divided into ground points and ground points using a cloth simulation filter (CSF) method. Then the points on the ground are voxelized according to different voxel sizes. According to the requirements of PointNet, this embodiment converts the point cloud in each voxel that constitutes the training set and the test set into HDF5 format. In this embodiment, the standard of the HDF5 file includes two parts, one is data and the other is a label. In the data part, the data converted from the scanning points of the training and test sites can obtain an array n×1024×3, where n represents the total number of segmented input voxels; 1024 represents the number of randomly sampled point clouds in the voxel, and 3 represents the dimension, that is, the spatial position (x, y, z). Labels are used to identify certain attributes or features, or objects that are classified or contained.
[0090] Training Data:
[0091] In this example, three types of training data were manually generated: (1) individual trees belonging to different tree species and in different plant physiological states (with and without leaves); (2) different Chinese architectural styles, such as palaces, city walls, temples, and houses; and (3) other objects, including bare ground, understory vegetation, and a small number of point clouds of individual trees (usually <20%) or intersections of adjacent trees. The number of training samples (including trees and buildings) for the nursery base, temple garden, mixed forest plot, and leafless forest landscape were 501 (trees), 168 (trees), 334 (buildings), 426 (trees), and 166 (trees), respectively. Figure 3 A portion of the training data is shown, where manually extracted point clouds of individual trees or parts of buildings are bounded by voxels. Figure 3 Specifically, a partial training set of point clouds collected by the PointNet network in this embodiment is shown. Rows 1 to 10 are single trees for extracting corresponding scanning points for different tree species, namely (a) Metasequoia, (b) Chinese fir, (c) Cedrus, (d) Ginkgo, (e) Gleditsia, (f) Apple, (g) Poplar, (h) Fragrant tree, (i) Red tree and (j) Sophora japonica. The last four rows: (k), (l), (m) and (n) are components of buildings, including palaces, city walls, temples and houses of different Chinese architectural styles, as well as other objects, including bare ground, underground vegetation and a small part of the point cloud involving the intersection of a tree or adjacent trees (usually <20%).
[0092] A large number of samples are the basis for high-precision training, so in order to avoid overfitting, it is necessary to use as much training data as possible to train the neural network. In the study of this embodiment, data augmentation was used to solve this problem. The data augmentation method is a strategy to increase the diversity of data available for training models without actually collecting new data, thereby improving the accuracy of the model. This embodiment generates a new training data set based on the rotation of the entire cloud in each voxel by a random angle and along the upper axis. At the same time, each point in each voxel is slightly offset along a random vector, that is, Gaussian noise with a mean of zero and a small standard deviation (ranging from 0.02-0.06) is used to jitter the position of each point in each training sample. Therefore, the training samples can be expanded to 10240.
[0093] Test data:
[0094] The accuracy and robustness of the method were tested using nursery bases, temple gardens, mixed forests and leafless forests as test sites. The number of trees in test sites 1, 2, 3 and 4 was 522, 160, 456 and 167 respectively. After removing noise points, the four scanning point sets V1, V2, V3 and V4 of the corresponding experimental point cloud were subdivided into multiple voxels by voxelization. Then, according to the HDF5 standard, the voxelization was performed to obtain the voxel-based subdivision (i.e., vj , v j ∈V) to obtain the point cloud of each voxel.
[0095] Table 1 is a detailed description of the dataset for deep learning methods:
[0096]
[0097] Where NT: number of trees. NP: number of scan points. NPPT: average number of scan points per tree.
[0098] Training via Point Net:
[0099] PointNet is the first deep neural network that directly processes unordered point cloud data. The PointNet model has three core building blocks, namely the Transformation Network (T-Net), the maximum pooling layer as a symmetric function that aggregates all voxel information, and the Multilayer Perceptron Network (MLP). Point Cloud Represented as the j-th voxel belonging to the scan point set A 3D scanned point, where each point p is a vector of its coordinates (x, y, z), is used as the channel of the point. Point clouds have three core properties, including (1) unordered, which means that the network that consumes N 3D point sets needs to maintain the original order of the N permutations of the input data; (2) holistic expressiveness, which means that the points are not isolated and form a meaningful subset with neighboring points; (3) invariance to transformations, which means that deep learning represents point sets that should be invariant to certain transformations. Therefore, it is necessary to design a symmetric function in algebraic combinatorics whose value is independent of the order of the scanned points in the voxel. The PointNet network is represented by the symmetric formula (1).
[0100]
[0101] In this formula, is the input unordered point cloud in the jth voxel; 1024 is the number of input point clouds for each voxel; f is the continuous set function that maps a set of points to a vector; γ represents the multilayer perceptron network, and h represents the combination of the univariate function and the maximum pooling function. Regardless of the input order of the point cloud, the value of the continuous set function f in formula (1) remains unchanged.
[0102] Figure 4 The architecture of PointNet is mainly composed of two transformation matrix prediction networks (T-Net), three multi-layer perceptrons (MLP), and a maximum pooling layer. The network takes 1024 points in a voxel as input, applies input and feature transformations, and then aggregates point features through a maximum pooling layer. The output is the predicted probability of each type of input data classification.
[0103] Figure 4 The network architecture of PointNet is shown. The input of the network contains the 3D coordinates of a 3D point cloud of n voxels and 1024 points within the voxel (n×1024×3). T-Net is a tiny network that can predict an affine transformation matrix. The first T-Net in the network generates an affine transformation matrix to normalize the point cloud for changes such as rotation and translation. At this point, the input of the first T-Net is the raw point cloud data, and the output of the first T-Net (aligned data) is a 3×3 rotation matrix. The raw 3D point data is then multiplied by the 3×3 transformation matrix learned by the first T-Net to achieve data alignment and ensure invariance to the specific spatial transformation model.
[0104] The aligned data of the point cloud (1024×3) in each voxel is passed through a multi-layer perceptron (MLP(64,64)) with layer sizes as shown in brackets, resulting in a 1024×64 matrix. The fully connected layer of the MLP consists of Figure 4 As shown in the three dotted boxes at the top. Then, 64-dimensional features are extracted for each voxel, and then the second feature space transformation matrix of the T-Net prediction network is used to predict a 64×64 transformation matrix, and the transformation matrix is applied to the features to achieve feature alignment. Similarly, the matrix (1024×64) is multiplied by the transformation matrix (64×64) to achieve feature alignment. Then, the second MLP (64 128, 1024) is used to extract features from each voxel until the dimension of the feature becomes 1024, and then the global feature vector of each voxel is extracted through the maximum pooling layer. Finally, the global features of the dimension pass through the third MLP (512, 256, 3) to produce 3 classifications, of which 3 represent the classification categories (that is, the number of categories defined by the label, 0 represents trees, 1 represents buildings, and 2 represents other objects). The classification discriminant value corresponding to the input point cloud can be obtained for each category. Then, through the activation layer based on the Softmax function, the predicted probability of the point cloud in each voxel can be obtained.
[0105] The loss function of the training process is:
[0106] The Softmax cross entropy function is used as the loss function. During the training process, the loss function of the voxel is defined as follows:
[0107]
[0108] in, is an indicator. If the current calculated category ζ is the same as the sample category l, then Otherwise In this embodiment, under the premise that tree crown recognition is divided into three categories (i.e., trees, buildings, and other objects), N = (number of categories - 1) = 2 and l = {0, 1, 2} are set. The first term on the right side of Formula 2 can be understood as Dot Product · stands for dot product. Where: represents the probability of the point cloud in the jth voxel after the linear weight ω of the deep learning network changes, and softmax represents the corresponding Softmax nonlinear activation function. L reg = l2_loss(I-AA T ), where A is Figure 4 The T-Net of feature conversion (i.e., the 64*64 matrix output by the second T-Net), I is the unit matrix of the corresponding size, which is 64*64 here. The l2_loss function represents the matrix (I-AA T ) is the sum of the squares of each element and then divided by 2. regre is the weight value, here it is 0.001.
[0109] The weights ω of each layer of the deep convolutional neural network are updated using the stochastic gradient descent (SGD) algorithm. A layer is a container that usually receives weighted inputs, transforms them using a set of mostly nonlinear functions, and then passes these values to the next layer as outputs. When the training loss function is less than a certain loss threshold (i.e. convergence), the training is stopped and the weights of each layer of the fixed network are no longer changed, thus obtaining a trained deep convolutional neural network for tree recognition.
[0110] Individual tree crown division:
[0111] The test process includes the following steps. The point cloud of each test site is assigned to continuously distributed voxels through voxelization. Then, the subdivided point cloud in each voxel is analyzed using the PointNet framework, and the learned parameters are analyzed through the training phase to obtain the classification result of each voxel. For the point cloud in the voxel identified as a tree, this embodiment performs a refinement extraction of the crown boundary based on the highly correlated gradient information combined with the inertial gradient vector, and is not restricted by the voxel boundary to the point cloud segmentation.
[0112] First, the point cloud in each voxel identified as a tree is mapped onto the DSM, i.e., a uniformly distributed planar grid C. k The elevation value of ∈C is equal to the maximum height value of the point cloud vertically projected within the unit, k = 1, 2, ... m 2 , where m 2 represents the number of grids derived from the point cloud within a single voxel. Then, a local maximum search algorithm is used to find the location of the tree top in each voxel. The Hamiltonian operator g is used later to represent the gradient of each grid in the three-dimensional space defined by the x, y (horizontal) and z (vertical) axes. The corresponding equation is:
[0113]
[0114] In equation (3), are the unit vectors in the x, y and z directions respectively. The gradient is the Hamiltonian operator acting directly on each grid cell k ∈C, where C is also considered to be the DSM generated by the point cloud in a single voxel. In the study of this embodiment, the resolution of each voxel at the grid unit scale is m*m, and are the derivatives of the height change of the highest scan point of each grid cell along the x, y and z directions respectively. Usually, the phenotypic characteristics of the crown periphery present a downward hierarchical structure, that is, the height value of the crown surface pixel gradually decreases from the peak to the periphery. The schematic diagram of the calculation is shown in Figure 5 As shown, Figure 5 Schematic diagram showing the segmentation of a single tree crown in a point cloud of 21 neighboring voxels based on highly correlated gradient information. The black cuboids represent segmented voxels that are classified as trees by the PointNet network model. Figure 5 In (b) and (c), respectively Figure 5 Side view and top view of the magnified area of the light white cuboid shown in (a). Therefore, there must be a saddle point between two adjacent trees (the gradient between the lowest point and this point is close to 0). The gradient information of the DSM of each voxel calculated is combined with the inertial momentum gradient method to locate the valley line between adjacent tree crowns. Finally, if the height values of the partial point clouds in two adjacent voxels show a continuous downward trend, that is, the gradient continuously decreases in a similar direction, it indicates that the point cloud belonging to the same tree crown has been divided into two parts through voxelization. Therefore, this embodiment will merge two parts of a tree crown (such as Figure 5 In (c), the middle tree crown is divided into two parts by adjacent voxels and needs to be merged).
[0115] This embodiment uses the idea of inertial gradient calculation to characterize the boundaries of a single tree crown. By calculating the gradients in 16 directions for the maximum points of each crown, the minimum values at the crown and the edge of the crown, that is, those middle points, are found. The specific equation is as follows:
[0116]
[0117]
[0118] In formula (4) is the cell at the current iteration t k The gradient value is calculated according to formula (3). is the updated gradient value calculated according to the inertia gradient formula (4) at time t, α is the weight of the inertia gradient, that is, the current value calculated at each moment The gradient value is affected by the gradient calculated in the previous step. The effect of the gradient is similar to the increment of inertial loading. Represents the current cell k The projection value of the gradient in the direction τ, τ = {1, 2, 3...16} represents 16 directions. Figure 6 The gray lines in (a) and (b) are shown in Figure 5. Represents the cell that is reached by extending forward in one of the 16 directions according to the accumulated gradient value: β is the step size. That is to say, the position of the cell at the next moment is calculated based on the accumulated gradient and the step size, and the cell will eventually be located at the border of the canopy. When the cell reaches the border of the canopy in all directions, such as Figure 6 As shown in (a), these are the boundary points of adjacent trees. Then, the crown surface to be segmented is outlined based on the boundary points. The advantage of this method is that when a single tree has multi-leaf clusters or the upper surface of the crown is not smooth, that is, when there are local bulges, the inertial impulse can be directly located on the cell at the crown boundary during the iterative calculation process, and combined with the gradient vector we calculated, it will eventually point to the lowest point of the crown boundary ( Figure 6 This ensures the accuracy of the tree crown boundary extracted in this embodiment.
[0119] Figure 6 The schematic diagram shows the inertial gradient descent method of this embodiment, which calculates the inertial gradient direction of the cell and finds the global minimum value along the inertial gradient in each growth direction (gray line), thereby locating the boundary of the crown. Figure 6 Middle (a): Inertial gradient descent pushes the ball to the true lowest point without staying at a local pseudo-extreme point. Figure 6 Middle (b): The inertial gradient descent of each crown along the 16 directions of the vertex is used to find the crown boundary point, that is, the global minimum point.
[0120] The segmentation results of the selected test points of the structural features of different test points of this embodiment were evaluated, where the manual measurement result TP (true positive) is the number of correctly segmented crowns, FN (false negative) is the number of crowns that actually exist but are not detected by the algorithm, and FP is the number of crowns that do not exist in reality but are incorrectly detected by the model of this embodiment (false positive). In addition, r (recall), P (precision) and F (F-score) of the three test points were calculated using the following equations.
[0121]
[0122]
[0123]
[0124] In the above formula, r (recall) represents the detection rate of the tree, P (precision) represents the correctness of the detected tree, and F (F-score) represents the overall accuracy of the detected tree.
[0125] From the formula, we can see that high TP, low FN, and low FP values represent high accuracy of tree detection.
[0126] PointNet model training and testing results:
[0127] In addition to the deep learning part on a Windows 10 64-bit PC, this embodiment is also equipped with an Intel (R) Core (TM) i7-7700CPU @ 2.80GHz processor and 16GB-RAM for the experiment. Since deep learning involves an automated computer system to study a large amount of training data and requires high computing power, this embodiment uses an NVIDIA RTX 2080Ti GPU instead of a CPU to reduce our training time. In the PointNet model, the learning rate is 0.0001, the batch size is 16, and the number of epochs iterations is 200. The training loss and training accuracy are shown in Figure 2. Figure 7 The total training and testing time is about 100 hours.
[0128] Figure 7 (a) and (b) are curves showing the training accuracy and training loss of tree recognition from input voxels using PointNet. The fluctuations in the light-colored area are the result of repeatedly learning effective features from a batch of complex samples to identify whether a voxel is a tree, but the overall upward and downward trends of the curves indicate that the training convergence effect is good.
[0129] With continued learning, the training samples (point clouds in each voxel) show an increasing trend in training accuracy and a decreasing trend in training loss, indicating that the method of using the PointNet network model in this embodiment can be globally optimized. The training accuracy and training loss increased and decreased significantly in the first 25 iterations, respectively. The reason may be that when dealing with overwhelming samples in three-dimensional object classification, the model PointNet shows incompatibility due to its gradient, mainly due to these easy-to-classify samples. During the training process, the neural network encounters some complex samples in the same batch, for example, voxels contain parts of multiple trees, a small part of a single tree data, or some low shrubs, which affects the learning effect of the model and causes strong fluctuations in the value of the regression loss function. After 75 iterations, the accuracy and loss of the training samples converged to 0.96 and 0.009, respectively, indicating that PointNet has a strong fitting ability. Figure 8-Figure 11 A side view showing the recognition results of the PointNet model for four test images.
[0130] Figure 8-Figure 11 The PointNet model is used to identify some lidar data of four plot types (a) nursery, (b) temple garden, (c) mixed forest and (d) leafless forest. Here, this embodiment adopts a simple representation method, that is, a matrix of different gray values corresponding to each voxel is added to represent the classification results of the point cloud within the voxel. The light, dark and gray rectangles in the figure (a1, b1, c1 and d1) represent the point clouds under the rectangles in the voxel, which are identified as trees, buildings and other objects respectively. The enlarged classification results of some voxel point clouds are shown in the figure (a2, a3, a4, b2, b3, b4, c2, c3, c4, d2, d3 and d4).
[0131] Table 2 lists the quantitative evaluation of individual voxels at the four test sites. In the experiment, the setting of voxel size is crucial, which will affect the accuracy of the PointNet model. Therefore, this embodiment appropriately sets voxels of different specifications according to the characteristics of the voxels (i.e., the average tree crown width in the EW and NS directions of each test point as the length and width of the voxel). As many trees as possible from the four test sites are used. The nursery base (test site 1) has a homogeneous forest with similar crown size, species and age. Therefore, it is relatively easy to set the voxel size. For the temple garden (test site 2) with different building types and different tree species, setting the voxel size is more troublesome due to the complex growth and different sizes of various tree species. The mixed forest (3) test site has different sizes of crowns, complex crossed branches, and contains about 15% of the trees under the canopy. The deciduous forest (4) with lower trees, bare branches and several parts covered by surrounding shrubs makes it difficult to ensure that the stereo pixel contains a complete tree.
[0132] The size of the voxel is defined by the average canopy size obtained from the preliminary forest survey. Here, the length, width, and height of the voxel defined in this embodiment are: 1.35m, 1.36m, and 4.92m for the nursery base, 6.46m, 5.81m, and 26.96m for the temple garden, 7.08m, 6.59m, and 48.06m for the mixed forest, and 5.23m, 5.2m, and 20.96m for the leafless forest.
[0133] Table 2 provides an overall evaluation of the accuracy of individual voxels for identifying trees at the four test sites:
[0134]
[0135] T: defined as the number of voxels for trees. B: defined as the number of voxels for buildings. O: defined as the number of voxels for other objects.
[0136] For the four experimental sites of nursery base, temple garden, mixed forest and leafless forest, the voxels of trees are 470, 136, 365 and 137 respectively. Figure 8 As shown in (a2), the main error occurs when the voxel containing the scanned point is regarded as a small part of a sapling with an immature crown or unclear topology (e.g., atypical tower and umbrella shape). The PointNet network model has difficulty learning joint features from two different objects in extracting features of each independent point and features of the global point cloud, which may lead to incorrect recognition of incomplete canopy shapes after extracting point cloud features from voxels obtained by segmentation. When the voxel contains parts of multiple tree data with bimodal distribution (i.e., a complete crown and a small part (<20%) of the adjacent crown), the model generally learns complete information and always recognizes the entire point cloud in a voxel as a tree.
[0137] For temple gardens, the spatial shape of trees is a primitive form of geometric shapes, and its phenotypic characteristics are a main trunk supporting an elliptical or conical crown, which is different from rigid objects with regular phenotypic characteristics such as buildings. When a voxel contains both trees and temple walls, it is easy to be misjudged due to unclear phenotypic characteristics. Trees and buildings in the point cloud of the mixture are always identified as non-trees. A reasonable explanation for this is that the high data complexity reduces the ability of the deep learning network to extract useful information from the crown and leads to uncertain classification results of point cloud voxels. The classification accuracy of the mixed point cloud in a single voxel may be affected by the occupancy ratio of the point cloud about the tree in a single voxel and the machine learning feature extraction method. In contrast, the voxelized building section obtains good performance. This embodiment expects that the main reason is that the temple wall has regular surface features different from the crown. The first T-Net in the network generates an affine transformation matrix to normalize the rotation, translation and other changes of the point cloud, thereby providing effective spatial and distance metrics from multiple perspectives and capturing global and local features that match the semantic features corresponding to the training samples.
[0138] For mixed forest plots with various crown shapes and overlapping leaf clusters, the density of forest trees is uneven, and there is overlapping occlusion between crowns ( Fig.10 (c2). Forests with rich biomass create complex and indistinguishable LiDAR point clouds, which weaken the recognition ability of the deep learning network. As a result, point clouds with overlapping trees contained in some voxels are incorrectly identified as trees. In addition, point clouds with some tree trunks tilted and tree crowns with crooked trunks are not correctly identified, which is different from the general upward structure of the crown and the roughly symmetrical branch distribution structure, which is prone to classification errors.
[0139] For the forest land without leaves, the classification results are as follows Fig.12 As shown in (d). During the dormant period, the leaves of bare-branched trees are scarce. Judging from the global structure of the tree model, this embodiment successfully identified more tree skeletons. However, there are still some cases that cannot be recognized by the network, such as the lower parts of a few trees are covered by surrounding shrubs, and the trunks or branches of many trees are segmented by adjacent voxels. In addition, the lack of sufficient deciduous tree training samples also reduces the recognition ability of the deep learning network.
[0140] After the voxel classification based on the PointNet model is completed, this embodiment will use the method mentioned in the single tree crown segmentation section to divide the tree crown. The extracted single tree crown is marked with different grayscale colors, such as Fig.12 shown.
[0141] Fig.12 The above pictures show the individual tree crown segmentation results of this embodiment, where different colors represent the segmentation results of each tree. Fig.12 (a), (b), (c), and (d) show the partially segmented LiDAR point cloud data of the nursery base, temple garden, mixed forest, and leafless forest, respectively.
[0142] In the tree segmentation results of four different types of forest locations, the method using the PointNet network model achieved better performance ( Fig.12 ). It is not difficult to find that the overall segmentation accuracy of the nursery base and temple garden (r = 0.90 and r = 0.85, respectively) is higher than that of the mixed forest and leafless forest (r = 0.80 and r = 0.82, respectively). One explanation for this is that the nursery base has similar tree ages and uniform planting arrangements, fewer cross-growing tree branches, and almost no understory vegetation, which makes the voxels contain more complete point clouds. The temple garden contains many trees whose crowns are almost isolated and their shapes are changed by artificial pruning. Therefore, some trees have compact crown envelopes, which facilitates the use of gradient information related to height to achieve single tree segmentation. Unlike the nursery base, the mixed forest and deciduous natural forest are composed of a variety of trees and shrubs with interlaced branches and protruding trunks. It is difficult to achieve single tree segmentation using deep learning models and gradient segmentation methods. This is also attributed to the lack of forest point cloud data due to occlusion and the bare branches and rough outermost crown surfaces of other trees exposed during dormancy, resulting in relatively low single tree segmentation results (r = 0.80 for mixed forests and r = 0.82 for leafless forests). In these four types of forest plots, some detection errors occur due to multi-leaf clusters of the same crown, side-growing branches that produce local convex points, and the upturned eaves of temple corners that are mistaken for treetops.
[0143] Table 3 shows the accuracy evaluation of individual tree crown segmentation on four test plots:
[0144] NT NS tp FP fn r p f Nursery base 522 511 470 41 52 0.90 02.9 01.9 Temple Gardens 160 151 136 15 24 05.8 0.90 0.87 Mixed forest 456 445 365 80 91 0.80 0.82 01.8 Leafless forest 167 163 137 26 30 0.82 0.84 0.83 Overall indicators 1305 1270 1108 162 197 0.85 0.87 0.86
[0145] NT: Number of true trees. NS: Number of trees segmented by our algorithm. TP: Number of correctly segmented tree crowns. FN: Number of true trees not detected. FP: Number of trees that do not exist in reality but are incorrectly detected by our model. r(Recall): Tree detection rate. P(Precision): Correctness of detected trees. F(F-score): Overall accuracy of detected trees.
[0146] Precision of crown width estimation:
[0147] For the split individual trees, 100 trees were selected from each test point to calculate their north-south direction (Cb n ) and east-west direction (Cb e ) and compared it with the manual segmentation results. We also calculated the correlation coefficient (R 2 ), root mean square error (RMSE) and relative root mean square error (rRMSE) were used to qualitatively evaluate the results.
[0148] Among the four test sites, the accuracy of crown width estimation at the nursery base was the highest (R 2 =94.4±0.28%, RMSE=0.13±0.01m, rRMSE=9.59±0.70%), which may be related to the regular and uniform geometry of the tree crown and the small number of branch intersections. 2 =85.105±0.015%, RMSE=0.74±0.01, rRMSE=10.835±0.245%) and the accuracy of temple gardens (R 2 A reasonable explanation is that the crowns of some trees are blocked by surrounding tall trees or buildings, resulting in some suppressed trees in the forest canopy or crown width estimation bias due to buildings next to some trees.
[0149] For the leafless forest plots, the consistency of crown width estimation between our method and manual measurement gradually decreased. Since many trees in the plots have bare branches and no leaves, many crowns do not have continuous vertical lines and smooth crown surfaces, resulting in the generated DSM having empty grid cells or gaps with missing elevation data. These unfavorable factors will have an adverse effect on the crown width measurement for slope calculation. Therefore, the statistical index of the crown width estimation of the leafless forest is relatively low (R 2 =79.94±0.13%, RMSE=0.61±0.02m, rRMSE=11.7±0.35%).
[0150] Fig.13The scatter plot shows the comparison results of the canopy width of four different forest types, namely (a) nursery base, (b) temple garden, (c) mixed forest and (d) leafless forest, with the method of this embodiment.
[0151] Advantages of the method of this embodiment:
[0152] Automatic extraction (segmentation) of individual trees from airborne laser scanning data is an important prerequisite for estimating tree phenotypes and biophysical parameters. At present, machine vision algorithms and image processing techniques have been widely used in single tree segmentation. However, if only limited geometric spatial information is considered, it is difficult to handle clustered trees with high similarity and density distribution changes. For example, clustered crowns with similar heights and close distribution may be mistakenly detected as single tree tops, resulting in insufficient segmentation. In addition, non-tree top local maxima may be mistakenly detected as tree tops and lead to over-segmentation. For the segmentation of individual trees based on crown center and point density distribution, when dealing with some single-sided crowns or when the tree body is tilted, due to competition with neighboring trees for growth or environmental influences (such as hurricane damage or uneven distribution of solar irradiance), there will be deviations from expectations. High-density scan point clusters often appear on the connected parts of overlapping crowns, leaves attached to exposed branches, and vegetation that is not affected by occlusion. Therefore, these problems will lead to a decrease in the accuracy of segmenting individual tree crowns based solely on the limited features of point clouds.
[0153] Deep learning attempts to model high-level abstract features in data in a hierarchical manner, extracts effective features from a large number of samples, and continuously improves the performance of neural networks, providing machines with stronger capabilities for identifying targets. In addition, with the rapid development of deep learning, a large number of studies have been devoted to various deep learning classification or segmentation tasks, using two-dimensional images as raw input data to achieve the segmentation of individual trees. Although these methods have achieved good results in crown segmentation, the original three-dimensional geometric information of the research target is still lost in the process of converting to two-dimensional images. The disorder, non-uniformity, irregularity and noise of forest point clouds pose great challenges to point cloud segmentation, and the existing image classification and segmentation framework cannot be directly applied to point clouds. Therefore, this embodiment proposes a novel PointNet deep learning method to directly process disordered point cloud data and achieve the segmentation of individual trees. As we all know, the research in this embodiment is a bold attempt to use PointNet to directly act on scanned data for single tree crown segmentation, which retains the spatial characteristics of the point cloud to the greatest extent and achieves good performance in the final test. The T-Net model is used to normalize the rotation, translation and other changes of the scan data in the input voxels, and the MLP model is used to extract and aggregate numerous features from various neural networks to effectively learn about the features of trees and other complex objects. During the training process, the PointNet network model, together with a large number of collected training samples, obtained the optimal weights through iterative forward and backward propagation, making the model robust to point cloud recognition that constitutes a tree structure.
[0154] Compared with existing methods:
[0155] In the study of this embodiment, the original point cloud is combined with a voxelization strategy, a PointNet network model and highly correlated gradient information, which is different from some existing single tree crown segmentation methods, such as the watershed algorithm and the point cloud-based clustering segmentation algorithm.
[0156] The watershed algorithm is based on the physical principle of asymptotic water spreading on the DSM or CHM, eventually stopping at the low-lying areas at the border of the canopy. However, the watershed algorithm is limited to tree species with regular shapes and has good performance for phenotypic characteristics of similar crowns, that is, trees are neatly arranged in a common tower or umbrella shape. For forest areas with irregular crown shapes and complex interiors, the high density distribution of trees in the forest and the overlapping crowns may lead to the appearance of multiple local maximum height vertices in the forest canopy. In addition, the performance of the watershed algorithm is prone to improper handling of weak edges (i.e., subtle grayscale changes on the outer surface of the forest canopy) and noise on the DSM, resulting in under-segmentation and over-segmentation. For the watershed algorithm, these situations will be exacerbated when encountering dense forest habitats composed of canopy and sub-canopy trees.
[0157] The point cloud-based clustering segmentation algorithm is a method that uses a top-down region growing method to segment individual trees from the highest to the lowest. In general, it is assumed that the geometric spatial characteristics of the scanned points are analyzed to find the top of the crown. The algorithm couples various distance metrics to achieve the segmentation of individual trees. However, for different types of forest plots, the key parameters of this method are uncertain. If inappropriate parameter values are assigned, trees with elongated branches and severe bending may be over-segmented, or trees with overlapping adjacent crowns may be mis-segmented. Therefore, suitable parameters are crucial to the final performance of the method. In addition, the algorithm utilizes the inherent three-dimensional structural characteristics of the lidar point cloud, and mis-segmentation may occur when the laser pulses do not sample the canopy uniformly due to reasons such as mutual occlusion of vegetation elements and changes in the scanning angle of the instrument.
[0158] Here, the comparison results of the watershed algorithm, the point cloud-based clustering segmentation algorithm, and the deep learning-based method are applied to the point clouds of four experimental forests (i.e., nursery base, temple garden, mixed forest, and leafless forest) at the same location, and the accuracy of the three methods is listed in Table 4. The results show that for the nursery base with similar crown shapes, low planting density, and neat arrangement, the three methods have similar segmentation accuracy. For forests with more tree species and different complex tree structures, the method of this embodiment increases the accuracy of small tree segmentation, which shows that the deep learning framework of this embodiment can better extract the spatially complex features of tree bodies when dealing with highly complex forest scenes.
[0159] Table 4 compares the accuracy of single tree crown segmentation using the watershed algorithm, point cloud-based clustering segmentation algorithm, and our method on the original point clouds of the four experimental forests:
[0160]
[0161]
[0162] NT: Number of real trees. NS: Number of trees segmented by our algorithm. r(Recall): Tree detection rate. P(Precision): Correctness of detected trees. F(F-score): Overall accuracy of detected trees. TP: Number of correctly segmented tree crowns. FN: Number of real trees not detected. FP: Number of trees that do not exist in reality but are incorrectly detected by the model of this embodiment.
[0163] This embodiment designs a deep learning method based on the scanning point cloud collected by the LiDAR carried by the drone, identifies trees at the voxel scale, and combines highly correlated gradient information to complete the delineation of the crown of a single tree. The segmentation algorithm consists of two stages. In the first stage, point clouds of various forms of trees and buildings are manually extracted as training samples, which are brought into the PointNet model for network training to obtain the optimal network parameters. Then, the point cloud of each forest is subdivided on the basis of voxelization. The point cloud in each voxel is used as a test sample and analyzed by the trained PointNet network model to obtain the classification result. In the second stage, based on the voxel-scale deep learning segmentation results, highly correlated gradient information is used to accurately characterize the boundaries of each tree crown. At the same time, the tree crown width estimated by the deep learning method is compared with the manual measurement results to verify the effectiveness of the method. The research results for four types of forest plots (i.e., nursery bases, temple gardens, mixed forests, and leafless forests) show that the crown detection rate r=0.90 and the crown width R of the nursery base are 2 >0.94, which has good performance. For temple gardens and mixed forests with complex forest structures, complex branch crossings and different types of buildings (R = 0.85 and R 2 >0.88, mixed forest r=0.80, R 2 For the fourth plot type, i.e., the leafless forest, this embodiment also achieved good inversion accuracy (r = 0.82 for the leafless forest, R 2 >0.79). Compared with the watershed algorithm and the point cloud-based clustering segmentation algorithm, the method of this embodiment improves the tree detection accuracy by 1%-6%. In summary, this study shows that it is feasible to apply the deep learning framework to directly process the scan points of various forest types and solve the problem of segmenting the crown of a single tree.
[0164] The protection scope of the present invention includes but is not limited to the above embodiments. The protection scope of the present invention shall be based on the claims. Any replacement, deformation, and improvement of the technology that can be easily thought of by technicians in this field shall fall within the protection scope of the present invention.
Claims
1. A single tree crown segmentation method based on deep learning and airborne laser point cloud, characterized by: The following steps are involved: (1) Obtain lidar point cloud data of the research site; (2) removing noise points from the point cloud data and dividing the denoised point cloud data into ground points and surface points; (3) Manually extract the point cloud of individual trees from the ground, and then use voxels as boundaries to divide different trees into different voxels; (4) After converting the point cloud data format of a single tree in each voxel into the format required by PointNet, a training sample dataset is constructed; (5) The training sample data set in step (4) is used to generate a new training sample data set by using a data augmentation method; (6) Use the new training sample data set to train the PointNet deep neural network to obtain a trained PointNet model; (7) Collect the laser radar point cloud data of the site to be measured, remove the noise points of the point cloud data, divide the denoised point cloud data into ground points and ground points, subdivide the ground points into multiple voxels by voxelization, convert the point cloud data in each voxel into the format required by PointNet, and input them into the trained PointNet model together to automatically identify the point cloud in each voxel of the tree; (8) The point cloud in each voxel identified as a tree is mapped to the DSM, and the gradient information of the DSM of each voxel is calculated. The gradient information of the DSM of each voxel is combined with the inertial momentum gradient method to locate the boundary points of adjacent tree crowns. The surface of the tree crown to be segmented is then outlined based on the boundary points to achieve the segmentation of the crown of a single tree.
2. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 1, characterized in that: The laser radar point cloud data is collected by the Velodyne HDL-32E sensor on the drone.
3. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 1, characterized in that: In the above-mentioned steps (2) and (7), the noise points of the point cloud data are removed, and the denoised point cloud data are divided into ground points and surface points, specifically: Gaussian filtering is used to remove noise points from point cloud data, and cloth simulation filtering is used to divide the denoised point cloud into ground points and surface points.
4. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 1, characterized in that: The format required by PointNet is HDF5 format.
5. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 1, characterized in that: The step (3) specifically includes: (3.1) Manually extract the point cloud of individual trees from the ground, and then use voxels as boundaries to divide different trees into different voxels; (3.2) Manually extract the point cloud of the building from the ground points, and then subdivide the ground points belonging to the building into multiple voxels by voxelization; (3.3) Manually extract the point clouds of objects other than trees and buildings from the ground points, and then subdivide the ground points belonging to other objects into multiple voxels through voxelization.
6. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 5, characterized in that: The step (4) is specifically as follows: After converting the point cloud data format of each voxel in step (3) into the format required by PointNet, a training sample dataset is constructed.
7. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 6, characterized in that: During the training process of the PointNet deep neural network, the loss function of the voxel is: in is an indicator. If the current calculation category ζ is the same as the training sample category l, then otherwise There are three categories, namely trees, buildings and other objects; N = (number of categories - 1) = 2; l = {0, 1, 2}; Represents the point cloud p within the jth voxel j The probability obtained by the change of the linear weight ω of the deep learning network, softmax represents the corresponding Softmax nonlinear activation function; L reg = l2_loss(I-AA T ), where A is the 64*64 matrix output by the transformation matrix prediction network, I is the 64*64 unit matrix, and the l2_loss function represents the matrix (I-AA T ) and then sum each element after square and divide by 2, weight regre is the weight value.
8. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 7, characterized in that: The stochastic gradient descent algorithm is used to update the weights ω of each layer of the PointNet deep neural network.
9. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 7, characterized in that: In the step (8), the point cloud in each voxel identified as a tree is mapped to the DSM, and the gradient information of the DSM of each voxel is calculated, specifically: The point cloud in each voxel identified as a tree is mapped onto the DSM, that is, a uniformly distributed plane grid C, with the grid cell k The elevation value of ∈C is equal to the maximum height value of the point cloud vertically projected within the unit, where k = 1, 2, ... m 2 , m 2 Represents the number of grids derived from the point cloud within a single voxel; The gradient equation for each grid in the three-dimensional space defined by the x-axis, y-axis, and z-axis is: In the equation, and are the unit vectors in the x, y, and z directions respectively; the gradient is the Hamiltonian operator acting directly on each grid cell k ∈C, where C is the DSM generated by the point cloud within a single voxel; the resolution of each voxel at the grid unit scale is m*m, and are the derivatives of the height change of the highest scan point of each grid cell along the x, y and z directions respectively.
10. The method for segmenting a single tree crown based on deep learning and airborne laser point cloud according to claim 9, characterized in that: The specific equation of the method for calculating the inertial momentum gradient in step (8) is as follows: In formula (3) is the cell at the current iteration t k The gradient value calculated according to formula (2); is the updated gradient value calculated according to the inertia gradient formula (3) at time t, and α is the weight of the inertia gradient; Represents the current cell k The projection value of the gradient in the direction τ, τ = {1,2,3...16} represents 16 directions; in formula (4) Represents the cell that is reached by extending forward in one of the 16 directions according to the accumulated gradient value: β is the step size.
