AgriPath: A Systematic Exploration of Architectural Trade-offs for Crop Disease Classification
Organizations: School of Mathematical and Computer Sciences Heriot-Watt University · Institute for Language, Cognition and Computation, School of Informatics University of Edinburgh
Abstract
Reliable crop disease detection requires models that perform consistently across diverse acquisition conditions, yet existing evaluations often focus on single architectural families or lab-generated datasets. This work presents a systematic empirical comparison of three model paradigms for fine-grained crop disease classification: Convolutional Neural Networks (CNNs), contrastive Vision-Language Models (VLMs), and generative VLMs. To enable controlled analysis of domain effects, we introduce AgriPath-LF16, a benchmark of 111k images spanning 16 crops and 41 diseases with explicit separation between laboratory and field imagery, alongside a balanced 30k subset for standardised training and evaluation. We train and evaluate all models under unified protocols across full, lab-only, and field-only training regimes using macro-F1 and Parse Success Rate (PSR) to account for generative reliability (i.e., output parsability measured via PSR). The results reveal distinct performance profiles: CNNs achieve the highest accuracy on in-domain imagery but exhibit pronounced degradation under domain shift; contrastive VLMs provide a robust and parameter-efficient alternative with competitive cross-domain performance; generative VLMs demonstrate the strongest resilience to distributional variation, albeit with additional failure modes stemming from free-text generation. These findings highlight that architectural choice should be guided by deployment context rather than aggregate performance alone.
Figures & tables
| PSR (%) | Macro-F1 | Macro-Precision | Macro-Recall | |
| Random | – | 1.9 | 1.9 | 1.9 |
| Majority | – | 0.07 | 0.03 | 1.5 |
| ResNet-50 | – | 91.0 | 92.2 | 90.7 |
| ConvNeXt-Tiny | – | 92.9 | 93.2 | 93.0 |
| SigLIP-ZS | – | 0.2 | 0.2 | 0.7 |
| CLIP/L/14-ZS | – | 14.3 | 19.8 | 19.0 |
| PSR (%) | F1(Combined) | F1(Lab) | F1(Field) | |
| Trained on full dataset | ||||
| ResNet-50 | – | 91.0 | 97.2 | 69.9 |
| ConvNeXt-Tiny | – | 92.9 | 97.1 | 74.6 |
| SigLIP | – | 90.0 | 93.1 | 72.9 |
| CLIP/L/14 | – | 91.1 | 95.6 | 74.5 |
| SmolVLM-500M | 100.0 | 87.9 | 92.9 | 68.7 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset Name | Source | Crop | # Diseases | # Samples | Citation/Link |
| New Bangladeshi Crop Disease | Lab | Rice | 4 | 4,078 | Moin (2023) |
| PlantVillage | Lab | Apple | 4 | 4,645 | G. & J. (2019) |
| Blueberry | 1 | 1,502 | |||
| Cherry | 2 | 2,502 | |||
| Corn | 4 | 4,345 | |||
| Grape | 4 | 4,639 |
| Total Params | Trainable Params | Ratio (%) | |
| Convolutional Neural Networks | |||
| ResNet-50 | 23.6M | 15.1M | 63.98 |
| ConvNeXt-Tiny | 27.9M | 14.3M | 51.25 |
| Contrastive Vision-Language Models | |||
| SigLIP | 203M | 50k | 0.024 |
| CLIP-L/14 | 427M | 50k | 0.012 |
| Batch Size | Learning Rate | F1(Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 91.0 | 97.2 | 69.9 |
| 16 | 2e-4 | 89.3 | 95.5 | 66.1 |
| 16 | 5e-4 | 88.7 | 94.8 | 69.3 |
| 32 | 1e-4 | 90.7 | 94.0 | 70.0 |
| 32 | 2e-4 | 90.0 | 93.7 | 69.3 |
| 32 | 5e-4 | 88.8 | 91.4 | 63.8 |
| Batch Size | Learning Rate | F1(Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 56.4 | 96.7 | 4.3 |
| 16 | 2e-4 | 55.4 | 94.4 | 4.6 |
| 16 | 5e-4 | 55.7 | 96.8 | 3.6 |
| 32 | 1e-4 | 56.0 | 97.0 | 4.0 |
| 32 | 2e-4 | 55.6 | 95.4 | 4.8 |
| 32 | 5e-4 | 56.3 | 96.3 | 3.5 |
| Batch Size | Learning Rate | F1 (Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 37.1 | 13.4 | 73.2 |
| 16 | 2e-4 | 35.4 | 11.0 | 69.0 |
| 16 | 5e-4 | 36.7 | 11.8 | 69.5 |
| 32 | 1e-4 | 40.1 | 15.3 | 76.7 |
| 32 | 2e-4 | 33.8 | 8.4 | 68.5 |
| 32 | 5e-4 | 34.4 | 11.4 | 68.3 |
| Batch Size | Learning Rate | F1(Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 92.9 | 97.1 | 74.6 |
| 16 | 2e-4 | 92.1 | 96.5 | 71.9 |
| 16 | 5e-4 | 92.6 | 97.0 | 73.6 |
| 32 | 1e-4 | 93.5 | 97.3 | 76.7 |
| 32 | 2e-4 | 92.4 | 97.3 | 70.5 |
| 32 | 5e-4 | 91.6 | 95.2 | 69.2 |
| Batch Size | Learning Rate | F1(Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 56.9 | 97.5 | 6.3 |
| 16 | 2e-4 | 56.7 | 97.1 | 6.3 |
| 16 | 5e-4 | 56.2 | 96.9 | 5.8 |
| 32 | 1e-4 | 57.9 | 98.1 | 6.5 |
| 32 | 2e-4 | 56.5 | 96.3 | 7.6 |
| 32 | 5e-4 | 56.0 | 96.2 | 6.0 |
| Batch Size | Learning Rate | F1(Combined) | F1(Lab) | F1(Field) |
|---|---|---|---|---|
| 16 | 1e-4 | 40.1 | 12.8 | 78.8 |
| 16 | 2e-4 | 39.2 | 13.8 | 74.4 |
| 16 | 5e-4 | 37.6 | 12.4 | 73.4 |
| 32 | 1e-4 | 40.1 | 12.0 | 79.7 |
| 32 | 2e-4 | 41.7 | 14.3 | 80.0 |
| 32 | 5e-4 | 38.8 | 13.8 | 74.9 |
| PSR (%) | F1 | Precision | Recall | |
| SmolVLM-500M-ZS-Pure | 0.2 | 0 | 0 | 0 |
| SmolVLM-500M-ZS-Context | 23.8 | 0.2 | 0.6 | 0.4 |
| SmolVLM-500M-ZS-MCQ | 0 | 0 | 0 | 0 |
| Qwen2.5-VL-3B-ZS-Pure | 90.7 | 4.2 | 5.8 | 6.3 |
| Qwen2.5-VL-3B-ZS-Context | 19.1 | 2.5 | 18.9 | 2.0 |
| Qwen2.5-VL-3B-ZS-MCQ | 21.3 | 24.6 | 66.2 | 17.1 |
| Parameters | Distribution | Range |
|---|---|---|
| Learning Rate | Uniform | to |
| LoRA Rank | Categorical | 32, 64, 128 (Qwen3) | 64, 128 (Qwen7) |
| Weight Decay | Uniform | to |
| Parameters | Distribution | Range |
|---|---|---|
| Learning Rate | Uniform | to |
| Weight Decay | Uniform | to |
| LoRA Rank | Fixed | 128 |
| Sweep Name | Regime | Search Space |
|---|---|---|
| Qwen3 | Full LoRA | Initial |
| Qwen3-LAB | Lab LoRA | Initial |
| Qwen3-FV | Frozen Vision | Refined |
| Qwen3-FIELD | Field LoRA | Refined |
| Qwen7 | Full LoRA | Initial |
| Qwen7-LAB | Lab LoRA | Initial |
Plant Disease Classification
Plant disease classification uses image and sensor data to identify crop diseases and support timely, targeted agricultural intervention.
See all 58 papers