农业机械学报2023,Vol.54Issue(z1):267-274,8.DOI:10.6041/j.issn.1000-1298.2023.S1.029
基于改进YOLO v7的生猪群体体温热红外自动检测方法
Automatic Detection Method of Body Temperature in Herd of Pigs Based on Improved YOLO v7
摘要
Abstract
The efficiency of pig body temperature measurement based on thermal infrared technology is low in the process of large-scale pig breeding.Temperature detection method in herd of pigs based on improved YOLO v7 was proposed,and an automatic pig head detection model was constructed.The VoV-GSCSP structure was introduced at the Head layer to reduce the complexity of the network structure.The content-aware reassembly of features(CARAFE)was used to replace the original up-sampling operator of the model to improve the quality of the feature map after zooming in,and strengthen the effective features in the head region of the pig;the receptive field enhancement module(RFE)was introduced to enhance the extraction capability of the feature pyramid on the head region of the pig.RFE was applied to enhance the extraction capability of the feature pyramid for the head region of pigs.The improved YOLO v7 algorithm had a detection accuracy of 87.9%,recall rate of 92.5%,and mean average precision(mAP)of 94.7%for the pig head.Compared with the original YOLO v7,the accuracy was increased by 3.6 percentage points,the recall was increased by 7.0 percentage points,and the mAP was increased by 3.6 percentage points.The average absolute error of temperature extraction of this method was only 0.16℃,and the detection speed was 222 frames/s,which realized the real-time accurate detection of body temperature of group pigs.Comprehensive results of the above experiments showed that the method can automatically localize the head region of pigs,meet the requirements of high efficiency and high precision for the determination of body temperature of pigs,and provide effective technical support for the automatic detection of body temperature in herd of pigs.关键词
生猪群体/体温检测/深度学习/改进YOLO v7/热红外技术/目标检测Key words
herd of pigs/body temperature measurement/deep learning/improved YOLO v7/thermal infrared technology/target detection分类
信息技术与安全科学引用本文复制引用
刘晓文,曾雪婷,李涛,刘刚,丁向东,米阳..基于改进YOLO v7的生猪群体体温热红外自动检测方法[J].农业机械学报,2023,54(z1):267-274,8.基金项目
科技创新2030-重大项目(2021ZD0113801)和财政部和农业农村部:国家现代农业产业技术体系项目(CARS-35) (2021ZD0113801)