Learning Image-based Tree Crown Segmentation from Enhanced Lidar-based Pseudo-labels
Authors: Julius Pesonen, Stefan Rua, Josef Taher, Niko Koivumäki, Xiaowei Yu, Teemu Hakala, Eija Honkavaara
Organizations: Department of Remote Sensing and Photogrammetry, Finnish Geospatial Research Institute, Espoo, 02150, Finland · Department of Computer Science, Aalto University, Espoo, 02150, Finland · DOTA, ONERA, Université de Toulouse, Toulouse, 31000, France
Mapping individual tree crowns is essential for understanding and caring for our environment by improving the accuracy of urban tree inventories and precise monitoring of forest health. However, automatically separating tree crowns in aerial imagery is challenging because of factors like complex crown textures and frequent partial overlap between neighbouring trees. We present a method to train deep learning models to segment individual tree crowns from RGB and multispectral imagery, using pseudo-labels derived from aerial laser scanning (ALS) data. We show that incorporating information from a zero-shot instance segmentation model, Segment Anything Model 2 (SAM 2), improves model training. Our method enables training domain-specific optical image-based models without requiring manual training annotation. We trained and evaluated the models with data from an urban area in Southern Finland and compared their performance with several baselines. Our best model achieved a mean intersection over union (mIoU) of 0.621 on manually delineated tree crowns in a geographically separate test area. This represents a 21% increase in mIoU over the directly evaluated SAM 2-enhanced pseudo-labels (0.513) and a 19% increase over the best image-based baseline (0.524). Incorporating SAM 2 into the pseudo-label generation process improved the best model mIoU by 9.9%, from 0.565 to 0.621, while the average mIoU across the tested models increased by 8.4%, from 0.557 to 0.604. These results highlight that automatically generated and foundation-model-enhanced pseudo-labels can provide effective domain-specific supervision for individual tree crown segmentation without manual training annotation, despite the noise in the initial ALS-based segments.
Figures & tables
Figure 1: RGB visualisation of the orthophoto spanning the whole dataset region on the left, with the manually annotated test region delineated in light green and shown separately on the right. The manual test annotations are delineated in white.
Figure 2: Visualisation of the different labels on the test set. The pseudo-randomly selected colours are used only to distinguish separate instance segments from each other.
Figure 3: Overview of the proposed data fusion method for the pseudo-supervised model training.
Method
F1
Precision
Recall
mIoU
mIoU 95% CI
Detectree2*
0.556
0.911
0.400
0.324
[0.281, 0.364]
U-Net
0.303
0.205
0.583
0.524
[0.501, 0.547]
Grounded SAM
0.166
0.430
0.103
0.094
[0.070, 0.121]
DeepForest
0.501
0.544
0.464
0.396
[0.363, 0.428]
SAM 3
0.558
0.822
0.422
0.352
[0.311, 0.397]
Coarse masks
0.571
0.550
0.594
0.477
[0.447, 0.505]
Table 1: Comparison between our proposed methods (bottom) and the alternative image-based baselines (top), with the lidar-based results in the middle. The best results are bolded and the second best underlined. *Detectree2 results correspond to the best results obtained with the Flexi checkpoint. Full results from all seven checkpoints are shown in Table 1 of B .
Figure 4: Visualisation of the outputs of selected models. The Detectree2 results are from the best-performing Flexi checkpoint. The pseudo-randomly selected colours are used only to distinguish separate instance segments from each other. Each column represents a single test image with outputs from different models, with rows representing different models as indicated on the left-hand side.
Supervision
Input
Val. loss
F1
Precision
Recall
mIoU
95% CI
Coarse
RGB
1.912
0.743
0.784
0.706
0.548
[0.515, 0.579]
Coarse
RE
1.964
0.775
0.805
0.747
0.576
[0.541, 0.607]
Coarse
NIR
1.965
0.739
0.777
0.706
0.539
[0.505, 0.568]
Coarse
RGB+RE
1.903
0.740
0.766
0.717
0.562
[0.528, 0.591]
Coarse
RGB+NIR
1.913
0.746
0.762
0.731
0.565
[0.532, 0.595]
Coarse
RE+NIR
1.925
0.760
0.792
0.731
0.559
[0.525, 0.590]
Table 2: Ablation results of the different trained Mask-RCNN models. The confidence interval 95% CI is that of the mIoU. For the validation loss, lower is better. For all other metrics, higher is better. The best results are bolded and the second best underlined. The validation losses were computed using the respective coarse or pseudo-labels from a pseudo-random validation subset.
Figure 5: Standard quartile box plot showing the prediction quality (mIoU) between different input modalities and coarse vs. pseudo-supervision.
Figure 6: Visualisation of the outputs from models using different input modalities and training labels. C. is short for coarse and P. for pseudo-labels, respectively. The pseudo-randomly selected colours are used only to distinguish separate instance segments from each other. Each column represents a single test image with outputs from different models, with rows representing different input channel configurations as indicated on the left-hand side.
Class
Matching
μ (dist.) (m)
Precision
Recall
F1
Total
1-to-1
2.119
0.572
0.463
0.512
Total
1-to-many
1.572
0.668
0.540
0.598
grouped
1-to-1
1.610
0.194
0.585
0.291
grouped
1-to-many
4.414
0.210
0.635
0.316
semi-suppressed
1-to-1
1.692
0.183
0.521
0.270
semi-suppressed
1-to-many
3.778
0.202
0.578
0.300
Table 3: The results from the Sundsvall test data.
Model
Inference time (ms)
Number of parameters (M)
U-Net
70
31
Mask R-CNN (Ours)
90
46
SAM 3
290
891
Table 4: Number of parameters of different tested models and their computational complexity in terms of inference speed and number of parameters. Inference times were evaluated on an NVIDIA RTX A4000 Laptop GPU.
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 1: Distributions of the different datasets used in the study, highlighting the large shift between public datasets (BAMFOREST and NEON) and data from our targeted deployment regions (Espoonlahti and Sundsvall). Distributions are visualised based on sample density over the 1st principal component computed from individual image features extracted using an ImageNet ( Deng et al., 2009 ) pretrained ViT model ( Dosovitskiy et al., 2021 ) . The figure is illustrative, but it roughly corresponds to the qualitative visual differences between the datasets.
Figure 2: The RREI distribution of initial tree crown segments with the cut-off threshold indicated with the black dashed vertical line.
Figure 3: Visualisation of the outputs from the Grounded SAM (denoted G. SAM) and DeepForest models. The pseudo-randomly selected colours are used only to distinguish separate instance segments from each other. Each column represents a single test image with outputs from different models, with rows representing different models as indicated on the left-hand side.
Figure 4: Visualisation of the outputs from models using different input modalities and training labels. C. is short for coarse, and P. for pseudo-labels, respectively. All refers to models using all three input modalities (RGB, RE, and NIR). The pseudo-randomly selected colours are used only to distinguish separate instance segments from each other. Each column represents a single test image with outputs from different models, with rows representing different models as indicated on the left-hand side.
Figure 5: Visual comparison of unnormalised input channels as used by the proposed models. The samples were chosen to highlight how the trees are more difficult to distinguish from the background in certain RE images compared to the two other input modalities.
Detectree2 checkpoint
F1
Precision
Recall
mIoU
mIoU 95% CI
base
0.298
0.540
0.206
0.182
[0.150, 0.215]
05dates
0.423
0.606
0.325
0.261
[0.227, 0.298]
flexi
0.556
0.911
0.400
0.324
[0.281, 0.364]
randresize_full
0.447
0.718
0.325
0.269
[0.228, 0.308]
tropical_closed_canopy
0.064
0.177
0.039
0.039
[0.025, 0.056]
urban_trees_Cambridge
0.393
0.600
0.292
0.243
[0.211, 0.276]
Appendix
Table 1: Test set metrics from all different Detectree2 model checkpoints.
Input
mIoU
Change
Relative (%)
RGB
0.580
-0.020
-3.33
RE
0.598
+0.001
1.70
NIR
0.553
-0.035
-5.97
RGB + RE
0.587
-0.024
-3.93
RGB + NIR
0.594
-0.027
-4.35
RE + NIR
0.584
-0.016
-2.62
Appendix
Table 2: Results when evaluating models based on full image predictions (including partial crowns closer to the image edges). All results are from the pseudo-supervised models.
Figure 6: The fitted Näslund function in blue with the Evo DBH and tree height data points in red.