Pig Face Recognition Based on Metric Learning by Combining a Residual Network and Attention Mechanism

被引:14
|
作者
Wang, Rong [1 ,2 ]
Gao, Ronghua [1 ,3 ]
Li, Qifeng [1 ,3 ]
Dong, Jiabin [1 ,3 ]
机构
[1] Beijing Acad Agr & Forestry Sci, Res Ctr Informat Technol, Beijing 100097, Peoples R China
[2] Northwest A&F Univ, Coll Informat Engn, Yangling 712100, Xianyang, Peoples R China
[3] Natl Engn Res Ctr Informat Technol Agr, Beijing 100097, Peoples R China
来源
AGRICULTURE-BASEL | 2023年 / 13卷 / 01期
关键词
pig face recognition; open-set recognition; ResNet; attention mechanism; metric learning; IDENTIFICATION;
D O I
10.3390/agriculture13010144
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
As machine vision technology has advanced, pig face recognition has gained wide attention as an individual pig identification method. This study establishes an improved ResNAM network as a backbone network for pig face image feature extraction by combining an NAM (normalization-based attention module) attention mechanism and a ResNet model to probe non-contact open-set pig face recognition. Then, an open-set pig face recognition framework is designed by integrating three loss functions and two metrics to finish the task with no crossover of individuals in the training and test sets. The SphereFace loss function with the cosine distance as a metric and ResNAM are combined in the framework to obtain the optimal open-set pig face recognition model. To train our model, 37 pigs with a total of 12,993 images were randomly selected from the collected pig face images, and 9 pigs with a total of 3431 images were set as a test set. 900 pairs of positive sample pairs and 900 pairs of negative pairs were obtained from the images in the test set. A series of experimental results show that our accuracy reached 95.28%, which was 2.61% higher than that of a human face recognition model. NAM was more effective in improving the performance of the pig face recognition model than the mainstream BAM (bottleneck attention module) and CBAM (convolutional block attention module). The research results can provide technological support for non-contact open-set individual recognition for intelligent farming processes.
引用
收藏
页数:17
相关论文
共 50 条
  • [1] Open-set Pig Face Recognition Method Combining Attention Mechanism
    Wang R.
    Gao R.
    Li Q.
    Liu S.
    Yu Q.
    Feng L.
    Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery, 2023, 54 (02): : 256 - 264
  • [2] Face Recognition Based on Improved Residual Network and Channel Attention
    Zeng, Jingfang
    Li, Jieyu
    Feng, Linlang
    AUTOMATIC CONTROL AND COMPUTER SCIENCES, 2022, 56 (05) : 383 - 392
  • [3] Face Recognition Based on Improved Residual Network and Channel Attention
    Jieyu Jingfang Zeng
    Linlang Li
    Automatic Control and Computer Sciences, 2022, 56 : 383 - 392
  • [4] Attention-Set based Metric Learning for Video Face Recognition
    Hu, Yibo
    Wu, Xiang
    He, Ran
    PROCEEDINGS 2017 4TH IAPR ASIAN CONFERENCE ON PATTERN RECOGNITION (ACPR), 2017, : 97 - 102
  • [5] Face expression recognition based on attention mechanism of convolution network
    Guo, Xin-Gang
    Cheng, Chao
    Shen, Zi-Qi
    Jilin Daxue Xuebao (Gongxueban)/Journal of Jilin University (Engineering and Technology Edition), 2024, 54 (08): : 2319 - 2328
  • [6] A Lightweight Pig Face Recognition Method Based on Efficient Mobile Network and Horizontal Vertical Attention Mechanism
    Xu, Shuiqing
    Zheng, Haodong
    Tao, Songbing
    Chai, Yi
    He, Qihang
    Chen, Hongtian
    IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 2024, 73 : 1 - 14
  • [7] Individual pig face recognition combined with attention mechanism
    Qiuju X.
    Mengru W.
    Jun B.
    Hui Y.
    Honggui L.
    Xin L.
    Ping Z.
    Wenyang L.
    Gang C.
    Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering, 2022, 38 (07): : 180 - 188
  • [8] Self Residual Attention Network For Deep Face Recognition
    Ling, Hefei
    Wu, Jiyang
    Wu, Lei
    Huang, Junrui
    Chen, Jiazhong
    Li, Ping
    IEEE ACCESS, 2019, 7 : 55159 - 55168
  • [9] Facial expression recognition based on strong attention mechanism and residual network
    Qian, Zhizhe
    Mu, Jing
    Tian, Feng
    Gao, Zhiyu
    Zhang, Jie
    MULTIMEDIA TOOLS AND APPLICATIONS, 2023, 82 (09) : 14287 - 14306
  • [10] Facial expression recognition based on strong attention mechanism and residual network
    Zhizhe Qian
    Jing Mu
    Feng Tian
    Zhiyu Gao
    Jie Zhang
    Multimedia Tools and Applications, 2023, 82 : 14287 - 14306