A pose-robust deep learning model for individual donkey identification and posture behavior monitoring
Introduction Accurate individual identification is a fundamental component of precision livestock farming, as it enables growth metrics and disease-related abnormalities to be traced back to specific individuals, allowing managers to make timely and informed decisions. This is of particular significance in donkey farming, because donkeys are a prey species exhibiting strong stoicism; by the time they display overt abnormalities, the disease has often progressed to an advanced stage. Therefore, this paper proposes a pose-robust deep learning model for individual donkey identification. We further establish individual behavioral baselines, enabling timely and precise alerts to be fed back to breeders when anomalies occur. Methods The proposed DonkeyID-Net framework combines a color-aware texture enhancement module, an unsupervised pose encoder with orthogonal feature decoupling, and a multi-anchor dynamic matching head within a single end-to-end network. From overhead RGB images of individual donkeys, the model extracts pose-invariant identity features and simultaneously classifies standing and lying postures. Individual posture time series are then constructed to derive behavioral indicators, including standing ratio and lying-to-standing transition frequency, and to establish individual-specific baselines for deviation detection. Results On a dataset of 15,337 images from 23 donkeys, DonkeyID-Net achieved 96.5% Rank-1 accuracy and 94.8% mAP under a closed-set retrieval protocol. Although the training data were predominantly standing, the model maintained 87.9% Rank-1 on the standing-to-lying cross-pose subset and 89.2% on the lying-to-standing cross-pose subset, outperforming the strongest baseline by 28.5 and 28.0 percentage points, respectively. On the within-lying reference subset, where both query and gallery images were lying, it reached 93.8% Rank-1, 18.6 percentage points above the strongest baseline. Posture classification reached 94.5% accuracy. In a simulated deviation experiment, the individual baseline framework detected posture anomalies with 88.0% sensitivity and 92.8% specificity, and the mean early detection time was 2.5 h. The model has 31.2 M parameters and a 4.8 ms network forward inference time, supporting real-time inference. These findings are sufficient to serve as a screening criterion for early disease warning. Discussion These findings demonstrate that pose-robust identification from standard surveillance video can provide not only reliable individual recognition but also structured posture descriptors relevant to behavioral monitoring and animal welfare assessment in donkeys. The integration of identity and posture information offers a practical path from recognition to health-oriented management. Further validation against veterinary-confirmed clinical cases is required before the framework can be applied as a health monitoring tool.
Authors
- Jingying Lv
- Jianrui Qu
- Chunxin Wang
- Yunda Jia
- Haoyan Jiang
Institutions
- Northeast Agricultural University (CN)
- Jilin University (CN)
- Jilin Academy of Agricultural Sciences (CN)
- Jilin Province Science and Technology Department (CN)
- Jilin Agricultural University (CN)
Publication Details
- Journal
- Frontiers in Veterinary Science
- Published
- 2026-12-02
- DOI
- https://doi.org/10.3389/fvets.2026.2011695
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00