Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleArticle metrics
Research Article · Open access · Published 7 February 2026

A Novel Deep Learning Approach for Tomato Leaf Disease Detection Using Optimized CNN Architecture

Sunil K. Vithalani1 & Vipul K. Dabhi1

Journal of Computer Science, Volume 22, Issue 1, pp. 47–60 · doi.org/10.3844/jcssp.2026.47.60

3,917 accesses1,068 downloads1 citations (Crossref)Journal metrics
Cite Check for updates

Abstract

Early disease detection in plants is essential for sustaining agricultural yield and guaranteeing food security. A comparative analysis of transformer-based and convolutional based deep learning models for classifying tomato leaf diseases is presented. Specifically, it examines the performance of a Vision Transformer (ViT), tested both in a form of scratch training setup and through transfer learning, against well-known CNN architectures such as Inception V3, VGG16, ResNet50, and a custom-designed lightweight CNN.  This is one of the few studies to rigorously benchmark ViT against CNNs in the context of agricultural disease detection using the PlantVillage dataset. The fine-tuned ViT model delivered the best results, achieving an accuracy of 95.53%, significantly outperforming all CNN counterparts. The lightweight CNN demonstrated strong performance with 93.12% accuracy, while offering clear benefits in terms of smaller model size and reduced computational cost making it well-suited for on-device or edge-level applications. Conversely, the ViT model trained from scratch underperformed due to dataset constraints, reinforcing the necessity of transfer learning for transformer architectures. Evaluation metrics included recall, accuracy, F1-score, and precision, which collectively illustrated the trade-off between high-capacity models and deployment feasibility. The main contribution of this work lies in introducing transformer-based learning into the plant pathology domain and the presentation of a scalable, low-computation alternative via lightweight CNNs. Future directions involve enlarging the dataset, integrating explainable AI techniques, and enabling real-time applications for precision agriculture.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Vithalani , S. K. & Dabhi, V. K. (2026). A Novel Deep Learning Approach for Tomato Leaf Disease Detection Using Optimized CNN Architecture. Journal of Computer Science, 22(1), 47–60. https://doi.org/10.3844/jcssp.2026.47.60

Licence
CC BY 4.0
Issue
Volume 22, Issue 1
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
A Novel Deep Learning Approach for Tomato Leaf Disease Detection Using Optimized CNN ArchitectureJournal of Computer Science · Volume 22, Issue 1 · pp. 47–60 · CC BY 4.0Download