Zhao Shida, Bai Zongchun, Huo Lianfei, Han Guofeng, Duan Enze, Gong Dongjun, Gao Liaoyuan
Institute of Agricultural Facilities and Equipment, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China.
Key Laboratory of Protected Agriculture Engineering in the Middle and Lower Reaches of Yangtze River, Ministry of Agriculture and Rural Affairs, Nanjing 210014, China.
Animals (Basel). 2024 Jul 27;14(15):2192. doi: 10.3390/ani14152192.
Overturning and death are common abnormalities in cage-reared ducks. To achieve timely and accurate detection, this study focused on 10-day-old cage-reared ducks, which are prone to these conditions, and established prior data on such situations. Using the original YOLOv8 as the base network, multiple GAM attention mechanisms were embedded into the feature fusion part (neck) to enhance the network's focus on the abnormal regions in images of cage-reared ducks. Additionally, the Wise-IoU loss function replaced the CIoU loss function by employing a dynamic non-monotonic focusing mechanism to balance the data samples and mitigate excessive penalties from geometric parameters in the model. The image brightness was adjusted by factors of 0.85 and 1.25, and mainstream object-detection algorithms were adopted to test and compare the generalization and performance of the proposed method. Based on six key points around the head, beak, chest, tail, left foot, and right foot of cage-reared ducks, the body structure of the abnormal ducks was refined. Accurate estimation of the overturning and dead postures was achieved using the HRNet-48. The results demonstrated that the proposed method accurately recognized these states, achieving a mean Average Precision (mAP) value of 0.924, which was 1.65% higher than that of the original YOLOv8. The method effectively addressed the recognition interference caused by lighting differences, and exhibited an excellent generalization ability and comprehensive detection performance. Furthermore, the proposed abnormal cage-reared duck pose-estimation model achieved an Object Key point Similarity (OKS) value of 0.921, with a single-frame processing time of 0.528 s, accurately detecting multiple key points of the abnormal cage-reared duck bodies and generating correct posture expressions.
翻倒和死亡是笼养鸭常见的异常情况。为了实现及时准确的检测,本研究聚焦于10日龄易出现这些情况的笼养鸭,并建立了此类情况的先验数据。以原始的YOLOv8作为基础网络,在特征融合部分(颈部)嵌入多个GAM注意力机制,以增强网络对笼养鸭图像中异常区域的关注。此外,Wise-IoU损失函数通过采用动态非单调聚焦机制取代CIoU损失函数,以平衡数据样本并减轻模型中几何参数的过度惩罚。将图像亮度调整为0.85和1.25两个因子,并采用主流目标检测算法对所提方法的泛化能力和性能进行测试与比较。基于笼养鸭头部、喙、胸部、尾部、左脚和右脚周围的六个关键点,对异常鸭的身体结构进行细化。使用HRNet-48实现了对翻倒和死亡姿势的准确估计。结果表明,所提方法能够准确识别这些状态,平均精度均值(mAP)值达到0.924,比原始YOLOv8高1.65%。该方法有效解决了光照差异引起的识别干扰,具有出色的泛化能力和综合检测性能。此外,所提的异常笼养鸭姿态估计模型的目标关键点相似度(OKS)值达到0.921,单帧处理时间为0.528 s,能够准确检测异常笼养鸭身体的多个关键点并生成正确的姿态表达。