Analyze Diet
Veterinary medicine and science2025; 12(1); e70739; doi: 10.1002/vms3.70739

Evaluating the Accuracy of a Vision-Based Algorithm for Groundline Estimation in Trotting Horses Using Multiple Camera Angles.

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.
Publication Date: 2025-12-30 PubMed ID: 41467589PubMed Central: PMC12750506DOI: 10.1002/vms3.70739Google Scholar: Lookup
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.
  • Journal Article

Summary

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

Publication

ISSN: 2053-1095
NlmUniqueID: 101678837
Country: England
Language: English
Volume: 12
Issue: 1
Pages: e70739
PII: e70739

Researcher Affiliations

Key, Karsten
  • KeyDiagnostics, Fredensborg, Denmark.
Berg, Katja
  • KeyDiagnostics, Fredensborg, Denmark.
Kirkegaard, Jakob
  • KeyDiagnostics, Fredensborg, Denmark.
Andresen, Kristian Ringkjær
  • iKeyVet, Fredensborg, Denmark.
Hansen, Sabrina Skov
  • 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.

References

This article includes 29 references
  1. Arkell M, Archer RM, Guitian FJ, May SA. Evidence of Bias Affecting the Interpretation of the Results of Local Anaesthetic Nerve Blocks When Assessing Lameness in Horses. Veterinary Record 159: 346–349.
    pubmed: 16963714
  2. Bosch S, Serra Bragança F, Marin‐Perianu M. EquiMoves: A Wireless Networked Inertial Measurement System for Objective Examination of Horse Gait. Sensors 18: 850.
    pmc: PMC5877382pubmed: 29534022
  3. Buchner HH, Savelberg HH, Schamhardt HC, Barneveld A. Head and Trunk Movement Adaptations in Horses With Experimentally Induced Fore‐ or Hindlimb Lameness. Equine Veterinary Journal 28: 71–76.
    pubmed: 8565958
  4. 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.
    doi: 10.48550/arXiv.1812.08008pubmed: 31331883google scholar: lookup
  5. Fuller CJ, Bladon BM, Driver AJ, Barr ARS. The Intra‐ and Inter‐Assessor Reliability of Measurement of Functional Outcome by Lameness Scoring in Horses. Veterinary Journal 171: 281–286.
    pubmed: 16490710
  6. Graving JM, Chae D, Naik H. DeepPoseKit, a Software Toolkit for Fast and Robust Animal Pose Estimation Using Deep Learning. Elife 8: e47994.
    pmc: PMC6897514pubmed: 31570119
  7. Hammarberg M, Egenvall A, Pfau T, Rhodin M. Rater Agreement of Visual Lameness Assessment in Horses During Lungeing. Equine Veterinary Journal 48: 78–82.
    pmc: PMC4964936pubmed: 25399722
  8. Hardeman AM, Egenvall A, Serra Bragança FM. Visual Lameness Assessment in Comparison to Quantitative Gait Analysis Data in Horses. Equine Veterinary Journal 54: 1076–1085.
    pmc: PMC9786350pubmed: 34913524
  9. 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.
  10. Hewetson M, Christley RM, Hunt ID, Voute LC. Investigations of the Reliability of Observational Gait Analysis for the Assessment of Lameness in Horses. Veterinary Record 158: 852–857.
    pubmed: 16798953
  11. Kallerud AS, Marques‐Smith P, Bendiksen HK, Fjordbakk CT. Objective Movement Asymmetry in Horses Is Comparable Between Markerless Technology and Sensor‐Based Systems. Equine Veterinary Journal 57: 115–125.
    pmc: PMC11616950pubmed: 38566453
  12. Keegan KG. Evidence‐Based Lameness Detection and Quantification. Veterinary Clinics of North America Equine Practice 23: 403–423.
    pubmed: 17616320
  13. Keegan KG, Dent EV, Wilson DA. Repeatability of Subjective Evaluation of Lameness in Horses. Equine Veterinary Journal 42: 92–97.
    pubmed: 20156242
  14. Keegan KG, Kramer J, Yonezawa Y. Assessment of Repeatability of a Wireless, Inertial Sensor‐Based Lameness Evaluation System for Horses. American Journal of Veterinary Research 72: 1156–1163.
    pubmed: 21879972
  15. Keegan KG, Yonezawa Y, Pai PF, Wilson DA, Kramer J. Evaluation of a Sensor‐Based System of Motion Analysis for Detection and Quantification of Forelimb and Hind Limb Lameness in Horses. American Journal of Veterinary Research 65: 665–670.
    pubmed: 15141889
  16. Lawin FJ, Byström A, Roepstorff C. Is Markerless More or Less? Comparing a Smartphone Computer Vision Method for Equine Lameness Assessment to Multi‐Camera Motion Capture. Animals 13: 390.
    pmc: PMC9913208pubmed: 36766279
  17. Mathis A, Mamidanna P, Cury KM. DeepLabCut: Markerless Pose Estimation of User‐defined Body Parts With Deep Learning. Nature Neuroscience 21: 1281–1289.
    pubmed: 30127430
  18. Moorman VJ, Frisbie DD, Kawcak CE, McIlwraith CW. Effects of Sensor Position on Kinematic Data Obtained With an Inertial Sensor System During Gait Analysis of Trotting Horses. Accessed July 28, 2025.
    pubmed: 28207317
  19. 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.
    pubmed: 19418737
  20. Pereira TD, Aldarondo DE, Willmore L. Fast Animal Pose Estimation Using Deep Neural Networks. Nature Methods 16: 117–125.
    pmc: PMC6899221pubmed: 30573820
  21. Pfau T, Witte TH, Wilson AM. A Method for Deriving Displacement Data During Cyclical Movement Using an Inertial Sensor. Journal of Experimental Biology 208: 2503–2514.
    pubmed: 15961737
  22. Rhodin M, Smit IH, Persson‐Sjodin E. Timing of Vertical Head, Withers and Pelvis Movements Relative to the Footfalls in Different Equine Gaits and Breeds. Animals 12: 3053.
    pmc: PMC9657284pubmed: 36359178
  23. Roepstorff C, Dittmann MT, Arpagaus S. Reliable and Clinically Applicable Gait Event Classification Using Upper Body Motion in Walking and Trotting Horses. Journal of Biomechanics 114: 110146.
    pubmed: 33290946
  24. Serra Bragança FM, Rhodin M, van Weeren PR. On the Brink of Daily Clinical Application of Objective Gait Analysis: What Evidence Do We Have so Far From Studies Using an Induced Lameness Model?. Veterinary Journal 234: 11–23.
    pubmed: 29680381
  25. Serra Bragança FM, Rhodin M, Wiestner T. Quantification of the Effect of Instrumentation Error in Objective Gait Assessment in the Horse on Hindlimb Symmetry Parameters. Equine Veterinary Journal 50: 370–376.
    pmc: PMC5900976pubmed: 29032614
  26. 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.
  27. Starke SD, Clayton HM. A Universal Approach to Determine Footfall Timings From Kinematics of a Single Foot Marker in Hoofed Animals. PeerJ 3: e783.
    pmc: PMC4493675pubmed: 26157641
  28. 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.
  29. Weishaupt MA, Wiestner T, Hogg HP, Jordan P, Auer JA. Compensatory Load Redistribution of Horses With Induced Weightbearing Hindlimb Lameness Trotting on a Treadmill. Equine Veterinary Journal 36: 727–733.
    pubmed: 15656505

Citations

This article has been cited 0 times.