轻量级卷积神经网络在奶牛体况评分中的应用
Application of lightweight convolutional neural network in scoring body condition of dairy cows
程灿 1冯涛 1黄小平 1郭阳阳 1梁栋 1史道玲2
作者信息
- 1. 安徽大学互联网学院,合肥 230039
- 2. 安徽新华学院电子通信工程学院,合肥 230088
- 折叠
摘要
为对奶牛体况信息进行高效地实时监测以便满足商业化的需求,提出一种改进轻量级注意力机制网络模型(Shuffle-ECANet).首先,针对8 972幅含有奶牛尾部的图像样本,通过专家对奶牛体况进行人工评分,并构建数据集;然后以轻量级ShuffleNet-v2 1×网络为基础,在特征提取过程中引入高效的通道注意力模块,强化网络对奶牛体况特征的提取能力.此外,采用H-Swish激活函数,避免神经元坏死现象;最后通过进一步精简网络结构得到Shuffle-ECANet网络模型.结果显示,Shuffle-ECANet模型针对各类别奶牛的识别准确率为97%以上,且在体况评分(body condition scoring,BCS)误差分别为0、≤0.25和≤0.5的体况评价结果中,Shuffle-ECANet模型均优于EfficientNet-v1、MobileNet-v3、ShuffleNet-v2 1×和ResNet34等模型,证明本研究方法的有效性.
Abstract
The body condition score(BCS)of dairy cows is one of the important indicators of animal health and welfare in precision animal husbandry farm,and an important basis for decision-making and man-agement.Traditional methods of assessing body condition are mainly manual assessments.The traditional method is manual evaluation,which relies on human visual or tactile scoring evaluation of specific areas of the cow's body.Although the cost of manual method is low,it is time-consuming and labor-consuming.The manual evaluation has the disadvantages of subjectivity and low repeatability of scoring results.With the development of artificial intelligence,deep learning technology has been widely used in monitoring ani-mal information.However,there is still a need for an efficient and real-time method of monitoring body con-dition of cow to meet the needs of commercialization.An improved lightweight attention mechanism net-work model(Shuffle-ECANet)was proposed to solve the problems mentioned above.Firstly,8 972 image samples containing the tail of cows were selected,and the body condition of cows was manually scored by animal husbandry experts to construct a relevant dataset.Then,an efficient channel attention module was in-troduced into the feature extraction structure of lightweight ShuffleNet-v2 to strengthen the network's abili-ty to extract body condition features of cow.The H-Swish activation function was used to avoid neuronal necrosis.Finally,the Shuffle-ECANet network model was obtained by further simplifying the network structure.Three evaluation indicators including precision,recall,and F1 were selected to evaluate the perfor-mance of models.Four models including EfficientNet-v1,MobileNet-v3,ShuffleNet-v2 1×and ResNet34 were used for comparative analysis to verify the performance of Shuffle-ECANet network model.The re-sults showed that the Shuffle-ECANet model outperformed EfficientNet-v1,MobileNet-v3,ShuffleNet-v2 1×and ResNet34 in the results of evaluating body condition with BCS estimations within 0,0.25 and 0.50 units,respectively.The effectiveness of Shuffle-ECANet method was proved as well.The lightweight Shuf-fle-ECANet model proposed had an accuracy of more than 97%for each category,indicating that the model can distinguish different body conditions of cows effectively.It will provide the possibility for the refined management of individual body condition of dairy cows in large-scale pastures and a basis for the future ap-plication in low-computing power equipment,and a theoretical basis and idea for the commercialization of scoring body condition of cow.
关键词
体况评分/ShuffleNet-v2网络/注意力机制/智慧养殖/轻量级/激活函数Key words
body condition score/ShuffleNet-v2 network/attention mechanism/smart breeding/lightweight/activation function引用本文复制引用
基金项目
安徽省教育厅自然科学研究项目(KJ2021A0024)
出版年
2024