Orchestrating segment anything models to accelerate segmentation annotation on agricultural image datasets
Increasingly many applications of machine vision and artificial intelligence (AI) can be observed in agriculture. Yet, high-quality training data remains a bottleneck in the development of many AI solutions, particularly for image segmentation. Therefore, ARAMSAM (agricultural rapid annotation module based on segment anything models) was developed, a user interface that orchestrates the pre-labelling capabilities of both the segment anything models (SAM 1, SAM 2) and conventional annotation tools. One <i>in silico</i> experiment on zero-shot performance of SAM 1 and SAM 2 on three unseen agricultural datasets and another experiment on hyperparameter optimization of the automatic mask generators (AMG) were conducted. In a user experiment, 14 agricultural experts applied ARAMSAM to quantify the reduction of annotation times. SAM 2 benefited greatly from hyperparameter optimization of its AMG. Based on ground-truth masks matched with predicted masks, the <i>F<sub>2</sub></i> -score of SAM 2 improved from 0.05 to 0.74, while that of SAM 1 was improved from 0.87 to 0.93. The user interaction time could be reduced to 2.1 s/mask on single images (SAM 1) and to 1.6 s/mask on image sequences (SAM 2) compared to polygon drawing (9.7 s/mask). This study demonstrates the potential of segment anything models as incorporated into ARAMSAM to significantly accelerate the process of segmentation mask annotation in agriculture and other fields. ARAMSAM will be released as open-source software (AGPL-3.0 license) at https://github.com/DerOehmer/ARAMSAM.
Authors
- Leon Hinrich Oehme (ORCID: https://orcid.org/0000-0002-1984-3193)
- Anthony S. Stein (ORCID: https://orcid.org/0000-0002-1786-1398)
- Zhangkai Wu (ORCID: https://orcid.org/0000-0001-5494-0768)
- Jonas Boysen (ORCID: https://orcid.org/0000-0002-3392-247X)
- Joachim Müller
Institutions
- University of Hohenheim (DE)
Publication Details
- Journal
- Frontiers in Artificial Intelligence
- Published
- 2026-01-22
- DOI
- https://doi.org/10.3389/frai.2025.1748468
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Deutsche Forschungsgemeinschaft
- Bundesministerium für Ernährung und Landwirtschaft
- Bundesamt für Landwirtschaft