Deep Learning for Tomato Leaf Disease Classification: Comparative Benchmarking of CNN and Vision Transformer Architectures

Main Article Content

Javanshir Zeynalov
Yigitcan Cakmak
Ishak Pacal
Maftun Aliyev

Abstract

Tomato production is highly vulnerable to foliar diseases that can reduce yield, increase management costs, and complicate timely intervention. Automated image-based diagnosis has therefore become an important research direction for precision agriculture. In this study, we present a comparative evaluation of four representative deep learning backbones for tomato leaf disease classification on the Plant Village dataset: EfficientNetV2-S, ConvNeXt-Base, DeiT3-Base, and Swin-Base. The dataset comprised 18,160 images from ten classes, including nine disease categories and one healthy class, and was divided into training, validation, and test sets using a 70:15:15 split. All models were trained under a standardized transfer learning pipeline with identical preprocessing, augmentation, and optimization settings to enable a fair comparison across architectures. Performance was assessed using accuracy, precision, recall, F1-score, parameter count, and GFLOPs. All evaluated models achieved very high classification performance, with test accuracies of at least 0.9985. Among them, Swin-Base yielded the best overall predictive performance, reaching an accuracy of 0.9989 and an F1-score of 0.9987. In contrast, EfficientNetV2-S provided the most favorable efficiency profile, achieving 0.9985 accuracy with only 20.19 million parameters and 5.4193 GFLOPs. These findings indicate that both convolutional and transformer-based models can deliver highly reliable tomato leaf disease classification under controlled benchmark conditions, while the final model choice should be guided by the application scenario. Swin-Base is preferable when maximum predictive performance is prioritized, whereas EfficientNetV2-S offers a more practical option for computationally constrained deployments.

Downloads

Download data is not yet available.

Article Details

Zeynalov, J., Cakmak, Y., Pacal, I., & Aliyev, M. (2026). Deep Learning for Tomato Leaf Disease Classification: Comparative Benchmarking of CNN and Vision Transformer Architectures. Trends in Computer Science and Information Technology, 027–034. https://doi.org/10.17352/tcsit.000106
Research Articles

Copyright (c) 2026 Zeynalov J, et al.

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

Zou F, Hua J, Zhu Y, Deng J, He R. ECVNet: A fusion network of efficient convolutional neural networks and visual transformers for tomato leaf disease identification. Agronomy. 2024;14. Available from: https://doi.org/10.3390/agronomy14122985

Chouchane A, Ouamane A, Belabbaci EO, Himeur Y, Amira A. Deep learning-based leaf image analysis for tomato plant disease detection and classification. In: Proceedings - International Conference on Image Processing (ICIP). IEEE Computer Society; 2024. p. 2923–2929. Available from: https://doi.org/10.1109/ICIP51287.2024.10647491

Jelali M. Deep learning networks-based tomato disease and pest detection: a first review of research studies using real field datasets. Front Plant Sci. 2024;15:1493322. Available from: https://doi.org/10.3389/fpls.2024.1493322

Nemmour H, Mezenner A, Lakehal MR, Bouibed ML, Ammi I, Moghrabi C, et al. GMaxViT: Gabor multi-axis vision transformer for tomato disease identification. 2026:1–6. Available from: https://doi.org/10.1109/aiccsa66935.2025.11315439

George R, Nishankar S, Thuseethan S, Wimalasooriya C, Sebastian Y, Ragel RG, Liang Z. U-FedTomAtt: ultra-lightweight federated learning with attention for tomato disease recognition. 2026. Available from: http://arxiv.org/abs/2602.16749 (accessed March 27, 2026).

Chandvekar SD, Bhoite S. Machine learning based mobile application for disease identification in tomato leaf. In: Proceedings of the 9th International Conference on Communication and Electronics Systems (ICCES 2024). Institute of Electrical and Electronics Engineers Inc.; 2024. p. 2007–2012. Available from: https://doi.org/10.1109/ICCES63552.2024.10859334

Deoli R, Bhatt C, Singh D, Bisht R. Hybrid VGG19–random forest framework for robust tomato leaf disease classification. 2026:1408–1412. Available from: https://doi.org/10.1109/icicnis66685.2025.11315737

Hosen MM, Islam MdH. Aggrotech: leveraging deep learning for sustainable tomato disease management. 2025. Available from: https://arxiv.org/abs/2501.12052v1 (accessed October 10, 2025).

Pacal I. Enhancing crop productivity and sustainability through disease identification in maize leaves: exploiting a large dataset with an advanced vision transformer model. Expert Syst Appl. 2024;238:122099. Available from: https://doi.org/10.1016/J.ESWA.2023.122099

Abdullah A, Amran GA, Tahmid SMA, Alabrah A, AL-Bakhrani AA, Ali A. A deep-learning-based model for the detection of diseased tomato leaves. Agronomy. 2024;14. Available from: https://doi.org/10.3390/agronomy14071593

