Qiao Yameng, Liu Wenzheng, Wang Fanzhen, Zhang Hang, Cai Jinghan, He Huaigang, Liu Tonghai, Yang Xue
College of Computer and Information Engineering, Tianjin Agricultural University, Tianjin 300392, China.
Qingyang Academy of Agricultural Sciences, Qingyang 745000, China.
Animals (Basel). 2025 Aug 25;15(17):2499. doi: 10.3390/ani15172499.
Individual recognition of Hu sheep is a core requirement for precision livestock management, significantly improving breeding efficiency and fine management. However, traditional machine vision methods face challenges such as high annotation time costs, the inability to quickly annotate new sheep, and the need for manual intervention and retraining. To address these issues, this study proposes a solution that integrates automatic annotation and transfer learning, developing a sheep face recognition algorithm that adapts to complex farming environments and can quickly learn the characteristics of new Hu sheep individuals. First, through multi-view video collection and data augmentation, a dataset consisting of 82 Hu sheep and a total of 6055 images was created. Additionally, a sheep face detection and automatic annotation algorithm was designed, reducing the annotation time per image to 0.014 min compared to traditional manual annotation. Next, the YOLOv10n-CF-Lite model is proposed, which improved the recognition precision of Hu sheep faces to 92.3%, and the mAP@0.5 to 96.2%. To enhance the model's adaptability and generalization ability for new sheep, transfer learning was applied to transfer the YOLOv10n-CF-Lite model trained on the source domain (82 Hu sheep) to the target domain (10 new Hu sheep). The recognition precision in the target domain increased from 91.2% to 94.9%, and the mAP@0.5 improved from 96.3% to 97%. Additionally, the model's convergence speed was improved, reducing the number of training epochs required for fitting from 43 to 14. In summary, the Hu sheep face recognition algorithm proposed in this study improves annotation efficiency, recognition precision, and convergence speed through automatic annotation and transfer learning. It can quickly adapt to the characteristics of new sheep individuals, providing an efficient and reliable technical solution for the intelligent management of livestock.
湖羊个体识别是精准畜牧管理的核心需求,能显著提高繁殖效率和精细化管理水平。然而,传统机器视觉方法面临诸如标注时间成本高、无法快速标注新羊以及需要人工干预和重新训练等挑战。为解决这些问题,本研究提出一种集成自动标注和迁移学习的解决方案,开发了一种适用于复杂养殖环境且能快速学习湖羊新个体特征的羊脸识别算法。首先,通过多视角视频采集和数据增强,创建了一个由82只湖羊共6055张图像组成的数据集。此外,设计了一种羊脸检测和自动标注算法,与传统人工标注相比,将每张图像的标注时间减少到0.014分钟。接下来,提出了YOLOv10n - CF - Lite模型,该模型将湖羊脸的识别精度提高到92.3%,mAP@0.5提高到96.2%。为增强模型对新羊的适应性和泛化能力,应用迁移学习将在源域(82只湖羊)上训练的YOLOv10n - CF - Lite模型迁移到目标域(10只新湖羊)。目标域的识别精度从91.2%提高到94.9%,mAP@0.5从96.3%提高到97%。此外,模型的收敛速度提高,将拟合所需的训练轮数从43轮减少到14轮。总之,本研究提出的湖羊脸识别算法通过自动标注和迁移学习提高了标注效率、识别精度和收敛速度。它能快速适应新羊个体的特征,为家畜智能管理提供了一种高效可靠的技术解决方案。