Zhou Jiaxin, Liu Youfu, Zhou Shengjie, Chen Miaobin, Xiao Deqin
College of Mathematics Informatics, South China Agricultural University, Guangzhou 510225, China.
Key Laboratory of Smart Agricultural Technology in Tropical South China, Ministry of Agriculture and Rural Affairs, Guangzhou 510225, China.
Animals (Basel). 2023 Mar 30;13(7):1204. doi: 10.3390/ani13071204.
Since it is difficult to accurately identify the fertilization and infertility status of multiple duck eggs on an incubation tray, and due to the lack of easy-to-deploy detection models, a novel lightweight detection architecture (LDA) based on the YOLOX-Tiny framework is proposed in this paper to identify sterile duck eggs with the aim of reducing model deployment requirements and improving detection accuracy. Specifically, the method acquires duck egg images through an acquisition device and augments the dataset using rotation, symmetry, and contrast enhancement methods. Then, the traditional convolution is replaced by a depth-wise separable convolution with a smaller number of parameters, while a new CSP structure and backbone network structure are used to reduce the number of parameters of the model. Finally, to improve the accuracy of the network, the method includes an attention mechanism after the backbone network and uses the cosine annealing algorithm in training. An experiment was conducted on 2111 duck eggs, and 6488 duck egg images were obtained after data augmentation. In the test set of 326 duck egg images, the mean average precision (mAP) of the method in this paper was 99.74%, which was better than the 94.92% of the YOLOX-Tiny network before improvement, and better than the reported prediction accuracy of 92.06%. The number of model parameters was only 1.93 M, which was better than the 5.03 M of the YOLOX-Tiny network. Further, by analyzing the concurrent detection of single 3 × 5, 5 × 7 and 7 × 9 grids, the algorithm achieved a single detection number of 7 × 9 = 63 eggs. The method proposed in this paper significantly improves the efficiency and detection accuracy of single-step detection of breeder duck eggs, reduces the network size, and provides a suitable method for identifying sterile duck eggs on hatching egg trays. Therefore, the method has good application prospects.
由于难以准确识别孵化托盘上多个鸭蛋的受精和未受精状态,且缺乏易于部署的检测模型,本文提出了一种基于YOLOX-Tiny框架的新型轻量级检测架构(LDA),旨在识别无菌鸭蛋,以降低模型部署要求并提高检测精度。具体而言,该方法通过采集设备获取鸭蛋图像,并使用旋转、对称和对比度增强方法扩充数据集。然后,用参数数量较少的深度可分离卷积代替传统卷积,同时采用新的CSP结构和骨干网络结构来减少模型参数数量。最后,为提高网络精度,该方法在骨干网络后加入注意力机制,并在训练中使用余弦退火算法。对2111个鸭蛋进行了实验,数据扩充后获得了6488张鸭蛋图像。在326张鸭蛋图像的测试集中,本文方法的平均精度均值(mAP)为99.74%,优于改进前YOLOX-Tiny网络的94.92%,也优于报道的92.06%的预测精度。模型参数数量仅为1.93M,优于YOLOX-Tiny网络的5.03M。此外,通过分析单步检测3×5、5×7和7×9网格的并发情况,该算法实现了7×9 = 63枚鸡蛋的单步检测数量。本文提出的方法显著提高了种鸭蛋单步检测的效率和检测精度,减小了网络规模,为识别孵化蛋托盘上的无菌鸭蛋提供了一种合适的方法。因此,该方法具有良好的应用前景。