Available at: https://digitalcommons.calpoly.edu/theses/3463
Date of Award
11-2026
Degree Name
MS in Agriculture - BioResource and Agriculture Systems
Department/Program
Bioresource and Agricultural Engineering
College
College of Agriculture, Food, and Environmental Sciences
Advisor
Bo Liu
Advisor Department
Bioresource and Agricultural Engineering
Advisor College
College of Agriculture, Food, and Environmental Sciences
Abstract
Grapes are extremely high valued commodities in the United States, especially in California. The California table grape industry has been facing challenges regarding shortage of available workers, unfavorable labor laws, rising production costs, and overall lack of interest towards the workforce, forcing the industry to consider a solution through automation. This study explores the development of a deep learning-based computer vision system with the ability to accurately detect grape clusters and the corresponding peduncle cutting point. Pictures were gathered from the Cal Poly vineyard, taken with a RealSense D415 camera, and online data from CERTH and GrapesNet. Images were manually annotated using CVAT.ai, defining a skeleton around the cluster to label grapes and cutting point. The dataset was trained on a modified YOLO (You Only Look Once) architecture that has an added a P2 detection head, 4-scale feature fusion, ghost bottleneck backbone, new SEBlock and CBAM attention blocks, a custom stem-line loss function, OKS keypoint tuning, and a bi-directional feature fusion weightier, enabling simultaneous grape clusters and peduncle cutting point prediction. The resulting model has a mean average precision (mAP) of 0.959 for grape cluster detection at the 50% IoU and 0.716 between 50-95% IoU, with the peduncle cutting prediction being 0.927 at 50% IoU and 0.778 between 50-95% IoU and a bounding box F1-score of 0.92 and pose F1-score of 0.91. The model was then deployed on a UR5 robotic arm, equipped with a linear actuator cutter and RealSense D415 camera successfully approached 76% of grape peduncles out in the Cal Poly vineyard and an average cutting stem distance of 1.765cm. A TOST tests indicates no evidence of a meaningful deviation from the reference distance of 1.905cm. The future scope of this project leads into the development of full integration with a mobile platform with self-navigation with the aim for a fully autonomous grape harvesting system. The implication of this work is to incorporate automation in the industry to not replace workers but substitute manual labor with abstract complex problem solving.