An Explainable Hybrid CNN–Transformer Framework for Jackfruit Leaf Condition Classification
DOI:
https://doi.org/10.47852/bonviewJDSIS620210203Keywords:
deep learning, Swin Transformer, plant disease detection, Occlusion Sensitivity, explainable AIAbstract
The detailed classification of jackfruit leaves into pathological conditions and physiological growth stages is important for precision agriculture; however, high intra-class variability and subtle symptom overlaps pose major diagnostic challenges. This study proposes JFSwinNet, a hybrid model integrating DenseNet201 and Swin-Base Transformer to capture fine-grained local lesion textures and long-range global contextual dependencies. The architecture was evaluated using 1,026 original jackfruit leaf images captured by smartphone cameras across eight classes. The raw dataset was randomly split into training, validation, and testing sets at a 70:15:15 ratio, containing 714, 162, and 150 images, respectively. Offline data augmentation was applied exclusively to the training set, producing 8,000 balanced images, with 1,000 images per class, to preserve evaluation on unseen samples. Experimental results show that JFSwinNet outperformed DenseNet201, NASNet-Large, InceptionV3, and ResNet101, achieving 94.67% classification accuracy on an independent test set and 94.42% average cross-validation accuracy. A frozen-backbone linear probe attained 91.92% accuracy on an independent sunflower dataset comprising five classes, further supporting cross-domain generalizability. To address black-box limitations, model explanations were generated using Grad-CAM++ and perturbation-based Occlusion Sensitivity. Quantitative faithfulness audits further demonstrated a 74.39% confidence drop after feature deletion. JFSwinNet contains only 3.7 million trainable parameters, has a 109 MB INT8 footprint, and achieves 22 ms edge inference latency. These results indicate its potential as an accurate, verifiable, and lightweight framework for real-time mobile deployment in precision agriculture. The combined approach supports disease recognition and growth-stage assessment under practical field conditions.
Received: 28 April 2026 | Revised: 9 October 2026 | Accepted: 2 November 2026
Conflicts of Interest
The authors declare that there were no competing financial interests or personal relationships that could have influenced the work reported in this paper.
Data Availability Statement
The primary dataset used in this study is available in the Mendeley Data Repository: 10.17632/6d4y69dv9x.3. For external validation, the Image Datasets for Sunflower Growth Stage dataset was used: 10.17632/y3ygk98ngr.2
Author Contribution Statement
Sadaf M. Anis: Conceptualization, Methodology, Software, Formal analysis, Resources, Data curation, Writing – original draft, Visualization, Funding acquisition. Md. Faysal Hossan: Methodology, Software, Validation, Formal analysis, Investigation, Resources, Data curation, Writing – review & editing. Marzia Mahzabin Mahi: Conceptualization, Validation, Resources, Writing – original draft. Tarifuzzaman Riyad: Methodology, Software, Formal analysis, Investigation. Jia Uddin: Methodology, Software, Validation, Formal analysis, Writing – review & editing, Supervision, Project administration.Downloads
Published
2026-12-01
Issue
Section
Research Articles
License
Copyright (c) 2026 Authors

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
Anis, S. M., Hossan, M. F., Mahi, M. M., Riyad, T., & Uddin, J. (2026). An Explainable Hybrid CNN–Transformer Framework for Jackfruit Leaf Condition Classification. Journal of Data Science and Intelligent Systems. https://doi.org/10.47852/bonviewJDSIS620210203