Accurate long-term tracking of individual cattle is essential for precision livestock farming but remains challenging due to occlusions, posture variability, and identity drift in free-range environments. We propose a multi-camera tracking framework that combines bird’s-eye-view (BEV) trajectory matching with cattle face recognition to ensure identity preservation across long video sequences. A large-scale dataset was collected from five synchronized 4K cameras in a commercial barn, capturing both full-body movements and frontal facial views. The system employs center point detection and BEV projection for cross-view trajectory association, while periodic face recognition during feeding refreshes identity assignments and corrects errors. Evaluations on a two-day dataset of more than 600,000 images demonstrate robust performance, with an AssPr of 84.481% and a LocA score of 78.836%. The framework outperforms baseline trajectory matching methods, maintaining identity consistency under dense crowding and noisy labels. These results demonstrate a practical and scalable solution for automated cattle monitoring, advancing data-driven livestock management and welfare.
Cross-view re-identification of Hanwoo cattle remains challenging: weak texture provides only limited identity cues, and large pose and viewpoint changes easily distort these cues, causing severe feature dispersion. As a result, samples from the same individual may be scattered in the feature space, whereas visually similar individuals can form ambiguous local neighborhoods. To address this problem, we propose a framework that explicitly improves identity compactness for weakly textured cattle ReID. Specifically, Pose- and Text-Conditioned Inpainting Diffusion (PTID) is trained to generate pose-diverse yet identity-consistent samples and, during inference, aggregates their features with the original input feature to approximate a compact identity center and reduce pose-induced feature dispersion. Dual-Adaptive Viewpoint-Aware Feature Centralization (DVFC) further refines retrieval features by adaptively exploiting viewpoint consistency and neighborhood reliability, thereby suppressing unreliable neighbor mixing under large cross-view variation. We also construct a Hanwoo ReID dataset containing 37 identities and 12,480 images collected from three farm environments with substantial variations in pose, illumination, occlusion, and background conditions. Extensive experiments on multiple strong baselines under both closed-set and open-set settings demonstrate consistent improvements, with gains of up to 40.8 points in mAP and 26.1 points in Rank-1 accuracy. These findings demonstrate that explicitly improving identity compactness through identity-consistent generation and viewpoint-aware feature centralization is a promising solution for the robust re-identification of weakly textured cattle.