Design and implementation of a lightweight real-time detection model GCA-YOLOv8n for apple ripeness
Abstract
Objective To address issues with traditional apple ripeness detection models, including excessive size, slow inference speed and low detection accuracy. MethodWe constructed a lightweight real-time detection model, GCA-YOLOv8n, based on an improved YOLOv8n. First, the C3Ghost module replaced the C2f module of original model to achieve lightweight design and enhance inference speed. Second, the GhostConv module substituted the original Conv layer to improve information extraction efficiency and reduce redundancy in convolutional layers. Finally, the ACmix attention mechanism was integrated into the original model architecture to boost feature extraction capability and detection accuracy. The improved GCA-YOLOv8n model was applied to apple ripeness detection experiments. ResultExperimental results showed that the GCA-YOLOv8n model achieved 2.0×106 parameters, 5.7×109 floating point operations, and a weight file size of 4.4 MB, representing reductions of 33.1%, 29.6%, and 30.2% respectively compared to YOLOv8n. The inference speed reached 130.8 frames per second, a 21.5% improvement over YOLOv8n. The mean average precision and F1 score were 89.2% and 82.5% respectively, demonstrating high detection accuracy and inference speed. ConclusionThe constructed GCA-YOLOv8n model significantly reduces model complexity and computational load while maintaining detection accuracy, achieving lightweight and efficient performance. The model demonstrates high and real-time detection capability and can operate stably on edge computing devices (including mobile devices), providing technical support for automated harvesting.
Fields of Study & Subjects
Smart Agriculture and AI
Postharvest Quality and Shelf Life Management
Tree Root and Stability Studies
Publication details
- Journal / source
- DOAJ (DOAJ: Directory of Open Access Journals)
- Publication date
- 1 January 2026
- Language
- ZH