1 Introduction

Riding a horse is a complex, cognitive and physically demanding movement with significant similarities to human walking [15, 36]. The rhythmic, dynamic interaction between horse and rider generates sensory stimuli with positive rehabilitational effects on the human body. Therapeutic horse riding, also known as hippotherapy and a type of equine assisted therapy (EAT), is therefore employed as a medical treatment, e.g. for persons with movement disorders. It has successfully been applied to improve gross motor function [35], postural control [41], balance [12], muscle symmetry [5], trunk/head stability and functional reach [33], as well as for post-stroke gait training [4]. To support traditional therapy methods, attention is given more and more to robotic rehabilitation approaches. Concerning EAT, the development of robotic hippotherapy systems is motivated by the thereby gained possibility to facilitate hippotherapy in clinical environments or generally avoiding the necessity of a real horse. It has been shown that the therapy outcome of robotic systems is comparable to classical EAT, where real horses are involved [13, 22, 26]. In contrast to classical hippotherapy, robotic hippotherapy allows for arbitrary adjustable cadence or speed (within the system limits) with high repeatability and precision of the executed movements. In [21] the authors mention the association between greater motion variability and decreased therapeutic effect. Robotic systems are not dependent on the temperament of a real horse, and do therefore not contain the risk of unpredictable motions. Additionally, they enable the reproduction of various motion patterns related to different horses. Depending on their body type, horses show differing suitability for diverse applications, as reported in [29]. Furthermore, robotic hippotherapy has the potential to increase the accessibility of this treatment for the patients. A review on the benefits of classical hippotherapy and horse riding simulation can be found in [16].

To the best knowledge of the authors there is no study investigating the reproduction of horseback motion using a comprehensive set of optical markers for the transfer to a robotic system. Nevertheless, there are some studies focusing on the description and assessment of horse motions and the development of riding simulators. The authors of [24] developed a robotic riding simulator where the riding motion is modeled as periodic sinusoidal signals that have dominant up-and-down motions with two, three and four beats. In [14] the dynamics of the horseback during motion is captured by an inertial measurement unit rigidly attached to the saddle. The measured signals are then transformed to input signals for a hydraulic Gough–Stewart platform by digital filtering. A motion capture system was used in [7] to measure the position of reflective markers attached to horse, saddle and rider while the horse was walking on a treadmill. In [27] the authors introduce a robotic horseback-riding simulator consisting of a base motion platform with 4 degrees of freedom and an additional revolving system with 2 degrees of freedom mounted on top. The saddle motion trajectories were based on motion capture data and expressed as the sum of two sine functions. Mapping real movements to robotic systems is also investigated in other fields of research, especially regarding human gait, exoskeletons and gait rehabilitation [9, 39] or biped locomotion [28].

We assume that, in order to improve the sensation of real horseback riding and to achieve a therapeutic success equivalent to classical hippotherapy, the robotic horse trajectories should be as close to the movements of real horses as possible. To this end, this paper introduces a motion synthesis method for the horseback, modeled as a rigid body, during typical horse gaits based on motion capture data. Improvements to a previously proposed approach in [42], already in use in robotic hippotherapy [20], are presented. An analytical, time-continuous description of the motion of a virtual saddle, or a hypothetical therapy sit, is constructed so to best reproduce the captured horseback movements. Horseback motion can be synthesized with arbitrary time span and time resolution, resulting in smooth, cyclic and realistic trajectories, immediately applicable to robotic systems. With an adjustable time dilatation parameter the speed of the generated movement can easily be adjusted to the current physical abilities of the patient or the capabilities of the robotic system. Note that this work does not investigate the transitions between the individual horse gaits or possible speed-dependent changes of the motion patterns, which might be part of future research. The presented approach consists of the three main steps:

  1. 1.

    The positional variance of the individual markers with respect to each other during motion is investigated. A subset of markers with a relative movement below a certain threshold, and therefore more appropriate to describe the recorded movement as rigid body motion, is selected for further calculations.

  2. 2.

    Based on the measured marker positions of the selected markers of the horse in steady standing position, a kinematic model of the horseback is generated. This rigid body model of the horseback represents the saddle of a riding simulator or a robotic hippotherapy system imitating the motion of a real horse.

  3. 3.

    The parameters of a cyclic trajectory, describing the rigid body motion of the horseback model, are identified in an optimization process using recorded marker data of complete gait cycles. This method allows for generating general high-fidelity saddle motions since the algorithm allows for considering data of an arbitrary number of complete gait cycles simultaneously.

