With the increasing urgency for digital transformation in large-scale caged layer farms, traditional methods for monitoring the environment and chicken health, which often rely on human experience, face challenges related to low efficiency and poor real-time performance. In this study, we focused on caged layer chickens and proposed an improved abnormal beak detection model based on the You Only Look Once v8 (YOLOv8) framework. Data collection was conducted using an inspection robot, enhancing automation and consistency. To address the interference caused by chicken cages, an Efficient Multi-Scale Attention (EMA) mechanism was integrated into the Spatial Pyramid Pooling-Fast (SPPF) module within the backbone network, significantly improving the model’s ability to capture fine-grained beak features. Additionally, the standard convolutional blocks in the neck of the original model were replaced with Grouped Shuffle Convolution (GSConv) modules, effectively reducing information loss during feature extraction. The model was deployed on edge computing devices for the real-time detection of abnormal beak features in layer chickens. Beyond local detection, a digital twin remote monitoring system was developed, combining three-dimensional (3D) modeling, the Internet of Things (IoT), and cloud-edge collaboration to create a dynamic, real-time mapping of physical layer farms to their virtual counterparts. This innovative approach not only improves the extraction of subtle features but also addresses occlusion challenges commonly encountered in small target detection. Experimental results demonstrate that the improved model achieved a detection accuracy of 92.7%. In terms of the comprehensive evaluation metric (mAP), it surpassed the baseline model and YOLOv5 by 2.4% and 3.2%, respectively. The digital twin system also proved stable in real-world scenarios, effectively mapping physical conditions to virtual environments. Overall, this study integrates deep learning and digital twin technology into a smart farming system, presenting a novel solution for the digital transformation of poultry farming.
The behavior of floor-raised chickens is closely linked to their health status and environmental comfort. As a type of broiler chicken with special behaviors, understanding the daily actions of yellow-feathered chickens is crucial for accurately checking their health and improving breeding practices. Addressing the challenges of high computational complexity and insufficient detection accuracy in existing floor-raised chicken behavior recognition models, a lightweight behavior recognition model was proposed for floor-raised yellow-feathered chickens, based on a Dual-Backbone Heterogeneous YOLO Network. Firstly, DualHet-YOLO enhances the feature extraction capability of floor-raised chicken images through a dual-path feature map extraction architecture and optimizes the localization and classification of multi-scale targets using a TriAxis Unified Detection Head. Secondly, a Proportional Scale IoU loss function is introduced that improves regression accuracy. Finally, a lightweight structure Eff-HetKConv was designed, significantly reducing model parameters and computational complexity. Experiments on a private floor-raised chicken behavior dataset show that, compared with the baseline YOLOv11 model, the DualHet-YOLO model increases the mAP for recognizing five behaviors—pecking, resting, walking, dead, and inactive—from 77.5% to 84.1%. Meanwhile, it reduces model parameters by 14.6% and computational complexity by 29.2%, achieving a synergistic optimization of accuracy and efficiency. This approach provides an effective solution for lightweight object detection in poultry behavior recognition.