Skip to content

Code repository for the poster "A Transformer-based Model for Plant Cell Semantic Segmentation"

Notifications You must be signed in to change notification settings

alcazar90/plant-segmentation

Repository files navigation

 SegPlantFormer 🌱🔬

A Transformer-Based Model for Plant Semantic Segmentation 


[EVIC23 Poster] [W&B blogpost] [Usage]

About this project;

With the advent of climate change and a growing population, food security will be a pressing issue in the coming years. To stay ahead, we need tools that help us fully understand the complex processes and functions of specific genes in plant cell biology, and how these genes influence plant growth and morphology. This requires the examination of countless cells or individual plants, especially given the variability in cellular behavior, which becomes critical when studying anomalies or emerging patterns that affect normal cell function and morphology. This task is challenging for individual cell analyses, even with technological advancements. Therefore, we introduce SegPlantFormer, a deep-learning model for high-content microscopy data analysis. Our approach enhances accuracy and mitigates manual biases by automating segmentation and classification. This is crucial for advancing our understanding of plant cell biology. Our focus is on fine-tuning the model’s ability to establish a robust thresholding method, allowing it to differentiate between living and non-living plants. SegPlantFormer surpasses traditional methods by accurately segmenting microscope images and distinguishing between dead and alive plants. Additionally, we introduce a unique plant cell biology dataset with manually annotated masks..

Fig. 2 - Data processing diagram

Figure 1. Workflow for Creating a Labeled Image Dataset of P. patens for Semantic Segmentation in Deep Learning Model Training. The workflow begins with automatic image acquisition using a Zeiss microscope, where images of Physcomitrium patens are captured as tiles (10x10). Images are then processed for labeling using the open-source software, Label Studio. Through manual semantic segmentation, each image is annotated with three distinct categories: Normal, Normal cut, and Noise. The annotated labels are generated as masks corresponding to specific image IDs. These labeled datasets, containing both the images and their respective masks, serve as input for training the segmentation model

Fig. 2 - Data processing diagram

Figure 2.Dataset collection process. The results of the laboratory experiments are represented by a high-resolution stacked image (25036x18954 pixels) captured using microscopic imaging, shown as raw data. The white squares labeled (A) and (B) indicate the regions from which samples were extracted. Smaller image patches (2519x1895 pixels) extracted from these samples, labeled (A1) and (B1), serve as the input for the model (denoted X). Masks with semantic information, such as (A2) and (B2), are manually created to annotate the plant shapes with corresponding alive/dead cell labels, forming the target y. Note that each image may contain multiple masks depending on the number of entities present within the image patches.

Fig. 5 - Val images

Figure 5. Test set observations, displayed in columns from left to right: input image patches and ground truth masks used for model supervision (X and y in Figure 2). Then, the predicted masks from Baseline, HumanExpert, and SegPlantFormer. The top two rows show CWT examples, where SegPlantFormer produces masks similar to HumanExpert, with IoU performance highlighted within the mask images. The bottom rows show Dead examples, where SegPlantFormer also demonstrates results comparable to HumanExpert. Each input image is labeled with a corresponding ID, matching the results reported in Table~\ref{tab:result-by-testset-obs}.

Get Started

TBC

Citing

@misc{SegPlantFormer,
  authors = {Alcázar, Cristóbal}, {Chocano, Edward}, {Flores, Ricardo}, {Vidali, Luis}
  title = {SegPlantFormer: A Transformer-based Model for Plant Semantic Segmentation},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/alcazar90/plant-segmentation}},
}

About

Code repository for the poster "A Transformer-based Model for Plant Cell Semantic Segmentation"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published