欢迎访问林业科学,今天是

林业科学 ›› 2026, Vol. 62 ›› Issue (7): 74-87.doi: 10.11707/j.1001-7488.LYKX20250576

• 研究论文 • 上一篇    下一篇

基于无人机图像和小样本学习的林木计数方法

朱学岩1,2(),张怀清1,2,*(),杨廷栋1,2,*(),傅汝饶1,3,崔泽宇1,2,葛晓宁1,2,谢先建4   

  1. 1. 中国林业科学研究院资源信息研究所 北京 100091
    2. 国家林业和草原科学数据中心 北京 100091
    3. 中南林业科技大学 长沙 410004
    4. 亚利桑那州立大学计算与增强智能学院 坦佩 85281
  • 收稿日期:2025-09-19 出版日期:2026-07-10 发布日期:2026-07-16
  • 通讯作者: 张怀清,杨廷栋 E-mail:xueyan0111@ifrit.ac.cn;zhang@ifrit.ac.cn;yangtd@ifrit.ac.cn
  • 基金资助:
    国家重点研发计划课题(2023YFF1303604)。

A Tree Counting Method Based on UAV Imagery and Few-Shot Learning

Xueyan Zhu1,2(),Huaiqing Zhang1,2,*(),Tingdong Yang1,2,*(),Rurao Fu1,3,Zeyu Cui1,2,Xiaoning Ge1,2,Xianjian Xie4   

  1. 1. Institute of Forest Resource Information Techniques, Chinese Academy of Forestry Beijing 100091
    2. National Forestry and Grassland Science Data Center Beijing 100091
    3. Central South University of Forestry & Technology Changsha 410004
    4. School of Computing and Augmented Intelligence, Arizona State University Tempe 85281
  • Received:2025-09-19 Online:2026-07-10 Published:2026-07-16
  • Contact: Huaiqing Zhang,Tingdong Yang E-mail:xueyan0111@ifrit.ac.cn;zhang@ifrit.ac.cn;yangtd@ifrit.ac.cn

摘要:

目的: 针对现有基于无人机图像的林木计数方法通常依赖大量标注数据的问题,提出一种基于小样本学习的林木计数方法,以解决小样本标注条件下的林木计数难题。方法: 整合公开数据集TreeAI与现场采集的内蒙古自治区科尔沁沙地南缘、湖南黄丰桥林场和江西油茶种植基地的林木正射图像,采用点标注与椭圆标注相结合的方式进行数据标注,构建包括杉木、樟子松、油茶等树种的林木计数数据集UAV-TC。在此基础上,将林木计数任务建模为小样本回归问题,利用少量代表性样本引导模型学习林木目标的结构相似性特征,降低模型对单一树种表型特征的过度依赖,进而提出基于小样本学习的林木计数模型FSTC-Net。该模型主要包括树种无关的多尺度特征提取网络和密度图预测模块,可实现复杂场景下多树种林木的稳定计数,其中,特征提取网络采用MixNet-L结合特征金字塔结构,以增强不同尺度林木目标的特征表征能力;密度图预测模块以样本特征和图像特征生成的相关图替代传统的直接特征图输入,实现多树种特征对齐和相似度匹配。此外,引入随机尺度缩放策略和自适应损失函数,提升模型在少样本条件下的泛化能力和计数精度。结果: FSTC-Net模型能够对测试集中的杉木、樟子松和油茶实现准确计数,决定系数(R2)达0.949 9,平均绝对百分比误差(MAPE)、平均绝对误差(MAE)和均方根误差(RMSE)分别为3.54%、26.71株和37.60株。消融试验结果显示,FamNet模型分别融合MixNet-L模块和RoI Align模块后,模型计数的R2分别提升0.030 8和0.032 9,MAPE分别降低0.64%和0.78%。FamNet模型同时融合MixNet-L模块和RoI Align模块后,模型计数的R2和MAPE表现最优。进一步与主流模型T-Rex、T-Rex2 和FamNet的对比试验结果显示,FSTC-Net模型在误差控制和结果稳定性方面均表现更优,R2分别比T-Rex、T-Rex2和FamNet模型高0.085 4、0.049 3和0.041 3;MAPE分别比T-Rex、T-Rex2 和FamNet低3.12%、2.35%和1.73%。此外,对不同郁闭度的林木计数结果分析发现,FSTC-Net模型在对高郁闭度针阔混交林计数时误差虽有增大,但仍能维持在相对合理的范围内。结论: 试验结果验证了FSTC-Net模型在林木计数任务中的有效性和优越性,可为无人机图像辅助的森林资源监测提供可靠技术支撑。

