Deep Leaf Segmentation Using Synthetic Data

Daniel Ward, Peyman Moghadam, Nicolas Hudson

Introduction

In sustainable agriculture, plant phenotyping—the measurement of physical traits such as leaf area and growth rates—is critical for identifying resilient crop varieties. Scaling these measurements requires automated computer vision models capable of leaf instance segmentation. Unlike simple semantic segmentation, instance segmentation must precisely outline every individual leaf, a task complicated by overlapping foliage and diverse leaf shapes.

The primary obstacle to deploying state-of-the-art architectures like Mask-RCNN in this domain is the "data desert." High-quality datasets for plant phenotyping, such as the CVPPP dataset, often contain only a few hundred labeled images due to the prohibitive cost and effort of manual pixel-level annotation.

Methodology

To overcome data scarcity, researchers developed a framework using a synthetic data pipeline built in Blender. This "virtual nursery" generates thousands of perfectly annotated images without manual intervention.

Synthetic Data Pipeline

The pipeline follows a multi-step process:

  1. The Inspiration Leaf: A single 3D mesh serves as the geometric foundation.
  2. Procedural Deformation: Each leaf is randomly scaled, rotated, and positioned to mimic the natural rosette growth pattern of Arabidopsis plants.
  3. Domain Randomization: To ensure the model generalizes to real-world conditions, textures and lighting are randomized. The most successful approach, "Synthetic-leaf," assigns a unique green texture to every individual leaf on a plant.
The synthetic data generation pipeline illustrating the transformation from a 3D mesh to a textured and segmented training instance.

Model Architecture

The researchers employed Mask-RCNN with a ResNet101 backbone. The model was initialized with weights from the COCO dataset and fine-tuned on a balanced 50/50 mixture of real and synthetic images.

Datasets and Evaluation

The model was trained and tested using:

  • Real Data: The CVPPP Leaf Segmentation Challenge (LSC) datasets (A1–A4), with the primary training set (A1) containing only 128 images.
  • Synthetic Data: A novel dataset of 10,000 procedurally generated images featuring various growth stages.
  • Evaluation Metrics: Performance was measured using the Symmetric Best Dice (SBD) score across five subsets (A1–A5) to test generalization across species and imaging conditions.

Results and Discussion

The "Synthetic+Real" approach achieved a state-of-the-art 90.0% SBD score on the CVPPP A1 test set. Across all five test datasets, the model maintained an 81% mean performance, demonstrating robust generalization.

Real-world plant images (a, c) alongside the instance segmentation masks (b, d) generated by the model.

Key Insights

  • Geometric Diversity: The variety of leaf positions and overlaps in the synthetic dataset proved more valuable than photorealism. This diversity allowed the model to learn the fundamental "concept" of a leaf.
  • Texture Randomization: Per-leaf texture randomization was critical. However, extreme abstraction (using non-plant textures) degraded performance, indicating a need for textural relevance.
  • Artifact Rejection: Models trained on real data often misidentify lab markers as leaves. The synthetic-trained model learned to ignore these artifacts as they were absent from the virtual training environment.

Conclusion and Future Work

While highly effective for Arabidopsis, the model faced a "species gap" when applied to Tobacco plants, which have broader, differently overlapping leaves. This suggests that the single "inspiration leaf" model lacks sufficient geometric flexibility for all plant types.

Future research will explore the use of L-Systems to simulate more complex plant architectures and incorporate multi-modal sensing (Thermal, RGB-D). Additionally, adding leaf vein structures to synthetic textures may prevent over-segmentation along the midrib.

Summary updated

BibTeX
@inproceedings{ward2018deep,
  author = {Daniel Ward and Peyman Moghadam and Nicolas Hudson},
  title = {{Deep Leaf Segmentation Using Synthetic Data}},
  booktitle = {BMVC},
  year = {2018},
}
Figure