Single tree crown detection method based on end-to-end deep learning method
By processing airborne lidar data with an end-to-end deep learning method, generating a digital surface model and training a deep convolutional adversarial generation network, it solves the detection speed and accuracy problems of existing canopy detection algorithms under the complexity of the canopy shape and environment, and achieves for fast and accurate detection in diverse forests.
Patent Information
- Application Number
- CN202110163462.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-02-05
AI Technical Summary
Existing crown detection algorithms have limitations in detection speed and accuracy when dealing with uneven crown shapes and sizes and complex environments.
A single tree crown detection method based on the end-to-end deep learning method is used to automatically identify the position and crown of the tree crown through preprocessing of airborne lidar point cloud data, generation of digital surface models and training of deep convolutional adversarial generation networks. frame size.
It achieves rapid and accurate detection of single tree crowns in forests with diverse tree species, with a recall rate of 87.2% and an overall accuracy rate of 93.6%. It has the potential to predict the distribution of tree crowns of different types, tree species and planting densities.
Smart Images

Figure CN112907520B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of forestry, and in particular relates to a single tree crown detection method based on an end-to-end deep learning method. Background Art
[0002] In recent years, LiDAR has achieved promising results in extracting canopy structural parameters and physical properties. By emitting laser pulses to the crown or ground and reflecting them back to the sensor, the airborne LiDAR system records the three-dimensional coordinate information of the ground or vegetation provided by the reflected laser pulses. With the increasing convenience of airborne LiDAR data acquisition, a series of algorithms for processing these data have emerged. Traditional airborne LiDAR-based tree crown detection algorithms can be divided into two categories. The first is a three-dimensional laser point cloud-oriented method that directly processes point clouds to identify and extract individual tree crowns. This type of algorithm mainly includes point cloud clustering and multi-scale dynamic point cloud segmentation algorithms. The second category is image-oriented methods, which mainly include edge detection, region grouping, and watershed segmentation algorithms. By converting three-dimensional point clouds into two-dimensional images, a large number of image processing algorithms can be effectively applied to tree crown detection. Although the above algorithms have achieved good performance, there are still certain limitations in detection speed and accuracy due to the uneven shape and size of the crown and the complexity of the crown environment. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a single tree crown detection method based on an end-to-end deep learning method to address the shortcomings of the above-mentioned prior art. Compared with other advanced tree crown detection algorithms, the single tree crown detection method based on an end-to-end deep learning method can quickly and accurately detect single tree crowns from forests with diverse tree species.
[0004] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0005] A single tree crown detection method based on an end-to-end deep learning method comprises the following steps:
[0006] (1) Collect airborne LiDAR point cloud data of trees;
[0007] (2) Preprocessing the airborne laser radar point cloud data, dividing the airborne laser radar point cloud data into ground points and non-ground points, generating a digital surface model based on the non-ground points, and converting the digital surface model into an elevation map;
[0008] (3) Manually mark each tree crown in the elevation map and use the marked elevation map as a training sample;
[0009] (4) Use a deep convolutional generative adversarial network to learn the labeled training samples and generate new training samples;
[0010] (5) Using the training samples manually marked in step (3) and the new training samples generated in step (4) to train the end-to-end deep learning network, and obtain an end-to-end network model for tree crown recognition;
[0011] (6) Obtain airborne laser radar point cloud data of the trees to be tested, obtain an elevation map of the trees to be tested according to the method in step (2), input the elevation map into the tree crown recognition end-to-end network model, and automatically identify the specific position and size of the tree crown.
[0012] As a further improved technical solution of the present invention, the trees in step (1) include nurseries, forest park landscape areas and mixed forests.
[0013] As a further improved technical solution of the present invention, the step (1) is specifically:
[0014] The Velodyne HDL-32E sensor mounted on the DJI FC6310 drone was used to collect airborne lidar point cloud data of the forest.
[0015] As a further improved technical solution of the present invention, the step (2) is specifically as follows:
[0016] (2.1) Use Gaussian filter to denoise the airborne lidar point cloud data;
[0017] (2.2) Using cloth simulation filtering method to divide the denoised airborne lidar point cloud data into ground points and non-ground points;
[0018] (2.3) Generate a digital surface model based on non-ground points;
[0019] (2.4) By orthogonally projecting the digital surface model, different colors are used to represent elevation information. The higher the location, the brighter the corresponding grid, that is, the larger the pixel value, and finally the corresponding elevation map is obtained.
[0020] As a further improved technical solution of the present invention, the manual marking of each tree crown in the elevation map in step (3) is specifically as follows:
[0021] The LabelImg image annotation tool was used to manually label each tree crown in the forest elevation map.
[0022] As a further improved technical solution of the present invention, the objective function of the deep convolutional adversarial generative network is:
[0023] V(G,D)=∫ x P real (x)·log(D(x))dx+∫ x P generate(x)·log(1-D(x))dx (1);
[0024] Where D represents the discriminator, G represents the generator, and P real (x) represents the probability distribution of real data, P generate (x) represents the probability distribution of generated data.
[0025] As a further improved technical solution of the present invention, during the training process of the end-to-end deep learning network, the loss function I is set to:
[0026] I=I 1 +I 2 +I 3 (2);
[0027] The predicted bounding box I 1 The loss function is defined as:
[0028]
[0029] in, represents the j-th predicted bounding box of grid cell i; e 1 is the threshold value, set to 5; num is set to 7, indicating that each grid cell predicts 7 target boxes of different scales; M represents four different scales, namely (13, 26, 52, 104), which means that each input image is converted into four different scales, where M = 13 is suitable for image detection of large target crowns, M = 26 is suitable for image detection of medium target crowns, M = 52 is suitable for image detection of small and medium target crowns, and M = 104 is suitable for image detection of small target crowns; It represents the intersection area between the predicted box and the real box. and Represents the x and y positions of the center points of the predicted box and the real box respectively. Represents the Euclidean distance between two center points; l diaglinofminimclos The diagonal length of the smallest rectangle representing the envelope prediction box and the true box; in w and h represent the width and height of the predicted box and the real box respectively;
[0030] The prediction confidence I 2 The loss function is defined as:
[0031]
[0032] in, Indicates the confidence of the prediction box; S i Indicates the confidence value of the corresponding actual detected object; λnoobj Set to 0.5;
[0033] The predicted category I 3 The loss function is defined as:
[0034]
[0035] where p i (s) represents the probability of the real existence of an object in grid cell i, which takes the value of 1 or 0; Represents the probability of the existence of class s object in grid cell i; Indicates whether there is an object in grid cell i. If there is an object in i, is 1; otherwise, is 0; classes represents a certain category.
[0036] As a further improved technical solution of the present invention, the end-to-end deep learning network adopts an adaptive momentum estimation gradient descent algorithm to optimize back propagation parameters, specifically:
[0037] Take the initial time t = 0, the first bias moment m t=0 = 0, the second original bias moment n t=0 =0;
[0038] After each back propagation, m t =β 1 m t-1 +(1-β 1 ) t , in
[0039] calculate
[0040] Update the parameter θ t-1 , as follows:
[0041]
[0042] Among them, β 1 ,β 2 ∈[0,1), indicating exponential decay rate; Represents β 1 Perform exponential operations according to the number of iterations; Represents β 2 Perform exponential operation according to the number of iterations; ∈ = 10 -7 , represents the disturbance amount; μ=0.003, represents the speed of control parameter update; I t represents the loss function value corresponding to time t; θ represents the weight coefficient in the network, Represents the loss function I at each moment t The results of deriving each weight coefficient θ in the network are as follows:
[0043]
[0044] The beneficial effects of the present invention are as follows: the present invention selects a latest end-to-end target detection algorithm for single tree crown detection. Compared with other advanced tree crown detection algorithms, the end-to-end not only has faster speed and accuracy, but also has obvious advantages in detecting abstract artworks. The present invention converts the digital surface model into an elevation map, and the tree crown recognition method of the present invention is directly applied to the elevation map, which avoids the interference that may be caused by the complex texture features of the aerial image and the complex geometric features of the three-dimensional point cloud. The LabelImg image annotation tool is used to mark the single tree crowns in the elevation map of the forest, and a deep convolutional adversarial generative network is used to generate new training samples, and the marked and generated training samples are input into the end-to-end deep learning network for training. The algorithm has the potential to predict the distribution of tree crowns of different types, different tree species and different planting densities, and can quickly and accurately detect single tree crowns from forest plots with diverse tree species. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 (1) is a grayscale image of a portion of the aerial image of the nursery.
[0046] Figure 1 (2) is a grayscale image of a portion of the aerial image of the forest landscape area.
[0047] Figure 1 (3) in the middle is a grayscale image of a portion of an aerial image of a mixed forest.
[0048] Figure 2 Schematic diagram of the end-to-end network structure for detecting individual tree crowns from the elevation map generated by DSM.
[0049] Figure 3 (1) is a schematic diagram of the tree crowns in the nursery elevation map manually labeled using the LabelImg tool in some training samples.
[0050] Figure 3 (2) is a schematic diagram of the tree crowns in the forest landscape area elevation map manually labeled using the LabelImg tool in some training samples.
[0051] Figure 3 (3) is a schematic diagram of the tree crowns in the mixed forest elevation map manually labeled using the LabelImg tool in some training samples.
[0052] Figure 4Schematic diagram of real training samples and training samples generated using a deep convolutional adversarial network.
[0053] Figure 5 (1) is the loss curve of end-to-end deep learning network training.
[0054] Figure 5 (2) is the PR curve of end-to-end deep learning network training.
[0055] Figure 6 (1) shows the test results of using the end-to-end network model to detect the crown of a single tree in some test samples in the nursery.
[0056] Figure 6 In (2) Figure 6 An intuitive display of the crown detection results in (1).
[0057] Figure 6 (3) shows the test results of using the end-to-end network model to detect the crowns of individual trees in some test samples in the forest landscape area.
[0058] Figure 6 In (4) Figure 6 An intuitive display of the crown detection results in (3).
[0059] Figure 6 (5) shows the test results of using the end-to-end network model to detect the crowns of individual trees in some test samples of mixed forests.
[0060] Figure 6 In (6) Figure 6 An intuitive display of the crown detection results in (5).
[0061] Figure 7 (1) is a diagram showing the results of detecting the crown of a single tree in sample plot 5 using the method of this embodiment.
[0062] Figure 7 (2) is a diagram showing the results of detecting the crown of a single tree in sample plot 7 using the method of this embodiment.
[0063] Figure 7 Middle (3) shows 18 fisheye images taken from the centers of 18 different circular subsets (black circles).
[0064] Figure 8 Schematic diagram of the number of trees in the 18 circular subsets in plots 5 and 7.
[0065] Fig. 9 (1) is a scatter plot of the relationship between the crown length predicted by the end-to-end network model and the measured crown length of trees in plot 1.
[0066] Fig. 9 (2) is a scatter plot showing the relationship between the crown length predicted by the end-to-end network model and the measured crown length of trees in plot 5.
[0067] Fig. 9 (3) is a scatter plot showing the relationship between the crown length predicted by the end-to-end network model and the measured crown length of trees in plot 7.
[0068] Fig.10 (1) is a graph comparing the results of detecting individual tree crowns in sample plot 5 using the watershed segmentation algorithm and the end-to-end deep learning algorithm of this embodiment.
[0069] Fig.10 (2) is a graph comparing the results of detecting individual tree crowns in sample plot 7 using the watershed segmentation algorithm and the end-to-end deep learning algorithm of this embodiment. DETAILED DESCRIPTION
[0070] The specific embodiments of the present invention are further described below according to the accompanying drawings:
[0071] Extracting individual tree crown information from LiDAR data is of great significance for the assessment and intelligent management of forest resources. Advanced deep learning methods can efficiently and accurately analyze remote sensing data and solve earth science problems. By combining the digital surface model generated based on airborne LiDAR data with an end-to-end deep learning method, this embodiment proposes a new tree crown detection framework, namely, a single tree crown detection method based on an end-to-end deep learning method. By converting the digital surface model into an elevation map, the tree crown recognition method of this embodiment is directly applied to the elevation map, which avoids the interference that may be caused by the complex texture features of aerial images and the complex geometric features of three-dimensional point clouds. The LabelImg image annotation tool is used to mark 4980 tree crowns in the elevation maps of nurseries, forest landscape areas and mixed plantations, and the marked elevation maps are brought into the deep convolutional adversarial network of this embodiment for training, generating 8192 artificial tree crown elevation map samples and bringing them into the end-to-end network of this embodiment for training. The elevation maps of other unlabeled tree crowns in the same study area are used to construct a test set to verify the effectiveness of the method of this embodiment. The results showed that the method had a recall rate of 87.2% and an overall accuracy of 93.6% when detecting individual tree crowns in the three study areas, indicating that the algorithm has the potential to predict the distribution of tree crowns of different types, different tree species and different planting densities.
[0072] The details are as follows:
[0073] 1. Materials and methods
[0074] (1.1) Study area:
[0075] The study area of this embodiment includes three different study areas located at Nanjing Forestry University in Nanjing (32.07°N, 118.78°W). Nanjing is located south of the Huaihe River in Qinling Mountains and has a subtropical monsoon climate. The average annual temperature is 15.7°C, and the average temperatures of the coldest month (January) and the hottest month (July) are -2.1°C and 28.1°C, respectively. The annual precipitation is 1021.3mm. The first study area is a nursery, where osmanthus and Japanese maple seedlings are mainly planted. The trees are arranged neatly, with a planting spacing of about 1.5m. Due to the age limit, the crown width of the seedlings in the nursery is usually no more than 2m, and the tree height is no more than 4m. The second study area is a forest landscape area, with a total of 3 coniferous trees and 23 broad-leaved trees, and a large number of short shrubs grow in this area. The third study area is a mixed forest, where 4 coniferous trees and about 17 broad-leaved trees are planted. The main tree species are Chinese fir and metasequoia.
[0076] (1.2) Dataset:
[0077] (1.2.1) Collecting airborne lidar data and images:
[0078] Airborne LiDAR data were collected for the three study areas (nursery, forest landscape, and mixed forest) using a Velodyne HDL-32E sensor on a DJI FC6310 drone. The sensor sends 700,000 laser pulses per second and records the return value of each laser pulse. The horizontal field of view is 360 degrees and the vertical field of view is +10.67 to -30.67 degrees. The flight altitude was 60 meters with an overlap of 15%. Aerial images of the three study areas were taken in October 2018 using the same drone equipped with a digital camera at a speed of 20 meters per second and an altitude of approximately 150 meters. At the same time, 18 fisheye images were taken at a vertical angle of 90 degrees upward in the forest landscape and mixed forest using a Canon EOS 6D Mark II digital camera and a Canon EF 8-15mm f / 4L Fisheye USM Lens.
[0079] (1.2.2) Field data:
[0080] In this embodiment, relevant data including the location, species, height and crown width of trees were measured on the spot in part of the study area where test samples were provided. The tree height was measured using a Blume-Leiss altimeter based on the principle of triangulation. The crown length of each tree in the north-south and east-west directions was measured using a tape measure, and the average of the crown lengths in the two directions was taken as the crown width. Combined with the field measurements, the positions of visually identifiable treetops were marked on the aerial images. Although manual measurement is inevitably subjective, it is considered to be a reliable and valid source of information. Some aerial images taken from (1) nurseries, (2) forest landscape areas and (3) mixed forests are shown in Figure 2. Figure 1 shown. Figure 1Partial aerial images of (1) nursery, (2) forest landscape, and (3) mixed forest, where triangles indicate the locations of actual treetops.
[0081] (1.2.3) Processing point cloud data:
[0082] In order to remove noise and outliers in the point cloud, a Gaussian filter is first used for denoising, and then a cloth simulation filter is used to divide the airborne lidar data into ground points and non-ground points, and a digital surface model is generated based on the non-ground points. The corresponding elevation map is obtained by orthogonal projection of the digital surface model. The grayscale value of the pixel in the elevation map corresponds to the elevation information of the projection point. The pixel in the elevation map changes from dark to bright, corresponding to the height of the projection point changing from low to high.
[0083] (1.3) End-to-end network:
[0084] As an end-to-end target detection system, the entire end-to-end network structure is as follows Figure 2 As shown. End-to-end global reasoning is used to learn and predict relevant information of the entire image, mainly including learning from existing samples and generating artificial training samples, as well as predicting bounding boxes in the test set and the corresponding confidence. First, the k-means clustering method is used to cluster the bounding boxes used to mark the tree crowns in the training set, and the number of clusters is set to 9. This value achieves a high recall rate while ensuring that the model is relatively simple. The input image is divided into M×M grid cells, and B bounding boxes and the confidence of each bounding box are predicted in each grid cell. The model directly predicts the position coordinates (x, y, w, h) of each bounding box. Then, these four coordinates are constrained to obtain the predicted bounding box corresponding to the center position of the image. and size
[0085]
[0086]
[0087]
[0088]
[0089] Where (σ(x),σ(y)) is the offset of the prediction box center from the upper left corner of the prediction box unit, (l x ,l y ) is the offset of the prediction box unit from the upper left corner of the image. w and b h denote the width and height of the bounding box prior corresponding to the predicted box. w and e h Both are exponential functions, approximately 2.72.
[0090] Secondly, the end-to-end network obtains the confidence of the predicted box by determining whether the center of the object is in the grid cell. If not, the confidence is zero; otherwise, the confidence is the union (IOU) of the bounding box prior and the ground truth, that is, In this embodiment, the threshold is set to 0.5. When , the predicted value is ignored; otherwise, only when a certain bounding box prior is consistent with the ground truth The value is greater than any other bounding box prior and ground truth When the value is The target value of the predicted box of value is 1.
[0091] Finally, the end-to-end network selects an independent logistic classifier for class prediction. When this method is applied to the data set of this embodiment, the end-to-end network predicts a three-dimensional tensor for each scale of the output: M×[3*(4+1+1)], which represents the four predicted parameter values, namely 3 scales, 4 coordinates, 1 object, and 1 class.
[0092] (1.3.1) Training set and test set:
[0093] In this study, this embodiment uses LabelImg to label 1905, 1446 and 1629 trees (green boxes) in the elevation maps of the nursery, forest landscape area and mixed forest, respectively, and uses the labeled elevation maps as training samples. Figure 3 Some training samples from the three study areas are shown; Figure 3 Some training samples are shown in Figure 3, where the tree crowns in the elevation maps of (1) nursery, (2) forest landscape, and (3) mixed forest were manually labeled using the LabelImg tool. Unlike the training samples, the test samples did not need to be labeled. Nine plots were divided from the nursery, forest landscape, and mixed forest, and 59, 84, 333, 65, 45, 82, 96, 76, and 117 trees planted in the nine plots were selected as test sample trees, respectively (see Table 3).
[0094] (1.3.2) Generation of fake training samples based on DCGAN:
[0095] DCGAN is a deep learning network designed for training sample generation. It uses convolution stride and transposed convolution for downsampling and upsampling. The objective function of DCGAN is as follows:
[0096] V(G,D)=∫ x P real (x)·log(D(x))dx+∫ x P generate (x)·log(1-D(x))dx (5);
[0097] Where P real (x) represents the probability distribution of real data, P generate (x) represents the probability distribution of generated data.
[0098] DCGAN usually consists of two different parts: the generator G and the discriminator D. In this embodiment, DCGAN is usually defined as a system of equations for maximum and minimum values, where the generator G minimizes equation (5) and the discriminator D maximizes equation (5). On the discriminator side, the objective function hopes that D has the strongest discrimination performance and distinguishes real samples from fake samples generated by the generator. On the generator side, the objective function hopes that the model generates images with the maximum possible value D(x) to deceive the discriminator. The network of DCGAN is as follows Figure 2 As shown on the upper side of , it is used to generate training samples for the end-to-end model.
[0099] In this example, DCGAN is used to train the manually labeled samples of nursery 1905, forest landscape area 1446, and mixed forest 1629 in the previous section, and a total of 2000 fake elevation maps of nursery, 2000 forest landscape area, and 2000 mixed forest are generated. Some of the generated training samples are as follows: Figure 4 shown. Figure 4 The height map generated using the deep convolutional generative adversarial network (DCGAN) is shown to change as the number of iterations increases. At the beginning of the training process, the generated data distribution is not similar to the actual data texture structure. However, as the training process progresses, the generator of the adversarial network is able to generate the same or almost the same tree crown elevation map and successfully deceive the discriminator. These generated samples and the original manually labeled samples will be brought into the end-to-end neural network of this embodiment to carry out the training of the network model.
[0100] The method for automatically generating new samples based on deep convolutional adversarial networks is as follows:
[0101]
[0102] Where D is the discriminator and G is the generator. First, construct D so that the value of the above formula reaches the maximum, that is, the discriminator's discrimination of the real input sample is close to 1, and the generated samples are all judged as 0, so that it has the maximum discrimination ability. Next, construct G, the first term on the right side of formula (1) has no effect, and the second term on the right side allows the generated samples to confuse the discriminator, so that D(G(x)) is as close to 1 as possible, so that the value of this formula is minimized. Indicates that x meets the specified data P real (x) The expected value of the probability distribution, that is, the expected value of the real data. Represents the expected value of the probability of generating fake sample data.
[0103] The solution of formula (6) is divided into the following two steps:
[0104] Step 1: For any generator G, find the optimal discriminator D so that the value of V(G,D) is maximized, which can be written as:
[0105] V(G,D)=∫ x P real (x)·log(D(x))dx+∫ x P generate (x)·log(1-D(x))dx (5);
[0106] Formula (5) can be expressed as: After taking the extreme value of the derivative of this formula, we get formula (7):
[0107]
[0108] For any generator, the optimal discriminator is:
[0109] Step 2: Get the optimal discriminator D * For formula (4), find the optimal generator G.
[0110] It is defined by two divergences, denoted as:
[0111]
[0112] The calculation is as follows:
[0113]
[0114] Among them, p r =p real ,p g =p generate If D JS (p r ||p g )≥0 is the smallest, that is, let p r =p g . It is obtained that the discriminator in formula (4) cannot distinguish whether it is real or generated data.
[0115] D KL stands for Kullback–Leibler divergence, D JS represents the Jensen-Shannon divergence. KL Describing two probability distributions A measure of difference. JS Based on D KLA variant of the divergence that solves the asymmetric problem of the KL divergence. Generally, the JS divergence is symmetric, with a value between 0 and 1, and is 0 when the probability distributions of the two variables are exactly the same.
[0116] The network structure is as follows:
[0117] For the generator G, a series of deconvolution operations are first used. The specific transformation is shown in the following formula:
[0118] H out =(H in -1)×stride H -2×padding H +Kernelsize H
[0119] V out =(V in -1)×stride V -2×padding V +Kernelsize V (10);
[0120] Where H and V represent the horizontal and vertical directions respectively. in and H out They represent the size of the input and output signals respectively, stride represents the step size, Kernelsize represents the convolution kernel size, and padding represents the expansion size.
[0121] First, the deep convolution generator automatically generates the original noise sample: (50, 100, 1, 1), where 50 represents 50 samples per batch, 100 represents the number of channels, and 1*1 represents that the length and width of the noise are both 1. Substitute the sample into the 5-layer deconvolution network for operation. The specific deconvolution operation is as follows:
[0122] Table 1. Deep Convolutional Adversarial Network Generator:
[0123]
[0124] Secondly, for the deep convolution discriminator G, a series of convolution operations are first used. The specific transformation is shown in formula (11):
[0125] H out =(H in +2×padding H -(Kernelsize H -1)-1) / stride H +1
[0126] V out =(Vin +2×padding V -(Kernelsze V -1)-1) / stride V +1 (11);
[0127] The deep convolution discriminator inputs the sample (50,3,96,96) to the generator, where 50 represents 50 samples per batch, 3 represents the number of channels of the color image, and 96*96 represents the size of the generated image is 96*96. Substitute the sample into the 5-layer convolutional network for operation. The specific convolution operation is as follows:
[0128] Table 2. Deep convolutional adversarial network discriminator:
[0129]
[0130] (1.3.3) Based on the end-to-end training and testing process:
[0131] The end-to-end deep learning network (detection end-to-end network) is trained and tested using a new classifier network DarkNet-53. DarkNet-53 includes 53 convolutional layers, some residual blocks, 2 upsampling processes and 5 downsampling processes. Upsampling connects the feature map with the feature map of the previous layer to provide more fine-grained information, which enables the end-to-end network to obtain feature maps of three different scales. The downsampling process provides more semantic information than the upsampling process. In DarkNet-53, batch normalization and leaky rectified linear unit (Leaky ReLU) activation functions are applied to the remaining 50 convolutional layers except for the three convolutional layers that finally generate the output feature map. For batch normalization and leaky ReLU activation functions, the former not only improves the convergence effect and avoids model overfitting, but also improves the detection performance of the model. The latter avoids the gradient explosion or disappearance problem that may occur during model training. In addition, deeper convolutional layers make DarkNet-53 more powerful than DarkNet-19, but also mean slower detection speed.
[0132] Before training, this embodiment sets the initial weights of this embodiment according to the convolution weights of the model when pre-training COCO data, that is, transfer learning is performed on the basis of the pre-trained model. In addition, the width * height of the input image of the training set is adjusted to the default value of 416×416. During the training process, this embodiment trains the end-to-end network for approximately 70,000 iterations. This embodiment uses a batch size of 64, a momentum of 0.9, and a decay of 0.0005. The initial learning rate is set to 0.001, and the final learning rate is set to 0.0001. The entire training time is approximately 24 hours.
[0133] The testing process of the end-to-end network mainly includes four steps: (1) resizing the input image of the test set to the default value of 416×416; (2) inputting the resized image into the end-to-end network, extracting the features of the entire image, and outputting feature maps at three different scales; (3) processing the output feature map and determining the predicted bounding box of the tree crown in the output feature map.
[0134] (1.3.4) Loss function:
[0135] Throughout the training process, the end-to-end network is trained using only one loss function I, which includes the losses of the three prediction parts, namely the bounding box I 1 , Confidence I 2 and Category I 3 .
[0136] I=I 1 +I 2 +I 3 (12);
[0137] The predicted bounding box I 1 The loss function is defined as:
[0138]
[0139] in, represents the j-th predicted bounding box of grid cell i. 1 is the threshold of this item, which is set to 5 here. num is set to 9, indicating that each grid unit predicts 9 target boxes of different scales. M selects four different scales, namely (13, 26, 52, 104), which means that this embodiment converts each input image into four different scales, where M=13 is suitable for image detection of large target crowns, M=26 is suitable for image detection of medium target crowns, M=52 is suitable for image detection of small and medium target crowns, and M=104 is suitable for image detection of small target crowns. It represents the intersection area between the predicted box and the real box. and Represents the x and y positions of the center points of the predicted box and the real box respectively. Represents the Euclidean distance between two center points. diaglinofminimclos Represents the diagonal length of the smallest rectangle that encloses two boxes (the predicted box and the true box). in w and h represent the width and height of the predicted box and the real box respectively. The v value can get the change in shape of the two boxes.
[0140] The prediction confidence I 2 The loss function is defined as:
[0141]
[0142] in, Indicates the confidence of the prediction box; S i Indicates the confidence value of the corresponding actual detected object; λ noobj Set to 0.5;.
[0143] Prediction Category I 3 The loss function is defined as:
[0144]
[0145] where p i (s) represents the probability of the real existence of an object in grid cell i, which takes the value of 1 or 0; Represents the probability of the existence of class s object in grid cell i. Indicates whether there is an object in grid cell i. If there is an object in i, is 1; otherwise, is 0.
[0146] (1.3.5) Back propagation of the network model of inertial gradient:
[0147] In terms of back propagation parameter optimization of the entire end-to-end network, this embodiment uses an adaptive momentum estimation gradient descent algorithm, as follows:
[0148] Take the first bias moment m at the initial time t = 0 t=0 = 0, the second original bias moment n t=0 =0.
[0149] in After each back propagation, m t =β 1 m t-1 +(1-β 1 ) t ,
[0150] Then calculate
[0151] Finally update the parameter θ t-1 , as follows:
[0152]
[0153] Among them, β 1 ,β 2 ∈[0,1), represents the exponential decay rate. β t represents exponential operation according to the number of iterations.1 =0.91, β 2 =0.98,∈=10 -7 is a disturbance. μ=0.003 is a control parameter update speed. The algorithm of this embodiment is generally t=10 4 I t represents the loss function value corresponding to time t; θ represents the weight coefficient of each layer in the network, Represents the loss function I at each moment t Derivative each weight coefficient θ in the network is as follows:
[0154]
[0155] (1.4) Evaluate the effectiveness of end-to-end network detection:
[0156] During the test, there are four different detection results: correct detection of trees that actually exist, incorrect detection of trees that actually do not exist (i.e., over-detection error), incorrect detection of trees that actually exist (i.e., omission error), and correct detection of trees that actually do not exist. The number of trees corresponding to the four conditions is represented by true positive (TP), false positive (FP), false negative (FN), and true negative (TN). TP+FP represents the total number of trees detected by the end-to-end network, while the total number of trees that actually exist is represented by TP+FN.
[0157] The detection efficiency of the model is the main factor affecting the detection results. In order to evaluate the performance of the end-to-end network, this embodiment selects precision (p), recall (r) and F 1 score(F 1 ) as the evaluation index. p represents the ratio of the number of trees correctly detected by the model to the total number of trees detected by the model. r represents the ratio of the number of trees correctly detected by the model to the total number of trees that actually exist, that is, the detection rate. 1 represents the harmonic mean between p and r. p, r and F 1 The closer the value of is to 1, the higher the detection efficiency of the end-to-end network and the better the performance. 1 It is defined by the following equation:
[0158]
[0159]
[0160]
[0161] (2.1) Loss analysis:
[0162] The training loss curve of the end-to-end network model is as follows Figure 5(1). The loss decreases rapidly in the first 5000 iterations and gradually stabilizes after 15000 iterations, with the final loss being about 0.04. The convergence time and convergence speed of the loss curve mainly depend on the selection of an appropriate learning rate. At the beginning of training, a higher initial learning rate needs to be set due to the lack of known information. As training proceeds, it is necessary to reduce the learning rate so that the loss function converges to the optimal value more smoothly. The training of this embodiment obtained a very small final loss, which indicates that the error between the network's predicted value and the ground truth is small and the model has good performance.
[0163] Taking DIOU as the threshold, the relationship between the precision and recall rate and the threshold change during the training process is calculated. Here, the initial threshold is set to 1 and gradually reduced to 0.1, the interval between each step is 0.02, and the precision p and recall r of each step are calculated, as shown in Figure 5 (2). When the threshold approaches 1, Figure 5 The precision of the curve in (2) tends to 1 and the recall is close to 0, and vice versa when the threshold tends to 0. The area under the curve is close to 1, which means that the classifier of this embodiment has almost no prediction error. In order to effectively judge the performance of the model based on the PR curve, F 1 The indicator finds a compromise between precision and recall. According to formula (13), F 1 When p=r, the value is relatively high, 0.84, which indicates the effectiveness of the method of this embodiment.
[0164] (2.2) Single tree crown detection in end-to-end network:
[0165] Figure 6 The tree crown distribution predicted by the end-to-end network in some test samples of (1) nursery, (3) forest landscape area, and (5) mixed forest is shown (rectangular box). Figure 6 In (2), (4) and (6), three different shapes of point clouds are used to intuitively represent the three test results, namely, correctly predicted crowns (triangular point clouds), incorrectly predicted crowns (rectangular point clouds) and missed crowns (solid circular point clouds), where the triangles represent the treetops of correctly predicted crowns. The end-to-end network was used to detect 476, 192 and 289 sample trees in nurseries, forest landscapes and mixed forests, and 430, 166 and 238 trees were correctly detected, 19, 15 and 23 non-existent trees were falsely detected, and 46, 26 and 51 trees were missed.
[0166] In general, the average crown width of small trees in nurseries is smaller than the average crown width of mature trees in other types of plots. When detecting large tree crowns, it is sufficient to extract crown features only from low-resolution feature maps (13 2); when detecting small tree crowns, only extracting low-resolution features is prone to omission errors, which requires the end-to-end network to extract high-resolution features. Here, the end-to-end network generates output feature maps of different scales (13 2 ,26 2 ,52 2 ) for detecting crowns of different sizes. It is worth noting that when testing crowns in nurseries, some trees with very small crowns are still easily lost (see Figure 6 (1)). One possible reason is that the IOU between the ground truth boxes and the corresponding prediction boxes of these tree crowns is always less than the threshold (0.5), which makes them unrecognizable by the end-to-end network during testing. Considering that the crown sizes of trees in the nursery are similar, the number of trees with smaller crowns that are not recognized is small, and the error caused by the difference in crown width has little effect on the overall detection accuracy. In addition, this embodiment analyzes not only the size of the crown but also the shape of the crown. In the forest landscape area and mixed forest, Metasequoia and Cunninghamia have similar pyramid shapes, while other tree species such as palm, tulip tree and weeping willow have outward-expanding crowns. The crown shape varies significantly not only between tree species, but also within tree species. This finding suggests that accurate detection of crowns of various shapes requires the model to have strong learning and detection capabilities.
[0167] Compared with the simple horizontal and vertical structure of trees in the nursery, the canopy in the forest landscape and mixed forest is more complex due to the high degree of tree species diversity, large differences in tree age, and different tree growth conditions. Although the number of sample trees tested in the nursery was about twice that of the forest landscape or mixed forest, the nursery had fewer over-test errors than the mixed forest, and the number of omission errors was about twice that of the forest landscape.
[0168] Table 3 summarizes the number of trees in the training and test samples provided by the three study areas (nursery, forest landscape area, and mixed forest), the test results, and the precision analysis. The three study areas provided a total of 10,980 sample trees for the training set (4,980 real samples and 6,000 adversarial network synthetic samples) and 957 sample trees for the test set. By analyzing the results of single tree crown detection in 9 test plots in the three study areas, it was found that the p-values of the 9 plots were between 0.90 and 0.98, and the total p-value of the nursery (0.96) was higher than that of the forest landscape area (0.92) and the mixed forest (0.91). The r values of the 9 plots varied greatly, ranging from 0.78 to 0.92. In addition, the F values of the forest landscape area (0.87-0.90) and the mixed forest (0.84-0.90) were significantly different. 1 Compared with the range of values, the F 1 The values are all greater than 0.90. After comprehensive evaluation and analysis of the detection results in the three research areas, it is found that the end-to-end network of this embodiment has the best effect in detecting the crown of a single tree in the nursery.
[0169] Table 3. Accuracy evaluation of tree crown detection using deep learning methods for nurseries, forest landscapes, and mixed forests:
[0170]
[0171]
[0172] Note: TP: correctly detected trees that actually exist; FP: incorrectly detected trees that actually do not exist (i.e., over-detection error); FN: incorrectly detected trees that actually exist (i.e., omission error); p: the ratio of the number of trees correctly detected by the model to the total number of trees detected by the model; r: the ratio of the number of trees correctly detected by the model to the total number of trees that actually exist; F 1 : The harmonic mean of p and r.
[0173] (3.1) Feasibility of the method of this embodiment:
[0174] Deep learning technology provides technical support for the realization of intelligent systems in the fields of autonomous driving, target recognition and tracking, and automatic speech recognition by effectively extracting and analyzing the characteristic information of a large number of targets. In recent years, methods combining remote sensing data with deep learning technology have been increasingly used to solve problems in forestry, such as individual tree segmentation, tree species classification, and crown information extraction. This study is the first to combine an end-to-end network based on deep learning with elevation maps converted from airborne lidar data to detect individual tree crowns in different types of forest plots.
[0175] When the end-to-end network detects individual tree crowns in nurseries, forest landscape areas, and mixed forests, the total recall rates are 90.3%, 86.5%, and 82.4%, respectively, which indicates that in different environments, the method of this embodiment can obtain a relatively stable detection rate when detecting individual tree crowns. The detection rate of individual tree crowns decreases with the increase of tree species diversity, planting density, and canopy structure complexity. For other automated methods that depict individual tree crowns in high-density lidar data (detection rates of 72-74%), the deep learning method of this embodiment shows better detection efficiency. Compared with previous studies that used different airborne remote sensing data (such as (MEIS)-II data and IKONOS data) to identify individual trees, the method of this embodiment has similar or higher accuracy. Since this method shows good robustness and scalability in different types of forest stands, and obtains higher accuracy when automatically and real-timely detecting tree crowns, it has broad application prospects in forestry and related fields.
[0176] The complexity of the canopy structure increased from the nursery to the forest landscape and then to the mixed forest. In the open system, there are large gaps between trees, and the lateral and vertical growth of small trees is rarely blocked by adjacent canopies. In addition, factors such as low species diversity, few understory trees in the sample plot, and small differences in tree height also had a favorable effect on the correct detection of tree canopies in the nursery. Therefore, compared with the forest landscape and mixed forest, the method obtained an overall p (0.96), r (0.90), and F (0.91) for the single study area when testing the nursery test samples. 1 The highest value is (0.93).
[0177] For broad-leaved tree species with large crowns growing in forest landscapes and mixed forests, it is easy to mistake side branches for separate crowns because the size and shape of the side branches are similar to the trunk. For trees with overlapping branches and blurred crown edges, it is difficult to extract complete and clear crown surface morphological features, so multiple crowns may be detected as one crown during testing.
[0178] In forest landscape areas and mixed forests, understory vegetation and trees growing between adjacent tree species with overlapping and continuous crowns are the main causes of omission errors. During the point cloud data acquisition process, due to the obstruction of the upper and middle tree crowns, only part of the laser pulses can reach the lower canopy through the gaps between branches and leaves, resulting in only sparse point clouds of the lower canopy. In order to reduce the errors caused by objective factors during end-to-end network detection, this embodiment only selects trees over 3 meters in forest landscape areas and mixed forests for crown detection analysis and evaluation. In addition, the elevation map generated by airborne lidar data observes trees from a vertical angle to the ground, which limits the extraction of surface features of the canopy of understory trees. If a ground laser scanner is used to obtain a clear point cloud of understory vegetation and a hierarchical analysis is performed by height, the effect of single tree crown detection may be better.
[0179] (3.2) Verification of field measurement data:
[0180] Figure 7 (1) and (2) show the test results (rectangular boxes) of the end-to-end network on test set plots 5 and 7, respectively. The actual tree locations (triangles) and tree species (text) are manually annotated based on field measurement data. Figure 7 Middle (3) shows 18 fisheye images taken from the center of 18 different circular subsets (black circles), where the triangles indicate the actual treetop locations. Tree species growing in plots 5 and 7 include Metasequoia glyptostroboides (MG), Cinnamomum camphora (CC), Acer truncatum (CA), Golden pine (PS), Liriodendron tulipifera (LC), Hackberry (HB), Cunninghamia lanceolata (CF), Magnolia grandiflora (MD), Jujube (JU), Papaya (PP), Willow (WL), Prunus purpurea (PL), Palm (PA), Osmanthus fragrans (SO), Japanese cherry (JC), Michelia foetida (MF), and Acer palmatum (AP).
[0181] According to the field survey data, various tree species, such as Metasequoia glyptostroboides (MG), Cinnamomum camphora (CC), Acer truncatum (CA), Golden pine (PS), Liriodendron tulipifera (LC), Hackberry (HB), Cunninghamia lanceolata (CF), Magnolia grandiflora (MD), Jujube (JU), Papaya (PP), Weeping willow (WL), Prunus purpurea (PL), Palm (PA), Osmanthus fragrans (SO), Japanese cherry (JC), Michelia foetida (MF), and Acer palmatum (AP) grew in plots 5 and 7. Figure 6 It shows that the network model of this embodiment correctly detected 119 tree crowns, incorrectly detected 11 non-existent tree crowns, missed 22 trees, and the detection rate was 84.4%. The over-detection errors were mainly caused by the interference caused by multiple independent branches and multi-trunk trees (such as SO) of broad-leaved trees. The leaf area index (LAI) of each fisheye image was calculated in the R environment, ranging from 1.68 to 3.11. When the tree height and crown width of the trees in the subset are large, and the main tree species are broad-leaved trees, the LAI value of the fisheye image is usually larger.
[0182] Table 4 lists the number and detection rate of each of the 17 tree species detected by the end-to-end network, as well as the actual number, average tree height, and average crown width of each tree species obtained based on the measured data of plots 5 and 7. Tree height is an important factor affecting the detection of individual tree crowns. Among the test samples in plots 5 and 7, there are 10 tree species with an average height of more than 10m (MG, CC, CA, PS, LC, HB, CF, MD, JU, and PP) and 7 tree species with an average height of less than 10m (WL, PL, PA, SO, JC, MF, and AP). Among them, the detection rate of 8 tree species (MG, CC, CA, PS, LC, HB, CF, and PP) is higher than 85%. Tree species with an average tree height of less than 10m are the main components of understory vegetation, among which the detection rates of 3 tree species (WL, PL, and AP) are all less than 60%, and the detection rates of 4 tree species (PA, SO, JC, and MF) are all greater than 70%. For the same tree species, trees with heights below the average are more difficult to detect. In addition, due to differences in canopy structure and shape, there are differences in the detection results of conifers and broad-leaved trees. The actual number of conifers and broad-leaved trees in the two sample plots was 79 and 62, respectively, with a higher detection rate of conifers (91.1%) than broad-leaved trees (75.8%).
[0183] Table 4: Some attributes and detection rates of 17 tree species in plots 5 and 7, and comparison of the number of trees detected by the deep learning algorithm with field measurements:
[0184]
[0185]
[0186] Note: Average tree height: the average tree height of all trees of the same species; Crown length: the average crown length of each tree in the north-south and east-west directions; Average crown width: the average crown length of all trees of the same species; Y: end-to-end network detection; F: field detection.
[0187] Figure 8 The number of crowns correctly detected by the end-to-end network in 18 different subsets is compared with the actual number of crowns, and the corresponding LAI values calculated from the fisheye images of each subset. Omission errors occurred in 3 subsets with LAI values between 1.5-2.0 (subsets 7, 12, and 16), and the number of crowns detected in subset 14 was consistent with the actual number of crowns. The number of crowns correctly detected by the end-to-end network in 3 subsets with LAI values ranging from 2.0-2.5 (subsets 9, 13, and 17) was consistent with the actual number of crowns. Among the subsets with LAI values greater than 2.5, 4 omission errors occurred in subset 2, and few omission errors occurred in subsets 1, 3, 4, and 6. The results show that higher LAI (LAI>2.5) may weaken the accuracy of deep learning methods in detecting crowns, which may be affected by the obscured lower vegetation. Figure 8 Represents the number of trees in the 18 circular subsets in plots 5 and 7, where the light grey rectangular bars represent the number of trees in each subset correctly detected by the end-to-end network, and the dark grey rectangular bars represent the number of trees in each subset that were actually counted. The numbers represent the corresponding LAI values calculated from the fisheye images taken in each subset.
[0188] According to the orientation of the elevation map, the width and length of the box predicted by the end-to-end network correspond to the crown length of the tree in the north-south and east-west directions, respectively. Fig. 9 Comparisons of the crown lengths in the north-south and east-west directions predicted by the method of this embodiment and the crown lengths measured in situ in (1) plot 1, (2) plot 5, and (3) plot 7 are shown. Fig. 9 The scatter plots show the relationship between the crown length predicted by the end-to-end network and the measured crown length of trees in (1) plot 1, (2) plot 5, and (3) plot 7, where the dark gray squares represent the crown length in the north-south direction and the light gray squares represent the crown length in the east-west direction. The thick black solid line and the thin black solid line are the fitting lines in the north-south direction and the east-west direction, respectively. The two statistical indicators R 2 The linear regression models of predicted crown length and measured crown width in the three study areas were analyzed by R and RMSE. 2 (93.91±0.49%) and the smallest RMSE (0.37±0.09m). Plot 5 had a relatively low R 2 (91.47±0.75%) and the largest RMSE (0.77±0.10m). Due to the different crown shapes and the interlaced branches and leaves of adjacent crowns, plot 7 obtained the smallest R2 (90.78±0.85%) and a relatively large RMSE (0.71±0.01m). The fitting lines in the north-south direction (thick black solid line) and east-west direction (thin black solid line) of the three study areas show that this method can well predict the crown width.
[0189] (3.3) Comparison with traditional watershed segmentation algorithm:
[0190] In order to explore the advantages of the end-to-end network over the traditional tree crown detection method, this example combines the watershed segmentation algorithm and the local maximum filtering method to depict the crown of a single tree in plots 5 and 7 ( Fig.10 ); Fig.10 Compare the results of detecting individual tree crowns in (1) plot 5 and (2) plot 7 using the watershed segmentation algorithm (gray-white area) and the deep learning algorithm of this embodiment (rectangular box). The black squares represent the treetops of the crowns correctly detected by the watershed segmentation, and the circular hollow dots represent the crowns missed by the watershed segmentation. When the watershed segmentation algorithm was used to detect the crowns, a total of 109 crowns (black squares) were correctly detected in plots 5 and 7, 15 non-existent crowns were incorrectly identified, and 32 crowns (circular hollow dots) were not detected. Although the crown detection effect of the watershed segmentation algorithm in different environments is more stable than that of other traditional crown detection algorithms, the deep learning method shows better performance when performing crown detection in a closed crown environment with rich tree species and continuous crowns. The results show that when detecting crowns in forest landscape areas and mixed forests, the detection rate of individual tree crowns using the watershed segmentation algorithm is 77.3%, which is 9.9% lower than the detection rate of the end-to-end network. This gap will increase as the tree species diversity and planting density of deep learning training samples increase.
[0191] (4) Summary:
[0192] The results show that the end-to-end network target detection algorithm based on airborne radar data can effectively identify individual tree crowns from point clouds. Based on the extraction of training sample features and the optimization of deep learning model parameters, when the algorithm was applied to the test sets of three different types of woodlands, namely nurseries, forest landscape areas, and mixed forests, 90.3%, 86.5%, and 82.4% of the tree crowns were correctly detected, respectively. In the case of a large number of tree species, the crown detection accuracy obtained in this embodiment is slightly higher than that of previous studies. Therefore, the algorithm of this embodiment can quickly and accurately detect individual tree crowns from forest plots with diverse tree species. Future work will include combining airborne lidar data with ground laser scanner data and using advanced deep learning methods to further analyze the crown structure and characteristics.
[0193] 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 detection method based on an end-to-end deep learning method, characterized in that: The following steps are involved: (1) Collect airborne LiDAR point cloud data of trees; (2) Preprocessing the airborne laser radar point cloud data, dividing the airborne laser radar point cloud data into ground points and non-ground points, generating a digital surface model based on the non-ground points, and converting the digital surface model into an elevation map; (3) Manually mark each tree crown in the elevation map and use the marked elevation map as a training sample; (4) Use a deep convolutional generative adversarial network to learn the labeled training samples and generate new training samples; (5) Using the training samples manually marked in step (3) and the new training samples generated in step (4) to train the end-to-end deep learning network, and obtain an end-to-end network model for tree crown recognition; (6) Obtaining airborne laser radar point cloud data of the trees to be tested, obtaining an elevation map of the trees to be tested according to the method of step (2), inputting the elevation map into the tree crown recognition end-to-end network model, and automatically identifying the specific position and size of the tree crown; In the above step (5): During the training process of the end-to-end deep learning network, the loss function I is set to: I=I1+I2+I3 (2); The loss function of the predicted bounding box I1 is defined as: in, represents the j-th predicted bounding box of grid cell i; e1 is the threshold, set to 5; num is set to 7, indicating that each grid cell predicts 7 target boxes of different scales; M represents four different scales, namely (13, 26, 52, 104), which means that each input image is converted into four different scales, where M = 13 is suitable for image detection of large target crowns, M = 26 is suitable for image detection of medium target crowns, M = 52 is suitable for image detection of small and medium target crowns, and M = 104 is suitable for image detection of small target crowns; It represents the intersection area between the predicted box and the real box. and Represents the x and y positions of the center points of the predicted box and the real box respectively. Represents the Euclidean distance between two center points; l diaglinofminimclos The diagonal length of the smallest rectangle representing the envelope prediction box and the true box; in w and h represent the width and height of the predicted box and the real box respectively; The loss function of the prediction confidence I2 is defined as: in, Indicates the confidence of the prediction box; S i Indicates the confidence value of the corresponding actual detected object; λ noobj Set to 0.5; The loss function for predicting category I3 is defined as: where p i (s) represents the probability of the real existence of an object in grid cell i, which takes the value of 1 or 0; Represents the probability of the existence of class s object in grid cell i; Indicates whether there is an object in grid cell i. If there is an object in i, is 1; otherwise, is 0; classes represents a certain category.
2. The single tree crown detection method based on end-to-end deep learning method according to claim 1, characterized in that: The trees in step (1) include nurseries, forest park landscape areas and mixed forests.
3. The method for detecting a single tree crown based on an end-to-end deep learning method according to claim 2, characterized in that: The step (1) is specifically as follows: The Velodyne HDL-32E sensor mounted on the DJI FC6310 drone was used to collect airborne lidar point cloud data of the forest.
4. The method for detecting a single tree crown based on an end-to-end deep learning method according to claim 1, characterized in that: The step (2) is specifically as follows: (2.1) Use Gaussian filter to denoise the airborne lidar point cloud data; (2.2) Using cloth simulation filtering method to divide the denoised airborne lidar point cloud data into ground points and non-ground points; (2.3) Generate a digital surface model based on non-ground points; (2.4) By orthogonally projecting the digital surface model, different colors are used to represent elevation information. The higher the location, the brighter the corresponding grid, that is, the larger the pixel value, and finally the corresponding elevation map is obtained.
5. The method for detecting a single tree crown based on an end-to-end deep learning method according to claim 1, characterized in that: The manual marking of each tree crown in the elevation map in step (3) is specifically as follows: The LabelImg image annotation tool was used to manually label each tree crown in the forest elevation map.
6. The method for detecting a single tree crown based on an end-to-end deep learning method according to claim 1, characterized in that: The objective function of the deep convolutional adversarial network is: V(G,D)=∫ x P real (x)·log(D(x))dx+∫ x P generate (x)·log(1-D(x))dx (1); Where D represents the discriminator, G represents the generator, and P real (x) represents the probability distribution of real data, P generate (x) represents the probability distribution of generated data.
7. The method for detecting a single tree crown based on an end-to-end deep learning method according to claim 1, characterized in that: The end-to-end deep learning network uses an adaptive momentum estimation gradient descent algorithm to optimize back propagation parameters, specifically: Take the initial time t = 0, the first bias moment m t=0 = 0, the second original bias moment n t=0 =0; After each back propagation, m t =β1m t-1 +(1-β1)g t , in calculate Update the parameter θ t-1 , as follows: Among them, β1,β2∈[0,1), represents the exponential decay rate; It means that β1 performs exponential operation according to the number of iterations; Indicates that β2 performs exponential operation according to the number of iterations; ∈ = 10 -7 , represents the disturbance amount; μ=0.003, represents the speed of control parameter update; I t represents the loss function value corresponding to time t; θ represents the weight coefficient in the network, Represents the loss function I at each moment t The results of deriving each weight coefficient θ in the network are as follows:
