| Literature DB >> 36014248 |
Enrique Camacho-Pérez1,2, Alfonso Juventino Chay-Canul3, Juan Manuel Garcia-Guendulain2,4, Omar Rodríguez-Abreo2,4.
Abstract
The Body Weight (BW) of sheep is an important indicator for producers. Genetic management, nutrition, and health activities can benefit from weight monitoring. This article presents a polynomial model with an adjustable degree for estimating the weight of sheep from the biometric parameters of the animal. Computer vision tools were used to measure these parameters, obtaining a margin of error of less than 5%. A polynomial model is proposed after the parameters were obtained, where a coefficient and an unknown exponent go with each biometric variable. Two metaheuristic algorithms determine the values of these constants. The first is the most extended algorithm, the Genetic Algorithm (GA). Subsequently, the Cuckoo Search Algorithm (CSA) has a similar performance to the GA, which indicates that the value obtained by the GA is not a local optimum due to the poor parameter selection in the GA. The results show a Root-Mean-Squared Error (RMSE) of 7.68% for the GA and an RMSE of 7.55% for the CSA, proving the feasibility of the mathematical model for estimating the weight from biometric parameters. The proposed mathematical model, as well as the estimation of the biometric parameters can be easily adapted to an embedded microsystem.Entities:
Keywords: artificial intelligent; computer vision; cuckoo search algorithm; embedded microsystems; genetic algorithm; mathematical model; weight estimation
Year: 2022 PMID: 36014248 PMCID: PMC9415317 DOI: 10.3390/mi13081325
Source DB: PubMed Journal: Micromachines (Basel) ISSN: 2072-666X Impact factor: 3.523
Figure 1Workflow of the main stages carried out in this study.
Figure 2Configuration of the area for data collection.
Figure 3RGB image from the Kinect® sensor.
Figure 4Depth image from the Kinect® sensor.
Figure 5Calibration tests.
Figure 6Segmented depth histogram on the Z-axis.
Figure 7Two-dimensional image with the information on the X-axis and the Y-axis.
Figure 8Schematic of the body measurements.
Figure 9Interface where the user places the points of interest to generate the measurements.
Figure 10Example of BDL obtained by the Kinect® sensor.
Biometric variables used as elements of the polynomial model.
| Biometric Variables | Nomenclature |
|---|---|
| Height at Withers sensed by Kinect® | HWK |
| Rump Height sensed by Kinect® | RHK |
| Body Length sensed by Kinect® | BLK |
| Body Diagonal Length sensed by Kinect® | BDLK |
| Body Total Length sensed by Kinect® | BTLK |
| Girth Semi-Circumference sensed by Kinect® | GSCK |
| Abdomen Semi-Circumference sensed by Kinect® | ASCK |
| Body Weight Estimated | BWE |
Search parameters used for the genetic algorithm.
| Parameter | Value | Description |
|---|---|---|
| Population size | 200 | Number of individuals (random solutions) |
| Termination condition: fitness evaluations consumed limit | ≤40,000 | Maximum number of times the fitness function is evaluated |
| Biological pressure | 85% | Percentage of individuals that reproduce |
| Elitism | 10% | Percentage of best individuals whose reproduction is guaranteed |
| Mutation probability | 30% | Probability that an individual will mutate |
| Crossover type | Single-point crossover | A random point in a parent is selected to combine the two parents |
| Selection method | Rank selection | The individual with the best performance has the best rank; the individual with the best rank has a higher probability of reproducing |
| Coefficient search range | [0–1] | Float limits values for each coefficient |
| Exponent search range | [0–5] | Integer limits values for each exponent |
Search parameters used for the cuckoo search algorithm.
| Parameter | Value | Description |
|---|---|---|
| Termination condition: fitness evaluations consumed limit | ≤40,000 | Number of times the fitness function is evaluated |
| Nests | 200 | Population size |
| Eggs |
| Random coefficients and exponents |
| Pa | 25% | Probability of foreign eggs being discovered |
| Coefficient search range | [0–1] | Float limits values for each coefficient |
| Exponent search range | [0–5] | Integer limits values for each exponent |
Figure 11Correlation matrix of the biometric parameters.
Results of the coefficients and exponents obtained for both algorithms.
| Coefficients | GA | CSA |
|---|---|---|
|
| 0.057 | 0.198 |
|
| 0.209 | 0.198 |
|
| 0.220 | 0.023 |
|
| 0.009 | 0.189 |
|
| 0.598 | 0.422 |
|
| 6.4 × 10 | 0.035 |
|
| 0.026 | 0.0419 |
|
| 4 | 4 |
|
| 3 | 2 |
|
| 4 | 5 |
|
| 1 | 5 |
|
| 2 | 2 |
|
| 4 | 4 |
|
| 4 | 3 |
Statistical errors of the models obtained by the GA and CSA.
| Estimator | GA | CSA |
|---|---|---|
| RMSE (%) | 7.68 | 7.55 |
| 79.23 | 79.98 | |
| MBE (%) | 0.33 | 2.26 |
| MAPE (%) | 9.45 | 9.97 |
Cross-validation with 10 runs for the GA and CSA.
| Estimator | GA | CSA |
|---|---|---|
| RMSE (%) | 8.83 | 9.68 |
| 72.46 | 66.59 | |
| MBE (%) | 1.43 | 0.95 |
| MAPE (%) | 10.83 | 11.2 |
Figure 12Function costs for both algorithms.
Figure 13Comparison between real weights’ values and estimated weights. (a) Comparison using the genetic algorithm; (b) Comparison using the cuckoo search algorithm.
Mathematical models.
| Technique | Equation | References |
|---|---|---|
| Agarwal’s formula a |
| [ |
| Schaeffer’s formula b |
| [ |
| Logistic model c |
| [ |
| Gompertz c |
| [ |
| Von Bertalanffy c |
| [ |
aY is equal to 9.0 if the girth is less than 65 inches; Y is equal to 8.5 if the girth is between 65 and 80 inches; Y is equal to 8.0 if the girth is over 80 inches. b L is the length of the animal from the point of the shoulder to the pin bone in inches, and G is the chest girth of the animal in inches. c A is the body weight (asymptotic), namely the value of t approaches infinity; B is the scale parameter (the value of the integral constant); e is the logarithm base (2.718282); k is the average rate of growth of the body until the animal reaches body maturity; M is the value of the function in the search for the inflection point (curve shape); t is the time in units of the month.