改进YOLOv8的轻量化猪脸关键点检测

  • 周玉蝶 ,
  • 张春燕 ,
  • 乔印虎 ,
  • 陈泽伟
展开
  • 1.安徽科技学院,安徽 滁州 233100;
    2.安徽云龙粮机有限公司,安徽 阜阳 236500
周玉蝶(1998-),女,研究方向:农业生物环境智能控制、数字畜牧,E-mail:zzq10271202@163.com。
张春燕,女,副教授,博士,研究方向:农业生物环境智能控制、控制技术及理论研究,E-mail:zhangcyan@ahstu.edu.cn。

收稿日期: 2023-09-22

  网络出版日期: 2024-05-29

基金资助

2022年滁州市科技计划项目(2022ZN014,2022ZN016);2021年度教育部中国高校产学研创新基金(2021BCE01004);安徽省教育厅自然科学重大项目:2022AH040238。安徽省粮食机械乡村振兴协同技术服务中心项目(GXXT-2022-077);安徽省自然科学基金面上项目(2308085ME178)

Improved Yolov8 for Lightweight Pen Face Keypoints Detection

  • ZHOU Yudie ,
  • ZHANG Chunyan ,
  • QIAO Yinhu ,
  • CHEN Zewei
Expand
  • 1. Anhui Science and Technology University, Anhui Chuzhou, 233100, China;
    2. Anhui Yunlong Grain Machinery Co., LTD., Anhui Fuyang, 236500, China

Received date: 2023-09-22

  Online published: 2024-05-29

摘要

为了解决YOLOv8-pose关键点检测网络结构复杂、计算量多、参数多等问题,提出一种基于YOLOv8-pose改进的轻量化模型SGS-YOLOv8-pose。在原有的YOLOv8-pose网络上替换骨干网络为ShuffleNetv2,将GhostConv模块整合到Neck中,降低网络计算量,在网络层中加入SE注意力机制,提高模型计算精度;同时采用了WIOU损失函数,使模型的收敛效果更好;改进后的模型与原始模型相比,目标框检测精度提升0.30%,浮点计算量减少33.70%,参数量减少38.55%,模型大小降低了37.18%。试验结果表明:在不同轻量化网络与特征融合方式下,在不同的注意力机制下作对比下,改进后的SGS-YOLOv8-pose模型,能够在保持较高检测精度下使模型浮点计算量和参数量大幅降低,便于后期模型的部署。

本文引用格式

周玉蝶 , 张春燕 , 乔印虎 , 陈泽伟 . 改进YOLOv8的轻量化猪脸关键点检测[J]. 杭州电子科技大学学报, 2024 , 44(2) : 51 -64 . DOI: 10.13954/j.cnki.hdu.2024.02.008

Abstract

In order to solve the problems of complex structure, high computational complexity, and multiple parameters in the YOLOv8-pose keypoints detection network, an improved lightweight model SGS-YOLOv8-pose based on YOLOv8-pose is proposed. It replaces the backbone network with ShuffleNetv2 on the original YOLOv8-pose network, integrates the GhostConv module into the neck to reduce network computation, and addes SEAttention mechanism in the network layer to improve model computation accuracy, and simultaneously uses the WIOU loss function to make the model more effective. Compared with the original model, the improved model achieved a 0.30% improvement in target box detection accuracy, a 33.70% reduction in floating-point computation, and a 38.55% reduction in parameter size, and model size reduced by 37.18%. The experimental results show that under different lightweight networks and feature fusion methods, and under different attention mechanisms, the improved SGS-YOLOv8 pose model and the improved SGS-YOLOv8 pose model can significantly reduce the floating-point computation and parameter count of the model while maintaining high detection accuracy, making it easier to deploy the model in the later stage.

参考文献

