Acta Agriculturae Zhejiangensis ›› 2025, Vol. 37 ›› Issue (7): 1556-1566.DOI: 10.3969/j.issn.1004-1524.20240333

• Biosystems Engineering • Previous Articles     Next Articles

Real-time detection of overturned meat ducks based on YOLOv8-Swin Transformer model

LYU Yinchun1,2(), DUAN Enze2, ZHU Yixing2, ZHENG Xia2, BAI Zongchun2,3,*()   

  1. 1. College of Agricultural Engineering, Jiangsu University, Zhenjiang 212000, Jiangsu, China
    2. Institute of Agricultural Facilities and Equipment, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China
    3. Key Laboratory of Protected Agriculture Engineering in the Middle and Lower Reaches of Yangtze River, Ministry of Agriculture and Rural Affairs, Nanjing 210014, China
  • Received:2024-08-05 Online:2025-07-25 Published:2025-08-20

Abstract:

To address the challenges of detecting small and easily occluded meat ducks in cages within large-scale farms, as well as the difficulty of deploying existing detection methods for overturned ducks on embedded devices, this study proposes a detection method for identifying overturned meat ducks suitable for deployment on Jetson Orin. This approach ensures accurate detection of overturned ducks while achieving lightweight model deployment and improved detection efficiency. A dataset of 1 000 images of overturned meat ducks was constructed and divided into training, testing, and validation sets in an 8∶1∶1 ratio. A deep learning network was employed to extract behavioral features of overturned ducks and build a target detection model. The Swin Transformer-tiny module was integrated to replace the backbone network of YOLOv8, significantly enhancing the detection capability for small targets in complex environments. Model pruning and quantization were applied to reduce computational complexity while maintaining accuracy, achieving a better balance between model precision and speed. When deploying the optimized models on embedded devices with a confidence threshold set to 60, the YOLOv8n-Swin Transformer and YOLOv8s-Swin Transformer models demonstrated average recognition accuracies of 96.0% and 97.1%, respectively, for detecting overturned meat ducks. Their false recognition rates were 2.7% and 2.0%, while the single-frame image processing times measured 6.8 ms and 7.4 ms, respectively.

Key words: machine vision, overturned meat duck recognition, caged meat duck, deep learning, facility breeding

CLC Number: