English

中国农机化学报

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

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

基于改进YOLOv7—tiny的烟叶主脉轻量化检测研究

周登峰,李军政,王海毕,刘从,彭柱根,黄楚明   

  1. (湖南农业大学机电工程学院,长沙市,410128)
  • 出版日期:2025-07-15 发布日期:2025-07-02
  • 基金资助:
    湖南省烟草公司科技项目(2023KJC—YC038);湖南省教育厅重点项目(22A0149)

Research on  lightweight detection of tobacco leaf main veins based on improved YOLOv7—tiny

Zhou Dengfeng, Li Junzheng, Wang Haibi, Liu Cong, Peng Zhugen, Huang Chuming   

  1. (College of Electrical and Mechanical Engineering, Hunan Agricultural University, Changsha, 410128, China)

  • Online:2025-07-15 Published:2025-07-02

摘要: 为精准识别烟叶主脉,实现烟叶机械化抓取以及降低抓取破损率,提出一种基于改进YOLOv7—tiny的轻量化烟叶主脉识别模型。首先在原YOLOv7—tiny的网络基础上将backbone提取网络替换为更加轻量的MobileNetV3,并将其深层的非线性激活函数h-swish替换为ReLU激活函数以增强模型的线性表达能力;再将颈部的普通卷积替换为轻量级GSConv并采用范式设计(Slim—Neck),对模型通道进行压缩,除去多余的特征以轻量化网络结构;最后引用SIoU损失函数降低模型的损失值,增强模型对烟叶主脉的融合能力。结果表明:改进模型在烟叶数据集上的平均精度均值mAP为91.3%,在仅损失1.6%的代价下,参数量比原模型减少51.1%,计算量为4.3G,仅为原模型(13.2G)的32.6%,相比于YOLOv5—s(16.5G)、YOLOv6—n(11.4G)、YOLOx—s(26.8G)、YOLOv8—n(8.7G)、YOLOv9—t(7.7G)均有所提升。改进后的模型可以部署在计算资源匮乏的边缘化设备上,为烟叶的机械化收获提供一定的技术支撑。

关键词: 烟叶主脉, 轻量化, 机械化收获, 精准识别, 边缘化部署

Abstract: In order to accurately identify the main vein of tobacco leaf, realize mechanical grasping and reduce the rate of grasping damage, an improved lightweight tobacco leaf main veins recognition model based on YOLOv7—tiny was proposed. Firstly, the original trunk feature extraction network is replaced by a more lightweight MobileNetV3 based on YOLOv7—tiny network, the default h-swish activation function in the module is replaced by ReLU activation function. Then, the common convolution of the neck is replaced by a lightweight GSConv and a Slim—Neck design is adopted to compress the channel of the model and eliminate the redundant feature redundancy in order to lighten the network structure. At last, the SIoU loss function was introduced to reduce the loss value of the model and enhance the fusion ability of the model to the main vein of tobacco. The results showed that the map value of the improved model on the tobacco leaf dataset was 91.3%, at a cost of only 1.6% loss, the parameter quantity was reduced by 51.1% compared with the original model, and the computational load was 4.3 G, only 32.6% of the original model (13.2 G). Compared with YOLOv5—s (16.5 G), YOLOv6—n (11.4 G), Yolox—s (26.8 G), YOLOv8—n (8.7 G), and YOLOv9—t (7.7 G), all of them were improved. The improved model can be deployed in the marginal equipment with scarce computing resources, which provides some technical support for the mechanized harvesting of tobacco leaves.

Key words: tobacco leaf main veins, lightweight, mechanized harvesting, accurate identification, marginal deployment

中图分类号: