Detection of Herd Pigs Based on Improved YOLOv5s Model
Authors:
- Jianquan LiJLJianquan Li
- Xiao WuXWXiao Wu
- Yuanlin NingYNYuanlin Ning
Open Access
- 1 January 2023
- journal article
- research article
- Published by The Science and Information Organization in International Journal of Advanced Computer Science and Applications
- Vol. 14 (8)
Abstract
Fast and accurate detection technology for individual pigs raised in herds is crucial for subsequent research on counting and disease surveillance. In this paper, we propose an improved lightweight object detection method based on YOLOv5s to improve the speed and accuracy of detection of herd-raised pigs in real-world and complex environments. Specifically, we first introduce a lightweight feature extraction module called C3S, then replace the original large object detection layer with a small object detection layer at the output (head) of YOLOv5s. Finally, we propose a dual adaptive weighted PAN structure to compensate for the information loss of feature map at the neck of YOLOv5s caused by down sampling. Experiments show that our method has an accuracy rate of 95.2%, a recall rate of 89.1%, a mean Average Precision (mAP) of 95.3%, a model parameter number of 3.64M, a detection speed of 154 frames per second, and a model layer count of 183 layers. Comparing with the original YOLOv5s model and the current state-of-the-art object detection models, our proposed method achieves the best results in terms of mAP and detection speed.Keywords
This publication has 9 references indexed in Scilit:
- Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance SegmentationIEEE Transactions on Cybernetics, 2021
- EnsemblePigDet: Ensemble Deep Learning for Accurate Pig DetectionApplied Sciences, 2021
- Automatically detecting pig position and posture by 2D camera imaging and deep learningComputers and Electronics in Agriculture, 2020
- EmbeddedPigDet—Fast and Accurate Pig Detection for Embedded Board ImplementationsApplied Sciences, 2020
- Feature Pyramid Networks for Object Detection2017
- YOLO9000: Better, Faster, Stronger2017
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2016
- You Only Look Once: Unified, Real-Time Object Detection2016
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation2014