← Papers

Unverified paper record

An attention enhanced CNN ensemble for interpretable and accurate cotton leaf disease classification.

Scientific reports · 10 Jan 2026 · 10.1038/s41598-025-34713-w

Abstract

Precise and timely identification of cotton leaf diseases is essential for sustaining crop yield and quality, yet manual inspection remains time-consuming, labor-intensive, and prone to error. Existing automated approaches are limited by insufficient dataset diversity, inconsistent evaluation practices, limited use of explainable AI (XAI), and high computational cost. To address these challenges, we propose an attention-enhanced CNN ensemble, namely CottonLeafNet, which integrates lightweight convolutional neural networks for accurate cotton leaf disease classification across two publicly available datasets. CottonLeafNet achieves state-of-the-art performance, obtaining 98.33% accuracy, a macro F1-score of 0.9833, Cohen's kappa of 0.9800, a mean PPV of 0.9838, and an NPV of 0.9967 on Dataset D1, with an inference time of 0.51 s per image. On Dataset D2, it reaches 99.43% accuracy, a macro F1-score of 0.9942, Cohen's kappa of 0.9924, a mean PPV of 0.9943, and an NPV of 0.9981, with a 0.40 s inference time. Moreover, a unified eight-class dataset created by merging both datasets yields a test accuracy of 99.08%. Robustness analysis under artificially induced class imbalance further confirms the model's stability, with consistently strong macro F1-scores. To evaluate the generalization capability of the proposed CottonLeafNet, we conducted cross-dataset experiments, and the results indicate that the model maintains moderate performance even when trained and tested on different datasets. Gradient-Weighted Class Activation Mapping (Grad-CAM) visualizations demonstrate that CottonLeafNet reliably attends to disease-relevant regions, enhancing interpretability. Finally, real-time feasibility is validated through a web-based deployment achieving ≈1 s inference per image. These results establish CottonLeafNet as an accurate, robust, interpretable, and computationally efficient solution for automated cotton leaf disease diagnosis.

Plant phenotyping relevance

綿花葉の画像から病害状態を推定する分類手法を開発・評価しており、植物病害フェノタイピングが中心的である。

abstractwe propose an attention-enhanced CNN ensemble, namely CottonLeafNet, which integrates lightweight convolutional neural networks for accurate cotton leaf disease classification across two publicly available datasets.
abstractRobustness analysis under artificially induced class imbalance further confirms the model's stability
abstractFinally, real-time feasibility is validated through a web-based deployment achieving ≈1 s inference per image.

Code and data availability

The paper's plant-phenotyping inputs are three publicly available Kaggle cotton leaf disease image datasets (D1, D2, and cross-dataset D3) explicitly named in the Data availability statement. No author analysis code, trained model checkpoints, or supplementary code repository is disclosed in the supplied blocks.

Datasetpublic

The datasets analyzed during the current study are publicly available in the Kaggle repository. Dataset D1 can be accessed at

Open resource ↗Kaggle · pdf-page:17 lines:68-84
Datasetpublic

The dataset used for cross-dataset testing is publicly available at:

Open resource ↗pdf-page:17 lines:68-84

This is an automatically classified, unverified record. Curator approval is required before any resource enters the Catalog.