Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Vet. Sci.

Sec. Animal Behavior and Welfare

This article is part of the Research TopicAdvances in Precision Livestock Management for Grazing Ruminant SystemsView all 11 articles

Enhanced Cattle Identification using Siamese Network and MobileViT with EMAAttention

Provisionally accepted
Mingshuo  HanMingshuo HanBaoshan  LiBaoshan LiQi  LiQi Li*Yueming  WangYueming WangMei  YangMei YangChang  GaoChang Gao
  • Inner Mongolia University of Science and Technology, Baotou, China

The final, formatted version of the article will be published soon.

In the field of cattle insurance, the application of muzzle print recognition technology is essential for the precise identification of individual cattle and the reduction of fraudulent actions. The effectiveness of current recognition systems is reduced when faced with muzzle prints that are partially concealed or taken from various angles. This work developed a library of cattle muzzle pattern photos featuring frontal views, various angles, and occlusion conditions. A new cattle muzzle pattern recognition model, named CattleMuzzleNet, was created by combining a dual neural network architecture with an improved MobileViT algorithm and integrating an EMA attention mechanism. The model's methodology entails extracting visual features, comparing these features with existing images for similarity, and subsequently producing recognition results. The CattleMuzzleNet model served as the basis for our experimental framework, which included feature extraction network comparison studies, attention module ablation experiments, and algorithm confidence threshold comparison tests. The CattleMuzzleNet model, with a size of only 6.9 MB, is remarkable for achieving an accuracy rate of 97.87% and an F1 score of 98.89%, based on an assessment of a test dataset of 658 animals and 31,312 photos. The experimental findings demonstrate that a similarity level of 0.5 enables CattleMuzzleNet to attain optimal performance, hence offering technical help for the cattle farming insurance sector.

Keywords: attention moudule, Cattle identification, deep learning, MobileViT, SIAMESE network

Received: 05 Jul 2025; Accepted: 16 Dec 2025.

Copyright: © 2025 Han, Li, Li, Wang, Yang and Gao. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Qi Li

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.