H. C. Bazame, J. Molin, D. Althoff, Maurício Martello
{"title":"用计算机视觉检测树枝上的咖啡果实","authors":"H. C. Bazame, J. Molin, D. Althoff, Maurício Martello","doi":"10.1590/1678-992x-2022-0064","DOIUrl":null,"url":null,"abstract":": Coffee farmers do not have efficient tools to have sufficient and reliable information on the maturation stage of coffee fruits before harvest. In this study, we propose a computer vision system to detect and classify the Coffea arabica (L.) on tree branches in three classes: unripe (green), ripe (cherry), and overripe (dry). Based on deep learning algorithms, the computer vision model YOLO (You Only Look Once), was trained on 387 images taken from coffee branches using a smartphone. The YOLOv3 and YOLOv4, and their smaller versions (tiny), were assessed for fruit detection. The YOLOv4 and YOLOv4-tiny showed better performance when compared to YOLOv3, especially when smaller network sizes are considered. The mean average precision (mAP) for a network size of 800 × 800 pixels was equal to 81 %, 79 %, 78 %, and 77 % for YOLOv4, YOLOv4-tiny, YOLOv3, and YOLOv3-tiny, respectively. Despite the similar performance, the YOLOv4 feature extractor was more robust when images had greater object densities and for the detection of unripe fruits, which are generally more difficult to detect due to the color similarity to leaves in the background, partial occlusion by leaves and fruits, and lighting effects. This study shows the potential of computer vision systems based on deep learning to guide the decision-making of coffee farmers in more objective ways.","PeriodicalId":49559,"journal":{"name":"Scientia Agricola","volume":"1 1","pages":""},"PeriodicalIF":2.6000,"publicationDate":"2022-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Detection of coffee fruits on tree branches using computer vision\",\"authors\":\"H. C. Bazame, J. Molin, D. Althoff, Maurício Martello\",\"doi\":\"10.1590/1678-992x-2022-0064\",\"DOIUrl\":null,\"url\":null,\"abstract\":\": Coffee farmers do not have efficient tools to have sufficient and reliable information on the maturation stage of coffee fruits before harvest. In this study, we propose a computer vision system to detect and classify the Coffea arabica (L.) on tree branches in three classes: unripe (green), ripe (cherry), and overripe (dry). Based on deep learning algorithms, the computer vision model YOLO (You Only Look Once), was trained on 387 images taken from coffee branches using a smartphone. The YOLOv3 and YOLOv4, and their smaller versions (tiny), were assessed for fruit detection. The YOLOv4 and YOLOv4-tiny showed better performance when compared to YOLOv3, especially when smaller network sizes are considered. The mean average precision (mAP) for a network size of 800 × 800 pixels was equal to 81 %, 79 %, 78 %, and 77 % for YOLOv4, YOLOv4-tiny, YOLOv3, and YOLOv3-tiny, respectively. Despite the similar performance, the YOLOv4 feature extractor was more robust when images had greater object densities and for the detection of unripe fruits, which are generally more difficult to detect due to the color similarity to leaves in the background, partial occlusion by leaves and fruits, and lighting effects. This study shows the potential of computer vision systems based on deep learning to guide the decision-making of coffee farmers in more objective ways.\",\"PeriodicalId\":49559,\"journal\":{\"name\":\"Scientia Agricola\",\"volume\":\"1 1\",\"pages\":\"\"},\"PeriodicalIF\":2.6000,\"publicationDate\":\"2022-09-12\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Scientia Agricola\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://doi.org/10.1590/1678-992x-2022-0064\",\"RegionNum\":3,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"Agricultural and Biological Sciences\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Scientia Agricola","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.1590/1678-992x-2022-0064","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"Agricultural and Biological Sciences","Score":null,"Total":0}
引用次数: 2
摘要
:咖啡农没有有效的工具来获得收获前咖啡果实成熟阶段的充分和可靠的信息。在这项研究中,我们提出了一个计算机视觉系统来检测和分类树上的阿拉比卡咖啡(L.),分为三个类别:未成熟(绿色),成熟(樱桃)和过熟(干燥)。基于深度学习算法,计算机视觉模型YOLO (You Only Look Once)使用智能手机对从咖啡连锁店拍摄的387张照片进行了训练。对YOLOv3和YOLOv4及其更小的版本(微小)进行了水果检测评估。与YOLOv3相比,YOLOv4和YOLOv4-tiny表现出更好的性能,特别是在考虑较小的网络大小时。对于800 × 800像素的网络大小,YOLOv4、YOLOv4-tiny、YOLOv3和YOLOv3-tiny的平均平均精度(mAP)分别为81%、79%、78%和77%。尽管具有类似的性能,但YOLOv4特征提取器在图像具有较大物体密度和未成熟水果检测时更加鲁棒,未成熟水果由于与背景中叶子的颜色相似,叶子和水果的部分遮挡以及光照效果通常更难以检测。这项研究显示了基于深度学习的计算机视觉系统以更客观的方式指导咖啡农决策的潜力。
Detection of coffee fruits on tree branches using computer vision
: Coffee farmers do not have efficient tools to have sufficient and reliable information on the maturation stage of coffee fruits before harvest. In this study, we propose a computer vision system to detect and classify the Coffea arabica (L.) on tree branches in three classes: unripe (green), ripe (cherry), and overripe (dry). Based on deep learning algorithms, the computer vision model YOLO (You Only Look Once), was trained on 387 images taken from coffee branches using a smartphone. The YOLOv3 and YOLOv4, and their smaller versions (tiny), were assessed for fruit detection. The YOLOv4 and YOLOv4-tiny showed better performance when compared to YOLOv3, especially when smaller network sizes are considered. The mean average precision (mAP) for a network size of 800 × 800 pixels was equal to 81 %, 79 %, 78 %, and 77 % for YOLOv4, YOLOv4-tiny, YOLOv3, and YOLOv3-tiny, respectively. Despite the similar performance, the YOLOv4 feature extractor was more robust when images had greater object densities and for the detection of unripe fruits, which are generally more difficult to detect due to the color similarity to leaves in the background, partial occlusion by leaves and fruits, and lighting effects. This study shows the potential of computer vision systems based on deep learning to guide the decision-making of coffee farmers in more objective ways.
期刊介绍:
Scientia Agricola is a journal of the University of São Paulo edited at the Luiz de Queiroz campus in Piracicaba, a city in São Paulo state, southeastern Brazil. Scientia Agricola publishes original articles which contribute to the advancement of the agricultural, environmental and biological sciences.