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

文献类型: 外文期刊

第一作者: Wang, Rong

作者: Wang, Rong;Gao, Ronghua;Li, Qifeng;Dong, Jiabin;Wang, Rong;Gao, Ronghua;Li, Qifeng;Dong, Jiabin

作者机构:

关键词: pig face recognition; open-set recognition; ResNet; attention mechanism; metric learning

期刊名称:AGRICULTURE-BASEL ( 影响因子:3.6; 五年影响因子:3.6 )

ISSN:

年卷期: 2023 年 13 卷 1 期

页码:

收录情况: SCI

摘要: 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.

分类号:

  • 相关文献
作者其他论文 更多>>