Paper commentary
BoviShift: A Six-Year Multi-Attribute Audit of Visual Cattle Phenotyping Across Animals and Time
Cattle-disjoint and future-year splits change what cattle phenotyping models appear to achieve
- Problem Random image splits can put views of the same animal in both training and test sets, which flatters models. Future-year animals are also untested, because earlier benchmarks share one collection period.
- Method BoviShift is a corpus of six annual cohorts from a cattle marketplace, 2021 to 2026. The authors split it by image, by cattle identity, and by future year, then score a fixed ResNet-50 multi-task model.
- Results The effect of the split depends on the trait. Breed macro-F1 fell by 0.060 under cattle-disjoint splitting, while height MAE improved from 1.948 inches to 1.753 inches.
Why random image splits flatter cattle models
Random image splits can flatter a cattle model because one animal contributes several correlated frames to the data. The model is then scored on new observations, but often of animals it has already seen during training. That identity overlap lets the model exploit animal- or capture-specific cues instead of generalizable phenotype evidence.
Kapoor and Narayanan document how this kind of train–test contamination produces irreproducible results across applied fields. Livestock vision didn't generally adopt subject-level splitting, because many datasets contain one image per animal. Once multi-view stills and video frames are introduced, the leakage question does arise.
The time axis raises a second problem, since a deployed system must process future animals after conditions have changed. Benchmarks assembled during one collection campaign can't test that setting, because their partitions share a common acquisition period. WILDS and Wild-Time study temporal shift in other domains, but neither includes an agricultural or livestock benchmark.
BoviShift keeps the two effects separate by using six consecutive annual cohorts from one marketplace. Its design is repeated cross-sectional rather than longitudinal, so annual differences can't be read as within-animal growth.
Published weight estimators report small errors, but they are validated on about 100 animals or fewer. The mobile-phone system is validated on 108 animals of a single breed, which limits what it can show. At that scale, breed heterogeneity and elapsed time between training and deployment can't be assessed. The authors measure both effects on the same data with the same models, which the cohort structure permits.
A six-year cattle corpus from one marketplace
BoviShift draws six annual cohorts, 2021 to 2026, from the Bengal Meat marketplace. Each listing typically includes four still photographs against a prepared backdrop and a handheld walk-around video. So one animal yields several correlated views, which is why the corpus suits leakage analysis. The 2021 cohort is the earlier CID collection, recovered as 514 animals after re-indexing.
Nearly every animal has exactly four stills, since 2,651 of 2,657 animals have four. Video coverage is 96.6% overall but uneven by year. In 2025, 288 of 344 cattle have an archived video, which leaves 56 without one. Frames were sampled at 31 per video, and 79,390 usable frames remain across 2,566 videos. The release-time frames are separate from the sparser eight-frame protocol used in the experiments.
No cattle identifier recurs across cohorts, so BoviShift is repeated cross-sectional rather than longitudinal. Annual differences mix changes in population, acquisition and annotation, and they don't reflect within-animal growth. Results shouldn't be carried over to dairy cattle, breeding stock or other regions without further validation.
Among the 2024 cattle, 40.0% lack valid weight and price, and those unlabeled animals are systematically larger.
Age is an ordered category from 24 to 48 months, tied to seller-recorded incisor count rather than a verified birth record. Breed categories with fewer than 20 training cattle are pooled into Other, leaving six classes scored with macro-F1. Coat color is reduced to Red versus Non-Red, and the three Cross-Red records are masked. Color is a useful control because its visual simplicity isolates acquisition and cohort effects.
The cohort structure lets image-random and cattle-disjoint splits, plus future-cohort splits, be measured on the same data.
Four configurations that separate identity from time
BoviShift keeps the model family fixed and changes only how the data are partitioned across four configurations. P1 assigns images at random across the 2021 to 2024 cohorts, so 899 of 913 test cattle also occur in training. P1 is intentionally leakage-prone, which makes it a diagnostic rather than an estimate of deployment performance. P2 uses the same cohorts but partitions by cattle ID, with proportions near 70/15/15.
P2 to P4 have no cattle overlap between partitions, so each test animal is unseen during training.

Table 4 : Evaluation configurations. Each split reports images/cattle. P1 is intentionally leakage-prone; P2–P4 are cattle-disjoint.
Original paper · CC BY 4.0 · Mobasshir Bhuiya Shagor, Nilambar Halder Tonmoy, Md Saef Ullah Miah · BoviShift: A Six-Year Multi-Attribute Audit of Visual Cattle Phenotyping Across Animals and Time · Original paper figure · Extracted the figure area from page 7 of the original PDF.P3 is the future-2025 setting: it trains on 2021 to 2023, validates on 2024, and tests on 2025. Because P4 adds 2024 to training, it works as a second future cohort rather than a repeat of P3. P3 and P4 therefore separate the test year from the training window, while P2 keeps the same years and changes only the partition unit.
Explicit manifests fix the cattle IDs and content hashes of every partition before training starts. A verification script rejects any identity or exact-file overlap across partitions. Image-level metrics serve only the P1 to P2 comparison, because P1 averages 1.26 test views per animal while P2 keeps about four. Cattle-level metrics are used for P2 to P4, so each animal counts once in the evaluation.
The ResNet-50 multi-task model and its loss
One shared ImageNet-pretrained ResNet-50 encoder sits under all five attribute predictions in BoviShift. A dropout layer with p equal to 0.2 follows the encoder, so the features are regularized before any head reads them. Breed and color each get their own classification head, because their targets are categorical and need separate class outputs.
Weight, age and height share one joint linear head, since they are continuous and can be regressed together. Regression targets are standardized with the training-set mean and standard deviation before the loss sees them.
The loss is an equally weighted sum of a classification term and a regression term, so each part has coefficient one. The classification term is inverse-frequency-weighted cross-entropy over the breed and color tasks, with weights computed from training image rows. The regression term is Smooth-L1 over all valid standardized regression targets, normalized by the mask sum.
For a residual e, Smooth-L1 with β equal to 1 uses e squared over 2 when |e| is below 1, and |e| minus 1/2 otherwise. Because targets are standardized, the switch from quadratic to linear happens at one training-set standard deviation.
A validity mask makes an unavailable continuous target add neither loss nor a regression metric. Unsupported categorical targets are skipped by cross-entropy, so the Red and Non-Red task never sees masked Cross-Red records. The checkpoint with the lowest total validation loss is kept, and the test set plays no part in that choice. Seeds 42, 123 and 2026 cover P1 to P3, and the seeds change initialization and training order, not the split manifest.
P4 uses seed 42 as one pre-designated held-out run, so its result has no seed spread.
Image-random versus cattle-disjoint results
P1 randomly partitions images from 2021 to 2024, so views of one animal can land on both sides of the split. P1 averages 1.26 test views per animal, while P2 keeps approximately four views per animal. The two configurations also hold different test identities, so the authors compare them with image-level metrics. Each configuration runs over three optimization seeds, and the table gives the mean and sample standard deviation.
Color macro-F1 rises slightly, from 0.885 under P1 to 0.896 under P2, a 0.011 gain. Weight MAE is 36.831 kg for P2 against 35.256 kg for P1, but the P2 seed spread is ±12.075 kg. Age MAE rises from 2.291 months under P1 to 2.422 months under P2, which is 0.131 months higher. Height MAE drops from 1.948 inches under P1 to 1.753 inches under P2, a 0.195-inch improvement.
Breed gets worse under cattle-disjoint splitting while height improves, so the gap depends on the task. The authors don't report a single leakage penalty, because the attributes move in different directions. Weight also varies substantially across seeds, so one training seed can't settle the weight comparison. These differences are descriptive, since the two configurations use matched years but different test identities.
P1 still places the same cattle in training and test, so its image-level scores don't measure deployment performance.
Future cohorts and the constant baselines
On the cattle-level P3 configuration, the multi-task model's weight error does not beat the training-cattle mean. Its three-seed mean is 64.427 kg, worse than the 61.056 kg baseline. Seed variation is large, with a standard deviation of 16.399 kg for weight MAE. Age MAE is 2.824 months, against 2.790 for its baseline, so age doesn't improve either.
Height is the exception, with P3 MAE of 2.328 inches against 3.375 for the training-cattle mean. The 2021 measurement change inflates that height baseline, because the cohort raises the training mean. Color reaches 0.920 macro-F1 against 0.340 for its baseline.
The locked P4 run reaches breed macro-F1 0.312 against 0.144 for the baseline. Color macro-F1 is 0.657 on P4 against 0.329, down from 0.920 on P3. Weight MAE is 38.915 kg against 64.536 kg for the baseline. Age MAE is 2.969 months, against 3.020 for its baseline. Height MAE on P4 is 1.815 inches, against 3.437 for the baseline. The authors report that all five P4 point estimates beat their baselines.
Conditional 95% intervals for P4 breed and color F1 are 0.252 to 0.375 and 0.605 to 0.706.
These P4 gains come from one training seed, so they don't show that the margin holds across retraining. The authors treat the color drop as cohort-specific behavior rather than a stable trend.
Does joint training help?
Multi-task training shares one encoder across all five attributes, and this ablation asks whether that sharing pays off. The authors train five single-task models on P3 with seed 42, one for each attribute. Each single-task model matches the multi-task model in encoder, data split, augmentation, optimizer, training length and checkpoint choice.
That design makes joint supervision with a shared representation the only difference between the two training setups.
Multi-task training reaches a weight MAE of 45.936 kg, while single-task training reaches 63.603 kg. The paired difference is +17.667 kg, with a 95% cattle-bootstrap interval of [+15.325, +19.828]. Age MAE drops from 2.691 months to 2.516 months, a difference of +0.175 with an interval of [+0.090, +0.257]. Height MAE falls from 1.928 inches to 1.799 inches, and its interval of [+0.025, +0.233] excludes zero.
Multi-task learning improves every point estimate for this training seed, so the ablation favors sharing across all five attributes.
These intervals resample test cattle around fitted seed-42 checkpoints, so they don't measure retraining variation. They don't establish that the multi-task advantage persists across retraining. Only one optimization seed backs this ablation, which is a limit the authors state directly. Across-seed variation in weight estimation is large, so a single training run is weak evidence of robustness.
Still views and zero-shot video frames
Still-view aggregation compares averaging all still views for each animal against one randomly selected still. The single-view estimate averages 2,000 random selections, and each paired bootstrap replicate redraws a view. For the locked P4 checkpoint, all-view aggregation cuts weight MAE by 1.539 kg, with an interval of 0.072 to 3.048. Height improves by 0.115 inches, with an interval of 0.040 to 0.186.
The authors therefore read aggregation as task- and cohort-dependent, not universally beneficial.
Next, the frozen still-image model runs on walk-around videos, using eight frames per video. The comparison covers only cattle with a decoded video, 288 of 342 in P3 and 381 of 381 in P4.
On every P3 metric, eight-frame aggregation scores worse than all-still aggregation, for example breed at 0.312 versus 0.432. In P4, eight frames give color macro-F1 0.596, compared to 0.680 for one frame, and breed falls to 0.174 from 0.250.
The paper doesn't show that video is intrinsically less informative than stills. The model saw only curated stills in training, so motion blur, occlusion, unfavorable poses, or compression may explain the gap. Video-specific training and quality-aware frame selection remain open directions for the benchmark.
Limitations of the BoviShift benchmark
BoviShift's limitations start with its source, a single operational marketplace whose annual differences mix several changes. Breed labels are imbalanced, color is binary, and marketplace metadata may contain measurement or transcription errors.
The P4 result and the single-task ablation each come from one training seed, so they don't capture retraining variation. The baseline uses one encoder family, which leaves other model families untested.
Video evaluation is zero-shot, and 54 of the P3 test cattle have no video. The P3 test set contains 342 cattle, of which 288 have video, so video results cover only that subset. The 2024 mean weight is biased downward by non-random missingness of weight labels. The authors therefore don't read the observed 2024 value as evidence of temporal shift.
Paper info
- Authors
- Mobasshir Bhuiya Shagor, Nilambar Halder Tonmoy, Md Saef Ullah Miah
- Venue
- arXiv · Preprint
- First published
- 2026-11-10
- Added
- 2026-11-12
- Updated
- 2026-11-10
- Version
- v1
- arXiv
- 2611.14476
- Category
- cs.CV
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Computer vision offers a scalable, non-contact means of estimating livestock traits, but correlated images and video frames make reliable evaluation difficult. Image-random splitting can place views of the same animal in both training and test sets, while deployment further requires transfer to animals captured in future years. We introduce BoviShift, a corpus reconstructed from six consecutive annual cohorts of an operational cattle marketplace collected from 2021 to 2026. It contains 2{,}657 cattle, 10{,}610 still images, and 2{,}566 walk-around videos across nine recorded breed categories. We evaluate three splitting strategies through four configurations: image-random and pooled cattle-disjoint splits over the same development cohorts, followed by separate future-2025 and locked future-2026 evaluations. Using a fixed ResNet-50 multi-task baseline, we assess weight, age, height, breed, and coat color. Differences between image-random and cattle-disjoint splitting are task-dependent rather than a universal leakage penalty. Future-cohort behavior is also attribute- and cohort-specific: breed declines relative to pooled evaluation; mean weight and age performance fails to beat constant baselines in 2025; height remains above baseline; and color transfers well to 2025 but degrades in 2026. Multi-task training improves all five point estimates in a single-seed ablation, still-view aggregation helps selectively, and zero-shot video-frame aggregation exposes a still-to-video domain gap. To our knowledge, BoviShift is the longest-spanning cattle-vision resource combining consecutive annual cohorts with physical and visual attributes.
Quote from the paper
Mobasshir Bhuiya Shagor, Nilambar Halder Tonmoy, Md Saef Ullah Miah (2026). BoviShift: A Six-Year Multi-Attribute Audit of Visual Cattle Phenotyping Across Animals and Time. arXiv:2611.14476v1. https://arxiv.org/abs/2611.14476v1
BibTeX
@misc{shagor2026bovishift,
title = {{BoviShift: A Six-Year Multi-Attribute Audit of Visual Cattle Phenotyping Across Animals and Time}},
author = {Mobasshir Bhuiya Shagor and Nilambar Halder Tonmoy and Md Saef Ullah Miah},
year = {2026},
eprint = {2611.14476},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.14476v1}
}