ForestQuery: Boundary-Aware and Spatially Anchored Query Learning for Unified Forest Point Cloud Segmentation
Authors: Zhihao Zhan, Le Tao, Yifei Tian, Xin Liu, Jie Yuan
Organizations: School of Electronic Science and Engineering, Nanjing University, Nanjing, 210023, China · TopXGun Robotics, Nanjing, 211100, China · School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing, 210023, China · Department of Computer Science and Technology, Tsinghua University, Beijing, 100084, China
Forest point cloud segmentation is fundamental for fine-grained 3D forest scene understanding, yet remains challenging due to irregular tree structures, severe occlusions, density variations, and ambiguous instance boundaries. Recent query-based forest segmentation methods have shown promise for unified semantic and instance prediction, but they still insufficiently exploit forest-specific spatial structure and account for boundary uncertainty. In this paper, we propose ForestQuery, a boundary-aware and spatially anchored query learning framework for unified forest point cloud segmentation. ForestQuery enhances instance and semantic query learning through two complementary designs. Specifically, boundary uncertainty is explicitly modeled to guide reliable instance query construction and modulate query optimization through adaptive loss reweighting. Meanwhile, spatially anchored semantic query enhancement (SA-SQE) introduces learnable 3D anchors encoding forest vertical stratification priors to enrich semantic queries with explicit spatial references. We evaluate ForestQuery on multiple public forest point cloud benchmarks and a self-collected annotated real-world dataset. Extensive experiments demonstrate consistent improvements in both individual-tree segmentation and semantic segmentation across diverse forest scenes. Code and data are publicly available at https://zhan994.github.io/ForestQuery
Figures & tables
Figure 1: Representative examples of unified forest point cloud segmentation. Examples from the TUWIEN and Yuchen scenes of FOR-instanceV2 illustrate the complex spatial organization of forest point clouds, where heterogeneous vegetation structures and overlapping tree crowns pose challenges to semantic understanding and individual-tree separation.
Figure 2: Overview of the proposed ForestQuery framework. A shared sparse 3D backbone supports boundary-aware instance query construction and joint query decoding. Boundary cues guide instance query construction and optimization, while SA-SQE injects learnable 3D anchors encoding forest vertical stratification priors into semantic queries. The resulting queries are jointly decoded with shared scene features to predict semantic and individual-tree instance masks.
Figure 3: Instance boundary target construction and prediction. Boundary targets are constructed from two complementary cues: adaptive BEV morphological boundaries characterize projected crown contours, while 3D contact boundaries identify locally adjacent regions belonging to different tree instances. A lightweight boundary head predicts boundary logits from the shared voxel features under the constructed supervision.
Figure 4: Spatial anchoring and adaptive fusion for semantic query enhancement. Learnable 3D anchors initialized with forest vertical stratification priors are encoded into positional queries and adaptively fused with learnable semantic queries through channel-wise gating, yielding spatially anchored semantic queries for subsequent decoding.
Dataset
Scanning Mode (Sensor)
Number of Plots
Number of Trees
Country
Train
Val
Test
FOR-instanceV2
CULS
ULS (Riegl VUX-1)
1
1
1
37
Czech Republic
NIBIO
ULS (Riegl MiniVUX-1)
8
6
6
575
Norway
RMIT
ULS (Riegl MiniVUX-1)
1
0
1
223
Australia
SCION
ULS (Riegl MiniVUX-1)
2
1
2
135
New Zealand
TUWIEN
ULS (Riegl VUX-1)
1
0
1
150
Austria
Table 1: Summary of the datasets used in this study. FOR-instanceV2 is detailed by subset, with LAUTx and our self-collected dataset included for additional evaluation.
Method
Individual Tree Seg. (%)
Semantic Seg. (%)
P
R
F1
Cov
Ground
Wood
Leaf
mIoU
ForAINetV2_R16
88.1
59.2
70.8
72.7
98.8
69.2
94.5
87.5
TreeLearn ∗
82.0
36.6
50.6
52.2
–
–
–
–
OneFormer3D
72.0
74.3
73.1
80.0
97.8
63.1
93.4
84.8
ForestFormer3D
92.4
75.0
82.8
81.2
96.9
67.7
94.1
86.2
ForestQuery (ours)
91.8
77.3
84.0
90.0
99.0
69.6
94.3
87.6
Table 2: Quantitative comparison with state-of-the-art methods on the FOR-instanceV2 test set. Bold and underlined values denote the best and second-best results, respectively. ∗ TreeLearn results exclude the Yuchen region.
Figure 5: Qualitative comparison of semantic segmentation on representative scenes from the BlueCat, NIBIO2, and NIBIO_MLS subsets of the FOR-instanceV2 test set. Leaf, wood, and ground points are shown in green, brown, and gray, respectively. Red circles highlight confusion between wood and leaf points, while blue circles indicate tree points incorrectly classified as ground.
Figure 6: Qualitative comparison of individual-tree segmentation on representative scenes from the BlueCat, NIBIO2, and NIBIO_MLS subsets of the FOR-instanceV2 test set. Ground points are shown in gray, while different colors denote individual-tree instances. Yellow circles highlight over-segmentation, blue circles indicate undetected trees, and red circles mark points incorrectly assigned from one tree to a neighboring tree.
Baseline
BU
SA-SQE
Individual Tree Seg. (%)
Semantic Seg. (%)
P
R
F1
Cov
Ground
Wood
Leaf
mIoU
✓
92.4
75.0
82.8
81.2
96.9
67.7
94.1
86.2
✓
✓
91.7
77.9
84.2
90.1
98.5
66.9
94.0
86.5
✓
✓
90.9
76.7
83.2
90.1
99.0
68.0
94.1
87.0
✓
✓
✓
91.8
77.3
84.0
90.0
99.0
69.6
94.3
87.6
Table 3: Ablation study on the FOR-instanceV2 test set. Bold and underlined values denote the best and second-best results, respectively.
Dataset
Method
Individual Tree Seg. (%)
Semantic Seg. (%)
P
R
F1
Cov
Ground
Tree
mIoU
LAUTx
ForAINetV2_R16
93.7
77.7
85.0
74.7
95.9
96.7
96.3
TreeLearn
96.8
87.9
92.1
85.2
92.6
95.9
94.3
OneFormer3D
58.1
80.2
67.4
74.6
94.6
96.9
95.8
ForestFormer3D
95.7
85.9
90.5
79.1
94.1
96.7
95.4
ForestQuery (ours)
92.5
88.6
90.5
86.8
95.1
96.7
95.9
Table 4: Quantitative comparison of generalization performance on the LAUTx and self-collected datasets. Bold and underlined values denote the best and second-best results, respectively.
Figure 7: Qualitative comparison of individual-tree segmentation on the generalization datasets. Ground points are shown in gray, while different colors denote individual-tree instances. Yellow circles highlight over-segmentation, blue circles indicate undetected trees, red circles mark points incorrectly assigned from one tree to a neighboring tree, and black circles indicate ground points incorrectly assigned to tree instances.
3D point cloud segmentation assigns semantic, instance, or part labels to points for scene understanding, mapping, robotics, and scientific measurement.
AI-based semantic and instance segmentation of terrestrial and drone LiDAR point clouds is emerging as a transformative approach for converting the complex 3D structure of forests into actionable information for forest monitoring and biodiversity assessment. However, forest LiDAR scenes remain highly challenging due to their large data volumes, irregular sampling density, overlapping and complex canopy structure, and geographic variability. Existing methods based on sparse convolutions or Transformers achieve promising results, but suffer from two key limitations: Quadratic complexity of attention scales poorly to large forest scenes, and Generic context modeling does not exploit forest structural priors, limiting tree separation in complex regions. To address these challenges, we propose ForestMamba, a structure-aware method that incorporates forest-specific priors into feature encoding, query generation, and query refinement, while replacing quadratic attention with linear-time state-space modeling. First, we introduce a sparse encoder with vertical-priority slab serialization that organizes sparse voxels into vertically coherent sequences for efficient long-range context modeling. Second, we propose a geometry-guided query initialization strategy based on an on-the-fly multi-scale Canopy Height Model (CHM), where canopy maxima provide ecologically meaningful query seeds, supplemented by Farthest Point Sampling (FPS) to cover understory trees. Third, we design a Mamba-based query decoder that combines local kNN voxel aggregation with a spatial dual-path Mamba for query refinement with linear computational complexity. Extensive experiments across seven forest regions demonstrate that ForestMamba consistently outperforms existing baselines in both segmentation tasks, while achieving 3 times faster inference and 2.3 times lower GPU memory than Transformer-based methods.
Trung Thanh Nguyen, Tuan-Anh Vu, Duc Viet Le +4
Nagoya University Nagoya, Aichi, Japan · RIKEN Seika, Kyoto, Japan · University of California, Los Angeles CA, USA +3
Automated instance segmentation of forest LiDAR point clouds is increasingly critical as forest monitoring moves toward scalable, detailed, 3D measurement. Yet, progress is constrained by label scarcity for tree instances; a single hectare can hold millions of points and hundreds of overlapping, complex crowns, making manual annotation from scratch with raw data laborious and error-prone. Annotations are often corrected from automatic pre-segmentations, but remain costly as these provide no interactive or AI-assisted refinement. Inspired by the promptable paradigm of foundation segmentation models, we propose SelectAnyTree, a promptable instance segmentation model that delineates any individual tree in a 3D forest point cloud from a few clicks. It introduces two key components: Click-to-query prompt encoder and Canopy Height Model (CHM)-guided first prompt. The former turns each click into a single content query, encoding its 3D position and positive/negative polarity together with a pooled local backbone feature. The latter provides treetops as a geometry- and ecologically guided first prompt without any user input. The resulting prompt query is then decoded into one tree mask by a state-space query decoder to efficiently capture long-range context in large-scale forest scenes with linear-time complexity. We evaluate SelectAnyTree in interactive and instance-level settings across seven diverse forest regions and an independent held-out test dataset, demonstrating strong generalization beyond the training domains. It segments a target tree to 78.2 Intersection over Union (IoU) from a single click, 24.8 points above the strongest promptable baseline, and reaches every accuracy target with the fewest clicks, while using far fewer parameters and less inference time than prior promptable models. The source code is available at https://github.com/thanhhff/SelectAnyTree.
Trung Thanh Nguyen, Daniel Lusk, Kilian Gerberding +10
Nagoya University, Japan · University of Freiburg, Germany · University of California, Los Angeles, USA +5
We present SegmentAnyTreeV2, a sensor- and platform-agnostic framework for semantic and instance segmentation of forest point clouds. The model combines a serialization-based Point Transformer v3 backbone with a lightweight semantic head and a tree-focused cross-attention mask decoder. Semantic predictions restrict instance decoding to tree-class voxels, while instance-aware query initialization, one-to-many seed supervision, and asymmetric mask scoring improve separation in dense and structurally complex stands. We further introduce FOR-instance v3, an expanded benchmark comprising 427 scenes and 26,496 annotated trees across diverse biomes, forest structures, and LiDAR platforms. On the FOR-instanceV2 test split, SegmentAnyTreeV2 achieves 90.5% precision, 80.2% recall, 85.0% F1, 90.7% coverage, and 87.6% semantic mIoU, outperforming previous learning-based methods in both instance detection and mask completeness. Zero-shot evaluation on independent sites further demonstrates strong cross-domain generalization.
Maciej Wielgosz, Stefano Puliti, Rasmus Astrup
Norwegian Institute of Bioeconomy Research (NIBIO), Høgskoleveien 7, 1433 Ås, Norway