A deep learning generative model approach for image synthesis of plant leaves

Alessandro Benfenati, Davide Bolzi, Paola Causin, R. Oberti

Abstract

Generative Deep Learning (DL) approaches offer a potential paradigm shift by providing low-cost, meaningful synthetic samples. This study focuses on generating synthetic leaf images for smart agriculture applications, though the methodology is broadly applicable to any computer-aided vegetation representation. The proposed Leaf-to-Leaf (L2L) approach generates synthetic samples with significant qualitative and quantitative resemblance to real leaves.

Introduction: The Annotation Bottleneck

The efficacy of Convolutional Neural Networks (CNNs) in identifying pests or diseases is often hampered by "data hunger." Reliable performance requires thousands of precisely annotated images, the collection and manual labeling of which are labor-intensive and expensive in agricultural contexts. While standard data augmentation (e.g., rotation, flipping) is common, it fails to introduce the structural or biological variability necessary for robust generalization. The L2L framework addresses this by "imagining" new, biologically plausible leaves rather than merely copying existing data.

Methods: The Leaf-to-Leaf (L2L) Framework

The L2L algorithm decomposes leaf synthesis into two distinct stages: geometry generation and texture colorization.

1. Skeleton Generation

The model employs a Residual Variational Autoencoder (ResVAE) to handle geometry. It processes binarized "skeletons"—images capturing only the leaf's outline and primary vein patterns—and compresses them into a 32-dimensional latent space. By sampling from this space, the ResVAE generates novel leaf skeletons that adhere to the mathematical patterns of the training species.

The ResVAE architecture used to generate synthetic leaf skeletons by mapping real skeletons to a latent space.

2. Colorization and Texture

Synthetic skeletons are subsequently processed by a Pix2pix framework (a conditional Generative Adversarial Network, or cGAN). This component learns the mapping between a skeleton and a fully textured leaf, reproducing realistic color distributions and venation details in both RGB and Red, Green, Near-Infrared (RGNIR) formats.

Evaluation and Results

The study utilized grapevine and cucumber leaf datasets to validate the approach.

Quantitative Realism

To measure quality, the authors used an anomaly detection metric. An anomaly detector trained on real leaves achieved an Area Under the Curve (AUC) of 0.25 when tasked with identifying synthetic leaves. In this context, a lower score indicates higher quality, as it signifies the detector struggled to distinguish synthetic samples from real ones.

A sample leaf image illustrating the realistic biological structure and texture achieved by the L2L framework.

Downstream Utility

In a case study involving cucumber leaves infected with powdery mildew, a U-net segmentation model was trained using synthetic data. This approach solved the "cold-start" problem where insufficient real data existed for initial training. The resulting model achieved over 94% accuracy in identifying disease spots.

Conclusion and Future Outlook

The L2L framework demonstrates that separating geometry from texture is a viable strategy for high-fidelity plant synthesis. Current limitations include a resolution cap of 256x256 pixels and sensitivity to skeleton quality. Future research will focus on increasing resolution, reducing artifacts, and expanding the model to handle multiple plant species simultaneously.

Summary updated

BibTeX
@inproceedings{benfenati2022deep,
  author = {Alessandro Benfenati and Davide Bolzi and Paola Causin and R. Oberti},
  title = {{A deep learning generative model approach for image synthesis of plant leaves}},
  booktitle = {PLoS},
  year = {2022},
  doi = {10.1371/journal.pone.0276972},
}
Figure