A smarter lung ultrasonography solution for lung consolidation classification in dairy calves using a deep learning approach.

IF 4.7 1区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE
Marina Madureira Ferreira, Keshawa M Dadallage, Tyler Ward, Hannah McCray, Ryan M Ye, Jennifer J Sun, Francisco A Leal Yepes
{"title":"A smarter lung ultrasonography solution for lung consolidation classification in dairy calves using a deep learning approach.","authors":"Marina Madureira Ferreira, Keshawa M Dadallage, Tyler Ward, Hannah McCray, Ryan M Ye, Jennifer J Sun, Francisco A Leal Yepes","doi":"10.3168/jds.2026-28434","DOIUrl":null,"url":null,"abstract":"<p><p>Lung ultrasonography (LUS) is a valuable tool for diagnosing pneumonia in calves, allowing early detection and prompt treatment. However, despite its value, the technique is not yet fully established as a routine herd health monitoring practice on farms. A key limitation is the presence of inter-rater differences when classifying lung consolidation based on LUS, particularly considering small thresholds of consolidation. The objective of this study was to develop a deep learning (DL) classification model for LUS image analysis in dairy calves. A secondary objective was to compare the performance of the different DL models. The LUS videos from 126 preweaning Holstein calves in a commercial dairy farm in NY State were recorded and used for frame extraction. Frames were annotated according to lung consolidation extension as normal, lobular, and lobar by trained personnel, and a panel diagnosis was compiled as the reference standard for evaluating the model's performance. The data set was divided into training (68%), internal validation (12%), and an independent testing set (20%). Augmentation was applied only to the training set to mitigate overfitting and improve model robustness. The final sets comprised 57,704 training frames and 2,545 internal validation frames from 96 calves, and 4,196 testing frames from 30 calves. Two DL classification models were evaluated: You Only Look Once (YOLO) and Vision Transformer (ViT). Both models achieved overall high accuracy of 0.98 (95% CI: 0.98-0.99) and 0.97 (0.96-0.98), respectively. The performance metrics for the YOLO model were precision 0.94 (95% CI: 0.92-0.95), recall 0.95 (0.93-0.96), and F1-score 0.94 (0.93-0.96). The ViT model precision was 0.88 (0.86-0.90), recall 0.93 (0.92-0.95), and F1-score 0.90 (0.88-0.92). The YOLO model consistently outperformed ViT across all evaluated metrics. At the class level, lobular consolidation yielded the lowest precision for both models, 0.84 (0.80-0.88) for YOLO and 0.69 (0.64-0.74) for ViT, compared with above 0.90 for both the normal and lobar classes. Because the original data set was inherently imbalanced across classes, reflecting the disease distribution on the farm, both models were retrained on a class-balanced subset. Precision, recall, and F1-score exceeded 0.90 for the normal and lobar classes, in both YOLO and ViT, consistent with the original imbalanced data set. However, performance for the lobular class declined on balanced training, with precision dropping from 0.84 (0.80-0.88) to 0.74 (0.69-0.79) for YOLO, and from 0.69 (0.64-0.74) to 0.57 (0.52-0.62) for ViT. Similarly, the F1-score dropped from 0.88 (0.85-0.91) to 0.81 (0.77-0.85) for YOLO, and from 0.78 (0.74-0.82) to 0.70 (0.66-0.74) for ViT. In conclusion, both YOLO and ViT models demonstrated high accuracy in correctly classifying normal lungs and lobar consolidation in preweaning calves, but were less reliable at detecting lobular consolidation. The results demonstrate the potential of DL models to automate lung consolidation classification in calves and enhance the use of LUS on farms. Hence, it may improve early disease diagnosis, interventions, and calf welfare, while minimizing economic losses associated with the disease.</p>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":" ","pages":""},"PeriodicalIF":4.7000,"publicationDate":"2026-09-17","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-28434","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

Lung ultrasonography (LUS) is a valuable tool for diagnosing pneumonia in calves, allowing early detection and prompt treatment. However, despite its value, the technique is not yet fully established as a routine herd health monitoring practice on farms. A key limitation is the presence of inter-rater differences when classifying lung consolidation based on LUS, particularly considering small thresholds of consolidation. The objective of this study was to develop a deep learning (DL) classification model for LUS image analysis in dairy calves. A secondary objective was to compare the performance of the different DL models. The LUS videos from 126 preweaning Holstein calves in a commercial dairy farm in NY State were recorded and used for frame extraction. Frames were annotated according to lung consolidation extension as normal, lobular, and lobar by trained personnel, and a panel diagnosis was compiled as the reference standard for evaluating the model's performance. The data set was divided into training (68%), internal validation (12%), and an independent testing set (20%). Augmentation was applied only to the training set to mitigate overfitting and improve model robustness. The final sets comprised 57,704 training frames and 2,545 internal validation frames from 96 calves, and 4,196 testing frames from 30 calves. Two DL classification models were evaluated: You Only Look Once (YOLO) and Vision Transformer (ViT). Both models achieved overall high accuracy of 0.98 (95% CI: 0.98-0.99) and 0.97 (0.96-0.98), respectively. The performance metrics for the YOLO model were precision 0.94 (95% CI: 0.92-0.95), recall 0.95 (0.93-0.96), and F1-score 0.94 (0.93-0.96). The ViT model precision was 0.88 (0.86-0.90), recall 0.93 (0.92-0.95), and F1-score 0.90 (0.88-0.92). The YOLO model consistently outperformed ViT across all evaluated metrics. At the class level, lobular consolidation yielded the lowest precision for both models, 0.84 (0.80-0.88) for YOLO and 0.69 (0.64-0.74) for ViT, compared with above 0.90 for both the normal and lobar classes. Because the original data set was inherently imbalanced across classes, reflecting the disease distribution on the farm, both models were retrained on a class-balanced subset. Precision, recall, and F1-score exceeded 0.90 for the normal and lobar classes, in both YOLO and ViT, consistent with the original imbalanced data set. However, performance for the lobular class declined on balanced training, with precision dropping from 0.84 (0.80-0.88) to 0.74 (0.69-0.79) for YOLO, and from 0.69 (0.64-0.74) to 0.57 (0.52-0.62) for ViT. Similarly, the F1-score dropped from 0.88 (0.85-0.91) to 0.81 (0.77-0.85) for YOLO, and from 0.78 (0.74-0.82) to 0.70 (0.66-0.74) for ViT. In conclusion, both YOLO and ViT models demonstrated high accuracy in correctly classifying normal lungs and lobar consolidation in preweaning calves, but were less reliable at detecting lobular consolidation. The results demonstrate the potential of DL models to automate lung consolidation classification in calves and enhance the use of LUS on farms. Hence, it may improve early disease diagnosis, interventions, and calf welfare, while minimizing economic losses associated with the disease.

使用深度学习方法的奶牛肺实变分类的智能肺超声检查解决方案。
肺超声检查(LUS)是诊断小牛肺炎的一种有价值的工具,可以早期发现并及时治疗。然而,尽管有其价值,该技术尚未完全确立为农场常规的牛群健康监测做法。一个关键的限制是,在基于LUS对肺实变进行分类时,特别是考虑到实变阈值较小时,存在评分间差异。本研究的目的是开发一种用于奶牛LUS图像分析的深度学习(DL)分类模型。第二个目标是比较不同深度学习模型的性能。来自纽约州一家商业奶牛场126头断奶前荷斯坦小牛的LUS视频被记录下来并用于帧提取。由训练有素的人员根据肺实变扩展将框架标注为正常、小叶和大叶,并编制面板诊断作为评估模型性能的参考标准。数据集分为训练集(68%)、内部验证集(12%)和独立测试集(20%)。增强仅应用于训练集,以减轻过拟合和提高模型鲁棒性。最后一组包括来自96头小牛的57,704个训练帧和2,545个内部验证帧,以及来自30头小牛的4,196个测试帧。评估了两种深度学习分类模型:You Only Look Once (YOLO)和Vision Transformer (ViT)。两种模型的总体准确率分别为0.98 (95% CI: 0.98-0.99)和0.97(0.96-0.98)。YOLO模型的性能指标为精密度0.94 (95% CI: 0.92-0.95),召回率0.95 (0.93-0.96),f1评分0.94(0.93-0.96)。ViT模型精密度为0.88(0.86 ~ 0.90),召回率为0.93 (0.92 ~ 0.95),f1评分为0.90(0.88 ~ 0.92)。YOLO模型在所有评估指标上始终优于ViT。在分类水平上,两种模型的小叶巩固精度最低,YOLO为0.84 (0.80-0.88),ViT为0.69(0.64-0.74),而正常和大叶分类的精度都在0.90以上。由于原始数据集在各个类别之间本质上是不平衡的,反映了农场上的疾病分布,因此两个模型都在类别平衡的子集上进行了重新训练。在YOLO和ViT中,正常类和叶类的准确率、召回率和F1-score均超过0.90,与原始不平衡数据集一致。然而,小叶类的表现在平衡训练中下降,YOLO的精度从0.84(0.80-0.88)下降到0.74 (0.69-0.79),ViT的精度从0.69(0.64-0.74)下降到0.57(0.52-0.62)。同样,YOLO的f1得分从0.88(0.85-0.91)下降到0.81 (0.77-0.85),ViT的f1得分从0.78(0.74-0.82)下降到0.70(0.66-0.74)。总之,YOLO和ViT模型在正确分类断奶前犊牛的正常肺和小叶实变方面具有较高的准确性,但在检测小叶实变方面可靠性较低。结果表明DL模型在犊牛肺实变自动分类和提高LUS在农场的使用方面具有潜力。因此,它可以改善早期疾病诊断、干预和小牛福利,同时最大限度地减少与疾病相关的经济损失。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信
小红书