{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,20]],"date-time":"2026-07-20T03:03:18Z","timestamp":1784516598161,"version":"3.55.0"},"reference-count":41,"publisher":"MDPI AG","issue":"14","license":[{"start":{"date-parts":[[2026,7,17]],"date-time":"2026-07-17T00:00:00Z","timestamp":1784246400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Project of 2025 Inner Mongolia Autonomous Region Key R&D and Achievement Transformation Program","award":["2025KJHZ0066"],"award-info":[{"award-number":["2025KJHZ0066"]}]},{"name":"Project of 2023 Inner Mongolia Autonomous Region Key R&D and Achievement Transformation Program","award":["2023YFDZ0023"],"award-info":[{"award-number":["2023YFDZ0023"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Animals"],"abstract":"<jats:p>Bovine mastitis, a prevalent and economically detrimental inflammatory disease in dairy cattle, leads to substantial economic losses due to reduced milk yield, impaired milk quality, and increased veterinary costs. Infrared thermography (IRT) provides an efficient, non-invasive approach for early mastitis detection by leveraging computer vision to analyze temperature differences between ocular and udder regions. However, in practical farm environments, arbitrary head movements, particularly horizontal rotation, alter sensor-to-object distance, introducing systematic biases in thermal measurements and degrading diagnostic reliability. To address this limitation, a two-stage detection framework is proposed under a lateral infrared imaging configuration, in which the camera is positioned perpendicular to the walking direction of cows. First, a posture classification module based on pose estimation is employed to identify cows with consistent lateral orientation and minimal head rotation, thereby maintaining stable sensor-to-object distance between the ocular and udder regions. Second, instance segmentation is applied to posture-constrained thermal images to achieve accurate regional temperature extraction and quantitative analysis. In addition, an improved YOLO26 model integrated with a Deformable Attention Transformer (DAT-YOLO26) is developed to enhance feature representation capability and detection performance under variable imaging conditions. On an independent 40-cow blind diagnostic cohort (20 healthy, 20 mastitis-positive), the proposed method achieved an accuracy of 87.5%, an F1-score of 87.18%, a sensitivity of 85%, and a specificity of 90%. These results, while constrained by the size of the test cohort, suggest that enforcing posture consistency improves IRT-based diagnostic performance under the present acquisition conditions. We emphasize, however, that these findings are based on a single-farm, single-season pilot cohort of 40 cows; multi-farm and multi-season validation are required before broader deployment claims can be made.<\/jats:p>","DOI":"10.3390\/ani16142220","type":"journal-article","created":{"date-parts":[[2026,7,20]],"date-time":"2026-07-20T02:32:08Z","timestamp":1784514728000},"page":"2220","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["A Posture-Constrained Infrared Thermography Framework for Dairy Cow Mastitis Detection with DAT-YOLO26"],"prefix":"10.3390","volume":"16","author":[{"given":"Gegerihu","family":"Bao","sequence":"first","affiliation":[{"name":"College of Computer and Information Engineering, Inner Mongolia Agricultural University, Erdos East Street No. 29, Hohhot 010011, China"},{"name":"School of Computer and Information Technology, Hohhot Minzu College, North Tongdao Road No. 56, Hohhot 010051, China"},{"name":"Inner Mongolia Autonomous Region Key Laboratory of Big Data Research and Application for Agriculture and Animal Husbandry, Zhaowuda Road No. 306, Hohhot 010018, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4623-3566","authenticated-orcid":false,"given":"Xiao","family":"Jin","sequence":"additional","affiliation":[{"name":"College of Animal Science, Inner Mongolia Agricultural University, Zhaowuda Road No. 306, Hohhot 010018, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jing","family":"Gao","sequence":"additional","affiliation":[{"name":"College of Computer and Information Engineering, Inner Mongolia Agricultural University, Erdos East Street No. 29, Hohhot 010011, China"},{"name":"Inner Mongolia Autonomous Region Key Laboratory of Big Data Research and Application for Agriculture and Animal Husbandry, Zhaowuda Road No. 306, Hohhot 010018, China"},{"name":"Inner Mongolia Autonomous Region Bureau of Government Services and Data Management, Chilechuan Street No. 1, Hohhot 010091, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xintong","family":"Li","sequence":"additional","affiliation":[{"name":"College of Animal Science, Inner Mongolia Agricultural University, Zhaowuda Road No. 306, Hohhot 010018, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zhipeng","family":"Han","sequence":"additional","affiliation":[{"name":"College of Animal Science, Inner Mongolia Agricultural University, Zhaowuda Road No. 306, Hohhot 010018, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jian","family":"Song","sequence":"additional","affiliation":[{"name":"College of Animal Science, Inner Mongolia Agricultural University, Zhaowuda Road No. 306, Hohhot 010018, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2026,7,17]]},"reference":[{"key":"ref_1","unstructured":"United States Department of Agriculture Foreign Agricultural Service (USDA-FAS) (2026, May 10). Production, Supply and Distribution (PSD) Online Custom Query: Dairy Cattle Inventory, China, Available online: https:\/\/apps.fas.usda.gov\/psdonline\/app\/index.html#\/app\/advQuery."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"100306","DOI":"10.1016\/j.vas.2023.100306","article-title":"Bovine mastitis, a worldwide impact disease: Prevalence, antimicrobial resistance, and viable alternative approaches","volume":"21","year":"2023","journal-title":"Vet. Anim. Sci."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Ramuada, M., Tyasi, T.L., Gumede, L., and Chitura, T. (2024). A practical guide to diagnosing bovine mastitis: A review. Front. Anim. Sci., 5.","DOI":"10.3389\/fanim.2024.1504873"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Zaninelli, M., Redaelli, V., Luzi, F., Bronzo, V., Mitchell, M., Dell\u2019Orto, V., Bontempo, V., Cattaneo, D., and Savoini, G. (2018). First Evaluation of Infrared Thermography as a Tool for the Monitoring of Udder Health Status in Farms of Dairy Cows. Sensors, 18.","DOI":"10.3390\/s18030862"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Korelidou, V., Simitzis, P., Massouras, T., and Gelasakis, A.I. (2024). Infrared Thermography as a Diagnostic Tool for the Assessment of Mastitis in Dairy Ruminants. Animals, 14.","DOI":"10.3390\/ani14182691"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"4541","DOI":"10.3168\/jds.2018-15761","article-title":"Technical note: Automatic evaluation of infrared thermal images by computerized active shape modeling of bovine udders challenged with Escherichia coli","volume":"102","author":"Watz","year":"2019","journal-title":"J. Dairy Sci."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"103932","DOI":"10.1016\/j.infrared.2021.103932","article-title":"Multiview Eye Localisation to Measure Cattle Body Temperature Based on Automated Thermal Image Processing and Computer Vision","volume":"119","author":"Jaddoa","year":"2021","journal-title":"Infrared Phys. Technol."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"4592","DOI":"10.3168\/jds.2008-1218","article-title":"Detection of Clinical Mastitis with the Help of a Thermal Camera","volume":"91","author":"Hovinen","year":"2008","journal-title":"J. Dairy Sci."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"360","DOI":"10.1016\/j.tvjl.2015.04.013","article-title":"Infrared thermography of the udder after experimentally induced Escherichia coli mastitis in cows","volume":"204","author":"Metzner","year":"2015","journal-title":"Vet. J."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"239","DOI":"10.1016\/j.infrared.2017.11.028","article-title":"Infrared thermal imaging of udder skin surface temperature variations to monitor udder health status in Bos indicus (Deoni) cows","volume":"88","author":"Sathiyabarathi","year":"2018","journal-title":"Infrared Phys. Technol."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1386","DOI":"10.14202\/vetworld.2016.1386-1391","article-title":"Investigation of body and udder skin surface temperature differentials as an early indicator of mastitis in Holstein Friesian crossbred cows using digital infrared thermography technique","volume":"9","author":"Sathiyabarathi","year":"2016","journal-title":"Vet. World"},{"key":"ref_12","first-page":"276","article-title":"Automatic Detection Method for Dairy Cow Mastitis Based on Improved YOLO v3-tiny","volume":"52","author":"Wang","year":"2021","journal-title":"Trans. Chin. Soc. Agric. Mach."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Zhang, Q., Yang, Y., Liu, G., Ning, Y., and Li, J. (2023). Dairy Cow Mastitis Detection by Thermal Infrared Images Based on CLE-UNet. Animals, 13.","DOI":"10.3390\/ani13132211"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"108507","DOI":"10.1016\/j.compag.2023.108507","article-title":"A deep learning approach combining DeepLabV3+ and improved YOLOv5 to detect dairy cow mastitis","volume":"216","author":"Wang","year":"2024","journal-title":"Comput. Electron. Agric."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"100646","DOI":"10.1016\/j.animal.2022.100646","article-title":"Accurate detection of dairy cow mastitis with deep learning technology: A new and comprehensive detection method based on infrared thermal images","volume":"16","author":"Wang","year":"2022","journal-title":"Animal"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"105754","DOI":"10.1016\/j.compag.2020.105754","article-title":"Automatic recognition of dairy cow mastitis from thermal images by a deep learning detector","volume":"178","author":"Zhang","year":"2020","journal-title":"Comput. Electron. Agric."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"4220","DOI":"10.3390\/agriengineering6040237","article-title":"A New Way to Identify Mastitis in Cows Using Artificial Intelligence","volume":"6","author":"Silva","year":"2024","journal-title":"AgriEngineering"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"108131","DOI":"10.1016\/j.compag.2023.108131","article-title":"Fusion of udder temperature and size features for the automatic detection of dairy cow mastitis using deep learning","volume":"212","author":"Chu","year":"2023","journal-title":"Comput. Electron. Agric."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"92","DOI":"10.1016\/j.biosystemseng.2025.02.013","article-title":"Deep learning-based model to classify mastitis in Holstein dairy cows","volume":"252","author":"Chu","year":"2025","journal-title":"Biosyst. Eng."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"110937","DOI":"10.1016\/j.compag.2025.110937","article-title":"Multi-feature image layers fusion for accurate detection of dairy cow mastitis using deep learning","volume":"239","author":"Chu","year":"2025","journal-title":"Comput. Electron. Agric."},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Sharvanthika, K.S., Ramya, K., and Vanitha, C.N. (2024). Hybrid Deep Learning Approach for Early Mastitis Detection in Dairy Cattle Using Convolutional Neural Networks and Vision Transformers. Proceedings of the 2024 International Conference on Emerging Research in Computational Science (ICERCS), IEEE.","DOI":"10.1109\/ICERCS63125.2024.10895431"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"84","DOI":"10.1145\/3065386","article-title":"ImageNet classification with deep convolutional neural networks","volume":"60","author":"Krizhevsky","year":"2017","journal-title":"Commun. ACM"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27\u201330). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_24","unstructured":"Simonyan, K., and Zisserman, A. (2015). Very Deep Convolutional Networks for Large-Scale Image Recognition. Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, 7\u20139 May 2015, Association for Computing Machinery. Conference Track Proceedings."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"129584","DOI":"10.1016\/j.neucom.2025.129584","article-title":"Advances in instance segmentation: Technologies, metrics and applications in computer vision","volume":"625","author":"Molina","year":"2025","journal-title":"Neurocomputing"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"1015124","DOI":"10.1109\/TIM.2025.3597695","article-title":"Interference Factors and Compensation Methods When Using Infrared Thermography for Temperature Measurement: A Review","volume":"74","author":"Pan","year":"2025","journal-title":"IEEE Trans. Instrum. Meas."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Mazdeyasna, S., Ghassemi, P., and Wang, Q. (2023). Best Practices for Body Temperature Measurement with Infrared Thermography: External Factors Affecting Accuracy. Sensors, 23.","DOI":"10.3390\/s23188011"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1095","DOI":"10.1016\/j.applthermaleng.2016.02.119","article-title":"A method for reducing the influence of measuring distance on infrared thermal imager temperature measurement accuracy","volume":"100","author":"Zhang","year":"2016","journal-title":"Appl. Therm. Eng."},{"key":"ref_29","unstructured":"Sapkota, R., Cheppally, R.H., Sharda, A., and Karkee, M. (2026). YOLO26: Key Architectural Enhancements and Performance Benchmarking for Real-Time Object Detection. arXiv."},{"key":"ref_30","unstructured":"Jocher, G., and Qiu, J. (2025, May 10). YOLO26: Deployment-Oriented Real-Time Object Detection. Available online: https:\/\/github.com\/ultralytics\/ultralytics."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Xia, Z., Pan, X., Song, S., Li, L.E., and Huang, G. (2022, January 18\u201324). Vision Transformer with Deformable Attention. Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.","DOI":"10.1109\/CVPR52688.2022.00475"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"10381","DOI":"10.3168\/jds.2017-13023","article-title":"A 100-Year Review: Mastitis detection, management, and prevention","volume":"100","author":"Ruegg","year":"2017","journal-title":"J. Dairy Sci."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Li, X., Sun, K., Fan, H., and He, Z. (2023). Real-Time Cattle Pose Estimation Based on Improved RTMPose. Agriculture, 13.","DOI":"10.3390\/agriculture13101938"},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"Wang, A., Chen, H., Liu, L., Chen, K., Lin, Z., Han, J., and Ding, G. (2024, January 18\u201324). YOLOv10: Real-time end-to-end object detection. Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS \u201924, Red Hook, NY, USA.","DOI":"10.52202\/079017-3429"},{"key":"ref_35","unstructured":"Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2021, January 3\u20137). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. Proceedings of the 9th International Conference on Learning Representations, ICLR 2021, Virtual Event."},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11\u201317). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. Proceedings of the 2021 IEEE\/CVF International Conference on Computer Vision (ICCV), Virtually.","DOI":"10.1109\/ICCV48922.2021.00986"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Maji, D., Nagori, S., Mathew, M., and Poddar, D. (2022). YOLO-Pose: Enhancing YOLO for Multi Person Pose Estimation Using Object Keypoint Similarity Loss. arXiv.","DOI":"10.1109\/CVPRW56347.2022.00297"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Weng, Z., Hao, W., Gong, C., and Zheng, Z. (2025). YOLOv8-DMC: Enabling Non-Contact 3D Cattle Body Measurement via Enhanced Keypoint Detection. Animals, 15.","DOI":"10.3390\/ani15182738"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Fleet, D., Pajdla, T., Schiele, B., and Tuytelaars, T. (2014). Microsoft COCO: Common Objects in Context. Proceedings of the Computer Vision\u2013ECCV 2014, Springer International Publishing.","DOI":"10.1007\/978-3-319-10578-9"},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"110385","DOI":"10.1016\/j.compag.2025.110385","article-title":"Detection of dairy cow position using ultrasound technique with support vector machine","volume":"235","author":"Madola","year":"2025","journal-title":"Comput. Electron. Agric."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"65","DOI":"10.1016\/j.rvsc.2022.04.007","article-title":"Prevalence of subclinical mastitis among dairy cattle and associated risks factors in China during 2012-2021: A systematic review and meta-analysis","volume":"148","author":"Chen","year":"2022","journal-title":"Res. Vet. Sci."}],"container-title":["Animals"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2076-2615\/16\/14\/2220\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,20]],"date-time":"2026-07-20T02:59:49Z","timestamp":1784516389000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2076-2615\/16\/14\/2220"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7,17]]},"references-count":41,"journal-issue":{"issue":"14","published-online":{"date-parts":[[2026,7]]}},"alternative-id":["ani16142220"],"URL":"https:\/\/doi.org\/10.3390\/ani16142220","relation":{},"ISSN":["2076-2615"],"issn-type":[{"value":"2076-2615","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,7,17]]}}}