Lightweight Pig Face Feature Learning Evaluation and Application Based on Attention Mechanism and Two-Stage Transfer Learning

Author:

Yin Zhe1,Peng Mingkang1,Guo Zhaodong1,Zhao Yue1,Li Yaoyu2,Zhang Wuping1,Li Fuzhong1,Guo Xiaohong3

Affiliation:

1. College of Softwares, Shanxi Agricultural University, Jinzhong 030801, China

2. College of Agricultural Engineering, Shanxi Agricultural University, Jinzhong 030801, China

3. College of Animal Science, Shanxi Agricultural University, Jinzhong 030801, China

Abstract

With the advancement of machine vision technology, pig face recognition has garnered significant attention as a key component in the establishment of precision breeding models. In order to explore non-contact individual pig recognition, this study proposes a lightweight pig face feature learning method based on attention mechanism and two-stage transfer learning. Using a combined approach of online and offline data augmentation, both the self-collected dataset from Shanxi Agricultural University's grazing station and public datasets underwent enhancements in terms of quantity and quality. YOLOv8 was employed for feature extraction and fusion of pig face images. The Coordinate Attention (CA) module was integrated into the YOLOv8 model to enhance the extraction of critical pig face features. Fine-tuning of the feature network was conducted to establish a pig face feature learning model based on two-stage transfer learning. The YOLOv8 model achieved a mean average precision (mAP) of 97.73% for pig face feature learning, surpassing lightweight models such as EfficientDet, SDD, YOLOv5, YOLOv7-tiny, and swin_transformer by 0.32, 1.23, 1.56, 0.43 and 0.14 percentage points, respectively. The YOLOv8-CA model’s mAP reached 98.03%, a 0.3 percentage point improvement from before its addition. Furthermore, the mAP of the two-stage transfer learning-based pig face feature learning model was 95.73%, exceeding the backbone network and pre-trained weight models by 10.92 and 3.13 percentage points, respectively. The lightweight pig face feature learning method, based on attention mechanism and two-stage transfer learning, effectively captures unique pig features. This approach serves as a valuable reference for achieving non-contact individual pig recognition in precision breeding.

Funder

Shanxi Province Breeding Joint Research Project

Integration and Demonstration Promotion of Efficient Pig Farming Technologies

Publisher

MDPI AG

Reference51 articles.

1. Han, L., and Wang, S. (2020). China’s Pork Supply and Demand Situation in 2019 and Outlook for 2020. Agric. Outlook, 16.

2. Plant trait estimation and classification studies in plant phenotyping using machine vision—A review;Kolhar;Inf. Process. Agric.,2023

3. Artificial intelligence in animal farming: A systematic literature review;Bao;J. Clean. Prod.,2022

4. Kulkarni, R., and Di Minin, E. (2023). Towards automatic detection of wildlife trade using machine vision models. Biol. Conserv., 279.

5. Review on Machine Vision-based Weight Assessment for Livestock and Poultry;Xie;Trans. Chin. Soc. Agric. Mach.,2022

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3