Analyze Diet
Equine veterinary journal2026; doi: 10.1002/evj.70326

Context-aware machine learning for lameness side and severity prediction in trotting horses: A proof-of-concept study.

Abstract: In clinical practice, lameness evaluation often relies on visual assessment under different examination conditions, including ground and figures, and remains subjective. Although objective symmetry indices provide quantitative measures of gait asymmetry, their interpretation across multiple conditions remains challenging because several complementary indices are required and their thresholds vary with context. Objective: To assess the ability of a context-aware machine learning approach to predict lameness side and severity at the trot using trunk-mounted IMUs. Methods: Retrospective observational study. Methods: A neural network incorporating contextual parameters (ground, figure) via feature-wise linear modulation (FiLM) was trained on symmetry indices derived from head, withers and pelvis motion in 625 horses examined during routine clinical evaluations, after exclusion of bilateral lameness. Reference lameness grades were extracted from clinical examination reports for each recording and aggregated into four ordinal severity levels. The model generated a predicted lameness class and an associated confidence score. Results: Exact accuracy reached 46% (43%-53% across contexts) for forelimbs and 47% (45%-52%) for hindlimbs. Most errors occurred between neighbouring ordinal categories, while left-right limb inversion remained below 3%. A limited subset of high-confidence predictions showed improved accuracy. Conclusions: Reference labels were based on subjective clinical grading, without systematic confirmation by diagnostic analgesia or repeated objective measurements. Additional limitations include the single-clinic dataset, limited number of evaluators, and separate forelimb and hindlimb models. Conclusions: This proof-of-concept study shows that a context-aware approach can integrate multiple IMU-derived indices across examination conditions to predict lameness side and severity. Agreement with subjective clinical grades was moderate, and most errors occurred between adjacent severity categories, whereas left-right limb inversion was uncommon. Further validation using stronger reference standards and independent datasets is required before clinical relevance can be assessed.
Publication Date: 2026-09-13 PubMed ID: 42733278DOI: 10.1002/evj.70326Google 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 investigates using a context-aware machine learning model to predict which side and how severe a horse’s lameness is during trot, based on data from sensors attached to the horse’s body.
  • The model incorporates different examination contexts to better interpret movement asymmetry and attempts to provide more objective assessments than traditional subjective clinical evaluations.

Introduction and Background

  • Lameness in horses is typically assessed through visual examination by veterinarians during various conditions, such as on different ground surfaces or specific movement patterns (figures).
  • These visual evaluations are subjective and can vary depending on who examines the horse and under what conditions.
  • Objective measures exist, for example symmetry indices calculated from motion data, but interpreting these across multiple conditions is difficult because:
    • Multiple complementary indices are needed to capture the complexity of movement.
    • The thresholds for defining lameness vary depending on the context (e.g., type of ground, gait pattern).

Objectives

  • To assess if a context-aware machine learning method can predict both the side (left/right, forelimb/hindlimb) and the severity of lameness in trotting horses.
  • The study uses data from inertial measurement units (IMUs) mounted on the horse’s trunk to gather motion information.

Methods

  • Study Design: Retrospective observational study analyzing 625 horses who underwent routine clinical lameness evaluations.
  • Data Collection: Symmetry indices were derived from the motion of the head, withers (part of the back), and pelvis using trunk-mounted IMUs.
  • Context Incorporation: The model integrates contextual factors like ground surface and figure (the pattern of movement) using a technique called feature-wise linear modulation (FiLM), which adjusts features based on context.
  • Reference Labels: Clinical examination reports provided subjective lameness grades, aggregated into four ordinal severity levels (none to severe), excluding horses with bilateral lameness.
  • Model Output: For each data input, the model predicted lameness class (side and severity) and generated a confidence score reflecting prediction certainty.

Results

  • Accuracy:
    • Exact match accuracy for forelimb lameness was 46%, ranging from 43% to 53% depending on context.
    • For hindlimb lameness, accuracy was 47%, with a 45%-52% range across contexts.
  • Error Patterns:
    • Most classification errors involved confusion between neighboring severity categories (e.g., mild vs moderate), indicating the model struggles with fine-grained severity distinctions.
    • Misclassification of the lameness side (left vs right limb) was rare, occurring in less than 3% of cases, showing good lateralization performance.
  • Confidence Filtering:
    • Predictions with higher confidence scores had improved accuracy, suggesting confidence can be used as a filter for more reliable predictions.

