DOI: 10.3390/computers15080528 ISSN: 2073-431X

Global-Local Feature-Based Rice Leaf Disease Classification Using Two-Stream Deep Neural Network Feature Fusion

Md Nahidur Rahaman, Abdullah Al Mamun, Md. Kamal Hossen, Abdur Rouf, Tumpa Rani Shaha, Jungpil Shin, Mohd Nizam Husen, Abu Saleh Musa Miah

Rice leaf diseases significantly affect crop health and yield potential, creating a need for accurate and timely disease diagnosis. Many existing approaches still rely on single-stream feature extraction architectures, which may limit the ability to simultaneously capture global contextual information and fine-grained disease characteristics. Moreover, limited interpretability and decision-support capability hinder their practical deployment in real-world rice farming. To address these limitations, we employed a framework consists of two parallel feature extraction streams designed to capture different characteristics of disease patterns. The first stream uses a Swin Transformer to learn global contextual information and long-range spatial relationships across the leaf image. The second stream employs ConvNeXt to extract local texture features, including lesion details, spots, and color variations. By combining these complementary representations, the proposed framework effectively integrates global semantic information with local disease-specific features for improved classification performance. The extracted features from the two streams are fused through concatenation followed by an attention-based feature refinement module, enabling adaptive weighting of discriminative features. The refined representation is then used by a fully connected classifier for disease prediction. To enhance model interpretability, Grad-CAM visualization is incorporated to highlight disease-relevant regions and provide visual explanations for the model decisions. Furthermore, an LLM-based advisory module is integrated as a post-diagnosis decision-support component to provide contextualized disease management information and suggestions based on the predicted disease category. The generated suggestions are intended to support, rather than replace, expert agronomic recommendations and should be validated by agricultural professionals before practical application. The proposed framework was evaluated on two rice leaf disease datasets, achieving accuracies of 99.55% and 97.06% on Dataset-1 and Dataset-2, respectively, which are higher than those reported in previous studies. Additionally, five-fold cross-validation on Dataset-1 achieved an average accuracy of 98.91% ± 0.47, demonstrating the stability of the proposed approach. Cross-dataset evaluation using nine common disease classes across both datasets achieved 90.80% accuracy, indicating improved generalization across different data distributions. The proposed framework provides an accurate and explainable approach for rice leaf disease diagnosis in smart agriculture applications.

More from our Archive