MangoXNet: Lightweight Hybrid Deep Learning with Explainable AI for Accurate Mango Leaf Disease Diagnosis in Smart Agriculture
Open Access
- 2 November 2026
- journal article
- research article
- Published by MDPI AG in Algorithms
- Vol. 19 (11) , 947
Abstract
Diseases of mango leaves have the potential to greatly diminish agricultural yields, and the task of identifying these diseases from pictures captured in field is complicated by varying light levels, complex backgrounds, appearance of the disease, and image quality. While modern deep learning techniques have achieved good results in terms of accuracy of classification, most current techniques are either computationally intensive or offer a limited view into the relationship between compactness of the models, representation of local and global features, robustness, and interpretability. This paper presents MangoXNet, a novel lightweight hybrid CNN–Transformer framework for optimal classification of mango leaf diseases. The hybrid framework features a compact convolutional backbone: MobileNetV3Small, depthwise separable refinement, squeeze-and-excitation-based channel re-calibration, compact Transformer-based contextual encoding, and CNN–Transformer feature fusion. The main contribution of this study lies not in the introduction of separate components but in task-related integration of local and global feature representations into a compact model. The model achieves a classification accuracy of 99.83% on the MangoLeafBD dataset, together with macro-F1 and MCC scores of 99.80% and 99.78%, respectively. The model comprises 1.17 million parameters and occupies a size of 6.90 MB in storage, and the average inference time is estimated at 11.70 ms per image in the experiment. Moreover, performance of the model during fivefold cross-validation is found to be 99.44 ± 0.19%, a trait that proves stability of model performance across different validation folds. Explainability analysis using Grad-CAM and Grad-CAM along with LayerCAM methods helps to confirm that model predictions are mainly linked to leaf regions relevant to disease. Results achieved prove that it is possible to build a compact local–global representation model that has high classification ability without major increase in computational processing effort. However, the model’s validation on held-out test sets, different agricultural environments, and proper edge hardware should be performed in order to make sure the model can fit a broader scope of conditions.Keywords
This publication has 42 references indexed in Scilit:
- TumorSageNet CNN hybrid architecture enables accurate detection of mango leaf pathologiesScientific Reports, 2026
- Synergistics effect of novel nano biochar on wheat growth, yield and antifungal response under cadmium contaminated soil: A field studyEcotoxicology and Environmental Safety, 2026
- Intelligent Plant Disease Diagnosis: Harnessing Machine Learning and Deep Learning for Precision Agriculture2026
- An investigation on advances in transfer learning and explainable AI for mango leaf disease detectionSmart Agricultural Technology, 2025
- TinyML for Plant Disease Detection: Efficient Edge AI Solutions for Apple and Mango LeavesProcedia Computer Science, 2025
- Enhanced detection of mango leaf diseases in field environments using MSMP-CNN and transfer learningComputers and Electronics in Agriculture, 2024
- Development of a Robust CNN Model for Mango Leaf Disease Detection and Classification: A Precision Agriculture ApproachACS Agricultural Science & Technology, 2024
- Classification of mango disease using ensemble convolutional neural networkSmart Agricultural Technology, 2024
- ESDNN: A novel ensembled stack deep neural network for mango leaf disease classification and detectionMultimedia Tools and Applications, 2023
- MangoLeafBD: A comprehensive image dataset to classify diseased and healthy mango leavesData in Brief, 2023