LA-DeepLab V3+: A Novel Counting Network for Pigs

Accurate identification and intelligent counting of pig herds can effectively improve the level of fine management of pig farms. A semantic segmentation and counting network was proposed in this study to improve the segmentation accuracy and counting efficiency of pigs in complex image segmentation....

Full description

Bibliographic Details
Main Authors: Chengqi Liu, Jie Su, Longhe Wang, Shuhan Lu, Lin Li
Format: Article
Language:English
Published: MDPI AG 2022-02-01
Series:Agriculture
Subjects:
Online Access:https://www.mdpi.com/2077-0472/12/2/284
_version_ 1797483804670033920
author Chengqi Liu
Jie Su
Longhe Wang
Shuhan Lu
Lin Li
author_facet Chengqi Liu
Jie Su
Longhe Wang
Shuhan Lu
Lin Li
author_sort Chengqi Liu
collection DOAJ
description Accurate identification and intelligent counting of pig herds can effectively improve the level of fine management of pig farms. A semantic segmentation and counting network was proposed in this study to improve the segmentation accuracy and counting efficiency of pigs in complex image segmentation. In this study, we built our own datasets of pigs under different scenarios, and set three levels of number detection difficulty—namely, lightweight, middleweight, and heavyweight. First, an image segmentation model of a small sample of pigs was established based on the DeepLab V3+ deep learning method to reduce the training cost and obtain initial features. Second, a lightweight attention mechanism was introduced, and attention modules based on rows and columns can accelerate the efficiency of feature calculation and reduce the problem of excessive parameters and feature redundancy caused by network depth. Third, a recursive cascade method was used to optimize the fusion of high- and low-frequency features for mining potential semantic information. Finally, the improved model was integrated to build a graphical platform for the accurate counting of pigs. Compared with FCNNs, U-Net, SegNet, and DenseNet methods, the DeepLab V3+ experimental results show that the values of the comprehensive evaluation indices P, R, AP, F<sub>1</sub>-score, and MIoU of LA-DeepLab V3+ (single tag) are higher than those of other semantic segmentation models, at 86.04%, 75.06%, 78.67%, 0.8, and 76.31%, respectively. The P, AP, and MIoU values of LA-DeepLab V3+ (multiple tags) are also higher than those of other models, at 88.36%, 76.75%, and 74.62%, respectively. The segmentation accuracy of pig images with simple backgrounds reaches 99%. The pressure test of the counting network can calculate the number of pigs with a maximum of 50, which meets the requirements of free-range breeding in standard piggeries. The model has strong generalization ability in pig herd detection under different scenarios, which can serve as a reference for intelligent pig farm management and animal life research.
first_indexed 2024-03-09T22:52:21Z
format Article
id doaj.art-73d06ec3a212444099bd181f83a16729
institution Directory Open Access Journal
issn 2077-0472
language English
last_indexed 2024-03-09T22:52:21Z
publishDate 2022-02-01
publisher MDPI AG
record_format Article
series Agriculture
spelling doaj.art-73d06ec3a212444099bd181f83a167292023-11-23T18:17:43ZengMDPI AGAgriculture2077-04722022-02-0112228410.3390/agriculture12020284LA-DeepLab V3+: A Novel Counting Network for PigsChengqi Liu0Jie Su1Longhe Wang2Shuhan Lu3Lin Li4Department of Computer Science and Technology, College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, ChinaDepartment of Computer Science and Technology, College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, ChinaOffice of Model Animals, National Research Facility for Phenotypic and Genotypic Analysis of Model Animals, China Agricultural University, Beijing 100083, ChinaDepartment of Information, School of Information, University of Michigan, Ann Arbor, MI 48109, USADepartment of Computer Science and Technology, College of Information and Electrical Engineering, China Agricultural University, Beijing 100083, ChinaAccurate identification and intelligent counting of pig herds can effectively improve the level of fine management of pig farms. A semantic segmentation and counting network was proposed in this study to improve the segmentation accuracy and counting efficiency of pigs in complex image segmentation. In this study, we built our own datasets of pigs under different scenarios, and set three levels of number detection difficulty—namely, lightweight, middleweight, and heavyweight. First, an image segmentation model of a small sample of pigs was established based on the DeepLab V3+ deep learning method to reduce the training cost and obtain initial features. Second, a lightweight attention mechanism was introduced, and attention modules based on rows and columns can accelerate the efficiency of feature calculation and reduce the problem of excessive parameters and feature redundancy caused by network depth. Third, a recursive cascade method was used to optimize the fusion of high- and low-frequency features for mining potential semantic information. Finally, the improved model was integrated to build a graphical platform for the accurate counting of pigs. Compared with FCNNs, U-Net, SegNet, and DenseNet methods, the DeepLab V3+ experimental results show that the values of the comprehensive evaluation indices P, R, AP, F<sub>1</sub>-score, and MIoU of LA-DeepLab V3+ (single tag) are higher than those of other semantic segmentation models, at 86.04%, 75.06%, 78.67%, 0.8, and 76.31%, respectively. The P, AP, and MIoU values of LA-DeepLab V3+ (multiple tags) are also higher than those of other models, at 88.36%, 76.75%, and 74.62%, respectively. The segmentation accuracy of pig images with simple backgrounds reaches 99%. The pressure test of the counting network can calculate the number of pigs with a maximum of 50, which meets the requirements of free-range breeding in standard piggeries. The model has strong generalization ability in pig herd detection under different scenarios, which can serve as a reference for intelligent pig farm management and animal life research.https://www.mdpi.com/2077-0472/12/2/284complex backgroundpigsDeepLab V3+attention mechanismcount
spellingShingle Chengqi Liu
Jie Su
Longhe Wang
Shuhan Lu
Lin Li
LA-DeepLab V3+: A Novel Counting Network for Pigs
Agriculture
complex background
pigs
DeepLab V3+
attention mechanism
count
title LA-DeepLab V3+: A Novel Counting Network for Pigs
title_full LA-DeepLab V3+: A Novel Counting Network for Pigs
title_fullStr LA-DeepLab V3+: A Novel Counting Network for Pigs
title_full_unstemmed LA-DeepLab V3+: A Novel Counting Network for Pigs
title_short LA-DeepLab V3+: A Novel Counting Network for Pigs
title_sort la deeplab v3 a novel counting network for pigs
topic complex background
pigs
DeepLab V3+
attention mechanism
count
url https://www.mdpi.com/2077-0472/12/2/284
work_keys_str_mv AT chengqiliu ladeeplabv3anovelcountingnetworkforpigs
AT jiesu ladeeplabv3anovelcountingnetworkforpigs
AT longhewang ladeeplabv3anovelcountingnetworkforpigs
AT shuhanlu ladeeplabv3anovelcountingnetworkforpigs
AT linli ladeeplabv3anovelcountingnetworkforpigs