PhytoSynth: Leveraging Multi-modal Generative Models for Crop Disease Data Generation with Novel Benchmarking and Prompt Engineering Approach
Nitin Rai, Arnold W. Schumann, Nathan Boyd
TL;DR
The paper tackles the challenge of assembling large crop-disease image datasets by proposing a multi-modal text-to-image diffusion pipeline based on Stable Diffusion variants (SDXL, SD3.5M, SD3.5L) and augmenting them with Dreambooth and LoRA fine-tuning. It introduces a novel computational benchmarking framework for agricultural generative models, evaluating memory, power, energy, and perceptual quality (LPIPS) while generating 500 images from a small field-sample set in about 1.5 hours. SD3.5M emerges as the most efficient variant, achieving competitive perceptual similarity (LPIPS ~0.34) with markedly lower resource usage than SDXL and SD3.5L. The study also emphasizes careful dataset construction, prompt engineering, and the need for domain-specific vocabulary in prompts, offering practical guidance for resource-constrained researchers and establishing benchmarks to compare future agricultural GMs.
Abstract
Collecting large-scale crop disease images in the field is labor-intensive and time-consuming. Generative models (GMs) offer an alternative by creating synthetic samples that resemble real-world images. However, existing research primarily relies on Generative Adversarial Networks (GANs)-based image-to-image translation and lack a comprehensive analysis of computational requirements in agriculture. Therefore, this research explores a multi-modal text-to-image approach for generating synthetic crop disease images and is the first to provide computational benchmarking in this context. We trained three Stable Diffusion (SD) variants-SDXL, SD3.5M (medium), and SD3.5L (large)-and fine-tuned them using Dreambooth and Low-Rank Adaptation (LoRA) fine-tuning techniques to enhance generalization. SD3.5M outperformed the others, with an average memory usage of 18 GB, power consumption of 180 W, and total energy use of 1.02 kWh/500 images (0.002 kWh per image) during inference task. Our results demonstrate SD3.5M's ability to generate 500 synthetic images from just 36 in-field samples in 1.5 hours. We recommend SD3.5M for efficient crop disease data generation.