关键词: 林木计数, 无人机, 小样本学习, 多树种, 森林资源监测

Abstract:

Objective: Existing tree counting methods based on unmanned aerial vehicle (UAV) imagery typically require a large amount of annotated data. To address the challenge of tree counting under limited annotation conditions, a tree counting method based on few-shot learning is proposed. Method: The publicly available TreeAI dataset was integrated with orthophotos of trees collected from the southern edge of the Horqin Sandy Land in Inner Mongolia Autonomous Region, Huangfengqiao Forest Farm in Hunan Province, and Camellia oleifera plantations in Jiangxi Province. Point and ellipse annotations were jointly employed for data labeling to construct a UAV-based tree counting dataset (UAV-TC) containing tree species such as Cunninghamia lanceolata, Pinus sylvestris var. mongolica, Camellia oleifera. The tree counting task was subsequently formulated as a few-shot regression problem. A small number of representative samples were used to guide the model in learning structural similarity features of tree objects, thereby reducing its dependence on phenotypic characteristics specific to individual tree species. Accordingly, a few-shot learning-based tree counting model, named FSTC-Net, was developed. The proposed model consists of a species-independent multi-scale feature extraction network and a density map prediction module, enabling robust counting of multiple tree species in complex environments. Specifically, the feature extraction network incorporated MixNet-L with a feature pyramid structure to enhance multi-scale feature representation of tree targets. The density map prediction module replaced conventional direct feature map inputs with correlation maps generated from sample and image features, thereby enabling cross-species feature alignment and similarity matching. In addition, a random scale augmentation strategy and an adaptive loss function were introduced to improve model generalization and counting accuracy under few-shot conditions. Result: Experimental results demonstrated that FSTC-Net achieved accurate counting of Cunninghamia lanceolata, Pinus sylvestris var. mongolica, Camellia oleifera in the test set, with a coefficient of determination (R2) of 0.949 9. The corresponding mean absolute percentage error (MAPE), mean absolute error (MAE), and root mean square error (RMSE) values were 3.54%, 26.71 trees, and 37.60 trees, respectively. Ablation experiments showed that after integrating the MixNet-L and RoI Align modules into the FamNet model, the R2 of the model counting increased by 0.0308 and 0.0329, respectively, while the MAPE was reduced by 0.64% and 0.78%, respectively. When both MixNet-L and RoI Align modules were integrated into the FamNet model, the best performance in terms of R2 and MAPE was achieved. Further comparisons with mainstream models, including T-Rex, T-Rex2, and FamNet, demonstrated that FSTC-Net outperformed these methods in terms of both error control and result stability. Specifically, the R2 values of FSTC-Net were 0.0854, 0.0493, and 0.0413 higher than those of T-Rex, T-Rex2, and FamNet, respectively, whereas the corresponding MAPE values were reduced by 3.12%, 2.35%, and 1.73%, respectively. In addition, analysis under different canopy densities revealed that although the counting error of FSTC-Net increased in high-canopy-density mixed coniferous and broad-leaved forests, the error remained within an acceptable range. Conclusion: The experimental result has verified the effectiveness and superiority of FSTC-Net for tree counting tasks, and it can provide reliable technical support for UAV-assisted forest resource monitoring.

Key words: tree counting, UAV, few-shot learning, multiple tree species, forest resource monitoring

中图分类号: