Abstract
Accurate yield estimation in viticulture traditionally relies on manual, labor-intensive counting of grape berries. This study proposes an automated solution using Fully Convolutional Neural Networks (FCNs) to detect individual berries in field images. By treating instance segmentation as a three-class semantic segmentation task—labeling pixels as 'berry', 'edge', or 'background'—the system effectively separates overlapping berries within clusters. Using a MobileNetV2-DeepLabV3 architecture, the researchers achieved detection accuracies of up to 94% on Vertical Shoot Positioned (VSP) vines, demonstrating a robust path toward non-invasive, automated yield forecasting.
Introduction
In the wine industry, early and accurate yield forecasting is essential for logistics, marketing, and quality management. The "holy grail" of this process is the precise counting of individual berries on the vine. However, manual counting is subjective, slow, and prone to significant error.
Computer vision offers a potential alternative, but vineyard environments present two major challenges: cluster overlap and computational density. Grapes grow in dense clusters where individual fruits often touch or overlap, making it difficult for standard algorithms to distinguish where one berry ends and another begins. Furthermore, a single high-resolution image can contain over 1,000 berries, a density that often overwhelms standard instance segmentation frameworks like Mask R-CNN.
Methodology
The core innovation of this research is the reformulation of the berry detection problem. Instead of using complex object-proposal logic to identify unique berry IDs, the authors utilize a semantic segmentation approach with three distinct pixel classes:
- Berry: The interior pixels of the fruit.
- Edge: A thin boundary (2-3 pixels wide) surrounding each berry.
- Background: All non-berry elements, including leaves, stems, and sky.
By training the network to recognize an explicit "edge" class, the system creates a natural separator between touching berries, allowing them to be identified as individual objects during post-processing.
The Pipeline
The researchers employed a lightweight MobileNetV2 backbone paired with a DeepLabV3 decoder. This architecture balances high performance with the efficiency required for potential deployment on mobile field hardware. To maintain the resolution necessary for detecting small berries, images are processed in overlapping patches.
Post-processing involves a connected component algorithm to identify individual berry candidates from the generated masks. Geometric filters are then applied to discard "false berries" (such as leaf edges or shadows) based on their roundness and axis ratios.
Experimental Setup and Datasets
Data was collected using the Phenoliner, a modified grapevine harvester equipped with calibrated stereo cameras and artificial lighting to ensure consistent image quality regardless of ambient light conditions.
The study evaluated the system across different grape varieties (Riesling, Regent, and Felicia) and two distinct vine training systems:
- Vertical Shoot Positioned (VSP): A tidy system where vines are managed to keep grapes clearly visible.
- Semi Minimal Pruned Hedges (SMPH): A bushier system with a thicker canopy that often occludes the fruit.
Results and Discussion
The system's performance was highly dependent on the vine architecture. In VSP systems, the model achieved a 94.0% detection accuracy. In the more challenging SMPH systems, accuracy dropped to 85.6% due to increased leaf occlusion.
Key findings include:
- The "Edge" Class Effectiveness: The inclusion of the edge class allowed for successful separation of berries in dense clusters without the need for computationally expensive instance segmentation proposals.
- Geometric Filtering: Applying roundness filters reduced misclassifications by 4-5%, significantly improving the precision of the final count.
- Intersection over Union (IoU): The 'berry' class achieved an IoU of approximately 75-76%, indicating high spatial accuracy for such small objects.
Conclusion and Future Work
This research demonstrates that semantic segmentation with an auxiliary edge class is a highly effective strategy for high-density object detection in agriculture. While the system excels at counting visible berries, leaf occlusion remains a primary limitation. Future work will focus on generalizing the model to a wider variety of grape colors and exploring methods to estimate total yield by accounting for hidden fruit.
Summary updated