Cross temporal scale pig face recognition based on deep learning

Pig face recognition is a promising, non-invasive, and cost-effective method for monitoring pigs. However, rapid growth alters their appearance, challenging facial recognition. To address this, we build a cross-time-scale dataset with 33,434 images of 137 Bamaxiang pigs (26–76 days old). To validate the effectiveness of this dataset, we train and evaluat five CNN models on it. Specifically, ConvNeXt, ResNet, GoogLeNet, VGG, and MobileNet achieve accuracies of 98.6%, 97.2%, 96.6%, 93.9%, and 65%, respectively. Temporal scalability analysis show accuracy dropping from 97% to 69% as the training-test gap increased from 0 to 24 days. Besides, ResNet18 with a triplet loss function reaches 88.5% accuracy. While pig face recognition performs well, it remains highly sensitive to short-term facial changes, requiring future models to capture temporal features. • Our dataset uniquely tracks daily changes in indigenous pig faces over 49 days. • The temporal range shows a strong correlation with pig face recognition accuracy. • The ConvNeXt model achieves the highest accuracy of 98.6% in pig face recognition. Besides, temporal scalability analysis shows the accuracy dropping from 98.6% to 69% as the training-test gap increased from 0 to 24 days. • Random erasing data augmentation significantly enhances model performance. • Grad-CAM algorithm effectively demystifies model decision processes.

Authors

Institutions

Publication Details

Journal
Journal of Agriculture and Food Research
Published
2025-05-07
DOI
https://doi.org/10.1016/j.jafr.2025.102002
Citations
1
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
1.24
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cross temporal scale pig face recognition based on deep learning

Xinggang Wang, Zihao Zhao, Shuhong Zhao, Dong Wang et al.
1 citations
Journal of Agriculture and Food Research
Industrial Vision Systems and Defect Detection
1.24
article

Cross temporal scale pig face recognition based on deep learning

Xinggang Wang, Zihao Zhao, Shuhong Zhao, Dong Wang, Cheng Wang, T. Luo, Hao Huang, Xuewen Xu
article en
1 citations

Abstract

Pig face recognition is a promising, non-invasive, and cost-effective method for monitoring pigs. However, rapid growth alters their appearance, challenging facial recognition. To address this, we build a cross-time-scale dataset with 33,434 images of 137 Bamaxiang pigs (26–76 days old). To validate the effectiveness of this dataset, we train and evaluat five CNN models on it. Specifically, ConvNeXt, ResNet, GoogLeNet, VGG, and MobileNet achieve accuracies of 98.6%, 97.2%, 96.6%, 93.9%, and 65%, respectively. Temporal scalability analysis show accuracy dropping from 97% to 69% as the training-test gap increased from 0 to 24 days. Besides, ResNet18 with a triplet loss function reaches 88.5% accuracy. While pig face recognition performs well, it remains highly sensitive to short-term facial changes, requiring future models to capture temporal features. • Our dataset uniquely tracks daily changes in indigenous pig faces over 49 days. • The temporal range shows a strong correlation with pig face recognition accuracy. • The ConvNeXt model achieves the highest accuracy of 98.6% in pig face recognition. Besides, temporal scalability analysis shows the accuracy dropping from 98.6% to 69% as the training-test gap increased from 0 to 24 days. • Random erasing data augmentation significantly enhances model performance. • Grad-CAM algorithm effectively demystifies model decision processes.

Journal of Agriculture and Food ResearchVol. 21
Huazhong Agricultural University (CN), Ministry of Agriculture (CA), Huazhong University of Science and Technology (CN)
Openalex Percentile: Top 20%
Industrial Vision Systems and Defect Detection
1.24
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.