苹果成熟度轻量化实时检测模型(GCA-YOLOv8n)的设计与实现

    Design and implementation of a lightweight real-time detection model (GCA-YOLOv8n) for apple ripeness

    • 摘要:
      目的 解决苹果成熟度传统检测模型过大、推理速度慢、检测精度低等问题。
      方法 构建基于改进YOLOv8n的轻量化实时检测模型GCA-YOLOv8n。首先,引入C3Ghost模块替换原模型的C2f模块,实现模型轻量化、提高模型推理速度;其次,引入GhostConv模块替换原模型的Conv,帮助卷积层更有效地提取信息、减少冗余;最后,将ACmix注意力机制添加到原模型结构中,提高模型的特征提取能力和检测精度。将GCA-YOLOv8n模型应用于苹果成熟度检测试验。
      结果 结果表明,GCA-YOLOv8n模型的参数量、浮点运算数、权重文件大小分别为2.0×106、5.7×109、4.4 MB,与YOLOv8n相比分别降低33.1%、29.6%、30.2%,推理速度为130.8帧/s,与YOLOv8n相比提高21.5%,平均精度均值和F1分别为89.2%和82.5%,模型具有较高的检测精度和推理速度。
      结论 研究构建的GCA-YOLOv8n模型在保证检测精度的同时显著降低了模型复杂度与计算量,实现了轻量化与高效性。模型具备较高的实时检测性能,可在移动端边缘设备上稳定运行,可为自动化采摘提供技术支持。

       

      Abstract:
      Objective  To address issues with traditional apple ripeness detection models, including excessive size, slow inference speed and low detection accuracy.
      Method We constructed a lightweight real-time detection model, GCA-YOLOv8n, based on an improved YOLOv8n. First, the C3Ghost module replaced the original model’s C2f module 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 GCA-YOLOv8n model was then applied to apple ripeness detection experiments.
      Result Experimental 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.
      Conclusion The 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 run stably on mobile edge devices, providing technical support for automated harvesting.

       

    /

    返回文章
    返回