mlsanityData to 14 Oct 2026

MHAFF: Multi-Head Attention Feature Fusion of CNN and Transformer for Cattle Identification

arXiv 2501.05209 ↗First posted 9 Jan 2025cs.CVcited by 5

Not on the map. Why?

Abstract (arXiv)

Convolutional Neural Networks (CNNs) have drawn researchers' attention to identifying cattle using muzzle images. However, CNNs often fail to capture long-range dependencies within the complex patterns of the muzzle. The transformers handle these challenges. This inspired us to fuse the strengths of CNNs and transformers in muzzle-based cattle identification. Addition and concatenation have been the most commonly used techniques for feature fusion. However, addition fails to preserve discriminative information, while concatenation results in an increase in dimensionality. Both methods are simple operations and cannot discover the relationships or interactions between fusing features. This research aims to overcome the issues faced by addition and concatenation. This research introduces a novel approach called Multi-Head Attention Feature Fusion (MHAFF) for the first time in cattle identification. MHAFF captures relations between the different types of fusing features while preserving their originality. The experiments show that MHAFF outperformed addition and concatenation techniques and the existing cattle identification methods in accuracy on two publicly available cattle datasets. MHAFF demonstrates excellent performance and quickly converges to achieve optimum accuracy of 99.88% and 99.52% in two cattle datasets simultaneously.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 28 of its 74 references that are in the map. First posted on arXiv 9 Jan 2025.

Builds on

28 of 74 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  6. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  7. 2022Scalable Diffusion Models with Transformerscited by 6,054
  8. 2016Wide Residual Networkscited by 3,070
  9. 2020Supervised Contrastive Learningcited by 2,829
  10. 2018CBAM: Convolutional Block Attention Modulecited by 2,477
  11. 2016Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learningcited by 1,512
  12. 2017Deformable Convolutional Networkscited by 1,488
16 more
  1. 2016SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and <0.5MB model sizecited by 1,060
  2. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
  3. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
  4. 2022MaxViT: Multi-Axis Vision Transformercited by 476
  5. 2022DeiT III: Revenge of the ViTcited by 419
  6. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  7. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  8. 2023Cross-Entropy Loss Functions: Theoretical Analysis and Applicationscited by 210
  9. 2022DaViT: Dual Attention Vision Transformerscited by 175
  10. 2022FlexiViT: One Model for All Patch Sizescited by 152
  11. 2019Region Attention Networks for Pose and Occlusion Robust Facial Expression Recognitioncited by 127
  12. 2020Attentional Feature Fusioncited by 115
  13. 2022Three things everyone should know about Vision Transformerscited by 90
  14. 2022Next-ViT: Next Generation Vision Transformer for Efficient Deployment in Realistic Industrial Scenarioscited by 65
  15. 2021Facial Expression Recognition with Visual Transformers and Attentional Selective Fusioncited by 49
  16. 2022Adaptive Feature Fusion for Cooperative Perception using LiDAR Point Cloudscited by 29

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.