Abstract: Equine lameness diagnosis largely relies on subjective visual assessments, which can be biased. Although marker-based methods, force plates and inertial measurement units (IMUs) provide objective measurements, they require specialized setups. Vision-based algorithms offer a portable, markerless alternative, but their accuracy needs thorough testing. Objective: To evaluate a custom vision-based algorithm for estimating the groundline across multiple camera angles, including handheld use in horses trotting on a treadmill. Methods: Experimental comparative study. Methods: Eight Standardbred trotter mares were recorded trotting on a high-speed treadmill using seven iPhones positioned at various heights and angles, including a handheld device. A trained deep neural network algorithm placed 2D keypoints on each video frame. Vertical Displacement Signals (VDS) for the eye, withers and croup (tuber sacrale) were computed relative to either an algorithm-estimated or a fixed treadmill groundline. Maximum (Maxdiff) and minimum (Mindiff) stride values were compared using Bland-Altman analysis, scatter plots and histograms. The effect of handheld use on variability and accuracy was assessed by comparing results from a handheld camera to those from a static camera. Results: Groundline estimation closely matched the fixed reference, exhibiting near-zero mean angle error and low mean average error (MAE = 0.45°; n = 242.192). Maxdiff and Mindiff stride-level (n = 36.981) MAE were 0.5 mm, with clinically acceptable additional variability introduced by handheld use at the trial level (Maxdiff and Mindiff MAE < 1.8 mm; n = 357). Conclusions: Treadmill-based data and a single breed/coat colour may limit generalizability to other settings. Conclusions: The vision-based algorithm accurately estimates the groundline and stride VDS parameters from various camera setups, including handheld. Further validation in diverse environments and against other objective gait analysis systems is recommended.
The Equine Research Bank provides access to a large database of publicly available scientific literature. Inclusion in the Research Bank does not imply endorsement of study methods or findings by Mad Barn.
This research summary has been generated with artificial intelligence and may contain errors and omissions. Refer to the original study to confirm details provided. Submit correction.
Overview
This study assesses the accuracy of a vision-based algorithm designed to estimate the groundline in videos of trotting horses, using multiple camera angles including handheld devices, as a step towards objective and portable equine gait analysis.
Introduction and Background
Equine lameness diagnosis is traditionally performed through subjective visual assessments, which may be influenced by observer bias and variability.
Objective tools currently include marker-based motion capture systems, force plates, and inertial measurement units (IMUs), but these require specialized equipment setups that are not always portable or practical in all settings.
Vision-based algorithms present an attractive alternative because they can analyze video footage without markers, potentially offering a portable, easy-to-deploy solution for gait analysis.
However, the reliability and accuracy of vision-based methods must be established, especially across different camera positions, angles, and in less controlled environments.
Objective of the Study
To evaluate the performance of a custom-designed vision-based algorithm for estimating the groundline in video recordings of trotting horses.
To test the algorithm using multiple camera setups, including static cameras positioned at various angles and a handheld device, simulating real-world use cases.
To examine how handheld camera use affects variability and accuracy of the groundline and stride parameter estimations.
Methods
Participants: Eight Standardbred trotter mares were chosen for treadmill locomotion recording.
Experimental Setup:
Horses trotted on a high-speed treadmill.
Seven iPhones were positioned at varying heights and angles around the treadmill; one of these was handheld to assess movement impact.
Data Capture:
Video frames were analyzed by a deep neural network algorithm trained to identify and place 2D keypoints on anatomical landmarks of interest.
The keypoints were the eye, withers, and croup (tuber sacrale).
Groundline Estimation:
Two scenarios were compared: the algorithm-estimated groundline versus a fixed groundline based on treadmill reference.
Signal Analysis:
Vertical Displacement Signals (VDS)—vertical movements relative to the groundline—were computed for each keypoint across strides.
Stride-level parameters assessed included maximum (Maxdiff) and minimum (Mindiff) vertical displacement values.
Bland-Altman analysis, scatter plots, and histograms were employed to quantify agreement and differences between estimation methods.
Impact of Handheld Camera:
Variability and accuracy metrics for handheld camera data were directly compared to those from a static camera to test robustness under less controlled recording conditions.
Results
The algorithm-estimated groundline closely matched the fixed treadmill reference groundline.
Statistical accuracy included near-zero mean angle error and a low mean average error (MAE) of 0.45° over 242,192 frames analyzed.
Stride-level maximum and minimum vertical displacement differences (Maxdiff and Mindiff) showed an MAE of only 0.5 mm across 36,981 strides.
Handheld camera use introduced slightly higher variability, but relative errors remained clinically acceptable with a stride-level MAE below 1.8 mm across 357 trials.
The handheld method’s performance indicates the algorithm is robust even with camera movement and less stable positioning.
Conclusions and Implications
The vision-based algorithm reliably estimates the groundline and important stride parameters using diverse video input setups, including handheld recordings.
This result suggests potential for portable, markerless, and less resource-intensive gait analysis tools in equine practice.
Limitations include the controlled treadmill environment and that only one horse breed and coat color were tested, which may limit how broadly the findings apply.
Future research should validate the algorithm in various real-world conditions, diverse horse populations, and compare results against other objective gait measurement technologies.
Cite This Article
APA
Key K, Berg K, Kirkegaard J, Andresen KR, Hansen SS.
(2025).
Evaluating the Accuracy of a Vision-Based Algorithm for Groundline Estimation in Trotting Horses Using Multiple Camera Angles.
Vet Med Sci, 12(1), e70739.
https://doi.org/10.1002/vms3.70739
Department of Veterinary Clinical Sciences, University of Copenhagen, Copenhagen, Denmark.
MeSH Terms
Animals
Horses / physiology
Algorithms
Female
Gait
Video Recording
Biomechanical Phenomena
Conflict of Interest Statement
Authors K.K., K.B. and J.K. are affiliated with Keydiagnostics ApS, a company that provides a commercially available smartphone application ‘RealHorse’ for detecting asymmetry in horses. The computer vision algorithm developed and tested in this study is part of this product. These affiliations may represent a potential conflict of interest, which is hereby disclosed.
Cao Z, Hidalgo G, Simon T, Wei SE, Sheikh Y. OpenPose: Realtime Multi‐Person 2D Pose Estimation Using Part Affinity Fields. Preprint, arXiv.org December 18.
Hardeman AM, Van Weeren PR, Serra Bragança FM, Warmerdam H, Bok HGJ. A First Exploration of Perceived Pros and Cons of Quantitative Gait Analysis in Equine Clinical Practice. Equine Veterinary Journal 34: e438–e444.
Mathis A, Mamidanna P, Cury KM. DeepLabCut: Markerless Pose Estimation of User‐defined Body Parts With Deep Learning. Nature Neuroscience 21: 1281–1289.
Parkes RSV, Weller R, Groth AM, May S, Pfau T. Evidence of the Development of “Domain‐Restricted” Expertise in the Recognition of Asymmetric Motion Characteristics of Hindlimb Lameness in the Horse. Equine Veterinary Journal 41: 112–117.
Serra Bragança FM, Roepstorff C, Rhodin M, Pfau T, van Weeren PR, Roepstorff L. Quantitative Lameness Assessment in the Horse Based on Upper Body Movement Symmetry: The Effect of Different Filtering Techniques on the Quantification of Motion Symmetry. Biomedical Signal Processing and Control 57: 101674.
Wang Y, Li J, Zhang Y, Sinnott RO. Identifying Lameness in Horses Through Deep Learning. In: Proceedings of the 36th Annual ACM Symposium on Applied Computing , 976–985, Association for Computing Machinery.