Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Plant Bioinformatics

This article is part of the Research TopicInnovative Techniques for Precision Agriculture and Big DataView all 12 articles

AG-Vision: A Dual-Module Approach for Tomato Leaf Disease Diagnosis

Provisionally accepted
  • 1Khalifa University, Abu Dhabi, United Arab Emirates
  • 2Advanced Research and Innovation Center (ARIC), Khalifa University, Abu Dhabi, United Arab Emirates

The final, formatted version of the article will be published soon.

Timely diagnosis of tomato leaf diseases is crucial for precision agriculture. Existing convolutional neural network (CNN) methods excel at localized feature extraction but often struggle to capture the global contextual relationships necessary for robust, real-world diagnosis. We propose AG-Vision, a novel dual-module architecture that strategically fuses local and global visual context. The architecture leverages an EfficientNet-B4 backbone (DeepFolia) for high-fidelity local feature learning, which is seamlessly integrated with a Transformer encoder (VisiLeaf) to model complex global dependencies. Evaluated on the controlled PlantVillage dataset and the challenging field-condition PlantDoc dataset, AG-Vision achieves state-of-the-art performance with real-time efficiency. Specifically, it attained 99.97\% accuracy (F1 99.53\%) on PlantVillage and 96.97\% accuracy (F1 94.47\%) on PlantDoc, with an inference speed of approximately 25 ms per-image. Ablation studies confirm the necessity of both the CNN (DeepFolia) and Transformer (VisiLeaf) modules, positional encoding, and the optimized attention heads for peak performance. Grad-CAM visualizations qualitatively validate that the model correctly attends to disease symptoms. These results demonstrate that combining local and global feature extraction yields a highly accurate and efficient solution, enabling state-of-the-art tomato leaf disease classification suitable for edge deployment in precision agriculture.

Keywords: Tomato leaf diseases, deep learning, attention mechanisms, Leaf Disease Detection, precision agriculture, Hybridarchitecture, artificial intelligence

Received: 18 Jul 2025; Accepted: 16 Dec 2025.

Copyright: © 2025 Khan, Khan and Hussain. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Asim Khan

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.