A Study of Duck Detection using Deep Neural Network based on RetinaNet Model in Smart Farming

Jeyoung Lee1, Hochul Kang1,*
Author Information & Copyright
1The Catholic University of Korea, Gyeonggi-do 14662, Korea.
*Corresponding Author: Hochul Kang, The Catholic University of Korea, Gyeonggi-do 14662, Korea, Republic of. E-mail:

© Copyright 2023 Korean Society of Animal Science and Technology. This is an Open-Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License ( which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.


In a duck cage, ducks are placed in various states. In particular, if a duck is overturned and falls or dies, it will adversely affect the growing environment. In order to prevent the foregoing, it was necessary to continuously manage the cage for duck growth. This study proposes a method using an object detection algorithm to improve the foregoing. Object detection refers to the work to perform classification and localization of all objects present in the image when an input image is given. To use an object detection algorithm in a duck cage, data to be used for learning should be made and the data should be augmented to secure enough data to learn from. In addition, the time required for object detection and the accuracy of object detection are important. The study collected, processed, and augmented image data for a total of two years in 2021 and 2022 from the duck cage. Based on the objects that must be detected, the data collected as such were divided at a ratio of  9 : 1, and learning and verification were performed. The final results were visually confirmed using images different from the images used for learning. The proposed method is expected to be used for minimizing human resources in the growing process in duck cages and making the duck cages into smart farms.

Keywords: Duck detection; Duck farming; Smart farming; Object detection; Deep neural network; Computer vision