Development and evaluation of a computer vision system for identifying mastitis-related pathogens in dairy cows from bacterial culture media.

IF 4.7 1区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE
M Wieland, W Flanders, A Singh, J Runyan, C Guarino, P Basran
{"title":"Development and evaluation of a computer vision system for identifying mastitis-related pathogens in dairy cows from bacterial culture media.","authors":"M Wieland, W Flanders, A Singh, J Runyan, C Guarino, P Basran","doi":"10.3168/jds.2026-28858","DOIUrl":null,"url":null,"abstract":"<p><p>The objective of this study was to investigate the diagnostic accuracy of a computer vision system for identifying mastitis pathogens from tryptic soy agar plates containing 5% sheep blood. We used isolates of the following mastitis pathogens: Escherichia coli, Klebsiella pneumoniae, Lactococcus lactis, Staphylococcus aureus, Staphylococcus chromogenes, Streptococcus dysgalactiae, Streptococcus infantarius, and Streptococcus uberis. In addition, a 'no growth' category was included to represent samples in which no bacterial growth was detected. After primary culture and pathogen identification at the species level by matrix-assisted laser desorption/ionization time-of-flight mass spectrometry (MALDI-TOF), a representative colony was selected and subcultured, and plates were incubated at 37°C for 48 h. After 24 h of incubation, a representative colony from each plate was submitted for MALDI-TOF analysis, which served as the gold standard. Images were obtained at 24 and 48 h of incubation using a digital camera and a custom-made light box. A custom convolutional neural network architecture was designed to predict pathogen classification from digital images obtained at 24 and 48 h. We calculated the overall accuracy, diagnostic test statistics [sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV)], and the area under the curve (AUC) of the receiver operating characteristic (ROC) curves to assess the models' performance in detecting the different pathogen categories. The overall classification accuracy was 74.0% for the 24-h model and 72.8% for the 48-h model. The mean ROC AUC was 0.950 for the 24-h model and 0.943 for the 48-h model, indicating strong separability among pathogen categories. Sensitivity, specificity, PPV, and NPV for the 24-model were E. coli, 0.79, 0.97, 0.74, 0.97; K. pneumoniae, 0.71, 0.93, 0.60, 0.96; L. lactis, 0.51, 0.94, 0.52, 0.94; Staph. aureus, 0.53, 0.98, 0.71, 0.95; Staph. chromogenes, 0.78, 0.98, 0.86, 0.97; Strep. dysgalactiae, 0.77, 0.99, 0.84, 0.98; Strep. infantarius, 0.46, 0.97, 0.64, 0.93; Strep. uberis, 1.00, 0.95, 0.72, 1.00; and 'no growth', 1.00, 1.00, 1.00, 1.00; and for the 48-h model E. coli, 0.96, 0.98, 0.86, 0.99; K. pneumoniae, 0.72, 0.97, 0.76, 0.96; L. lactis, 0.47, 0.92, 0.37, 0.95; Staph. aureus, 0.55, 0.97, 0.67, 0.95; Staph. chromogenes, 0.74, 0.96, 0.69, 0.97; Strep. dysgalactiae, 0.86, 0.98, 0.83, 0.99; Strep. infantarius, 0.43, 0.95, 0.56, 0.92; Strep. uberis, 0.78, 0.97, 0.74, 0.98; and 'no growth', 1.00, 1.00, 0.98, 1.00. When pathogen predictions were grouped according to antimicrobial treatment recommendation (treatment vs. no treatment), the 24-h and 48-h models achieved sensitivities of 90.8% and 92.3%, specificities of 92.9% and 90.1%, PPV of 95.9% and 93.9%, NPV of 84.4% and 87.8%, accuracies of 91.5% and 91.5%, and F1 scores of 93.3% and 93.0%, respectively. Our results indicate that the computer vision system developed in this study can accurately classify mastitis pathogens from digital images of tryptic soy agar plates containing 5% sheep blood and may be a promising tool for pathogen identification in mastitis diagnostics. However, because the system was developed and evaluated under standardized laboratory conditions, further validation using commercially available on-farm culture systems and practical field imaging conditions is warranted.</p>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":" ","pages":""},"PeriodicalIF":4.7000,"publicationDate":"2026-09-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Dairy Science","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.3168/jds.2026-28858","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0

Abstract

The objective of this study was to investigate the diagnostic accuracy of a computer vision system for identifying mastitis pathogens from tryptic soy agar plates containing 5% sheep blood. We used isolates of the following mastitis pathogens: Escherichia coli, Klebsiella pneumoniae, Lactococcus lactis, Staphylococcus aureus, Staphylococcus chromogenes, Streptococcus dysgalactiae, Streptococcus infantarius, and Streptococcus uberis. In addition, a 'no growth' category was included to represent samples in which no bacterial growth was detected. After primary culture and pathogen identification at the species level by matrix-assisted laser desorption/ionization time-of-flight mass spectrometry (MALDI-TOF), a representative colony was selected and subcultured, and plates were incubated at 37°C for 48 h. After 24 h of incubation, a representative colony from each plate was submitted for MALDI-TOF analysis, which served as the gold standard. Images were obtained at 24 and 48 h of incubation using a digital camera and a custom-made light box. A custom convolutional neural network architecture was designed to predict pathogen classification from digital images obtained at 24 and 48 h. We calculated the overall accuracy, diagnostic test statistics [sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV)], and the area under the curve (AUC) of the receiver operating characteristic (ROC) curves to assess the models' performance in detecting the different pathogen categories. The overall classification accuracy was 74.0% for the 24-h model and 72.8% for the 48-h model. The mean ROC AUC was 0.950 for the 24-h model and 0.943 for the 48-h model, indicating strong separability among pathogen categories. Sensitivity, specificity, PPV, and NPV for the 24-model were E. coli, 0.79, 0.97, 0.74, 0.97; K. pneumoniae, 0.71, 0.93, 0.60, 0.96; L. lactis, 0.51, 0.94, 0.52, 0.94; Staph. aureus, 0.53, 0.98, 0.71, 0.95; Staph. chromogenes, 0.78, 0.98, 0.86, 0.97; Strep. dysgalactiae, 0.77, 0.99, 0.84, 0.98; Strep. infantarius, 0.46, 0.97, 0.64, 0.93; Strep. uberis, 1.00, 0.95, 0.72, 1.00; and 'no growth', 1.00, 1.00, 1.00, 1.00; and for the 48-h model E. coli, 0.96, 0.98, 0.86, 0.99; K. pneumoniae, 0.72, 0.97, 0.76, 0.96; L. lactis, 0.47, 0.92, 0.37, 0.95; Staph. aureus, 0.55, 0.97, 0.67, 0.95; Staph. chromogenes, 0.74, 0.96, 0.69, 0.97; Strep. dysgalactiae, 0.86, 0.98, 0.83, 0.99; Strep. infantarius, 0.43, 0.95, 0.56, 0.92; Strep. uberis, 0.78, 0.97, 0.74, 0.98; and 'no growth', 1.00, 1.00, 0.98, 1.00. When pathogen predictions were grouped according to antimicrobial treatment recommendation (treatment vs. no treatment), the 24-h and 48-h models achieved sensitivities of 90.8% and 92.3%, specificities of 92.9% and 90.1%, PPV of 95.9% and 93.9%, NPV of 84.4% and 87.8%, accuracies of 91.5% and 91.5%, and F1 scores of 93.3% and 93.0%, respectively. Our results indicate that the computer vision system developed in this study can accurately classify mastitis pathogens from digital images of tryptic soy agar plates containing 5% sheep blood and may be a promising tool for pathogen identification in mastitis diagnostics. However, because the system was developed and evaluated under standardized laboratory conditions, further validation using commercially available on-farm culture systems and practical field imaging conditions is warranted.

从细菌培养基中识别奶牛乳腺炎相关病原体的计算机视觉系统的开发与评价。
本研究的目的是探讨计算机视觉系统在含有5%羊血的胰大豆琼脂板中识别乳腺炎病原体的诊断准确性。我们使用了以下乳腺炎病原体的分离物:大肠杆菌、肺炎克雷伯菌、乳酸乳球菌、金黄色葡萄球菌、变色葡萄球菌、泌乳不良链球菌、婴儿链球菌和uberis链球菌。此外,还包括“无生长”类别,表示未检测到细菌生长的样品。通过基质辅助激光解吸/电离飞行时间质谱法(MALDI-TOF)进行原代培养和种水平病原体鉴定后,选择代表性菌落进行传代培养,37℃孵育48 h。孵育24 h后,每个培养皿中提交代表性菌落进行MALDI-TOF分析,作为金标准。使用数码相机和定制的灯箱在孵育24和48 h时获得图像。设计了一个定制的卷积神经网络架构,从24和48小时获得的数字图像中预测病原体分类。我们计算了总体准确率、诊断试验统计量[敏感性、特异性、阳性预测值(PPV)和阴性预测值(NPV)],以及受试者工作特征(ROC)曲线下面积(AUC),以评估模型在检测不同病原体类别方面的性能。24小时模型的总体分类准确率为74.0%,48小时模型的分类准确率为72.8%。24 h模型的平均ROC AUC为0.950,48 h模型的平均ROC AUC为0.943,表明病原分类之间具有较强的可分离性。24种模型的敏感性、特异性、PPV和NPV分别为大肠杆菌,0.79、0.97、0.74、0.97;肺炎克雷伯菌,0.71,0.93,0.60,0.96;乳酸菌,0.51,0.94,0.52,0.94;葡萄球菌。金黄色葡萄球菌,0.53,0.98,0.71,0.95;葡萄球菌。染色体,0.78,0.98,0.86,0.97;喉炎的症状。泌乳不良,0.77,0.99,0.84,0.98;喉炎的症状。Infantarius, 0.46, 0.97, 0.64, 0.93;喉炎的症状。优步,1.00,0.95,0.72,1.00;“没有增长”,1.00,1.00,1.00,1.00;48 h模型大肠杆菌分别为0.96、0.98、0.86、0.99;肺炎克雷伯菌,0.72,0.97,0.76,0.96;乳酸菌,0.47,0.92,0.37,0.95;葡萄球菌。金黄色葡萄球菌,0.55,0.97,0.67,0.95;葡萄球菌。染色体,0.74,0.96,0.69,0.97;喉炎的症状。泌乳不良,0.86,0.98,0.83,0.99;喉炎的症状。Infantarius, 0.43, 0.95, 0.56, 0.92;喉炎的症状。Uberis, 0.78, 0.97, 0.74, 0.98;“没有增长”,1.00,1.00,0.98,1.00。当病原体预测根据抗菌治疗推荐(治疗或未治疗)分组时,24 h和48 h模型的敏感性分别为90.8%和92.3%,特异性分别为92.9%和90.1%,PPV分别为95.9%和93.9%,NPV分别为84.4%和87.8%,准确率分别为91.5%和91.5%,F1评分分别为93.3%和93.0%。结果表明,本研究开发的计算机视觉系统可以从含有5%羊血的胰大豆琼脂平板的数字图像中准确地分类乳腺炎病原体,可能是乳腺炎诊断中很有前途的病原体鉴定工具。然而,由于该系统是在标准化的实验室条件下开发和评估的,因此有必要使用商业上可用的农场培养系统和实际的现场成像条件进行进一步验证。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Dairy Science
Journal of Dairy Science 农林科学-奶制品与动物科学
CiteScore
7.90
自引率
17.10%
发文量
784
审稿时长
4.2 months
期刊介绍: The official journal of the American Dairy Science Association®, Journal of Dairy Science® (JDS) is the leading peer-reviewed general dairy research journal in the world. JDS readers represent education, industry, and government agencies in more than 70 countries with interests in biochemistry, breeding, economics, engineering, environment, food science, genetics, microbiology, nutrition, pathology, physiology, processing, public health, quality assurance, and sanitation.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书