Cow body recognition of transformer based on convolutional spatial local feature fusion

  • LIU Hao ,
  • SHEN Lei ,
  • MOU Jiale ,
  • ZHENG Peng
Expand
  • School of Communication Engineering, Hangzhou Dianzi University, Hangzhou Zhejiang 310018, China

Received date: 2022-04-02

  Online published: 2023-03-06

Abstract

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.

Cite this article

LIU Hao , SHEN Lei , MOU Jiale , ZHENG Peng . Cow body recognition of transformer based on convolutional spatial local feature fusion[J]. Journal of Hangzhou Dianzi University, 2023 , 43(1) : 49 -55 . DOI: 10.13954/j.cnki.hdu.2023.01.008

References

[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.
Outlines

/

〈 〉