{"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}
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 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.