An Improved YOLOv8n-Based Method for Multi-Object Individual Cattle Recognition Using Facial Features in Feeding Passages

Accurate recognition of each cattle in group environments is essential for modern precision livestock management. This study proposed a multi-object cattle recognition method based on deep learning, enabling precise recognition in feeding passages. A dataset comprising facial images from 135 cattle was constructed, and a data augmentation strategy tailored to cattle facial characteristics was designed to enhance model generalisation. The YOLOv8n network was selected from a comparative experiment and further optimised. For multi-object bounding box regression, the standard CIoU loss was replaced by the MPDIoU loss, improving the mAP50 by 5.4% through optimised corner distance computation. In addition, a coordinate attention mechanism was embedded within the C2F module to strengthen the model’s spatial perception of key facial regions such as the eyes and nose, resulting in a 5.8% improvement in recognition precision. A comparative experiment between image-level segmentation and cattle-level segmentation datasets was carried out, and the proposed method was further validated on an untrained external test set collected from actual feeding Passages. The results demonstrate that, even under challenging conditions such as occlusion and illumination variation, the improved model achieved a classification accuracy of 88% while maintaining an average inference speed of 96.9 frames per second. This non-invasive, real-time recognition approach provides a novel solution for precision feeding in group-housed environments and offers valuable insights for improving the efficiency of livestock monitoring and feeding management systems.

Authors

Institutions

Publication Details

Journal
Agriculture
Published
2025-12-07
DOI
https://doi.org/10.3390/agriculture15242536
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

An Improved YOLOv8n-Based Method for Multi-Object Individual Cattle Recognition Using Facial Features in Feeding Passages

Xinwen Chen, Wenju Zhang, Suhana Samat, Yaowu Wang et al.
Agriculture
Food Supply Chain Traceability
article

An Improved YOLOv8n-Based Method for Multi-Object Individual Cattle Recognition Using Facial Features in Feeding Passages

Xinwen Chen, Wenju Zhang, Suhana Samat, Yaowu Wang, Wensheng Wang
article en

Abstract

Accurate recognition of each cattle in group environments is essential for modern precision livestock management. This study proposed a multi-object cattle recognition method based on deep learning, enabling precise recognition in feeding passages. A dataset comprising facial images from 135 cattle was constructed, and a data augmentation strategy tailored to cattle facial characteristics was designed to enhance model generalisation. The YOLOv8n network was selected from a comparative experiment and further optimised. For multi-object bounding box regression, the standard CIoU loss was replaced by the MPDIoU loss, improving the mAP50 by 5.4% through optimised corner distance computation. In addition, a coordinate attention mechanism was embedded within the C2F module to strengthen the model’s spatial perception of key facial regions such as the eyes and nose, resulting in a 5.8% improvement in recognition precision. A comparative experiment between image-level segmentation and cattle-level segmentation datasets was carried out, and the proposed method was further validated on an untrained external test set collected from actual feeding Passages. The results demonstrate that, even under challenging conditions such as occlusion and illumination variation, the improved model achieved a classification accuracy of 88% while maintaining an average inference speed of 96.9 frames per second. This non-invasive, real-time recognition approach provides a novel solution for precision feeding in group-housed environments and offers valuable insights for improving the efficiency of livestock monitoring and feeding management systems.

AgricultureVol. 15(24)
Henan Academy of Sciences (CN), Agricultural Information Institute (CN), Research Center for Rural Economy (CN), Xinjiang Academy of Animal Science (CN), Chinese Academy of Agricultural Sciences (CN), Ministry of Agriculture and Rural Affairs (CN)
Openalex Percentile: Top 56%
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.