首页 | 本学科首页   官方微博 | 高级检索  
     检索      

融合注意力机制的个体猪脸识别
引用本文:谢秋菊,吴梦茹,包军,尹辉,刘洪贵,李欣,郑萍,刘文洋,陈刚.融合注意力机制的个体猪脸识别[J].农业工程学报,2022,38(7):180-188.
作者姓名:谢秋菊  吴梦茹  包军  尹辉  刘洪贵  李欣  郑萍  刘文洋  陈刚
作者单位:1. 东北农业大学电气与信息学院,哈尔滨 150030; 3. 农业农村部生猪养殖设施工程重点实验室,哈尔滨 150030;;2. 东北农业大学动物科技学院,哈尔滨 150030; 3. 农业农村部生猪养殖设施工程重点实验室,哈尔滨 150030;;4. 朝阳市建平县畜牧技术推广总站,朝阳 122000;;5. 朝阳市凌源市种畜场,朝阳 122000;
基金项目:国家自然科学基金面上项目(32072787);农业农村部生猪养殖设施工程重点实验室课题;财政部和农业农村部国家现代农业产业技术体系项目(CARS-35);黑龙江省博士后资助项目(LBH-Q21070);东北农业大学东农学者计划项目(19YJXG02)
摘    要:随着机器视觉技术的发展,猪脸识别作为猪只个体识别方法之一受到广泛关注。为了探索非接触式的猪只个体精准识别,该研究通过深度学习模型DenseNet融合CBAM(Convolutional Block Attention Module),建立改进的DenseNet-CBAM模型对猪脸进行识别。将DenseNet121模型进行精简,然后将CBAM注意力模块嵌入到精简的DenseNet121分类网络之前,以加强对关键特征的提取,实现猪脸图像的分类。以随机采集的1 195张猪脸图像作为数据集对本文模型进行测试。结果表明,DenseNet-CBAM模型对个体猪脸识别的准确率达到99.25%,模型参数量仅为DenseNet121的1/10;与ResNet50、GoogLetNet和MobileNet模型相比,DenseNet-CBAM的识别准确率分别提高了2.18、3.60和23.94个百分点。研究结果可为智能化养殖过程非接触式个体识别提供参考。

关 键 词:机器视觉  图像处理  注意力机制  猪脸识别  DenseNet
收稿时间:2021/11/2 0:00:00
修稿时间:2022/3/22 0:00:00

Individual pig face recognition combined with attention mechanism
Xie Qiuju,Wu Mengru,Bao Jun,Yin Hui,Liu Honggui,Li Xin,Zheng Ping,Liu Wenyang,Chen Gang.Individual pig face recognition combined with attention mechanism[J].Transactions of the Chinese Society of Agricultural Engineering,2022,38(7):180-188.
Authors:Xie Qiuju  Wu Mengru  Bao Jun  Yin Hui  Liu Honggui  Li Xin  Zheng Ping  Liu Wenyang  Chen Gang
Institution:1. College of Electrical and Information, Northeast Agricultural University, Harbin 150030, China; 3. Key Laboratory of Pig Breeding Facilities Engineering, Harbin 150030, China;;2. College of Animal Science and Technology, Northeast Agricultural University, Harbin 150030, China; 3. Key Laboratory of Pig Breeding Facilities Engineering, Harbin 150030, China;;4. General Station of Animal Husbandry Technology Extension, Jianping County, Chaoyang City, Chaoyang 122000, China;; 5. Lingyuan City Breeding Farm, Chaoyang City, Chaoyang 122000, China;
Abstract:An invasive Radio Frequency Identification (RFID) technology has been widely used for pig identification at present. However, some stress has been exerted on pigs under the examination, particularly easy to drop off during operation. Therefore, it is a high demand for low-cost and non-invasive individual identification using image or video approach. Among them, pig face recognition has received extensive attention with the development of machine vision. Deep neural networks can be expected with great porential to improve the accuracy of the identification models, although there are still some challenges, like the massive parameters, time consuming, and higher hardware dependency. Many attempts have been made to build the Convolutional Neural Network (CNN) models with high performances in animal farm production. However, only a few studies focused on the deep neural networks to classify the pigs using facial images. Fortunately, the structure of DenseNet can be characterized by continuously passing the previous features backwards, leading to the reused features for a higher accuracy of image classification than before. At the same time, the attention mechanism can be selected to effectively reduce the interference of the extra information. DenseNet can be widely expected to combine with the attention mechanism to achieve individual identification. In this study, a pig face recognition model with the integrated DenseNet and attention mechanism was proposed, named DenseNet-CBAM. The CBAM attention module was embedded before a simplified model of DenseNet121 was used to strengthen the extraction of key features of pig face images. The dataset was taken randomly from the video of eight pig faces, where a total of 5 958 images were extracted. Training set, validation set and test set were divided according to the ratio of 6:2:2. Among them, 3 570 images and 1 193 images were used for the model training and verifying, respectively, and 1 195 images were used for the model testing. In addition, the class activation heatmaps on the pig face image directly generated the visual effects on classification and feature extraction for an optimal model selection. A novelty quantitative standard was established to calculate the thermal red area, which was the key feature during the identification. The percentage called coverage (cr) of the red area in the heatmap covering the pig face was used to measure the performance of the attention module in different feature extraction models. The results showed that the average accuracy, average recall, and average precision of the DenseNet-CBAM model for the pig face recognition were 99.25%, 99.20%, and 99.20%, respectively. Notably, the parameter amount of the model was only one-tenth of DenseNet121. The accuracy of pig face recognition increased by 2.18, 3.60 and 23.94 percentage points, respectively, compared with the conventional deep neural networks like ResNet50, GoogLetNet, and MobileNet. In the CBAM attention module, the deep learning network greatly contributed to focusing on the important information which was useful for classification, further improvving the overall performance of the pig face recognition model. The interested region of the classification was mainly concentrated on the pig nose for the distribution of high-temperature regions in the class activation maps when the pig face images were used for the individual identification. Therefore, the CBAM-DenseNet can be used as a pig face recognition model to achieve the purpose of classifying pig individuals. The finding can provide a strong reference for the non-invasive individual recognition in pig farm production.
Keywords:machine vision  image processing  attention mechanism  pig face recognition  DenseNet
点击此处可从《农业工程学报》浏览原始摘要信息
点击此处可从《农业工程学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号