[1] 徐金阳,徐爱俊,周素茵,等.基于Kinect相机的猪弯曲体尺测量算法研究[J].东北农业大学学报,2021,52(9):77-85.
[2] 张建龙,冀横溢,滕光辉.基于深度卷积网络的育肥猪体重估测[J].中国农业大学学报,2021,26(8):111-119.
[3] 黄志杰,徐爱俊,周素茵等.融合重参数化和注意力机制的猪脸关键点检测方法[J].农业工程学报,2023,39(12):141-149.
[4] 付博闻,李闯闯,梁爱华.基于改进YOLOv4-tiny的人脸关键点快速检测[J].计算机科学,2022,49(S2):450-454.
[5] 陈凯,林珊玲,林坚普,等.基于Transformer人像关键点检测网络的研究[J].计算机应用研究,2023,40(06):1870-1875,1881.
[6] 吴梦茹,谢秋菊,李欣,等.基于深度学习的猪脸识别方法研究[J].智慧农业导刊,2021,1(09):1-8.
[7] 谢秋菊,吴梦茹,包军,等.融合注意力机制的个体猪脸识别_谢秋菊[J].农业工程学报,2022,38(07):180-188.
[8] 郭阳阳,洪文浩,丁屹,等.基于坐标注意力机制和YOLO v5s模型的山羊脸部检测方法[J].农业机械学报,2023,54(07):313-321.
[9] 宋怀波,华志新,马宝玲,等.基于SimCC-ShuffleNetV2的轻量化奶牛关键点检测方法[J].农业机械学报,2023,54(10):275-281+363.
[10] 胡春海,姜昊,刘斌.改进YOLO5Face的小鼠行为实时分析方法研究[J].燕山大学学报,2023,47(04):359-369.
[11] 赵毓,任艺平,朴欣茹,等.基于改进ShuffleNet V2的轻量级防风药材道地性智能识别[J].智慧农业(中英文),2023,5(02):104-114
[12] WOO S,PARK J,LEE J,et al.CBAM:convolutionalblock attention module[C]//Proceedings of EuropeanConference on Computer Vision.Heidelberg:Springer,2018.
[13] LI H,LI J,WEI H,et al. Slim-Neck by GSConv: A better design paradigm of detector architectures for autonomous vehicles[J]. arXiv preprint arXiv,2022,2206.02424.
[14] LOU H,DUAN X,GUO J, et al. DC-YOLOv8: Small-size object detection algorithm based on camera sensor. Electronics. 2023,12(10):2323.
[15] 周颖,颜毓泽,陈海永等.基于改进YOLOv8的光伏电池缺陷检测[J/OL].http://kns.cnki.net/kcms/detail/31.1690.tn.20230821.1446.128.html,2024-03-31.
[16] LI X,HE M,LIU Y,et al. SPCS: a spatial pyramid convolutional shuffle module for YOLO to detect occluded object[J]. Complex & Intelligent Systems,2023,9(1):301-315.
[17] CENGIL E,ÇıNAR A,Yıldırım M. An Efficient and Fast Lightweight-Model with ShuffleNetv2 Based on YOLOv5 for Detection of Hardhat-Wearing[J]. Review of Computer Engineering Studies,2022,9(3):116-123.
[18] JI W,PAN Y,XU B,et al. A real-time apple targets detection method for picking robot based on ShufflenetV2-YOLOX[J]. Agriculture,2022,12(6):856.
[19] LIU Y,SHAO Z,HOFFMANN N. Global attention mechanism: Retain information to enhance channel- spatial interactions[J]. arXiv preprint arXiv,2021,2112.05561.
[20] 虞秋辰,周若华,袁庆升.基于Ghost-SE-Res2Net的多模型融合语音唤醒词检测方法[J].计算机工程,2024,50(03):52-59.
[21] 熊恩杰,张荣芬,刘宇红,等.面向交通标志的Ghost-YOLOv8检测算法[J].计算机工程与应用,2023,59(20):200-207.
[22] 中华人民共和国农业部.猪传染性萎缩性鼻炎诊断技术:NY/T 546-2015[S].北京:中国标准出版社,2015.
[23] 高昂,梁兴柱,夏晨星,等.一种改进YOLOv8的密集行人检测算法[J].图学学报,2023,44(05):890-898.
[24] 袁红春,陶磊.基于改进的Yolov8商业渔船电子监控数据中鱼类的检测与识别[J].大连海洋大学学报,2023,38(03):533-542.
[25] LIN T Y,DOLLÁR P,GIRSHICK R,et al. Feature pyramid networks for object detection[C]//Proceedings of the IEEE conference on computer vision and pattern recognition. 2017:2117-2125.
[26] LIU S,QI L,QIN H,et al. Path aggregation network for instance segmentation[C]//Proceedings of the IEEE conference on computer vision and pattern recognition. 2018:8759-8768.
[27] 皮骏,牛厚兴,高志云.融合CA-BiFPN的轻量化人体姿态估计算法[J].图学学报,2023,44(05):868-878.
[28] LI X,WANG W,WU L,et al. Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection[J].Advances in Neural Information Processing Systems,2020,33:21002-21012.
[29] MA N,ZHANG X,ZHENG H T,et al. Shufflenet v2: Practical guidelines for efficient cnn architecture design[C]//Proceedings of the European conference on computer vision (ECCV). 2018:116-131.
[30] 张泽冰,张冬妍,娄蕴祎,等.改进YOLOv4的野生菌视觉检测方法[J].计算机工程与应用,2023,59(20):228-236.
[31] 蔡振林,刘斌,文劲松.基于ShuffleNetv2-plus-YOLOX算法的压铸制品缺陷检测[J/OL].http://kns.cnki.net/kcms/detail/42.1148.TG.20230811.0916.002.html,4-03-31.
[32] 王源鹏,万海斌,黄凯等.基于YOLOv5s的自动扶梯乘客异常行为实时检测算法[J/OL].http://kns.cnki.net/kcms/detail/31.1690.TN.20230821.1432.102.html,2024-03-31.
[33] 李松,史涛,井方科.改进YOLOv8的道路损伤检测算法[J].计算机工程与应用,2023,59(23):165-174.
[34] 赵宏,冯宇博.基于CGS-Ghost YOLO的交通标志检测研究[J].计算机工程,2023,49(12):194-204.
[35] 杜娟,崔少华,晋美娟,等.改进YOLOv7的复杂道路场景目标检测算法[J].计算机工程与应用,2024,60(01):96-103.
[36] ZHANG Y F,REN W,ZHANG Z,et al. Focal and efficient IOU loss for accurate bounding box regression[J]. Neurocomputing,2022,506:146-157.
[37] 辛文斌,郝惠敏,卜明龙,等.基于ShuffleNetv2-YOLOv3模型的静态手势实时识别方法[J].浙江大学学报(工学版),2021,55(10):1815-1824,1846.
[38] 卢鹏,曹阳,邹国良,等.改进Shufflenetv2_YOLOv5的轻量级SAR图像舰船目标实时检测[J].海洋测绘,2023,43(01):58-62,82.
[39] 曾文献,马月,李伟光.轻量化二维人体骨骼关键点检测算法综述[J].科学技术与工程,2022,22(16):6377-6392.
[40] COOTES T F,TAYLOR C J, COOPER DH, et al. Active Shape Models-Their Training and Application[J]. Computer Vision and Image Understanding,1995,61(1):38-59.
文章导航

/

〈 〉