2 Motion data

Basis for the analysis of movements is the application of a (kinematic) model to motion capture data, which enables a description of the underlying motion, i.e. the time evolution of position, orientation and, if joints are defined, joint angles of the model. Motion capture thereby refers to the recording of the motion of general objects, including humans and animals, using primarily vision-based or inertial systems. It is applied in various fields such as computer animation [25], robotics [31], human activity recognition [1] or biomechanics [11]. Particularly, measuring the 3D position of passive (purely reflective) markers is a frequently used method [10]. Horse motions were already analyzed on the basis of motion capture data [7], acceleration data [14, 36] or photographs [19].

Within the framework of this paper, the authors had access to motion capture data recorded with passive markers. Two horses, Lambada and Doolittle, were equipped with sets of reflective markers whose 3D positions were measured during the three typical horse gaits walk, trot and gallop (Fig. 1). Walk and trot measurements were recorded for both horses, while gallop motion was only available for one horse. In total, the raw marker data of five movement trials together with snapshots of each horse in standing position were provided to the authors.

Fig. 1
figure 1

Investigated horse gaits: (a) walk, (b) trot and (c) gallop; marker arrangements on the two horses Lambada (a) and Doolittle (bc) are shown as white dots

Pre-processing

As none of the data sets contains more than one complete gait cycle, all motion data sets are cropped to the samples of one single movement cycle per gait. The marker data of the standing horses are used to define the reference pose, i.e. the shape of the respective horseback, or a virtual saddle. To this end, the \(x\)-axis of the horse coordinate system is defined to point anteriorly (forwards), the \(y\)-axes to the left side of the horse body and the \(z\)-axis superiorly (upwards). Its origin is positioned at the centroid of the \(x\)- and \(z\)-components of the marker positions of the reference pose. The markers nearest to the horse spine are aligned with the \(x\)-axis, as they approximately represent the center line of the horse body. Additionally, as the horses were not necessarily moving parallel to the axes of the inertial coordinate system and the generated trajectories should be applicable on a stationary robotic system, a trend correction of the recorded marker positions is applied. To this end, the position of the horseback during the motion cycle is calculated according to the least squares rigid motion approach described in the appendix. For every position component the trend is now calculated as the linear progress from the first to the last position and is subtracted from the according measurement data. This results in the horseback position deviating almost around zero, or another fixed point by adding some constant offset. The latter is important as the executing robotic system is assumed to be stationary and its workspace to be limited.

3 Marker selection

Modeling the horseback as a rigid body contradicts the fact that the markers attached to the horse are subject to relative movement with respect to each other. Nevertheless, as a relatively large part of the horses is covered by the markers it is assumed that some markers show more relative movement than others. The markers on the back and the middle of the flank of the horse are suspected to have smaller positional variance than the markers near the fore and hind leg, which would be in accordance with the traditional placement of a horse saddle. Therefore, a marker selection based on the positional variance of the markers is performed.

Points on a rigid body are not moving with respect to each other over time, which means the marker to marker distances are constant and the standard deviation of the distances is zero. By calculating the standard deviation of the marker to marker distances for each marker over the samples of a recorded horse gait, information about the ‘rigidness’ of marker regions can be gained. For the \(n=1,\ldots ,N\) samples of a gait measurement the distance from marker \(i\) to marker \(j\) is calculated as

$$ d_{i,j,n} = \Vert \mathbf{m}_{i,n} -\mathbf{m}_{j,n}\Vert, $$
(1)

with \(\mathbf{m}_{i,n}\) and \(\mathbf{m}_{j,n}\) being the 3D positions of the corresponding markers. The standard deviation of the distance of a marker pair concerning all \(N\) measurement samples is denoted as