Sunday B, Yusuf SA, Abdullahi M, Masha YA, Matemilola AS. Disorder severity classification in tomato based on weight cluster loss and convolutional neural network. Discover Applied Sciences. 2025;7:1434. Available from: https://doi.org/10.1007/s42452-025-07642-6

Ishrak MdA, Mahmud T, Hanip A, Hossain MS. Self-supervised learning for tomato leaf disease classification: a comparative study of SimCLR, MoCo, and BYOL. In: 2025 IEEE 2nd International Conference on Computing, Applications and Systems (COMPAS). 2025. p. 1–6. Available from: https://doi.org/10.1109/COMPAS67506.2025.11381842

Kansal S, Jaiswal A, Sachdeva N. Empirical analysis of deep learning models for tomato leaf disease detection. In: Proceedings of the 14th International Conference on Cloud Computing, Data Science and Engineering (Confluence 2024). Institute of Electrical and Electronics Engineers Inc.; 2024. p. 430–435. Available from: https://doi.org/10.1109/Confluence60223.2024.10463386

Mo H, Wei L. Tomato yellow leaf curl virus detection based on cross-domain shared attention and enhanced BiFPN. Ecol Inform. 2025;85:102912. Available from: https://doi.org/10.1016/j.ecoinf.2024.102912

Sun C, Li Y, Song Z, Liu Q, Si H, Yang Y, et al. Research on tomato disease image recognition method based on DeiT. Eur J Agron. 2025;162:127400. Available from: https://doi.org/10.1016/j.eja.2024.127400

Pacal I. Investigating deep learning approaches for cervical cancer diagnosis: a focus on modern image-based models. Eur J Gynaecol Oncol. 2025;46:125–141. Available from: https://www.ejgo.net/articles/10.22514/ejgo.2025.012

Bayram B, Ince S, Kilicarslan S, Veziroglu E, Celik O, Pacal I. Advancing ischemic stroke detection through an in-depth evaluation of YOLOv10 models on diffusion-weighted imaging data. J Soft Comput Decis Anal. 2026;4:16–31. Available from: https://doi.org/10.31181/jscda41202680

Ganie SM, Pacal I. GBA-NET: a gated bottleneck and attention-driven architecture for robust ischemic stroke segmentation across CT and DWI. Appl Comput Math. 2026;25:52–78. Available from: https://doi.org/10.30546/1683-6154.25.1.2026.52

Pacal I. Chaotic learning rate scheduling for improved CNN-based breast cancer ultrasound classification. Chaos Theory Appl. 2025;7:297–306. Available from: https://doi.org/10.51537/CHAOS.1807694

Pacal I, Cakmak Y. A comparative analysis of U-Net-based architectures for robust segmentation of bladder cancer lesions in magnetic resonance imaging. Eurasian J Med Oncol. 2025;9(4):268–283. Available from: https://doi.org/10.36922/EJMO025260276

Suhani S, Gopi AP, Naik KJ. A quantization training based deep learning for plant disease detections, severity and yield-loss prediction in sustainable agriculture. Soft Comput. 2026;30:2677–2699. Available from: https://doi.org/10.1007/s00500-025-11150-5

Cakmak Y, Pacal I. Comparative analysis of transformer architectures for brain tumor classification. Open Exploration. 2025;6:1001377. Available from: https://doi.org/10.37349/emed.2025.1001377

Naral S, Cakmak Y, Pacal I. Comparative evaluation of vision transformers and convolutional networks for breast ultrasound image classification. Open Exploration. 2026;7:1001382. Available from: https://doi.org/10.37349/emed.2026.1001382

Devarajan D, Allafi R, Obayya M, Nemri N. AI based real time disease diagnosis in plants using deep learning driven CNNs. Sci Rep. 2026;16:4587. Available from: https://doi.org/10.1038/s41598-025-34681-1

Cakmak Y, Zeynalov J. A comparative analysis of convolutional neural network architectures for breast cancer classification from mammograms. Artif Intell Appl Sci. 2025;1:28–34. Available from: https://doi.org/10.69882/ADBA.AI.2025075

Cakmak Y. Machine learning approaches for enhanced diagnosis of hematological disorders. Comput Syst Artif Intell. 2025;1:8–14. Available from: https://doi.org/10.69882/ADBA.CSAI.2025072

Sun Y, Ning L, Zhao B, Yan J. Tomato leaf disease classification by combining EfficientNetv2 and a Swin transformer. Appl Sci (Switzerland). 2024;14. Available from: https://doi.org/10.3390/app14177472

Praneesh M, Kavitha V, Santhakumari R, Shobana R. Exploring incremental and deep learning approaches for plant disease detection: a comprehensive review. Real-Time Artificial Intelligence (AI). 2025:31–54. Available from: https://doi.org/10.1201/9781998511358-2

Khubisa FM, Olugbara OO. Bibliometric analysis of deep learning in plant disease management. Egypt Inform J. 2026;33:100880. Available from: https://doi.org/10.1016/j.eij.2025.100880

Cakmak Y, Pacal N. Deep learning for automated breast cancer detection in ultrasound: a comparative study of four CNN architectures. Artif Intell Appl Sci. 2025;1:13–19. Available from: https://doi.org/10.69882/ADBA.AI.2025073

