Skip to main navigation menu Skip to main content Skip to site footer

AppleVit: A Smart Agricultural Software for Apple Leaf Disease Detection Using AI

Abstract

Apple leaf diseases endanger global apple production at such an intensity that it demands precise detection systems to control disease spread effectively. Traditional inspection methods and Convolutional Neural Network (CNN)-based models face challenges when processing extended image dependencies in leaf images, which subsequently affects their ability to identify diseases accurately. This research develops AppleViT, a lightweight Vision Transformer (ViT)-based model that applies Vision Transformer technology with self-attention approaches to enhance leaf disease classification accuracy and feature extraction within apple leaf detection systems. AppleViT was trained using a public dataset comprising 9,714 apple leaf images, categorized into four classes: Apple Scab, Black Rot, Cedar Apple Rust, and Healthy. The accuracy rate of AppleViT reached 97.8%, which exceeded the ResNet-50 and EfficientNet-B3 and MobileNetV3 models while operating with 1.3 million parameters suitable for precision agriculture real-time usage. The proposed approach demonstrates both high generalization skills alongside precise precision and recall value measurements for disease categories. Future research will create attention visualization features and mobile application compatibility before expanding the architecture to identify multiple diseases across different plant types. AppleViT highlights the potential of Vision Transformer (ViT) technology as a powerful tool to revolutionize plant disease detection for improving crop yield and disease management worldwide.

Keywords

Apple Leaf Disease Classification , Deep Learning , Vision Transformer

PDF

