English

中国农机化学报

中国农机化学报 ›› 2025, Vol. 46 ›› Issue (7): 145-152.DOI: 10.13733/j.jcam.issn.2095-5553.2025.07.022

• 农业智能化研究 • 上一篇    下一篇

基于YOLOv8n绿橙检测算法研究

陈思,李俊萩,孔德肖,张晴晖,孙文朔   

  1. (西南林业大学大数据与智能工程学院,昆明市,650224)
  • 出版日期:2025-07-15 发布日期:2025-07-02
  • 基金资助:
    云南省科技计划项目(202301BD070001—127);森林生态大数据国家林业和草原局重点实验室重点项目(2022—BDK—05)

Research on green orange detection algorithm based on YOLOv8n

Chen Si, Li Junqiu, Kong Dexiao, Zhang Qinghui, Sun Wenshuo   

  1. (College of Big Data and Intelligent Engineering, Southwest Forestry University, Kunming, 650224, China)
  • Online:2025-07-15 Published:2025-07-02

摘要: 绿橙果实颜色与枝叶颜色相近,识别难度大。针对绿橙高精度检测及模型轻量化改进问题,选取四川省眉山市橙子基地的“绿橙”为研究对象,设计一种基于YOLOv8n的目标检测改进算法ESN—YOLO。首先,在Neck端引入GSConv和VoV—GSCSP模块,显著减小模型参数;然后,在Neck网络层融合SimAM注意力机制,加强模型的检测效果;最后,将模型的损失函数由CIoU修改为EIoU,以提升目标检测精度和准确性。结果表明,改进后ESN—YOLO模型的精确度、mAP@0.5和mAP@0.5∶0.95分别为96.9%、99.7%和83.6%,与原始模型YOLOv8n相比,分别提升3.2%、0.5%和3.6%,改进后算法的模型大小为5 730 KB,模型参数量为2.6MB,比改进前分别减少11.4%和13.9%。ESN—YOLO在模型轻量化和目标检测精度上得到有效平衡。将改进后的模型部署于嵌入式设备Jetson Nano上,模型的轻量化改进使得单张橙子照片在Jetson Nano上的检测速度为732ms,准确率在90%以上。

关键词: 绿橙, 目标检测, 模型轻量化, 深度学习

Abstract: The color of the green orange fruits is similar to that of the branches and leaves, making identification challenging. To solve the problems of high-precision detection and model lightweight improvement of green orange, this study selects the “green orange” from the orange base in Meishan City, Sichuan Province as the research object and proposes an improved target detection algorithm named ESN—YOLO based on YOLOv8n. First, GSConv and VoV—GSCSP modules are introduced into the Neck section of the model to significantly reduce its parameters. Then, the SimAM attention mechanism is integrated into the Neck network layer to enhance the detection performance of the model. Finally, the loss function is modified from CIoU to EIoU to improve the models precision and accuracy in target detection. The results show that the modified ESN—YOLO model achieves an accuracy of 96.9%, mAP@0.5 of 99.7%, and mAP@0.5∶0.95 of 83.6%. Compared with the original YOLOv8n model, these values represent improvements of 3.2%, 0.5%, and 3.6%, respectively. The model size of the improved algorithm is 5730 KB, and the model parameters are 2.6 MB, which are reduced by 11.4% and 13.9%, respectively. ESN—YOLO achieved an effective balance between model lightweight and target detection accuracy. The improved model is deployed on the embedded device Jetson Nano, where the detection speed for a single orange photo is 732ms, with an accuracy rate exceeding 90%. 

Key words: green orange, target detection, model lightweight, deep learning

中图分类号: