RDA-YOLOv8n: A Directionally Refined and Structurally Optimized Approach for Tomato Maturity Detection
Maturity assessment in color-sensitive crops such as tomatoes is a critical requirement for automated harvesting and quality management, yet it remains challenging due to subtle phenotypic differences that are easily affected by illumination variation, occlusion, and complex field backgrounds. These factors limit the effectiveness of lightweight object detectors, while aggressive data augmentation and generic attention mechanisms often provide limited benefits or introduce additional computational overhead. To address these challenges, this study presents a lightweight tomato maturity detection framework based on YOLOv8n that integrates detection-head semantic refinement with structural compression using Ghost-style and depthwise–pointwise convolutions. A Residual Directional Attention (RDA) module was introduced at the detection head to enhance high-level semantic representation through directional depthwise spatial filtering, channel-selective gating, and controlled residual modulation, enabling improved discrimination between visually adjacent ripeness stages without altering color distributions. To preserve real-time efficiency, a compression strategy replaces redundant high-capacity operators in the detection head with lightweight alternatives, reducing model size and computational cost without modifying the detection pipeline. Experimental results on a tomato ripeness dataset show that the proposed framework Yolov8n +RDA-lite improves detection precision from 79.8% to 85.4% and increases localization accuracy from 86.8% to 88.0% [email protected] and from 74.7% to 75.9% [email protected]:0.95, while reducing the parameter count from 3.01 million to 2.68 million. Performance gains are most pronounced for intermediate ripeness stages characterized by high interclass similarity, while stable behavior is maintained for clearly separable classes. The results demonstrate that targeted detection-head refinement combined with structural model compression provides an effective balance between detection accuracy and computational efficiency for tomato maturity assessment.
Authors
- Nicola Amoroso (ORCID: https://orcid.org/0000-0003-0211-0783)
- Rameez Ahsen
- A. Monaco (ORCID: https://orcid.org/0000-0002-5968-8642)
- R. Bellotti (ORCID: https://orcid.org/0000-0003-3198-2708)
- S. Tangaro
- Pierpaolo Di Bitonto (ORCID: https://orcid.org/0000-0001-9940-4002)
- Pierfrancesco Novielli (ORCID: https://orcid.org/0000-0001-8773-0636)
- Claudia Zoani (ORCID: https://orcid.org/0000-0002-8328-5894)
- Michele Magarelli (ORCID: https://orcid.org/0009-0008-9119-5638)
- Donato Romano
Institutions
- National Agency for New Technologies, Energy and Sustainable Economic Development (IT)
- Istituto Nazionale di Fisica Nucleare, Sezione di Bari (IT)
- University of Bari Aldo Moro (IT)
Publication Details
- Journal
- Journal of Agriculture and Food Research
- Published
- 2026-09-01
- DOI
- https://doi.org/10.1016/j.jafr.2026.103258
- Primary Topic
- Cell Image Analysis Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission