Subclinical mastitis detection in dairy cows using linear regression models and artificial intelligence algorithms in San Carlos, Costa Rica

Main Article Content

Verny Estrada-Carvajal
Marlen Camacho Calvo
Rafael Molina Montero
Wilfrido Paniagua Madrigal

Abstract

Six linear regression models and artificial intelligence algorithms for the prediction of subclinical mastitis in the milking herd of Ganadera La Uno S.A. farm were compared. As a response variable, a transformation of the “somatic cell count” (CCS) was used (somatic cell score, SCCS). As predictive variables of SCCS, there were used: 1) electrical conductivity (EC), 2) milk production (PL), and 3) technical indicators of cows, such as number of births (NP), days in lactation (DEL), age (ED) and reproductive status (ER). A “sick cow” was defined as one with a somatic cell score (SCCS) of 4 or more, which represents a somatic cell count (CCS) greater than 200,000 cs/ml. Four linear regression models were developed and two machine learning regression techniques were used: A) The Naïve Bayes classification algorithm and B) a regression model developed by automated learning. Linear regression models developed showed R2 values below 0.32, with a poor prediction value in terms of specificity (SPE) and sensitivity (SEN), with SPE of 55% (SEN set at 80%); while the area under the ROC curve of these models approached 75%.  The classification algorithm of Naïve Bayes was not a better estimator of subclinical mastitis either, with values of SEN and SPE similar to the linear regression models mentioned above. The best predictor was the linear regression model that machine  learning applied, with SPE (at 80% SEN) and areas under the ROC curve of 84.3% and 92.1% respectively.  It was shown that there is great potential in machine learning algorithms for the detection of subclinical mastitis in dairy herds.

Article Details

How to Cite
Estrada-Carvajal, V., Camacho Calvo, M., Molina Montero, R., & Paniagua Madrigal, W. (2019). Subclinical mastitis detection in dairy cows using linear regression models and artificial intelligence algorithms in San Carlos, Costa Rica. Revista AgroInnovación En El Trópico Húmedo, 2(1), 18–30. Retrieved from https://revistas.tec.ac.cr/index.php/agroinn/article/view/4689
Section
Zootecnia