首页|基于改进UNet的樱桃树枝直径计算方法

基于改进UNet的樱桃树枝直径计算方法

扫码查看
针对果园环境中樱桃树图像分割和直径计算精度低的问题,本文提出一种基于改进UNet的休眠期樱桃树枝直径计算方法.首先,对樱桃树的主干和枝条采用分类网格化标记,增加UNet对枝干数据的训练量;其次,选取通用性强的VGG16,替换UNet的主干特征提取网络,并在池化层后加入SAM模块,克服复杂背景和枝干结构的影响;再次,使用加权交叉熵损失函数,赋予各类目标不同的权值,解决像素类别不平衡问题;最后,在UNet获取的枝干掩膜图像中生成最大内接圆,通过最大内接圆直径计算枝干实际直径.实验结果表明,改进的UNet模型检测休眠期樱桃树的MPA和MIoU分别达到85.79%和77.97%,相比原UNet模型提高0.52个百分点和4.49个百分点.将本文方法与实地测量的方法进行线性回归分析,得到树枝直径计算结果的决定系数均不小于0.915 7,均方根误差均不大于0.86 mm.表明本文提出的方法能准确分割樱桃树枝干图像,计算枝条直径,可为樱桃树自动化修剪提供有效的技术支持.
Calculation Method for Cherry branch Diameter Based on Improved UNet
In response to the low accuracy of cherry tree image segmentation and diameter calculation in orchard environments,a dormant cherry branch diameter calculation method was proposed based on improved UNet.Firstly,the main trunk and branches of cherry trees were classified and grided to increase the training capacity of UNet on branch data.Secondly,VGG16 with strong universality was selected to replace the backbone feature extraction network of UNet,and a SAM module was added after the pooling layer to overcome the influence of complex backgrounds and branch structures.Again,using a weighted cross entropy loss function,assigning different weights to various targets to solve the problem of imbalanced pixel categories.Finally,the maximum inscribed circle was generated in the branch mask image obtained by UNet,and the actual diameter of the branch was calculated based on the maximum inscribed circle diameter.The experimental results showed that the improved UNet model achieved an MPA and MIoU of 85.79% and 77.97% for detecting dormant cherry trees,respectively,which were 0.52 percent points and 4.49 percent points higher than that of the original UNet model.Linear regression analysis was conducted between the described method and the field measurement method,and the determination coefficients of the branch diameter calculation results were all no less than 0.915 7,with root mean square errors no more than 0.86 mm.This indicated that the method proposed can accurately segment cherry tree branch images,calculate branch diameters,and provide effective technical support for automated pruning of cherry trees.

cherry treeU-Netdeep learningdistance transformdiameter calculation

李振东、李云飞、杨立伟、刘刚、吕树盛、宫艳晶

展开 >

中国农业大学智慧农业系统集成研究教育部重点实验室,北京 100083

中国农业大学烟台研究院,烟台 264670

中国农业机械化科学研究院集团有限公司,北京 100083

樱桃树 U-Net 深度学习 距离变换 直径计算

2024

农业机械学报
中国农业机械学会 中国农业机械化科学研究院

农业机械学报

CSTPCD北大核心
影响因子:1.904
ISSN:1000-1298
年,卷(期):2024.55(z1)