Evaluation of a fully automated 2-dimensional imaging system for real-time cattle lameness detection using machine learning.

Journal: Journal Of Dairy Science
Published:
Abstract

Early detection and prompt treatment of lame cows are crucial for proactive lameness management. This study aimed to evaluate a fully automated 2-dimensional imaging system for real-time lameness detection using artificial intelligence. Data were collected from 11 dairy farms in the UK Four trained veterinarians performed 42 mobility scoring sessions using a 0-3 4-grade scoring system, with scores 2 and 3 representing lameness. On each session, individual weekly average scores were calculated. This resulted in 40,116 paired human mobility scores (HMS) and weekly average mobility scores generated using artificial intelligence (AIMS) matched to a cow ID. Categorical agreement for the 4-grade scale was estimated by calculating the weighted Cohen's kappa (κw) and Gwet's agreement coefficient (AC2), and for the 2-grade scale (nonlame vs. lame) by calculating the percentage agreement (PA), unweighted Cohen's kappa (κ) and Gwet's coefficient (AC1). A trained veterinarian recorded the presence and severity of any lesion of 2,515 cows, which also had an AIMS assigned. A subset of 758 cows were also assigned an HMS 1-3 d before trimming. Sensitivity (Se), specificity (Sp), and accuracy (Acc) were calculated to describe the system's and human's ability to detect cows with foot lesions. Additionally, automated mobility scores were retrieved for cows with foot lesion records up to 30 d before trimming. Linear mixed effects models (LMM) were built to assess the association of the lesion status at trimming with the daily scores. The average (mAVG), maximum (mMAX), minimum (mMIN) and the percentage of scores that a cow was identified as lame (mPLS) during the 30 d before foot trimming were calculated and their Se, Sp and Acc in detecting foot lesions were determined. Lastly, longitudinal data were obtained from 143 cows tracking daily scores from 5 to 64 DIM. The association of lesion status at the early lactation routine trim (ELRT) with the daily scores was assessed by fitting LMM. Regarding the 4-grade scale agreement between HMS and AIMS, κw (0.24-0.34) represented fair agreement, whereas AC2 (0.81-0.93) almost perfect agreement. For the 2-grade scale agreement, PA was consistently above 80%, κ (0.23-0.38) represented fair agreement, and AC1 (0.76-0.83) showed substantial to almost perfect agreement. The AIMS detected cows bearing severe lesions with Se = 0.53 and Sp = 0.74, whereas the HMS achieved Se = 0.60 and Sp = 0.78. Using optimal thresholds for mAVG, mMAX, mMIN, and mPLS, the system achieved higher Se than HMS. Moreover, cows with severe lesions had increased scores from 23 d before trimming compared with cows with mild and moderate lesions. Longitudinal data showed that cows with severe lesions at ELRT had higher mobility scores during the first 60 DIM compared with those with mild or moderate lesions. Overall, the system's performance was comparable to that of experienced human assessors in detecting lame cows and cows with foot lesions. Finally, its capability to detect mobility changes before the development of severe lesions highlights its potential for early intervention, which could enhance lameness management in dairy herds.

Authors
N Siachos, B Griffiths, J Wilson, C Bedford, A Anagnostopoulos, J Neary, R Smith, G Oikonomou