journal article·2026-07-12Open access

Leakage-Aware Transfer Learning with Explainable AI and CPU-Efficient Deployment for Mango Leaf Disease Classification on the MangoLeafBD Benchmark

Wirapong Chansanam, Avshalom Elmalech, Suparp Kanyacome, Prasert Luekhong, Natthakan Iam-On, Tossapon Boongoen

Applied Sciences· Volume 16· Issue 14

Abstract

Background and Aim: Mango (Mangifera indica) is a globally important fruit crop whose productivity is repeatedly threatened by foliar diseases such as anthracnose, bacterial canker, powdery mildew, die-back, and sooty mould. Although deep learning has rapidly advanced automated leaf-disease diagnosis, recently reported accuracies on the MangoLeafBD benchmark are approaching saturation, and many studies still rely on random data splits that may inflate performance through leakage of duplicate or near-duplicate images. This study aimed to develop and rigorously evaluate a leakage-aware, deployment-oriented deep learning framework for the complete eight-class MangoLeafBD task. Methods: Three modern transfer-learning backbones—EfficientNetB0, MobileNetV3Large, and ConvNeXtTiny—were fine-tuned using a two-stage training strategy on a group-aware data partition. Duplicate and near-duplicate images were detected with cleaned filename stems, average hashing (aHash), and difference hashing (dHash) and grouped before splitting to guarantee zero cross-partition overlap. The strongest models were combined through probability-level soft voting. Robustness was further assessed using 5-fold StratifiedGroupKFold cross-validation. Explainability was examined with Gradient-weighted Class Activation Mapping (Grad-CAM), deployment suitability was characterized through CPU latency benchmarking, and the framework was operationalized as a publicly accessible web-based diagnostic system. Results: EfficientNetB0 achieved the highest performance under the leakage-controlled protocol, reaching 99.50% accuracy and 99.50% weighted F1-score on the 599-image group-aware test set. The heterogeneous soft-voting ensemble matched EfficientNetB0 but did not exceed it, indicating that the ensemble gains reported in earlier studies may partly reflect optimistic split conditions. Five-fold grouped cross-validation confirmed stability, yielding a mean accuracy of 99.63% (SD = 0.20%) and a mean weighted F1 of 99.62% (SD = 0.20%). Grad-CAM visualizations showed that the model attended to biologically meaningful lesion regions across all eight classes, and CPU benchmarking produced a mean single-image latency of 25.3 ms (p95 = 27.6 ms) with batch throughput scaling up to 166.5 images per second. Conclusions: The proposed framework demonstrates that a compact, leakage-aware EfficientNetB0 model can match the accuracy of more complex hybrid CNN–transformer architectures while remaining interpretable and deployable on commodity CPU hardware. By coupling group-aware evaluation, explainable AI, latency benchmarking, and a publicly accessible web application, the study advances reproducible, deployment-ready precision agriculture research and offers a more rigorous benchmarking protocol for future mango leaf disease classification studies.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Agriculture and AI · Advanced Neural Network Applications · Remote Sensing in Agriculture

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Information Science, Faculty of Humanities and Social Sciences, Khon Kaen University, Khon Kaen 40002, Thailand

Department of Information Science and Applied AI, Bar-Ilan University, Ramat Gan 5290002, Israel

Faculty of Science and Engineering, Kasetsart University, Sakon Nakhon 47000, Thailand

Cybersecurity Research Center, National Cyber Security Agency (NCSA), Bangkok 10210, Thailand

Advanced Reasoning Research Group, Department of Computer Science, Aberystwyth University, Ceredigion SY23 3DB, UK

References (33)

