融合注意力机制的开集猪脸识别方法
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

北京市自然科学基金项目(4202029)和北京市农林科学院杰出科学家培育专项(JKZX202214)


Open-set Pig Face Recognition Method Combining Attention Mechanism
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对闭集猪脸识别模型无法识别训练集中未曾出现的生猪个体的问题,本文设计了一种融合注意力机制的开集猪脸识别方法,可实现开集猪脸图像识别,识别模型从未处理过的生猪个体。首先基于全局注意力机制、倒置残差结构和深度可分离卷积构建了轻量级的特征提取模块(GCDSC);然后基于高效注意力机制、Ghost卷积和残差网络设计C3ECAGhost模块,提取猪脸图像高层语义特征;最后基于MobileFaceNet网络,融合GCDSC模块、C3ECAGhost模块、SphereFace损失函数和欧氏距离度量方法,构建PigFaceNet模型,实现开集猪脸识别。实验结果表明,GCDSC模块可使模型猪脸识别的准确率提高1.05个百分点,C3ECAGhost模块可将模型准确率进一步提高0.56个百分点。PigFaceNet模型在开集猪脸识别验证中的准确率可达94.28%,比改进前提高1.61个百分点,模型占用存储空间仅为5.44MB,在提高准确率的同时实现了模型轻量化,可为猪场智慧化养殖提供参考方案。

    Abstract:

    To solve the problem that the closed-set pig face recognition model cannot recognize pig individuals that have not appeared in the training set, an open-set pig face recognition method that integrated attention mechanism was proposed, which can realize open-set pig face image recognition and recognize pig individuals that the model had never seen. Firstly, a lightweight feature extraction module (GCDSC) was constructed based on a global attention mechanism, inverted residual structure, and depth separable convolution. Secondly, C3ECAGhost module was designed based on efficient attention mechanism, Ghost convolution, and residual network to extract high-level semantic features of pig face images. Finally, based on the MobileFaceNet network, incorporating GCDSC module, C3ECAGhost module, SphereFace loss function, and Euclidean distance measurement method, the model PigFaceNet was constructed to realize open-set pig face recognition. The experimental results showed that the GCDSC module can improve the accuracy of pig face recognition by 1.05 percentage points, and the C3ECAGhost module can further improve the accuracy of the model by 0.56 percentage points. The accuracy of the PigFaceNet model in open-set pig face recognition verification can reach 94.28%, which was 1.61 percentage points higher than that before modification. The model proposed was a lightweight model with 5.44MB parameters, which can improve the accuracy and provide a reference for intelligent breeding of pig farms.

    参考文献
    相似文献
    引证文献
引用本文

王荣,高荣华,李奇峰,刘上豪,于沁杨,冯璐.融合注意力机制的开集猪脸识别方法[J].农业机械学报,2023,54(2):256-264. WANG Rong, GAO Ronghua, LI Qifeng, LIU Shanghao, YU Qinyang, FENG Lu. Open-set Pig Face Recognition Method Combining Attention Mechanism[J]. Transactions of the Chinese Society for Agricultural Machinery,2023,54(2):256-264.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2022-11-04
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2022-12-22
  • 出版日期: