Benchmarking CNN and Vision Transformer Architectures for Corn Leaf Disease Classification on the Kaggle Maize Dataset
DOI:
https://doi.org/10.30865/json.v7i4.9679Keywords:
Deep Learning, Corn Leaf Disease Classification, Transfer Learning, Vision Transformer, Comparative AnalysisAbstract
Foliar diseases in corn pose a critical constraint on agricultural productivity, particularly in developing countries. Deep learning-based automated detection has emerged as a viable alternative to conventional manual inspection. This study presents a comparative evaluation of four contemporary deep learning architectures—EfficientNet-B3, MobileNetV3-Large, ResNet50, and Vision Transformer Small (ViT-Small)—on the publicly available Corn or Maize Leaf Disease Dataset hosted on Kaggle (4,188 image samples; four classes: Blight, Common Rust, Gray Leaf Spot, and Healthy). Class imbalance was addressed through a combination of WeightedRandomSampler and Focal Loss, while all architectures were trained via transfer learning from ImageNet pretrained weights, augmented with MixUp and CutMix. Experimental results demonstrate that ViT-Small achieved the highest classification performance, attaining 97.14% accuracy, a weighted F1-Score of 0.9716, and an AUC-ROC of 0.9961, outperforming EfficientNet-B3 (96.66%), MobileNetV3-Large (96.18%), and ResNet50 (95.71%). As an external reference, these results are also compared indicatively with the DenseNet121 accuracy (93.48%) reported by Waheed et al. (2020); it must be emphasized that this baseline was not reproduced in the present experiments, and therefore the comparison should be interpreted as indicative rather than conclusive. McNemar’s test confirmed that ViT-Small’s superiority is statistically significant (p<0.05). An ablation study verified the positive contribution of the Focal Loss and WeightedRandomSampler combination. Grad-CAM visualization corroborated that all models direct their attention to pathologically relevant lesion regions.
References
R. L. Paliwal, G. Granados, H. R. Lafitte, and A. D. Violic, "Tropical Maize: Improvement and Production," FAO Plant Production and Protection Series, no. 28, 2000.
[2] FAO, "FAOSTAT: Crops and Livestock Products," Food and Agriculture Organization of the United Nations, 2023. [Online]. Available: https://www.fao.org/faostat.
[3] A. P. Singh, "Diseases of corn and their management," in Diseases of Field Crops and Their Management, Springer, 2022, pp. 153–185.
[4] G. Sibiya and M. Sishi, "A computational procedure for the recognition and classification of maize leaf diseases out of healthy leaves using convolutional neural networks," AgriEngineering, vol. 1, no. 1, pp. 119–131, 2019.
[5] S. P. Mohanty, D. P. Hughes, and M. Salathé, "Using deep learning for image-based plant disease detection," Front. Plant Sci., vol. 7, p. 1419, 2016.
[6] J. G. A. Barbedo, "Plant disease identification from individual lesions and spots using deep learning," Biosyst. Eng., vol. 180, pp. 96–107, 2019.
[7] K. P. Ferentinos, "Deep learning models for plant disease detection and diagnosis," Comput. Electron. Agric., vol. 145, pp. 311–318, 2018.
[8] A. Kamilaris and F. X. Prenafeta-Boldú, "Deep learning in agriculture: A survey," Comput. Electron. Agric., vol. 147, pp. 70–90, 2018.
[9] R. A. Priyadharshini, S. Arivazhagan, M. Arun, and A. Mirnalini, "Maize leaf disease classification using deep convolutional neural networks," Neural Comput. Appl., vol. 31, no. 12, pp. 8887–8895, 2019.
[10] A. Waheed, M. Goyal, D. Gupta, A. Khanna, A. E. Hassanien, and H. M. Pandey, "An optimized dense convolutional neural network model for disease recognition and classification in corn leaf," Comput. Electron. Agric., vol. 175, p. 105456, 2020.
[11] J. Chen, J. Chen, D. Zhang, Y. Sun, and Y. A. Nanehkaran, "Using deep transfer learning for image-based plant disease identification," Comput. Electron. Agric., vol. 173, p. 105393, 2020.
[12] A. S. Paymode and V. B. Malode, "Transfer learning for multi-crop leaf disease image recognition," Ain Shams Eng. J., vol. 13, no. 5, p. 101713, 2022.
[13] P. Sharma, P. Hans, and S. C. Gupta, "Classification of plant leaf diseases using machine learning and image preprocessing techniques," in Proc. 10th Int. Conf. Cloud Computing, Data Science & Engineering (Confluence), IEEE, 2020, pp. 480–484.
[14] A. Dosovitskiy et al., "An image is worth 16x16 words: Transformers for image recognition at scale," in Proc. Int. Conf. Learning Representations (ICLR), 2021.
[15] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, "Grad-CAM: Visual explanations from deep networks via gradient-based localization," Int. J. Comput. Vis., vol. 128, no. 2, pp. 336–359, 2020.
[16] M. Tan and Q. V. Le, "EfficientNet: Rethinking model scaling for convolutional neural networks," in Proc. Int. Conf. Machine Learning (ICML), 2019, pp. 6105–6114.
[17] A. Buslaev, V. I. Iglovikov, E. Khvedchenya, A. Parinov, M. Druzhinin, and A. A. Kalinin, "Albumentations: Fast and flexible image augmentations," Information, vol. 11, no. 2, p. 125, 2020.
[18] S. Yun, D. Han, S. J. Oh, S. Chun, J. Choe, and Y. Yoo, "CutMix: Regularization strategy to train strong classifiers with localizable features," in Proc. IEEE/CVF Int. Conf. Computer Vision (ICCV), 2019, pp. 6023–6032.
[19] T. Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár, "Focal loss for dense object detection," in Proc. IEEE Int. Conf. Computer Vision (ICCV), 2017, pp. 2980–2988.
[20] M. Tan and Q. V. Le, "EfficientNetV2: Smaller models and faster training," in Proc. Int. Conf. Machine Learning (ICML), 2021, pp. 10096–10106.
[21] A. Howard et al., "Searching for MobileNetV3," in Proc. IEEE/CVF Int. Conf. Computer Vision (ICCV), 2019, pp. 1314–1324.
[22] K. He, X. Zhang, S. Ren, and J. Sun, "Deep residual learning for image recognition," in Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2016, pp. 770–778.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Jurnal Sistem Komputer dan Informatika (JSON)

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

This work is licensed under a Creative Commons Attribution 4.0 International License
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).

