An Automated Image Segmentation, Annotation, and Training Framework of Plant Leaves by Joining the SAM and the YOLOv8 Models
Recognizing plant leaves in complex agricultural scenes is challenging due to high manual annotation costs and real-time detection demands. Current deep learning methods, such as YOLOv8 and SAM, face trade-offs between annotation efficiency and inference speed. This paper proposes an automated framework integrating SAM for offline semantic segmentation and YOLOv8 for real-time detection. SAM generates pixel-level leaf masks, which are converted to YOLOv8-compatible bounding boxes, eliminating manual labeling. Experiments on three plant species show the framework achieves 87% detection accuracy and 0.03 s per image inference time, reducing annotation labor by 100% compared to traditional methods. The proposed pipeline balances high-quality annotation and lightweight detection, enabling scalable smart agriculture applications.
Authors
- L. C. Zhao
- Liping Chen (ORCID: https://orcid.org/0000-0002-3102-0640)
- Kenneth R. Olivier
Institutions
- Ministry of Education of the People's Republic of China (CN)
- Tarim University (CN)
- Xinjiang University (CN)
Publication Details
- Journal
- Agronomy
- Published
- 2025-04-29
- DOI
- https://doi.org/10.3390/agronomy15051081
- Citations
- 3
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 5.25
Funders
- National Natural Science Foundation of China