Multi-Scale Sheep and Goat Face Detection Network Based on Multi-Task Optimization.
Fu Zhang, Baoping Yan, Xiaopeng Zhao, Sanling Fu, Yakun Zhang, Tianhua Chen
College of Agricultural Equipment Engineering, Henan University of Science and Technology, Luoyang 471023, China. · College of Physical Engineering, Henan University of Science and Technology, Luoyang 471003, China.
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- FSF-RTDETR: a frequency-spatial feature fusion network for eggplant fruit disease and pest detection in complex agricultural scenes.Frontiers in plant science · 2026
- DFANet: A Lightweight Dual-Branch Feature-Aggregation Network for Metal Surface Defect Detection.Journal of imaging · 2026
- Dynamic small object feature enhancement and detection for remote sensing imagesScientific Reports · 2025
- DMFRNet: Dynamic Multi-Scale Feature Reweighting Network for Dairy Cow Detection.Animals : an open access journal from MDPI · 2026
- A lightweight edge-based wild boar detection framework for wildlife monitoring and decision support in agroecosystems.Journal of environmental management · 2026
- GFLNet: A lightweight real-time detector with knowledge-guided compression in remote sensing images.PloS one · 2026