Multi-Scale Sheep and Goat Face Detection Network Based on Multi-Task Optimization

Face detection serves as the prerequisite and foundation for individual sheep and goat identification. Considering the practical detection process, the facial region of sheep and goats shares similarities with the torso texture features, which could be easily interfered with by the background and other factors, along with the presence of varying face scales. RetinaFace was selected as the framework, with GhostNet used as the backbone for feature extraction, thereby significantly reducing model complexity and computational load. A new feature extraction unit—SRM module—was designed through the integration of the Multi-Source Domain Adaptation (MSDA) attention mechanism and Reparameterized Non-local Cross-scale Feature Exchange Layer 4 (RepNCSPELAN4) to mitigate the impact of environmental factors and enhance the fine-grained feature extraction of the sheep and goat’s face. A new feature fusion network—A_EFPN—was designed through the com-bination of Efficient Reparameterized Generalized-FPN (RepGFPN) and Alterable Kernel Convolution (AKConv), thereby enhancing feature interaction and improving the model’s multi-scale detection ability. An optimized multi-task joint loss function was employed to retain three facial key points: the left eye, right eye, and nose, thereby reducing the number of model regression parameters. Experimental results demonstrate that the proposed method achieved 96.15% Precision, 97.06% Recall, 96.60% F1 Score, 98.31% AP, 2.40% NME, 2.36 G FLOPs, 3.63 M Params, and a weight of 14.75 MB. It was demonstrated to be applicable to the rapid and accurate detection of sheep and goat faces in the actual breeding environment, providing the foundation for subsequent sheep and goat face recognition.

Authors

Institutions

Publication Details

Journal
Animals
Published
2026-08-27
DOI
https://doi.org/10.3390/ani16172685
Primary Topic
Food Supply Chain Traceability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multi-Scale Sheep and Goat Face Detection Network Based on Multi-Task Optimization

You‐Shang ZHANG, Xiaopeng Zhao, Fu Zhang, Baoping Yan et al.
Animals
Food Supply Chain Traceability
article

Multi-Scale Sheep and Goat Face Detection Network Based on Multi-Task Optimization

You‐Shang ZHANG, Xiaopeng Zhao, Fu Zhang, Baoping Yan, Sanling Fu, Tianhua Chen
article en

Abstract

Face detection serves as the prerequisite and foundation for individual sheep and goat identification. Considering the practical detection process, the facial region of sheep and goats shares similarities with the torso texture features, which could be easily interfered with by the background and other factors, along with the presence of varying face scales. RetinaFace was selected as the framework, with GhostNet used as the backbone for feature extraction, thereby significantly reducing model complexity and computational load. A new feature extraction unit—SRM module—was designed through the integration of the Multi-Source Domain Adaptation (MSDA) attention mechanism and Reparameterized Non-local Cross-scale Feature Exchange Layer 4 (RepNCSPELAN4) to mitigate the impact of environmental factors and enhance the fine-grained feature extraction of the sheep and goat’s face. A new feature fusion network—A_EFPN—was designed through the com-bination of Efficient Reparameterized Generalized-FPN (RepGFPN) and Alterable Kernel Convolution (AKConv), thereby enhancing feature interaction and improving the model’s multi-scale detection ability. An optimized multi-task joint loss function was employed to retain three facial key points: the left eye, right eye, and nose, thereby reducing the number of model regression parameters. Experimental results demonstrate that the proposed method achieved 96.15% Precision, 97.06% Recall, 96.60% F1 Score, 98.31% AP, 2.40% NME, 2.36 G FLOPs, 3.63 M Params, and a weight of 14.75 MB. It was demonstrated to be applicable to the rapid and accurate detection of sheep and goat faces in the actual breeding environment, providing the foundation for subsequent sheep and goat face recognition.

AnimalsVol. 16(17)
Henan University of Science and Technology (CN), Jilin University (CN), Jilin Agricultural University (CN), Luoyang Institute of Science and Technology (CN)
Life in Land
Openalex Percentile: Top 12%
Food Supply Chain Traceability
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.