Limitations

  • The reference labels used for training and evaluation were subjective clinical grades, lacking systematic confirmation by more objective methods such as diagnostic analgesia (local anesthesia to confirm pain source) or repeated measurements.
  • The dataset came from a single clinic, limiting the generalizability of the findings.
  • Evaluation was done with a limited number of veterinary assessors, which may introduce evaluator bias.
  • The model architecture separated forelimb and hindlimb analyses rather than integrating them into a single comprehensive prediction framework.

Conclusions and Future Directions

  • This proof-of-concept study demonstrates the feasibility of a context-aware machine learning approach that leverages multiple IMU-derived gait indices and contextual examination data to predict both side and severity of lameness in horses.
  • Agreement with subjective clinical grading was moderate; however, most errors were close to the true severity level rather than large misclassifications, and errors in identifying the correct lame limb were uncommon.
  • Further research should involve:
    • Using stronger reference standards like diagnostic analgesia or repeated objective gait analyses to provide more definitive labels.
    • Testing the approach on independent and larger datasets from multiple clinics to improve model robustness and applicability.
    • Exploring integrated models combining forelimb and hindlimb lameness predictions.
    • Assessing real-world clinical relevance and potential to support veterinary decision-making in lameness diagnosis.

Cite This Article

APA
Gérard M, Hanne-Poujade S, Dubois G, Hébert C, Coudry V, Jacquet S, Bertoni L, Tallaj A, Mezghani N, Chateau H. (2026). Context-aware machine learning for lameness side and severity prediction in trotting horses: A proof-of-concept study. Equine Vet J. https://doi.org/10.1002/evj.70326

Publication

ISSN: 2042-3306
NlmUniqueID: 0173320
Country: United States
Language: English

Researcher Affiliations

Gérard, Mahaut
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
  • Applied artificial intelligence Institut (I2A), TELUQ University, Québec, Canada.
  • LIM Group, Nontron, France.
Hanne-Poujade, Sandrine
  • LIM Group, Nontron, France.
Dubois, Guillaume
  • LIM Group, Nontron, France.
Hébert, Camille
  • LIM Group, Nontron, France.
Coudry, Virginie
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
Jacquet, Sandrine
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
Bertoni, Lélia
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
Tallaj, Amélie
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
Mezghani, Neila
  • Applied artificial intelligence Institut (I2A), TELUQ University, Québec, Canada.
Chateau, Henry
  • Ecole Nationale Vétérinaire d'Alfort, ACAP3, CHUV-Eq, Goustranville, France.
  • Ecole Nationale Vétérinaire d'Alfort, Maisons-Alfort, France.

Grant Funding

  • Association Nationale de la Recherche et de la Technologie
  • Région Nouvelle-Aquitaine
  • Ministère de l'Agriculture et de l'Alimentation

References

