Estimation of Ewe Live Weight and Carcass Traits Using Advanced Hybrid Deep Learning and Multimodal Feature Fusion
Simple Summary
Abstract
1. Introduction
2. Materials and Methods
2.1. Animal Ethics and Experimental Setup
2.2. Data Acquisition
2.3. Dataset Preparation
2.4. Proposed Deep Learning Architectures
2.4.1. Baseline Hybrid Model
2.4.2. Attention-Guided Feature Fusion Network (AGFF-Net)
2.4.3. Hybrid Regressor: Vision Transformer-Based ViT-HR
2.5. Implementation Details
2.6. Multi-Target Regression Formulation
2.7. Explainability Framework
3. Results
3.1. Descriptive Analysis and Model Performance
3.2. Overfitting and Stability Analysis
3.3. Ten-Fold Cross-Validation (Animal-Level)
3.4. Statistical Validation and Empirical Testing
3.5. Visual Interpretability (Grad-CAM)
3.6. Ablation Study
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Papakonstantinou, G.I.; Voulgarakis, N.; Terzidou, G.; Fotos, L.; Giamouri, E.; Papatsiros, V.G. Precision Livestock Farming Technology: Applications and Challenges of Animal Welfare and Climate Change. Agriculture 2024, 14, 620. [Google Scholar] [CrossRef]
- Yagoubi, Y.; Smeti, S.; Mahouachi, M.; Nasraoui, M.; Saïd, S.B.; Mohamed-Brahmi, A.; Atti, N. Impact of Body Reserves Dynamic on Productivity and Reproductive Performance in Fat-Tail and Thin-Tail Sheep Breeds over Contrasting Production Cycles. Animals 2024, 14, 891. [Google Scholar] [CrossRef]
- Zhang, X.; Liu, C.; Kong, Y.; Li, F.; Yue, X. Effects of intramuscular fat on meat quality and its regulation mechanism in Tan sheep. Front. Nutr. 2022, 9, 2022. [Google Scholar] [CrossRef] [PubMed]
- Luridiana, S.; Ouadday, M.; Cosso, G.; Carcangiu, V.; Mura, M.C. Influence of Body Condition Score on Reproductive Recovery in Spring and on Some Hematochemical Parameters in Sarda Breed Sheep. Animals 2025, 15, 372. [Google Scholar] [CrossRef]
- Arfuso, F.; Fazio, F.; Chikhi, L.; Aymond, G.; Piccione, G.; Giannetto, C. Acute Stress Response of Sheep to Shearing Procedures: Dynamic Change of Cortisol Concentration and Protein Electrophoretic Pattern. Animals 2022, 12, 862. [Google Scholar] [CrossRef]
- Freitas, C.S.; Pereira, A.A.; Monteiro, S.D.N.; Serrão, G.X.; Araújo, J.C.; de Mesquita Nunes, M.P.; Santos, H.A.S.D.; de Carvalho Rodrigues, T.C.G.; da Silva, J.A.R.; Daher, L.C.C.; et al. Relationship between attributes extracted from carcass image: Prediction of carcass tissue characteristics and meat quality of hair sheep lambs. Small Rumin. Res. 2025, 244, 107448. [Google Scholar] [CrossRef]
- Cruz-Tamayo, A.A.; Zaragoza-Vera, M.; Zaragoza-Vera, C.V.; Arjona-Jiménez, G.; Muñoz-Osorio, G.A.; García-Herrera, R.A.; Chay-Canul, A.J. Interrelationships between body weight, body condition score, and fat deposition in Katahdin ewe lambs managed under humid tropical conditions. Small Rumin. Res. 2026, 256, 107705. [Google Scholar] [CrossRef]
- Yıldırır, M.; Nurlan, M.; Mussayeva, A.; Orazymbetova, Z.; Bakhtybekkyzy, S.; Öner, Y.; Bekitayeva, A.; Omashev, K.; Aryngaziyev, B. A review of thoracolumbar vertebrae number variation in sheep breeding. Small Rumin. Res. 2025, 250, 107405. [Google Scholar] [CrossRef]
- Calnan, H.B.; Williams, A.; Alston-Knox, C.; Wang, G.; Pitchford, W.S.; Gardner, G.E. Improved cut weight predictions from DEXA scans of lamb carcasses enables more accurate allocation of cuts to processing plans. Meat Sci. 2024, 216, 109556. [Google Scholar] [CrossRef]
- Siverino, C.; Gens, L.; Buchholz, T.; Constant, C.; Ernst, M.; Gehweiler, D.; Morgenstern, M.; Richards, R.G.; Richter, H.; Vanvelk, N.; et al. Irrigation of the intramedullary channel improves outcome of DAIR in a sheep model. npj Biofilms Microbiomes 2025, 11, 35. [Google Scholar] [CrossRef] [PubMed]
- Connaughton, S.L.; Williams, A.; Gardner, G.E. Accreditation of in-abattoir Dual Energy X-ray Absorptiometry scanning apparatus to predict lamb carcass composition in Australia. Meat Sci. 2025, 220, 109707. [Google Scholar] [CrossRef]
- Ling, Q.; Yu, H.; Yue, C.; Kang, J.; Maimaiti, A.; Li, Z.; Di, J.; Liu, M.; Liang, L.; Li, W. A dual-branch multi-modal deep learning framework for non-destructive evaluation of intramuscular fat in sheep. Sci. Rep. 2025, 16, 2408. [Google Scholar] [CrossRef]
- Fowler, S.M.; Wheeler, D.; Morris, S.; Mortimer, S.I.; Hopkins, D.L. Partial least squares and machine learning for the prediction of intramuscular fat content of lamb loin. Meat Sci. 2021, 177, 108505. [Google Scholar] [CrossRef]
- Yang, Y.; Guo, Z.; Chen, D.; Zhu, Y.; Guo, Q.; Qin, H.; Shi, Y.; Ai, Y.; Zhao, J.; Han, H. EIMFS: Estimating intramuscular fat in sheep using a three-stage convolutional neural network based on ultrasound images. Comput. Electron. Agric. 2025, 233, 110169. [Google Scholar] [CrossRef]
- Shi, Y.; Wang, X.; Borhan, M.S.; Young, J.; Newman, D.; Berg, E.; Sun, X. A Review on Meat Quality Evaluation Methods Based on Non-Destructive Computer Vision and Artificial Intelligence Technologies. Food Sci. Anim. Resour. 2021, 41, 563–588. [Google Scholar] [CrossRef]
- Shalaldeh, A.; Abualhaj, M.; Abu-Shareha, A.A.; Elshenawy, A.; Saoudi, Y.; Hussain, M.; Shubita, A.; Safa, M.; Logan, C. Designing Predictive Models: A Comparative Evaluation of Machine Learning Algorithms for Predicting Body Carcass Fat in Ewes at Weaning. Agriculture 2026, 16, 488. [Google Scholar] [CrossRef]
- Shahinfar, S.; Kelman, K.; Kahn, L. Prediction of sheep carcass traits from early-life records using machine learning. Comput. Electron. Agric. 2019, 156, 159–177. [Google Scholar] [CrossRef]
- Monteiro, S.d.N.; Pereira, A.A.; Freitas, C.S.; Serrão, G.X.; de Sousa, M.A.P.; Lima, A.C.S.; Daher, L.C.D.S.C.; Rodrigues, T.C.G.D.C.; da Silva, W.C.; da Silva, É.B.R.; et al. Machine learning regression algorithms for predicting muscle, bone, carcass fat and commercial cuts in hairless lambs. Small Rumin. Res. 2024, 236, 107290. [Google Scholar] [CrossRef]
- Zhou, H.; Xie, Q.; Wang, W.; Gu, J.; Liu, H.; Li, B.; Wu, S.; Zheng, F. A Novel Method for Estimating the Body Weight and Size of Sows Using 3D Point Cloud. Animals 2026, 16, 72. [Google Scholar] [CrossRef] [PubMed]
- Wang, Z.; Shadpour, S.; Chan, E.; Rotondo, V.; Wood, K.M.; Tulpan, D. ASAS-NANP SYMPOSIUM: Applications of machine learning for livestock body weight prediction from digital images. J. Anim. Sci. 2021, 99, skab022. [Google Scholar] [CrossRef]
- Hori, C.; Hori, T.; Lee, T.-Y.; Zhang, Z.; Harsham, B.; Hershey, J.; Marks, T.; Sumi, K. Attention-Based Multimodal Fusion for Video Description. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 4203–4212. [Google Scholar] [CrossRef]
- Guo, Q.; Liao, Y.; Li, Z.; Liang, S. Multi-Modal Representation via Contrastive Learning with Attention Bottleneck Fusion and Attentive Statistics Features. Entropy 2023, 25, 1421. [Google Scholar] [CrossRef] [PubMed]
- Tsai, Y.-H.; Bai, S.; Liang, P.; Kolter, J.; Morency, L.-P.; Salakhutdinov, R. Multimodal Transformer for Unaligned Multimodal Language Sequences. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, 28 July–2 August 2019; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; Volume 2019, pp. 6558–6569. [Google Scholar] [CrossRef]
- Zhang, H.; Gu, D. Deep Multi-task Learning for Animal Chest Circumference Estimation from Monocular Images. Cogn. Comput. 2024, 16, 1092–1102. [Google Scholar] [CrossRef]
- Alves, A.; Fernandes, A.F.A.; Lopes, F.; Breen, V.; Hawken, R.; Gianola, D.; Rosa, G. (Quasi) Multi-task support vector regression with heuristic hyperparameter optimization for whole-genome prediction of complex traits: A case study with carcass traits in broilers. G3 Genes Genomes Genet. 2023, 13, jkad109. [Google Scholar] [CrossRef]
- Zhang, S.; Luo, X.; Mai, B. Multi-task machine learning models for simultaneous prediction of tissue-to-blood partition coefficients of chemicals in mammals. Environ. Res. 2024, 241, 117603. [Google Scholar] [CrossRef]
- Shalaldeh, A.; Page, S.; Anthony, P.; Charters, S.; Safa, M.; Logan, C. Body Composition Estimation in Breeding Ewes Using Live Weight and Body Parameters Utilizing Image Analysis. Animals 2023, 13, 2391. [Google Scholar] [CrossRef]
- González-Baldizón, Y.; Pérez-Patricio, M.; Camas-Anzueto, J.L.; Rodríguez-Elías, O.M.; Escobar-Gómez, E.N.; Vazquez-Delgado, H.D.; Guzman-Rabasa, J.A.; Fragoso-Mandujano, J.A. Lamb Behaviors Analysis Using a Predictive CNN Model and a Single Camera. Appl. Sci. 2022, 12, 4712. [Google Scholar] [CrossRef]
- Ravikiran, H.K.; Jayanth, J.; Sathisha, M.S.; Bindu, K. Optimizing Sheep Breed Classification with Bat Algorithm-Tuned CNN Hyperparameters. SN Comput. Sci. 2024, 5, 219. [Google Scholar] [CrossRef]
- Bello, R.-W.; Ogundokun, R.O.; Owolawi, P.A.; van Wyk, E.A.; Tu, C. Application of Convolutional Neural Networks in Animal Husbandry: A Review. Mathematics 2025, 13, 1906. [Google Scholar] [CrossRef]
- Li, X.; Xiang, Y.; Li, S. Combining convolutional and vision transformer structures for sheep face recognition. Comput. Electron. Agric. 2023, 205, 107651. [Google Scholar] [CrossRef]
- He, C.; Qiao, Y.; Mao, R.; Li, M.; Wang, M. Enhanced LiteHRNet based sheep weight estimation using RGB-D images. Comput. Electron. Agric. 2023, 206, 107667. [Google Scholar] [CrossRef]
- Sant’Ana, D.; Pache, M.; Martins, J.; Soares, W.; Melo, S.; Garcia, V.; Weber, V.; Heimbach, N.; Mateus, R.; Pistori, H. Weighing live sheep using computer vision techniques and regression machine learning. Mach. Learn. Appl. 2021, 5, 100076. [Google Scholar] [CrossRef]
- Hussain, S.S.; Shah, P.M.; Dawood, H.; Degang, X.; Alshamayleh, A.; Khan, M.A.; Ghazal, T.M. A swin transformer and CNN fusion framework for accurate Parkinson disease classification in MRI. Sci. Rep. 2025, 15, 15117. [Google Scholar] [CrossRef] [PubMed]
- Fayyaz, A.M.; Abdulkadir, S.J.; Talpur, N.; Al-Selwi, S.M.; Hassan, S.U.; Sumiea, E.H. Grad-CAM (Gradient-weighted Class Activation Mapping): A systematic literature review. Comput. Biol. Med. 2025, 198, 111200. [Google Scholar] [CrossRef]
- Tsai, C.M.; Lee, J.-D. Dynamic Ensemble Learning with Gradient-Weighted Class Activation Mapping for Enhanced Gastrointestinal Disease Classification. Electronics 2025, 14, 305. [Google Scholar] [CrossRef]
- Pang, Y.; Yu, W.; Zhang, Y.; Xuan, C.; Wu, P. An attentional residual feature fusion mechanism for sheep face recognition. Sci. Rep. 2023, 13, 17128. [Google Scholar] [CrossRef]
- Liao, S.; Shu, Y.; Tian, F.; Zhou, Y.; Li, G.; Zhang, C.; Yao, C.; Wang, Z.; Che, L. Multi-Modality Sheep Face Recognition Based on Deep Learning. Animals 2025, 15, 1111. [Google Scholar] [CrossRef]
- Akilli, A.; Akkol, S. Prediction of Norduz Sheep Live Weight using Multilayer Perceptron Neural Networks and Least Square Support Vector Machines. Indian J. Anim. Res. 2025, 59, 2143. [Google Scholar] [CrossRef]
- Himel, G.M.S.; Islam, M.M.; Rahaman, M. Utilizing EfficientNet for sheep breed identification in low-resolution images. Syst. Soft Comput. 2024, 6, 200093. [Google Scholar] [CrossRef]
- Himel, G.M.S.; Islam, M.M.; Ripon, M. SheepFormers: Vision transformer-based sheep breed classification on small datasets for smart farming. J. Electr. Syst. Inf. Technol. 2026, 13, 20. [Google Scholar] [CrossRef]
- Zhang, X.; Xuan, C.; Ma, Y.; Su, H. A high-precision facial recognition method for small-tailed Han sheep based on an optimised Vision Transformer. Animal 2023, 17, 100886. [Google Scholar] [CrossRef]
- Alves, A.A.C.; Pinzon, A.C.; Costa, R.M.D.; Silva, M.S.D.; Vieira, E.H.M.; Mendonça, I.B.D.; Viana, V.D.S.S.; Lôbo, R.N.B. Multiple regression and machine learning based methods for carcass traits and saleable meat cuts prediction using non-invasive in vivo measurements in commercial lambs. Small Rumin. Res. 2019, 171, 49–56. [Google Scholar] [CrossRef]
- Liu, L.; Xie, J.; Qin, H.; Sui, X.; Zhang, L. Precise detection of Eimeria oocysts in sheep: A deep learning model based on microscopic images. Parasites Vectors 2025, 18, 459. [Google Scholar] [CrossRef] [PubMed]
- Polat, H.; Koc, D.G.; Ertuğrul, Ö.; Koc, C.; Ekinci, K. Deep Learning based Individual Cattle Face Recognition using Data Augmentation and Transfer Learning. J. Agric. Sci. 2025, 31, 137–150. [Google Scholar] [CrossRef]








