Open-Set Cattle Muzzle Identification: A Leakage-Controlled Benchmark and Evaluation Protocol
Organizations: Fort Valley State University, School of Environmental, Civil, Agricultural and Mechanical Engineering, Fort Valley, GA, USA · Map Mentors, Department of Electronics and Computer Engineering, Lalitpur, Nepal · Tribhuvan University, Nepal · University of Georgia, USA
Abstract
Reliable individual cattle identification supports disease surveillance, vaccination records, breeding management, and livestock insurance. Although the bovine muzzle provides a stable, non-contact biometric, existing muzzle-recognition systems largely assume a closed set of enrolled animals, limiting their practical deployment. We reformulate cattle muzzle biometrics as an open-set, gallery-based identification problem that can reject previously unseen animals and support incremental enrollment without model retraining. We introduce a leakage-controlled evaluation protocol based on identity-disjoint splits, per-fold retraining, held-out threshold calibration, verified duplicate removal, and bootstrap confidence intervals. We evaluate the framework using two contrasting embedding configurations: a hybrid CNN-ViT metric-learning model and the MegaDescriptor-L foundation model. Under oracle threshold selection, the hybrid model achieves detection-and-identification rates of 98.3%, 96.4%, and 93.6% at target false-acceptance rates of 10^(-1), 10^(-2), and 10^(-3), respectively, while MegaDescriptor-L achieves 99.3%, 98.1%, and 96.1%. However, deployable threshold calibration reveals a substantial difference between oracle and calibrated performance: the hybrid model achieves a false-acceptance rate of 1.03% at a 1% target, whereas MegaDescriptor-L reaches 2.44%. Incremental enrollment further achieves Rank-1 accuracy above 91% with a single reference image and up to 97.3% with eight reference images, without retraining the model or degrading the existing gallery. These results demonstrate that threshold calibration, leakage control, and embedding quality are critical for reliable open-set cattle identification and provide a practical evaluation framework for deployment-oriented animal biometric systems.
Figures & tables
| Stage | Identities | Images |
|---|---|---|
| Original database [ 42 ] | 268 | 4923 |
| fewer than 4 images per identity | 0 | 0 |
| verified duplicate identities | 19 | 280 |
| Retained benchmark | 249 | 4643 |
| Metric | Hybrid CNN–ViT | MegaDescriptor-L |
|---|---|---|
| Rank-1 (%) | ||
| Verification EER (%) | ||
| Open-set EER (%) | ||
| DIR@ (%) | ||
| DIR@ (%) | ||
| DIR@ (%) |
| Score | OSCR-AUC | |||
|---|---|---|---|---|
| Plain cosine | 99.29 | 98.10 | 96.07 | 0.9953 |
| Entropy | 99.29 | 98.10 | 96.04 | 0.9953 |
| AS-norm | 99.29 | 97.85 | 94.92 | 0.9953 |
| Combined | 99.21 | 97.31 | 93.69 | 0.9955 |
| Margin | 99.21 | 97.13 | 92.97 | 0.9954 |
| OpenMax | 91.96 | 90.32 | 89.23 | 0.9354 |
| Rank-1 new | DIR@ new | Rank-1 orig. | Reject unk. | ||
|---|---|---|---|---|---|
| Hybrid | 1 | 91.08 | 75.63 | 99.39 | 98.83 |
| 3 | 95.94 | 86.22 | 99.39 | 98.76 | |
| 5 | 96.35 | 88.28 | 99.38 | 98.80 | |
| 8 | 97.07 | 89.37 | 99.38 | 98.84 | |
| Foundation | 1 | 92.61 | 77.54 | 99.80 | 98.86 |
| 3 | 96.46 | 86.38 | 99.77 | 98.86 |
Biometric Identification
Biometric identification matches or verifies people and animals using distinctive physical, physiological, or behavioral signals.
See all 128 papers