Leveraging Vision Language Models for Specialized Agricultural Tasks

Muhammad Arbab Arshad, Talukder Zaki Jubery, Tirtho Roy, Rim Nassiri, Asheesh K. Singh, Arti Singh, Chinmay Hegde, Baskar Ganapathysubramanian, Aditya Balu, Adarsh Krishnamurthy, Soumik Sarkar

Introduction

In the realm of agriculture, "phenotyping"—the visual inspection of plants to identify stressors like drought, pests, or disease—is a cornerstone of food security. However, developing AI models for these tasks is exceptionally challenging. Unlike general object recognition, identifying specific conditions like Fusarium wilt in chickpeas requires specialized expertise from pathologists and entomologists. This necessity creates a significant data bottleneck, as high-quality, expert-annotated agricultural datasets are both expensive and time-consuming to produce.

This research introduces AgEval, a benchmark designed to evaluate whether the current generation of general-purpose Vision Language Models (VLMs), such as GPT-4o and Claude 3.5, can leverage their broad reasoning capabilities to solve niche agricultural problems with minimal specific guidance.

The AgEval Benchmark

The researchers developed a comprehensive framework to test six prominent VLMs: GPT-4o, Claude 3.5 Sonnet, Claude 3 Haiku, Gemini 1.5 Pro, Gemini 1.5 Flash, and the open-source LLaVA v1.6 34B. The evaluation spans three primary task types:

  1. Identification (I): Determining the specific type of stress (e.g., distinguishing between Bacterial Blight and Brown Spot).
  2. Classification (C): Categorizing stress into severity levels (e.g., Low, Medium, High).
  3. Quantification (Q): Numerically measuring stress (e.g., calculating the percentage of diseased leaf area).
Overview of the AgEval framework and its diverse agricultural tasks.

The AgEval benchmark comprises 12 diverse subsets of existing open-source agricultural datasets, covering seed morphology (Durum Wheat, Soybean Seeds), foliar stress (Mango Leaf Disease, Bean Leaf Lesions, Soybean Diseases), pests and weeds (Dangerous Insects, DeepWeeds), and severity/extent (Yellow Rust 19, Fusarium 22, IDC Soybean, InsectCount, and PlantDoc). Each subset was standardized to 100 images with an even class distribution to ensure a fair evaluation.

Key Findings: Rapid Adaptability and Relevance

A central discovery of the study is the "fast learning" capability of VLMs in the agricultural domain. The models demonstrated remarkable few-shot adaptability; for instance, moving from 0-shot (no examples) to 8-shot (eight examples) allowed GPT-4o’s identification F1 score to jump from 46.24% to 73.37%.

The researchers also introduced the "Bullseye Shot" analysis, which revealed that including just one example from the exact same class as the target image in the few-shot prompt improved F1 scores by an average of 15.38%. Conversely, examples from different classes had negligible impact, suggesting that these models are robust to "noise" within the prompt and can effectively pinpoint relevant information.

Performance trends (F1 and NMAE) across different shot counts for various agricultural datasets.

Performance Analysis

The evaluation revealed that no single model dominated all categories, but rather they exhibited complementary strengths:

  • Top Performers: GPT-4o achieved the highest Mean Reciprocal Rank (MRR) for 8-shot identification (0.81). Gemini 1.5 Pro excelled in 0-shot identification scenarios.
  • Quantification Accuracy: In measuring disease extent (using the NMAE metric), Claude 3.5 Sonnet and GPT-4o performed similarly, with Claude achieving a low NMAE of 15.59% on the PlantDoc dataset.
  • Consistency: GPT-4o proved to be the most "uniform" model, maintaining the lowest average Coefficient of Variation (26%), indicating stable performance across different types of plant stress. In contrast, smaller models like Claude 3 Haiku showed significantly higher variability (58%).

Despite these successes, performance disparities were evident. Models struggled with the "Soybean Diseases" dataset, likely due to low-resolution source images, highlighting that VLM performance remains tethered to the quality of visual input.

Discussion and Future Work

While VLMs show great promise for low-data scenarios, several hurdles remain for real-world deployment. There is still a performance gap between general-purpose VLMs and specialized "state-of-the-art" models trained on massive, task-specific datasets. Furthermore, the open-source LLaVA model’s performance unexpectedly deteriorated as more examples were added, indicating that its in-context learning capabilities currently lag behind proprietary counterparts.

Future research will focus on fine-tuning strategies and exploring higher shot counts to determine if VLMs can eventually match or exceed the precision of traditional specialized agricultural AI. Additionally, practical concerns such as computational cost, latency, and data privacy in remote farming environments must be addressed before these models can be deployed at scale.

Summary updated

BibTeX
@inproceedings{arshad2025leveraging,
  author = {Muhammad Arbab Arshad and Talukder Zaki Jubery and Tirtho Roy and Rim Nassiri and Asheesh K. Singh and Arti Singh and Chinmay Hegde and Baskar Ganapathysubramanian and Aditya Balu and Adarsh Krishnamurthy and Soumik Sarkar},
  title = {{Leveraging Vision Language Models for Specialized Agricultural Tasks}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00616},
}
Figure