Cow Face Detection for Precision Livestock Management using YOLOv8
Keywords:
Livestock Management, Facial Recognition, Cow Face Detection, Transfer Learning, Yolov8Abstract
Precision livestock management is transforming traditional agricultural practices by boosting productivity, increasing yield, and automating tasks, all while reducing labor requirements and minimizing errors. Conventional methods for animal recognition are often unreliable, which has led to a growing preference for using cameras to identify animals, monitor their health, manage data, and maintain cattle records. However, small-scale farms with limited livestock, such as cows and goats, frequently face overfitting problems in traditional machine learning models due to insufficient training data. Identifying individual cows based on facial features becomes more effective after detecting the cow’s face. This study addresses these challenges by fine-tuning YOLOv8, a pretrained model, using a mix of self-captured images and publicly available datasets to detect cow faces in complex environments. Integrating publicly available data and leveraging a pretrained COCO model has significantly improved the model’s ability to generalize and accurately detect cow faces. YOLOv8, equipped with the COCO pretrained model, successfully detects nearly all types of cow faces, which can then be used for individual cow classification. This approach enhances cow recognition accuracy, contributing to more efficient farm management applications.
References
P. J. Zarco-Tejada, N. Hubbard, and P. Loudjani, “Precision agriculture: an opportunity for EU farmers—potential support with the CAP 2014–2020,” *Joint Research Centre (JRC) of the European Commission*, 2014.
S. K. Seelan, S. Laguette, G. M. Casady, and G. A. Seielstad, “Remote sensing applications for precision agriculture: A learning community approach,” *Remote Sensing of Environment*, vol. 88, no. 1-2, pp. 157–169, 2003.
A. Monteiro, S. Santos, and P. Gonçalves, “Precision agriculture for crop and livestock farming—brief review,” *Animals*, vol. 11, no. 8, p. 2345, 2021.
A. I. Awad, “From classical methods to animal biometrics: A review on cattle identification and tracking,” *Computers and Electronics in Agriculture*, vol. 123, pp. 423–435, 2016.
L. Bo, L. Yuefeng, B. Xiang, W. Yue, L. Haofeng, and L. Xuan, “Research on dairy cow identification methods in dairy farm,” *Indian Journal of Animal Research*, vol. 57, no. 12, pp. 1733–1739, 2023.
A. Johnston and D. Edwards, “Welfare implications of identification of cattle by ear tags,” *Veterinary Record*, vol. 138, no. 25, pp. 612–614, 1996.
D. Wardrope, “Problems with the use of ear tags in cattle,” *Veterinary Record*, vol. 137, no. 26, p. 675, 1995.
A. Ruchay, K. Dorofeev, V. Kalschikov, V. Kolpakov, and K. Dzhulamanov, “A depth camera-based system for automatic measurement of live cattle body parameters,” *IOP Conference Series: Earth and Environmental Science*, vol. 341, no. 1, p. 012148, 2019.
M. Vlad, R. A. Parvulet, M. S. Vlad, et al., “A survey of livestock identification systems,” in *Proceedings of the 13th WSEAS International Conference on Automation and Information (ICAI12)*, WSEAS Press Iasi, Romania, pp. 165–170, 2012.
P. Thanapol, K. Lavangnananda, P. Bouvry, F. Pinel, and F. Leprévost, “Reducing overfitting and improving generalization in training convolutional neural networks (CNN) under limited sample sizes in image recognition,” in *2020-5th International Conference on Information Technology (InCIT)*, IEEE, pp. 300–305, 2020.
I. K. Mirani, C. Tianhua, M. A. A. Khan, S. M. Aamir, and W. Menhaj, “Object recognition in different lighting conditions at various angles by deep learning method,” *arXiv preprint arXiv:2210.09618*, 2022.
X. Lei, X. Wen, and Z. Li, “A multi-target cow face detection model in complex scenes,” *The Visual Computer*, pp. 1–22, 2024.
J. Redmon, “You only look once: Unified, real-time object detection,” in *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition*, 2016.
J. Solawetz and Francesco, “What is YOLOv8? The ultimate guide,” *https://blog.roboflow.com/what-is-yolov8/*, 2023, accessed: 2023-04-30.

Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 50sea

This work is licensed under a Creative Commons Attribution 4.0 International License.