Predicting the Rectal Temperature of Dairy Cows Using Infrared Thermography and Multimodal Machine Learning
Source abstract
Abstract
The paper proposes an approach for estimating the rectal temperature of dairy cows based on the non-invasive real-time monitoring of their respiration rates and the temperature-humidity index (THI) of the environment, combined with the analysis of infrared images. We use multimodal machine learning for the joint processing (fusion) of these different types of data. The implementation is performed using a new open source AutoML Python module named AutoGluon. After training and optimizing three different regression models (a neural network and two powerful boosting algorithms), it reduces the variance of the result using level 2 stacking. The evaluation metrics we work with are the mean absolute error, MAE, and the coefficient of determination, R2. For a sample of 295 studied animals, a weighted ensemble provides quite decent results: R2=0.73 and MAE ≈0.1 °C. For another sample of 118 cows, we additionally use the pulse rate as a predictor and we achieve R2=0.65, MAE ≈0.2 °C. The maximal error is almost 1 °C due to outliers, but the median absolute error in both cases is significantly lower: MedAE <0.1 °C, with the standard deviations respectively being 0.118° and 0.137°. These encouraging results give us confidence that tabular and visual data fusion in ML models has great potential for the advancement of non-invasive real-time monitoring and early diagnostics methods.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Effects of Environmental Stressors on Livestock · Infrared Thermography in Medicine · Thermoregulation and physiological responses
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Mathematics, University of Architecture, Civil Engineering and Geodesy, 1 Hristo Smirnenski Blvd, 1164 Sofia, Bulgaria
Researcher at Trakia University, 6015 Stara Zagora, Bulgaria
Faculty of Agriculture, Trakia University, 6015 Stara Zagora, Bulgaria
Institute of Information and Communication Technologies, Bulgarian Academy of Sciences, 1113 Sofia, Bulgaria
Funding
Bulgarian Ministry of Education and Science (MES)
References (68)
Show source-provided references
1. Medical Applications of Infrared Thermography: A Review10.1016/j.infrared.2012.03.007 ↗
2. Infrared Thermography-Based Biophotonics: Integrated Diagnostic Technique for Systemic Reaction Monitoring10.1016/j.phpro.2017.01.025 ↗
3. Schlessinger, M. (2019). Infrared Technology Fundamentals, Routledge.10.1201/9780203750834 ↗
4. Ring, F.J., Ng, E.Y.K., Diakides, M., Bronzino, J., and Peterson, D. (2012). Medical Infrared Imaging: Principles and Practices, CRC Press.
5. Miller, J.L. (2012). Principles of Infrared Technology, Springer.
6. Infrared Thermography: Current Applications in Equine Medicine10.1016/j.jevs.2016.11.002 ↗
7. Utilization of Infrared Thermography in Cattle Production and Its Application Potency in Indonesia10.14334/wartazoa.v28i3.1858 ↗
8. Short Communication: Early Detection of Mastitis Using Infrared Thermography in Dairy Cows10.3168/jds.2008-1258 ↗
9. Udder thermography of gyr cows for subclinical mastitis detection
10. Sensitivity and Specificity of Infrared Thermography in Detection of Subclinical Mastitis in Dairy Cows10.3168/jds.2009-2807 ↗
11. Infrared Thermography: A Potential Noninvasive Tool to Monitor Udder Health Status in Dairy Cows10.14202/vetworld.2016.1075-1081 ↗
12. Zaninelli, M., Redaelli, V., Luzi, F., Bronzo, V., Mitchell, M., Dell’Orto, 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.10.3390/s18030862 ↗
13. Daily Variation in the Udder Surface Temperature of Dairy Cows Measured by Infrared Thermography: Potential for Mastitis Detection10.4141/A03-012 ↗
14. Infrared Thermography as Non-Invasive Technique for Early Detection of Mastitis in Dairy Animals—A Review
15. Thermography Based Inflammation Monitoring of Udder State in Dairy Cows: Sensitivity and Diagnostic Priorities Comparing with Routine California Mastitis Test
16. Detection of Clinical Mastitis with the Help of a Thermal Camera10.3168/jds.2008-1218 ↗
17. Detection of Hoof Lesions Using Digital Infrared Thermography in Dairy Cows10.3168/jds.2011-4762 ↗
18. Infrared Thermography to Evaluate Lameness in Pregnant Sows
19. Risk Factors and Detection of Lameness Using Infrared Thermography in Dairy Cows—A Review10.2478/aoas-2019-0008 ↗
20. Automated Collection of Heat Stress Data in Livestock: New Technologies and Opportunities10.1093/tas/txy061 ↗
21. Kříž, P., Horčičková, M., Bumbálek, R., Bartoš, P., Smutný, L., Stehlík, R., Zoubek, T., Černý, P., Vochozka, V., and Kuneš, R. (2021). Application of the Machine Vision Technology and Infrared Thermography to the Detection of Hoof Diseases in Dairy Cows: A Review. Appl. Sci., 11.10.3390/app112211045 ↗
22. Accurate Detection of Dairy Cow Mastitis with Deep Learning Technology: A New and Comprehensive Detection Method Based on Infrared Thermal Images10.1016/j.animal.2022.100646 ↗
23. Çevik, K.K., and Boğa, M. (2019). Body Condition Score (BCS) Segmentation and Classification in Dairy Cows Using R-CNN Deep Learning Architecture. Eur. J. Sci. Technol., 1248–1255.10.1109/ASYU48272.2019.8946405 ↗
24. Bochtis, D.D., Moshou, D.E., Vasileiadis, G., Balafoutis, A., and Pardalos, P.M. (2022). Information and Communication Technologies for Agriculture—Theme II: Data, Springer Nature.10.1007/978-3-030-84148-5 ↗
25. Xie, Q., Wu, M., Yang, M., Bao, J., and Zheng, P. (2021, January 20–23). A Deep Learning-Based Fusion Method of Infrared Thermography and Visible Image for Pig Body Temperature Detection. Proceedings of the International Symposium on Animal Environment and Welfare, Chongqing, China.
26. Manullang, M.C.T., Lin, Y.-H., Lai, S.-J., and Chou, N.-K. (2021). Implementation of Thermal Camera for Non-Contact Physiological Measurement: A Systematic Review. Sensors, 21.10.3390/s21237777 ↗
27. Estimation of respiratory frequency and rectal temperature on pigs in heat stress by fuzzy logic10.1590/1809-4430-eng.agric.v38n4p457-470/2018 ↗
28. Predicting Rectal Temperature and Respiration Rate Responses in Lactating Dairy Cows Exposed to Heat Stress10.3168/jds.2019-16411 ↗
29. Neves, S.F., Silva, M.C.F., Miranda, J.M., Stilwell, G., and Cortez, P.P. (2022). Predictive Models of Dairy Cow Thermal State: A Review from a Technological Perspective. Vet. Sci., 9.10.3390/vetsci9080416 ↗
30. Prediction of Rectal Temperature in Holstein Heifers Using Infrared Thermography, Respiration Frequency, and Climatic Variables10.1007/s00484-022-02377-0 ↗
31. A Meta-Analysis of Heat Stress in Dairy Cattle: The Increase in Temperature Humidity Index Affects Both Milk Yield and Some Physiological Parameters10.17221/1/2022-CJAS ↗
32. Jorquera-Chavez, M., Fuentes, S., Dunshea, F.R., Warner, R.D., Poblete, T., and Jongman, E.C. (2019). Modelling and Validation of Computer Vision Techniques to Assess Heart Rate, Eye Temperature, Ear-Base Temperature and Respiration Rate in Cattle. Animals, 9.10.3390/ani9121089 ↗
33. Screening of febrile cows using a small handheld infrared thermography device10.1055/a-1307-9993 ↗
34. Lewis Baida, B.E., Swinbourne, A.M., Barwick, J., Leu, S.T., and van Wettere, W.H.E.J. (2021). Technologies for the Automated Collection of Heat Stress Data in Sheep. Anim. Biotelemetry, 9.10.1186/s40317-020-00225-9 ↗
35. Artificial Intelligence in Veterinary Diagnostic Imaging: A Literature Review10.1111/vru.13163 ↗
36. Detecting Essential Landmarks Directly in Thermal Images for Remote Body Temperature and Respiratory Rate Measurement with a Two-Phase System10.1109/ACCESS.2022.3161968 ↗
37. Erickson, N., Shi, X., Sharpnack, J., and Smola, A. (2022, January 14–18). Multimodal AutoML for Image, Text and Tabular Data. Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, Washington, DC, USA.10.1145/3534678.3542616 ↗
38. Erickson, N., Mueller, J.W., Shirkov, A., Zhang, H., Larroy, P., Li, M., and Smola, A. (2020). AutoGluon-Tabular: Robust and Accurate AutoML for Structured Data. arXiv.
39. Aluja-Banet, T., Daunis-I-Estadella, J., Brunsó, N., and Mompart-Penina, A. (2015). Improving Prevalence Estimation through Data Fusion: Methods and Validation. BMC Med. Inform. Decis. Mak., 15.10.1186/s12911-015-0169-z ↗
40. Interacting multiple model methods in target tracking: A survey10.1109/7.640267 ↗
41. Engineers’ Guide to Variable-Structure Multiple-Model Estimation and Tracking
42. Stacked Generalization10.1016/S0893-6080(05)80023-1 ↗
43. Caruana, R., Niculescu-Mizil, A., Crew, G., and Ksikes, A. (2004, January 4–8). Ensemble Selection from Libraries of Models. Proceedings of the Twenty-First International Conference on Machine Learning, Banff, AB, Canada.10.1145/1015330.1015432 ↗
44. Artificial Intelligence in Animal Farming: A Systematic Literature Review10.1016/j.jclepro.2021.129956 ↗
45. Selvaraju, V., Spicher, N., Wang, J., Ganapathy, N., Warnecke, J.M., Leonhardt, S., Swaminathan, R., and Deserno, T.M. (2022). Continuous Monitoring of Vital Signs Using Cameras: A Systematic Review. Sensors, 22.10.3390/s22114097 ↗
46. The Livestock Farming Digital Transformation: Implementation of New and Emerging Technologies Using Artificial Intelligence10.1017/S1466252321000177 ↗
47. Wang, S., Jiang, H., Qiao, Y., Jiang, S., Lin, H., and Sun, Q. (2022). The Research Progress of Vision-Based Artificial Intelligence in Smart Pig Farming. Sensors, 22.10.3390/s22176541 ↗
48. Fuentes, S., Gonzalez Viejo, C., Cullen, B., Tongson, E., Chauhan, S.S., and Dunshea, F.R. (2020). Artificial Intelligence Applied to a Robotic Dairy Farm to Model Milk Productivity and Quality based on Cow Data and Daily Environmental Parameters. Sensors, 20.10.3390/s20102975 ↗
49. Invited Review: Examples and Opportunities for Artificial Intelligence (AI) in Dairy Farms10.15232/aas.2022-02345 ↗
50. Dimanov, D., and Mitev, Y. (2004). Animal Health & Welfare, Callisto Reference. (In Bulgarian).
51. Effects of Heat Stress on the Welfare of Extensively Managed Domestic Ruminants10.1016/S0301-6226(00)00162-7 ↗
52. Penev, T., Dimov, D., Marinov, I., and Angelova, T. (2021). Study of Influence of Heat Stress on Some Physiological and Productive Traits in Holstein-Friesian Dairy Cows. Agron. Res., 19.
53. Dynamic Response Indicators of Heat Stress in Shaded and Non-Shaded Feedlot Cattle, Part 1: Analyses of Indicators10.1016/j.biosystemseng.2004.12.006 ↗
54. Fuhrer, J., and Gregory, P.J. (2014). Climate Change Impact and Adaptation in Agricultural Systems: Soil Ecosystem Management in Sustainable Agriculture, CABI.10.1079/9781780642895.0000 ↗
55. Heat Stress Interaction with Shade and Cooling10.3168/jds.S0022-0302(94)77149-6 ↗
56. Watson, R.R., Collier, R.J., and Preedy, V.R. (2017). Nutrients in Dairy and Their Implications for Health and Disease, Academic Press.
57. Zimbelman, R., Rhoads, R., Rhoads, M., Baumgard, L., and Collier, R. (2009, January 26–27). A Re-Evaluation of the Impact of Temperature Humidity Index (THI) and Black Globe Humidity Index (BGHI) on Milk Production in High Producing Dairy Cows. Proceedings of the 24th Annual Southwest Nutrition and Management Conference, Tempe, AZ, USA.
58. Is the Temperature-Humidity Index the Best Indicator of Heat Stress in Lactating Dairy Cows in a Subtropical Environment?10.3168/jds.2008-1370 ↗
59. Infrared Thermography as a Method for Evaluating the Heat Tolerance in Dairy Cows10.1590/s1806-92902017000500002 ↗
60. Economic Losses from Heat Stress by US Livestock Industries10.3168/jds.S0022-0302(03)74040-5 ↗
61. Infrared Thermography as a Tool to Evaluate Body Surface Temperature and Its Relationship with Feed Efficiency in Bos Indicus Cattle in Tropical Conditions10.1007/s00484-015-1015-9 ↗
62. Application of Infrared Thermal Technology to Assess the Level of Heat Stress and Milk Yield Reduction of Cows in Tropical Smallholder Dairy Farms10.3168/jds.2021-21343 ↗
63. Infrared Thermography in Animal Production: An Overview10.1016/j.compag.2016.01.027 ↗
64. Brezov, D., and Burov, A. (2023). Ensemble Learning Traffic Model for Sofia: A Case Study. Appl. Sci., 13.10.3390/app13084678 ↗
65. Ting, K.M., and Witten, I.H. (1997, January 8–12). Stacking Bagged and Dagged Models. Proceedings of the Fourteenth International Conference on Machine Learning (ICML ’97), Nashville, TN, USA.
66. Hutter, F., Kotthoff, L., and Vanschoren, J. (2019). Automated Machine Learning: Methods, Systems, Challenges, Springer.10.1007/978-3-030-05318-5 ↗
67. Rittiplang, A., Phasukkit, P., and Orankitanun, T. (2020). Optimal Central Frequency for Non-Contact Vital Sign Detection Using Monocycle UWB Radar. Sensors, 20.10.3390/s20102916 ↗
68. Xu, H., Ebrahim, M.P., Hasan, K., Heydari, F., Howley, P., and Yuce, M.R. (2022). Accurate Heart Rate and Respiration Rate Detection Based on a Higher-Order Harmonics Peak Selection Method Using Radar Non-Contact Sensors. Sensors, 22.10.3390/s22010083 ↗