This article includes 40 references
  1. Dyson S. Lameness and poor performance in the sport horse: dressage, show jumping and horse trials.. J Equine Vet Sci 2002;22(4):145–150.
  2. Egenvall A, Tranquille CA, Lönnell AC, Bitschnau C, Oomen A, Hernlund E. Days‐lost to training and competition in relation to workload in 263 elite show‐jumping horses in four European countries.. Prev Vet Med 2013;112(3–4):387–400.
  3. Sloet van Oldruitenborgh‐Oosterbaan MM, Genzel W, Van Weeren PR. A pilot study on factors influencing the career of Dutch sport horses.. Equine Vet J 2010;42(S38):28–32.
  4. Loomans JBA, Stolk PT, Van Weeren PR, Vaarkamp H, Barneveld A. A survey of the workload and clinical skills in current equine practices in the Netherlands.. The Equine Veterinarian: Past, Present and Prospects of a Profession 2007;19(3):23–38.
  5. Keegan KG. Reliability of equine visual lameness classification.. Vet Rec 2019;184(2):60–62.
    doi: 10.1136/vr.k5366google scholar: lookup
  6. Starke SD, Oosterlinck M. Reliability of equine visual lameness classification as a function of expertise, lameness severity and rater confidence.. Vet Rec 2019;184(2):63.
    doi: 10.1136/vr.105058google scholar: lookup
  7. McCracken MJ, Kramer J, Keegan KG, Lopes M, Wilson DA, Reed SK. Comparison of an inertial sensor system of lameness quantification with subjective lameness evaluation.. Equine Vet J 2012;44(6):652–656.
  8. Meistro F, Ralletti MV, Rinnovati R, Spadari A. Agreement between subjective evaluations and a markerless AI‐based gait analysis system during lungeing assessment in traditional racehorses.. J Equine Vet Sci 2025;154:105704.
  9. Keegan KG, Wilson DA, Kramer J, Reed SK, Yonezawa Y, Maki H. Comparison of a body‐mounted inertial sensor system‐based method with subjective evaluation for detection of lameness in horses.. Am J Vet Res 2013;74(1):17–24.
    doi: 10.2460/ajvr.74.1.17google scholar: lookup
  10. Warner SM, Koch TO, Pfau T. Inertial sensors for assessment of back movement in horses during locomotion over ground.. Equine Vet J 2010;42(s38):417–424.
  11. Bosch S, Serra Bragança F, Marin‐Perianu M, Marin‐Perianu R, van der Zwaag B, Voskamp J. EquiMoves: a wireless networked inertial measurement system for objective examination of horse gait.. Sensors 2018;18:850.
    doi: 10.3390/s18030850google scholar: lookup
  12. Timmerman I, Macaire C, Hanne‐Poujade S, Bertoni L, Martin P, Marin F. A pilot study on the inter‐operator reproducibility of a wireless sensors‐based system for quantifying gait asymmetries in horses.. Sensors 2022;22(23):9533.
    doi: 10.3390/s22239533google scholar: lookup
  13. Denoix J‐M. A look at lameness through the eyes of functional anatomy (and biomechanics).. Proc Am Assoc Equine Practnrs 2021;67:106–133.
  14. van Weeren PR, Pfau T, Rhodin M, Roepstorff L, Serra Bragança F, Weishaupt MA. Do we have to redefine lameness in the era of quantitative gait analysis?. Equine Vet J 2017;49(5):567–569.
    doi: 10.1111/evj.12715google scholar: lookup
  15. Pfau T, Fiske‐Jackson A, Rhodin M. Quantitative assessment of gait parameters in horses: useful for aiding clinical decision making?. Equine Vet Educ 2016;28(4):209–215.
    doi: 10.1111/eve.12372google scholar: lookup
  16. Cruz AM, Maninchedda UE, Burger D, Wanda S, Vidondo B. Repeatability of gait pattern variables measured by use of extremity‐mounted inertial measurement units in nonlame horses during trotting. Am J Vet Res 2017;78(9):1011–1018.
    doi: 10.2460/ajvr.78.9.1011google scholar: lookup
  17. Macaire C, Hanne‐Poujade S, de Azevedo E, Denoix JM, Coudry V, Jacquet S. Investigation of thresholds for asymmetry indices to represent the visual assessment of single limb lameness by expert veterinarians on horses trotting in a straight line. Animals 2022;12(24):3498.
    doi: 10.3390/ani12243498google scholar: lookup
  18. Poizat E, Gérard M, Macaire C, de Azevedo E, Denoix JM, Coudry V. Discrimination of the lame limb in horses using a machine learning method (support vector machine) based on asymmetry indices measured by the EQUISYM system. Sensors 2025;25(4):1095.
    doi: 10.3390/s25041095google scholar: lookup
  19. Audigié F, Pourcelot P, Degueurce C, Geiger D, Denoix JM. Fourier analysis of trunk displacements: a method to identify the lame limb in trotting horses. J Biomech 2002;35(9):1173–1182.
  20. Buchner HHF, Savelberg HHCM, Schamhardt HC, Barneveld A. Head and trunk movement adaptations in horses with experimentally induced fore‐ or hindlimb lameness. Equine Vet J 1996;28(1):71–76.
  21. Greve L, Pfau T, Dyson S. Thoracolumbar movement in sound horses trotting in straight lines in hand and on the lunge and the relationship with hind limb symmetry or asymmetry. Vet J 2017;220:95–104.
  22. Gérard M, Hanne‐Poujade S, Dubois G, Chateau H, Mezghani N. End‐to‐end horse gait classification in uncontrolled environments using inertial sensors. IEEE Access 2025;13:1.
  23. Macaire C, Hanne‐Poujade S, de Azevedo E, Denoix JM, Coudry V, Jacquet S. Asymmetry thresholds reflecting the visual assessment of forelimb lameness on circles on a hard surface. Animals 2023;13(21):3319.
    doi: 10.3390/ani13213319google scholar: lookup
  24. Rhodin M, Roepstorff L, French A, Keegan KG, Pfau T, Egenvall A. Head and pelvic movement asymmetry during lungeing in horses with symmetrical movement on the straight. Equine Vet J 2016;48(3):315–320.
    doi: 10.1111/evj.12446google scholar: lookup
  25. Hardeman AM, Serra Bragança FM, Swagemakers JH, van Weeren PR, Roepstorff L. Variation in gait parameters used for objective lameness assessment in sound horses at the trot on the straight line and the lunge. Equine Vet J 2019;51(6):831–839.
    doi: 10.1111/evj.13075google scholar: lookup
  26. Starke SD, Willems E, May SA, Pfau T. Vertical head and trunk movement adaptations of sound horses trotting in a circle on a hard surface. Vet J 2012;193(1):73–80.
  27. Marunova E, Hernlund E, Persson‐Sjödin E. Effect of circle, surface type and stride duration on vertical head and pelvis movement in riding horses with pre‐existing movement asymmetries in trot. PLoS One 2024;19(8):e0308996.
  28. Haussler KK, le Jeune SS, MacKechnie‐Guire R, Latif SN, Clayton HM. The challenge of defining laterality in horses: is it laterality or just asymmetry?. Animals (Basel) 2025;15(3):288.
    doi: 10.3390/ani15030288google scholar: lookup
  29. Wang Y, Li J, Zhang Y, Sinnott RO. Identifying lameness in horses through deep learning. Proceedings of the 36th Annual ACM Symposium on Applied Computing, in SAC'21 New York, NY: Association for Computing Machinery; 2021. p. 976–985.
    doi: 10.1145/3412841.3441973google scholar: lookup
  30. Yigit T, Han F, Rankins E, Yi J, McKeever KH, Malinowski K. Wearable inertial sensor‐based limb lameness detection and pose estimation for horses. IEEE Trans Autom Sci Eng 2022;19(3):1365–1379.
    doi: 10.1109/tase.2022.3157793google scholar: lookup
  31. Yigit T, Han F, Rankins E, Yi J, McKeever K, Malinowski K. Wearable IMU‐based early limb lameness detection for horses using multi‐layer classifiers. 2020 IEEE 16th International Conference on Automation Science and Engineering (CASE) Piscataway, NJ: IEEE; 2020. p. 955–960.
  32. Pfau T, Robilliard JJ, Weller R, Jespers K, Eliashar E, Wilson AM. Assessment of mild hindlimb lameness during over ground locomotion using linear discriminant analysis of inertial sensor data. Equine Vet J 2007;39(5):407–413.
    doi: 10.2746/042516407x185719google scholar: lookup
  33. Schobesberger H, Peham C. Computerized detection of supporting forelimb lameness in the horse using an artificial neural network. Vet J 2002;163(1):77–84.
    doi: 10.1053/tvjl.2001.0608google scholar: lookup
  34. Savoini B, Bertolaccini J, Montavon S, Deriaz M. Convolutional neural network for early detection of lameness and irregularity in horses using an IMU sensor. arXiv 2025.
    doi: 10.48550/arxiv.2503.13578google scholar: lookup
  35. Perez E, Strub F, de Vries H, Dumoulin V, Courville A. FiLM: visual reasoning with a general conditioning layer. Proceedings of the AAAI Conference on Artificial Intelligence Palo Alto, CA: AAAI Press; 2018.
    doi: 10.1609/aaai.v32i1.11671google scholar: lookup
  36. Wyn‐Jones G. Equine lameness. Oxford: Blackwell Scientific Publications; 1988.
  37. Cheng J, Wang Z, Pollastri G. A neural network approach to ordinal regression. 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence) Piscataway, NJ: IEEE; 2008. p. 1279–1284.
  38. Hatamian FN, Ravikumar N, Vesal S, Kemeth FP, Struck M, Maier A. The effect of data augmentation on classification of atrial fibrillation in short single‐lead ECG signals using deep neural networks. ICASSP 2020—2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) Piscataway, NJ: IEEE; 2020. p. 1264–1268.
  39. McPeek JL, Menarim B, Sponseller B, McClendon M, Adam EN, Adams AA. Agreement between veterinarians and three objective evaluation systems in naturally occurring equine lameness. Equine Vet J 2025;58(5):1518–1525.
    doi: 10.1111/evj.70116google scholar: lookup
  40. Scheidegger MD, Gerber V, Dolf G, Burger D, Flammer SA, Ramseyer A. Quantitative gait analysis before and after a cross‐country test in a population of elite eventing horses. J Equine Vet Sci 2022;117:104077.

Citations

This article has been cited 0 times.