College of Electronic and Information Engineering, Wuzhou University, Wuzhou, China.
College of Information Technology, Jilin Agricultural University, Changchun, China.
PLoS One. 2021 Nov 29;16(11):e0260510. doi: 10.1371/journal.pone.0260510. eCollection 2021.
In actual farms, individual livestock identification technology relies on large models with slow recognition speeds, which seriously restricts its practical application. In this study, we use deep learning to recognize the features of individual cows. Alexnet is used as a skeleton network for a lightweight convolutional neural network that can recognise individual cows in images with complex backgrounds. The model is improved for multiple multiscale convolutions of Alexnet using the short-circuit connected BasicBlock to fit the desired values and avoid gradient disappearance or explosion. An improved inception module and attention mechanism are added to extract features at multiple scales to enhance the detection of feature points. In experiments, side-view images of 13 cows were collected. The proposed method achieved 97.95% accuracy in cow identification with a single training time of only 6 s, which is one-sixth that of the original Alexnet. To verify the validity of the model, the dataset and experimental parameters were kept constant and compared with the results of Vgg16, Resnet50, Mobilnet V2 and GoogLenet. The proposed model ensured high accuracy while having the smallest parameter size of 6.51 MB, which is 1.3 times less than that of the Mobilnet V2 network, which is famous for its light weight. This method overcomes the defects of traditional methods, which require artificial extraction of features, are often not robust enough, have slow recognition speeds, and require large numbers of parameters in the recognition model. The proposed method works with images with complex backgrounds, making it suitable for actual farming environments. It also provides a reference for the identification of individual cows in images with complex backgrounds.
在实际农场中,个体牲畜识别技术依赖于识别速度较慢的大型模型,这严重限制了其实际应用。在本研究中,我们使用深度学习来识别个体牛的特征。Alexnet 被用作一个轻量级卷积神经网络的骨架网络,该网络可以识别图像中具有复杂背景的个体牛。该模型使用短路连接的 BasicBlock 对 Alexnet 进行了多次多尺度卷积的改进,以适应所需的值,并避免梯度消失或爆炸。添加了改进的 inception 模块和注意力机制,以在多个尺度上提取特征,从而增强特征点的检测。在实验中,收集了 13 头奶牛的侧视图图像。所提出的方法在奶牛识别方面的准确率达到 97.95%,单个训练时间仅为 6 秒,是原始 Alexnet 的六分之一。为了验证模型的有效性,保持数据集和实验参数不变,并与 Vgg16、Resnet50、Mobilnet V2 和 GoogLenet 的结果进行比较。所提出的模型在保证高精度的同时,具有最小的参数大小 6.51MB,比以轻量级而闻名的 Mobilnet V2 网络小 1.3 倍。该方法克服了传统方法的缺陷,传统方法需要人工提取特征,通常不够稳健,识别速度较慢,并且识别模型需要大量参数。所提出的方法适用于具有复杂背景的图像,适用于实际的农场环境。它还为具有复杂背景的图像中的个体牛识别提供了参考。