<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "http://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<processing-meta>
<custom-meta-group content-type="composition">
<custom-meta specific-use="newgen" xlink:href="https://www.newgen.co/">
<meta-name>Composition Vendor</meta-name>
<meta-value>Newgen KnowledgeWorks (P) Ltd.</meta-value>
</custom-meta>
</custom-meta-group>
</processing-meta>
<front>
<journal-meta>
<journal-id journal-id-type="nlm-ta">PLoS ONE</journal-id>
<journal-id journal-id-type="publisher-id">plos</journal-id>
<journal-id journal-id-type="pmc">plosone</journal-id>
<journal-title-group>
<journal-title>PLOS ONE</journal-title>
</journal-title-group>
<issn pub-type="epub">1932-6203</issn>
<publisher>
<publisher-name>Public Library of Science</publisher-name>
<publisher-loc>San Francisco, CA USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.1371/journal.pone.0318698</article-id>
<article-id pub-id-type="publisher-id">PONE-D-24-44714</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Research Article</subject>
</subj-group>
<subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Women's health</subject><subj-group><subject>Maternal health</subject><subj-group><subject>Mastitis</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Microbiology</subject><subj-group><subject>Medical microbiology</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Pathology and laboratory medicine</subject><subj-group><subject>Pathogens</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Nutrition</subject><subj-group><subject>Diet</subject><subj-group><subject>Beverages</subject><subj-group><subject>Milk</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Nutrition</subject><subj-group><subject>Diet</subject><subj-group><subject>Beverages</subject><subj-group><subject>Milk</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Anatomy</subject><subj-group><subject>Body fluids</subject><subj-group><subject>Milk</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Anatomy</subject><subj-group><subject>Body fluids</subject><subj-group><subject>Milk</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Physiology</subject><subj-group><subject>Body fluids</subject><subj-group><subject>Milk</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Engineering and technology</subject><subj-group><subject>Transportation</subject></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Zoology</subject><subj-group><subject>Animal diseases</subject><subj-group><subject>Bovine mastitis</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Organisms</subject><subj-group><subject>Bacteria</subject><subj-group><subject>Staphylococcus</subject><subj-group><subject>Staphylococcus aureus</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Microbiology</subject><subj-group><subject>Medical microbiology</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject><subj-group><subject>Staphylococcus</subject><subj-group><subject>Staphylococcus aureus</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Pathology and laboratory medicine</subject><subj-group><subject>Pathogens</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject><subj-group><subject>Staphylococcus</subject><subj-group><subject>Staphylococcus aureus</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Organisms</subject><subj-group><subject>Bacteria</subject><subj-group><subject>Streptococcus</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Microbiology</subject><subj-group><subject>Medical microbiology</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject><subj-group><subject>Streptococcus</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Pathology and laboratory medicine</subject><subj-group><subject>Pathogens</subject><subj-group><subject>Microbial pathogens</subject><subj-group><subject>Bacterial pathogens</subject><subj-group><subject>Streptococcus</subject></subj-group></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Imaging techniques</subject><subj-group><subject>Image analysis</subject></subj-group></subj-group></subj-group></article-categories>
<title-group>
<article-title>Evaluation of an automatic image classifier for analysis of bacterial growth on a multiple-agar plate developed for bovine mastitis</article-title>
<alt-title alt-title-type="running-head">Validation of AI-based classifier for bacterial identification on 4-agar plate</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" xlink:type="simple">
<name name-style="western">
<surname>Tamminen</surname>
<given-names>Lena-Mari</given-names>
</name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
<role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing – original draft</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"/></contrib>
<contrib contrib-type="author" corresp="yes" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-8131-6725</contrib-id>
<name name-style="western">
<surname>Dahlberg</surname>
<given-names>Josef</given-names>
</name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role content-type="http://credit.niso.org/contributor-roles/data-curation/">Data curation</role>
<role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role content-type="http://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing – original draft</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="corresp" rid="cor001">*</xref>
<xref ref-type="aff" rid="aff001"/></contrib>
</contrib-group>
<aff id="aff001"><addr-line>Department of Clinical Sciences, Swedish University of Agricultural Science, Uppsala, Sweden</addr-line></aff>
<contrib-group>
<contrib contrib-type="editor" xlink:type="simple">
<name name-style="western">
<surname>ELTarabili</surname>
<given-names>Reham Mokhtar</given-names>
</name>
<role>Editor</role>
<xref ref-type="aff" rid="edit1"/></contrib>
</contrib-group>
<aff id="edit1"><addr-line>Suez Canal University, EGYPT</addr-line></aff>
<author-notes>
<fn fn-type="conflict" id="coi001">
<p>LMT have after data collection joint the scientific support team at the company Agricam AB. This does not alter our adherence to PLOS ONE policies on sharing data and materials.</p>
</fn>
<corresp id="cor001">* E-mail: <email xlink:type="simple">Josef.Dahlberg@slu.se</email></corresp>
</author-notes>
<pub-date pub-type="epub"><day>20</day><month>2</month><year>2025</year></pub-date>
<pub-date pub-type="collection"><year>2025</year></pub-date>
<volume>20</volume>
<issue>2</issue>
<elocation-id>e0318698</elocation-id>
<history>
<date date-type="received"><day>16</day><month>10</month><year>2024</year></date>
<date date-type="accepted"><day>20</day><month>1</month><year>2025</year></date>
</history>
<permissions>
<copyright-year>2025</copyright-year>
<copyright-holder>Tamminen, Dahlberg</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p></license>
</permissions>
<self-uri content-type="pdf" xlink:href="info:doi/10.1371/journal.pone.0318698">
</self-uri>
<abstract>
<p>Rapid identification of mastitis-causing bacteria is crucial for effective treatment decisions. Several multi-media agar plates have been developed to aid pathogen identification on farms or by veterinarians, but these methods require trained operators. Advances in AI-based automatic image analysis have shown potential for detecting bacterial growth on agar plates in both agriculture and medicine. This study aimed to evaluate the accuracy of an AI-based image bacterial classifier compared to a gold-standard laboratory assessment. A secondary objective was to examine how sample transportation affects diagnoses by comparing results from an on-farm bacterial classifier with those from a laboratory-placed classifier. A total of 1,299 milk samples were collected and analysed at the Swedish Veterinary Agency’s Mastitis Laboratory using both accredited laboratory standards and the bacterial classifier. The image classifier is capable of identifying growth of eight different bacteria types on SELMA + multi-agar plates. Out of 1,212 samples that met the analysis criteria, the bacterial classifier provided diagnoses for 70%, while 30% required further evaluation. The classifier demonstrated high specificity for all diagnoses and high sensitivity for common pathogens such as <italic>Escherichia coli, Staphylococcus aureus</italic>, and non-beta-haemolytic streptococci, though sensitivity was lower for less common pathogens. In a subset of samples analysed by both on-farm and in-lab classifiers and the Mastitis Laboratory, 62% showed consistent diagnoses. The average transportation time was 4.9 days, which influenced bacterial growth. Interestingly, fewer mixed infections were detected post-transport. Automated image classifiers, like Bacticam, hold promise for on-farm mastitis diagnosis, supporting targeted antibiotic treatment and reducing antimicrobial use.</p>
</abstract>
<funding-group>
<award-group id="award001">
<funding-source><institution>Foundation Seydlitz MP bolagen</institution>
</funding-source><principal-award-recipient><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-8131-6725</contrib-id><name name-style="western">
<surname>Dahlberg</surname><given-names>Josef</given-names></name></principal-award-recipient></award-group>
<award-group id="award002">
<funding-source><institution>Agricam AB</institution>
</funding-source><principal-award-recipient><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-8131-6725</contrib-id><name name-style="western">
<surname>Dahlberg</surname><given-names>Josef</given-names></name></principal-award-recipient></award-group>
<funding-statement>Laboratory costs and expenses related to sample collection was covered by the company Agricam AB (Linköping, Sweden). Salary for JD was provided through a grant from the foundation Seydlitz MP bolagen. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</funding-statement>
</funding-group>
<counts>
<fig-count count="4"/>
<table-count count="2"/>
<page-count count="11"/>
</counts>
<custom-meta-group>
<custom-meta id="data-availability">
<meta-name>Data Availability</meta-name>
<meta-value>Anonymized bacteriological diagnoses from the three sources used in this study is presented as <xref ref-type="sec" rid="sec013">Supporting Information</xref> (<xref ref-type="supplementary-material" rid="pone.0318698.s004">S1 File</xref>).</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="sec001" sec-type="intro">
<title>Introduction</title>
<p>Identification of mastitis causing bacteria is in many aspects crucial, if done rapidly it can be used as a decision tool for selective treatment of clinical cases and even if it is not done rapidly it provides important information about pathogens circulating in the herd. Clinical mastitis is, in Sweden and many other countries, the main reason for antibiotic treatment of dairy cows [<xref ref-type="bibr" rid="pone.0318698.ref001">1</xref>]. Even though antibiotic treatment often is beneficial for a cow suffering from clinical mastitis it is not always justified. The self-cure rate for mastitis caused by <italic>Escherichia coli</italic> is so high that antibiotic treatment rarely is warranted [<xref ref-type="bibr" rid="pone.0318698.ref002">2</xref>]. Evaluation of on-farm mastitis tests has shown that incorporating the results in treatment decision-making for clinical cases, but not sub-clinical cases, resulted in more targeted treatments and less antibiotic use [<xref ref-type="bibr" rid="pone.0318698.ref003">3</xref>]. Further, a recent meta-analysis showed no adverse effects on production and infection related parameters when using selective mastitis treatment (i.e., identifying the pathogen before treatment) over blanket treatment for mild and moderate cases of mastitis [<xref ref-type="bibr" rid="pone.0318698.ref004">4</xref>]. Identification of mastitis causing bacteria is as such an important tool to designate correct treatment and reduce the antimicrobial use in the dairy industry.</p>
<p>The need for rapid and easy identification of mastitis causing pathogens has led to the development of multiple-media agar plates, e.g., Accumast (FERA Animal Health, College Station, TX, USA), SSGN and SSGNC (Eurofins, Luxembourg, Luxembourg), Minnesota Easy Culture Systems (University of Minnesota, St. Paul, MN, USA), <italic>VetoRapid</italic> (Vétoquinol, Bern, Switzerland), SELMA and SELMA PLUS (SELMA + , Swedish Veterinary Agency (SVA), Uppsala, Sweden). SELMA + is a multiple-agar plate with four different agars intended to use for identification of clinical mastitis causing pathogens. It is possible to identify 14 different species or groups of microorganisms as well as mixed flora and no growth on SELMA + (<xref ref-type="fig" rid="pone.0318698.g001">Fig 1</xref>). Identification of bacteria/ microorganisms is based on the appearance and growth of the colonies on the different agar fields and in some cases colour and odour [<xref ref-type="bibr" rid="pone.0318698.ref005">5</xref>].</p>
<fig id="pone.0318698.g001" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.g001</object-id><label>Fig 1</label><caption><title>List of growth possible to identify on SELMA + and included agars.</title><p>Bacterial growth that according to the manufacturer is possible to identify on SELMA + and growth that bacterial classifier (Bacticam) can identify. The agars on the SELMA + are 1) bovine blood with esculine, 2) MacConkey, 3) PGUA and 4) mannitol salt.</p></caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.g001" xlink:type="simple"/></fig>
<p>Automatic image analysis has in later years become applicable to a wide range of subjects and fields. In agriculture, automatic image analysis has been described for different areas ranging from growth in broiler chickens to plant recognition, reviewed by Kamilaris et al. [<xref ref-type="bibr" rid="pone.0318698.ref006">6</xref>]. In medicine automatic image analysis are used for Gram-staining and smears, as reported by Smith et al. [<xref ref-type="bibr" rid="pone.0318698.ref007">7</xref>] in a review on infectious disease. In bacteriology automatic image analysis has been used to detect presence or absence of bacterial colonies on agar plates [<xref ref-type="bibr" rid="pone.0318698.ref008">8</xref>,<xref ref-type="bibr" rid="pone.0318698.ref009">9</xref>], and also to detect specific bacterial growth on a chromogenic media [<xref ref-type="bibr" rid="pone.0318698.ref010">10</xref>–<xref ref-type="bibr" rid="pone.0318698.ref012">12</xref>]. In mastitis diagnostics, an AI-based automatic image analysis has been used to identify clinical mastitis-causing pathogens on chromogenic multiple-agar plates [<xref ref-type="bibr" rid="pone.0318698.ref013">13</xref>].</p>
<p>A bacterial classifier, Bacticam, for automatic reading and classification of bacterial growth on SELMA + multiple-agar plates has been developed by the company Agricam (Linköping, Sweden). The bacterial classifier is based on an artificial neural network doing automatic image analysis of the multiple-media agar plates. The bacterial classifier can currently distinguish between eight different types of bacterial growth (including mixed flora and no growth, <xref ref-type="fig" rid="pone.0318698.g001">Fig 1</xref>) and the system is developed to be used on farms by trained farm personnel.</p>
<p>The aims of this study were to; 1) evaluate the accuracy of the automatic bacterial classifier compared to a (gold) standard laboratory culture, 2) explore the variation in results after transportation of samples.</p>
</sec>
<sec id="sec002" sec-type="materials|methods">
<title>Materials and methods</title>
<sec id="sec003">
<title>Samples and laboratory procedure</title>
<p>Milk samples from dairy cows with clinical mastitis arriving at the Mastitis Laboratory, at the Swedish Veterinary Agency (SVA) in Uppsala, Sweden, were used in this study. SVA is a reference laboratory and the Mastitis Laboratory is accredited according to ISO 17025. At the Mastitis Laboratory milk samples were handled in parallel and analysed with two different methods. The milk samples used in this study came from two different sources, either dairy farms with a Bacticam station in use (Agricam clients) or other farms. Approval to use the milk samples for research purpose was obtained from the sample owner, either directly (by signing a form) or indirectly (by accepting the terms and conditions when sending a sample to SVA). Ethical approval for the study was not warranted according to the Swedish animal welfare ordinance (2019:66). Milk samples arriving at the Mastitis Laboratory from the 8<sup>th</sup> of July 2021 to the 6<sup>th</sup> of April 2022 were included in the study. The distribution of milk samples over time and sample origin are presented in Supporting information (<xref ref-type="supplementary-material" rid="pone.0318698.s001">S1 Fig</xref>).</p>
<p>At the Mastitis Laboratory, milk samples were processed according to NMC recommendations [<xref ref-type="bibr" rid="pone.0318698.ref014">14</xref>]. In brief, 10 µl of milk were cultured aerobically on a blood agar plate at 37° C and evaluated after 24 and 48 hours of growth. At evaluation, number of colonies were registered and initially characterised based on morphology and haemolysis. For bacteriological identification, bacterial colonies from agar plates were typed to species level through MALDI-Tof analysis. If necessary, an extended bacteriological examination was performed, in which case the detection limit was lowered by spreading 100 µl of milk on the agar plate. Bacterial diagnosis at the Mastitis Laboratory is based on colony morphology and a sample is considered positive if at least two CFU of a major pathogen or at least five CFU of a minor pathogen are identified. If growth of two different colony types are detected the sample is classified as having a mixed flora and if three or more different colonies are detected, the sample is considered contaminated. However, if a highly contagious (major) pathogen is identified among numerous different colonies the sample will be classified as positive for both, i.e., co-infected.</p>
<p>In parallel with the accredited method, personnel from the Mastitis Laboratory spread 4 x 10 µl of milk from each sample on a SELMA + agar plate and photographed the growth in a Bacticam photo studio provided by Agricam. The Bacticam photo studio is a light impervious cubical box approximately 20 x 20 x 20 cm large, with a slot for the agar plate, a camera holder and internal illumination. Apart from the photo studio, equipment for growing bacteria and a smartphone camera with Internet access is required for the Bacticam bacterial analysis. After spreading, SELMA + agar plates were incubated aerobically at 37 °C and photos were taken after 24 and 48 hours of growth. Images from the photographed SELMA + agar plates were temporarily stored in a OneDrive folder before being downloaded to a SLU server to which only the authors had access.</p>
<p>Images of the photographed SELMA + agar plates were analysed in an off-line image classifier system that was provided by Agricam to the authors. The image classifier system is a two-step process where images first are quality controlled and then classified by a pre-trained image classifier algorithm. The demands for the off-line image classifier algorithm were that 4 images were available, these 4 images needed to be taken with illumination of the agar plate from above and below with a minimum of 18 hours apart. Samples with less than 4 images available were excluded. Samples with more than 4 images available were manually curated so that surplus images were excluded from the analysis. The bacterial classifier can only identify one bacterial diagnosis per sample. For the commercial on-line Bacticam system, the company have routines for correcting surplus or missing images, the option of a preliminary bacteriological diagnosis after 8–24 hours as well as a backup system with manual inspection or laboratory analysis for un-diagnosed samples.</p>
<p>Results from the (gold) standard laboratory culture and the off-line image classifier are the primary source of data for this study. A third source of data was provided by the company Agricam and consisted of image classifier results from on-farm Bacticam stations from milk samples that were also sent to the Mastitis Laboratory during the period 8<sup>th</sup> of July to 29<sup>th</sup> of December 2021.</p>
</sec>
<sec id="sec004">
<title>Data handling and statistical analysis</title>
<p>Raw data was compiled using Microsoft Excel and data analysis was performed in the statistics program R [<xref ref-type="bibr" rid="pone.0318698.ref015">15</xref>]. Analysis was performed on three levels.</p>
<p>First, an overview of how the classifier performs in practice was performed (general performance). This includes descriptive presentation (e.g., to which extent bacterial diagnoses are provided), exploration of patterns for when a diagnosis was not provided and how the classifier performed for samples with co-infection. Identified bacterial species were grouped to the lowest comparable taxonomic level. Bacteriological species (/genera) for which the classifier had no pre-training were categorized as “Other” and the classifier was expected to classify them as “Additional evaluation required”. These patterns were explored descriptively.</p>
<p>In the second level, diagnoses provided by the classifier were compared to diagnoses from the reference (gold standard) laboratory to calculate sensitivity, specificity and predictive values (specific performance). In this comparison only samples for which the bacterial classifier returned a diagnosis and where the reference laboratory specified one bacterial diagnosis per sample were included (i.e., samples with co-infection and samples with a specified species in mixed flora were excluded). Identified bacterial species were grouped to the lowest comparable taxonomic level. For calculation of sensitivity, specificity and predictive values the package DTCompair was used [<xref ref-type="bibr" rid="pone.0318698.ref016">16</xref>] and for visualization the package ggplot2 was used [<xref ref-type="bibr" rid="pone.0318698.ref017">17</xref>].</p>
<p>The third level of the analysis includes comparisons of results from the on-line classifier from on-farm Bacticam stations (third source of data) in relation to the results of the off-line classifier at the reference laboratory and the reference laboratory results. Descriptively exploring overall accordance, the effect of sample transportation and sample handling.</p>
</sec>
</sec>
<sec id="sec005" sec-type="results">
<title>Results</title>
<sec id="sec006">
<title>General performance</title>
<p>During the study period, 1299 milk samples were analysed by the Mastitis Laboratory, the majority of the samples arrived between September and December, 52% (672/1299) of the milk samples came from farms with a Bacticam station in use and 48% of the samples came from other farms (Supl. <xref ref-type="supplementary-material" rid="pone.0318698.s001">S1 Fig</xref> ). All samples were cultured and photographed in the photo studio. Images from 87 samples could not be analysed by the classifier due to poor image quality or fewer than 4 images per sample and were excluded from the study. Of the remaining 1212 samples, 1077 samples had one specific bacterial diagnose identified per sample and 135 samples had multiple pathogens identified per sample. Extended bacteriological examination was performed by the Mastitis Laboratory on 110 samples. The classifier returned bacterial diagnoses for 845 samples (70%) while 367 (30%) required additional evaluation. A summary of the classifiers’ response in relation to the Mastitis Laboratory diagnosis is presented in <xref ref-type="table" rid="pone.0318698.t001">Table 1</xref> and as a more detailed list in Supporting information (<xref ref-type="supplementary-material" rid="pone.0318698.s002">S1 Table</xref>).</p>
<table-wrap id="pone.0318698.t001" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.t001</object-id><label>Table 1</label><caption><title>Summary of bacterial classifiers response in relation to Mastitis Laboratory bacterial diagnosis.</title></caption>
<alternatives><graphic id="pone.0318698.t001g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.t001" xlink:type="simple"/><table><colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="left"/>
<th align="left"/>
<th align="left" colspan="4">Single bacterial diagnose</th>
<th align="left" colspan="2">Multiple bacterial diagnoses<break/>(not trained for)</th>
</tr>
<tr>
<th align="left"/>
<th align="left">Total</th>
<th align="left">Specific pathogen<break/>(trained for)</th>
<th align="left">Mixed flora<break/>(trained for)</th>
<th align="left">No growth (trained for)</th>
<th align="left">Other species<break/>(Not trained for)</th>
<th align="left">Specific growth +  mixed flora</th>
<th align="left">Co-infection + mixed flora</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Additional evaluation</td>
<td align="left">367<break/>(30%)</td>
<td align="left">188<break/>(16%)</td>
<td align="left">43<break/>(4%)</td>
<td align="left">30<break/>(2%)</td>
<td align="left">49<break/>(4%)</td>
<td align="left">20<break/>(2%)</td>
<td align="left">37<break/>(3%)</td>
</tr>
<tr>
<td align="left">Bacterial diagnosis provided</td>
<td align="left">845<break/>(70%)</td>
<td align="left">541<break/>(45%)</td>
<td align="left">99<break/>(8%)</td>
<td align="left">66<break/>(5%)</td>
<td align="left">61<break/>(5%)</td>
<td align="left">36<break/>(3%)</td>
<td align="left">42<break/>(3%)</td>
</tr>
</tbody>
</table>
</alternatives></table-wrap>
<p>Of the 367 samples that according to the classifier required additional evaluation, 261 samples had bacterial growth that the image classifier theoretically could identify. 57 samples had growth of multiple bacterial species in the same sample and 49 samples had growth of a single bacterial species for which the classifier had not been trained, i.e., for 106 samples the correct Bacticam diagnosis would be “additional evaluation required” (<xref ref-type="table" rid="pone.0318698.t001">Table 1</xref>). Further, 32 out of the 367 samples had been subjected to extended bacteriological examination, the majority (27/32) of these samples were classified as “no growth” by the Mastitis Laboratory, in the remaining five samples, either <italic>E. coli</italic> or <italic>Staphylococci</italic> in mixed flora were identified.</p>
<p>A comparison of Mastitis Laboratory and classifier results for samples with one bacterial diagnosis per sample is presented in <xref ref-type="fig" rid="pone.0318698.g002">Fig 2</xref>. The most frequently occurring bacterial diagnoses were <italic>E. coli, Streptococcus spp.,</italic> mixed flora and <italic>S. aureus</italic>. The fifth most common bacterial diagnosis was “other species”, i.e., species for which the classifier had not been trained.</p>
<fig id="pone.0318698.g002" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.g002</object-id><label>Fig 2</label><caption><title>Comparison of bacteriological diagnoses reported by the reference laboratory and the bacterial classifier.</title><p>1077 samples collected from dairy cows with clinical mastitis, analysed with both methods and with a single bacterial diagnose per sample<italic>.</italic></p></caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.g002" xlink:type="simple"/></fig>
<p>In total, 110 samples had, according to the Mastitis Laboratory, growth of species for which the classifier had not been trained. Forty-nine of these 110 samples received a correct “additional evaluation required” diagnosis by the classifier while an incorrect bacterial diagnosis was returned for 61 samples. The most commonly returned diagnosis in these cases was <italic>Strep.</italic> spp. (n = 18), mixed flora (n = 14) and negative growth (n = 14) (<xref ref-type="fig" rid="pone.0318698.g002">Fig 2</xref>).</p>
</sec>
<sec id="sec007">
<title>Specific performance</title>
<p>For calculation of sensitivity, specificity and predictive values, 767 samples for which the Mastitis Laboratory had provided one single bacterial diagnosis per sample and the bacterial classifier had provided a bacterial diagnosis were used (<xref ref-type="table" rid="pone.0318698.t002">Table 2</xref>). The most frequently occurring pathogens according to the Mastitis Laboratory were <italic>E. coli</italic> (n = 169), <italic>S. aureus</italic> (n = 112) and non-beta-haemolytic streptococci (n = 176). Samples with no growth and samples with mixed flora were also relatively common (n = 66 and n = 99) while NAS, <italic>Klebsiella</italic> and beta haemolytic streptococci were less common (n &lt; 35). The sensitivity and specificity of the bacterial classifier varied between bacterial species, with the best performance for the more frequently occurring pathogens (<xref ref-type="fig" rid="pone.0318698.g003">Fig 3</xref>). The specificity of the bacterial classifier was high for all bacterial diagnoses with a range from 91.9% to 99.1%. For the sensitivity there was a larger variation and the confidence intervals were broader. The most frequently occurring pathogens (<italic>E. coli</italic>, <italic>S. aureus</italic> and non-beta haemolytic streptococci) had relatively high sensitivity (&gt; 85%) while the sensitivity for the less common pathogens (<italic>Klebsiella spp.</italic>, NAS and β-haemolytic streptococci was lower (43.5%–64.3%) (<xref ref-type="fig" rid="pone.0318698.g003">Fig 3</xref>). A table with estimated mean values for sensitivity, specificity, PPV and NPV together with standard error and confidence interval is presented in Supporting information (<xref ref-type="supplementary-material" rid="pone.0318698.s003">S2 Table</xref>).</p>
<table-wrap id="pone.0318698.t002" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.t002</object-id><label>Table 2</label><caption><title>2 x 2 comparison of bacterial diagnoses. Bacterial diagnoses were identified by Mastitis Laboratory (ML) and the bacterial classifier (classifier) in 767 milk samples.</title></caption>
<alternatives><graphic id="pone.0318698.t002g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.t002" xlink:type="simple"/><table><colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="left"><italic>E. coli</italic></th>
<th align="left">ML + </th>
<th align="left">ML−</th>
<th align="left"/>
<th align="left"><italic>Klebsiella spp.</italic></th>
<th align="left">ML + </th>
<th align="left">ML−</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Classifier + </td>
<td align="left">152</td>
<td align="left">22</td>
<td align="left"/>
<td align="left">Classifier + </td>
<td align="left">18</td>
<td align="left">7</td>
</tr>
<tr>
<td align="left">Classifier−</td>
<td align="left">17</td>
<td align="left">576</td>
<td align="left"/>
<td align="left">Classifier−</td>
<td align="left">10</td>
<td align="left">732</td>
</tr>
<tr>
<td align="left"><italic>S. aureus</italic></td>
<td align="left">ML + </td>
<td align="left">ML−</td>
<td align="left" rowspan="3"/>
<td align="left">Staph. spp (NAS)</td>
<td align="left">ML + </td>
<td align="left">ML−</td>
</tr>
<tr>
<td align="left">Classifier + </td>
<td align="left">101</td>
<td align="left">6</td>
<td align="left">Classifier + </td>
<td align="left">17</td>
<td align="left">16</td>
</tr>
<tr>
<td align="left">Classifier−</td>
<td align="left">11</td>
<td align="left">649</td>
<td align="left">Classifier−</td>
<td align="left">16</td>
<td align="left">718</td>
</tr>
<tr>
<td align="left">beta-hemolytic strep</td>
<td align="left">ML + </td>
<td align="left">ML−</td>
<td align="left" rowspan="3"/>
<td align="left">Strep. spp (other)</td>
<td align="left">ML + </td>
<td align="left">ML−</td>
</tr>
<tr>
<td align="left">Classifier + </td>
<td align="left">10</td>
<td align="left">8</td>
<td align="left">Classifier + </td>
<td align="left">150</td>
<td align="left">34</td>
</tr>
<tr>
<td align="left">Classifier−</td>
<td align="left">13</td>
<td align="left">736</td>
<td align="left">Classifier−</td>
<td align="left">26</td>
<td align="left">557</td>
</tr>
<tr>
<td align="left">No growth</td>
<td align="left">ML + </td>
<td align="left">ML−</td>
<td align="left" rowspan="3"/>
<td align="left">Mixed flora</td>
<td align="left">ML + </td>
<td align="left">ML−</td>
</tr>
<tr>
<td align="left">Classifier + </td>
<td align="left">57</td>
<td align="left">44</td>
<td align="left">Classifier + </td>
<td align="left">71</td>
<td align="left">54</td>
</tr>
<tr>
<td align="left">Classifier−</td>
<td align="left">9</td>
<td align="left">657</td>
<td align="left">Classifier−</td>
<td align="left">28</td>
<td align="left">614</td>
</tr>
</tbody>
</table>
</alternatives></table-wrap>
<fig id="pone.0318698.g003" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.g003</object-id><label>Fig 3</label><caption><title>Sensitivity and specificity of bacterial diagnosis provided by the bacterial classifier.</title><p>Results from a reference laboratory were used as a gold standard. Mean values estimations are presented as centroid with 95% confidence intervals presented as bars.</p></caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.g003" xlink:type="simple"/></fig>
</sec>
<sec id="sec008">
<title>Handling and transport</title>
<p>To evaluate the effect of handling and transportation, bacterial classifier results from the on-line on-farm Bacticam stations provided by Agricam were used. 130 milk samples had comparable results from the Mastitis Laboratory, the off-line bacterial classifier and the on-line bacterial classifier. For these 130 samples, 144 bacterial diagnoses were provided by the Mastitis Laboratory, 117 milk samples that had one bacterial diagnosis per sample were further explored. 72 (62%) of the 117 samples had the same bacteriological diagnosis given by the on-line classifier, the off-line classifier and the reference laboratory, and 69% of the samples (81/117) had the same bacteriological diagnosis given by the on-line classifier and the off-line bacterial classifier. There was a higher concordance of results between the Mastitis Laboratory and the off-line bacterial classifier (Bacticam at laboratory, 89 shared diagnoses) than between the Mastitis Laboratory and the on-line classifier (Bacticam on farm, 78 shared diagnoses). A presentation of the 117 samples that had one bacterial diagnosis per sample and comparable results from the on-line classifier, the off-line bacterial classifier and the Mastitis Laboratory is presented in <xref ref-type="fig" rid="pone.0318698.g004">Fig 4</xref>. An interesting observation is that 26% of the samples that were cultured on farm and evaluated by the on-line image classifier had growth of mixed flora, when the same samples were cultured at the reference laboratory and evaluated by the off-line bacterial classifier, 11% of the samples had growth of mixed flora. As the sample results provided by Agricam contained detailed information on when samples were collected, the time from sampling to arrival at the reference laboratory was calculated. The mean transportation time for the milk sample was 4.9 days with a range from 1 – 26 days.</p>
<fig id="pone.0318698.g004" position="float"><object-id pub-id-type="doi">10.1371/journal.pone.0318698.g004</object-id><label>Fig 4</label><caption><title>Comparison of results from Mastitis Laboratory and bacterial classifier.</title><p>The bacterial classifier (Bacticam) were placed either on farm or at Mastitis Laboratory. Only samples with one bacterial diagnosis per sample included. A) Venn diagram showing overlap between analysing method and shared bacterial diagnoses. B) Detailed table with bacterial diagnosis per analysing method.</p></caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.g004" xlink:type="simple"/></fig>
</sec>
</sec>
<sec id="sec009" sec-type="conclusions">
<title>Discussion</title>
<p>Different methods have been developed for rapid on-farm identification of mastitis causing bacteria with variations in number of bacterial species possible to identify and time to result. When evaluated, the on-farm systems generally perform well regardless if they are compared to farm antibiotic use [<xref ref-type="bibr" rid="pone.0318698.ref003">3</xref>] or compared to a mastitis laboratory result [<xref ref-type="bibr" rid="pone.0318698.ref018">18</xref>,<xref ref-type="bibr" rid="pone.0318698.ref019">19</xref>]. However, it has been shown that trained specialists perform better than untrained observers [<xref ref-type="bibr" rid="pone.0318698.ref020">20</xref>]. Consequently, a problem with on-farm mastitis identification systems is that accurate interpretation of the bacterial growth requires trained and experienced personnel.</p>
<p>Correctly identifying mastitis causing pathogens can be challenging and inter-laboratory variation has been shown to be substantial. A Finish study of inter-laboratory accordance of diagnosis of lyophilized common mastitis pathogens showed an overall agreement of 63-93%, depending on testing round, but also a variation between pathogens where some pathogens (<italic>E. coli, S. aureus)</italic> were always correctly identified while others not [<xref ref-type="bibr" rid="pone.0318698.ref021">21</xref>]. Later studies have shown similar results, of the 381 mastitic milk samples that were sent to two different mastitis laboratories in the study by Ferreira et al. [<xref ref-type="bibr" rid="pone.0318698.ref019">19</xref>], 212 (55%) received the same bacterial diagnosis.</p>
<p>The possibility of using an automated image classifier for bacterial diagnosis will limit the inter-laboratory and inter-personnel variation of interpreting results. In this study, the bacterial classifier performed well for commonly occurring species.</p>
<p>The bacterial distribution in the present study differs from the distribution of clinical mastitis causing bacteria in Sweden. According to a study from Duse et al. [<xref ref-type="bibr" rid="pone.0318698.ref022">22</xref>], the five most common clinical mastitis causing bacteria in Sweden are <italic>S. aureus</italic> (27.8%), <italic>Str. dysgalactiae</italic> (15.8%), <italic>E. coli</italic> (15.1%), <italic>Str. uberis</italic> (11.4%), <italic>T. pyogenes</italic> (7.7%), contaminated samples (i.e., mixed flora) was together with no growth the sixth most common diagnosis (4.9% each). In the present study streptococci were separated based on their haemolytic properties, rather than species level for comparison of results and non-haemolytic streptococci was the most abundant bacteria, followed by <italic>E. coli</italic>, mixed flora, <italic>S. aureus</italic> and other. The group “other” consisted of a wide range of bacteria that the bacterial classifier is not trained to recognise, including <italic>T. pyogenes</italic>. Even though the distribution differ, the subset of samples used in this study is, at large, representative for the mastitis pathogens common in Sweden, the differences that occur can be attributed to selection bias as samples in this study came from a limited number of farms and was collected over a limited time. A list of all the bacterial diagnoses provided by the Mastitis Laboratory and the bacterial classifiers as well as sample origin is provided in Supporting information (<xref ref-type="supplementary-material" rid="pone.0318698.s002">S1 Table</xref>). The level of co-infected samples in the present study was 11% and is in a similar range as previously reported (9%) from the same laboratory [<xref ref-type="bibr" rid="pone.0318698.ref022">22</xref>,<xref ref-type="bibr" rid="pone.0318698.ref023">23</xref>]. The bacterial classifier has only been trained to identify growth of one pathogen per plate, if several colonies of different types are present, the sample will be classified as having a mixed infection.</p>
<sec id="sec010">
<title>Specific performance</title>
<p>Sensitivity and specificity were evaluated on samples where the Mastitis Laboratory and the bacterial classifier had provided a single bacterial diagnosis per sample. The specificity was overall high for all bacterial diagnoses provided by the classifier, implying that samples without a specified diagnosis really are free from it. A high specificity is important to assure that animals don’t receive unnecessary treatments. For the sensitivity there was a larger variation in results. For the most common bacterial diagnoses in this data set (<italic>E. coli, S. aureus,</italic> non-haemolytic streptococci and no growth) the sensitivity was high, indicating that if the classifier give this response it is most likely correct. For less common bacterial diagnoses (<italic>Klebsiella spp.,</italic> NAS, beta-haemolytic streptococci and mixed flora) the sensitivity was lower and the results less trustworthy. The distribution of bacterial diagnoses in the data set that was provided as training data for the neural network is unknown to us authors, it is not unlikely that the training data had a similar distribution of diagnoses as presented here and that the classifier therefore is better trained on certain diagnoses. For example, <italic>E. coli</italic> and <italic>Klebsiella spp.</italic> have similar but distinct growth patterns on a SELMA + agar plate, with a colour change in the PGUA agar as differentiating factor, this colour change is visually apparent and we do find it probable that the colour change would be possible to identify for an automated image classifier, consequently we find it likely that the sensitivity for <italic>Klebsiella spp.</italic> will increase with more training. The specificity values reported for the Bacticam bacterial classifier in this study (91.9-99.1%) are in line with specificity values reported for a similar application, “Rumi” (96-99%), by Garcia et al. [<xref ref-type="bibr" rid="pone.0318698.ref013">13</xref>]. A variation in sensitivity across different bacterial diagnoses that is noted here was likewise noted by Garcia et al.</p>
</sec>
<sec id="sec011">
<title>Handling and transport</title>
<p>It is well known that storage can affect the hygienic properties and bacterial content of raw milk. According to literature, total bacterial count will increase with prolonged storage, especially if milk is stored over 4 <sup>°</sup>C [<xref ref-type="bibr" rid="pone.0318698.ref024">24</xref>]. For microorganisms typically found in milk, it has been shown that there is a large variability in growth rate, both within and between different organisms [<xref ref-type="bibr" rid="pone.0318698.ref025">25</xref>]. This difference in growth rate would affect the original composition of bacteria in a milk sample, and the difference would increase with time. This has been shown in a master degree thesis that concluded that mixed bacterial flora increased with increased number of days of transportation [<xref ref-type="bibr" rid="pone.0318698.ref026">26</xref>]. In the present study, the average transportation time was 4.9 days, the conditions during transport are unknown but milk samples sent to the Mastitis Laboratory are most often transported at ambient temperature (personal message). Considering the wide range in transportation time (1 - 26 days), we cannot exclude that some samples were stored before transportation. Regardless of transportation temperature, the time spent for transportation to the laboratory prevent the analysis from being used as a decision tool for selective treatment. Considering the transportation time, we did expect that there would be more samples with mixed bacterial growth after transportation compared to before, surprisingly the results were opposite (26% mixed infection before transport vs. 11% after). We can only speculate on why this difference occurred, on the farm either the farmer or a trained employee would be responsible for spreading the milk on the agar while in the lab a professional lab-assistant did it. It is possible that the difference in “professionalism” contributed to the difference in results regarding mixed infection and concordance between analysing methods. However, it cannot be ruled out that handling and storage of agar plates or other factors contributed.</p>
</sec>
</sec>
<sec id="sec012" sec-type="conclusions">
<title>Conclusion</title>
<p>We conclude that the AI-based image analysis bacterial classifier, Bacticam, is showing promise in accurately diagnosing common mastitis pathogens. The classifier performs well with high specificity for all diagnosed pathogens, assuring avoidance of unnecessary treatment. For bacterial diagnoses of <italic>E.coli, S. aureus</italic> and non-haemolytic streptococci the sensitivity of the bacterial classifier is high. An apparent benefit of the bacterial classifier is the reduced time from sampling to results, although operators must take appropriate measures before plating the milk to minimize growth of mixed infection.</p>
</sec>
<sec id="sec013" sec-type="supplementary-material">
<title>Supporting information</title>
<supplementary-material id="pone.0318698.s001" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.s001" xlink:type="simple">
<label>S1 Fig</label>
<caption>
<title>Number of samples included in the study presented as total samples per month and separated based on origin.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pone.0318698.s002" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.s002" xlink:type="simple">
<label>S1 Table</label>
<caption>
<title>Bacterial diagnosis provided by bacterial classifier (Bacticam) and Mastitis Laboratory (ML) and sample origin for all samples included in the study.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pone.0318698.s003" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.s003" xlink:type="simple">
<label>S2 Table</label>
<caption>
<title>Statistical accuracy of diagnoses provided by bacterial classifier (Bacticam) for 767 milk samples from cows with clinical mastitis.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pone.0318698.s004" mimetype="text/csv" position="float" xlink:href="info:doi/10.1371/journal.pone.0318698.s004" xlink:type="simple">
<label>S1 File</label>
<caption>
<title>Anonymized bacteriological diagnoses from the three sources used in this study.</title>
<p>(CSV)</p>
</caption>
</supplementary-material>
</sec>
</body>
<back>
<ack>
<p>The company Agricam AB and its staff are acknowledged for making the study possible, not least Ellinor Eineren. Erik Eriksson and Charlotta Fasth at SVA are acknowledged for making anonymous data sharing possible and data collection as well as help with study design. Thomas Manske at Boehringer Ingelheim Vetmedica for contributing to discussions on study design.</p>
</ack>
<ref-list>
<title>References</title>
<ref id="pone.0318698.ref001"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Växa. Djurhälsostatistik 2020-2021. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.vxa.se/fakta/styrning-och-rutiner/mer-om-mjolk/statistik" xlink:type="simple">https://www.vxa.se/fakta/styrning-och-rutiner/mer-om-mjolk/statistik</ext-link></mixed-citation></ref>
<ref id="pone.0318698.ref002"><label>2</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Suojala</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>Kaartinen</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>Pyorala</surname> <given-names>S</given-names></name>. <article-title>Treatment for bovine Escherichia coli mastitis - an evidence-based approach</article-title>. <source>J Vet Pharmacol Ther</source>. <year>2013</year>;<volume>36</volume>(<issue>6</issue>):<fpage>521</fpage>–<lpage>31</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/jvp.12057" xlink:type="simple">10.1111/jvp.12057</ext-link></comment> <object-id pub-id-type="pmid">23679229</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref003"><label>3</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Griffioen</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Velthuis</surname> <given-names>AGJ</given-names></name>, <name name-style="western"><surname>Koop</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Lam</surname> <given-names>T</given-names></name>; <collab>Health4Food-Dutch Mastitis Diagnostics C</collab>. <article-title>Effects of a mastitis treatment strategy with or without on-farm testing</article-title>. <source>J Dairy Sci</source>. <year>2021</year>;<volume>104</volume>(<issue>4</issue>):<fpage>4665</fpage>–<lpage>81</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2019-17871" xlink:type="simple">10.3168/jds.2019-17871</ext-link></comment> <object-id pub-id-type="pmid">33663824</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref004"><label>4</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>de Jong</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Creytens</surname> <given-names>L</given-names></name>, <name name-style="western"><surname>De Vliegher</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>McCubbin</surname> <given-names>KD</given-names></name>, <name name-style="western"><surname>Baptiste</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Leung</surname> <given-names>AA</given-names></name>, <etal>et al</etal>. <article-title>Selective treatment of nonsevere clinical mastitis does not adversely affect cure, somatic cell count, milk yield, recurrence, or culling: a systematic review and meta-analysis</article-title>. <source>J Dairy Sci</source>. <year>2023</year>;<volume>106</volume>(<issue>2</issue>):<fpage>1267</fpage>–<lpage>86</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2022-22271" xlink:type="simple">10.3168/jds.2022-22271</ext-link></comment> <object-id pub-id-type="pmid">36543640</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref005"><label>5</label><mixed-citation publication-type="book" xlink:type="simple"><etal>SVA</etal>. <chapter-title>SELMA och SELMA PLUS</chapter-title>. <publisher-name>SVA</publisher-name>; <year>2020</year>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.sva.se/aktuellt/bloggar/spjuverbloggen/spjuverbehaallare/ny-baettre-selma-broschyr/" xlink:type="simple">https://www.sva.se/aktuellt/bloggar/spjuverbloggen/spjuverbehaallare/ny-baettre-selma-broschyr/</ext-link></mixed-citation></ref>
<ref id="pone.0318698.ref006"><label>6</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Kamilaris</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Prenafeta-Boldú</surname> <given-names>FX</given-names></name>. <article-title>Deep learning in agriculture: a survey</article-title>. <source>Comput Electron Agric</source>. <year>2018</year>;<volume>147</volume>:<fpage>70</fpage>–<lpage>90</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2018.02.016" xlink:type="simple">10.1016/j.compag.2018.02.016</ext-link></comment></mixed-citation></ref>
<ref id="pone.0318698.ref007"><label>7</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Smith</surname> <given-names>KP</given-names></name>, <name name-style="western"><surname>Kirby</surname> <given-names>JE</given-names></name>. <article-title>Image analysis and artificial intelligence in infectious disease diagnostics</article-title>. <source>Clin Microbiol Infect</source>. <year>2020</year>;<volume>26</volume>(<issue>10</issue>):<fpage>1318</fpage>–<lpage>23</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cmi.2020.03.012" xlink:type="simple">10.1016/j.cmi.2020.03.012</ext-link></comment> <object-id pub-id-type="pmid">32213317</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref008"><label>8</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Faron</surname> <given-names>ML</given-names></name>, <name name-style="western"><surname>Buchan</surname> <given-names>BW</given-names></name>, <name name-style="western"><surname>Samra</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Ledeboer</surname> <given-names>NA</given-names></name>. <article-title>Evaluation of WASPLab software to automatically read chromID CPS elite agar for reporting of urine cultures</article-title>. <source>J Clin Microbiol</source>. <year>2019</year>;<volume>58</volume>(<issue>1</issue>):<fpage>e00540</fpage>–<lpage>19</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1128/JCM.00540-19" xlink:type="simple">10.1128/JCM.00540-19</ext-link></comment> <object-id pub-id-type="pmid">31694967</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref009"><label>9</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ferrari</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Lombardi</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Signoroni</surname> <given-names>A</given-names></name>. <article-title>Bacterial colony counting with convolutional neural networks in digital microbiology imaging</article-title>. <source>Pattern Recognit</source>. <year>2017</year>;<volume>61</volume>:<fpage>629</fpage>–<lpage>40</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.patcog.2016.07.016" xlink:type="simple">10.1016/j.patcog.2016.07.016</ext-link></comment></mixed-citation></ref>
<ref id="pone.0318698.ref010"><label>10</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Faron</surname> <given-names>ML</given-names></name>, <name name-style="western"><surname>Buchan</surname> <given-names>BW</given-names></name>, <name name-style="western"><surname>Coon</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Liebregts</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>van Bree</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Jansz</surname> <given-names>AR</given-names></name>, <etal>et al</etal>. <article-title>Automatic digital analysis of chromogenic media for vancomycin-resistant-enterococcus screens using copan WASPLab</article-title>. <source>J Clin Microbiol</source>. <year>2016</year>;<volume>54</volume>(<issue>10</issue>):<fpage>2464</fpage>–<lpage>9</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1128/JCM.01040-16" xlink:type="simple">10.1128/JCM.01040-16</ext-link></comment> <object-id pub-id-type="pmid">27413193</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref011"><label>11</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Van</surname> <given-names>TT</given-names></name>, <name name-style="western"><surname>Mata</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Dien Bard</surname> <given-names>J</given-names></name>. <article-title>Automated detection of streptococcus pyogenes pharyngitis by use of Colorex Strep A CHROMagar and WASPLab artificial intelligence chromogenic detection module software</article-title>. <source>J Clin Microbiol</source>. <year>2019</year>;<volume>57</volume>(<issue>11</issue>).</mixed-citation></ref>
<ref id="pone.0318698.ref012"><label>12</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Baker</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Timm</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Faron</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Ledeboer</surname> <given-names>N</given-names></name>, <name name-style="western"><surname>Culbreath</surname> <given-names>K</given-names></name>. <article-title>Digital image analysis for the detection of Group B streptococcus from ChromID Strepto B medium using PhenoMatrix algorithms</article-title>. <source>J Clin Microbiol</source>. <year>2020</year>;<volume>59</volume>(<issue>1</issue>):<fpage>e01902</fpage>–<lpage>19</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1128/JCM.01902-19" xlink:type="simple">10.1128/JCM.01902-19</ext-link></comment> <object-id pub-id-type="pmid">33087433</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref013"><label>13</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Garcia</surname> <given-names>BLN</given-names></name>, <name name-style="western"><surname>Martins</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Porto</surname> <given-names>LF</given-names></name>, <name name-style="western"><surname>Nobrega</surname> <given-names>DB</given-names></name>, <name name-style="western"><surname>Dos Santos</surname> <given-names>MV</given-names></name>. <article-title>Accuracy of an AI-based automated plate reading mobile application for the identification of clinical mastitis-causing pathogens in chromogenic culture media</article-title>. <source>Sci Rep</source>. <year>2024</year>;<volume>14</volume>(<issue>1</issue>):<fpage>1208</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41598-023-50296-w" xlink:type="simple">10.1038/s41598-023-50296-w</ext-link></comment> <object-id pub-id-type="pmid">38216598</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref014"><label>14</label><mixed-citation publication-type="book" xlink:type="simple"><name name-style="western"><surname>Oliver</surname> <given-names>SP</given-names></name>, <name name-style="western"><surname>Gonzalez</surname> <given-names>RN</given-names></name>, <name name-style="western"><surname>Hogan</surname> <given-names>JS</given-names></name>, <name name-style="western"><surname>Jayarao</surname> <given-names>BM</given-names></name>, <name name-style="western"><surname>Owens</surname> <given-names>WE</given-names></name>. <source>Microbiological procedures for the diagnosis of bovine udder infection and determination of milk quality</source>. <edition>4</edition> ed. <publisher-loc>Verona, WI, USA</publisher-loc>: <publisher-name>The National Mastitis Council</publisher-name>; <year>2004</year>.</mixed-citation></ref>
<ref id="pone.0318698.ref015"><label>15</label><mixed-citation publication-type="book" xlink:type="simple"><source>R Core Team R: A language and environment for statistical computing</source>. <publisher-loc>Vienna, Austria</publisher-loc>: <publisher-name>R Foundation for Statistical Computing</publisher-name>; <year>2019</year>.</mixed-citation></ref>
<ref id="pone.0318698.ref016"><label>16</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Stock</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Hielscher</surname> <given-names>T</given-names></name>. R package version 103 [Internet] <day>2014</day>. Available from: <ext-link ext-link-type="uri" xlink:href="http://cran.r-project.org/web/packages/DTComPair/index.html" xlink:type="simple">http://cran.r-project.org/web/packages/DTComPair/index.html</ext-link></mixed-citation></ref>
<ref id="pone.0318698.ref017"><label>17</label><mixed-citation publication-type="book" xlink:type="simple"><name name-style="western"><surname>Wickham</surname> <given-names>H</given-names></name>. <source>ggplot2: elegant graphics for data analysis</source>. <publisher-loc>New York</publisher-loc>: <publisher-name>Springer-Verlag</publisher-name>; <year>2016</year>.</mixed-citation></ref>
<ref id="pone.0318698.ref018"><label>18</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ganda</surname> <given-names>EK</given-names></name>, <name name-style="western"><surname>Bisinotto</surname> <given-names>RS</given-names></name>, <name name-style="western"><surname>Decter</surname> <given-names>DH</given-names></name>, <name name-style="western"><surname>Bicalho</surname> <given-names>RC</given-names></name>. <article-title>Evaluation of an on-farm culture system (accumast) for fast identification of milk pathogens associated with clinical mastitis in dairy cows</article-title>. <source>PLoS One</source>. <year>2016</year>;<volume>11</volume>(<issue>5</issue>):<fpage>e0155314</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pone.0155314" xlink:type="simple">10.1371/journal.pone.0155314</ext-link></comment> <object-id pub-id-type="pmid">27176216</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref019"><label>19</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ferreira</surname> <given-names>JC</given-names></name>, <name name-style="western"><surname>Gomes</surname> <given-names>MS</given-names></name>, <name name-style="western"><surname>Bonsaglia</surname> <given-names>ECR</given-names></name>, <name name-style="western"><surname>Canisso</surname> <given-names>IF</given-names></name>, <name name-style="western"><surname>Garrett</surname> <given-names>EF</given-names></name>, <name name-style="western"><surname>Stewart</surname> <given-names>JL</given-names></name>, <etal>et al</etal>. <article-title>Comparative analysis of four commercial on-farm culture methods to identify bacteria associated with clinical mastitis in dairy cattle</article-title>. <source>PLoS One</source>. <year>2018</year>;<volume>13</volume>(<issue>3</issue>):<fpage>e0194211</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pone.0194211" xlink:type="simple">10.1371/journal.pone.0194211</ext-link></comment> <object-id pub-id-type="pmid">29543852</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref020"><label>20</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Sipka</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Wieland</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Biscarini</surname> <given-names>F</given-names></name>, <name name-style="western"><surname>Rossi</surname> <given-names>RM</given-names></name>, <name name-style="western"><surname>Roman</surname> <given-names>N</given-names></name>, <name name-style="western"><surname>Santisteban</surname> <given-names>C</given-names></name>, <etal>et al</etal>. <article-title>Short communication: comparative performance of 3 on-farm culture systems for detection of mastitis pathogens interpreted by trained and untrained observers</article-title>. <source>J Dairy Sci</source>. <year>2021</year>;<volume>104</volume>(<issue>4</issue>):<fpage>4936</fpage>–<lpage>41</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2020-19166" xlink:type="simple">10.3168/jds.2020-19166</ext-link></comment> <object-id pub-id-type="pmid">33612204</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref021"><label>21</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Pitkälä</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Gindonis</surname> <given-names>V</given-names></name>, <name name-style="western"><surname>Wallin</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Honkanen-Buzalski</surname> <given-names>T</given-names></name>. <article-title>Interlaboratory proficiency testing as a tool for improving performance in laboratories diagnosing bovine mastitis</article-title>. <source>J Dairy Sci</source>. <year>2005</year>;<volume>88</volume>(<issue>2</issue>):<fpage>553</fpage>–<lpage>9</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.S0022-0302(05)72717-X" xlink:type="simple">10.3168/jds.S0022-0302(05)72717-X</ext-link></comment> <object-id pub-id-type="pmid">15653520</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref022"><label>22</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Duse</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Persson-Waller</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Pedersen</surname> <given-names>K</given-names></name>. <article-title>Microbial aetiology, antibiotic susceptibility and pathogen-specific risk factors for udder pathogens from clinical mastitis in dairy cows</article-title>. <source>Animals (Basel)</source>. <year>2021</year>;<volume>11</volume>(<issue>7</issue>):<fpage>2113</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani11072113" xlink:type="simple">10.3390/ani11072113</ext-link></comment> <object-id pub-id-type="pmid">34359241</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref023"><label>23</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ericsson Unnerstad</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Lindberg</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Persson Waller</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Ekman</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Artursson</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Nilsson-Ost</surname> <given-names>M</given-names></name>, <etal>et al</etal>. <article-title>Microbial aetiology of acute clinical mastitis and agent-specific risk factors</article-title>. <source>Vet Microbiol</source>. <year>2009</year>;<volume>137</volume>(<issue>1-2</issue>):<fpage>90</fpage>–<lpage>7</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.vetmic.2008.12.005" xlink:type="simple">10.1016/j.vetmic.2008.12.005</ext-link></comment> <object-id pub-id-type="pmid">19155148</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref024"><label>24</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>O’Connell</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Ruegg</surname> <given-names>PL</given-names></name>, <name name-style="western"><surname>Jordan</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>O’Brien</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Gleeson</surname> <given-names>D</given-names></name>. <article-title>The effect of storage temperature and duration on the microbial quality of bulk tank milk</article-title>. <source>J Dairy Sci</source>. <year>2016</year>;<volume>99</volume>(<issue>5</issue>):<fpage>3367</fpage>–<lpage>74</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2015-10495" xlink:type="simple">10.3168/jds.2015-10495</ext-link></comment> <object-id pub-id-type="pmid">26947309</object-id></mixed-citation></ref>
<ref id="pone.0318698.ref025"><label>25</label><mixed-citation publication-type="book" xlink:type="simple"><name name-style="western"><surname>Horn</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Pattis</surname> <given-names>I</given-names></name>. <source>Growth of microorganisms in raw milk: evaluating the effect of chiller failure</source>. <publisher-name>New Zealand Food Safety Technical report No: 2020/04</publisher-name>. Available from: <ext-link ext-link-type="uri" xlink:href="https://www.mpi.govt.nz/dmsdocument/39779/sitemap" xlink:type="simple">https://www.mpi.govt.nz/dmsdocument/39779/sitemap</ext-link></mixed-citation></ref>
<ref id="pone.0318698.ref026"><label>26</label><mixed-citation publication-type="book" xlink:type="simple"><name name-style="western"><surname>Wallin</surname> <given-names>K</given-names></name>. <source>Handling and transportation of milk samples from the farm to the laboratory with emphasis on presence of contamination</source>. <publisher-name>University of Copenhagen</publisher-name>; <year>2011</year>.</mixed-citation></ref>
</ref-list>
</back>
</article>