English

中国农机化学报

中国农机化学报 ›› 2023, Vol. 44 ›› Issue (10): 224-230.DOI: 10.13733/j.jcam.issn.2095-5553.2023.10.030

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

基于改进YOLOv4-Tiny的自然环境下油茶果识别方法

李庆松,康丽春,饶洪辉,李泽锋,刘木华   

  1. 江西农业大学工学院,南昌市,330045
  • 出版日期:2023-10-15 发布日期:2023-11-09
  • 基金资助:
    江西省教育厅科研项目(GJJ170263)

Recognition method of Camellia oleifera fruit in natural environment based on improved YOLOv4-Tiny

Li Qingsong, Kang Lichun, Rao Honghui, Li Zefeng, Liu Muhua   

  • Online:2023-10-15 Published:2023-11-09

摘要: 针对自然环境下油茶果目标因被枝叶遮挡、重叠、果实颜色与叶片颜色相近等因素出现错检和漏检问题,提出一种基于改进YOLOv4-Tiny的自然环境下油茶果识别方法。在骨干网络中引入大尺度输出特征层和金字塔池化模型,以克服被遮挡或重叠油茶果因网络加深时模型的表征能力不足所带来的网络性能损失;使用Kmeans算法聚类出适合所选数据集的先验框,提高模型检测效果。试验结果表明:改进后YOLOv4-Tiny算法在1 901幅测试集上的召回率为86.15%,mAP为94.19%,F1值为0.9,比改进前分别提高1.2、0.34和2个百分点;改进后该算法单幅图片的平均检测时间为0.025s,检测速度为40.45f/s,比改进前检测时间减少7.41%,检测速度提高3.87%。改进后算法的识别准确率比自编码机和凸壳理论分别提高4.36和1.55个百分点,FasterRCNN、自编码机和凸壳理论的单幅图片检测时间分别是改进后算法的8.4、66.4和19.64倍。该算法可对复杂自然环境下油茶果目标进行识别,满足实时采摘的要求。

关键词: 油茶果, YOLOv4-Tiny网络, 深度学习, 图像识别

Abstract: Aiming at the problem of wrong detection and missing detection of Camellia oleifera fruit in natural environment due to the factors such as occlusion, overlap of branches and leaves, similar color of fruit and leaf, a recognition method of Camellia oleifera fruit in natural environment based on improved YOLOv4-Tiny was proposed. A largescale output feature layer and a pyramid pooling model were introduced into the backbone network, through which the network performance caused by the insufficient representation ability of the model was solved when the network was deepened due to occlusion or overlapping Camellia oleifera fruit. The Kmeans algorithm was used to cluster a priori box suitable for the selected data set to improve the model detection effect. The experimental results showed that the recall rate of the improved YOLOv4-Tiny algorithm on 1 901 test sets was 86.15%, the mAP value was 94.19%, and the F1 value was 0.9, which were 1.2, 0.34 and 2 percentage points higher than before. After the improvement, the average detection time of the algorithm in a single image was 0.025 s, and the detection speed was 40.45 f/s, which was 7.41% less than that before the improvement, and the detection speed was increased by 3.87%. The recognition accuracy of the algorithm in this paper was 4.36 and 1.55 percentage points higher than that of the autoencoder and the convex hull theory, respectively. The single image detection time of FasterRCNN, autoencoder and convex hull theory was 8.4, 66.4 and 19.64 times of the algorithm in this paper, respectively. It was proved that the algorithm had a good effect on the recognition of Camellia oleifera fruit images in complex natural environment, and met the requirements of realtime picking.

Key words: Camellia oleifera fruit, YOLOv4-Tiny network, deep learning, image identification

中图分类号: