基于改进的 YOLOv8-seg 和 RGB-D 数据的番茄茎直径测量新方法

IF 7.7 1区 农林科学 Q1 AGRICULTURE, MULTIDISCIPLINARY
{"title":"基于改进的 YOLOv8-seg 和 RGB-D 数据的番茄茎直径测量新方法","authors":"","doi":"10.1016/j.compag.2024.109387","DOIUrl":null,"url":null,"abstract":"<div><p>The automatic acquisition of crop information can promote the rapid development of precision agriculture. Tomatoes, as a representative greenhouse crop, can demonstrate their growth status and overall health could be exhibited by measuring the diameters of their main stems. Automated measurement of the diameters of the trunk stems can not only reduce labor costs, but also enhance efficiency, thereby facilitating the improvement of tomato cultivation and planting management. Therefore, this study proposes a novel method based on an instance segmentation algorithm combined with RGB-D data to measure the diameter of a tomato trunk. First, we utilize the improved YOLOv8-seg to acquire the masks and bounding boxes of the buds and stems. Namely, we replace the SPPF module with Soft-SPPF to enhance the model’s capability to extract multi-scale features. Additionally, we improve the neck layer using cross-stage and weighted feature fusion to enhance the feature fusion effect. Then, we design a method to calculate the diameter of the tomato trunk by utilizing the instance segmentation results and depth information. Specifically, we first obtain the measurement point and the ROI (Region of Interest) to be measured by identifying the intersection between the bounding box of the bud and the straight line fitted by the stem mask in an image. We then filter out irrelevant depth information using the mask within the ROI, optimize the coordinate values of the measurement point, and calculate the main stem diameter. The results demonstrate that the measurements obtained in this study have a RMSE (Root Mean Square Error) of 1.5 mm and a MAPE (Mean Absolute Percentage Error) of 12.37 % compared with the manual measurements. Compared with the method based on object detection, the direct acquisition of contour information for the target instances by the instance segmentation algorithm reduces the algorithmic complexity of the subsequent processing. The proposed method can offer precise and reliable information on the diameter of the main stem of a tomato in real-world scenarios. It can be extended to other types of crops in greenhouses.</p></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":null,"pages":null},"PeriodicalIF":7.7000,"publicationDate":"2024-08-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A novel method for tomato stem diameter measurement based on improved YOLOv8-seg and RGB-D data\",\"authors\":\"\",\"doi\":\"10.1016/j.compag.2024.109387\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>The automatic acquisition of crop information can promote the rapid development of precision agriculture. Tomatoes, as a representative greenhouse crop, can demonstrate their growth status and overall health could be exhibited by measuring the diameters of their main stems. Automated measurement of the diameters of the trunk stems can not only reduce labor costs, but also enhance efficiency, thereby facilitating the improvement of tomato cultivation and planting management. Therefore, this study proposes a novel method based on an instance segmentation algorithm combined with RGB-D data to measure the diameter of a tomato trunk. First, we utilize the improved YOLOv8-seg to acquire the masks and bounding boxes of the buds and stems. Namely, we replace the SPPF module with Soft-SPPF to enhance the model’s capability to extract multi-scale features. Additionally, we improve the neck layer using cross-stage and weighted feature fusion to enhance the feature fusion effect. Then, we design a method to calculate the diameter of the tomato trunk by utilizing the instance segmentation results and depth information. Specifically, we first obtain the measurement point and the ROI (Region of Interest) to be measured by identifying the intersection between the bounding box of the bud and the straight line fitted by the stem mask in an image. We then filter out irrelevant depth information using the mask within the ROI, optimize the coordinate values of the measurement point, and calculate the main stem diameter. The results demonstrate that the measurements obtained in this study have a RMSE (Root Mean Square Error) of 1.5 mm and a MAPE (Mean Absolute Percentage Error) of 12.37 % compared with the manual measurements. Compared with the method based on object detection, the direct acquisition of contour information for the target instances by the instance segmentation algorithm reduces the algorithmic complexity of the subsequent processing. The proposed method can offer precise and reliable information on the diameter of the main stem of a tomato in real-world scenarios. It can be extended to other types of crops in greenhouses.</p></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":7.7000,\"publicationDate\":\"2024-08-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169924007786\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169924007786","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0

摘要

自动获取作物信息可以促进精准农业的快速发展。番茄作为温室作物的代表,通过测量其主茎的直径可以展示其生长状态和整体健康状况。自动测量主茎直径不仅能降低劳动力成本,还能提高工作效率,从而促进番茄栽培和种植管理水平的提高。因此,本研究提出了一种基于实例分割算法并结合 RGB-D 数据的新型方法来测量番茄主干的直径。首先,我们利用改进的 YOLOv8-seg 获取芽和茎的遮罩和边界框。此外,我们用 Soft-SPPF 代替 SPPF 模块,以增强模型提取多尺度特征的能力。此外,我们还利用交叉阶段和加权特征融合改进了颈部层,以增强特征融合效果。然后,我们设计了一种利用实例分割结果和深度信息计算番茄树干直径的方法。具体来说,我们首先通过识别图像中花蕾边界框与茎遮罩拟合直线的交点,获得测量点和待测区域(ROI)。然后,我们利用 ROI 内的掩膜过滤掉无关的深度信息,优化测量点的坐标值,并计算主茎直径。结果表明,与人工测量相比,本研究获得的测量结果的 RMSE(均方根误差)为 1.5 毫米,MAPE(平均绝对百分比误差)为 12.37%。与基于物体检测的方法相比,实例分割算法直接获取目标实例的轮廓信息降低了后续处理的算法复杂度。所提出的方法可以在实际场景中提供精确可靠的西红柿主茎直径信息。它还可以扩展到温室中的其他类型作物。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A novel method for tomato stem diameter measurement based on improved YOLOv8-seg and RGB-D data

The automatic acquisition of crop information can promote the rapid development of precision agriculture. Tomatoes, as a representative greenhouse crop, can demonstrate their growth status and overall health could be exhibited by measuring the diameters of their main stems. Automated measurement of the diameters of the trunk stems can not only reduce labor costs, but also enhance efficiency, thereby facilitating the improvement of tomato cultivation and planting management. Therefore, this study proposes a novel method based on an instance segmentation algorithm combined with RGB-D data to measure the diameter of a tomato trunk. First, we utilize the improved YOLOv8-seg to acquire the masks and bounding boxes of the buds and stems. Namely, we replace the SPPF module with Soft-SPPF to enhance the model’s capability to extract multi-scale features. Additionally, we improve the neck layer using cross-stage and weighted feature fusion to enhance the feature fusion effect. Then, we design a method to calculate the diameter of the tomato trunk by utilizing the instance segmentation results and depth information. Specifically, we first obtain the measurement point and the ROI (Region of Interest) to be measured by identifying the intersection between the bounding box of the bud and the straight line fitted by the stem mask in an image. We then filter out irrelevant depth information using the mask within the ROI, optimize the coordinate values of the measurement point, and calculate the main stem diameter. The results demonstrate that the measurements obtained in this study have a RMSE (Root Mean Square Error) of 1.5 mm and a MAPE (Mean Absolute Percentage Error) of 12.37 % compared with the manual measurements. Compared with the method based on object detection, the direct acquisition of contour information for the target instances by the instance segmentation algorithm reduces the algorithmic complexity of the subsequent processing. The proposed method can offer precise and reliable information on the diameter of the main stem of a tomato in real-world scenarios. It can be extended to other types of crops in greenhouses.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Computers and Electronics in Agriculture
Computers and Electronics in Agriculture 工程技术-计算机:跨学科应用
CiteScore
15.30
自引率
14.50%
发文量
800
审稿时长
62 days
期刊介绍: Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信