Skip to Content
You are currently on the new version of our website. Access the old version .
AnimalsAnimals
  • Article
  • Open Access

5 April 2025

22 Pages

Prediction of Body Mass of Dairy Cattle Using Machine Learning Algorithms Applied to Morphological Characteristics

,
,
,
,
and
1
Department of Agricultural Engineering, School of Engineering, Federal University of Lavras (UFLA), Lavras 37203-202, Brazil
2
Department of Animal Science, Federal University of Lavras (UFLA), Lavras 37203-202, Brazil
3
Department of Agriculture, Food, Environment and Forestry, University of Florence, Via San Bonaventura, 13-50145 Florence, Italy
*
Author to whom correspondence should be addressed.

Simple Summary

Predicting body mass (BM) in dairy cattle is essential for efficient herd management, optimizing feeding strategies, and monitoring animal condition. Traditional methods, such as direct weighing, can be labor-intensive and impractical in large-scale production systems. This study explored the use of advanced computational techniques, including artificial neural networks (ANNs) and Support Vector Regression (SVR), alongside traditional regression models, to estimate the BM based on morphological data. Thoracic and abdominal perimeters were identified as highly correlated variables, enabling the development of high-accuracy predictive models. The findings highlight the potential of computational approaches to improve BM estimation, providing practical alternatives for the livestock sector. While more complex models demonstrated superior predictive performance, simpler statistical methods remain valuable options for on-farm adoption, balancing accuracy and ease of implementation.

Abstract

The accurate prediction of body mass (BM) in cattle is crucial for herd monitoring, assessing biological efficiency, and optimizing nutritional management. This study evaluated BM prediction models using morphological data from 465 lactating Holstein cows, including the dorsal length (DL), thoracic width (TW), abdominal width (AW), rump width (RW), hip height (HH), body depth (BD), thoracic perimeter (TP), and abdominal perimeter (AP). Spearman’s correlation analysis identified TP (r = 0.89), AP (r = 0.88), and RW (r = 0.80) as the strongest predictors. Simple and multiple linear regression models, artificial neural networks (ANNs), and Support Vector Regression (SVR) were tested. The dataset was split into 90% for training (419 samples), 5% for validation (23 samples), and 5% for testing (23 samples). The best simple model, using only TP, achieved an R2 of 0.7763 and an RMSE of 43.69 kg. A multiple regression model with TP, AP, and RW improved performance (R2 = 0.9067, RMSE = 28.00 kg). The ANN outperformed all of the models (R2 = 0.9125, RMSE = 25.86 kg), and was followed by SVR (R2 = 0.9046, RMSE = 27.41 kg). As an indication of the evaluation of the results obtained, it is observed that, although regression models are effective, the ANNs and SVR provide greater accuracy, reinforcing their potential for herd management. However, simpler models remain viable alternatives for practical on-farm application.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.