An Explainable Hybrid CNN–Transformer Framework for Jackfruit Leaf Condition Classification

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.

Authors

Institutions

Publication Details

Journal
Journal of Data Science and Intelligent Systems
Published
2026-12-01
DOI
https://doi.org/10.47852/bonviewjdsis620210203
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Explainable Hybrid CNN–Transformer Framework for Jackfruit Leaf Condition Classification

Jia Uddin, Tarifuzzaman Riyad, Sadaf M. Anis, Md. Faysal Hossan et al.
Journal of Data Science and Intelligent Systems
Smart Agriculture and AI
article

An Explainable Hybrid CNN–Transformer Framework for Jackfruit Leaf Condition Classification

Jia Uddin, Tarifuzzaman Riyad, Sadaf M. Anis, Md. Faysal Hossan, Marzia Mahzabin Mahi
article en

Abstract

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.

Journal of Data Science and Intelligent Systems
American International University-Bangladesh (BD), Daffodil International University (BD), BRAC University (BD), Woosong University (KR)
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon