Related Experiment Video
Updated: Apr 30, 2026

Deep Neural Networks for Image-Based Dietary Assessment
Published on: March 13, 2021
ODANet: an occlusion and density aware network for small object detection of coffee cherry ripeness in complex field
Wenlong Yang1, Jianan Song1, Liya Li1
1Faculty of Intelligent Manufacturing Engineering, Guizhou Industry Polytechnic College, Guiyang, China.
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.