References

  1. A. Chug, A. Bhatia, A. P. Singh, and D. Singh, “A novel framework for image-based plant disease detection using hybrid deep learning approach,” Soft Comput., 2022, doi: 10.1007/s00500-022-07177-7.
  2. M. Mahajan, D. Upadhyay, M. Aeri, V. Kukreja, and R. Sharma, “Advancing agricultural health: Hybrid CNN-SVM framework for classifying tomato diseases,” in Proc. IEEE 9th Int. Conf. Convergence in Technology (I2CT), 2024, doi: 10.1109/I2CT61223.2024.10544232.
  3. M. Thanjaivadivel, C. Gobinath, J. Vellingiri, S. Kaliraj, and J. S. F. Josephin, “EnConv: enhanced CNN for leaf disease classification,” J. Plant Dis. Prot., vol. 132, no. 1, p. 32, 2024, doi: 10.1007/s41348-024-01033-6.
  4. Y. Zhao, C. Sun, X. Xu, and J. Chen, “RIC-Net: A plant disease classification model based on the fusion of Inception and residual structure and embedded attention mechanism,” Comput. Electron. Agric., vol. 193, p. 106644, 2022, doi: 10.1016/j.compag.2021.106644.
  5. S. Kaur, S. Pandey, and S. Goel, “Plants disease identification and classification through leaf images: A survey,” Arch. Comput. Methods Eng., vol. 26, 2018, doi: 10.1007/s11831-018-9255-6.
  6. V. S. Dhaka et al., “A survey of deep convolutional neural networks applied for prediction of plant leaf diseases,” Sensors, vol. 21, no. 14, 2021, doi: 10.3390/s21144749.
  7. S. Singh and A. Sharma, “State of the art convolutional neural networks,” Int. J. Performability Eng., vol. 19, no. 5, p. 342, 2023, doi: 10.23940/ijpe.23.05.p6.342349.
  8. A. Stephen, A. Punitha, and A. Chandrasekar, “Designing self attention-based ResNet architecture for rice leaf disease classification,” Neural Comput. Appl., vol. 35, no. 9, pp. 6737–6751, 2023, doi: 10.1007/s00521-022-07793-2.
  9. M. Tan and Q. V. Le, “EfficientNet: Rethinking model scaling for convolutional neural networks,” in Proc. 36th Int. Conf. Mach. Learn. (ICML), 2019. [Online
  10. A. Howard et al., “Searching for MobileNetV3,” in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), 2019, pp. 1314–1324, doi: 10.1109/ICCV.2019.00140.
  11. A. Dosovitskiy et al., “An image is worth 16×16 words: Transformers for image recognition at scale,” in Proc. Int. Conf. Learn. Representations (ICLR), 2021. [Online
  12. H. Touvron, M. Cord, A. Sablayrolles, G. Synnaeve, and H. Jégou, “Going deeper with image transformers,” in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), 2021, doi: 10.1109/ICCV48922.2021.00010.
  13. Y. Ferdi, “Data augmentation through background removal for apple leaf disease classification using the MobileNetV2 model,” arXiv preprint, Nov. 2024. [Online
  14. G. Bajpai, A. Gupta, and N. Chauhan, “Real-time implementation of convolutional neural network to detect plant diseases using internet of things,” in Commun. Comput. Inf. Sci., vol. 1066, pp. 510–522, 2019, doi: 10.1007/978-981-32-9767-8_42.
  15. H. Alshammari et al., “Olive disease classification based on vision transformer and CNN models,” Comput. Intell. Neurosci., vol. 2022, 2022, doi: 10.1155/2022/3998193.
  16. R. Deshpande and H. Patidar, “Tomato plant leaf disease detection using generative adversarial network and deep convolutional neural network,” Imaging Sci. J., vol. 70, no. 1, pp. 1–9, 2022, doi: 10.1080/13682199.2022.2161696.
  17. L. Yuan et al., “Tokens-to-token ViT: Training vision transformers from scratch on ImageNet,” in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), pp. 538–547, 2021, doi: 10.1109/ICCV48922.2021.00060.
  18. S. Hossain, M. T. Reza, A. Chakrabarty, and Y. J. Jung, “Aggregating different scales of attention on feature variants for tomato leaf disease diagnosis: A transformer-driven study,” Sensors, vol. 23, no. 7, p. 3751, 2023, doi: 10.3390/s23073751.
  19. K. Rethik and D. Singh, “Attention based mapping for plants leaf to classify diseases using vision transformer,” in Proc. Int. Conf. Emerging Technology (INCET), 2023, pp. 1–5, doi: 10.1109/INCET57972.2023.10170081.
  20. Q. Zeng, L. Niu, S. Wang, and W. Ni, “SEViT: A large-scale and fine-grained plant disease classification model based on transformer and attention convolution,” Multimed. Syst., vol. 29, no. 3, pp. 1001–1010, 2023, doi: 10.1007/s00530-022-01034-1.
  21. X. Li, X. Li, S. Zhang, G. Zhang, M. Zhang, and H. Shang, “SLViT: Shuffle-convolution-based lightweight vision transformer for effective diagnosis of sugarcane leaf diseases,” J. King Saud Univ. - Comput. Inf. Sci., vol. 35, no. 6, p. 101401, 2023, doi: 10.1016/j.jksuci.2022.09.013.
  22. P. S. Thakur, P. Khanna, T. Sheorey, and A. Ojha, “Explainable vision transformer enabled convolutional neural network for plant disease identification: PlantXViT,” arXiv preprint, 2022, doi: 10.48550/arXiv.2207.07919.
  23. H. T. Thai, K. H. Le, and N. L. T. Nguyen, “FormerLeaf: An efficient vision transformer for cassava leaf disease detection,” Comput. Electron. Agric., vol. 204, p. 107518, 2023, doi: 10.1016/j.compag.2022.107518.
  24. W. Ullah et al., “Efficient identification and classification of apple leaf diseases using lightweight vision transformer (ViT),” Discover Sustainability, vol. 5, no. 1, p. 116, 2024, doi: 10.1007/s43621-024-00307-1.
  25. M. R. Tonmoy, M. M. Hossain, N. Dey, and M. F. Mridha, “MobilePlantViT: A mobile friendly hybrid vision transformer for generalized plant disease image classification,” arXiv preprint, 2025. [Online
  26. P. Gole, P. Bedi, S. Marwaha, M. A. Haque, and C. K. Deb, “TrIncNet: A lightweight vision transformer network for identification of plant diseases,” Front. Plant Sci., vol. 14, p. 1221557, Jul. 2023, doi: 10.3389/fpls.2023.1221557.
  27. V.-L. Truong-Dang, H.-T. Thai, and K.-H. Le, “TinyResViT: A lightweight hybrid deep learning model for on-device corn leaf disease detection,” Internet Things, vol. 30, p. 101495, 2025, doi: 10.1016/j.iot.2025.101495.
  28. R. Devi, V. Kumar, and S. Palaniswamy, “InViTMixup: Plant disease classification using convolutional vision transformer with Mixup augmentation,” J. Chin. Inst. Eng., vol. 47, pp. 1–8, 2024, doi: 10.1080/02533839.2024.2346490.
  29. E. Aslan and Y. Özüpak, “Diagnosis and accurate classification of apple leaf diseases using vision transformers,” Comput. Decis. Making, vol. 1, pp. 1–12, Jul. 2024, doi: 10.59543/COMDEM.V1I.10039.
  30. F. Alpsalaz, Y. Özüpak, E. Aslan, and H. Uzel, “Classification of maize leaf diseases with deep learning: Performance evaluation of the proposed model and use of explicable artificial intelligence,” Chemom. Intell. Lab. Syst., vol. 262, p. 105412, Jul. 2025, doi: 10.1016/j.chemolab.2025.105412.
  31. Y. Özüpak, F. Alpsalaz, E. Aslan, and H. Uzel, “Hybrid deep learning model for maize leaf disease classification with explainable AI,” N. Z. J. Crop Hortic. Sci., Dec. 2025, doi: 10.1080/01140671.2025.2519570.
  32. L. Liao, B. Li, and J. Tang, “Plants disease image classification based on lightweight convolution neural networks,” Int. J. Pattern Recognit. Artif. Intell., vol. 36, no. 13, pp. 2254013:1–2254013:20, 2022, doi: 10.1142/S0218001422540131.
  33. S. Mehta, V. Kukreja, and S. Vats, “Advancing agricultural practices: Federated learning-based CNN for mango leaf disease detection,” in Proc. Int. Conf. Intell. Technol. (CONIT), 2023, pp. 1–6.
  34. V. Sharma, A. K. Tripathi, and H. Mittal, “DLMC-Net: Deeper lightweight multi-class classification model for plant leaf disease detection,” Ecol. Inform., vol. 75, p. 102025, 2023, doi: 10.1016/j.ecoinf.2023.102025.
  35. M. R. Tonmoy, M. M. Hossain, N. Dey, and M. F. Mridha, “MobilePlantViT: A mobile friendly hybrid vision transformer for generalized plant disease image classification,” arXiv preprint, 2025. [Online
  36. V.-L. Truong-Dang, H.-T. Thai, and K.-H. Le, “TinyResViT: A lightweight hybrid deep learning model for on-device corn leaf disease detection,” Internet Things, vol. 30, p. 101495, 2025, doi: 10.1016/j.iot.2025.101495.
  37. R. Devi, V. Kumar, and S. Palaniswamy, “InViTMixup: Plant disease classification using convolutional vision transformer with Mixup augmentation,” J. Chin. Inst. Eng., vol. 47, pp. 1–8, 2024, doi: 10.1080/02533839.2024.2346490.
  38. J. Sekar and G. K. T., “Hyperparameter tuning in deep learning-based image classification to improve accuracy using Adam optimization,” Int. J. Performability Eng., vol. 19, no. 9, p. 579, 2023, doi: 10.23940/ijpe.23.09.p3.579586.
  39. 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, doi: 10.3389/fpls.2016.01419.
  40. E. C. Too, L. Yujian, S. Njuki, and L. Yingchun, “A comparative study of fine-tuning deep learning models for plant disease identification,” Comput. Electron. Agric., vol. 161, pp. 272–279, 2019, doi: 10.1016/j.compag.2018.03.032.
  41. A. K. Rangarajan, R. Purushothaman, and A. Ramesh, “Tomato crop disease classification using pre-trained deep learning algorithm,” Procedia Comput. Sci., vol. 133, pp. 1040–1047, 2018, doi: 10.1016/j.procs.2018.07.070.

Downloads

Download data is not yet available.

Similar Articles

1-10 of 33

You may also start an advanced similarity search for this article.