Automated Mango Leaf Disease Identification with Improved Grey Wolf Optimizer in Hybrid MaxViT-Swin Transformer Model
Abstract
The identification of plant diseases plays a crucial role in sustaining agricultural productivity and minimizing economic losses. Traditional approaches, which often depend on visual assessment and the farmer’s experience, are typically inadequate for the timely recognition of infections, allowing diseases to progress and cause substantial damage. In overcoming these challenges, deep learning methods offer greater capability in solving complex classification problems than traditional machine learning algorithms. In this study, we propose a hybrid transformer-driven framework for high-precision disease detection on mango leaves. This approach combines mango leaf vein segmentation with transformer-based feature extraction. MaxViT and Swin models derive 512 and 768 features from each image, which are then combined to form a 1280-dimensional feature vector. The feature attention mechanism highlights the most informative components of the features, while the improved grey wolf optimizer reduces the increased dimensionality. 200 discriminative features were selected from the feature vector, and the decreasing features were classified using six machine learning classifiers. Experiments were performed on the MangoLeafBD dataset, which contains eight classes: seven diseases and a healthy class. The proposed MaxViT-Swin–IGWO hybrid framework achieved remarkable results, achieving 100% accuracy for the Linear Discriminant classifier and 99.98% accuracy for the Neural Network classifier. Performance analysis was accomplished using precision, recall, F1-score, dice, and ROC criteria. Furthermore, an ablation test was conducted to evaluate the impact of individual model variations on the preprocessing pipeline. The findings revealed that the proposed MaxViT Swin–IGWO hybrid framework detects mango leaf diseases with superior performance, outperforming both conventional and contemporary alternatives.
Keywords
References
- Adi K, Widodo A P, Widodo C E, Pamungkas A & Putranto A B (2018). Automatic vehicle counting using background subtraction method on gray scale images and morphology operation. In Journal of Physics: Conference Series (Vol. 1025, No. 1, p. 012025). IOP Publishing. https://doi.org/10.1088/1742-6596/1025/1/012025
- Ahmad M, Shabbir M, Ali H, Hashmi M B F, Ahmed M, Ahmad S & Malik A (2025). Climate-Induced Changes in Mango Production: Phenological Impacts, Pest Threats, and Mitigation Approaches. In Climate Change and Mango Production (pp. 773-802). Springer, Cham. https://doi.org/10.1007/978-3-031-87035-4_30
- Ahmed S I, Ibrahim M, Nadim M, Rahman M M, Shejunti M M, Jabit T, & Ali M S (2023). MangoLeafBD: A comprehensive image dataset to classify diseased and healthy mango leaves. Data in Brief, 47, 108941. https://doi.org/10.1016/j.dib.2023.108941
- Al N A, Amira H, Anamul S, Jesika D, Hasib F, Al Sakib A & Akber D M A (2025). ViX-MangoEFormer: An Enhanced Vision Transformer EfficientFormer and Stacking Ensemble Approach for Mango Leaf Disease Recognition with Explainable Artificial Intelligence. Computers 14(5): 171. https://doi.org/10.3390/computers14050171
- Arivazhagan S & Ligi S V (2018). Mango leaf diseases identification using convolutional neural network. International Journal of Pure and Applied Mathematics, 120(6): 11067-11079
- Babar T K (2025). Insect Pests of Mango: Identification, Biology, and Management Strategies. In Climate Change and Mango Production (pp. 563-616). Springer, Cham. https://doi.org/10.1007/978-3-031-87035-4_24
- Bhuyan P, Singh P K, Das S K (2024). Res4net-CBAM: A deep cnn with convolution block attention module for tea leaf disease diagnosis. Multimedia Tools and Applications, 83(16): 48925-48947. https://doi.org/10.1007/s11042-023-17472-6
- Bini K, Krishnan A G, Jacob J, Supriya R, Thomas K S (2024). Mango: The king of the tropics. In Economically Important Trees: Origin, Evolution, Genetic Diversity and Ecology (pp. 299-324). Singapore: Springer Nature. https://doi.org/10.1007/978-981-97-5940-8_8
Details
Primary Language
English
Subjects
Medicinal and Aromatic Plants
Journal Section
Research Article
Authors
Erdal Özbay
*
0000-0002-9004-4802
Türkiye
Publication Date
July 28, 2026
Submission Date
January 5, 2026
Acceptance Date
February 24, 2026
Published in Issue
Year 2026 Volume: 32 Number: 3