Applied Sciences (Jun 2021)

EnsemblePigDet: Ensemble Deep Learning for Accurate Pig Detection

  • Hanse Ahn,
  • Seungwook Son,
  • Heegon Kim,
  • Sungju Lee,
  • Yongwha Chung,
  • Daihee Park

DOI
https://doi.org/10.3390/app11125577
Journal volume & issue
Vol. 11, no. 12
p. 5577

Abstract

Read online

Automated pig monitoring is important for smart pig farms; thus, several deep-learning-based pig monitoring techniques have been proposed recently. In applying automated pig monitoring techniques to real pig farms, however, practical issues such as detecting pigs from overexposed regions, caused by strong sunlight through a window, should be considered. Another practical issue in applying deep-learning-based techniques to a specific pig monitoring application is the annotation cost for pig data. In this study, we propose a method for managing these two practical issues. Using annotated data obtained from training images without overexposed regions, we first generated augmented data to reduce the effect of overexposure. Then, we trained YOLOv4 with both the annotated and augmented data and combined the test results from two YOLOv4 models in a bounding box level to further improve the detection accuracy. We propose accuracy metrics for pig detection in a closed pig pen to evaluate the accuracy of the detection without box-level annotation. Our experimental results with 216,000 “unseen” test data from overexposed regions in the same pig pen show that the proposed ensemble method can significantly improve the detection accuracy of the baseline YOLOv4, from 79.93% to 94.33%, with additional execution time.

Keywords