[Paper Review] Leaf Only SAM: A Segment Anything Pipeline for Zero-Shot Automated Leaf Segmentation
This paper proposes Leaf Only SAM, a zero-shot pipeline that leverages the Segment Anything Model (SAM) with post-processing to automatically segment potato leaves without requiring any training data or annotations. Despite achieving lower precision (60.3) and recall (63.2) than a fine-tuned Mask R-CNN (74.7 precision, 78.7 recall), the method demonstrates strong potential for plant phenotyping by eliminating the need for costly data annotation.
Segment Anything Model (SAM) is a new foundation model that can be used as a zero-shot object segmentation method with the use of either guide prompts such as bounding boxes, polygons, or points. Alternatively, additional post processing steps can be used to identify objects of interest after segmenting everything in an image. Here we present a method using segment anything together with a series of post processing steps to segment potato leaves, called Leaf Only SAM. The advantage of this proposed method is that it does not require any training data to produce its results so has many applications across the field of plant phenotyping where there is limited high quality annotated data available. We compare the performance of Leaf Only SAM to a Mask R-CNN model which has been fine-tuned on our small novel potato leaf dataset. On the evaluation dataset, Leaf Only SAM finds an average recall of 63.2 and an average precision of 60.3, compared to recall of 78.7 and precision of 74.7 for Mask R-CNN. Leaf Only SAM does not perform better than the fine-tuned Mask R-CNN model on our data, but the SAM based model does not require any extra training or annotation of our new dataset. This shows there is potential to use SAM as a zero-shot classifier with the addition of post processing steps.
Motivation & Objective
- To develop a zero-shot leaf segmentation pipeline that avoids the need for annotated training data in plant phenotyping.
- To evaluate whether SAM, combined with post-processing, can effectively isolate leaf regions without fine-tuning.
- To compare the performance of the proposed method against a fine-tuned Mask R-CNN on a novel potato leaf dataset.
- To demonstrate the feasibility of using foundation models like SAM as zero-shot classifiers for specific biological segmentation tasks.
Proposed method
- The method uses the pre-trained Segment Anything Model (SAM) to generate masks for all objects in an image, including leaves.
- A post-processing pipeline is applied to filter and retain only the masks corresponding to leaf regions.
- The filtering process relies on geometric and morphological features such as area, aspect ratio, and contour shape to distinguish leaves from other objects.
- The pipeline is applied end-to-end to images of potato plants without any model fine-tuning or additional annotations.
- The approach leverages SAM’s zero-shot generalization capability to segment leaves directly from raw images.
- The final output is a binary mask identifying only leaf regions, suitable for downstream phenotyping applications.
Experimental results
Research questions
- RQ1Can SAM be effectively adapted for zero-shot leaf segmentation using only post-processing, without any fine-tuning or labeled data?
- RQ2How does the performance of the SAM-based pipeline compare to a fine-tuned Mask R-CNN on a novel potato leaf dataset?
- RQ3What morphological and geometric features are most effective for isolating leaf masks from SAM’s full-instance segmentation output?
- RQ4To what extent can foundation models like SAM serve as zero-shot classifiers in plant phenotyping when combined with domain-specific post-processing?
- RQ5Does the absence of training data significantly impact segmentation accuracy in leaf-specific tasks?
Key findings
- Leaf Only SAM achieved an average recall of 63.2 and average precision of 60.3 on the evaluation dataset.
- The fine-tuned Mask R-CNN model outperformed Leaf Only SAM with 78.7 recall and 74.7 precision on the same dataset.
- Despite lower performance metrics, the SAM-based method required no training data or annotations, highlighting its zero-shot advantage.
- The post-processing pipeline successfully isolated leaf regions by leveraging shape and size constraints from SAM’s initial segmentation masks.
- The results confirm that SAM can be repurposed as a zero-shot classifier for leaf segmentation with minimal domain-specific adaptation.
- The method shows strong potential for applications in plant phenotyping where annotated data is scarce or unavailable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.