Multi-Directional Shifted Patch Encoding With Transformers for Non-Invasive Cattle Identification

IF 4.4
Niraj Kumar;Sanjay Kumar Singh
{"title":"Multi-Directional Shifted Patch Encoding With Transformers for Non-Invasive Cattle Identification","authors":"Niraj Kumar;Sanjay Kumar Singh","doi":"10.1109/TBIOM.2025.3599374","DOIUrl":null,"url":null,"abstract":"Conventional identification techniques for cattle, such as branding, ear tagging, and notching, though widely implemented, are intrusive and pose scalability limitations in managing large livestock cattle population. While electronic tagging facilitates improved monitoring, it depends on specific devices and is vulnerable to security and maintenance issues. As a non-invasive alternative, biometric identification using unique dermatoglyphic characteristics like muzzle patterns offers a promising direction. Although convolutional neural networks have been applied to extract these biometric features, the use of Vision Transformers remains underexplored due to their dependency on large-scale data, which restricts their effectiveness in real-world agricultural settings with limited datasets. This research presents a transformer-based model incorporating a multi-directional patch tokenization encoding approach involving multiple spatial shifts, coupled with diagonal attention filtering and a global information fusion strategy. This enables the transformer to perform robustly even with constrained training data. The proposed method outperforms traditional Vision Transformer variants, including Swin Transformer and GCViT, and surpasses CNN architectures such as ResNet50 in both accuracy and training efficiency. The final model configuration achieves a peak training accuracy of 98.42% and a validation accuracy of 97.80%. These results demonstrate the viability of transformer-based frameworks, when appropriately adapted, for practical and scalable biometric cattle identification, especially in data-constrained environments.","PeriodicalId":73307,"journal":{"name":"IEEE transactions on biometrics, behavior, and identity science","volume":"7 4","pages":"620-631"},"PeriodicalIF":4.4000,"publicationDate":"2025-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE transactions on biometrics, behavior, and identity science","FirstCategoryId":"1085","ListUrlMain":"https://ieeexplore.ieee.org/document/11126079/","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/8/15 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Conventional identification techniques for cattle, such as branding, ear tagging, and notching, though widely implemented, are intrusive and pose scalability limitations in managing large livestock cattle population. While electronic tagging facilitates improved monitoring, it depends on specific devices and is vulnerable to security and maintenance issues. As a non-invasive alternative, biometric identification using unique dermatoglyphic characteristics like muzzle patterns offers a promising direction. Although convolutional neural networks have been applied to extract these biometric features, the use of Vision Transformers remains underexplored due to their dependency on large-scale data, which restricts their effectiveness in real-world agricultural settings with limited datasets. This research presents a transformer-based model incorporating a multi-directional patch tokenization encoding approach involving multiple spatial shifts, coupled with diagonal attention filtering and a global information fusion strategy. This enables the transformer to perform robustly even with constrained training data. The proposed method outperforms traditional Vision Transformer variants, including Swin Transformer and GCViT, and surpasses CNN architectures such as ResNet50 in both accuracy and training efficiency. The final model configuration achieves a peak training accuracy of 98.42% and a validation accuracy of 97.80%. These results demonstrate the viability of transformer-based frameworks, when appropriately adapted, for practical and scalable biometric cattle identification, especially in data-constrained environments.
基于变压器的多方向移位贴片编码用于非侵入性牛识别
传统的牛识别技术,如烙印、耳朵标记和缺口,虽然得到了广泛实施,但在管理大型牲畜种群方面具有侵入性和可扩展性限制。虽然电子标签有助于改进监控,但它依赖于特定的设备,并且容易受到安全和维护问题的影响。作为一种非侵入性的替代方法,利用独特的皮肤印记特征(如口吻图案)进行生物识别提供了一个很有前景的方向。尽管卷积神经网络已被应用于提取这些生物特征,但由于视觉变形器依赖于大规模数据,这限制了它们在数据集有限的现实农业环境中的有效性,因此其使用仍未得到充分探索。本文提出了一种基于变压器的模型,该模型结合了涉及多个空间移位的多向补丁标记化编码方法,以及对角注意滤波和全局信息融合策略。这使得转换器即使使用受限的训练数据也能健壮地执行。该方法优于传统的Vision Transformer变体,包括Swin Transformer和GCViT,并且在准确率和训练效率方面都超过了ResNet50等CNN架构。最终模型配置的峰值训练准确率为98.42%,验证准确率为97.80%。这些结果表明,在适当调整的情况下,基于变压器的框架对于实际和可扩展的生物识别牛的识别是可行的,特别是在数据受限的环境中。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
10.90
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书