$$ s_{i,j} = \sqrt{\frac{1}{N} \sum _{n=1}^{N} \left ( d_{i,j,n} - \bar {d}_{i,j} \right )^{2}}, $$
(2)

where \(\bar {d}_{i,j}\) is the mean distance between markers \(i\) and \(j\) during the considered measurement. All \(s_{i,j}\) are summarized in a symmetric matrix \(\mathbf{S}\), where one row or column represents the relative movement from a specific marker to all markers. In order to visualize potential marker clusters, the rows and columns of \(\mathbf{S}\) are ordered based on the median standard deviation in marker distances of the individual markers. This results in a new matrix \(\tilde{\mathbf{S}}\), which now has rows and columns with increasing median values. With the method of spectral clustering [30], the marker set can be segmented into groups. This method was already used to identify human body segments and positions of the connecting joints from motion capture data [23]. Nevertheless, in our case all markers with an average standard deviation of the marker to marker distances below a certain threshold, i.e. the median value with respect to all markers, were selected. Figure 2 shows the original matrix \(\mathbf{S}\) of standard deviations and its version with sorted rows and columns \(\tilde{\mathbf{S}}\) for one of the data sets. As can be seen in Fig. 2(a), there is a specific subset of markers (towards the lower right corner of the matrix \(\tilde{\mathbf{S}}\)) with a small standard deviation of marker-to-marker distances within this group but with a high standard deviation with respect to the rest. This subset corresponds to the small marker group on or near the hind leg of the horse. The selected markers correspond to the upper left quarter of this matrix. Figure 3 shows the selected markers for each of the data sets. Some markers are missing, since there was no corresponding positional information during the specific measurement trial.

Fig. 2
figure 2

Original unsorted matrix \(\mathbf{S}\) (a) and permuted matrix \(\tilde{\mathbf{S}}\) with sorted rows and columns (b); brighter color symbolizes higher standard deviation

Fig. 3
figure 3

