Next Article in Journal
Effects on Facial Growth Following Masseter Muscle Resection in Growing Rats—A Systematic Review
Previous Article in Journal
A Simple Telemetry Sensor System for Monitoring Body Temperature in Rabbits—A Brief Report
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Use of Biometric Images to Predict Body Weight and Hot Carcass Weight of Nellore Cattle

1
Department of Animal Science, University of Wisconsin, Madison, WI 53706, USA
2
School of Agricultural and Veterinarian Sciences, São Paulo State University, Jaboticabal 14884-900, SP, Brazil
3
Department of Biostatistics and Medical Informatics, University of Wisconsin, Madison, WI 53706, USA
4
School of Veterinary and Animal Science, São Paulo State University, Botucatu 18618-681, SP, Brazil
*
Author to whom correspondence should be addressed.
Animals 2023, 13(10), 1679; https://doi.org/10.3390/ani13101679
Submission received: 21 March 2023 / Revised: 18 April 2023 / Accepted: 11 May 2023 / Published: 18 May 2023
(This article belongs to the Section Animal Physiology)

Abstract

:

Simple Summary

Body and carcass weight are important economic characteristics for beef cattle production systems because the value of market cattle is based on weight. The possibility of predicting body and carcass weight through biometric measurements obtained from three-dimensional digital images favor the development of the production system. Predictive approaches, such as artificial neutral network, showed better predictive quality for body weight, while the least absolute shrinkage and selection operator and partial least square models were the most suitable for predicting carcass weight.

Abstract

The objective of this study was to evaluate different methods of predicting body weight (BW) and hot carcass weight (HCW) from biometric measurements obtained through three-dimensional images of Nellore cattle. We collected BW and HCW of 1350 male Nellore cattle (bulls and steers) from four different experiments. Three-dimensional images of each animal were obtained using the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA). Models were compared based on root mean square error estimation and concordance correlation coefficient. The predictive quality of the approaches used multiple linear regression (MLR); least absolute shrinkage and selection operator (LASSO); partial least square (PLS), and artificial neutral network (ANN) and was affected not only by the conditions (set) but also by the objective (BW vs. HCW). The most stable for BW was the ANN (Set 1: RMSEP = 19.68; CCC = 0.73; Set 2: RMSEP = 27.22; CCC = 0.66; Set 3: RMSEP = 27.23; CCC = 0.70; Set 4: RMSEP = 33.74; CCC = 0.74), which showed predictive quality regardless of the set analyzed. However, when evaluating predictive quality for HCW, the models obtained by LASSO and PLS showed greater quality over the different sets. Overall, the use of three-dimensional images was able to predict BW and HCW in Nellore cattle.

1. Introduction

The body weight is an important economic trait for beef cattle production systems, mainly because it allows the evaluation of individual animal growth, and the value of market cattle is based on weight. Therefore, it is possible to optimize the nutritional management in the different phases of the production cycle [1,2]. However, weighing carried out in the traditional way causes considerable financial losses to producers due to weight loss, a decrease in immunity, and even accidents during this process [3]. This is due to the time animals remain in the handling pen, in most cases, without feed and/or water and reared with other groups. For these reasons, the weighing of beef cattle cannot be carried out routinely or in short intervals of time, which would be very useful within breeding systems for adapting diets during growth and, mainly, in the finishing phase.
A promising approach is to obtain biometric measurements through three-dimensional digital images, which can be correlated with weight or frame size. In recent years, this type of approach has shown promise due to its low cost and possibility of automation, which eliminates financial losses linked to conventional weighing and allows access to weight estimates in real time [4,5]. However, the studies that evaluated image processing in animal production used different approaches and models for prediction, such as linear regression to predict body weight in dairy cattle [4] and beef cattle [6], and the Gaussian mixture model for predicting the body score condition in dairy cows [7].
However, the prediction quality (accuracy and precision) of the models between biometric variables via three-dimensional images and BW and HCW are affected not only by the chosen predictor variables [8] but also by multicollinearity characteristics and linear and non-linear relationships with the explanatory variable when using an image to predict body weight [9]. In this context, our hypothesis is that the use of approaches, such as partial least squares regression (PLS) and artificial neural network (ANN), present better predictive quality from variables extracted from the image for the prediction of BW and HCW in beef cattle. The predictive quality of the PLS and ANN methods appears to be less affected by the multicollinearity process between the independent variables [10] and has an adequate prediction ability even for complex relationships between variables in a non-linearity condition [11].
In this context, the objective of this study was to use and evaluate different methods of predicting BW and HCW from biometric measurements obtained through three-dimensional images of Nellore cattle.

2. Materials and Methods

All the animal procedures were approved by the Committee of Ethics in the use of animals of the School of Agricultural and Veterinarian Sciences of the São Paulo State University, Brazil, protocol number 007946/18.

2.1. Dataset and Obtaining Biometric Measurements by Images

2.1.1. Samples Used

