# Towards Self-Supervision for Video Identification of Individual Holstein-Friesian Cattle: The Cows2021 Dataset

arXiv: https://arxiv.org/abs/2105.01938 · HTML: https://mlsanity.com/paper/2105.01938/

## Key facts

- Cited by 21 papers in the map (data through 14 Oct 2026).
- Builds on 5 of its 47 references that are in the map.
- First posted on arXiv 5 May 2021.

## Builds on (most cited first, 5 of 5)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [In Defense of the Triplet Loss for Person Re-Identification](https://mlsanity.com/paper/1703.07737/) (2017)
- [Focal Loss for Dense Object Detection](https://mlsanity.com/paper/1708.02002/) (2017)
- [Perspectives on individual animal identification from biology and computer vision](https://mlsanity.com/paper/2103.00560/) (2021)
- [Visual Identification of Individual Holstein-Friesian Cattle via Deep Metric Learning](https://mlsanity.com/paper/2006.09205/) (2020)

## Built on by (most cited first, 21 of 21)

- [WildlifeDatasets: An open-source toolkit for animal re-identification](https://mlsanity.com/paper/2311.09118/) (2023)
- [SeaTurtleID2022: A long-span dataset for reliable sea turtle re-identification](https://mlsanity.com/paper/2211.10307/) (2022)
- [Transformer for Object Re-Identification: A Survey](https://mlsanity.com/paper/2401.06960/) (2024)
- [WildlifeReID-10k: Wildlife re-identification dataset with 10k individual animals](https://mlsanity.com/paper/2406.09211/) (2024)
- [PetFace: A Large-Scale Dataset and Benchmark for Animal Identification](https://mlsanity.com/paper/2407.13555/) (2024)
- [WildFusion: Individual Animal Identification with Calibrated Similarity Fusion](https://mlsanity.com/paper/2408.12934/) (2024)
- [MetaWild: A Multimodal Dataset for Animal Re-Identification with Environmental Metadata](https://mlsanity.com/paper/2501.13368/) (2025)
- [Label a Herd in Minutes: Individual Holstein-Friesian Cattle Identification](https://mlsanity.com/paper/2204.10905/) (2022)
- [CattleEyeView: A Multi-task Top-down View Cattle Dataset for Smarter Precision Livestock Farming](https://mlsanity.com/paper/2312.08764/) (2023)
- [Universal Bovine Identification via Depth Data and Deep Metric Learning](https://mlsanity.com/paper/2404.00172/) (2024)
- [Holstein-Friesian Re-Identification using Multiple Cameras and Self-Supervision on a Working Farm](https://mlsanity.com/paper/2410.12695/) (2024)
- [Pairwise Matching of Intermediate Representations for Fine-grained Explainability](https://mlsanity.com/paper/2503.22881/) (2025)
- [MOO: A Multi-view Oriented Observations Dataset for Viewpoint Analysis in Cattle Re-Identification](https://mlsanity.com/paper/2603.04314/) (2026)
- [DS@GT AnimalCLEF: Triplet Learning over ViT Manifolds with Nearest Neighbor Classification for Animal Re-identification](https://mlsanity.com/paper/2509.12353/) (2025)
- [Public Computer Vision Datasets for Precision Livestock Farming: A Systematic Survey](https://mlsanity.com/paper/2406.10628/) (2024)
- [SeaTurtleID2022: A long-span dataset for reliable sea turtle re-identification](https://mlsanity.com/paper/2311.05524/) (2023)
- [8-Calves Image dataset](https://mlsanity.com/paper/2503.13777/) (2025)
- [AI in Agriculture: A Survey of Deep Learning Techniques for Crops, Fisheries and Livestock](https://mlsanity.com/paper/2507.22101/) (2025)
- [Automated Re-Identification of Holstein-Friesian Cattle in Dense Crowds](https://mlsanity.com/paper/2602.15962/) (2026)
- [Beyond Humans: Multispecies Animal Face Recognition Using Transfer Learning](https://mlsanity.com/paper/2606.09353/) (2026)
- [Advancing Wildlife Conservation through Multimodal Animal Re-Identification with Environmental Metadata](https://mlsanity.com/paper/2609.34094/) (2026)

## Abstract (arXiv)

In this paper we publish the largest identity-annotated Holstein-Friesian cattle dataset Cows2021 and a first self-supervision framework for video identification of individual animals. The dataset contains 10,402 RGB images with labels for localisation and identity as well as 301 videos from the same herd. The data shows top-down in-barn imagery, which captures the breed's individually distinctive black and white coat pattern. Motivated by the labelling burden involved in constructing visual cattle identification systems, we propose exploiting the temporal coat pattern appearance across videos as a self-supervision signal for animal identity learning. Using an individual-agnostic cattle detector that yields oriented bounding-boxes, rotation-normalised tracklets of individuals are formed via tracking-by-detection and enriched via augmentations. This produces a `positive' sample set per tracklet, which is paired against a `negative' set sampled from random cattle of other videos. Frame-triplet contrastive learning is then employed to construct a metric latent space. The fitting of a Gaussian Mixture Model to this space yields a cattle identity classifier. Results show an accuracy of Top-1 57.0% and Top-4: 76.9% and an Adjusted Rand Index: 0.53 compared to the ground truth. Whilst supervised training surpasses this benchmark by a large margin, we conclude that self-supervision can nevertheless play a highly effective role in speeding up labelling efforts when initially constructing supervision information. We provide all data and full source code alongside an analysis and evaluation of the system.
