arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.05209cs.CV
收藏

MHAFF:用于牛只识别的 CNN 与 Transformer 多头注意力特征融合

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

Charles Sturt University(查尔斯斯特大学);Food Agility CRC Ltd(食品敏捷合作研究中心有限公司);Gulbali Institute for Agriculture, Water and Environment(古尔巴利农业、水与环境研究所)

Rabin Dulal, Lihong Zheng, Muhammad Ashad Kabir

AI总结:

针对牛只鼻镜识别中 CNN 长程建模不足及加法、拼接融合的缺陷,提出 MHAFF 多头注意力特征融合方法,在两个公开数据集上取得 99.88% 和 99.52% 的最高准确率。

摘要:

卷积神经网络(CNNs)已吸引研究人员关注利用鼻镜图像识别牛只。然而,CNNs 往往无法捕捉鼻镜复杂模式中的长程依赖关系。Transformers 能够应对这些挑战。这启发我们在基于鼻镜图像的牛只识别中融合 CNNs 与 Transformers 的优势。加法和拼接一直是最常用的特征融合技术。然而,加法无法保留判别性信息,而拼接会导致维度增加。这两种方法都是简单操作,无法发现待融合特征之间的关系或交互。本研究旨在克服加法和拼接所面临的问题。本研究首次在牛只识别中提出了一种名为多头注意力特征融合(Multi-Head Attention Feature Fusion,MHAFF)的新方法。MHAFF 在保留不同类型待融合特征原有特性的同时,捕捉它们之间的关系。实验表明,在两个公开牛只数据集上,MHAFF 在准确率方面优于加法和拼接技术以及现有牛只识别方法。MHAFF 表现出优异性能,并能快速收敛,同时在两个牛只数据集上分别达到 99.88% 和 99.52% 的最佳准确率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