Comparison of the MARS and XGBoost algorithms for predicting body weight in Kalahari Red goats.

Saved in:
Bibliographic Details
Title: Comparison of the MARS and XGBoost algorithms for predicting body weight in Kalahari Red goats.
Authors: TYASI, Louis Thobela1, TIRINK, Cem2 cem.tirink@gmail.com, MOKOENA, Kwena1, ÖNDER, Hasan3, ŞEN, Uğur4, ÇANGA BOĞA, Demet5, TOLUN, Tolga6, GÖK, İsmail6, AKSOY, Yüksel7, BAYYURT, Lütfi8, YILMAZ, Ömer Faruk3
Source: Turkish Journal of Veterinary & Animal Sciences. 2026, Vol. 50 Issue 1, p18-25. 8p.
Document Type: Article
Subjects: Machine learning, Goats, Goodness-of-fit tests, Body size, Livestock growth
Author-Supplied Keywords: body measurement
Kalahari Red goat
MARS
prediction
XGBoost
Abstract: Estimating goat body weight from morphometric traits is essential for growth monitoring, health management, and welfare. Accurate weight informs nutrition, clinical interventions, and mating decisions. In this study, the MARS and XGBoost algorithms were used to estimate the live weight of Kalahari Red goats based on body measurements. A dataset containing body length (BL), birth type (single, twin, or triplet), withers height (WH), rump height (RH), and heart girth (HG) information for 200 goats was used in the training and testing of the models. The performances of the models were evaluated with the goodness-of-fit criteria. XGBoost showed a performance of R² = 0.998, RMSE = 0.023, and MAPE = 0.039 in the training set and R² = 0.974, RMSE = 0.669, and MAPE = 0.927 in the test set. In addition, MARS achieved R² = 0.994, RMSE = 0.260, and MAPE = 0.447 in the training set and R² = 0.968, RMSE = 0.595, and MAPE = 0.771 in the test set. These results demonstrate that, although the R² values of XGBoost are higher than those of MARS, both algorithms were effective. XGBoost consistently yielded lower errors and slightly higher R² in estimating the live weight of Kalahari Red goats based on body measurements. [ABSTRACT FROM AUTHOR]
Copyright of Turkish Journal of Veterinary & Animal Sciences is the property of Scientific and Technical Research Council of Turkey and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Author Affiliations: 1Department of Agricultural Economics and Animal Production, Faculty of Science and Agriculture, University of Limpopo, Limpopo, South Africa.
2Department of Animal Science, Faculty of Agriculture, Iğdır University, Iğdır, Turkiye.
3Department of Animal Science, Faculty of Agriculture, Ondokuz Mayıs University, Samsun, Turkiye.
4Department of Agricultural Biotechnology, Faculty of Agriculture, Ondokuz Mayıs University, Samsun, Turkiye.
5Department of Numerical Methods, Faculty of Economics and Administrative Sciences, Niğde Ömer Halisdemir University, Niğde, Turkiye.
6Department of Bioengineering, Faculty of Agriculture, Kahramanmaraş Sütçü İmam University, Kahramanmaraş, Turkiye.
7Department of Animal Science, Faculty of Agriculture, Eskişehir Osmangazi University, Eskişehir, Turkiye.
8Department of Animal Science, Faculty of Agriculture, Gaziosmanpaşa University, Tokat, Turkiye.
ISSN: 1300-0128
DOI: 10.55730/1300-0128.4405
Accession Number: 192162921
Database: Veterinary Source
Description
Abstract:Estimating goat body weight from morphometric traits is essential for growth monitoring, health management, and welfare. Accurate weight informs nutrition, clinical interventions, and mating decisions. In this study, the MARS and XGBoost algorithms were used to estimate the live weight of Kalahari Red goats based on body measurements. A dataset containing body length (BL), birth type (single, twin, or triplet), withers height (WH), rump height (RH), and heart girth (HG) information for 200 goats was used in the training and testing of the models. The performances of the models were evaluated with the goodness-of-fit criteria. XGBoost showed a performance of R² = 0.998, RMSE = 0.023, and MAPE = 0.039 in the training set and R² = 0.974, RMSE = 0.669, and MAPE = 0.927 in the test set. In addition, MARS achieved R² = 0.994, RMSE = 0.260, and MAPE = 0.447 in the training set and R² = 0.968, RMSE = 0.595, and MAPE = 0.771 in the test set. These results demonstrate that, although the R² values of XGBoost are higher than those of MARS, both algorithms were effective. XGBoost consistently yielded lower errors and slightly higher R² in estimating the live weight of Kalahari Red goats based on body measurements. [ABSTRACT FROM AUTHOR]
ISSN:13000128
DOI:10.55730/1300-0128.4405