cs.CVFeb 17, 2026

Automated Re-Identification of Holstein-Friesian Cattle in Dense Crowds

Authors: Phoenix Yu, Tilo Burghardt, Andrew W Dowsey, Neill W Campbell

Organizations: School of Computer Science, Merchant Venturers Building, Woodland Road, University of Bristol, Bristol, BS8 1UB, Bristol, United Kingdom · Bristol Veterinary School, University of Bristol, Langford House, Dolberry, Churchill, Bristol, BS40 5DU, Bristol, United Kingdom

Abstract

Holstein-Friesian detection and re-identification (Re-ID) methods capture individuals well when targets are spatially separate. However, existing approaches, including YOLO-based species detection, break down when cows group closely together. This is particularly prevalent for species which have outline-breaking coat patterns. To boost both effectiveness and transferability in this setting, we propose a new detect-segment-identify pipeline that leverages the Open-Vocabulary Weight-free Localisation and the Segment Anything models as pre-processing stages alongside Re-ID networks. To evaluate our approach, we publish a collection of nine days CCTV data filmed on a working dairy farm. Our methodology overcomes detection breakdown in dense animal groupings, resulting in a 98.93% accuracy. This significantly outperforms current oriented bounding box-driven, as well as SAM species detection baselines with accuracy improvements of 47.52% and 27.13%, respectively. We show that unsupervised contrastive learning can build on this to yield 94.82% Re-ID accuracy on our test data. Our work demonstrates that Re-ID in crowded scenarios is both practical as well as reliable in working farm settings with no manual intervention. Code and dataset are provided for reproducibility.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Animal Re-Identification on Microcontrollers

    Dec 9, 2025Yubo Chen, Di Zhao, Yun Sing Koh +1Efficient Neural Network InferenceAnimal Re-Identification

  2. Calibrated Similarity and Graph Clustering for Open-Set Animal Re-Identification

    Aug 3, 2026Mohamed ElBassat, Seifeldin Elkerdany, Mohamed ElBialy +5Animal Re-IdentificationImage Matching

  3. Visual-Prompt Guided Wildlife Instance-Level Recognition

    Aug 18, 2026Mufhumudzi Muthivhi, Jiahao Huo, Terence van Zyl +1Animal Re-IdentificationObject Detection