Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-06T23:48:37.480Z Has data issue: false hasContentIssue false

Vertical back movement of cows during locomotion: detecting lameness with a simple image processing technique

Published online by Cambridge University Press:  14 October 2024

Ibrahim Akin*
Affiliation:
Department of Surgery, Faculty of Veterinary Medicine, Aydin Adnan Menderes University, Isikli, Aydin, Turkey
Yilmaz Kalkan
Affiliation:
Department of Electrical and Electronics Engineering, Faculty of Engineering, Aydin Adnan Menderes University, Aydin, Turkey
Yalcin Alper Ozturan
Affiliation:
Department of Surgery, Faculty of Veterinary Medicine, Aydin Adnan Menderes University, Isikli, Aydin, Turkey
*
Corresponding author: Ibrahim Akin; Email: ibraak@adu.edu.tr
Rights & Permissions [Opens in a new window]

Abstract

This research paper proposes a simple image processing technique for automatic lameness detection in dairy cows under farm conditions. Seventy-five cows were selected from a dairy farm and visually assessed for a reference/real lameness score (RLS) as they left the milking parlor, while simultaneously being video-captured. The method employed a designated walking path and video recordings processed through image analysis to derive a new computerized automatic lameness score (ALDS) based on calculated factors from back arch posture. The proposed automatic lameness detection system was calibrated using 12 cows, and the remaining 63 were used to evaluate the diagnostic characteristics of the ALDS. The agreement and correlation between ALDS and RLS were investigated. ALDS demonstrated high diagnostic accuracy with 100% sensitivity and specificity and was found to be 100% accurate with a perfect agreement (ρc = 1) and strong correlation (r = 1, P < 0.001) for lameness detection in binary scores (lame/non-lame). Moreover, the ALDS had a strong agreement (ρc = 0.885) and was highly correlated (r = 0.840; 0.796–1.000 95% confidence interval, P < 0.001) with RLS in ordinal scores (lameness severity; LS1 to LS5). Our findings suggest that the proposed method has the potential to compete with vision-based lameness detection methods in dairy cows in farm conditions.

Information

Type
Research Article
Copyright
Copyright © The Author(s), 2024. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation
Figure 0

Figure 1. Image pre-processing steps of each obtained image. (a) original image; (b) Images were trimmed to focus on the region of interest (ROI); (c) images were converted to grayscale; (d) Median filters were applied to obtain a smoother image; (e) Images were converted to black and white image; (f) Small white areas were detected and corrected in the image.

Figure 1

Figure 2. (a): Deletion of the head (Lh) and tail parts (Lt) of cows from obtained images (Lc); (b): The extracted image of the cows' back (Lb).

Figure 2

Figure 3. Data matrix for a typical black and white image including zeros and ones.

Figure 3

Figure 4. Variations in vertical movement of the highest point on the cow's back during walking across different lameness scores (LS1–LS5); (a) rough data, (b) after normalization, LS, Lameness score, each color represents a cow with a different lameness score.

Figure 4

Table 1. The confusion matrix by five-point lameness score of reference lameness score (RLS) and new computerized automatic lameness score (ALDS) of 63 cows

Figure 5

Table 2. Test characteristics for lameness scores and binary lameness observations (lame/not lame)

Supplementary material: File

Akin et al. supplementary material

Akin et al. supplementary material
Download Akin et al. supplementary material(File)
File 367.6 KB