Marker selection: selected (filled) and ignored (empty) markers of (aLambada walk, (bLambada trot, (cDoolittle walk, (dDoolittle trot and (eDoolittle gallop (brighter color symbolizes higher standard deviation)

4 Modeling

4.1 Marker kinematics

The position of the coordinate frame of the reference pose, in the following referred to as horse frame, is described by the vector \({}_{\mathrm{I}} \mathbf{r}_{\mathrm{H}}\in \mathbb{R}^{3}\) represented in the inertial frame, while its orientation relative to the inertial frame is described by the rotation matrix \(\mathbf{R}_{\mathrm{IH}}\in \text{SO(3)}\). Notice that the left subscript of a vector denotes the coordinate frame in which the vector is represented, I for inertial and H for horse. In summary, the pose of the horse is represented by the homogeneous transformation matrix

$$ \mathbf{T}_{\mathrm{IH}}=\begin{bmatrix} \mathbf{R}_{\mathrm{IH}} & {{}_{\mathrm{I}}}\mathbf{r}_{\mathrm{H}} \\ \mathbf{0}_{1\times 3} & 1\end{bmatrix}\in \text{SE(3).} $$
(3)

Denote with \({{}_{\mathrm{H}}}\mathbf{p}_{j}\) the (constant) position of the \(j\)th horse marker measured in the horse frame as determined from the reference pose, i.e. the standing horse. Its position measured in the inertial frame, denoted \({}_{\mathrm{I}}\mathbf{m}_{j}\), is then determined by

$$ {}_{\mathrm{I}}\mathbf{m}_{j} = {{}_{\mathrm{I}}}\mathbf{r}_{\mathrm{H}} + \mathbf{R}_{\mathrm{IH}}\,{{}_{\mathrm{H}}}\mathbf{p}_{j}, $$
(4)

which can be written in terms of homogeneous coordinates

$$ \begin{bmatrix} {}_{\mathrm{I}}\mathbf{m}_{j} \\ 1 \end{bmatrix} =\mathbf{T}_{\mathrm{IH}}\, \begin{bmatrix} {{}_{\mathrm{H}}}\mathbf{p}_{j} \\ 1 \end{bmatrix}. $$
(5)

The pose of the horseback model is described by the generalized coordinates, summarized in the vector \(\mathbf{q}=[q_{1},q_{2},\ldots,q_{6}]^{\mathsf {T}}\in \mathbb{V}^{6}\), which comprises the position vector, as well as the Cardan angles \(\alpha\), \(\beta\) and \(\gamma\) (rotation sequence X-Y-Z) used to parameterize the rotation matrix \(\mathbf{R}_{\mathrm{IH}}\). \({{}_{\mathrm{I}}}\mathbf{r}_{\mathrm{H}}(\mathbf{q})\) depends on the variables describing the position of the horseback \([q_{1},q_{2},q_{3}]^{\mathsf {T}}\) while the rotation matrix \(\mathbf{R}_{\mathrm{IH}}(\mathbf{q})\) depends on the rotational degrees of freedom \([q_{4},q_{5},q_{6}]^{\mathsf {T}}\) with \(\mathbf{q}\) usually being time-dependent, i.e. \(\mathbf{q}=\mathbf{q}(t)\). Thus, the homogeneous transformation matrix is \(\mathbf{T}_{\mathrm{IH}}=\mathbf{T}_{\mathrm{IH}}(\mathbf{q}(t))\).

4.2 Time-continuous description of trajectories

Due to the cyclic nature of locomotion movements, the repetitive motion patterns of the individual horse gaits are described as periodic signals expressed by truncated Fourier series. The Fourier series of order \(l\) for the generalized coordinate \(q_{i}(t)\), with cycle duration \(T\), is

$$ q_{i}(t) = a_{i,0} + \sum _{k=1}^{l} a_{i,k} \cos {k \omega t} + b_{i,k} \sin {k \omega t}, \quad \omega = 2\pi /T, $$
(6)

where \(\mathbf{a}_{i} = [a_{i,0},\ldots ,a_{i,l}]^{\mathsf {T}}\) and \(\mathbf{b}_{i} = [b_{i,1},\ldots ,b_{i,l}]^{\mathsf {T}}\) are the \(2l+1\) Fourier coefficients. If a parameterization as described is chosen to represent the motion of the presented model, it follows that the generalized coordinates \(\mathbf{q} = \mathbf{q}(t,\boldsymbol{\pi })\) are now dependent on trajectory parameters denoted with \(\boldsymbol{\pi } = [\mathbf{a}_{1}^{\mathsf {T}}, \ldots ,\mathbf{a}_{6}^{\mathsf {T}}, \mathbf{b}_{1}^{\mathsf {T}}, \ldots ,\mathbf{b}_{6}^{\mathsf {T}}]^{\mathsf {T}}\).

Typically, locomotion movements are quasi-periodic, which means that the individual gait cycles are similar but not identical. Shape and period duration are subject to variations and therefore, e.g. considering gait, single steps or strides do not necessarily take the same amount of time. The proposed method enables the possibility to find an optimal trajectory based on an arbitrary number of complete motion cycles. As each cycle consists of \(n = 1,\ldots ,N_{c}\) samples depending on the sample rate of the motion capture system, a time normalization, based on a unified time-scale, is applied. A defined normalized period duration of \(\tilde{T}=1\) results, for every cycle \(c\), in a sample vector \(\tilde{\mathbf{t}}=[\tilde{t}_{0}=0,\ldots ,\tilde{t}_{N_{c}} = \tilde{T}]\). Thus, the generalized coordinates are now \(\tilde{\mathbf{q}}=\tilde{\mathbf{q}}(\tilde{\mathbf{t}}, \boldsymbol{\pi})\).

Time-scaling

Extending Eq. (6) by a dilatation parameter \(\xi \), with \(0<\xi \leq 1\), easily allows for an adaption of the original trajectory concerning the movement speed according to the current physical abilities of the patient or to the capabilities of the robotic system. The time-scaled version of the approximated trajectory and its first two derivatives can be calculated as

$$\begin{aligned} q_{i}(t) &= a_{i,0} + \sum _{k=1}^{l} a_{i,k} \cos {k \omega \xi t} + b_{i,k} \sin {k \omega \xi t} , \end{aligned}$$
(7)
$$\begin{aligned} \dot{q}_{i}(t) &= k\omega \xi \sum _{k=1}^{l} -a_{i,k} \sin {k \omega \xi t} + b_{i,k} \cos {k \omega \xi t} , \end{aligned}$$
(8)
$$\begin{aligned} \ddot{q}_{i}(t) &= k^{2}\omega ^{2}\xi ^{2} \sum _{k=1}^{l} -a_{i,k} \cos {k \omega \xi t} - b_{i,k} \sin {k \omega \xi t}. \end{aligned}$$
(9)

As can be noted in Eq. (8) and Eq. (9), the velocity decreases linearly, while the acceleration decreases quadratically with \(\xi \), which might be important considering that the robotic system has to be capable of producing the required actuator forces, e.g. due to the varying body mass of different patients.

5 Optimization

Problem statement

Goal of the optimization is to identify the motion of the model from marker data of a specific gait measurement. This amounts to find an optimal set of trajectory parameters \(\boldsymbol{\pi }^{\ast }\) reproducing the measured 3D positions of \(m = 1,\ldots ,M\) markers of a data set consisting of \(c = 1,\ldots ,C\) motion cycles, each consisting of \(n=1,\ldots ,N_{c}\) samples. The corresponding optimization problem can be written as

$$ \begin{aligned} \boldsymbol{\pi }^{\ast }&= \operatorname*{arg\,min}_{\boldsymbol{\pi }} {\sum _{c = 1}^{C} \sum _{n = 1}^{N_{c}}\sum _{m = 1}^{M}w_{m}(\mathbf{m}_{m,n,c} - \hat{\mathbf{m}}_{m,n,c}(\boldsymbol{\pi }))^{2}} \\ \text{s.t.} &\quad \mathbf{q}_{\text{min}} \leq \tilde{\mathbf{q}} \leq \mathbf{q}_{\text{max}} \\ &\quad\dot{\mathbf{q}}_{\text{min}} \leq \dot{\tilde{\mathbf{q}}} \leq \dot{\mathbf{q}}_{\text{max}} \end{aligned} $$
(10)

where \(w_{m}\) weights the individual markers, \(\mathbf{m}_{m,n,c}\) is the measured position of marker \(m\) of the \(n\)th sample of cycle \(c\) and \(\hat{\mathbf{m}}_{m,n,c}(\boldsymbol{\pi })\) is the estimated marker position as a function of the current parameters by means of the forward kinematics described in Sect. 4.1. Additionally, constraints like the range of motion of the technical joints \(\left [\mathbf{q}_{\text{min}}, \mathbf{q}_{\text{max}} \right ]\) or limits \(\left [ \dot{\mathbf{q}}_{\text{min}}, \dot{\mathbf{q}}_{\text{max}} \right ]\) for the derivatives of the joint coordinates, \(\dot{\tilde{\mathbf{q}}}\), can be formulated.

Initialization

In order to improve the performance of the optimization in terms of speed and robustness, it is advisable to provide a reasonable initial guess of the optimization variables. The method used in our previous work on this topic, as described in [42], can be applied to this end. Thereby, the position and orientation of the horseback, also modeled as a rigid body, is determined for every sample of a measured motion cycle by finding the rigid body transformation \((\mathbf{R}_{\mathrm{IH},n},{}_{\mathrm{I}}\mathbf{t}_{\mathrm{H},n})\in SE(3)\). This transformation consists of a rotation matrix \(\mathbf{R}_{\mathrm{IH},n}\) and a translation vector \({}_{\mathrm{I}}\mathbf{t}_{\mathrm{H},n}\) for the \(n\)th data sample, mapping the \(m = 1 ,\ldots , M\) marker coordinates of the reference pose \(\{{}_{\mathrm{H}}\mathbf{p}_{1},\ldots ,{}_{\mathrm{H}}\mathbf{p}_{M}\}\) to the measured marker positions \(\{{}_{\mathrm{I}}\mathbf{m}_{1,n},\ldots ,{}_{\mathrm{I}}\mathbf{m}_{M,n}\}\) as accurate as possible (with marker weights \(w_{m}\)). This can be done in a least squares sense, so that

$$ (\mathbf{R}_{\mathrm{IH},n},{}_{\mathrm{I}}\mathbf{t}_{\mathrm{H},n}) = \operatorname*{arg\,min}_{(\mathbf{R}_{\mathrm{IH},n}, {}_{\mathrm{I}}\mathbf{t}_{\mathrm{H},n})} {\sum _{m=1}^{M} w_{m} \lVert (\mathbf{R}_{\mathrm{IH},n} {}_{\mathrm{H}}\mathbf{p}_{m} + {}_{\mathrm{I}}\mathbf{t}_{\mathrm{H},n})-{}_{\mathrm{I}}\mathbf{m}_{m,n} \rVert ^{2}}. $$
(11)

The problem in (11), also called weighted Procrustes problem [32], has a closed form solution [3, 18], which is briefly summarized in the appendix. The extracted trajectory of the horseback model in terms of position and orientation can now be approximated with a Fourier series and used as initial guess for the optimization.

6 Results

The CasADi framework [2] was used to implement the nonlinear optimization problem (10) which was solved with IPOPT [40]. All algorithms and tests were executed on a computer equipped with an i7 CPU (3.60 GHz) and 8 GB RAM.

The functionality of the method was validated with artificial marker data without the effects of noise, soft tissue artifacts or other inaccuracies. To this end, the reference pose was used together with a Fourier series parameterization of a prescribed motion to generate a synthetic 3D marker set. For validation the trajectory parameters were recovered with the proposed optimization method based on the artificial data, which could be achieved with arbitrary precision. Provided that the number of parameters describing the motion is sufficiently large, the accuracy of the optimization result depends only on the used time resolution of the simulation.

Concerning measurement data, an order of \(l=6\) was used for the motion parameterization with Fourier series, which results in a total of 78 optimization variables.

Figure 4 shows the optimized trajectories of the horseback position and orientation for the three gaits walk, trot and gallop of one horse, the according velocities and angular velocities are computed as \(\mathbf{v} =\left [\dot{x},\dot{y},\dot{z}\right ]^{\mathsf {T}}\) and

$$ {}_{\mathrm{H}}\boldsymbol{\omega }_{\mathrm{IH}} = \begin{bmatrix} {}_{\mathrm{H}}\omega _{\mathrm{IH},x} \\ {}_{\mathrm{H}}\omega _{\mathrm{IH},y} \\ {}_{\mathrm{H}}\omega _{\mathrm{IH},z} \end{bmatrix} = \begin{bmatrix} &\cos {\beta }\cos {\gamma } & \sin {\gamma } & 0 \\ -&\cos {\beta }\sin {\gamma } & \cos {\gamma } & 0 \\ &\sin {\beta } & 0 & 1 \end{bmatrix} \begin{bmatrix} \dot{\alpha } \\ \dot{\beta } \\ \dot{\gamma } \end{bmatrix} $$
(12)

and are shown in Fig. 5. The maximum errors between estimated and measured marker positions were 21.9 mm for the walking, 22.8 mm for the trotting and 30.0 mm for the galloping motion. The respective mean error values were 5.5 mm (walk), 6.8 mm (trot) and 8.6 mm (gallop), respectively. As formulated in Eq. (10), an arbitrary number of complete gait cycles can be considered at once in order to calculate a more general version of the respective movement. To demonstrate this functionality, the walking gait cycles of the two horses were used to generate a common horseback motion that best fits both of the individual marker data sets (Fig. 6). This resulted in an increased marker position error with a maximum value of 85.5 mm and a mean value of 33.5 mm.

Fig. 4
figure 4

Optimized trajectories of the positional (a, c, e) and rotational (b, d, f) degrees of freedom of the horseback model for the horse gaits walk (top row), trot (middle row) and gallop (bottom row) of horse Doolittle; solid lines (purple) show the \(x\)-position and the \(x\)-axis rotation (\(\alpha \) angle), dash-dotted lines (blue) the \(y\)-position and the \(y\)-axis rotation (\(\beta \) angle) and dash-dot-dotted lines (green) the \(z\)-position and the \(z\)-axis rotation (\(\gamma \) angle)

Fig. 5
figure 5

Velocities (a, c, e) and angular velocities (b, d, f) of the horseback model for the optimized trajectories of the horse gaits walk (top row), trot (middle row) and gallop (bottom row) of horse Doolittle; solid lines (purple) show the \(x\)-component, dash-dotted lines (blue) the \(y\)-component and dash-dot-dotted lines (green) the \(z\)-component of velocity and angular velocity, respectively

Fig. 6
figure 6

Optimized trajectories (solid lines) of the positional (a, c, e) and rotational (b, d, f) degrees of freedom of the horseback model for the horse gait walk, when the marker data of the walking gait cycles of both horses are considered simultaneously; dashed and dash-dotted lines show the according trajectories of the individual horses for comparison

For a typical motion sequence, consisting of about 180 samples acquired with a frequency of 200 Hz, an optimization of the trajectory parameters took 0.78 s on average. Considering multiple motion cycles simultaneously in order to obtain a more general solution of the motion pattern, the computational time increased with a rate slightly greater than linear with respect to the number of motion sequences.

7 Discussion

In this study a method for the synthesis of time-continuous rigid body motions of a horseback is presented. An analytical, time-continuous and periodic description of the movement allows for the generation of realistic trajectories with arbitrary time span and time resolution, effectively executable by robotic systems for riding simulation and robotic hippotherapy. Motion capture data in the form of 3D marker positions measured during three typical horse gaits, walk, trot and gallop, of two horses without rider are used to calculate the trajectories of position and orientation of a rigid body model of the horseback.

The reference pose of the model, defining the shape of the horseback, is obtained from marker data of the horse in steady standing position. As the horseback is modeled as a rigid body, e.g. representing a virtual saddle or the seat of a therapy system, a marker selection is performed in order to identify the markers most significantly describing the measured motion of the horseback.

Fourier series are used to parameterize the positional and rotational degrees of freedom of the model, which inherently results in time-continuous and periodic trajectories. The Fourier coefficients are optimized on the basis of the measured marker positions of complete gait cycles, where a higher number of cycles of the same movement results in a more general solution. As there are notable differences in the motion patterns of different horses, this can be used to determine a typical, characteristic (horseback) motion pattern of a specific horse gait. Additionally, the implementation of a time dilatation parameter allows for a convenient option to adjust the generated motion according to the current physical abilities of the patient or the capabilities of the robotic system.

The method was validated using artificially generated marker data, which could be reproduced with arbitrary precision only depending on the used time resolution of the simulation. Prerequisite to do so is a motion parameterization with a sufficiently large number of parameters that can be adapted. After the validation the proposed approach was tested with measurement data. For all used motion data sets the marker positions could be recovered within a mean error not exceeding 8.6 mm. Although no publications on soft tissue artifacts (STA), i.e. artifacts caused by the relative movement between bones and soft tissues like muscles and skin, concerning the back of a horse could be found, this value is within the range of typical skin displacements in the limbs [37, 38] and in accordance with values reported in the literature [6].

It is well known that horses without a rider have measurably different motion patterns compared to the riding situation [8]. Nevertheless, we do not assume that this significantly affects the therapy outcome in the context of robotic hippotherapy, although it might be worthwhile to do additional investigations in this direction. We are not aware of an existing publication investigating the therapeutic effect of trajectories from horses with versus without a rider. Note that transitions between the different horse gaits or speed-dependent alterations of the motion patterns are not addressed within this work. Moreover, motion capture data of only one complete motion cycle per horse and gait were available, additional investigations on this topic would benefit from larger data sets. Future research will focus on a novel kinematic design of a robotic hippotherapy system and the generation of generalized horseback motions based on more comprehensive motion capture data.