摘要
针对初生仔猪目标较小、分娩栏内光线变化复杂、仔猪粘连和硬性遮挡现象较为严重等问题,提出一种基于深层卷积神经网络的初生仔猪目标识别方法。将分类和定位合并为一个任务,以整幅图像为兴趣域,利用特征金字塔网络(Feature pyramid network,FPN)算法定位识别仔猪目标;对比了不同通道数数据集以及不同迭代次数对模型效果的影响;该方法支持图像批量处理、视频与监控录像的实时检测和检测结果多样化储存。实验结果表明:在数据集总量相同时,同时包含夜间单通道和白天3通道的数据集,在迭代20 000次时接近模型最优值。模型在验证集和测试集上的精确率分别为95.76%和93.84%,召回率分别为95.47%和94.88%,对分辨率为500像素×375像素的图像检测速度为53.19 f/s,对清晰度为720 P的视频检测速度为22 f/s,可满足实时检测的要求,对全天候多干扰场景表现出良好的泛化能力。
Automatic recognition of newborn piglets has encountered several challenges such as small targets,ambient light variation,piglet adhesive behavior and object occlusion.A one-stage DCNNs method was proposed to automatically and accurately recognize newborn piglets at high computation speed.The method merged classification and localization into one task and took the whole picture as the ROI of feature extraction,then using FPN algorithm to locate and identify piglets,which showed good generalization ability for natural multi-interference scenes.The effects of different channel number data sets and different iterations on the effectiveness of the model were compared.Support for batch image processing,and real-time detection of video and surveillance videos,with multiple storage of detection results.The recognition result of newborn piglets was output into three forms:video,picture and text file.The contents of the text included the number of piglets,the recognition confidence degree and the piglet coordinate.The combination of different output results could identify the state and behavior of piglets.The results showed that when the total amount of the data set was the same,the data set containing both night single channel and daytime three channel was close to the optimal value of the model at 20 000 iterations.The precision of the model on the verification set and the test set were 95.76%and 93.84%,respectively,and the recall rates were 95.47%and 94.88%,respectively.The detection speed of the images with a resolution of 500 pixels×375 pixels was 53.19 f/s.The video detection speed of 720 P was 22 f/s.The proposed system can meet the requirement of real time detection of piglets in a farrowing pen.
作者
沈明霞
太猛
CEDRIC Okinda
刘龙申
李嘉位
孙玉文
SHEN Mingxia;TAI Meng;CEDRIC Okinda;LIU Longshen;LI Jiawei;SUN Yuwen(College of Engineering,Nanjing Agricultural University,Nanjing 210031,China;Key Laboratory of Intelligent Agricultural Equipment in Jiangsu Province,Nanjing 210031,China)
出处
《农业机械学报》
EI
CAS
CSCD
北大核心
2019年第8期270-279,共10页
Transactions of the Chinese Society for Agricultural Machinery
基金
政府间国际科技创新合作重点专项(2017YFE0114400)
国家自然科学基金青年基金项目(31802106)
关键词
初生仔猪
实时检测
深层卷积神经网络
FPN算法
newborn piglet
real-time detection
deep convolution neural network
FPN algorithm