安徽科技学院学报2024,Vol.38Issue(1) :97-103.DOI:10.19608/j.cnki.1673-8772.2024.0015

基于YOLOv5s的母猪基础行为识别

Sow behavior recognition based on YOLOv5s

陈敏权 陈丰 钟金鹏 刘士静 孟凡盛
安徽科技学院学报2024,Vol.38Issue(1) :97-103.DOI:10.19608/j.cnki.1673-8772.2024.0015

基于YOLOv5s的母猪基础行为识别

Sow behavior recognition based on YOLOv5s

陈敏权 1陈丰 1钟金鹏 1刘士静 1孟凡盛1
扫码查看

作者信息

  • 1. 安徽科技学院 机械工程学院,安徽 凤阳 233100
  • 折叠

摘要

目的:探究机器视觉技术在母猪行为识别中的应用,以及提高遮挡情况下的识别精度.方法:本研究基于YOLOv5s算法,针对母猪的站、坐、躺、爬、趴等 5 种行为,建立母猪行为识别模型.通过使用图像处理技术优化训练数据集,识别模型添加CBAM注意力模块,提高对被遮挡母猪行为的检测精度,最终实现复杂环境下母猪的行为识别,为判断母猪当前状态提供参考.结果:经过优化与反复训练,模型最终检测的精度值较高,达到 97.58%,召回率为 89.69%,单张图片识别时间约为 0.047 s,精确度比未优化前提升了 1.23%.结论:应用YOLOv5s可实现母猪的行为识别,且准确率较高,识别时间较短,识别结果与人工识别结果基本一致,符合猪场实际的养殖要求.

Abstract

Objective:To explore the application of machine vision technology in sow behavior recognition and improve the recognition accuracy in occlusion situations.Methods:Based on the YOLOv5s algorithm,a sow behavior recognition model was established for five behaviors,which were standing,sitting,lying,crawling and lying on the stomach of sows.By using image processing technology to optimize the training dataset,the recognition model added CBAM attention module to improve the detection accuracy of the behavior of the shielded sow,and finally realized the behavior recognition of the sow in complex environments,which provideed a reference for judging the current state of the sow.Results:After optimization and repeated training,the accuracy of the final detection of the model was high,reaching 97.58%,the recall rate was 89.69%,and the recognition time of a single image was about 0.047 s,which was 1.23% higher than before optimization.Conclusion:The application of YOLOv5s could realize the behavior recognition of sows,and the accuracy rate was high,the recognition time was short,and the identification results were basically consistent with the manual identification results,which met the actual breeding requirements of pig farms.

关键词

母猪行为/目标检测/图像处理/算法

Key words

Sow behavior/Object detection/Image processing/Algorithm

引用本文复制引用

基金项目

安徽省高校协同创新项目(GXXT-2019-003)

出版年

2024
安徽科技学院学报
安徽科技学院

安徽科技学院学报

影响因子:0.434
ISSN:1673-8772
参考文献量14
段落导航相关论文