For this work, BW data at the end of feedlot period and HCW were collected from 450 male Nellore cattle raised in single batches allocated within four different experiments (Exp; Table 1). Exp. 1 was composed of 48 chemically castrated male Nellore; Exp. 2 consisted of 83 Nellore bulls and Exp. 3 and 4 were composed of 228 and 91 Nellore bulls, respectively. These experiments were conducted in different years at the São Paulo State University (FMVZ UNESP), Botucatu, São Paulo, Brazil.

2.1.2. Collection of Weights and Biometric Measurements by Images

The body and hot carcass weights of the 450 animals were obtained from an electronic scale (Coimma LTDA, model RUDD 300, Dracena, São Paulo, Brazil, with an accuracy of ±0.5 kg) at the end of the feedlot period of each experiment and immediately after slaughter and evisceration. The three-dimensional images of each of these animals and their body weights were obtained at the end of the feedlot period. For this, a Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA) was used. It was positioned perpendicularly (90° angle) to the ground in the upper part of the cattle chute, respecting the same distance from the ground in all cases. Infrared image capture time (640 × 480 pixels) was 15 s, resulting in 10 frames per animal. Then, the 10 frames obtained for each animal were processed in three steps: (1) estimation of the distance from the ground to the camera, (2) image segmentation, and (3) feature extraction.
The steps cited above are described by Cominotte et al. [9] and were followed in this work. The best segmented frame was manually selected (one frame per animal by observer). As it is a controlled experiment for model calibration, some steps that are normally automated were performed manually. Therefore, the processing (manual evaluation) was carried out in this step, which consisted of evaluating the inclusion of the animal in the scene and its connectivity with the objects and the removal of these objects. In addition, the position of the animal’s body (and the positioning of the vertebral column) was verified through the outline of the dorsal area that was between the shoulder and the rump. By contrast, the determination of the shoulder and rump positions was carried out through an adaptation of the Hough transformation to identify round objects (Figure 1; [12,13]). After this supervised process, the image segments corresponding to biometric measurements were demarcated and extracted using an algorithm. The set of extracted features could be divided into two classes: body measurements and shape descriptors.
The body measurements were area, volume, maximum length, width, and height at equidistant locations on the dorsal part of the animal from the shoulders to the rump (Figure 2), and the length, width, and area of an object in an image that could be estimated by the sum of pixels. Fourier descriptors were used in this process in the same way as described by Cominotte et al. [9]. These are global image descriptors commonly used for shape analysis and image matching [14,15,16].
For the weight prediction analysis, the following features were obtained: area (BA) and body volume (BV), eleven widths (W1 to W11) and heights (H1 to H11) along the animal’s back, length, eccentricity, two spinal curvature measurements, and four descriptive Fourier measurements.

2.2. Statistical Methods for the Prediciton of Body Weight and Hot Carcass

2.2.1. Correlation and Exclusion of Variables

The Pearson correlation coefficients between the animal’s body weight, hot carcass weight, and the characteristics extracted from the three-dimensional images were obtained using the PROC CORR of the SAS 9.4 software (SAS Institute Inc., Cary, NC, USA). Biometric measurements were excluded based on the significance of the correlations (p < 0.05). The value of the correlations between the response variable and the 28 explanatory variables for predicting body weight and carcass weight are shown in Figure 3 and Figure 4, respectively.

2.2.2. Formation of Training and Test Sets

For training the different body weight and hot carcass prediction models using three-dimensional measurements, four different batch arrangements (or combinations) were created and used in this work. Thus, different training and tests were created in each of these arrangements. In the first (Set 1), the training set was formed by the union of data from batches 1, 2, and 3. In the second arrangement (Set 2), the training set was formed by batches 1, 2, and 4. In the third arrangement (Set 3), the training set was formed by batches 1, 3, and 4. In the fourth arrangement (Set 4), the training set was formed by batches 2, 3, and 4. To test the predictive models, the sets excluded during the training of each arrangement (set) were used. Therefore, batches 4, 3, 2, and 1 were used to test the models adjusted for data from Set 1, Set 2, Set 3, and Set 4, respectively.

2.2.3. Models Used for Prediction

