# Enhanced cattle identification using Siamese network and MobileViT with EMA attention

**Authors:** Mingshuo Han, Baoshan Li, Qi Li, Yueming Wang, Mei Yang, Chang Gao

PMC · DOI: 10.3389/fvets.2025.1660163 · Frontiers in Veterinary Science · 2026-01-21

## TL;DR

This paper introduces a new cattle identification system using advanced AI techniques to improve accuracy in challenging conditions.

## Contribution

The novel CattleMuzzleNet model combines Siamese networks, MobileViT, and EMA attention for robust cattle muzzle recognition.

## Key findings

- CattleMuzzleNet achieved 97.87% accuracy on a dataset of 31,312 images.
- The model's F1-score reached 98.89% with a compact size of 6.9 MB.
- It demonstrates robustness in complex scenarios like occlusion and multi-angle views.

## Abstract

Accurate identification of individual cattle is paramount in livestock insurance to combat fraud. However, the performance of existing muzzle recognition methods degrades in complex scenarios involving occlusion or multi-angle views. This study addresses this limitation by first constructing a comprehensive cattle muzzle image dataset encompassing frontal, multi-angle, and occluded conditions. We then propose CattleMuzzleNet, a lightweight recognition model that integrates a siamese network, an enhanced MobileViT backbone, and an Efficient Multi-scale Attention (EMA) mechanism for robust feature extraction and matching. Its efficacy is systematically validated through comparative experiments on feature extraction networks, ablation studies on the attention mechanism, and confidence threshold analysis. Evaluated on a dataset of 31,312 images from 658 cattle, CattleMuzzleNet achieved an accuracy of 97.87% and an F1-score of 98.89%, with a compact model size of 6.9 MB. The results demonstrate high accuracy and robustness in complex scenarios, providing an effective technical solution for identity verification in cattle insurance.

## Full-text entities

- **Species:** Bos taurus (bovine, species) [taxon 9913]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12867858/full.md

## Figures

7 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12867858/full.md

## References

50 references — full list in the complete paper: https://tomesphere.com/paper/PMC12867858/full.md

---
Source: https://tomesphere.com/paper/PMC12867858