Enhanced multi-breed cattle face recognition in complex environments using attention-based deep learning
摘要
Cattle face recognition technology holds significant potential in applications such as livestock insurance, traceability, and real-time monitoring. However, existing methods predominantly focus on single-breed identification, limiting their applicability in multi-breed farms and complex scenarios. This paper proposes an innovative multi-breed cattle face recognition method leveraging image enhancement and deep learning. We introduce an iterative least squares pyramid (ILS-pyramid) algorithm to enhance cattle face images, effectively filtering out hair noise and redundant details. An efficient multi-scale attention-based detection model (EMA-YOLOv8) accurately detects cattle faces in complex backgrounds. Subsequently, an improved global attention residual network (IGAM-iResNet) extracts robust feature vectors for final recognition. Experimental results on a dataset of eight cattle breeds from Jilin Province, China, demonstrate our method’s exceptional performance, achieving a comprehensive accuracy rate of 99.846%, thus setting a new benchmark in multi-breed cattle face recognition. The open-source code and dataset facilitate replication and further research in this domain. The code is available at: https://github.com/xindw211/cattle-face-recognition. The datasets used in this article can be obtained from the following URL: https://pan.baidu.com/s/1wHKT-6R6B9OtxaYZ2N4MOw?pwd=6ckt.