ODANet: an occlusion and density aware network for small object detection of coffee cherry ripeness in complex field environments
Abstract
Introduction: Coffee cherry ripeness assessment is critical for harvesting efficiency and product quality, yet traditional manual inspection methods suffer from subjectivity and low efficiency. Methods: To address the challenges of detecting small, occluded, and densely distributed coffee cherries in complex field environments, this study proposes an Occlusion and Density Aware Network (ODANet). Built upon the YOLOv8 framework, ODANet integrates three innovative modules: (1) Condition-Guided Windowed Attention (CGWA), which incorporates occlusion and density maps as auxiliary guidance signals for efficient feature enhancement; (2) Attention-guided Space-Preserving Convolution (ASPC), which employs space-to-depth transformation with cascaded attention to preserve spatial information during downsampling; and (3) Dual-Adaptive Dynamic Upsampling (DADU), which achieves content-adaptive feature reconstruction through dual-branch offset prediction with learnable fusion weights. Results: Comprehensive evaluation on a publicly available dataset demonstrates that ODANet achieves state-of-the-art performance among 17 diverse detection architectures, attaining 76.7% mAP@0.5 with a 6.3 percentage point improvement over baseline YOLOv8, while maintaining computational efficiency (8.1 GFLOPs, 30.4M parameters) suitable for real-time deployment. Ablation studies validate the contributions of each module: ASPC improves performance by 2.2%, DADU by 0.6%, and CGWA by 3.5%. Discussion: The model demonstrates robust performance across varying lighting conditions, occlusion levels, and growth stages, making it particularly suitable for practical agricultural deployment. This research provides an efficient solution for small object detection in precision agriculture.
Fields of Study & Subjects
Smart Agriculture and AI
Advanced Neural Network Applications
Coffee research and impacts
Publication details
- Journal / source
- Frontiers in Plant Science
- Publisher
- Frontiers Media SA
- Volume
- 17
- Pages
- 1745060–1745060
- Publication date
- 30 March 2026
- Language
- EN