Cakmak Y, Maman A. Deep learning for early diagnosis of lung cancer. Comput Syst Artif Intell. 2025;1:20–25. Available from: https://doi.org/10.69882/ADBA.CSAI.2025074

Ahmed MR, Haque R, Rahman SMA, Afridi S, Abir MFF, Hossain MF, et al. Towards automated detection of tomato leaf diseases. In: Proceedings - 6th International Conference on Electrical Engineering and Information and Communication Technology (ICEEICT 2024). Institute of Electrical and Electronics Engineers Inc.; 2024. p. 387–392. Available from: https://doi.org/10.1109/ICEEICT62016.2024.10534559

Zeynalov J, Cakmak Y, Pacal I. Automated apple leaf disease classification using deep convolutional neural networks: a comparative study on the Plant Village dataset. J Comput Sci Digit Technol. 2025;1:5–17. Available from: https://doi.org/10.5281/zenodo.17204089

Poly A, Vetriveeran D, Balamurugan M. Tomato plant disease classification using transfer learning. In: 2024 5th International Conference for Emerging Technology (INCET 2024). Institute of Electrical and Electronics Engineers Inc.; 2024. Available from: https://doi.org/10.1109/INCET61516.2024.10593634

Hoang TM, Bui VH, Nguyen VS, Doan DT, Dang HA, Pham AT. A comprehensive evaluation of lightweight deep learning models for tomato disease classification on edge computing environments. Sci Rep. 2026;2026. Available from: https://doi.org/10.1038/s41598-026-42439-6

Bhosale S, Chhabria A. Tomato plant disease identification via deep learning technique. 2024;26. Available from: https://doi.org/10.1142/S0219467826500075

Kebir ST, Berrhail F, Didi F. An efficient tomato diseases detection and classification methodology using CNN deep learning network. Braz J Technol. 2024;7:e69316. Available from: https://doi.org/10.38152/bjtv7n2-002

Vásconez JP, Vásconez IN, Moya V, Calderón-Díaz MJ, Valenzuela M, Besoain X, et al. Deep learning-based classification of visual symptoms of bacterial wilt disease caused by Ralstonia solanacearum in tomato plants. Comput Electron Agric. 2024;227. Available from: https://doi.org/10.1016/j.compag.2024.109617

Chen Z, Wang G, Lv T, Zhang X. Using a hybrid convolutional neural network with a transformer model for tomato leaf disease detection. Agronomy. 2024;14. Available from: https://doi.org/10.3390/agronomy14040673

Tiwari M, Kumar H, Prakash N, Kumar S, Neware R, Tripathi S, et al. Tomato disease detection using vision transformer with residual L1-norm attention and deep neural networks. Int J Intell Eng Syst. 2024;17:679–688. Available from: https://doi.org/10.22266/ijies2024.0229.57

Shehu HA, Ackley A, Marvellous M, Eteng OE. Early detection of tomato leaf diseases using transformers and transfer learning. Eur J Agron. 2025;168. Available from: https://doi.org/10.1016/j.eja.2025.127625

Sun C, Li Y, Song Z, Liu Q, Si H, Yang Y, et al. Research on tomato disease image recognition method based on DeiT. Eur J Agron. 2025;162. Available from: https://doi.org/10.1016/j.eja.2024.127400

PlantVillage dataset. Available from: https://www.kaggle.com/datasets/emmarex/plantdisease (accessed October 10, 2025).

Wang Z, Wang P, Liu K, Wang P, Fu Y, Lu CT, et al. A comprehensive survey on data augmentation. 2024. Available from: https://arxiv.org/abs/2405.09591v3 (accessed May 28, 2025).

Mumuni A, Mumuni F, Gerrar NK. A survey of synthetic data augmentation methods in machine vision. Mach Intell Res. 2024;21:831–869. Available from: https://doi.org/10.1007/S11633-022-1411-7

Tan M, Le QV. EfficientNetV2: smaller models and faster training. 2021. Available from: https://arxiv.org/abs/2104.00298 (accessed September 25, 2025).

Liu Z, Mao H, Wu CY, Feichtenhofer C, Darrell T, Xie S. A ConvNet for the 2020s. Available from: https://github.com/facebookresearch/ConvNeXt (accessed July 23, 2025).

Dosovitskiy A, Beyer L, Kolesnikov A, Weissenborn D, Zhai X, Unterthiner T, et al. An image is worth 16x16 words: transformers for image recognition at scale. (accessed August 20, 2025). Available from: https://doi.org/10.48550/arXiv.2010.11929

Touvron H, Cord M, Jégou H. DeiT III: revenge of the ViT. 2022;17:13. Available from: https://doi.org/10.48550/arXiv.2204.07118

Liu Z, Lin Y, Cao Y, Hu H, Wei Y, Zhang Z, Lin S, Guo B. Swin transformer: hierarchical vision transformer using shifted windows. (accessed July 23, 2025). Available from: https://doi.org/10.48550/arXiv.2103.14030