← Papers

Paper record

LeafSightX: an explainable attention-enhanced CNN fusion model for apple leaf disease identification.

Haque ME, Farid FA, Siam MK, Absur MN, Uddin J, Abdul Karim H.

Frontiers in artificial intelligence · 30 Jan 2026 · 10.3389/frai.2025.1689865

Abstract

The rapid and precise identification of apple leaf diseases is crucial for minimizing yield loss in precision agriculture. However, many existing deep learning methods struggle to be applicable in real-world settings, are not easily interpretable, and often lack sufficient statistical validation. To address these difficulties, we propose our solution approach LeafSightX . This dual-backbone architecture combines features from DenseNet201 and InceptionV3 using Multi-Head Self-Attention (MHSA) techniques, enhancing representational capability and spatial context reasoning. Our extensive procedure includes specialized preprocessing and limited data augmentation, improving model resilience in many scenarios. Furthermore, LeafSightX integrates explainable AI techniques with Grad-CAM visualizations to improve transparency. In assessments of a five-class apple leaf disease dataset featuring field and laboratory images, LeafSightX demonstrates exceptional performance, attaining a test accuracy of 99.64%, an F1-score of 0.9962, and AUC and PR-AUC scores of 1.000, far surpassing all baseline CNNs. Cross-validated Cohen's Kappa (mean = 0.9917, σ = 0.0020) and AUC (mean = 0.9998) indicate a significant level of predictive consistency. Despite its architectural complexity, the model offers real-time inference capabilities, ensuring per-sample latency suitable for edge device deployment. Additionally, the proposed LeafSightX framework was trained and evaluated on an additional independent apple leaf disease dataset, achieving a test accuracy of 99.69%, demonstrating its robustness and generalization. Our approach is a rigorously evaluated, clear, and highly accurate system for identifying plant diseases, providing a reproducible foundation for the actual application of AI in agriculture.

Code and data availability

The paper uses two public Kaggle apple leaf disease image datasets as its phenotyping inputs; both are directly cited with public URLs. No author analysis code, trained model checkpoints, or supplementary code repository is deposited — the data availability statement only offers contact with corresponding authors.

Datasetpublic

This research utilizes the Apple Tree Leaf Disease dataset, collected from Kaggle and made available by Nirmal (Kaggle, 2025).

Open resource ↗Kaggle · html-lines:128-184
Datasetpublic

Dhar S. (2023). Apple leaf disease classification dataset. Available online at: https://www.kaggle.com/datasets/showravdhar/apple-disease-dataset (Accessed November 1, 2023).

Open resource ↗Kaggle · showravdhar/apple-disease-dataset · html-lines:1449-1484