<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Artificial Intelligence in Veterinary Ultrasonography: Can B-mode Image Analysis from the Mammary Gland Predict Productive Stage of Dairy Cows? - Abstract</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Konstantinos Themistokleous</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nikolaos Sakellariou</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evangelos Kiossis</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Clinic of Farm Animals, Faculty of Veterinary Medicine, Aristotle University of Thessaloniki</institution>
          ,
          <addr-line>54627, Thessaloniki</addr-line>
          ,
          <country country="GR">Greece</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Information Technologies Institute, Centre for Research and Technology Hellas</institution>
          ,
          <addr-line>57001, Thermi</addr-line>
          ,
          <country country="GR">Greece</country>
        </aff>
      </contrib-group>
      <fpage>489</fpage>
      <lpage>490</lpage>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Summary
Objective. The present study investigated the ability of a supervised machine learning
model to predict whether a dairy cow is in lactation or in dry period (non-lactating),
utilizing image analysis parameters from B-mode ultrasonography of the mammary
gland.</p>
      <p>Materials and methods. Eight clinically healthy Holstein dairy cows were selected
from the same herd. Seventeen examinations were performed to each one of them
during successive stages of their production; 7 days prior to dry-off, at dry-off, at 3rd,
7th, 21st, 35th day of dry period, 7 and 3 days prior to calving, at calving and at 3, 7,
14, 30, 45, 60, 75, 90 days in milk. All four quarters of the mammary gland were
examined via B-mode ultrasonography, using a curved-linear transducer (3-7 MHz),
frequency of insonation set at 4.3 MHz and scanning depth of 15 cm. At each
examination, 2 separate images from each quarter were taken. The total number of
images was 1016; 368 images from quarters in dry period and 648 images from
quarters in lactation. Each image was classified according to productive stage either as
“0” referring to dry period or “1” referring to lactation. Image analysis was performed
using the Echovet v.2.0. software and 15 of its’ parameters were utilized; mean value,
standard deviation, skewness, excess, gradient mean value, gradient variance,
percentage non-zero gradients, contrast, correlation, entropy, homogeneity, run
percentage, long-run emphasis, gray value distribution and run-length distribution. A
simple binary classification model based on the Decision Trees algorithm was used for
the development of the supervised machine learning model. The selection of input
variables was performed via Pearson correlation analysis between productive stage
and the aforementioned 15 parameters. The total dataset was split into two sub-sets:
80% for the training set and 20% for the testing set. Hyper parameter tuning by 5-fold
cross-validation was applied on the training set to determine the best hyper-parameters
but, also, to increase the generalization ability of the model. Due to high accuracy of
the model in every result of the cross-validation procedure, the default parameters were
selected for testing the final model on the unseen data of the testing set.
Results. Five variables with the highest correlation were selected; mean value
(ρ=0.006), standard deviation (ρ=-0.053), gradient variance (ρ=-0.013), percentage
non-zero gradients (ρ=0.147) and homogeneity (ρ=0.091). Therefore, the model’s
input was represented by a vector of 6 values; productive stage was the prediction
variable while mean value, standard deviation, gradient variance, percentage non-zero
gradients and homogeneity were the independent variables. The final model applied
on the testing set achieved 100% accuracy; 81/81 images of class 0 and 123/123
images of class 1 were correctly identified. The results for the metrics precision, recall,
accuracy and f1-score were all 1.00.</p>
      <p>Conclusion. The supervised machine learning model utilizing B-mode image analysis
from the mammary gland presented exceptional accuracy in predicting whether a dairy
cow is in lactation or in dry period.</p>
      <p>JEL Codes: Q01; Q16</p>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>