Answers are grounded in this paper and cite their sources.
Animal diseases are one of the factors that can reduce livestockproductivity and cause economic losses if they are not detected at an earlystage. The process of identifying diseases, which is still performedmanually, often requires considerable time and depends on the experienceof veterinary medical personnel. Therefore, the application of machinelearning can be a solution to assist in classifying animal diseases based onthe observed symptoms. This study aims to compare the performance of theRandom Forest and Extreme Gradient Boosting (XGBoost) algorithms inclassifying animal diseases and to determine the algorithm with the bestperformance. The dataset used consists of information on animal type, age,body temperature, and several clinical symptoms as input variables, whilethe disease type is used as the target variable. The research stages includedata preprocessing, One Hot Encoding, splitting the dataset into trainingand testing sets with an 80:20 ratio, model training using the RandomForest and XGBoost algorithms, and model evaluation using the Accuracy,Precision, Recall, and F1-Score metrics. In addition, the best-performingmodel is used to predict diseases based on new symptom data. The resultsshow that both algorithms are capable of classifying animal diseaseseffectively. However, XGBoost achieved an Accuracy of 79%,outperforming Random Forest, which achieved an Accuracy of 76%. Therefore, XGBoost can be considered a more effective model forsupporting faster and more accurate animal disease identification.
No takes yet. Share an insight, caveat, or question.
Najakh et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: