Yashan Dhaliwal , Hangqing Bi , Suresh Neethirajan
{"title":"Bimodal data analysis for early detection of lameness in dairy cows using artificial intelligence","authors":"Yashan Dhaliwal , Hangqing Bi , Suresh Neethirajan","doi":"10.1016/j.jafr.2025.101837","DOIUrl":null,"url":null,"abstract":"<div><div>Lameness remains a leading cause of economic loss in Canadian dairy herds while also compromising animal welfare. To address the urgent need for early detection, we introduce a novel bimodal artificial intelligence (AI) framework that leverages both facial biometric data and accelerometer-based movement metrics. Over a 21-day period, six Holstein cows were monitored to capture variations in facial expressions and locomotion, and a multimodal model was built by combining DenseNet-121 for image analysis with Long Short-Term Memory (LSTM) networks for time-series data. Crucially, our model employs a multi-head attention mechanism to fuse visual and movement features, enabling it to overcome confounding factors such as lighting conditions, barn environments, and individual behavioral differences. This approach achieved a 99.55 % accuracy—substantially exceeding single-modality baselines—and Grad-CAM interpretations revealed key facial cues (orbital tightening, ear posture, muzzle tension) linked to lameness. Lame cows also exhibited prolonged resting times, especially during peak activity hours, underscoring their discomfort. These findings illustrate how integrating facial and accelerometer data can promote timely interventions, significantly enhancing cow welfare and reducing medical expenditures and productivity losses. Moreover, our results highlight how tie-stall barn systems can exacerbate lameness by restricting natural movement, further supporting recommendations to transition toward more open, movement-friendly housing. In doing so, producers not only protect cow well-being but also safeguard vital economic returns.</div></div>","PeriodicalId":34393,"journal":{"name":"Journal of Agriculture and Food Research","volume":"21 ","pages":"Article 101837"},"PeriodicalIF":4.8000,"publicationDate":"2025-03-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Agriculture and Food Research","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S266615432500208X","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Lameness remains a leading cause of economic loss in Canadian dairy herds while also compromising animal welfare. To address the urgent need for early detection, we introduce a novel bimodal artificial intelligence (AI) framework that leverages both facial biometric data and accelerometer-based movement metrics. Over a 21-day period, six Holstein cows were monitored to capture variations in facial expressions and locomotion, and a multimodal model was built by combining DenseNet-121 for image analysis with Long Short-Term Memory (LSTM) networks for time-series data. Crucially, our model employs a multi-head attention mechanism to fuse visual and movement features, enabling it to overcome confounding factors such as lighting conditions, barn environments, and individual behavioral differences. This approach achieved a 99.55 % accuracy—substantially exceeding single-modality baselines—and Grad-CAM interpretations revealed key facial cues (orbital tightening, ear posture, muzzle tension) linked to lameness. Lame cows also exhibited prolonged resting times, especially during peak activity hours, underscoring their discomfort. These findings illustrate how integrating facial and accelerometer data can promote timely interventions, significantly enhancing cow welfare and reducing medical expenditures and productivity losses. Moreover, our results highlight how tie-stall barn systems can exacerbate lameness by restricting natural movement, further supporting recommendations to transition toward more open, movement-friendly housing. In doing so, producers not only protect cow well-being but also safeguard vital economic returns.