Frontiers in Artificial Intelligence

Leakage-resistant and occlusion-aware coconut disease classification using an NRRE–MSFF Swin transformer

Gunanidhi G. S., Harshita Patel

Key points

From the paper's conclusion
  • Results Clean-image performance was near saturation, with the standard Swin configuration achieving a held-out Macro-F1 of 0.9951 ± 0.0029, compared with 0.9935 ± 0.0049 for the complete NRRE–MSFF configuration.

Abstract

Introduction Automated coconut disease classification has achieved increasingly high performance on clean images; however, the reliability of such results may be affected by visually related samples across experimental partitions and by limited evaluation under degraded visual conditions. This study presents a leakage-resistant and robustness-oriented framework for five-class coconut disease classification using the Coconut Tree Disease Dataset. Methods The original 5,798 images were subjected to exact-duplicate, perceptual-similarity, and deep-feature-similarity auditing, resulting in 5,735 retained images organized into 2,476 visually derived scene groups. Group-preserving partitioning produced 4,302 training, 860 validation, and 573 held-out test images, with zero path, SHA-256, and scene-group overlap across the partitions. Five pretrained architectures were initially evaluated under a common experimental protocol, after which a Swin-Small framework integrating Noise-Robust Residual Enhancement (NRRE) and Multi-Stage Feature Fusion (MSFF) was assessed through four controlled ablation configurations across five training seeds. Results Clean-image performance was near saturation, with the standard Swin configuration achieving a held-out Macro-F1 of 0.9951 ± 0.0029, compared with 0.9935 ± 0.0049 for the complete NRRE–MSFF configuration. Under 30% spatial occlusion, however, the corresponding Macro-F1 values were 0.9410 ± 0.0645 and 0.9595 ± 0.0167, respectively, with approximately 37% lower clean-to-occluded degradation for the proposed configuration. These differences were descriptive rather than statistically significant, and the observed advantage did not extend to Gaussian noise. Additional external-collection evaluation also favored the standard Swin model. Discussion Overall, the findings demonstrate the importance of leakage-aware partitioning, multi-seed evaluation, uncertainty analysis, and corruption-specific robustness assessment, while identifying hierarchical multi-stage feature fusion as a promising direction for improving model stability under partial spatial information loss.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Leakage-resistant and occlusion-aware coconut disease classification using an NRRE–MSFF Swin transformer — Science Skim