YOLOv8轻量化的果园复杂环境下苹果检测算法
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

S225.93

基金项目:

云南省教育厅科学研究(2023J0711/0111723084),农业推广理论与实践案例库的建设(503210305),农林研究生教育中产教融合和科教融合的探索(503210401)


A Lightweight YOLOv8-Based Apple Detection Algorithm for Complex Orchard Environments
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对目前复杂果园环境下苹果目标检测算法存在模型参数量大、计算复杂度高,难以在计算资源匮乏的设备上应用的问题,提出一种改进YOLOv8的果园复杂环境下轻量化苹果目标检测算法YOLOv8n-Apple。引入骨干网络VanillaNet,减少模型参数量,降低模型复杂度;将原始模型C2f模块替换为C2fGhost模块,通过较少的卷积运算来获得相似特征图进一步减少模型参数;使用轻量级上采样算子CARAFE,避免传统上采样算子语义缺失和感受野过小的问题;由于传统损失函数不能完全捕捉到目标之间的相对位置和大小差异,采用WIoU边界框作为回归损失函数。收集包含远景顺光、远景背光、近景顺光、近景背光等成熟苹果照片共计3120 张,从不同角度和背景进行采集,并改进数据增强,避免数据集单个不确定性;本文提出果园环境下改进后的苹果检测模型平均检测精度分别比SSD、Faster R-CNN、YOLOV5、YOLOV7、YOLOV8高7.5个百分点、4.8个百分点、2.2个百分点、3.8个百分点和3.4个百分点,达到90%,检测速度达到286帧,模型大小1.8MB,比原始模型提高了41帧,模型大小仅有其60.0%。

    Abstract:

    Addressing the issues of large model parameters and high computational complexity in apple target detection algorithms for complex orchard environments, which hinder application on devices with limited computational resources, an improved and lightweight apple target detection algorithm named YOLOv8n-Apple based on YOLOv8 was proposed. The backbone network, yaniaNet, was introduced to reduce model parameters and complexity. The original C2f module in the model was replaced with the C2fGhost module, which further decreased model parameters by obtaining similar feature maps through fewer convolutional operations. The lightweight upsampling operator CARAFE was utilized to address the issues of semantic loss and excessively small receptive fields associated with traditional upsampling operators. Given that traditional loss functions cannot fully capture the relative position and size differences between targets, the WIoU bounding box was adopted as the regression loss function. A dataset comprising 3,120 images of mature apples in various scenarios, including distant and close views under front-light and backlight conditions, was collected from diverse angles and backgrounds, to mitigate potential dataset uncertainties. The improved apple detection model for orchard environments demonstrated an average detection accuracy of 90%, which was 7.5, 4.8, 2.2, 3.8, and 3.4 percentage points higher than SSD, Faster R-CNN, YOLOv5, YOLOv7, and YOLOv8, respectively. The detection speed reached 286 frames per second, and the model size was reduced to 1.8 MB, representing an improvement of 41 frames per second compared to the original model, while occupying only 60.0% of size.

    参考文献
    相似文献
    引证文献
引用本文

周晖,杨洁,赵祥飞. YOLOv8轻量化的果园复杂环境下苹果检测算法[J]. 科学技术与工程, 2025, 25(6): 2274-2283.
Zhou Hui, Yang Jie, Zhao Xiangfei. A Lightweight YOLOv8-Based Apple Detection Algorithm for Complex Orchard Environments[J]. Science Technology and Engineering,2025,25(6):2274-2283.

复制
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2024-05-09
  • 最后修改日期:2024-12-19
  • 录用日期:2024-07-09
  • 在线发布日期: 2025-03-06
  • 出版日期:
×
2026年会通知 | “技术经济学驱动智能经济生态构建与治理变革”——中国技术经济学会第三十三届学术年会(2026)会议通知暨征文启事(第一轮)
亟待确认版面费归属稿件,敬请作者关注