GONG Dongjun, LIN Weiguo, YANG Hao, et al. Duck eggs recognition and localization at medium and long distances based on improved YOLOv8n[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2025, 41(1): 296-305. DOI: 10.11975/j.issn.1002-6819.202407156
    Citation: GONG Dongjun, LIN Weiguo, YANG Hao, et al. Duck eggs recognition and localization at medium and long distances based on improved YOLOv8n[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2025, 41(1): 296-305. DOI: 10.11975/j.issn.1002-6819.202407156

    Duck eggs recognition and localization at medium and long distances based on improved YOLOv8n

    • The duck egg industry has always dominated an important and indispensable position in the agricultural field. However, the huge amount of egg duck breeding has also brought some challenges to the current industry in recent years. Among them, the low-level automation is ever lagging behind to limit the production efficiency and product quality in duck and egg breeding. Furthermore, the duck eggs can be collected one by one by hand, leading to low work efficiency and high labor intensity. Manual operation cannot fully meet the large-scale production in modern agriculture. At the same time, the frequent entry and exit of breeders into duck farms has inevitably brought some hidden dangers to the health of ducks, such as various pathogens and pollutants from the external environment. This research aims to accurately identify and position the free-range duck eggs at medium and long distances in the key technology of egg collection robots. The automation and intelligence of duck egg collection were then realized using the YOLOv8n network model. A P2 detection head was also added to detect the small target. Accurate detection was achieved in the large-size feature maps that retained the more target features. The CBAM attention module was inserted at the end of the backbone network. The attention was weighted in the channel and spatial dimensions. The neural network was effectively enhanced to focus on the important features, and then suppress the interference of unnecessary features. At the same time, the Involution operator was introduced to significantly improve the detection performance for the duck eggs at medium and long distances. The traditional convolution was then modified in the channel-to-channel information exchange and receptive field. A visual positioning was proposed using ROS. The high-precision and real-time visual positioning of target duck eggs was achieved using machine vision and dynamic TF transformation when the camera was used in the moving state with the robot. The test results show that the weight of the improved model (YOLOv8n-P2-CBAM-INV) was 20.8 MB, and the floating-point operations per second were 51.4 G. The accuracy and recall rates of the improved model were 98.30% and 96.60%, respectively. The mean average precision on the test set increase 7.1 percentage points compared with the original YOLOv8n. The mean average precision of this improved model reached 98% at a distance of 6.0 m, which was increased 29.4 percentage points compared with the original model. The visual positioning test of the mobile robot was carried out to verify the range of 0.5 to 3.0 m. The high-precision and real-time motion positioning was realized at the medium and long-distance duck eggs by the mobile egg-picking robot in the laboratory. The positioning error was controlled within 0.03 m. This improved model can be deployed to the mobile edge platform of image processing. The finding can also provide support to the mobile egg-picking robots, together with the similar autonomous mobile harvesting robots.
    • loading

    Catalog

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return