目前,牛身识别技术大多采用卷积神经网络(Convolutional Neural Networks,CNN),CNN只能处理局部邻域信息,容易丢失细节信息。为此,提出一种基于局部特征融合Transformer的牛身识别算法。首先,运用卷积将相邻空间内的牛身局部信息进行融合,增强融合后局部特征信息在不同姿态下的辨别力和鲁棒性;其次,将融合后的局部信息和全局分类信息通过数个多层感知机模块进行分类训练,损失函数采用三元组和标签平滑交叉熵损失,有效提高了牛只多姿态场景下特征的提取。仿真实验结果表明,在复杂场景下,与基于CNN 的牛身识别算法相比,提出的算法有效降低了拒识率,提高了Top1排序性能和AUC值。
Most cow body recognition mehtods use convolutional neural networks (CNN). CNN can only process local neighborhood information, and is easy to lose details. Therefore, a cow body recognition algorithm based on local feature fusion Transformer is proposed. Firstly, the local information of cattle bodies in the adjacent space is fused by convolution to enhance the discrimination and robustness of the fused local feature information under different attitudes. Secondly, the fused local information and global classification information are classified and trained through several multi-layer perceptron modules. The loss function uses triples and tags to smooth the cross entropy loss, which effectively improves the feature extraction in cattle multi pose scenes. Simulation results show that the proposed algorithm effectively reduces the rejection rate and improves the Top1 sorting performance and AUC value compared with the CNN based cow body recognition algorithm in complex scenes.
[1]许贝贝,王文生,郭雷风,等.基于非接触式的牛只身份识别研究进展与展望[J].中国农业科技导报,2020,22(7):79-89.
[2]GOLDEN B L, ROLLIN B E, Switzer Jr R, et al. Retinal vasculature image acquisition apparatus and method: US6766041[P].2004-07-20.
[3]方超,赵林度.基于虹膜识别的肉类食品可追溯系统研究[J].中国安全科学学报,2008,18(7):11-17.
[4]BARRY B, GONZALES-BARRON U A, MCDONNELL K, et al. Using muzzle pattern recognition as a biometric approach for cattle identification[J].Transactions of the ASABE,2007,50(3):1073-1080.
[5]赵凯旋,何东健.基于卷积神经网络的奶牛个体身份识别方法[J].农业工程学报,2015,31(5):181-187.
[6]WANG L Z, MA S S, XUE H R, et al. Study of the technology based on SIFT detection and matching algorithm in the cow's conformation images[J].Journal of Inner Mongolia Agricultural University(Natural Science Edition),2009,30(1):238-242.
[7]CHEN JUANJUAN, LIU CAIXING, GAO YUEFANG, Liang Yun, et al. Cow recognition algorithm based on improved bag of feature model[J].Journal of Computer Applications,2016,36(8):2346-2351.
[8]HU H Q, DAI B S, SHEN W Z, et al. Cow identification based on fusion of deep parts features[J].Biosystems Engineering,2020,192:245-256.
[9]LI S J, FU L L, SUN Y, et al. Individual dairy cow identification based on lightweight convolutional neural network[J].Plos One,2021,16(11):e0260510.
[10]DOSOVITSKIY A, BEYER L, KOLESNIKOV A, et al. An image is worth 16x16 words: transformers for image recognition at scale[J].arXiv Preprint arXiv,2020:2010.11929.
[11]SHARMA C, KAPIL S R, CHAPMAN D. Person re-identification with a locally aware transformer[J].arXiv Preprint arXiv,2021:2106.03720.
[12]WANG H F, WANG Z F, DU M N, et al. Score-CAM: score-weighted visual explanations for convolutional neural networks[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops,2020:24-25.
[13]HE K M, ZHANG X Y, REN S Q, et al. Deep residual learning for image recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition,2016:770-778.