Simple Summary
Hoof slipping in dairy cows can signal hoof disease or dangerous floor conditions, but it is extremely difficult to detect automatically because it is very brief and closely resembles normal walking. This study developed a system that uses video recordings to automatically detect and measure hoof slipping. The system analyzes each video frame to locate the hooves, tracks their movement, and determines whether slipping has occurred. The system achieved an overall accuracy of 98.9% and successfully identified 90.3% of all actual slipping events. Initial testing on a second farm showed promising performance across different environments. This technology could help farmers detect hoof-health problems earlier and improve animal welfare on dairy farms.
Abstract
Hoof slipping in dairy cows is a subtle, transient hoof motion event distinct from lameness or falling, with short duration, limited displacement, and close resemblance to normal gait, making automated detection particularly challenging; relevant methods remain scarce. This study proposes a cascaded detection framework based on improved DeepLabCut and NeuFlow v2 for automated hoof-slipping detection and distance estimation in Holstein dairy cows. The four-stage framework covers hoof key point localization, pixel-level optical flow fusion, motion parameter curve feature extraction, and Random Forest classification. The framework was developed on Dataset 1, which contained 115 single-cow side-view videos. Of these, 31 contained slipping events and 84 were normal walking. It was further assessed on a smaller second-farm dataset of 17 single-cow videos (Dataset 2). ResNet-50 with a Coordinate Attention mechanism was adopted as the backbone, reducing mean four-hoof localization RMSE to 2.80 pixels across five independent training runs, showing a 15.2% improvement over the baseline, and outperforming YOLOv8s-Pose. NeuFlow v2 was applied to extract the localized optical flow from hoof regions, yielding velocity and directional curves from which slipping features were derived. The Random Forest classifier achieved an accuracy of 98.9%, precision of 93.3%, recall of 90.3%, F1 score of 91.8%, and AUC of 0.995, outperforming MViT, SlowFast, and STME. The slipping distance estimation RMSE was 1.22 pixels. With the localisation model retrained on new farm frames, the method reached comparable performance on the second farm, suggesting preliminary cross-farm generalisability that warrants larger-scale validation. The proposed framework provides a non-invasive basis for early hoof-health monitoring and welfare-oriented farm management.