Abstract
The lossof ear tags in breeding pigs can lead to the loss or confusion of individual identity information. Timely and accurate detection, along with continuous tracking of breeding pigs that have lost their ear tags, is crucial for improving the precision of farm management. However, considering the real-time requirements for the detection of ear tag-lost breeding pigs, coupled with tracking challenges such as similar appearances, clustered occlusion, and rapid movements of breeding pigs, this paper proposed a dual-view synergistic method for detecting ear tag-lost breeding pigs and tracking individuals. First, a lightweight ear tag loss detector was developed by combining the Cascade-TagLossDetector with a channel pruning algorithm. Second, a synergistic architecture was designed that integrates a localized top-down view with a panoramic oblique view, where the detection results of ear tag-lost breeding pigs from the localized top-down view were mapped to the panoramic oblique view for precise localization. Finally, an enhanced tracker incorporating Motion Attention was proposed to continuously track the localized ear tag-lost breeding pigs. Experimental results indicated that, during the ear tag loss detection stage for breeding pigs, the pruned detector achieved a mean average precision of 94.03% for bounding box detection and 90.16% for instance segmentation, with a parameter count of 28.04 million and a detection speed of 37.71 fps. Compared to the unpruned model, the parameter count was reduced by 20.93 million, and the detection speed increased by 12.38 fps while maintaining detection accuracy. In the tracking stage, the success rate, normalized precision, and precision of the proposed tracker reached 86.91%, 92.68%, and 89.74%, respectively, representing improvements of 4.39, 3.22, and 4.77 percentage points, respectively, compared to the baseline model. These results validated the advantages of the proposed method in terms of detection timeliness, tracking continuity, and feasibility of deployment on edge devices, providing significant reference value for managing livestock identity in breeding farms.