In-Field Multi-Ripeness Blackberry Detection for Soft Robotic Harvesting
Highlights A YOLO-based system was developed to detect multi-ripeness classes of blackberries. A dataset was created consisting of images of blackberries with varying degrees of ripeness. The performances of different YOLO versions were compared on the created dataset. ABSTRACT. Blackberry harvesting is a crucial step for the fresh market production, requiring multiple passes of hand-picking because the berries do not ripen simultaneously, even on a plant, during the harvesting season. The blackberry harvesting process encounters several major hurdles in the U.S., including the shortage of agricultural labor and postharvest fruit quality since the blackberries are highly delicate and sensitive. Developing a computer vision-enabled robotic system for selectively picking blackberries can mitigate issues and secure the profitability of fresh blackberry growers. In-field blackberry detection and localization are extremely challenging attributable to several driving factors, such as the small size of the target berries, multiple levels of berry ripeness, and great variation of outdoor lighting conditions. This study aims to assess and compare the feasibility, accuracy, and efficiency of a series of state-of-the-art YOLO (You Only Look Once) models in detecting multi-ripeness blackberries in the farm conditions. A total of 1,086 images containing three different ripeness levels of blackberries were observed during the two-year harvesting season, including ripe berries (in black color), berries in the ripening stage (in pink color), and unripe berries (in green color). The computer vision pipeline developed in this study had the ability to detect and localize all berries at different ripeness levels, while detecting the ripe berries only was a particular focus. Overall, nine YOLO models (i.e., YOLOv5-x6, YOLOv6-l6, YOLOv7-base, YOLOv7-x, YOLOv7-e6e, YOLOv8-n, YOLOv8-x, YOLOv12-n, and YOLOv12-x) were trained and validated using randomly partitioned 760 (70%) and 108 images (10%), respectively. Among these models, YOLOv7-base outperformed the others in balancing mean Average Precision (mAP) and frames-per-second (FPS) on the test set, which comprised 218 images (20%). More specifically, YOLOv7-base achieved the mAP of 91.1%, F1-score of 84.9%, and inference speed of 12.6 ms per image with 1,024 × 1,024 pixels across all classes of ripeness. In addition, its mAP on the ripe berries was 92.4%, making YOLOv7-base a reliable tool for near real-time, in-field blackberry detection for soft robotic selective harvesting. Keywords: Blackberry, In-field detection, Multi-ripeness, Robotic harvesting, YOLO.
Authors
- Yanbo Huang (ORCID: https://orcid.org/0000-0002-1409-8868)
- Thevathayarajh Thayananthan
- Renee T. Threlfall (ORCID: https://orcid.org/0000-0002-6715-7323)
- Amanda McWhirt (ORCID: https://orcid.org/0000-0003-4156-1878)
- Yue Chen (ORCID: https://orcid.org/0000-0001-5040-6904)
- Wenbo Liu (ORCID: https://orcid.org/0000-0002-4992-7785)
- Xin Zhang (ORCID: https://orcid.org/0000-0001-6388-9327)
- Jonathan Harjono
Publication Details
- Journal
- Journal of the ASABE
- Published
- 2025-01-01
- DOI
- https://doi.org/10.13031/ja.16300
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00