PlantSAM: Towards Real-Time Plant Segmentation with Efficient Vision-Language Foundation Models

Daniel Petti, Changying Li, Alina Zare2025

Abstract

<b><sc>Abstract.</sc></b> Deep-learning-based semantic segmentation algorithms are very powerful and could be useful for advancing precision farming with row and specialty crops. However, this use case is limited by the difficulty of building large, general datasets. Consequently, new models are expensive to develop and may not generalize well to novel conditions. Recently, there has been a spate of interest in foundation models: large models trained on internet-scale data that have shown remarkable generalization capacity. One example is Segment Anything, which is able to segment objects based on simple visual prompts. However, in their most common form, these models may not be well-suited for agricultural tasks, as data scraped from the internet may not be applicable to agriculture, and the resulting models may be too large to run on edge devices. To address these issues, we develop an agriculture-specific foundation model. Using a large, unlabeled dataset of plant images, we extract embeddings with BioCLIP and use these to train a customized version of Segment Anything that can segment particular plant species. We then use knowledge distillation to create a small segmentation model that can run in real-time on an edge device and investigate its effectiveness for crop/weed segmentation. This model can achieve 73% average IOU while running at 12 frames per second. Overall, we demonstrate the feasibility of customized foundation models for precision agriculture tasks.
BibTeX
@misc{petti2025plantsam,
  author = {Daniel Petti and Changying Li and Alina Zare},
  title = {{PlantSAM: Towards Real-Time Plant Segmentation with Efficient Vision-Language Foundation Models}},
  year = {2025},
  doi = {10.13031/aim.202500547},
}

Loading related content...

Figure