College of Information Technology, Jilin Agricultural University, Changchun, China.
College of Electronic and Information Engineering, Wuzhou University, Wuzhou, China.
PLoS One. 2022 Oct 6;17(10):e0275435. doi: 10.1371/journal.pone.0275435. eCollection 2022.
Individual cow identification is a prerequisite for intelligent dairy farming management, and is important for achieving accurate and informative dairy farming. Computer vision-based approaches are widely considered because of their non-contact and practical advantages. In this study, a method based on the combination of Ghost and attention mechanism is proposed to improve ReNet50 to achieve non-contact individual recognition of cows. In the model, coarse-grained features of cows are extracted using a large sensory field of cavity convolution, while reducing the number of model parameters to some extent. ResNet50 consists of two Bottlenecks with different structures, and a plug-and-play Ghost module is inserted between the two Bottlenecks to reduce the number of parameters and computation of the model using common linear operations without reducing the feature map. In addition, the convolutional block attention module (CBAM) is introduced after each stage of the model to help the model to give different weights to each part of the input and extract the more critical and important information. In our experiments, a total of 13 cows' side view images were collected to train the model, and the final recognition accuracy of the model was 98.58%, which was 4.8 percentage points better than the recognition accuracy of the original ResNet50, the number of model parameters was reduced by 24.85 times, and the model size was only 3.61 MB. In addition, to verify the validity of the model, it is compared with other networks and the results show that our model has good robustness. This research overcomes the shortcomings of traditional recognition methods that require human extraction of features, and provides theoretical references for further animal recognition.
个体牛只识别是智能奶牛养殖管理的前提,对于实现准确、有信息价值的奶牛养殖至关重要。基于计算机视觉的方法由于其非接触式和实用优势而被广泛考虑。在本研究中,提出了一种基于 Ghost 和注意力机制相结合的方法,以改进 ReNet50 实现奶牛的非接触式个体识别。在模型中,使用空洞卷积的大感受野提取奶牛的粗粒度特征,同时在一定程度上减少模型参数的数量。ResNet50 由两个具有不同结构的瓶颈组成,在两个瓶颈之间插入一个即插即用的 Ghost 模块,使用常见的线性运算减少模型的参数数量和计算量,而不会减少特征图。此外,在模型的每个阶段后引入卷积块注意力模块(CBAM),帮助模型为输入的每个部分赋予不同的权重,并提取更关键和重要的信息。在我们的实验中,总共收集了 13 头奶牛的侧视图图像来训练模型,模型的最终识别准确率为 98.58%,比原始 ResNet50 的识别准确率提高了 4.8 个百分点,模型参数数量减少了 24.85 倍,模型大小仅为 3.61MB。此外,为了验证模型的有效性,将其与其他网络进行了比较,结果表明我们的模型具有良好的鲁棒性。这项研究克服了传统识别方法需要人工提取特征的缺点,为进一步的动物识别提供了理论参考。