← Papers

Paper record

ODANet: an occlusion and density aware network for small object detection of coffee cherry ripeness in complex field environments.

Yang W, Song J, Li L, Luo J, Huang L.

Frontiers in plant science · 30 Mar 2026 · 10.3389/fpls.2026.1745060

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.

Code and data availability

The paper analyzes a publicly available coffee cherry dataset hosted on Kaggle, explicitly linked in the data availability statement. This is the paper-specific image dataset used for its coffee cherry ripeness detection experiments. No author code or model checkpoints are stated as available.

Datasetpublic

Publicly available datasets were analyzed in this study. This data can be found here: https://www.kaggle.com/datasets/harisyunanda/dataset-coffee-cherry/data .

Open resource ↗Kaggle · harisyunanda/dataset-coffee-cherry · lines:682-758