Facial recognition of Angus cattle based on the improved YOLOv8n
Author:
Affiliation:

1.Ministry of Education Key Laboratory of Tarim Oasis Agriculture/ College of Information Engineering,Tarim University,Aral 510642,China;2.Ministry of Agriculture and Rural Affairs Key Laboratory of Smart Farming for Agriculltural Animals/ College of Information,Huazhong Agricultural University,Wuhan 430070,China

Clc Number:

S858.23;TP391.41

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • | |
  • Comments
    Abstract:

    An improved YOLOv8n method was used for facial recognition of Angus cattle in captive environments to solve the problem of difficulty in distinguishing facial features caused by Angus cattle's unique black fur and to achieve the accurate and non-contact recognition. A dataset containing 11 000 facial images of 200 Angus cattle at different stages of growth was constructed. Introducing an innovative and enhanced receptive field feature fusion module was introduced to enhance the model's focus on key features. A novel lightweight detection head (LPCDH) was designed for recognizing the facial feature of Angus cattle. The group Taylor pruning method was used to eliminate irrelevant neurons by estimating their importance,thereby reducing computational costs and memory usage,and improving the deployment efficiency of the model. The results showed that the improved model achieved an average recognition accuracy of 92.6%,which was 11.5,3.8,1.8,1.9,5.1,3.9,3.7,and 2.4 percentage higher that of commonly used models including SSDs YOLOv5n,YOLOv8s,YOLOv8m,YOLOv9t,YOLOv10n,RT-Detr,and Mamba-YOLO model,respectively. The designed model was improved by 3.1 percentage in 4-fold cross-validation compared with the original YOLOv8n model. It is indicated that the constructed model is optimized for lightweight memory consumption and computational requirements,making it particularly suitable for real-time recognition on mobile devices and in practical applications,significantly improving the accuracy and efficiency of recognizing the facial feature of Angus cattle. It will have immense potential in individual recognition in the livestock industry.

    Fig.1 Sample dataset images of cattle faces from different angles and with obstructions
    Fig.2 Improved YOLOv8 structure
    Fig.3 Enhanced receptive field feature fusion unit (ERFFU) structure
    Fig.4 Illustrates the structure of the LPCDH
    Fig.5 Changes in channels before and after pruning
    Fig.6 Comparison of different pruning methods
    Fig.7 Comparison of facial recognition performance of partial Angus cattle among different models
    Fig.8 Comparison of heatmaps from YOLOv8n and improved YOLOv8n for cattle detection
    Table 1 Individual identification results of Angus cattle with different models
    Table 2 Comparison of 4-fold cross validation experimental results for different modules of improved YOLOv8n
    Reference
    Related
    Cited by
Get Citation

胡立俊,李旭,李国亮. Facial recognition of Angus cattle based on the improved YOLOv8n[J]. Jorunal of Huazhong Agricultural University,2025,44(2):39-48.

Copy
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:July 16,2024
  • Online: April 02,2025
Article QR Code