Czech J. Anim. Sci., 2025, 70(9):383-396 | DOI: 10.17221/66/2025-CJAS

Computer vision-based approaches to cattle identification: A comparative evaluation of body texture, QR code, and numerical labellingOriginal Paper

Roman Bumbálek ORCID...1, Jean de Dieu Marcel Ufitikirezi ORCID...1, Tomáš Zoubek ORCID...1, Sandra Nicole Umurungi ORCID...1, Radim Stehlík ORCID...1, Zbyněk Havelka ORCID...1, Radim Kuneš ORCID...1, Petr Bartoš ORCID...1,2
1 Department of Technology and Cybernetics, Faculty of Agriculture and Technology, University of South Bohemia in Ceske Budejovice, Ceske Budejovice, Czech Republic
2 Department of Applied Physics and Technology, Faculty of Education, University of South Bohemia in Ceske Budejovice, Ceske Budejovice, Czech Republic

Cattle identification systems are advancing to meet the growing demands of precision livestock management, traceability, and ethical animal treatment. This study investigates three methods: body texture recognition, QR code collars, and numerical labelling, implemented using the YOLOv8 convolutional neural network. Each method was evaluated in terms of accuracy, scalability, adaptability to dynamic herd changes, and operational efficiency under various environmental conditions. Body texture recognition, while leveraging unique natural patterns and achieving a mean Average Precision (mAP50–95) of 0.78 proved limited by its reliance on frequent dataset retraining to accommodate changes in herd composition and susceptibility to misidentification in larger herds. QR code collars demonstrated adaptability in dynamic herds by enabling pre-trained convolutional neural networks to assign reserved codes to new animals without retraining, while removing animals involves simply deleting their codes from the system. This approach also achieved an mAP50–95 of 0.71, which was lower than the body texture-based approach, but offered greater flexibility in herd management. Despite this adaptability, this method demonstrated significant challenges in real-world environments. Occlusion caused by feeders, barriers, or animal movements, along with low-resolution imaging and poor lighting conditions, can compromise detection accuracy, particularly in larger herds with obstructive barn layouts. The numerical labelling method emerged as the most effective solution to dynamic cattle identification, achieving the highest mAP50–95 of 0.84. It provided a scalable and highly accurate approach that integrates seamlessly with automated systems. Unlike traditional body marking techniques such as ear notching and branding, numerical labelling is less invasive, painless, and highly scalable, aligning with ethical livestock management practices while maintaining consistent accuracy across diverse environmental conditions.

Keywords: animal welfare; convolutional neural networks; herd monitoring; livestock biometrics; object detection; precision livestock farming

Received: May 10, 2025; Accepted: September 10, 2025; Prepublished online: September 26, 2025; Published: September 29, 2025  Show citation

ACS AIP APA ASA Harvard Chicago Chicago Notes IEEE ISO690 MLA NLM Turabian Vancouver
Bumbálek R, Ufitikirezi JDDM, Zoubek T, Umurungi SN, Stehlík R, Havelka Z, et al.. Computer vision-based approaches to cattle identification: A comparative evaluation of body texture, QR code, and numerical labelling. Czech J. Anim. Sci. 2025;70(9):383-396. doi: 10.17221/66/2025-CJAS.
Download citation

References

  1. Achour B, Belkadi M, Filali I, Laghrouche M, Lahdir M. Image analysis for individual identification and feeding behaviour monitoring of dairy cows based on convolutional neural networks (CNN). Biosyst Eng. 2020 Oct;198:31-49. Go to original source...
  2. Awad AI. From classical methods to animal biometrics: A review on cattle identification and tracking. Comput Electron Agric. 2016 Apr;123:423-35. Go to original source...
  3. Bai H, Zhou G, Hu Y, Sun A, Xu X, Liu X, Lu C. Traceability technologies for farm animals and their products in China. Food Control. 2017 Sep;79:35-43. Go to original source...
  4. Bezen R, Edan Y, Halachmi I. Computer vision system for measuring individual cow feed intake using RGB-D camera and deep learning algorithms. Comput Electron Agric. 2020 May;172:105345. Go to original source...
  5. Bridle JE. A review of animal identification - from simple manual techniques to automatic transponding systems. Landbauforsch Völkenrode. 1973;18(Sonderheft):127-48.
  6. Hu H, Dai B, Shen W, Wei X, Sun J, Li R, Zhang Y. Cow identification based on fusion of deep parts features. Biosyst Eng. 2020 Apr;192:245-56. Go to original source...
  7. Kim HT, Ikeda Y, Choi HL. The identification of Japanese black cattle by their faces. Asian-Australas J Anim Sci. 2005 Jun;18(6):868-72. Go to original source...
  8. Kumar S, Pandey A, Satwik KSR, Kumar S, Singh SK, Singh AK, Mohan A. Deep learning framework for recognition of cattle using muzzle point image pattern. Measurement. 2018 Feb;116:1-17. Go to original source...
  9. Kumar S, Tiwari S, Singh SK. Face recognition of cattle: Can it be done? Proc Natl Acad Sci India Sect A Phys Sci. 2016 Jun;86(2):137-48. Go to original source...
  10. Landais E. Le marquage du betail dans les systemes pastoraux traditionnels. Rev Elev Med Vet Pays Trop. 2000;53(4):349-63. Go to original source...
  11. Leslie E, Hernandez-Jover M, Newman R, Holyoake P. Assessment of acute pain experienced by piglets from ear tagging, ear notching and intraperitoneal injectable transponders. Appl Anim Behav Sci. 2010 Nov;127(3-4):86-95. Go to original source...
  12. Li S, Fu L, Sun Y, Mu Y, Chen L, Li J, Gong H. Individual dairy cow identification based on lightweight convolutional neural network. PLoS One. 2021 Nov 29;16(11):e0260510. Go to original source... Go to PubMed...
  13. Mahato S, Neethirajan S. Integrating artificial intelligence in dairy farm management - biometric facial recognition for cows. Inf Process Agric. 2024 Oct 9;Forthcoming. Go to original source...
  14. Montalvan S, Arcos P, Sarzosa P, Rocha RA, Yoo SG, Kim Y. Technologies and solutions for cattle tracking: A review of the state of the art. Sensors (Basel). 2024 Oct 9;24(19):6486. Go to original source... Go to PubMed...
  15. Noonan GJ, Rand JS, Priest J, Ainscow J, Blackshaw JK. Behavioural observations of piglets undergoing tail docking, teeth clipping and ear notching. Appl Anim Behav Sci. 1994 Mar;39(3-4):203-13. Go to original source...
  16. Noviyanto A, Arymurthy AM. Beef cattle identification based on muzzle pattern using a matching refinement technique in the SIFT method. Comput Electron Agric. 2013 Nov;99:77-84. Go to original source...
  17. Rossing W. Animal identification: introduction and history. Comput Electron Agric. 1999 Nov;24(1-2):1-4. Go to original source...
  18. Shen W, Hu H, Dai B, Wei X, Sun J, Jiang L, Sun Y. Individual identification of dairy cows based on convolutional neural networks. Multimed Tools Appl. 2020 Jun;79(21-22):14711-24. Go to original source...
  19. Zhao K, He D. Recognition of individual dairy cattle based on convolutional neural networks. Trans Chin Soc Agric Eng. 2015 Mar;31(5):181-7.
  20. Zin TT, Pwint MZ, Seint PT, Thant S, Misawa S, Sumi K, Yoshida K. Automatic cow location tracking system using ear tag visual analysis. Sensors (Basel). 2020 Jun 23;20(12):3564. Go to original source... Go to PubMed...

This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International (CC BY NC 4.0), which permits non-comercial use, distribution, and reproduction in any medium, provided the original publication is properly cited. No use, distribution or reproduction is permitted which does not comply with these terms.