The ViX‑MangoEFormer is introduced, which combines convolutional kernels and self-attention to effectively diagnose multiple mango leaf conditions in both balanced and imbalanced image sets and validate the effectiveness of transformer attention and XAI in mango leaf disease detection.
Mango productivity suffers greatly from leaf diseases, leading to economic and food security issues. Current visual inspection methods are slow and subjective. Previous Deep-Learning (DL) solutions have shown promise but suffer from imbalanced datasets, modest generalization, and limited interpretability. To address these challenges, this study introduces the ViX‑MangoEFormer, which combines convolutional kernels and self-attention to effectively diagnose multiple mango leaf conditions in both balanced and imbalanced image sets. To benchmark against ViX‑MangoEFormer, we developed a stacking ensemble model (MangoNet-Stack) that utilizes five transfer learning networks as base learners. All models were trained with Grad‑CAM produced pixel‑level explanations. In a combined dataset of 25,530 images, ViX-MangoEFormer achieved an F1 score of 99.78% and a Matthews Correlation Coefficient (MCC) of 99.34%. This performance consistently outperformed individual pre-trained models and MangoNet-Stack. Additionally, data augmentation has improved the performance of every architecture compared to its non-augmented version. Cross‑domain tests on morphologically similar crop leaves confirmed strong generalization. Our findings validate the effectiveness of transformer attention and XAI in mango leaf disease detection. ViX‑MangoEFormer is deployed as a web application that delivers real‑time predictions, probability scores, and visual rationales. The system enables growers to respond quickly and enhances large-scale smart crop health monitoring.
Abdullah Al Noman
1 papers
Amira Hossain
1 papers
Anamul Sakib
1 papers
Jesika Debnath
1 papers
Hasib Fardin
1 papers
Abdullah Al Sakib
1 papers
Rezaul Haque
1 papers
M. Ahmed
1 papers
Ahmed Wasif Reza
1 papers
M. A. A. Dewan
1 papers