Cargando…
Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System
Green citrus detection in citrus orchards provides reliable support for production management chains, such as fruit thinning, sunburn prevention and yield estimation. In this paper, we proposed a lightweight object detection YOLOv5-CS (Citrus Sort) model to realize object detection and the accurate...
Autores principales: | , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8778674/ https://www.ncbi.nlm.nih.gov/pubmed/35062541 http://dx.doi.org/10.3390/s22020576 |
_version_ | 1784637380834099200 |
---|---|
author | Lyu, Shilei Li, Ruiyao Zhao, Yawen Li, Zhen Fan, Renjie Liu, Siying |
author_facet | Lyu, Shilei Li, Ruiyao Zhao, Yawen Li, Zhen Fan, Renjie Liu, Siying |
author_sort | Lyu, Shilei |
collection | PubMed |
description | Green citrus detection in citrus orchards provides reliable support for production management chains, such as fruit thinning, sunburn prevention and yield estimation. In this paper, we proposed a lightweight object detection YOLOv5-CS (Citrus Sort) model to realize object detection and the accurate counting of green citrus in the natural environment. First, we employ image rotation codes to improve the generalization ability of the model. Second, in the backbone, a convolutional layer is replaced by a convolutional block attention module, and a detection layer is embedded to improve the detection accuracy of the little citrus. Third, both the loss function CIoU (Complete Intersection over Union) and cosine annealing algorithm are used to get the better training effect of the model. Finally, our model is migrated and deployed to the AI (Artificial Intelligence) edge system. Furthermore, we apply the scene segmentation method using the “virtual region” to achieve accurate counting of the green citrus, thereby forming an embedded system of green citrus counting by edge computing. The results show that the mAP@.5 of the YOLOv5-CS model for green citrus was 98.23%, and the recall is 97.66%. The inference speed of YOLOv5-CS detecting a picture on the server is 0.017 s, and the inference speed on Nvidia Jetson Xavier NX is 0.037 s. The detection and counting frame rate of the AI edge system-side counting system is 28 FPS, which meets the counting requirements of green citrus. |
format | Online Article Text |
id | pubmed-8778674 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-87786742022-01-22 Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System Lyu, Shilei Li, Ruiyao Zhao, Yawen Li, Zhen Fan, Renjie Liu, Siying Sensors (Basel) Article Green citrus detection in citrus orchards provides reliable support for production management chains, such as fruit thinning, sunburn prevention and yield estimation. In this paper, we proposed a lightweight object detection YOLOv5-CS (Citrus Sort) model to realize object detection and the accurate counting of green citrus in the natural environment. First, we employ image rotation codes to improve the generalization ability of the model. Second, in the backbone, a convolutional layer is replaced by a convolutional block attention module, and a detection layer is embedded to improve the detection accuracy of the little citrus. Third, both the loss function CIoU (Complete Intersection over Union) and cosine annealing algorithm are used to get the better training effect of the model. Finally, our model is migrated and deployed to the AI (Artificial Intelligence) edge system. Furthermore, we apply the scene segmentation method using the “virtual region” to achieve accurate counting of the green citrus, thereby forming an embedded system of green citrus counting by edge computing. The results show that the mAP@.5 of the YOLOv5-CS model for green citrus was 98.23%, and the recall is 97.66%. The inference speed of YOLOv5-CS detecting a picture on the server is 0.017 s, and the inference speed on Nvidia Jetson Xavier NX is 0.037 s. The detection and counting frame rate of the AI edge system-side counting system is 28 FPS, which meets the counting requirements of green citrus. MDPI 2022-01-12 /pmc/articles/PMC8778674/ /pubmed/35062541 http://dx.doi.org/10.3390/s22020576 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Lyu, Shilei Li, Ruiyao Zhao, Yawen Li, Zhen Fan, Renjie Liu, Siying Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title | Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title_full | Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title_fullStr | Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title_full_unstemmed | Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title_short | Green Citrus Detection and Counting in Orchards Based on YOLOv5-CS and AI Edge System |
title_sort | green citrus detection and counting in orchards based on yolov5-cs and ai edge system |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8778674/ https://www.ncbi.nlm.nih.gov/pubmed/35062541 http://dx.doi.org/10.3390/s22020576 |
work_keys_str_mv | AT lyushilei greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem AT liruiyao greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem AT zhaoyawen greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem AT lizhen greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem AT fanrenjie greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem AT liusiying greencitrusdetectionandcountinginorchardsbasedonyolov5csandaiedgesystem |