Blueberry growers currently rely on manual or subjective approaches to harvest decision-making and yield estimation. Canopy image-based, pre-harvest blueberry detection provides a promising means for automated harvest maturity assessment, fruit counting, and yield estimation to optimize crop management and reduce labor costs. Data-driven deep-learning-based object detectors, especially the YOLO (You Only Look Once) series models, have emerged as a powerful tool for a diversity of computer vision tasks in agriculture. However, the detection of such small, densely populated objects as blueberries in unstructured scenes can pose great challenges, especially given the lack of dedicated datasets for model development. This study, therefore, presents the first publicly available dataset of blueberry canopy images with 17,955 ripe and unripe blueberries, which were captured in diverse orchard conditions, and performance evaluation of YOLOv8l (large) and YOLOv9-c (compact) with comparable complexity for blueberry detection and whereby fruit counting and ripe fruit percentage estimation. At the input image resolution of 2560 × 2560 pixels, both models performed similarly in terms of detection accuracy with around 91 % mAP@50, except that YOLOv9-c was far more time-consuming to train. Trained with the input of higher resolution images of 3520 × 3520 pixels, YOLOv8l achieved an overall mAP@50 of nearly 93 %, and an RMSEs (root-mean-square errors) of 10.4 in fruit counting and 3.62 % in estimating the percentage of ripe fruit of each image. Both the blueberry dataset11https://zenodo.org/records/14002517 and software programs22https://github.com/vicdxxx/BlueberryDetectionAndCounting of this study have been or will be made publicly available, which are expected to be useful for promoting greater community efforts for further algorithm development.
Read full abstract