Abstract
Accurate yield estimation is a critical component of vineyard management, yet traditional manual sampling methods are labor-intensive and often inaccurate. This paper introduces ROLS (Robust Object-level SLAM), a specialized pipeline designed for real-time grape counting and localization in challenging agricultural environments. By integrating deep learning for instance segmentation with classical 3D geometry for sphere fitting, ROLS treats grape clusters as robust geometric landmarks. Experimental results from a commercial vineyard demonstrate a 0.977 F1 score for fruit counting and centimeter-level localization accuracy, even under dynamic conditions such as wind and foliage movement.
Introduction
In viticulture, knowing the precise yield distribution across a vineyard allows growers to optimize irrigation, labor allocation, and sales forecasting. However, automating this process with mobile robots is notoriously difficult. Standard Simultaneous Localization and Mapping (SLAM) algorithms often fail in vineyards due to repetitive textures, shifting lighting, and dynamic elements like wind-blown leaves. ROLS addresses these challenges by moving beyond pixel-level tracking to object-level landmarks, specifically modeling grape clusters as geometric spheres that remain consistent regardless of lighting or appearance changes.
Methodology
The ROLS pipeline integrates deep learning with geometric refinement to create a robust mapping and counting system.
- Detection and Segmentation: The system employs Mask R-CNN on stereo images to perform 2D instance segmentation. These masks are projected into 3D space using disparity maps to generate a point cloud.
- Geometric Refinement via SVD: To distinguish grapes from other vegetation, Singular Value Decomposition (SVD) is applied to the local neighborhood of 3D points. By analyzing eigenvalues, the system classifies structures as isotropic (grapes), linear (branches), or planar (leaves).
- Sphere Fitting: Confirmed grape clusters are modeled as mathematical spheres using the M-estimator SAmple Consensus (MSAC) algorithm.
- Object-Level SLAM: Instead of aligning thousands of noisy points, the SLAM module uses these fitted spheres as landmarks. A point-to-plane Iterative Closest Point (ICP) algorithm estimates the camera's 6-DOF pose by matching spheres across consecutive frames. This approach significantly reduces data complexity and improves robustness against environmental noise.
Experimental Setup
Data was collected in Delano, California, using a specialized field vehicle designed for agricultural data acquisition.
The hardware setup included two 9MP PointGrey cameras and a leaf blower mounted to push foliage aside, revealing occluded fruit. The dataset covered over 20 vineyard rows, each approximately 187 meters long, containing roughly 70-80 vines per row. Ground truth for counting was established through manual image annotation to provide a benchmark for precision and recall metrics.
Results and Discussion
ROLS demonstrated exceptional performance in both counting and localization. The system achieved an F1 score of 0.977, with a precision of 0.9662 and a recall of 0.9881. Despite the long trajectories (187m), localization error remained remarkably low at approximately 20cm, significantly outperforming standard GPS-only solutions in these environments.
The use of geometric primitives (spheres) proved highly effective. While a grape's visual appearance may fluctuate with solar position and shadows, its spherical geometry remains constant. Furthermore, representing clusters as spheres (center and radius) provides massive map compression, enabling efficient real-time processing and making the system immune to many lighting and texture issues that break traditional feature tracking.
Conclusion
ROLS provides a robust solution for automated yield estimation in vineyards. By combining deep learning with geometric "common sense," the system overcomes the traditional pitfalls of agricultural SLAM. Future work will explore adapting the model for non-spherical fruit varieties and integrating GPS data to overlay these high-resolution grape maps onto satellite imagery for estate-wide yield distribution analysis.
Reference: Nellithimaru, A. K., & Kantor, G. A. "ROLS : Robust Object-level SLAM for grape counting." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, 2019.
Summary updated