| Model | Baseline (Hybrid CNN) | AGFF-Net | ViT-HR |
|---|---|---|---|
| Visual Backbone (Nodes/Params) | ResNet18 (11.7 M) | EfficientNet-B3 (12.2 M) + CBAM | ViT-Base (86 M) |
| Tabular Branch (Nodes) | MLP: [16, 32, 16] | MLP: [32, 64, 32] | MLP: [64, 128, 64] |
| Activation Function | ReLU | Swish | GELU |
| Regularization | L2 (Weight Decay: 1 × 10−4) | L2 (Weight Decay: 1 × 10−4) | L2 (Weight Decay: 1 × 10−5) |
| Dropout Ratio | 0.30 | 0.40 | 0.20 |
| Max Epochs | 100 | 100 | 100 |
| Optimizer & Learning Rate | AdamW (1 × 10−3) | AdamW (5 × 10−4) | AdamW (1 × 10−4) |
| Batch Size | 32 | 16 | 8 |
| Random Seed | 42 | 42 | 42 |
| Learning Rate Scheduler | StepLR (step_size = 20 Gamma = 0.5) | CosineAnnealingLR (T_max = 50) | WarmupCosineAnnealingLR (warmup_epochs = 5, T_max = 95) |
| Early Stopping Patience | 15 epochs | 15 epochs | 15 epochs |
| Task-Uncertainty Loss Init | Log_var = −0.5 | Log_var = −0.5 | Log_var = −0.5 |
| Augmentation Parameters | Flip: 0.5, Rotation: ±8°, Brightness: ±0.2 | Flip: 0.5, Rotation: ±8°, Brightness: ±0.2 | Flip: 0.5, Rotation: ±8°, Brightness: ±0.2 |
| Hardware (GPU) | NVIDIA RTX 3090 | NVIDIA RTX 3090 | NVIDIA A100 (40 GB) |
| Hardware (CPU) | Intel Xeon E5-2680 v4 (14 cores) | Intel Xeon E5-2680 v4 (14 cores) | Intel Xeon E5-2680 v4 (14 cores) |
| Training Time (hrs) | 2.8 | 3.5 | 4.2 |
| Peak Memory (GB) | 11.2 | 14.8 | 28.5 |
| Backbone Fine-tuning | Fine-tuned (ImageNet) | Fine-tuned (ImageNet) | Fine-tuned (ImageNet-21k) |
| View Concatenation | Channel-wise concatenation | Cross-attention fusion | Token-level fusion (BCS as distinct token) |
| Model | Target | MAE (kg) | RMSE (kg) | R2 | MAPE (%) |
|---|---|---|---|---|---|
| Baseline (ResNet18 + Concat) | Live Weight | 3.52 | 4.61 | 0.81 | 5.8 |
| Carcass Weight | 2.15 | 2.84 | 0.85 | 6.2 | |
| Fat Mass | 1.42 | 1.88 | 0.76 | 14.5 | |
| Lean Mass | 1.95 | 2.45 | 0.79 | 5.1 | |
| AGFF-Net (Attention Fusion) | Live Weight | 2.18 | 2.95 | 0.91 | 3.5 |
| Carcass Weight | 1.45 | 1.92 | 0.93 | 4.1 | |
| Fat Mass | 0.94 | 1.25 | 0.88 | 9.6 | |
| Lean Mass | 1.32 | 1.76 | 0.89 | 3.4 | |
| ViT-HR (Transformers Fusion) | Live Weight | 1.95 | 2.65 | 0.93 | 3.1 |
| Carcass Weight | 1.28 | 1.70 | 0.95 | 3.6 | |
| Fat Mass | 0.85 | 1.12 | 0.91 | 8.7 | |
| Lean Mass | 1.15 | 1.55 | 0.92 | 3.0 |
| Model | Training MAE (Mean ± SD) | Validation MAE (Mean ± SD) | Generalization Gap (Val—Train) | Stability Status |
|---|---|---|---|---|
| Baseline (ResNet18) | 2.10 ± 0.15 | 3.52 ± 0.28 | 0.72 kg | Moderate Overfitting |
| AGFF-Net | 1.65 ± 0.08 | 2.18 ± 0.12 | 0.53 kg | Stable |
| ViT-HR | 1.52 ± 0.05 | 1.95 ± 0.09 | 0.43 kg | Highly Stable |
| Model | Live Weight R2 | Live Weight MAE (kg) | Fat Mass R2 | Fat Mass MAE (kg) |
|---|---|---|---|---|
| Baseline (ResNet18) | 0.78 ± 0.06 | 3.65 ± 0.42 | 0.72 ± 0.08 | 1.55 ± 0.22 |
| AGFF-Net | 0.89 ± 0.03 | 2.25 ± 0.18 | 0.86 ± 0.04 | 1.02 ± 0.11 |
| ViT-HR | 0.92 ± 0.02 | 1.98 ± 0.12 | 0.90 ± 0.03 | 0.88 ± 0.08 |
| Target Variable | Baseline (ResNet18) | AGFF-Net | ViT-HR |
|---|---|---|---|
| Live Weight | 0.82 | 0.90 | 0.94 |
| Carcass Weight | 0.86 | 0.92 | 0.95 |
| Fat Mass | 0.74 | 0.87 | 0.91 |
| Lean Mass | 0.78 | 0.88 | 0.92 |
| Model Variant | Backbone | Multi-Task | Tabular Inputs (BCS/Size) | Fusion Strategy | Augmentation & Regularization | LW MAE ↓ (kg) | LW R2 ↑ | FM MAE ↓ (kg) | FM R2 ↑ |
|---|---|---|---|---|---|---|---|---|---|
| Full ViT-HR (Proposed) | ViT-Base | Yes | Yes | Token-level | Full (Aug + L2 + Dropout) | 3.21 | 0.91 | 0.84 | 0.89 |
| ResNet18 backbone (Baseline) | ResNet18 | Yes | Yes | Token-level | Full | 5.47 | 0.83 | 1.31 | 0.79 |
| Single-task learning | ViT-Base | No | Yes | Token-level | Full | 4.18 | 0.87 | 1.09 | 0.84 |
| Image only (no tabular inputs) | ViT-Base | Yes | No | Token-level | Full | 4.63 | 0.85 | 1.22 | 0.81 |
| Simple concatenation fusion | ViT-Base | Yes | Yes | Feature concatenation | Full | 3.89 | 0.88 | 1.01 | 0.86 |
| No augmentation & regularization | ViT-Base | Yes | Yes | Token-level | None | 4.52 | 0.84 | 1.18 | 0.80 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Shalaldeh, A.; Safa, M.; Logan, C.; Othman, M. Estimation of Ewe Live Weight and Carcass Traits Using Advanced Hybrid Deep Learning and Multimodal Feature Fusion. Biology 2026, 15, 815. https://doi.org/10.3390/biology15100815
Shalaldeh A, Safa M, Logan C, Othman M. Estimation of Ewe Live Weight and Carcass Traits Using Advanced Hybrid Deep Learning and Multimodal Feature Fusion. Biology. 2026; 15(10):815. https://doi.org/10.3390/biology15100815
Chicago/Turabian StyleShalaldeh, Ahmad, Majeed Safa, Chris Logan, and Mohmmad Othman. 2026. "Estimation of Ewe Live Weight and Carcass Traits Using Advanced Hybrid Deep Learning and Multimodal Feature Fusion" Biology 15, no. 10: 815. https://doi.org/10.3390/biology15100815
APA StyleShalaldeh, A., Safa, M., Logan, C., & Othman, M. (2026). Estimation of Ewe Live Weight and Carcass Traits Using Advanced Hybrid Deep Learning and Multimodal Feature Fusion. Biology, 15(10), 815. https://doi.org/10.3390/biology15100815