Show source-provided references
1. Classification of infection grade for anthracnose in mango leaves under complex background based on CBAM-DBIRNet10.1016/j.eswa.2024.125343 ↗
2. Bhargavi, B., and Sumesh, E.P. (2025). Deep Learning-Based Framework for Early Detection and Classification of Mango Crop Diseases. International Conference on Agriculture-Centric Computation, Springer Nature.10.1007/978-3-032-17083-5_14 ↗
3. Deep Convolutional Neural Networks for South Indian Mango Leaf Disease Detection and Classification
4. Early Detection of Fungal Diseases in Mango Leaves: Fusion of GLCM Features and Vision Transformers with Deep Neural Network Classification10.1142/S0218348X26500040 ↗
5. Early disease classification of mango leaves using feed-forward neural network and hybrid metaheuristic feature selection10.1109/ACCESS.2020.3031914 ↗
6. Deep learning-based disease detection in potato and mango leaves: A comparative study of CNN, AlexNet, ResNet, and EfficientNet10.1038/s41598-025-32607-5 ↗
7. DeepLeafNet: A Novel Deep Learning Approach for Mango Leaf Disease Segmentation and Classification with Optimization Algorithms10.1007/s42979-025-04504-1 ↗
8. ESDNN: A novel ensembled stack deep neural network for mango leaf disease classification and detection10.1007/s11042-023-16012-6 ↗
9. Ensemble learning framework for mango plant disease detection and classification
10. Shehu, H.A., Ackley, A., Mark, M., Eteng, O.E., Sharif, M.H., and Kusetogullari, H. (2025). YOLO for early detection and management of Tuta absoluta-induced tomato leaf diseases. Front. Plant Sci., 16.10.3389/fpls.2025.1524630 ↗
11. Wei, C., Shan, Y., and Zhen, M. (2025). Deep learning-based anomaly detection for precision field crop protection. Front. Plant Sci., 16.10.3389/fpls.2025.1576756 ↗
12. Interpretable mango leaf disease detection using a hybrid CNN–transformer model with GLCM features10.30574/ijsra.2025.15.2.1510 ↗
13. Ergün, E. (2025). Attention-enhanced hybrid deep learning model for robust mango leaf disease classification via ConvNeXt and vision transformer fusion. Front. Plant Sci., 16.10.3389/fpls.2025.1638520 ↗
14. Rahman, M.A., Bhuiyan, M.T.A., Noori, F.M., Uddin, M.Z., and Masum, A.K.M. (2026). MangoLeafNet-XAI: An attention-enhanced deep learning architecture for accurate and interpretable mango leaf disease classification. Front. Plant Sci., 17.10.3389/fpls.2026.1776537 ↗
15. MangoLeafBD: A comprehensive image dataset to classify diseased and healthy mango leaves10.1016/j.dib.2023.108941 ↗
16. Puranik, S.S., Hanamakkanavar, S.R., Bidargaddi, A.P., Ballur, V.V., and Joshi, P.T. (2024). MobileNetV3 for mango leaf disease detection: An efficient deep learning approach for precision agriculture. 2024 5th International Conference for Emerging Technology (INCET), IEEE.10.1109/INCET61516.2024.10593318 ↗
17. Deep transfer learning driven model for mango leaf disease detection10.1007/s13198-024-02480-y ↗
18. Bairwa, A.K., Singh, A., and Kumar, S. (2024). Advances in mango leaf disease detection using deep neural networks. 2024 International Conference on Modeling, Simulation & Intelligent Computing (MoSICom), IEEE.10.1109/MoSICom63082.2024.10880953 ↗
19. Deep learning based mango leaf disease detection for classifying and evaluating mango leaf diseases10.54216/FPA.150222 ↗
20. Pahati, M., De Jesus, L.C., Reyes, R., Villarroel, J.M., and Angeles, M.R. (2025). Detecting mango leaf diseases using Google Teachable Machine for sustainable agriculture. 2025 International Conference on Artificial Intelligence in Information and Communication (ICAIIC), IEEE.10.1109/ICAIIC64266.2025.10920854 ↗
21. Mango disease detection using fused vision transformer with ConvNeXt architecture
22. Deep learning for mango leaf disease identification: A vision transformer perspective10.1016/j.heliyon.2024.e36361 ↗
23. Liu, Z., Mao, H., Wu, C., Feichtenhofer, C., Darrell, T., and Xie, S. (2022, January 18–24). A ConvNet for the 2020s. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01167 ↗
24. Du, K.-L., Zhang, R., Jiang, B., Zeng, J., and Lu, J. (2025). Foundations and Innovations in Data Fusion and Ensemble Learning for Effective Consensus. Mathematics, 13.10.3390/math13040587 ↗
25. Allen-Zhu, Z., and Li, Y. (2023, January 1–5). Towards understanding ensemble, knowledge distillation and self-distillation in deep learning. Proceedings of the Eleventh International Conference on Learning Representations (ICLR), Kigali, Rwanda.
26. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2017, January 22–29). Grad-CAM: Visual explanations from deep networks via gradient-based localization. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.74 ↗
27. Abid, A., Abdalla, A., Abid, A., Khan, D., Alfozan, A., and Zou, J. (2019). Gradio: Hassle-free sharing and testing of ML models in the wild. arXiv.
28. Tan, M., and Le, Q.V. (2019, January 9–15). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning (ICML), Long Beach, CA, USA.
29. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the knowledge in a neural network. NeurIPS Deep Learning and Representation Learning Workshop. arXiv.
30. Beyer, L., Zhai, X., Royer, A., Markeeva, L., Anil, R., and Kolesnikov, A. (2022, January 18–24). Knowledge distillation: A good teacher is patient and consistent. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA.10.1109/CVPR52688.2022.01065 ↗
31. Krčmar, T., Šabanović, D., Švarcmajer, M., and Lukić, I. (2026). What knowledge transfers in tabular anomaly detection? A teacher-student distillation analysis. Mach. Learn. Knowl. Extr., 8.10.3390/make8030060 ↗
32. Hughes, D.P., and Salathé, M. (2015). An open access repository of images on plant health to enable the development of mobile disease diagnostics. arXiv.
33. Singh, D., Jain, N., Jain, P., Kayal, P., Kumawat, S., and Batra, N. (2020, January 5–7). PlantDoc: A dataset for visual plant disease detection. Proceedings of the 7th ACM IKDD CoDS and 25th COMAD (CoDS-COMAD ‘20), Hyderabad, India.10.1145/3371158.3371196 ↗