Abstract
Vertical ground reaction force (GRFz) measurements are the best tool for assessing horses' weight-bearing lameness. However, collection of these data is often impractical for clinical use. This study evaluates GRFz predicted using data from body-mounted IMUs and long short-term memory recurrent neural networks (LSTM-RNN). Twenty-four clinically sound horses, equipped with IMUs on the upper-body (UB) and each limb, walked and trotted on a GRFz measuring treadmill (TiF). Both systems were time-synchronised. Data from randomly selected 16, 4, and 4 horses formed training, validation, and test datasets, respectively. LSTM-RNN with different input sets (All, Limbs, UB, Sacrum, or Withers) were trained to predict GRFz curves or peak-GRFz. Our models could predict GRFz shapes at both gaits with RMSE below 0.40 N.kg−1. The best peak-GRFz values were obtained when extracted from the predicted curves by the all dataset. For both GRFz curves and peak-GRFz values, predictions made with the All or UB datasets were systematically better than with the Limbs dataset, showing the importance of including upper-body kinematic information for kinetic parameters predictions. More data should be gathered to confirm the usability of LSTM-RNN for GRFz predictions, as they highly depend on factors like speed, gait, and the presence of weight-bearing lameness.
Introduction
Lameness in horses can be defined as an alteration of the normal gait due to a functional or structural disorder of the locomotor system and is often attributed to orthopaedic pain1. Therefore, quantitative gait analysis in horses is an essential process both in a clinical and research setting, as it is used as a tool in lameness diagnostic workup2. Kinetic analysis of the vertical ground reaction force (GRFz) is considered the 'gold standard' for quantifying weight-bearing lameness in horses3. Changes in GRFz curve shape and in peak GRFz (pGRFz) difference between limb pairs (loading asymmetry) can be used as an indicator of weight-bearing lameness in horses4,5,6,7,8 and other quadrupedal mammals9,10,11,12.
Equine GRFz is traditionally obtained with stationary force and pressure-plate systems13,14,15, or an instrumented treadmill (TiF, University of Zurich)16. These kinetic methods are well established and validated but remain sparsely used in the clinical setting, as they are cumbersome due to laborious data collection and processing requirements, especially the force and pressure-plate systems. TiF allows data collection of consecutive strides of all limbs simultaneously, but it requires acclimatisation and training to treadmill locomotion. Currently there is only one such instrument available worldwide, and it only records the vertical component of the GRF. Moreover, neither system can be used to retrieve data on different types of ground typically used for training or competitions. In an attempt to overcome these limitations, instrumented horseshoes have been developed by several research groups, which allow for more versatile measurements of GRFz. For example, they were used to collect three-dimensional (3D) GRF of trotters training on the sand beach17 or during jumping exercise18. The instrumented horseshoes overcome most of the stationary force plate and TiF systems' constraints, but they remain impractical, expensive, bulky and heavy, thus influencing the lower limb kinematics19,20,21 and being restricted to research settings only.
Several kinematic measurement methods such as optical motion capture (OMC), accelerometry or inertial measurement unit (IMU) technologies have gained popularity. They have proven to be practical, affordable and user-friendly methods for quantifying locomotion in horses2,22 both in research and clinical settings. Kinematic methods mainly focus on quantifying movement adaptations when horses experience pain. Most methods rely on quantifying movement asymmetry as an outcome variable for the degree of lameness. These asymmetries are caused by adaptation strategies to reduce the loading of the lame limb(s)5,7. Therefore, kinematics are only an indirect quantifier of weight-bearing lameness, while the measurement of the GRFz remains the gold standard, as it precisely measures the loading of each limb.
Given this situation, there is a clear need for indirect measurements and estimations of equine GRFz and pGRFz difference values that are more suitable for data collection outside the laboratory environment, such as the clinical setting. Witte et al.23 used hoof-mounted accelerometers to calculate the ratio between the stance and stride durations, called duty-factor (DF), and estimate individual limbs pGRFz at walk, trot and canter, based on an equation proposed by Alexander et al.24. Their method slightly overestimated pGRFz at the walk with a mean error of 0.8 N.kg−1, corresponding to 13% of pGRFz. In addition, they did not specify which peak (first or second) they extracted from the GRFz curves. They obtained good results at trot, with a mean error of − 0.3 N.kg−1 corresponding to 3% of pGRFz. Disadvantages of their method are that it is limited to the pGRFz estimation and relies on hoof-mounted accelerometers, which require highly resistant equipment due to the high impacts experienced on the distal limb during locomotion. Bobbert et al.25 developed a biomechanical model based on whole-body OMC kinematic data to predict the GRFz curves of individual limbs from horses walking and trotting on the instrumented treadmill. Their method was able to estimate the expected GRFz curve shape at trot. However, the GRFz curve shape was not well reproduced at walk, especially for the hindlimbs. More recently, Roepstorff et al.26 modelled front and hindlimb pGRFz differences using head, withers and sacrum kinematic variables derived from OMC data. They showed that accelerometry-based models resulted in a better fit and that asymmetry timing was related to pGRFz differences.
There are many studies on human subjects using machine learning to predict kinetic parameters27. For example, Alcantara et al.28 predicted continuous GRFz from accelerometers data in running tasks, using long-short term memory recurrent neural network (LSTM-RNN)29. However, equine locomotion differs from human locomotion because it involves single limb, bipedal or tripedal support phases at walk and single limb or bipedal support phases at trot, meaning that the loads are distributed over one, two, or three limbs for each moment of the gait. Unipedal support phases can be found only for a short duration at trot30, or at canter and gallop31,32 and in some additional gaits in a number of specific horse breeds, like the tölt in the Icelandic horse33,34,35. This characteristic highly increases the limb loading patterns possibilities, and the individual possible compensation patterns make the prediction of GRFz from kinematics a highly complex problem.
While machine learning and deep learning techniques have been applied to other equine applications such as gait36 and activity recognition37, only one study showed that equine ground reaction forces could be predicted. Savelberg et al.38 successfully trained an artificial neural network (ANN) to predict 3D GRF profiles based on hoof wall 3D displacements measured with strain gauges. While innovative, this method remained impractical as it required precise gluing of the strain gauges and a force plate as a reference method and was applied to one horse only. More recently, Mouloodi et al.39 successfully predicted mechanical hoof strains from a hoof-mounted IMU in a galloping racehorse, using a horseshoe instrumented with a strain gauge as reference data and feedforward time-series (dynamic) artificial neural networks. Their work showed promising results with R-values exceeding 0.98 with their best models, although applied to a single horse. Deep learning models have also been used to detect and quantify lameness, with different kinematic input types (e.g., upper-body and limbs displacements) and sensor types (video or IMU), applied to existing unilateral lameness40,41 or induced gait abnormalities42. These works show the potential application of deep learning models to detect and understand equine locomotion.
This study aims to evaluate the ability of LSTM-RNN to:
-
1.
Accurately predict continuous equine GRFz based on whole-body IMU signals and LSTM-RNN during treadmill locomotion;
-
2.
Accurately predict the discrete GRFz parameters (i.e., pGRFz and time-to-pGRFz) with LSTM-RNN and compare them to extracted parameters from the LSTM-RNN predicted continuous GRFz;
-
3.
Evaluate left–right pGRFz symmetry indices (SI) for both front (SI-Front) and hind (SI-Hind) limb pairs, calculated for both the extracted and predicted pGRFz;
-
4.
Investigate for all the above parameters the optimal IMU nodes set required to achieve the best predictions.
We hypothesised that accurate GRFz curve shapes could be obtained for both bipedal and tripedal support with LSTM-RNN, with better results obtained when all nodes are used for training the models.
Results
Continuous GRFz
Upon visual assessment of the models' output, all IMU nodes combinations were able to predict the characteristic GRFz curve shapes, namely the double-peak at walk, with a higher second peak for the front limbs and a higher first peak for the hind limbs and the single peak at trot (Figs. 1, 2). The footfall patterns were also correctly predicted, LH-LF-RH-RF at walk and (LH-RF)-(RH-LF) at trot. These findings are also supported by the extracted time-to-pGRFz (t-pGRFz), as shown in the Supplementary Materials (Supplementary Figs. S5 and S6). For both gaits, but especially at walk, the predicted GRFz were not null during the swing phase (Fig. 1c).
Example of GRFz curves predicted by the different nodes sets for the walk data, at 1.70 m/s. (a) GRFz for all limbs. The average strides are displayed as a bold line and standard deviations are shown by thin lines and shaded areas. The reference curves are shown in red (Ref: TiF reference), the curves predicted by models trained with all nodes (All: head, withers, sacrum and limb nodes) in orange, with upper-body nodes (UB: head, withers and sacrum nodes) in yellow, with limb nodes (Limbs: limb nodes) in purple, with the sacrum node (Sac: sacrum node) in green and with the withers node (Wth: withers node) in light blue. LF left front, RF right front, LH left hind, RH right hind. (b) Detailed comparison of the predictions during the stance phase of the LF limb. (c) Detailed comparison of the predictions during the swing phase of the LF limb.
Example of GRFz curves predicted by the nodes sets for the trot data, at 4.50 m/s. (a) GRFz for all limbs. The average strides are displayed as a bold line and standard deviations are shown by thin lines and shaded areas. The reference curves are shown in red (Ref: TiF reference), the curves predicted by models trained with all nodes (All: head, withers, sacrum and limb nodes) in orange, with upper-body nodes (UB: head, withers and sacrum nodes) in yellow, with limb nodes (Limbs: limb nodes) in purple, with the sacrum node (Sac: sacrum node) in green and with the withers node (Wth: withers node) in light blue. LF left front, RF right front, LH left hind, RH right hind. (b) Detailed comparison of the predictions during the stance phase of the LF limb. (c) Detailed comparison of the predictions during the swing phase of the LF limb.
Discrete pGRFz
For the walk dataset, the extracted and predicted pGRFz have achieved good results (biases close to 0), showing higher accuracies, regardless of the limb and the nodes set used (Figs. 3, 4). The predicted pGRFz presents a points cloud following a line with a negative trend (Fig. 4a:d). This shows the low ability of this method to correctly predict the pGRFz at walk, regardless of the input, as shown in the correlation graphs in the Supplementary Materials, Fig. S2. pGRFz extracted from the predicted GRFz curves (Fig. 3) show better Bland–Altman patterns and thus better prediction results, which is also supported by the correlation graphs in the Supplementary Materials (Supplementary Fig. S1).
Bland–Altman plots of pGRFz extracted from the GRFz curves predicted by the different nodes sets at walk (Pred) against the reference values extracted from the TiF data (Ref): (a) All (head, withers, sacrum, and limb nodes); (b) Limbs (limb nodes); (c) Upper-body (head, withers and sacrum nodes); (d) Sacrum (sacrum node); (e) Withers (withers node). LF left front, RF right front, LH left hind, RH right hind.
Bland–Altman plots of the predicted pGRFz by the different nodes sets at walk (Pred) against the reference values extracted from the TiF data (Ref): (a) All (head, withers, sacrum, and limb nodes); (b) Limbs (limb nodes); (c) Upper-body (head, withers and sacrum nodes); (d) Sacrum (sacrum node); (e) Withers (withers node). LF left front, RF right front, LH left hind, RH right hind.
For the trot dataset, the biases were also low for all extracted and predicted pGRFz and, regardless of the nodes set used (Figs. 5, 6, Supplementary Table 1). Limits of agreements were wider for the predicted pGRFz than the extracted pGRFz (Supplementary Table 1).
Bland–Altman plots of pGRFz extracted from the GRFz curves predicted by the different nodes sets at trot (Pred) against the reference values extracted from the TiF data (Ref): (a) All (head, withers, sacrum, and limb nodes); (b) Limbs (limb nodes); (c) Upper-body (head, withers and sacrum nodes); (d) Sacrum (sacrum node); (e) Withers (withers node). LF left front, RF right front, LH left hind, RH right hind.
Bland–Altman plots of the predicted pGRFz by different nodes sets at trot (Pred) against the reference values extracted from the TiF data (Ref): (a) All (head, withers, sacrum, and limbs nodes); (b) Limbs (limb nodes); (c) Upper-body (head, withers and sacrum nodes); (d) Sacrum (sacrum node); (e) Withers (withers node). LF left front, RF right front, LH left hind, RH right hind.
pGRFz symmetry indices
For the walk dataset, symmetry indices (SI) were better estimated when calculated with the extracted pGRFz (Supplementary Material, Fig. S7), shown by lower biases and narrower upper- and lower-bounds, whereas the SI estimated with the predicted pGRFz also displayed the same negative trend (Supplementary Material, Fig. S8) seen in the pGRFz predictions (Fig. 4). Extracted SI-Front and -Hind have relatively low biases but wide upper- and lower-bounds (Supplementary Table 2).
At trot, the best SI-Front and -Hind were obtained when calculated from the GRFz curves predicted with the All nodes set (Supplementary Material, Fig. S9a), and presented an overall better correlation with the reference SI (Supplementary Material, Fig. S13). The limits of agreement are also better but rather large (Supplementary Table 2). The SI based on pGRFz predictions also presented a negative trend (Supplementary Material, Fig. S10).
Nodes sets comparison
GRFz curves
Overall, the best predictions were obtained with the All nodes set for both gaits and limb pairs, with median RMSE values under 0.40 and median rho correlation coefficients above 0.99. For both gaits, the predictions were better when using the UB set than the Limbs set. When using only one node at trot, front limb predictions were better with the Withers (Wth) set, whereas the hind limb predictions were better with the Sacrum (Sac) set. At walk, hind limb GRFz predictions were better when using the Sac set whereas the Wth set did not perform better than the Limbs set for the front limb GRFz (Fig. 7).
Boxplots of the RMSE (left column) and Rho correlation coefficients (right column) calculated for the GRFz curves predictions at walk (upper row) and trot (lower row), predicted by models trained with all nodes (All: head, withers, sacum and limb nodes) in dark blue, with upper-body nodes (UB: head, withers and sacrum nodes) in yellow, with limb nodes (Limbs: limb nodes) in purple, with the sacrum node (Sac: sacrum node) in green, and with the withers node (Wth: withers node) in light blue.
pGRFz values
Overall, the best extracted pGRFz results (smallest biases and smallest limits of agreement ranges) were obtained with the UB and All nodes sets, for both gaits and both limb pairs. At walk, the worst results were obtained with the Wth and the Limbs nodes sets (Supplementary Table 1), while at trot the Limbs nodes set presented the widest limits of agreement ([3.79, 2.60] N.kg−1 for the front and hind limbs, respectively).
At walk, the pGRFz values had smaller limits of agreement when using the All and Sac nodes set for the front limbs and the UB or Sac nodes sets for the hind limbs (Supplementary Table 1). The biases were smaller for the hind limbs than for the front limbs with all the nodes sets used. At trot, the smallest bias and narrowest limits of agreement for the front limbs were obtained with the UB nodes set (− 0.01 [− 1.45; 1.43] N.kg−1) where the Limbs nodes set had the widest limits of agreement (4.37 N.kg−1). The Sac node set presented the best pGRFz predictions for the hind limbs, with a range of agreement of 2.33 N.kg−1, whereas the Limbs set had a range of 2.59 N.kg−1.
Discussion
In this study, we demonstrated that we could accurately (low RMSE and high rho coefficient values) predict continuous GRFz from raw IMU data using a machine learning approach in horses at walk and trot. Furthermore, our proposed models can be used to overcome some of the limitations (portability, useability) of using force-plates to measure GRFz, and we were able to improve the accuracy of these predictions based on some of the previously published methods.
Continuous GRFz
Our first goal was to obtain GRFz curves based on the IMU signals. All LSTM-RNN models were able to predict the correct GRFz curve shapes at both walk and trot, regardless of the nodes set used. To the best of our knowledge, this is the first time that equine GRFz curves and associated parameters are predicted using RNNs. Savelberg et al. predicted continuous GRFz based on hoof wall deformation using an ANN at walk and trot. Their dataset was constructed for one subject only and showed promising results for the walk GRFz estimations (cross-correlation coefficient: 0.98), but poorer results were obtained for the trot GRFz estimations (cross-correlation coefficient: 0.60). Our results showed promising GRFz predictions in sound horses with rho correlation coefficients above 0.90 for all gaits and limbs, and median RMSE below 0.5 N.kg−1 when the all dataset was used.
Similar works in the human literature showed RMSE of 0.27 N.kg−1 when training and testing for single subject43. When training for multiple subjects, their methods showed an increase in RMSE and a decrease in rho correlation coefficients, indicating poorer results. Our LSTM-RNN were mainly able to predict the recognisable GRFz shape at walk, which in most strides, both front and hind limbs comprise two peaks and one dip14,44,45. Kinematic studies showed that the dip occurs during tripedal support at walk while the peaks occur during bipedal support46,47. Weishaupt et al.48 showed that the presence of the dip is also dependent on the walking speed, and it tends to disappear with lower speeds. We tried to incorporate this speed dependency by adding data measured at different speeds in our training and testing datasets for both gaits. Examples of predicted GRFz at different speeds are shown in Supplementary Materials, Figs. S15 and S16.
Discrete pGRFz and SI
Our second goal was to evaluate the direct prediction of peak GRFz values by LSTM-RNN compared to extracting these values indirectly from the continuous predicted GRFz signals. Front limb lameness induction models have shown that for walk, pGRFz values decrease for the lame limb and increase both in the contralateral limb and in the diagonal hindlimb49,50. At trot, pGRFz decreased in the lame front or hind limb without significantly overloading the contralateral limb5,7. In moderate forelimb lameness, studies have shown a redistribution of the weight towards the rear with an increase loading of the diagonal hindlimb5,6. pGRFz are thus an essential parameter to obtain from kinetic analysis, especially in the case of lameness quantification.
At walk, the best pGRFz prediction method was to extract the pGRFz from the LSTM-RNN predicted curves. The Bland–Altman analysis showed that the directly predicted pGRFz did not have good accuracy and tended to provide values within a limited range. For the pGRFz predicted by the LSTM-RNN, it is possible that the used stride split method confused the network, preventing it from identifying the correct peak among the two-peak bells and the different available stance phases. This hypothesis is supported by the fact that better results were obtained when the pGRFz were extracted from the predicted GRFz curves. Since walk contains bipedal and tripedal support phases, it is more difficult for the network to understand which limb contributes to the pGRFz. Training for each limb individually instead of training for the four limbs could positively impact our method's performance. Further experiments are needed to test these hypotheses.
At trot, all prediction methods showed better accuracies than at walk. The pGRFz extracted from the predicted curves had more promising results than the pGRFz predicted by LSTM-RNN, with lower biases and ranges. This might show the better potential of LSTM-RNN to predict continuous variables rather than discrete output variables.
Because of the potential application of our method for lameness evaluation, we calculated the pGRFz SI indices for both pairs of limbs and evaluated them against the reference TiF data. The SI based on the LSTM-RNN predicted pGRFz had a low agreement with the ones calculated with the TiF data, for both gaits. The SI calculated with the pGRFz extracted from the LSTM-RNN predicted GRFz showed more promising results, especially at the trot for the all nodes set.
Since our dataset included only sound horses for which our method seemed to overestimate SI, our models have had no comparisons between sound and lame horses (hence low and high SI values) to learn from. We thus speculate that training LSTM-RNN to recognise and estimate asymmetries in horses with weight-bearing lameness could improve the accuracy of SI values predictions. However, our models would not be directly applicable to lameness quantification in their current state.
Nodes sets comparison
The final aim of this study was to define which nodes were crucial for the prediction of the GRFz curves and parameters. Our results showed that regardless of the predicted modality, the best results were always obtained when the upper-body nodes were used, either with the All nodes set or just the UB one. Based on the DF method hypotheses from Witte et al.23, we expected that the Limbs nodes set would have predicted the pGRFz accurately, but accuracies obtained with nodes sets including one upper-body nodes only (i.e., Sac or Wth) were better. This correlates with the results from Bobbert et al.25, who calculated individual limbs GRFz based on whole-body kinematics and the acceleration of the centre of mass (COM). Hobbs and Clayton51 reported that GRFz controls the vertical movement of the COM, for which the upper-body accelerations and rotation rates used in our study could be an approximation. Roepstorff et al.26 showed that upper-body acceleration asymmetry variables could be used to model differences in pGRFz, and that timing of these asymmetries is also important. Therefore, we can hypothesise that if the kinematics of the upper-body are known, the LSTM-RNN can trace their causality back to kinetic parameters and, in the future, model pGRFz differences that can be used for (early) weight-bearing lameness detection.
Limitations
Our study is mainly limited by the low biological variability between the horses used. All were from the Franches–Montagnes breed, with similar height and weight, which influences the GRFz ranges of values and motion patterns. Moreover, the signals were measured during treadmill locomotion, which slightly differs from overground locomotion. Especially, Buchner et al.52 have shown that treadmill locomotion increased the relative stance duration and decreased the relative swing phase duration, influencing the load redistribution pattern. Thus, our models and results cannot be directly transferred to other breeds or to overground and ridden locomotion yet. Furthermore, the models were developed with healthy and sound horse data. Weight-bearing lameness will invariably change the motion patterns and thus load distribution over the limbs3,5,6,7. Nevertheless, the models should be extendable to the other cited conditions provided that proper data collection is conducted. Lastly, our work focused on GRFz only due to the limitations of the reference system used, the TiF. Other techniques, such as the instrumented force shoes, would enable the concurrent collection of vertical, anteroposterior and mediolateral GRF.
Conclusion
Our results hence show that it is possible for machine learning to put kinematics and kinetics in relation to each other. This will be more than an essential asset for equine orthopaedics to understand the complexity of the biomechanical movement chains in horses. As alluded to earlier, kinetics are seen as the gold standard for the definition of weight-bearing lameness, which is by far the most common type of lameness seen in horses2. The problem for practical equine gait analysis and lameness detection is that no easily clinically applicable tools exist that can measure kinetics; the existing tools (force plate, instrumented force shoes, instrumented treadmill) are either too cumbersome, rarely available (force plates, instrumented force shoes, instrumented treadmill), or interfering themselves with the locomotion (instrumented force shoes, treadmill). The approach developed in this study allows for the accurate estimation of kinetics from upper-body and/or limb kinematics, which both can be measured with widely available tools that are already at a sharply increasing rate used in everyday clinical practice. Our results even show that models trained with nodes mounted on the upper-body (head, withers and sacrum) achieve higher accuracies predicting GRFz when compared to models using limb nodes. This finding supports using kinematic methods in a clinical setting using upper-body mounted nodes as these can reflect weight-bearing asymmetries in a more practical and daily usable solution when compared to kinetic methods and show the relative smaller contribution of limb kinematics to GRFz. This gives the method, therefore, the potential to significantly improve the quality and relevance of the outcome of quantitative (equine) gait analysis, making it a more than a valuable asset in equine orthopaedics, which is one of the most important disciplines in equine healthcare.
In conclusion, with our models, we could obtain GRFz curves based on IMU data, which offers new possibilities for locomotion analysis and, more specifically, lameness exams. Changes in GRFz data patterns are an essential indicator of weight-bearing lameness, and comparing changes in continuous GRFz curves to changes in discrete pGRFz and t-pGRFz would also be an interesting future study, as continuous data analysis provides more global information53. We also showed with our nodes set comparisons that there is an interconnection between kinetics and kinematics. Our results suggest that upper-body movements have a greater influence than limb movements on the GRFz, which needs to be considered during equine locomotion analyses. Even though force plates and instrumented treadmills remain the most accurate GRFz measurement tools, they are restricted to the laboratory environment and have their own technical limitations2. Our models enable accessing kinetic data in a more user-friendly manner, using field-applicable systems which will be a great asset for equine orthopaedics.
Methods
Subjects and ethics statement
Twenty-four Franches–Montagnes stallions (age 9 ± 4 years, body mass 526 ± 32 kg, height 156 ± 3 cm) that were clinically sound were used for this study. The Animal Health and Welfare Commission of the canton of Vaud (Switzerland) approved the experimental protocol prior to data collection (permission number VD3164), in accordance with the approved guidelines and protocols. Informed consent was obtained from the owner of the animals, and no human participants were included in this study.
Materials
The experiment included three measurement systems: inertial measurement units containing 3D low-g and high-g accelerometers as well as a 3D gyroscope (ProMove-mini, Inertia Technology B.V., The Netherlands), high-speed instrumented (TiF, University of Zurich, Switzerland) treadmill (Mustang 2200, Ansorix Systems AG, Switzerland) and infrared optical motion capture (OMC) cameras system (Oqus 7+, Qualisys AB, Sweden) with skin mounted spherical reflective markers.
The IMU sampling rate was set at 200 Hz. The upper-body nodes (head, withers, sacrum) were configured with a range of ± 8 g and ± 100 g for the low-g and high-g 3D accelerometers, respectively. The limb accelerometers were configured with a range of ± 16 g and ± 200 g. The 3D gyroscope was configured with a range of ± 2000 dps for all nodes. The OMC system recorded at 200 Hz. The TiF allowed for tracing of the GRFz of individual limbs and was sampled at 512 Hz16.
Experimental protocol and data acquisition
The horses were habituated to the treadmill at the walk and trot, with eight to fourteen training sessions over a time span of six weeks prior to the measurements. Each subject was equipped with seven IMU nodes attached to the head, withers, sacrum, and lower limbs, as shown in Supplementary Materials, Fig. S13. The head node was fixed to a custom-made pouch sown on the bridle, the withers node was mounted on a girth, and the sacrum node was attached with double-sided tape over the tuber sacrale. The limb nodes were fixed by custom-made holsters to the lateral aspect of the metacarpus/metatarsus bones (Fig. 8).
Before and after the measurements, the horses stood still for IMU calibration, which is further described below. The horses were measured at two speeds at walk (1.7 m/s, 1.8 m/s) and four speeds at trot (3.3 m/s, 4.0 m/s, 4.5 m/s, 5.0 m/s), in incremental order. Data collection started once the horse's gait was stabilised and lasted for 20 s, ensuring the recording of at least fifteen consecutive strides.
Data preparation
Data processing and analysis, and models training were performed in MATLAB 2021a (MathWorks, Natick, Massachusetts, USA).
IMU signal processing
Raw IMU data was downloaded from the internal storage of IMU devices after the experiments, thereby avoiding any data loss due to wireless transmission.
The low-g accelerometers can present saturation at hoof impact, especially for the nodes located on the limbs. In order to keep the high acceleration information without decreasing the signal-to-noise ratio, a combined acceleration signal was computed from the low-g and high-g acceleration signals; we used the high-g data only around the areas of saturation with a threshold at 8 g, which was computed as:
The gyroscope bias was compensated by determining that bias at the beginning of the experiment when the horse stood still for 10 s. The accelerometer was calibrated for scale using the gravity signal measured during that same period.
The calibrated signals were then used to construct the inputs for the LSTM-RNN.
TiF signal processing and normalisation
TiF signal pre-processing was done in HP2 software (University of Zurich, Switzerland), allowing the obtention of the GRFz curves. Because the TiF was hardware-synchronised to the OMC system, time-synchronising the TiF GRFz signals to the IMU signals could be achieved indirectly by first synchronising the OMC system to the IMU system. The OMC to IMU synchronisation was performed by means of the synchronisation algorithm by Bosch et al.54, which uses the cross-correlation between angular velocity magnitude signals from the IMU and OMC systems. The synchronisation of the TiF GRFz signals was subsequently performed by resampling it using the parameters resulting from the OMC to IMU synchronisation. No other filtering or processing was performed on the TiF GRFz signals.
The TiF GRFz signals were then divided by the horse body mass and expressed in Newton per kilogram (N.kg−1).
Data segmentation
The hoof event detection (hoof-on and hoof-off) was solely based on the IMU signals, using the previously described method55, as they would be the only ones available in situ. Data were segmented to have one complete stance phase and one full swing phase for each limb. Segmentation for each gait is described and illustrated below:
Walk
The walk is a four-beat symmetrical gait, during which the horse will always have at least two hooves on the ground. The hoof impact sequence is left hind–left front–right hind–right front. Thus, we decided to define a window of walk data as the signals from left hind hoof-off to the next right front hoof-off, as seen in Supplementary Fig. S17a. This allows having one full stance phase and one complete swing phase per stride for each limb. The stance phases of interest in the defined stride are highlighted in red in the figure.
Trot
The trot is a two-beat symmetrical gait, during which the horse has either none or the two diagonally opposed hooves in contact with the ground. Trot data windows were defined as the signals starting from the left hind hoof-off to the next left hind hoof-off, as seen in Supplementary Fig. S17b. The stance phases of interest in the defined stride are highlighted in red.
Dataset construction
For each gait, a dataset was constructed following the steps described below.
The dataset construction is based on the window segmentation. For each horse and speed, the 20 s trial was split into all strides available in that segment. Then, the 3D merged acceleration signals and the 3D rotation rate signals of each node were normalised over 200 samples and vertically concatenated to form an input matrix of size (6 × N nodes) × 200 samples, depending on which nodes sets was used. Thus, each stride was represented by a matrix of (6 × N nodes) features of length 200, as shown in Supplementary Fig. S18a and detailed in Supplementary Table 3. The corresponding GRFz signal of each limb were also normalised over 200 samples and vertically concatenated to form an output matrix of size 4 × 200 used for GRFz curve prediction, as represented in Supplementary Fig. S18a. For peak GRFz prediction, the maximum value of the GRFz signals of each limb was extracted and vertically concatenated to form an output matrix of size 4 × 1 (Supplementary Fig. S18b). At the walk, the pGRFz value was defined as the second peak extracted for each limb GRFz curve14.
The global dataset was then randomly divided into training, validation and test subsets containing the data of 16-4-4 horses, respectively. This process avoids having the data from one horse in two different subsets, which would lead to overfitting. The strides were shuffled before training.
The minima and maxima of the training input and output signals were used to normalise the data from each dataset. In total, 960 s of walk, resulting in 672 strides were used for the walk dataset and a total of 1920s of trot, resulting in 2497 strides were used for the trot dataset (Supplementary Table 4).
LSTM-RNN architectures and training
Prior to this work, a grid search56 was used to tune the hyperparameters (number of hidden units, initial learning rate, batch size) of different LSTM-RNN topologies (unidirectional and bidirectional LSTM-RNN). The bilayer bidirectional LSTM-RNN with 200 hidden-units each proved to be the most capable to predict correct GRFz curves and pGRFz values and was thus selected. The final neural networks used are presented in Supplementary Fig. S15.
Between the two bidirectional LSTM-RNN layers, a dropout layer of probability 0.40 was used to reduce overfitting risks. The second bidirectional LSTM-RNN layer was followed by a fully connected layer and a regression layer. The networks were trained with an initial learning rate of 0.002, with a batch size of 64 and the training epochs were limited to 40, to reduce overfitting.
For each gait, training and validation were repeated with 10 different input datasets, thus leading to 10 testing and evaluations of the models. For each gait and parameters, the mean and standard deviation of these testing evaluations are presented, unless stated otherwise.
Symmetry indices
The Robinson symmetry index (SI) of the extracted and predicted pGRFz values were calculated with the Eq. (1) in this manuscript, proposed by Robinson et al.57.
An SI of 0 shows perfect symmetry, while negative and positive SIs show a higher right and left pGRFz, respectively.
Bland–Altman analysis
To evaluate the parameters obtained with LSTM-RNN, Bland–Altman (BA) analyses were conducted58. For each GRFz parameters studied (pGRFz, t-pGRFz, SI-front and SI-hind), the accuracy (bias) was defined by the mean differences between the reference value (TiF data) and the LSTM-RNN obtained parameters. The precision was defined by the standard deviation of the mean differences (STD). The 95% limits of agreement between the reference and LSTM-RNN obtained parameters were calculated as:
Data availability
The data that supports the findings of this study are available from the corresponding authors upon reasonable request.
References
Buchner, H. H. F. Gait adaptation in lameness. In Equine Locomotion (eds. Clayton, H. M. & Back, W.) 175 (2013).
Serra Bragança, F. M., Rhodin, M. & Van Weeren, P. R. 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? Vet. J. 234, 11–23. https://doi.org/10.1016/j.tvjl.2018.01.006 (2018).
Clayton, H. M. & Hobbs, S. J. Ground reaction forces: The Sine Qua Non of legged locomotion. J. Equine Vet. Sci. 76, 25–35. https://doi.org/10.1016/j.jevs.2019.02.022 (2019).
Ishihara, A., Bertone, A. L. & Rajala-Schultz, P. J. Association between subjective lameness grade and kinetic gait parameters in horses with experimentally induced forelimb lameness. Am. J. Vet. Res. 66, 1805–1815. https://doi.org/10.2460/ajvr.2005.66.1805 (2005).
Weishaupt, M. A., Wiestner, T., Hogg, H. P., Jordan, P. & Auer, J. A. Compensatory load redistribution of horses with induced weight-bearing forelimb lameness trotting on a treadmill. Vet. J. 171, 135–146. https://doi.org/10.1016/j.tvjl.2004.09.004 (2006).
Serra Bragança, F. M. et al. Adaptation strategies of horses with induced forelimb lameness walking on a treadmill. Equine Vet. J. https://doi.org/10.1111/evj.13344 (2020).
Weishaupt, M. A., Wiestner, T., Hogg, H. P., Jordan, P. & Auer, J. A. Compensatory load redistribution of horses with induced weightbearing hindlimb lameness trotting on a treadmill. Equine Vet. J. 36(1), 727–733. https://doi.org/10.2746/0425164044848244 (2004).
Clayton, H. M., Schamhardt, H. C., Willemen, M. A., Lanovaz, J. L. & Colborne, G. R. Kinematics and ground reaction forces in horses with superficial digital flexor tendinitis. Am. J. Vet. Res. 61(2), 191–196. https://doi.org/10.2460/ajvr.2000.61.191 (2000).
Abdelhadi, J. et al. Load redistribution in walking and trotting beagles with induced forelimb lameness. Am. J. Vet. Res. 74(1), 34–39. https://doi.org/10.2460/ajvr.74.1.34 (2013).
Fanchon, L. & Grandjean, D. Accuracy of asymmetry indices of ground reaction forces for diagnosis of hind limb lameness in dogs. Am. J. Vet. Res. 68(10), 1089–1094. https://doi.org/10.2460/ajvr.68.10.1089 (2007).
Fischer, S., Anders, A., Nolte, I. & Schilling, N. Compensatory load redistribution in walking and trotting dogs with hind limb lameness. Vet. J. 197(3), 746–752. https://doi.org/10.1016/j.tvjl.2013.04.009 (2013).
Rajkondawar, P. G. et al. A system for identifying lameness in dairy cattle. Appl. Eng. Agric. 18, 87–96 (2002).
Merkens, H. W., Schamhardt, H. C., Osch, G. J. V. M. & Bogert, A. J. Ground reaction force patterns of Dutch Warmblood horses at normal trot. Equine Vet. J. 25(2), 134–137. https://doi.org/10.1111/j.2042-3306.1993.tb02923.x (1993).
Merkens, H. W., Schamhardt, H. C., Hartman, W. & Kersjes, A. W. Ground reaction force patterns of Dutch Warmblood horses at normal walk. Equine Vet. J. 18(3), 207–214. https://doi.org/10.1111/j.2042-3306.1986.tb03600.x (1986).
Oosterlinck, M., Pille, F., Huppes, T., Gasthuys, F. & Back, W. Comparison of pressure plate and force plate gait kinetics in sound Warmbloods at walk and trot. Vet. J. 186(3), 347–351. https://doi.org/10.1016/j.tvjl.2009.08.024 (2010).
Weishaupt, M. A. et al. Instrumented treadmill for measuring vertical ground reaction forces in horses. Am. J. Vet. Res. 63(4), 520–527. https://doi.org/10.2460/ajvr.2002.63.520 (2002).
Chateau, H. et al. Biomechanical analysis of hoof landing and stride parameters in harness trotter horses running on different tracks of a sand beach (from wet to dry) and on an asphalt road. Equine Vet. J. 42(s38), 488–495. https://doi.org/10.1111/j.2042-3306.2010.00277.x (2010).
Munoz-Nates, F. et al. External forces and impulses applied to the hind limb of 3 jumping horses at take-off-effects of the fence’s height. Comput. Methods Biomech. Biomed. Eng. 22(sup1), S516–S518. https://doi.org/10.1080/10255842.2020.1715002 (2019).
Lanovaz, J. L., Clayton, H. M., Colborne, G. R. & Schamhardt, H. C. Forelimb kinematics and net joint moments during the swing phase of the trot. Equine Vet. J. 30, 235–239. https://doi.org/10.1111/j.2042-3306.1999.tb05225.x (1999).
Rumpler, B., Riha, A., Licka, T., Kotschwar, A. & Peham, C. Influence of shoes with different weights on the motion of the limbs in Icelandic horses during toelt at different speeds. Equine Vet. J. 38, 451–454. https://doi.org/10.1111/j.2042-3306.2010.00231.x (2010).
Willemen, M. A., Savelberg, H. H., Bruin, G. & Barneveld, A. The effect of toe weights on linear and temporal stride characteristics of standardbred trotters. Vet. Q 16(Suppl 2), S97-100 (1994).
Keegan, K. G. Evidence-based lameness detection and quantification. Vet. Clin. N. Am. Equine Pract. 23(2), 403–423. https://doi.org/10.1016/j.cveq.2007.04.008 (2007).
Witte, T. H., Knill, K. & Wilson, A. M. Determination of peak vertical ground reaction force from duty factor in the horse (Equus caballus). J. Exp. Biol. 207, 3639–3648. https://doi.org/10.1242/jeb.01182 (2004).
Alexander, R. M. N., Maloiy, G. M. O., Hunter, B., Jayes, A. S. & Nturibi, J. Mechanical stresses in fast locomotion of buffalo (Syncews coffer) and elephant (Loxodonta africana). J. Zool. 189, 135–144. https://doi.org/10.1111/j.1469-7998.1979.tb03956.x (1979).
Bobbert, M. F., Alvarez, C. B. G., Van Weeren, P. R., Roepstorff, L. & Weishaupt, M. A. Validation of vertical ground reaction forces on individual limbs calculated from kinematics of horse locomotion. J. Exp. Biol. 210, 1885–1896. https://doi.org/10.1242/jeb.02774 (2007).
Roepstorff, C. et al. Modelling fore- and hindlimb peak vertical force differences in trotting horses using upper body kinematic asymmetry variables. J. Biomech. 137, 111097. https://doi.org/10.1016/j.jbiomech.2022.111097 (2022).
Gurchiek, R. D., Cheney, N. & McGinnis, R. S. Estimating biomechanical time-series with wearable sensors: A systematic review of machine learning techniques. Sensors 19(23), 5227. https://doi.org/10.3390/s19235227 (2019).
Alcantara, R. S., Edwards, W. B., Millet, G. Y. & Grabowski, A. M. Predicting continuous ground reaction forces from accelerometers during uphill and downhill running: A recurrent neural network solution. PeerJ 10, e12752. https://doi.org/10.7717/peerj.12752 (2022).
Hochreiter, S. & Schmidhuber, J. Long short-term memory. Neural Comput. 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735 (1997).
Clayton, H. M. Comparison of the stride kinematics of the collected, working, medium and extended trot in horses. Equine Vet. J. 26(3), 230–234. https://doi.org/10.1111/j.2042-3306.1994.tb04375.x (1994).
Clayton, H. M. Comparison of the collected, working, medium and extended canters. Equine Vet. J. 26, 16–19. https://doi.org/10.1111/j.2042-3306.1994.tb04866.x (1994).
Deuel, N. R. & Lawrence, L. M. Gallop velocity and limb contact variables of quarter horses. J. Equine Vet. Sci. 6, 143–147. https://doi.org/10.1016/S0737-0806(86)80064-8 (1986).
Zips, S., Peham, C., Scheidl, M., Llckat, T. & Girtler, D. Motion pattern of the toelt of Icelandic horses at different speeds. Equine Vet. J. 33, 109–111. https://doi.org/10.1111/j.2042-3306.2001.tb05371.x (2001).
Nicodemus, M. C. & Clayton, H. M. Temporal variables of four-beat, stepping gaits of gaited horses. Appl. Anim. Behav. Sci. 80, 133–142. https://doi.org/10.1016/S0168-1591(02)00219-8 (2003).
Weishaupt, M. A., Waldern, N. M., Amport, C., Ramseier, L. C. & Wiestner, T. Effects of shoeing on intra- and inter-limb coordination and movement consistency in Icelandic horses at walk, tölt and trot. Vet. J. 198, e109–e113. https://doi.org/10.1016/j.tvjl.2013.09.043 (2013).
Serra Bragança, F. M. et al. Improving gait classification in horses by using inertial measurement unit (IMU) generated data and machine learning. Sci. Rep. 10, 17785. https://doi.org/10.1038/s41598-020-73215-9 (2020).
Mouloodi, S. et al. What can artificial intelligence and machine learning tell us? A review of applications to equine biomechanical research. J. Mech. Behav. Biomed. Mater. 123, 104728. https://doi.org/10.1016/j.jmbbm.2021.104728 (2021).
Savelberg, H. H. C. M., Loon, T. & Schamhardt, H. C. Ground reaction forces in horses, assessed from hoof wall deformation using artificial neural networks. Equine Vet. J. 29, 6–8 (1997).
Mouloodi, S. et al. The use of deep learning algorithms to predict mechanical strain from linear acceleration and angular rates of motion recorded from a horse hoof during exercise. Int. J. Mech. Sci. 216, 106972. https://doi.org/10.1016/j.ijmecsci.2021.106972 (2022).
Schobesberger, H. & Peham, C. Computerized detection of supporting forelimb lameness in the horse using an artificial neural network. Vet. J. 163, 77–84. https://doi.org/10.1053/tvjl.2001.0608 (2002).
Feuser, A.-K., Gesell-May, S., Müller, T. & May, A. Artificial intelligence for lameness detection in horses-a preliminary study. Animals 12(20), 37–45. https://doi.org/10.3390/ani12202804 (2022).
Yigit, T. et al. Wearable inertial sensor-based limb lameness detection and pose estimation for horses. IEEE Trans. Autom. Sci. Eng. 19(3), 1365–1379. https://doi.org/10.1109/TASE.2022.3157793 (2022).
Wouda, F. J. et al. Estimation of vertical ground reaction forces and sagittal knee kinematics during running using three inertial sensors. Front. Physiol. 9, 218. https://doi.org/10.3389/fphys.2018.00218 (2018).
Ueda, Y., Niki, Y., Yoshida, K. & Masumitsu, H. Force plate study of equine biomechanics floor reaction force of normal walking and trotting horses. Bull. Equine Res. Inst. 18, 28–41 (1981).
Niki, Y., Ueda, Y., Yoshida, K. & Masumitsu, H. A force plate study in equine biomechanics 2. The vertical and fore-aft components of floor reaction forces and motion of equine limbs at walk and trot. Bull. Equine Res. Inst. 19, 1–17 (1982).
Merkens, H. W. & Schamhardt, H. C. Distribution of ground reaction forces of the concurrently loaded limbs of the Dutch Warmblood horse at the normal walk. Equine Vet. J. 20, 209–213. https://doi.org/10.1111/j.2042-3306.1988.tb01501.x (1988).
Hodson, E., Clayton, H. M. & Lanovaz, J. L. The forelimb in walking horses: 1. Kinematics and ground reaction forces. Equine Vet. J. 32, 287–294. https://doi.org/10.2746/042516400777032237 (2000).
Weishaupt, M. A., Hogg, H. P., Auer, J. A. & Wiestner, T. Velocity-dependent changes of time, force and spatial parameters in Warmblood horses walking and trotting on a treadmill. Equine Vet. J. 42(s38), 530–537. https://doi.org/10.1111/j.2042-3306.2010.00190.x (2010).
Serra Bragança, F. M. et al. Adaptation strategies of horses with induced forelimb lameness walking on a treadmill. Equine Vet. J. 53, 600–611. https://doi.org/10.1111/evj.13344 (2021).
Merkens, H. W. & Schamhardt, H. C. Evaluation of equine locomotion during different degrees of experimentally induced lameness II: Distribution of ground reaction force patterns of the concurrently loaded limbs. Equine Vet. J. 20, 107–112. https://doi.org/10.1111/j.2042-3306.1988.tb04656.x (1988).
Hobbs, S. J. & Clayton, H. M. Sagittal plane ground reaction forces, centre of pressure and centre of mass in trotting horses. Vet. J. 198, e14–e19. https://doi.org/10.1016/j.tvjl.2013.09.027 (2013).
Buchner, H. H. F., Savelberg, H. H. C. M., Schamhardt, H. C., Merkens, H. W. & Barneveld, A. Kinematics of treadmill versus overground locomotion in horses. Vet. Q. 16, 87–90. https://doi.org/10.1080/01652176.1994.9694509 (1994).
Smit, I. H. et al. Continuous versus discrete data analysis for gait evaluation of horses with induced bilateral hindlimb lameness. Equine Vet. J. 54(3), 626–633. https://doi.org/10.1111/evj.13451 (2021).
Bosch, S. et al. EquiMoves: A wireless networked inertial measurement system for objective examination of horse gait. Sensors 18, 850. https://doi.org/10.3390/s18030850 (2018).
Bragança, F. M. et al. Validation of distal limb mounted inertial measurement unit sensors for stride detection in Warmblood horses at walk and trot. Equine Vet. J. 49, 545–551. https://doi.org/10.1111/evj.12651 (2017).
Jiménez, Á. B., Lázaro, J. L. & Dorronsoro, J. R. Finding optimal model parameters by discrete grid search. In: Innovations in Hybrid Intelligent Systems. Advances in Soft Computing, Vol. 44 (eds Corchado, E. et al.) https://doi.org/10.1007/978-3-540-74972-1_17 (Springer, Berlin, Heidelberg, 2007).
Robinson, R. O., Herzog, W. & Nigg, B. M. Use of force platform variables to quantify the effects of chiropractic manipulation on gait symmetry. J. Manip. Physiol. Ther. 10, 172–176 (1987).
Bland, J. M. & Altman, D. G. Agreement between methods of measurement with multiple observations per individual. J. Biopharm. Stat. 17, 571–582 (2007).
Acknowledgements
The project was financed by the EFRO OP-Oost (project Paardensprong) and the Dutch Arthritis Society (Centre of Excellence Grant LLP22). The authors wish to thank all owners, horse handlers and other staff involved in the data collection.
Author information
Authors and Affiliations
Contributions
J.I.M.P. conceived the concept. M.A.W., A.I.G. and F.M.S.B. carried out the data collection. J.I.M.P., S.B., B.J.vdZ. and F.M.S.B. conducted the data analysis. J.I.M.P., S.B., B.J.vdZ., P.R.vW. and F.M.S.B. co-wrote the paper. All authors discussed the results and commented on the manuscript.
Corresponding author
Ethics declarations
Competing interests
S.B. and B.J.vdZ. are also employees of Inertia Technology B.V., which manufactures and sells the sensors used in this study. The authors declare no other competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Parmentier, J.I.M., Bosch, S., van der Zwaag, B.J. et al. Prediction of continuous and discrete kinetic parameters in horses from inertial measurement units data using recurrent artificial neural networks. Sci Rep 13, 740 (2023). https://doi.org/10.1038/s41598-023-27899-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-023-27899-4
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.