Vine2Graph - An algorithm for defining 2D grapevine structures
A major challenge in precision viticulture consists in translating structural variability between individual grapevines into information that can guide management operations. Grapevine pruning is a complex task that requires an explicit representation of plant structure to support the application of pruning rules. This work proposes Vine2Graph, a graph-based framework that converts grapevine node detections and segmented structural components obtained from 2D images into a structured representation of the visible grapevine. The resulting rooted tree graph preserves the spatial and semantic relationships between grapevine components, including the trunk, canes, cordons and spurs, and provides an intermediate representation for downstream robotic pruning modules. Cane geometry is further represented through parametric curves associated with graph edges, enabling a smooth approximation of cane trajectories. Vine2Graph is independent of the upstream perception method, provided that node detections and segmentation masks are available in the required format. A structural reconstruction evaluation performed on 15 grapevines resulted in an overall node assignment accuracy of 97.78%, a segment connection accuracy of 99.13% and a full cane completeness of 83.80%. The parametric cane representation achieved an overall mean mask containment rate of 99.50%. Across the evaluated grapevine examples, mean processing times ranged from 42 to 175ms, corresponding to graph-generation rates of approximately 6 to 24Hz.
Authors
- Mário Cunha (ORCID: https://orcid.org/0000-0002-8299-324X)
- Francisco Oliveira
- José Boaventura Cunha
- Filipe N. Santos
- Daniel Queirós da Silva
Institutions
- University of Trás-os-Montes and Alto Douro (PT)
- Universidade do Porto (PT)
- Institute for Systems Engineering and Computers (PT)
- INESC TEC (PT)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-23
- DOI
- https://doi.org/10.21203/rs.3.rs-11689641/v1
- Primary Topic
- Smart Agriculture and AI
- Type
- preprint