Prediction of body weight and hot carcass weight was performed at the Department of Animal Sciences at the University of Wisconsin-Madison, United States. Prediction of body weight and hot carcass weight was developed using four different types of prediction methods: (1) artificial neural network, (2) partial least squares, (3) LASSO regression, and (4) multiple linear regression.
The MLR was performed together with the leave-one-out cross-validation in the software R using the TrainControl function “LOOCV” method from the Caret package (https://cran.r-project.org/web/packages/caret/caret.pdf (accessed on 1 July 2022)), where Y consisted of the animal’s body weightm and the independent variables X were the characteristics obtained through the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA).
Partial least squares (PLS) regression was performed with the JMP Pro 13 (SAS Institute Inc., Cary, NC, USA) to predict body weight using the NIPALS predictive variable algorithm. The PLS extracts successive linear combinations of predictors, called factors, which address both the explanation of response variation and the explanation of predictor variation. The number of factors retained in the model was determined using a 10 k-fold validation, with the predicted root mean of the PRESS calculated. The model that reached the lowest PRESS value in the cross-validation was chosen.
The LASSO regression was performed together with the 10 k-fold validation using the cv.glmnet function (nfolds = 10) from the “glmnet” package [17], implemented in the R software. This package implements an algorithm that optimizes model fit parameters using a coordinate descent algorithm. The description of LASSO models developed for body weight prediction and hot carcass weight prediction are available in Supplementary Materials (Tables S1 and S2).
Finally, artificial neural networks (ANN—“artificial neural network”) were applied and adapted from open-source software H2O (https://cran.rproject.org/web/packages/h2o/h2o.pdf (accessed on 1 July 2022)) through statistical software R (R Core Team, 2016, Vienna, Austria). The hyperparameters (variables that determine the network structure) used in machine learning can affect how the algorithm fits the data. We used a combination of hyperparameters to predict body weight and hot carcass weight as described by Dórea et al. [18]. After searching the neural network, the hyperparameters for body weight and hot carcass weight (Supplementary Materials Tables S1 and S2) were determined. Each model with its respective artificial neural network structures was trained through 10 k-fold validation. The H20.deeplearning function was used to train the models. ADADELTA was the adaptive learning rate algorithm used in all ANN [19].

2.3. Evaluation of Weight Predictions

The model evaluation system was conducted as described by Tedeschi [20]. The mean bias (MB) is probably the most used and the oldest statistic to assess model accuracy. It is calculated by the mean deviation between predicted and observed values [21]. The mean bias represents the error in the central tendency (to assess whether the predicted values are above or below predicted), the slope bias represents errors due to regression, and the random component is the variance that cannot be explained by the linear regression [20]. The mean bias represents the error in central tendency (to assess whether the predicted values are above or below the observed), the slope bias represents errors due to regression, and the random component is the unexplained variance that cannot be explained by linear regression [20].
The coefficient of determination (r2) was used between the predicted and observed values to define the precision of the equations. The concordance correlation coefficient (CCC) [22], mean bias, and root mean square error prediction (RMSEP) were calculated as a measure of accuracy. The CCC was estimated by Equation (1) [22].
ρ ^ c = ρ ^ × C b  
r = c o v X ,   Y σ x σ y
where the first component ( ρ ^ ) is the correlation coefficient estimate ( r ; Equation (2) may be computed using the covariance of X and Y and standard deviation of x and y) that measures the precision. The second component (Cb) is the polarization correction factor that represents how much the regression line deviates from the slope of the unit (45°). The Cb factor varies from 0 to 1.
The root mean square error prediction (RMSEP) is the mean square error prediction (MSEP). Where MSEP is the sum of the squared difference between the observed and predicted model, and the values are divided by the number of data points [23]. The MSEP was decomposed into mean bias, slope bias, and random errors [24] to provide an indication of the model’s adequacy for prediction. The models were evaluated using the software Model Evaluation System (MES, College Station, TX, USA; http://nutritionmodels.tamu.edu/mes.html, accessed on 1 July 2022) as described by Tedeschi [20].

3. Results and Discussion

The biometric measurements obtained through images were selected based on the significance of the correlation with the BW and HCW response variables within each training set (Set 1 to 4). In addition, to mitigate multicollinearity problems, explanatory variables (features) with significant correlation with each other were excluded, keeping, in this case, only the variables with the highest correlation with the response variable.
In this sense, it is worth noting that for both BW and HCW, in some groups of explanatory variables, high positive correlation between them were observed, mainly, between measurements of width (L1 to L11) and between measurements of height (A1 to A11; Figure 3 and Figure 4). This follows what is observed in relation to studies of biometric measurements taken in locu (or conventionally) in beef cattle and other livestock species [6,9].
Furthermore, a strong positive correlation was observed between volume (2) and body area (3) not only with each other but also with the other measurements of height and width, BW and HCW. Above all, it can be highlighted that volume (2) and body area (3) were the measures most strongly correlated with BW and HCW among all those obtained in this study. So far, what was described above was more clearly observed in Sets 1, 2, and 3 and not so evident for Set 4, considering both the prediction scenarios for BW and HCW. The variables selected from the correlation analysis were concatenated to be used as variables for training and testing in all sets (Sets 1, 2, 3, and 4).
Regarding the variables considered for prediction (and training) of BW, it was observed that length (27) tends to have a negative correlation with width measurements in all sets and has no significant correlation with BW. By contrast, the curvatures of the spine (28 and 29) did not present a significant correlation with any other body measurement, volume, or area in all sets; the same occurred with height 2 (16) in Sets 1, 2, and 4.
Regarding the explanatory variables obtained for HCW prediction, the same trends mentioned above were observed for dorsal spinal curvature measurements (27 and 28) and height 2 (16) (Figure 4). Differently from what was described for BW, the length variable (25) showed a high positive correlation with measurements of height, volume, body area, and HCW. Meanwhile, no significant correlation was observed between eccentricity (26) and descriptive Fourier (29 to 32) measures (not obtained for BW prediction) with each other and with any other biometric measure.
Regarding the predicted values for BW and HCW obtained by the different models tested, differences were observed in terms of precision and, mainly, accuracy in the different sets (Table 2 and Table 3). In general, for BW, better predictions were observed in Set 1 (Means bias < 6.62 kg; RMSEP < 20.95 kg) and worse in Set 4 (Mean bias > 11.88; RMSEP > 33.75). In Set 2, low accuracy of the predicted values for BW was observed in all models tested (Mean bias > −12.19), as it happened with Set 4; however, it was underestimated in Set 2 and overestimated in Set 4 (Table 2). In Set 3, there is an inconsistency between the models regarding the accuracy of the predicted BW (Mean bias between −0.65 to 6.04 kg) in relation to what was observed in the other sets, as well as the precision (RMSEP = 27.23 to 36.87 kg; r2 = 0.39 to 0.53). These were still better than those found in Set 4. When observing CCC (reproducibility index) that reflects both accuracy and precision at the same time, it was not possible to distinguish great differences between the sets, except for Set 1, being superior (0.72 to 0.74) and similar between the models. It is noteworthy that, in Set 3, the BW predictions obtained by PLS were accurate (Mean Bias = −0.65). However, high dispersion of predicted values is observed, indicating low precision (RMSEP 36.87 kg; r2 = 0.3; CCC = 0.54).
Putting the methods used for BW prediction into perspective, models that use penalties (shortening), PLS, and LASSO had an average performance in terms of accuracy and precision of BW predictions and, in some cases, surpassed by LMR, which, in turn, was quite unstable in the different scenarios; however, it presented a suitable performance in the general context. However, none of the aforementioned modeling methods was more stable than ANN, which showed adequate accuracy and precision in its predictions, regardless of the analyzed set. In this method, higher percentages of errors due to regression (RE) given in slope bias were observed, indicating that explanatory measures have a smaller effect on the variation of predicted values when compared to that observed with the original response variables, which leads to an understanding that there is a possibility of improvement in the adjustment of this model.
The structure of the data used for training and testing the models was in Set 1, Exp. 4 as an independent validation set, which had the lowest CV (5.12%) among the Exps. In Sep 4, the Exp. 1 was used to test the predictive model, in which a higher CV (10.55%) was observed. However, the opposite was observed regarding the CV of the datasets used for training the models, in which CVs of 11.40 and 7.94% were found for Sets 1 and 4, respectively. Then, some contrast was found between the training CV and the test CV in the sets with the best and worst BW estimates. However, apparently, the lower CV in the test favored better predictions for BW. It is also noteworthy that the Exp. 1 had a distinct BW range, with minimum and maximum values lower than the other Exps.
Regarding HCW, the best estimates were observed in Set 1 (Means bias < 6.89 kg; RMSEP < 14.06 kg) (Table 3). In Set 1, MLR had the lowest mean bias (0.01 kg) among HCW predictions. As for the BW, the best estimates were observed in Set 1 (Means bias < 6.89 kg; RMSEP < 14.06 kg) (Table 3). In Set 1, MLR had the lowest mean bias (0.01 kg) among HCW predictions. However, a high proportion of errors due to regression (87% of MSEP) and due to disturbances (13% of MSEP) are observed, indicating less adjustment of the training model on the variation of the predicted values. This inaccuracy of the predicted values (r2 = 0.05; CCC = 0.14) can be misinterpreted if only measures of central tendency (Mean bias) are observed, which may make this model unstable for predictions in new datasets. After such consideration, we cannot observe systematic variations in the other sets (2 to 4), with great alternation between the HCW prediction quality between models. Therefore, it is not possible to highlight a single method that has excelled in all scenarios.
However, estimates obtained by LASSO and PLS showed greater stability in terms of the quality of predictions over the scenarios being more balanced in terms of accuracy and precision of predicted values (Table 3). The accuracy of predictions obtained by ANN varied depending on the sets (r2 = 0.17 to 0.52; CCC = 0.19 to 0.65); in addition, high average bias values were observed (up to−21.27 kg), indicating low accuracy and a high proportion of errors due to regression (21 to 31% MSEP). The predictions obtained by MLR varied a lot in relation to each set, obtaining the best accuracy of the predicted values in some cases (Set 1 and Set 3), however, quite inaccurate in most cases (r2 = 0.05 to 0.52; CCC = 0.14 to 0.69). Such results indicate that the penalties used by the LASSO and PLS methods were effective in modeling over all sets, managing to deliver reasonable predictions in all sets, and adjusting well to this type of data.
Our results partially validate the hypothesis that the use of approaches, such as ANN or PLS, would present a higher predictive quality of BW and HCW prediction from three-dimensional images. The ANN showed better predictive quality (precision and accuracy) for the BW in the different sets, which demonstrate better reproducibility of this approach for the prediction of BW. However, ANN showed instability in accuracy and precision in different sets for HCW prediction. However, the PLS approach showed better predictive quality for HCW in the different evaluation conditions (sets).
Results, such as those found here, are important, as they assess the predictive capacity of different models in a dataset regardless of those used in training. Shetty et al. [25] compared the validation of a model using external datasets. First, a dataset was created by randomly excluding cows from the training set; then, a dataset was created by randomly excluding records. These authors concluded that model predictions were overestimated when records from the same cow were maintained in both datasets (training and validation). According to Dórea et al. [18] the validation of models excluding the entire set is closer to reality, as the models must be used to predict new datasets from farms or herds with different diets, climates, and rearing practices.
To investigate how the structuring of data used for training and test from different farms/experiments (independent validation) could affect the predictive capacity of each model in this experiment, predictions using cross-validation (10-kfold) were also performed on each training set (Table 4). The best scenario (Set 1), for which independent validation obtained better predictions than the cross-validation (10-kfold), was applied to the training set for this same scenario. However, the other scenarios (Set 2, 3, and 4) had less precise/accurate predictions in the independent validations compared to the cross validations for these same scenarios.
The results obtained show that predicting body weight and hot carcass weight from three-dimensional images becomes an important tool to be used. Such technologies may offer a practical and affordable way to reduce the stress of animals in farms and abattoirs. In this sense, taking into account the reduced size of the sample set, as well as the high variation in accuracy/precision of the weight predictions for BW and HCW in the different proposed scenarios, it was possible to notice that image weighing could be useful when applied to batches, where only the average weight would be of interest. By contrast, it could be difficult to apply these models with a focus on estimated weights for individuals. In general, the weight estimates obtained by imaging still lack greater accuracy and precision, especially since in many cases the RMSEP value was above the standard deviation of the actual values. In this sense, the current study used a pure breed and an independent validation with external data (from different batches/farms), simulating on a smaller scale what would be expected in a practical application of weighing through three-dimensional images. This section may be divided by subheadings. It should provide a concise and precise description of the experimental results, their interpretation, as well as the experimental conclusions that can be drawn.

4. Conclusions

The use of three-dimensional images has the potential to predict BW and HCW in Nellore bulls and steers. The biometric measurements obtained through a three-dimensional images system may help to monitor cattle growth and performance.
The use of independent validation helped to reduce the overfitting effect of the model, but future studies with a larger database and animals from different farms will still be necessary in order to offer greater robustness and precision in the predictions.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/ani13101679/s1, Table S1. Models developed for artificial neural networks, partial least squares, and least absolute shrinkage and selection operator for body weight prediction; Table S2. Models developed for artificial neural networks, partial least squares, and least absolute shrinkage and selection operator to predict hot carcass weight.

Author Contributions

Conceptualization, A.C. and O.M.N.; methodology, J.D., G.R., and G.P.; formal analysis, G.R. and G.P.; investigation, A.C. and O.M.N.; writing—original draft preparation, A.C., R.T., W.B., and G.P.; writing—review and editing, A.C., R.T., W.B., and G.P.; visualization, O.M.N., A.F., J.D., and G.R.; supervision, O.M.N., A.F., J.D., and G.R.; funding acquisition, O.M.N. All authors have read and agreed to the published version of the manuscript.

Funding

The authors are grateful to São Paulo Research Foundation (FAPESP) for the financial support of this research. Research Grants: 2017/02057-0, 2017/20812-0 and 2021/07222-5. This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—Brasil (CAPES)—Finance Code 001.

Institutional Review Board Statement

The animal study protocol was approved by the Committee of Ethics in the use of animals of the School of Agricultural and Veterinarian Sciences of the São Paulo State University, Brazil (protocol number 007946/18, approved in June 2018).

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are available upon request from the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Polgar, P.; Szücs, E.; Szabo, F. Effect of selection for improvement of dairy performance on growth and body structure in Holstein Friesian and Hungarian Fleckvieh young bulls. Arch. Tierz. 1997, 40, 505–510. (In German) [Google Scholar]
  2. Ulutas, Z.; Saatci, M.; Ozluturk, A. Prediction of body weights from body measurements in East Anatolian Red calves. J. Atatrk Univ. Agric. Fac. 2001, 32, 61–65. [Google Scholar]
  3. Schofield, C.P.; Marchant, J.A.; White, R.P.; Brandl, N.; Wilson, M. Monitoring pig growth using a prototype imaging system. J. Agric. Eng. Res. 1999, 72, 205–210. [Google Scholar] [CrossRef]
  4. Kuzuhara, Y.; Kawamura, K.; Yoshitoshi, R.; Tamaki, T.; Sugai, S.; Ikegami, M.; Yasuda, T. A preliminarily study for predicting body weight and milk properties in lactating Holstein cows using a three-dimensional camera system. Comput. Electron. Agric. 2015, 111, 186–193. [Google Scholar] [CrossRef]
  5. Wang, Z.; Shadpour, S.; Chan, E.; Rotondo, V.; Wood, K.M.; Tulpan, D. ASASNANP Symposium: Applications of machine learning for livestock body weight prediction from digital images. J. Anim. Sci. 2021, 99, 22. [Google Scholar] [CrossRef] [PubMed]
  6. Gomes, R.A.; Monteiro, G.R.; Assis, G.J.F.; Busato, K.C.; Ladeira, M.M.; Chizzotti, M.L. Technical note: Estimating body weight and body composition of beef cattle trough digital image analysis. J. Anim. Sci. 2016, 94, 5414–5422. [Google Scholar] [CrossRef] [PubMed]
  7. Liu, D.; He, D.; Norton, T. Automatic estimation of dairy cattle body condition score from depth image using ensemble model. Biosyst. Eng. 2020, 194, 16–27. [Google Scholar] [CrossRef]
  8. Fernandes, A.F.; Dórea, J.R.; Fitzgerald, R.; Herring, W.; Rosa, G.J. A novel automated system to acquire biometric and morphological measurements and predict body weight of pigs via 3D computer vision. J. Anim. Sci. 2019, 97, 496–508. [Google Scholar] [CrossRef] [PubMed]
  9. Cominotte, A.; Fernandes, A.F.A.; Dorea, J.R.R.; Rosa, G.J.M.; Ladeira, M.M.; van Cleef, E.H.C.B.; Neto, O.M. Automated computer vision system to predict body weight and average daily gain in beef cattle during growing and finishing phases. Livest. Sci. 2020, 232, 103904. [Google Scholar] [CrossRef]
  10. Carrascal, L.M.; Galván, I.; Gordo, O. Partial least squares regression as an alternative to current regression methods used in ecology. Oikos 2009, 5, 681–690. [Google Scholar] [CrossRef]
  11. Gianola, D.; Okut, H.; Weigel, K.A.; Rosa, G.J.M. Predicting complex quantitative traits with Bayesian neural networks: A case study with Jersey cows and wheat. BMC Genet. 2011, 12, 87. [Google Scholar] [CrossRef] [PubMed]
  12. Hough, P.V.C. Method and Means for Recognizing Complex Patterns. U.S. Patent 4746348, 18 December 1962. [Google Scholar]
  13. Atherton, T.J.; Kerbyson, D.J. Size in variant circle detection. Image Vis. Comput. 1999, 17, 795–803. [Google Scholar] [CrossRef]
  14. Bowman, E.T.; Soga, K.; Drummond, T.W. Particleshape Characterisation Using Fourier Analysis; CUED/DSoils/TR315; University of Cambridge, Department of Engineering: Cambridge, UK, 2000; Volume 1, p. 20. [Google Scholar]
  15. Zhang, D.; Lu, G. Shape-based image retrieval using generic Fourier descriptor. Signal process. Image Commun. 2002, 17, 825–848. [Google Scholar]
  16. Burger, W.; Burge, M.J. Digital Image Processing: An Algorithmic Introduction Using Java, 2nd ed.; Gries, D., Schneider, F.B., Eds.; Springer: London, UK, 2016. [Google Scholar] [CrossRef]
  17. Friedman, J.; Hastie, T.; Tibshirani, R. Regularization paths for generalized linear models via coordinate descent. J. Stat. Softw. 2010, 33, 1–22. [Google Scholar] [CrossRef] [PubMed]
  18. Dórea, J.R.R.; Rosa, G.J.M.; Weld, K.A.; Armentano, L.E. Mining data from milk infrared spectroscopy to improve feed intake predictions in lactating dairy cows. J. Dairy Sci. 2018, 101, 5878–5889. [Google Scholar] [CrossRef] [PubMed]
  19. Zeiler, M.D. ADADELTA: An adaptive learning rate method. arXiv 2012, arXiv:1212.5701:1:6. [Google Scholar]
  20. Tedeschi, L.O. Assessment of the adequacy of mathematical models. Agric. Syst. 2006, 89, 225–247. [Google Scholar] [CrossRef]
  21. Cochran, W.G.; Cox, G.M. Experimental Design, 2nd ed.; John Wiley and Sons: New York, NY, USA, 1957. [Google Scholar]
  22. Lin, L.I.K. A concordance correlation coefficient to evaluate reproducibility. Biometrics 1898, 45, 255–268. [Google Scholar] [CrossRef]
  23. Bibby, J.; Toutenburg, D.H. Prediction and Improved Estimation in Linear Models; John Wiley & Sons: Berlin, Germany, 1977. [Google Scholar]
  24. Theil, H. Economic Forecasts and Policy; Springer: Berlin/Heidelberg, Germany, 1961. [Google Scholar]
  25. Shetty, N.; Lovenhahl, P.; Lund, M.; Buitenhuis, A. Prediction and validation of residual feed intake and dry matter intake in Danish lactating dairy cows using mid infrared spectroscopy of milk. J. Dairy Sci. 2017, 100, 253–264. [Google Scholar] [CrossRef]
Figure 1. (A) Shoulder and rump identified through a Hough transformation adaptation for the identification of round objects; (B) image of the animal’s back segmented after the identification of round objects. X and Y correspond to the coordinates of each pixel in the Cartesian plane, and mm represents the distance in millimeters from the camera to each pixel point in the image.
Figure 1. (A) Shoulder and rump identified through a Hough transformation adaptation for the identification of round objects; (B) image of the animal’s back segmented after the identification of round objects. X and Y correspond to the coordinates of each pixel in the Cartesian plane, and mm represents the distance in millimeters from the camera to each pixel point in the image.
Animals 13 01679 g001
Figure 2. Extraction of body measurements at equidistant locations on the back of the animal, from the shoulders to the rump: (A) Containment trunk without the animal; (B) area and length measurements, (C) height measured at 11 points along the back, and (D) body volume (Height × Length × Width) = Width measurements 11 points—dorsal area [yellow line] × Height measured at 11 points along the back [red line].
Figure 2. Extraction of body measurements at equidistant locations on the back of the animal, from the shoulders to the rump: (A) Containment trunk without the animal; (B) area and length measurements, (C) height measured at 11 points along the back, and (D) body volume (Height × Length × Width) = Width measurements 11 points—dorsal area [yellow line] × Height measured at 11 points along the back [red line].
Animals 13 01679 g002
Figure 3. Correlation between the response variable and the explanatory variables for body weight obtained through the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA).
Figure 3. Correlation between the response variable and the explanatory variables for body weight obtained through the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA).
Animals 13 01679 g003
Figure 4. Correlation between the response variable and the explanatory variables for hot carcass weight obtained through the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA).
Figure 4. Correlation between the response variable and the explanatory variables for hot carcass weight obtained through the Kinect® model 1473 sensor (Microsoft Corporation, Redmond, WA, USA).
Animals 13 01679 g004
Table 1. Descriptive statistics of body weights at the end of the feedlot period and hot carcass (in kg) of Nellore cattle in four different experiments (Exp.), as well as the sets formed for training predictive models.
Table 1. Descriptive statistics of body weights at the end of the feedlot period and hot carcass (in kg) of Nellore cattle in four different experiments (Exp.), as well as the sets formed for training predictive models.
Training Validation (Test)
nMean (kg)SD 1 (kg)CV 2 (%)Min (kg)Max (kg) nAge 3Mean (kg)SD 1 (kg)CV 2 (%)Min (kg)Max (kg)
BWSet 1359553.3063.0811.40359.00665.00Exp. 49124 ± 2589.9430.265.12505.00653.00
Set 2222532.1865.9012.38359.00653.00Exp. 322822 ± 2558.4935.616.05485.00665.00
Set 3367570.6759.3010.39359.00665.00Exp. 28322 ± 2516.6938.227.39450.00612.00
Set 4402573.9945.597.94450.00665.00Exp. 14822 ± 2449.4847.4610.55359.00554.00
HCWSet 1359315.3437.3211.83205.00394.00Exp. 49124 ± 2334.2216.795.02277.60376.80
Set 2222301.7036.4212.07205.00376.80Exp. 322822 ± 2336.1723.176.92259.20394.40
Set 3367325.7434.0210.44204.80394.40Exp. 28322 ± 2290.0822.197.65248.80343.60
Set 4402326.2128.498.73248.80394.40Exp. 14822 ± 2260.1228.1010.80205.00317.00
BW = Body weight; HCW = Hot carcass weight; 1 Standard deviation; 2 Coefficient of variation; 3 Months.
Table 2. Evaluation parameters of body weight predictions in different experimental sets.
Table 2. Evaluation parameters of body weight predictions in different experimental sets.
Training
Dataset/Test
ModelsSlope (±SE) 1H0: b = 1r2Mean Bias (kg)CCC 2 RMSEP (kg) 3RMSEP/Mean
(%)
Decomposition of MSEP (%)
Mean BiasSlope BiasRandom Error
Set 1/
Exp. 4
ANN0.59 (±0.05)0.010.583.220.73 (±0.04)19.683.342.6837.9059.42
PLS0.69 (±0.06)0.010.555.330.72 (±0.04)21.603.666.0918.1175.80
LASSO0.70 (±0.06)0.020.586.520.74 (±0.04)20.953.559.7118.5571.74
MLR0.69 (±0.06)0.010.586.620.74 (±0.04)20.953.5510.0018.9571.05
Set 2/
Exp. 3
ANN0.57 (±0.03)0.010.53−12.190.66 (±0.03)27.225.1120.0530.3349.62
PLS0.59 (±0.03)0.010.53−13.800.65 (±0.03)28.075.0324.1826.1749.65
LASSO0.60 (±0.03)0.010.53−14.120.65 (±0.03)28.315.0724.9024.7050.40
MLR0.59 (±0.03)0.010.53−13.550.66 (±0.03)27.955.0023.5325.8650.61
Set 3/
Exp. 2
ANN0.62 (±0.06)0.010.536.040.70 (±0.05)27.235.274.9127.1167.98
PLS0.56 (±0.09)0.020.30−0.650.54 (±0.07)36.877.140.0320.2279.75
LASSO0.58 (±0.08)0.010.395.810.61 (±0.06)32.346.263.2324.0572.72
MLR0.56 (±0.07)0.010.391.960.62 (±0.06)31.366.070.4027.6571.95
Set 4/
Exp. 1
ANN0.74 (±0.09)0.080.5912.400.74 (±0.06)33.755.8712.5112.1474.35
PLS0.78 (±0.11)0.060.5111.880.69 (±0.07)39.348.759.126.3584.53
LASSO0.76 (±0.11)0.040.5016.770.67 (±0.07)40.639.0417.047.3375.63
MLR0.72 (±0.06)0.040.5113.770.67 (±0.07)42.659.497.3517.0675.59
1 SE = standard error; 2 CCC = concordance correlation coefficient; 3 RMSEP = root mean square error prediction; SE = error standard; MSEP = mean square error of predict; ANN = artificial neural network; PLS = partial least squares; MLR = multiple linear regression.
Table 3. Evaluation parameters of hot carcass weight predictions in different experimental sets.
Table 3. Evaluation parameters of hot carcass weight predictions in different experimental sets.
Training
Dataset/Test
ModelsSlope (±SE) 1H0:b = 1r2Mean Bias (kg)CCC 2RMSEP (kg) 3RMSEP/ Mean (%)Decomposition of MSEP (%)
Mean BiasSlope BiasRandom Error
Set 1/
Exp. 4
ANN0.56 (±0.08)0.010.453.160.65 (±0.05)13.063.905.8730.7863.35
PLS0.59 (±0.06)0.010.446.890.60 (±0.06)14.624.3722.2321.7756.00
LASSO0.63 (±0.06)0.010.494.430.67 (±0.05)13.173.9411.3121.3767.32
MLR0.08 (±0.03)0.010.050.010.14 (±0.06)8.752.620.0086.9513.05
Set 2/
Exp. 3
ANN0.19 (±0.03)0.010.17−21.270.19 (±0.03)30.008.9250.2538.5511.20
PLS0.44 (±0.03)0.010.42−10.060.54 (±0.03)20.336.0524.4939.5136.00
LASSO0.43 (±0.03)0.010.40−9.110.53 (±0.03)20.135.9920.5042.1237.38
MLR0.43 (±0.03)0.010.40−9.510.53 (±0.03)20.296.0421.9641.5536.49
Set 3/
Exp. 2
ANN0.52 (±0.06)0.010.4411.330.56 (±0.06)20.066.9131.8726.9941.14
PLS0.57 (±0.09)0.020.3210.490.51 (±0.07)23.017.9320.7716.5762.66
LASSO0.55 (±0.06)0.010.4612.890.55 (±0.06)20.897.2038.1022.3139.59
MLR0.42 (±0.09)0.010.209.820.40 (±0.08)24.618.4816.2526.8356.92
Set 4/
Exp. 1
ANN0.61 (±0.08)0.050.5212.670.64 (±0.07)23.208.9129.8321.1449.03
PLS0.78 (±0.12)0.090.455.180.65 (±0.08)25.359.754.195.5590.26
LASSO0.75 (±0.11)0.030.488.530.66 (±0.07)24.169.2912.488.1379.39
MLR0.75 (±0.10)0.020.528.490.69 (±0.07)22.768.7513.938.9177.16
1 SE = standard error; 2 CCC = concordance correlation coefficient; 3 RMSEP = root mean square error prediction; SE = error standard; MSEP = mean square error of predict; ANN = artificial neural network; PLS = partial least squares; MLR = multiple linear regression.
Table 4. Root mean square error prediction (RMSEP) calculated using the predictive models: ANN, PLS, LASSO, and RLM for body weight and hot carcass weight.
Table 4. Root mean square error prediction (RMSEP) calculated using the predictive models: ANN, PLS, LASSO, and RLM for body weight and hot carcass weight.
Root Mean Square Error Prediction (RMSEP)
Body Weight (kg)Hot Carcass Weight (kg)
Set 1Set 2Set 3Set 4Set 1Set 2Set 3Set 4
Training set
10-kfold cross validation
ANN20.1620.9118.6920.2715.7113.4215.2514.82
PLS21.2820.7220.5318.2316.7713.7715.9814.70
LASSO21.5420.3320.4318.0616.6713.9415.6714.82
RLM23.6221.8322.2121.007.3313.9515.0415.08
Independent validationANN19.6827.2227.2333.7513.0630.0020.0623.20
PLS21.6028.0736.8739.3414.6220.3323.0125.35
LASSO20.9528.3132.3440.6313.1720.1320.8924.16
RLM20.9527.9531.3640.638.7520.2924.6122.76
SE = error standard; MSEP = mean square error of predict; ANN = artificial neural network; PLS = partial least squares; MLR = multiple linear regression.
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.

Share and Cite

MDPI and ACS Style

Cominotte, A.; Fernandes, A.; Dórea, J.; Rosa, G.; Torres, R.; Pereira, G.; Baldassini, W.; Machado Neto, O. Use of Biometric Images to Predict Body Weight and Hot Carcass Weight of Nellore Cattle. Animals 2023, 13, 1679. https://doi.org/10.3390/ani13101679

AMA Style

Cominotte A, Fernandes A, Dórea J, Rosa G, Torres R, Pereira G, Baldassini W, Machado Neto O. Use of Biometric Images to Predict Body Weight and Hot Carcass Weight of Nellore Cattle. Animals. 2023; 13(10):1679. https://doi.org/10.3390/ani13101679

Chicago/Turabian Style

Cominotte, Alexandre, Arthur Fernandes, João Dórea, Guilherme Rosa, Rodrigo Torres, Guilherme Pereira, Welder Baldassini, and Otávio Machado Neto. 2023. "Use of Biometric Images to Predict Body Weight and Hot Carcass Weight of Nellore Cattle" Animals 13, no. 10: 1679. https://doi.org/10.3390/ani13101679

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop