Next Article in Journal
Optimization of Dominant Frequency and Bandwidth Analysis in Multi-Frequency 3D GPR Signals to Identify Contaminated Areas
Next Article in Special Issue
Validation of 2D Force Measurement Roller Ski and Practical Application
Previous Article in Journal
Surface EMG Statistical and Performance Analysis of Targeted-Muscle-Reinnervated (TMR) Transhumeral Prosthesis Users in Home and Laboratory Settings
Previous Article in Special Issue
Fiber/Yarn-Based Triboelectric Nanogenerators (TENGs): Fabrication Strategy, Structure, and Application
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Self-Calibrating Magnetometer-Free Inertial Motion Tracking of 2-DoF Joints

1
Control Systems Group, Technische Universität Berlin, 10623 Berlin, Germany
2
Department Artificial Intelligence in Biomedical Engineering, Friedrich-Alexander-Universität Erlangen-Nürnberg, 91052 Erlangen, Germany
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(24), 9850; https://doi.org/10.3390/s22249850
Submission received: 31 October 2022 / Revised: 5 December 2022 / Accepted: 12 December 2022 / Published: 15 December 2022
(This article belongs to the Collection Sensors for Gait, Human Movement Analysis, and Health Monitoring)

Abstract

:
Human motion analysis using inertial measurement units (IMUs) has recently been shown to provide accuracy similar to the gold standard, optical motion capture, but at lower costs and while being less restrictive and time-consuming. However, IMU-based motion analysis requires precise knowledge of the orientations in which the sensors are attached to the body segments. This knowledge is commonly obtained via time-consuming and error-prone anatomical calibration based on precisely defined poses or motions. In the present work, we propose a self-calibrating approach for magnetometer-free joint angle tracking that is suitable for joints with two degrees of freedom (DoF), such as the elbow, ankle, and metacarpophalangeal finger joints. The proposed methods exploit kinematic constraints in the angular rates and the relative orientations to simultaneously identify the joint axes and the heading offset. The experimental evaluation shows that the proposed methods are able to estimate plausible and consistent joint axes from just ten seconds of arbitrary elbow joint motion. Comparison with optical motion capture shows that the proposed methods yield joint angles with similar accuracy as a conventional IMU-based method while being much less restrictive. Therefore, the proposed methods improve the practical usability of IMU-based motion tracking in many clinical and biomedical applications.

1. Introduction

Marker-based optical motion capture (OMC) is considered the gold standard for human motion analysis. However, this method is time-consuming and confined to expensive laboratory environments. Ambulatory real-time motion analysis can be achieved at much lower costs with inertial measurement units (IMUs). Recent studies have shown that the accuracy of IMU-based motion analysis is comparable to marker-based OMC, see, e.g., [1,2].
However, in order to derive anatomically meaningful kinematic quantities, for example, joint angles, the orientation of each IMU with respect to its body segment must be known, as illustrated in Figure 1. Even small misalignments between the assumed and actual orientation of the IMUs on the body lead to errors in the obtained kinematic quantities. To ensure accurate motion tracking, it is therefore desirable to accurately determine this orientation. In practice, this is often achieved by manual placement of the IMUs on the respective body segments in a specified orientation [3], which is error-prone, especially when the attachment of sensors is to be performed by patients or by non-medical personnel.
An alternative is to include a procedure that determines the orientation of each IMU with respect to its body segment based on data measured by the sensors. This procedure is called anatomical calibration or sensor-to-segment calibration, which is not to be confused with sensor calibration. Sensor calibration determines parameters such as scaling and bias in order to increase the accuracy of the sensor orientation estimates. Anatomical calibration determines how the sensors are attached to the body segments to ensure that the rotation axes used for calculating joint angles match the anatomical axes of joint rotation.
As detailed in Section 2, anatomical calibration traditionally relies on precisely defined calibration poses or motions. Less restrictive approaches aim for anatomical calibration based on arbitrary joint motion. Such approaches have been proposed for (approximate) hinge joints [4,5]. In the following, we consider the more challenging case of joints with two degrees of freedom (DoF), such as the elbow joint (capable of flexion/extension and pronation/supination), the metacarpophalangeal joints (MCP) of the finger (capable of flexion/extension and adduction/abduction), or the ankle joint (capable of plantar-/dorsiflexion and inversion/eversion). The present contribution introduces methods for self-calibrating joint angle tracking that
  • Use two kinematic constraints for 2-DoF joints, one that must be fulfilled by the angular rates (as already introduced in [6,7]) and a novel constraint that must be fulfilled by the relative segment orientations at any time and for any motion
  • Do not make use of magnetometer measurements and are therefore insensitive to magnetic disturbances (otherwise, temporary magnetic disturbances could permanently deteriorate accuracy until calibration is repeated)
  • Instead simultaneously estimate the heading offset to facilitate magnetometer-free joint angle tracking.
The methods are evaluated based on two experiments. The first experiment, with a known sensor attachment as ground truth, compares a simple and a complex motion and is used to show that estimation over a short time window of just ten seconds of joint motion yields plausible and consistent joint axes. The second experiment, with OMC as ground truth, is used to validate that, while being much less restrictive, the proposed self-calibrating joint angle tracking provides the same accuracy as a conventional IMU-based approach.

2. Brief Review of the State of the Art in Anatomical Calibration

Anatomical calibration is the task of determining how the IMUs are attached to the body segments. In a broader sense, this also encompasses the pairing of IMUs to body segments [8,9] and the estimation of joint center positions [10,11,12,13]. The most relevant aspect, however, is to determine how the sensor coordinate system is rotated with respect to anatomical body segment axes (cf. Figure 1). In order to uniquely define this orientation, the coordinates of two anatomical axes need to be known in the sensor frame (or vice versa). Since errors in the sensor-to-segment orientations lead to kinematic cross-task and thus directly cause errors in the obtained joint angles [14,15,16], the reliability and accuracy of anatomical calibration methods are of fundamental interest in IMU-based motion analysis.
There are four main approaches for how to deal with the need for sensor-to-segment alignment in IMU-based human motion analysis [3]:
  • Relying on a precisely defined sensor attachment (assumed alignment),
  • Calibration via measurements from additional devices (augmented data),
  • Calibration based on precisely defined poses or motions (functional alignment),
  • Calibration from arbitrary motions (model-based alignment).
Using a precisely defined attachment of the sensors to the body is a common approach and, according to the survey by Vitali and Perkins [3], used by 42% of recent publications. The advantage of this approach is that it only requires minimum effort from the subject, i.e., no extra calibration movements are required, and that it is simple to implement. However, placing the sensors on the body so that predefined sensor axes correspond to functional joint axes is error-prone even for experienced medical personnel and even more so when patients themselves attach the sensors. In a study with three operators, Bouvier et al. [17] report reproducibility in the range of 4 to 12 and agreement with OMC in the range of 8 to 23 .
An example of an augmented data method for anatomical calibration is the use of an additional custom device equipped with an IMU that is used to determine the sensor orientation with respect to anatomical landmarks [18,19].
The third approach is to ask the subject to assume precisely defined postures or perform a sequence of precisely defined motions. In the simplest form, this consists of a single pose calibration, often in the N-pose or T-pose [20,21,22,23], and requires magnetometers in order to be able to define two axes from one pose. A magnetometer-free alternative is to use two poses, e.g., one standing up and one lying down [24], or to derive the anatomical axes from angular rate measurements of precisely defined motions, typically around the functional axes of the joint [25,26,27]. Often, both approaches are combined, and one axis is derived from a static pose and one from a functional motion. Those hybrid approaches have been demonstrated for the upper body [28,29] and lower body [30,31,32]. For thorax and lumbar joint angles, however, a recent study by Cottam et al. [33] found that calibration via functional motions did not improve accuracy in comparison to relying on manual sensor placement. Bouvier et al. [17] observe similar accuracy for precise attachment and for various calibration approaches based on precise poses and motions and point out that accuracy depends more on the rigor of the experimental procedure and operator training than on the calibration method. Furthermore, performing those motions can be tedious for the subject, especially considering that a precise execution is required. For patients with motor disabilities, performing precise motions can be hard or impossible. Even after solving those obstacles, the main drawback of those methods is that the accuracy of the calibration depends on the accuracy of performing the motion. An elegant recent approach is to use the actual motions of interest for calibration, e.g., during cycling [34] or walking [35]. However, this is only feasible in a limited amount of applications and relies on strong assumptions on the analyzed motions.
In many cases, e.g., clinical applications, it would render the use of IMUs much more practical if both a precisely known attachment and precisely specified calibration poses and motions could be avoided by determining the sensor-to-segment orientations from arbitrary motions, usually by relying on kinematic constraints of biomechanical models. This was demonstrated for the knee joint by exploiting a kinematic constraint in the angular rates of (approximate) hinge joints [4,11]. Furthermore, it was shown that extending this constraint for a combined optimization of a three-segment chain improves robustness [36] and that other methods, such as principal component analysis [37] and factor graph optimization [38,39], can be used to exploit hinge joint constraints. In [5,40], the gyroscope-based hinge joint constraint introduced in [11] and an accelerometer-based constraint are combined with an elaborate sample selection strategy, and in [41], both constraints are analyzed for observability of the joint axis. Taetz et al. [42] introduce an approach based on sliding window weighted least squares optimization that uses hinge-joint and range-of-motion constraints and a body-shape prior to simultaneously estimate the sensor-to-segment orientation along with the body motion. Zimmermann et al. [9] demonstrate that deep learning can be used for lower body anatomical calibration with just two seconds of walking data.
For anatomical calibration based on arbitrary motions of 2-DoF joints, the existing work is limited. Müller et al. [6] introduce a gyroscope-based kinematic constraint for 2-DoF joints such as the elbow. Norden et al. [43] demonstrate that the same constraint can be employed for real-time estimation of hip and knee joint axes. However, the constraint used in both [6,43] assumes knowledge of the relative sensor orientation and therefore requires magnetometers. This poses a severe limitation for the applicability of those methods in indoor environments [44] and implies that temporary magnetic disturbances during calibration can lead to wrong axis estimates and thus permanently deteriorate the accuracy of the obtained joint angles. In [7], we presented first results of a magnetometer-free method that overcomes those restrictions by simultaneously estimating the heading offset.

3. Kinematic Model of 2-DoF Joints

The methods proposed in the present contribution perform automatic anatomical calibration for joints with two degrees of freedom (DoF). Those methods are suitable for any 2-DoF joint and can be applied to a range of biomechanical or robotic 2-DoF joints. To improve comprehensibility, the following description of the kinematic model and the calibration method focuses on the human elbow joint as an exemplary joint, which is later also used in the experimental evaluation.
Furthermore, even though in the following we always only consider two body segments connected by a single joint, the proposed methods can be used to analzye longer kinematic chains consisting of multiple segments. In this case, the calibration methods can be applied to each pair of segments that are connected by a 2-DoF joint.
Figure 2 shows an anatomical model of the elbow joint as an exemplary biological 2-DoF joint. This joint can perform two functional motions. Flexion and extension (FE) are performed by the humeroulnar joint, while pronation and supination (PS) are the result of the radius pivoting around the ulna.
As an approximation, we can model this joint—as well as any other 2-DoF joint—as a kinematic chain consisting of two hinge joints and one fixed rotation in between, as depicted in Figure 3. Including the fixed rotation, the sequence of rotations consists of flexion and extension (FE), a fixed carrying angle [45], and pronation and supination (PS).
We use unit quaternions to denote rotations and orientations [46]. In the context of quaternion multiplication, which we denote by ⊗, we implicitly regard 3D vectors as pure quaternions. Square brackets specify the coordinate system in which a vector is expressed, for example, [ ω 1 ] E is the gyroscope measurement of IMU S 1 transformed into frame E , i.e., [ ω 1 ] E = q E S ω 1 q E S 1 . Here, the left upper and lower indices denote the frames between which the quaternion rotates. Quaternions that represent the rotation of an angle α R around the axis v R 3 are written as α @ v : = cos α 2 v v sin α 2 .
We can use this notation to mathematically express the orientation of the forearm B 2 relative to the upper arm B 1 using the FE joint angle α ( t ) , the carrying angle β 0 , and the PS angle γ ( t ) as
q B 1 B 2 = α ( t ) @ j 1 β 0 @ j 1 × j 2 γ ( t ) @ j 2 .
The International Society of Biomechanics (ISB) [45] also recommends this joint model for the elbow and precisely defines coordinate systems B 1 and B 2 so that j 1 B 1 = 0   0   1 and j 2 B 2 = 0   1   0 . When using this definition, the joint angles are intrinsic z - x - y Euler angles of q B 1 B 2 . Please note that this also means that the axis j 1 (FE) is fixed in the coordinate system of a sensor attached to the upper arm, while the axis j 2 (PS) is fixed in the coordinate system of a sensor attached to the forearm.
Instead of using regular Euler angles, we could consider modeling a 2-DoF joint with axes that are all potentially non-orthogonal (including the carrying angle axis). However, as Appendix A shows, any generic model with non-orthogonal axes can also be expressed using standard z - x - y Euler angles by redefining the segment coordinate systems accordingly. This means that the choice of z - x - y Euler angles according to the ISB recommendations [45] does not restrict the generality of the proposed methods. Moreover, note that the orientation of the IMUs on the body segments is independent of this definition. The goal of anatomical calibration is to determine the fixed coordinates j 1 and j 2 of the functional joint axes in the local coordinate systems of the respective IMUs.

4. Proposed Methods

Two IMUs S 1 and S 2 are placed on the subject in unknown orientations, one on each body segment connected by the 2-DoF joint (i.e., in case of the elbow, one on the upper arm and one on the forearm). Assume that we can estimate the sensor orientation quaternions q E S 1 ( t k ) , q E S 2 ( t k ) relative to a common inertial frame E . We also measure the angular rates ω 1 ( t k ) R 3 , ω 2 ( t k ) R 3 of the IMUs, in their respective local coordinate systems. All measurements are sampled at times t k = k T s , k { 1 , 2 , , N } , T s R > 0 . Note that the assumption of a common inertial frame E is restrictive in practice as it assumes 9D sensor fusion in a perfectly homogeneous magnetic field and will later be dropped.
In the following, we derive two different kinematic constraints for 2-DoF joints, one based on the joint rotation and one based on the relative segment orientations. Both constraints are suitable for 6D sensor fusion with unknown heading offset. Given a short sequence of recorded IMU data, we use the Gauss–Newton algorithm to determine the joint axes coordinates in the sensor frame and the heading offset that best fit either the rotation-based or the orientation-based constraint in a least-squares sense. We use these joint axes coordinates to determine segment orientations from the sensor orientations and use the heading offset to align the reference frames of the orientations. From this result, we calculate the relative segment orientation, which we then decompose via Euler angles to obtain magnetometer-free estimates of the joint angles.

4.1. Rotation-Based Kinematic Joint Constraint

As shown in Section 3, a 2-DoF joint cannot perform arbitrary joint rotation in all directions. Instead, rotation is only possible around the two joint axes. In the following, we will investigate how this translates to a kinematic constraint in the angular rates measured by the two IMUs. We will later exploit this constraint to estimate joint axes from arbitrary joint motion.
Using the addition theorem for angular velocities, we express the relationship between the gyroscope measurements ω 1 ( t k ) and ω 2 ( t k ) as
ω 2 E = ω 1 E + ω j 1 j 1 E + ω j 2 j 2 E .
The scalars ω j 1 and ω j 2 are the rotation rates of the joint around the respective joint axes. In case of joints with two degrees of freedom according to the model in Figure 3, this corresponds to the anatomical joint motions, i.e., in case of the elbow, ω j 1 is the FE angular rate and ω j 2 the PS angular rate. This means that the angular rate ω 2 measured by the forearm IMU S 2 is composed of three components:
  • The common rotation of the whole arm, also observed by IMU S 1 as ω 1
  • The FE rotation around j 1
  • The PS rotation around j 2 .
Note that the carrying angle does not appear, since it is time-invariant. Furthermore, note that in (2), the angular rates and joint axes are transformed into a common coordinate system, here E .
For hinge joints, in [4], the following constraint has been derived from (2):
ω 1 × j 1 ω 2 × j 2 = 0 .
Since this version of the constraint only uses quantities given in local sensor coordinates, it is independent of sensor orientations with respect to a fixed frame and thus not affected by magnetic disturbances.
For joints with two degrees of freedom, we need to know the relative sensor orientation or sensor orientations with respect to a common fixed frame. In order to derive a similar constraint from (2) for 2-DoF joints, we calculate the scalar product with the normalized axis j 1 E × j 2 E on both sides, i.e.,
ω 2 E ω j 2 j 2 E · j 1 E × j 2 E j 1 E × j 2 E = ω 1 E + ω j 1 j 1 E · j 1 E × j 2 E j 1 E × j 2 E ,
and employ the fact that a · ( a × b ) = a · ( b × a ) = 0 . This yields
ω 1 E ω 2 E · j 1 E × j 2 E j 1 E × j 2 E = 0 .
Note that normalizing the axis was found to improve robustness compared to the constraint presented in [47].
For perfect 2-DoF joints and ideal IMU measurements, this constraint must be fulfilled for each sampling instant. For biological joints, and when taking soft tissue motion and measurement errors into account, the constraint is still valid in a least-squares sense when considering a short motion sequence consisting of multiple samples.
However, the constraint as formulated in (5) uses the reference frame E and is only suitable for use in combination with 9D inertial orientation estimation, i.e., with the use of magnetometers. Since magnetic fields are often severely disturbed [44], we want to avoid using magnetometer measurements and therefore only employ 6D sensor fusion to estimate the sensor orientations, e.g., using the VQF algorithm [48]. This implies that the heading of the estimated orientations is not well-defined. More precisely, this can be described by the estimated orientations q E 1 S 1 and q E 2 S 2 being given in different global reference frames E 1 and E 2 , which are rotated around the vertical global z-axis, i.e.,
q E 1 E 2 = δ ( t ) @ 0   0   1 = cos δ ( t ) 2 0 0 sin δ ( t ) 2 .
The heading offset δ ( t ) has an unknown initial value and then slowly drifts due to gyroscope bias [49]. Please note that both E 1 and E 2 have some unknown heading offset with respect to a fixed frame E used in 9D sensor fusion and defined by gravity and the Earth’s magnetic field. However, knowing those individual offsets is not necessary for calculating relative orientations and joint angles.
We take the heading offset into account by evaluating the constraint (5) in one of the slowly-drifting global frames (here E 1 ), i.e.,
ω 1 E 1 ω 2 E 1 = : ω rel · j 1 E 1 × j 2 E 1 j 1 E 1 × j 2 E 1 = : j n / j n = 0 .
This version of the constraint implicitly depends on δ , as we need the quaternion q E 1 S 2 = q E 1 E 2 ( δ ) q E 2 S 2 to transform ω 2 and j 2 to E 1 coordinates. This means that instead of (5) we can use (7) with magnetometer-free 6D orientations and that, in addition to the joint axes coordinates, we also identify the current heading offset δ ( t ) as an additional parameter.

4.2. Orientation-Based Kinematic Joint Constraint

As an alternative, we derive a second kinematic joint constraint. In contrast to the constraint introduced in the previous section, this constraint is not based on the joint rotation but on the joint orientation, i.e., the relative orientation between the two body segments connected by the joint.
As in Section 4.1, assume that we have 6D sensor orientation estimates q E 1 S 1 ( t k ) , q E 1 S 2 ( t k ) , e.g., estimated with the VQF algorithm [48]. As before, our aim is to identify j 1 S 1 , j 2 S 2 , and the heading offset δ ( t ) . For any given estimate of those values, we are able to calculate joint angles. If the joint follows the 2-DoF joint model introduced in Section 3, the following statement holds true: With the correct sensor-to-segment orientation and the correct heading offset, the second joint angle (for the elbow joint: the carrying angle) is constant.
Mathematically, we can formulate this by calculating the joint orientation and then decomposing this orientation into Euler angles. First, we determine the shortest-possible rotations that align the estimated sensor axes with the joint axes:
q S 1 B 1 = arccos 0   0   1 · j 1 S 1 @ 0   0   1 × j 1 S 1
q S 2 B 2 = arccos 0   1   0 · j 2 S 2 @ 0   1   0 × j 2 S 2
and calculate the rotation quaternion between the reference frames
q E 1 E 2 = δ @ 0   0   1 .
Using those quaternions we calculate the joint orientation
q B 1 B 2 = q B 1 S 1 q S 1 E 1 q E 1 E 2 q E 2 S 2 = q S 1 S 2 q S 2 B 2 ,
which depends on the sensor orientations, the estimated joint axes j 1 and j 2 , and the heading offset δ .
Therefore, q B 1 B 2 = : q w   q x   q y   q z can be calculated from the measured data and the estimated parameters. The second intrinsic z - x - y Euler angle of this quaternion, i.e., the estimated carrying angle, is
β ^ 0 = arcsin 2 q w q x + 2 q y q z .
Due to the joint constraint, this angle has to be constant over the whole measurement window, i.e., with the fixed constant carrying angle β 0 ,
arcsin 2 q w q x + 2 q y q z = β 0 .
Similar to (7), the constraint (13) can be used to identify the joint axes coordinates and the heading offset δ . Additionally, unless the actual value of the carrying angle β 0 is known, β 0 has to be identified as an additional parameter.

4.3. Parametrization of Joint Axes

The aim of the anatomical calibration is to identify the joint axes j 1 R 3 and j 2 R 3 with j i = 1 , i = 1 , 2 . Parametrizing the axes as Cartesian vectors in an optimization problem is inconvenient as we would need an additional constraint to ensure unit length. Therefore, we employ spherical coordinates and represent each axis by two parameters φ i and θ i , e.g.,
j i = sin θ i cos φ i   sin θ i sin φ i   cos θ i , i = 1 , 2 .
With the parametrization given in (14), j i φ i = 0 if sin θ i = 0 . To avoid this singularity, we introduce an alternative spherical representation of the same joint axis direction, as shown in Figure 4. During optimization, we always use a parametrization with | sin θ i | 0 by converting the axis to Cartesian coordinates and then to the other representation whenever the current representation comes close ( < 30 °) to that singularity.
Note that both spherical parametrizations represent exactly the same 3D vector. Therefore, changing the parametrization in between optimization iterations does not influence the joint axis vectors or the value of the cost function but ensures that the derivatives with respect to the joint axes are always sufficiently sensitive.

4.4. Cost Function and Optimization

Sample selection is performed to fill a sample buffer of M data sets
q E 1 S 1 ( t k ) , q E 2 S 2 ( t k ) , ω 1 E 1 ( t k ) , ω 2 E 2 ( t k )
for the rotation-based constraint and
q E 1 S 1 ( t k ) , q E 2 S 2 ( t k )
for the orientation-based constraint from the 6D orientation quaternions and angular rates measured at a (potentially very high) sampling frequency of f s . The proposed method employs a regular (equidistant) sample selection strategy that stores one sample every 0.05   s . Note that this method can easily be extended by more sophisticated sample selection strategies since the optimization procedure does not require equidistant sampling.
In order to determine the joint axes and heading offset that best satisfy the rotation-based constraint (7) in a least-squares sense, we define the error for each sampling instant t k as
e ( t k ) : = ω rel ( δ ) · j n ( Φ ) j n ( Φ ) ,
with the parameter vector Φ : = θ 1   φ 1   θ 2   φ 2   δ . Note that we assume the heading offset δ ( t ) to be constant for all samples in the current buffer, which is valid for short window lengths.
Similarly, for the orientation-based constraint (13), we define the error as
e ( Φ ) : = arcsin 2 q w q x + 2 q y q z β 0 ,
with a parameter vector Φ : = θ 1   φ 1   θ 2   φ 2   δ   β 0 that additionally includes the carrying angle.
To estimate the joint axes j 1 and j 2 and the heading offset δ given a set of M samples, we find the parameter vector Φ ^ that minimizes the error of either the rotation-based constraint or the orientation-based constraint using the Gauss–Newton algorithm [50]. Appendix B gives details on the optimization algorithm, provides analytical expressions for the gradients of the cost functions, and introduces a moving window approach for employing the proposed method in real-time applications. As a result of the optimization step, we obtain the joint axes j 1 and j 2 in the coordinates systems of sensors S 1 and S 2 , respectively, and the heading offset δ between the reference frames E 1 and E 2 .

4.5. Joint Angle Calculation

Using the optimization results, we calculate FE and PS joint angles based on the ISB recommendations [45]. Those joint angles are defined as intrinsic z - x - y Euler angles of the forearm B 2 relative to the upper arm B 1 , i.e., q B 1 B 2 , with B 1 and B 2 being the segment coordinate systems as defined in [45].
From 6D inertial orientation estimation, we obtain the sensor orientation quaternions q E 1 S 1 and q E 2 S 2 . After performing the optimization, we know the coordinates of both joint axes j 1 and j 2 in local sensor coordinates and the heading offset δ . Note that additional knowledge is needed to determine the absolute value of the joint angles without any offset—for example, for the elbow joint, which joint orientation corresponds to zero flexion and zero pronation is only a matter of convention and not an inherent property of the 2-DoF joint. To obtain offset-free angles, we employ reference values of the FE and PS joint angles at one arbitrary time instant t ref , e.g., obtained from a known pose or by exploiting the maximum range of motion of the joint. With those values, the joint angles can be calculated by the algorithm described below:
First, we calculate q E 1 E 2 via (6) and use this to obtain q E 1 S 2 = q E 1 E 2 q E 2 S 2 . Then we determine rotations that ensure that the identified joint axes match the joint axes defined in [45]:
q S 1 B 1 = arccos ( [ 0 0 1 ] · j 1 ) @ [ 0 0 1 ] × j 1
q S 2 B 2 = arccos ( [ 0 1 0 ] · j 2 ) @ [ 0 1 0 ] × j 2 .
Using those, we calculate the relative segment orientation
q B 1 B 2 = q E 1 S 1 q S 1 B 1 1 q E 1 S 2 q S 2 B 2 .
For any quaternion q = : q w   q x   q y   q z , the z - x - y Euler angles ( α , β , γ ) can be calculated as
α = atan2 ( 2 q w q z 2 q x q y , q w 2 q x 2 + q y 2 q z 2 ) ,
β = arcsin ( 2 q w q x + 2 q y q 3 ) ,
γ = atan2 ( 2 q w q y 2 q x q z , q w 2 q x 2 q y 2 + q z 2 ) .
By calculating z - x - y Euler angles ( α , β , γ ) of q B 1 B 2 , we obtain the FE angle α and the PS angle γ that only differ from the well-defined joint angles according to [45] by a constant offset that depends on the actual placement of the IMUs.
We can eliminate this offset by exploiting knowledge of the actual joint angles α ref and γ ref at t = t ref . The segment-to-sensor orientations
q S 1 B 1 = q S 1 B 1 α ( t ref ) α ref @ [ 0 0 1 ] ,
q S 2 B 2 = q S 2 B 2 γ ref γ ( t ref ) @ [ 0 1 0 ]
allow us to calculate q B 1 B 2 = ( q E 1 S 1 q S 1 B 1 ) 1 q E 1 S 2 q S 2 B 2 . The Euler angles ( α , β 0 , γ ) of q B 1 B 2 are the offset-free FE and PS joint angles α and γ , respectively, and the carrying angle β 0 (cf. Figure 3), which is almost constant and rarely reported [45].
To further improve the proposed method, in Appendix C, we introduce an optional extension that allows for the rotation-based constraint to be used when only orientation data are available (e.g., if on-chip sensor fusion is used), add a low-pass filter to reduce the influence of soft tissue motion artifacts, and discuss options for how to resolve the ambiguity in the signs of the joint axes.

5. Experimental Evaluation

We evaluate the proposed magnetometer-free anatomical calibration and joint angle calculation methods based on two experiments.
The first experiment is designed to evaluate if the obtained joint axis estimates are plausible and consistent. To this end, IMU data from two different motions are recorded from five subjects and a mechanical joint, while carefully attaching the sensors in a known orientation. Each trial is split into overlapping time windows to which the anatomical calibration methods are applied. The obtained joint axis estimates are compared to the axes obtained by the more restrictive method of careful manual sensor placement.
The second experiment is designed for the evaluation of the accuracy of the obtained joint angles with the proposed self-calibrating magnetometer-free joint angle calculation method. This experiment consists of recordings of natural everyday life motions of two subjects. It uses marker-based OMC as a reference, which allows for the comparison of the obtained joint angles to joint angles obtained from optical markers and from a conventional 9D IMU-based approach. As a further validation step, we consider the variability of the expected-to-be-constant carrying angle as a metric for how well the estimated joint axes describe the functional joint motion.
Note that in all experiments, the sensors are carefully attached in a known orientation to facilitate a plausibility check of the obtained results. To still verify that the proposed methods do not make assumptions regarding the sensor orientation, we simulate a random sensor attachment by multiplying all gyroscope and accelerometer measurements with a random rotation matrix that is different for each time window.
The extension for on-chip sensor fusion introduced in Appendix C. is always used, i.e., the angular rates used for evaluating the rotation-based kinematic constraint are derived from the orientation estimates. Since the impact on the results is negligible, the results obtained using the actual gyroscope measurements are not shown separately.

5.1. Robustness of Joint Axis Estimation

The first experiment is performed to answer the following two research questions:
  • Are the estimated joint axes plausible, i.e., do they agree with the values expected based on careful manual placement?
  • Are the estimated joint axes consistent, i.e., do we always obtain the same result when using different parts of the trial?
Data from five healthy subjects is recorded. The subjects are adult volunteers with no history of upper-limb injury that might affect upper-limb movement. Inertial sensors (Xsens MTw, Xsens Technologies B.V., Netherlands) are placed on the upper arm close to the elbow and on the forearm close to the wrist. The sensors are placed in a defined orientation on the skin so that one local sensor axis coincides roughly with the functional joint axis.
We define two different motions:
  • The simple motion consists of FE of the elbow and PS of the forearm, performed alternatingly while keeping the longitudinal axes of upper arm and forearm parallel to the sagittal plane.
  • For the complex motion, we ask the subject to perform random combinations of FE and PS, allowing for 3D rotation of the shoulder including humeral rotation.
Each subject performs both motions for approximately one minute.
In addition to the five human subjects, an additional data set is recorded using a mechanical joint. This joint has dimensions similar to the human arm and consists of two hinge joints as shown in Figure 3. During the recordings, the joint was held in hand and moved in a way that mimics the motions performed by the five subjects.
For each recording, the proposed methods are used on 21 partially overlapping moving windows w, w = 1 , 2 , , 21 , of length 10 s with data sets recorded every 0.05   s . Note that we will later investigate the effect of window length and sampling time and show that this window length is usually sufficient to identify the joint axes and that collecting data sets more frequently does not significantly improve the robustness.
Since the only available ground truth are approximate axis coordinates that we know due to the orientation in which the sensor was attached, we define suitable evaluation metrics that allow us to quantify the consistency and plausibility of the estimates. See Figure 5 for an illustration of the definitions. First, denote the estimated joint axes j w , with w being the index for the estimation window. For a compact notation, we omit the segment index, denoting whether the axis is a flexion and extension (FE) axis or a pronation and supination (PS) axis. To assess if the estimates are consistent, we define the variability angle
ε w = ( j w , j mean ) ,
where denotes the positive angle between two 3D vectors and
j mean = 1 21 w = 1 21 j w
is the mean of all estimates. In other words, ε w is the angular deviation between the estimate for window w and the mean of all estimates. If this angle is always small, the estimation results agree well for all time windows.
To also check if this result is plausible, we introduce the misalignment angle
α = ( j mean , j att ) ,
with j att being the joint axis obtained via careful manual sensor attachment. Therefore, α is the angle between the mean estimation result and the axis obtained via manual sensor attachment. While precise manual sensor attachment is hard and error-prone, we can at least expect both axes to coincide roughly and therefore consider the result plausible if α 30 ° .
Figure 6 shows the results obtained in the first experiment with the rotation-based and orientation-based constraints. In general, we see that the proposed methods for anatomical calibration produce good results: with both constraints, the methods are able to determine plausible FE and PS joint axes from 10-second recordings, and in all cases except for Subject 2 with the orientation-based constraint and the complex motion, the median of the variability angle ε w is below 10°. In other words, almost all time windows lead to axis estimates within the expected range. As a main result, it is noticeable that the rotation-based constraint performs better than the orientation-based constraint and that a slight increase in the variability angles ε w can be observed in the complex motion. This is likely due to soft tissue motion caused by humeral rotation. Furthermore, the randomness of the complex motion can lead to longer periods of motion that do not excite both degrees of freedom of the joint.
The results obtained with the mechanical joint agree very well with the expected axes ( α 2 ° ), and the joint axis estimates are more consistent than for the biological elbow joints. This is to be expected since precisely attaching the sensors is easier with the mechanical joints, there are no soft tissue motion artifacts, and the mechanical joint constructed with two hinge joints follows the kinematic model (Figure 3) more precisely than the human elbow.
To facilitate an intuitive understanding of the results, Figure 7 shows the estimated and expected joint axes in a 3D visualization of the respective IMU coordinate systems. We can see that, for both FE and PS, the joint axis estimates of all overlapping time windows agree well. While the PS axis agrees very well with the axis expected due to sensor alignment, a systematic disagreement of ∼17° between the estimated and expected axes is noticeable. Since all estimates are very consistent, this is most likely due to an imprecise manual attachment of the sensor, causing the y-axis to disagree with the functional PS axis of the joint. In general, we see in Figure 6 that the misalignment angle α is larger for the FE axis j 1 than for the PS axis j 2 . This is plausible, given the fact that the longitudinal x-axis of the IMU is much easier to precisely align with the longitudinal axis of the forearm, whereas aligning the y-axis of the upper arm IMU, corresponding to a much shorter dimension of the sensor case, with the functional FE axis was found to be much harder while conducting the experiments.
However, it is noticeable that also for the variability angle ε w , the values are typically much larger for the FE axis than for the PS axis, indicating that it is not only harder to perform a precise manual alignment of this axis but it is also harder for the proposed methods to accurately and consistently estimate this axis. This effect is especially pronounced for the complex motion.
To investigate one potential effect, we take a closer look at Subject 2 and the rotation-based constraint. In the complex motion trials, Subject 2 stands out as the range of motion of the upper arm IMU is significantly lower than for the other subjects (more specifically, the mean pairwise orientation difference within a window is 16° for Subject 2 and between 46° and 56° for the other four subjects) while the FE axis deviations are larger than for all other subjects. In Figure 8, we visualize the estimated FE joint axes (Figure 8a) and notice that all estimates lie approximately within the y-z-plane of the sensor. During the trial, the x-axis of the upper arm IMU was approximately vertical, i.e., the y-z-plane is approximately horizontal. When calculating the angle of the joint axis in this y-z-plane and plotting this angle together with the estimated heading offset δ in Figure 8b, we notice that there is an obvious correlation.
This correlation can be explained when considering the kinematic constraint in (7) for the special case in which the upper arm does not move, i.e., the orientation q E 1 B 1 is constant, ω 1 = 0 , and the coordinates of j 1 E 1 are constant. In this case, there is no difference between a change in δ , i.e., the heading offset between E 1 and E 2 , and a rotation of the joint axis estimate j 1 around the vertical axis. The observation in Figure 8 is likely caused by the real situation being too close to this singular case. To mitigate this, care should be taken to avoid calibration motions during which one of the body segments is always stationary.
In summary, the evaluation of the first experiment has shown that the proposed methods yield consistent and plausible joint axis estimates. The rotation-based constraint performs better than the orientation-based constraint. To ensure that the axes converge, the subject’s motion should include sufficient motion from both the upper arm and the forearm.
To further enrich the evaluation, we use the data from the first experiment to investigate the influence of the the cutoff frequency for the low-pass filter, the sample selection frequency, and the window duration. The results are presented in Appendix D.

5.2. Accuracy of Magnetometer-Free Joint Angle Tracking

The second experiment is performed to validate that the proposed methods can be used to obtain accurate elbow joint angles for functional motions without relying on a precisely known sensor attachment and without relying on the magnetic field. An optical motion capture system (Vicon Motion Systems Ltd. UK) is used as reference. In addition to the two inertial sensors positioned as in the previous experiment, optical markers are placed on bony landmarks in a way that facilitates joint angle measurement as recommended by the ISB [45]. Note that by placing reflective markers on anatomical landmarks and not, like many previous works, on the IMUs, we ensure that we compare against the gold standard for measuring joint angles, taking soft tissue motion into account.
Two healthy adult volunteers, with no history of upper-limb injury that might affect upper-limb movement, performed two motions:
  • During the pick-and-place motion, the subject placed a small box in a sequence of predefined orientations and locations on a table.
  • The drinking motion consists of the subject repeatedly placing the hand on a table, grabbing a cup, simulating a drinking motion, and then placing the cup back on the table.
Each of the two subjects repeats the two motions four times (twice slow and twice fast), resulting in a total of 16 trials, with durations between 14 and 44 s .
For each trial, calculate four different joint angles.
  • The OMC-based ground truth angles are derived from the optical markers placed on anatomical landmarks and calculated as described in [45].
  • Conventional IMU-based joint angles are calculated using 9D sensor fusion (with the VQF algorithm [48]), i.e., using the magnetic field to determine the heading, and relying on the careful placement of the sensors on the body.
  • In contrast, the proposed IMU-based joint angles use 6D sensor fusion (with the VQF algorithm [48]), and the joint axes and heading offset are identified from the trial motion using the
    • rotation-based joint constraint and the
    • orientation-based joint constraint.
Note that the application of the proposed methods tests the most challenging case, i.e., we use a standard everyday motion to identify both the joint axes and the heading offset without requiring a separate calibration phase.
To determine the sign and the required offset for the joint angles, we use the OMC-based angles. The IMU-based joint angles obtained by the different methods are compared to the OMC-based ground truth, and the RMSE is calculated. Results from all trials are shown in Figure 9.
When comparing the two variants of the proposed method, we see that the rotation-based constraint outperforms the orientation-based constraint. This coincides with the results of the first experiment presented in Section 5.2. It is noteworthy that for many trials the accuracy achieved with both constraints is comparable and the difference in the mean accuracy is caused by several outliers obtained with the orientation-based constraint, which is consistent with the lower robustness observed for this constraint in Figure 6.
However, when considering the results obtained with the proposed method and the rotation-based constraint, the accuracy is similar to the conventional 9D IMU-based method. For the FE angles, the mean RMSE of 2.1° is 0.2° lower than for the conventional method, while for the PS angles, the mean RMSE of 3.7° is 0.1° larger. In contrast to the results with the orientation-based constraint, there are no outliers, and the maximum RMSE of the proposed method and the conventional method is comparable. Note that the conventional method relies on properly calibrated magnetometer measurements, a controlled environment without ferromagnetic material or electric devices, and a precise and known sensor attachment and is therefore much more restrictive than the proposed magnetometer-free plug-and-play method.
To illustrate the performed motions and the obtained results, Figure 10 shows the OMC ground truth joint angles, the conventional IMU-based joint angles, and the proposed joint angles with the rotation-based constraint for two exemplary trials. In several short time periods, ground truth data are not available due to occlusion, i.e., at least one of the required markers could not be tracked by the OMC system. Those phases were excluded from the RMSE calculation. As can be seen, the joint angles obtained with the proposed plug-and-play method agree well with both the conventional IMU-based joint angles and the OMC-based ground truth angles.
Note that the joint constraint is only used for identifying the joint axes and that the joint angle calculation uses standard Euler angles and therefore not directly restricted by this constraint. As a result, the obtained carrying angles, which are also shown in Figure 10 but rarely reported in practice, are not perfectly constant.
We can use the carrying angle as an indicator of how well the measured joint motion adheres to the 2-DoF joint model (Figure 3). For a perfect 2-DoF joint, we would expect a perfectly constant carrying angle, while a 3-DoF joint will show significant movement in all three joint angles. Furthermore, if the joint is in fact a 2-DoF joint but the joint axis estimates are wrong, the Euler decomposition will cause variability in all three joint angles.
Therefore, we calculate the standard deviation of the carrying angle as a measure of variability, which is shown in Figure 11 for all 16 trials and all four angle calculation methods. With both constraints, the median of the standard deviations is slightly lower than for the conventional IMU-based joint angles and the OMC-based ground truth. This indicates that the joint axis estimates automatically obtained with the proposed method are better suited to describe the functional motion of the joint than the axes obtained via careful IMU placement and the axes obtained via the placement of optical markers on anatomical landmarks. This agrees with previous research showing that anatomical joint axes defined based on anatomical landmarks do not coincide with the rotation axes of functional joint motion [51]. For joint angle calculation, the use of functional rotation axes seems preferable in order to minimize kinematic cross-talk.
In summary, the evaluation of the second experiment has shown that for the challenging case of using recordings of everyday motions for calibration, the proposed methods are able to obtain joint angles with the same accuracy as a conventional IMU-based approach, while not relying on precise sensor placement or magnetometer measurements. As also shown via the first experiment, the rotation-based constraint performs better than the orientation-based constraint and should therefore be used for anatomical calibration.

6. Conclusions

The present contribution introduced methods for automatic anatomical calibration for 2-DoF joints, such as the elbow, that do not require the subject to perform precise calibration movements but instead work on arbitrary motions by exploiting one of two kinematic constraints: a rotation-based constraint for the angular rates and an orientation-based constraint. The methods do not make use of magnetometer measurements. Instead, the heading offset is simultaneously estimated via the kinematic constraint, which facilitates plug-and-play magnetometer-free joint angle estimation.
The proposed methods were evaluated using two experiments. The first experiment, without OMC ground truth, showed that the proposed methods yield consistent and plausible joint axis estimates from only ten seconds of motion data. The second experiment, performed with OMC as ground truth, showed that the proposed plug-and-play method can estimate accurate joint angles while being much less restrictive than a conventional IMU-based approach. In both experiments, the rotation-based joint constraint performed better than the orientation-based joint constraint.
The proposed methods overcome mounting and calibration restrictions and facilitate magnetometer-free motion tracking. Therefore, they are highly suitable for indoor environments and improve the practical usability of IMU-based motion tracking in many clinical and biomedical applications.
To further advance the proposed methods, it should be evaluated if combining the rotation-based and the orientation-based constraint can increase the robustness and consistency of the joint axes estimates. Furthermore, introducing and evaluating metrics to quantify the estimation uncertainty and methods for automatic (re-)triggering of the calibration when suitable motions are detected are important next steps to increase the usability of the method.

Author Contributions

Conceptualization, D.L. and T.S.; methodology, D.L. and T.S.; software, D.L.; validation, D.L.; formal analysis, D.L. and T.S.; investigation, D.L.; resources, T.S.; data curation, D.L.; writing—original draft preparation, D.L.; writing—review and editing, D.L., I.W. and T.S.; visualization, D.L.; supervision, T.S.; project administration, T.S.; funding acquisition, T.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work has partially been conducted in the project BeMobil, which is supported by the German Federal Ministry of Research and Education (FKZ 16SV7069K).

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and approved by the ethics committee of the Berlin Chamber of Physicians (Eth-40/15).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

We thank Johanna Carstensen and Lars Nienerowski for their skillful support in conducting the experiments and processing the data.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
6Dsensor fusion with gyroscope and accelerometer data
9Dsensor fusion with gyroscope, accelerometer, and magnetometer data
DoFdegrees of freedom
FEflexion and extension
IMUinertial measurement unit
ISBInternational Society of Biomechanics
MCPmetacarpophalangeal joint
OMCoptical motion capture
PSpronation and supination
RMSEroot mean square error

Appendix A. Transforming Any General 2D Joint Model to Euler Angles

The proposed methods for automatic anatomical calibration use z - y - x Euler angles to decompose the relative segment orientation into joint angles. This decomposition was chosen because it is recommended by the ISB for the elbow [45]. However, this choice is not restrictive in any way. In the following, we show that any joint model with two degrees of freedom can be transformed to fit the chosen Euler angle representation. For example, instead of using regular Euler angles, we could consider modeling a 2-DoF joint with axes that are all potentially non-orthogonal (including the carrying angle axis), i.e.,
q B 1 B 2 = α ( t ) @ j 1 β 0 @ j β γ ( t ) @ j 2 ,
or assume that the relative segment orientation is a sequence of two non-orthogonal rotations (which is a special case of the above model with β = 0 ). Furthermore, the joint model might include additional fixed rotations, similar to the carrying angle, at the beginning or at the end of the rotation sequence.
To capture all those possibilities, we start with a very general model of a joint with two degrees of freedom, described as the decomposition of the relative body segment orientation quaternion
q B 1 B 2 = q 1 α @ j 1 q 2 γ @ j 2 q 3 .
The 3D vectors j 1 and j 2 are arbitrary but constant joint rotation axes, α ( t ) and γ ( t ) are the two time-varying joint angles, and q 1 , q 2 and q 3 are arbitrary but constant rotations.
Without loss of generality, we can write α @ j 1 = q 4 α @ 0   0   1 q 4 1 and γ @ j 2 = q 5 α @ 0   1   0 q 5 1 , with some constant rotations q 4 , q 5 that rotate between the given joint axes and the z-axis and y-axis, respectively. Inserting this into (A2) gives
q B 1 B 2 = q 1 q 4 α @ 0   0   1 q 4 1 q 2 q 5 γ @ 0   1   0 q 5 1 q 3 .
Since we can decompose any quaternion into Euler angles, we can write
q 4 1 q 2 q 5 = α 0 @ 0   0   1 β 0 @ 1   0   0 γ 0 @ 0   1   0 .
Furthermore, we can define new body segment coordinate systems B 1 and B 2 :
q B 1 B 1 = q 1 q 4
q B 2 B 2 = q 5 1 q 3 .
Putting (A4), (A5) and (A6) into (A3) yields
q B 1 B 2 = α @ 0   0   1 q 4 1 q 2 q 5 γ @ 0   1   0
= α + α 0 @ 0   0   1 β 0 @ 1   0   0 γ + γ 0 @ 0   1   0 .
This represents z - x - y Euler angles as recommended for the elbow by [45], with a constant carrying angle β 0 . The time-varying joint angles in the generic model (A2) and in the Euler angle model (A8) are only shifted by constant offsets α 0 and γ 0 . Therefore, without loss of generality, all joints that can be represented with two sequential rotations around arbitrary but constant axes can be described using z - x - y Euler angles.

Appendix B. Details on the Optimization Procedure

Appendix B.1. Gauss–Newton Algorithm

To estimate the joint axes j 1 and j 2 and the heading offset δ given a set of M samples, we find the parameter vector Φ ^ that minimizes the sum of squares of either the error defined in (17) (for the rotation-based constraint) or (18) (for the orientation-based constraint), i.e.,
Φ ^ = arg min Φ t k B e ( t k ) 2 = arg min Φ e e ,
with e R M × 1 being the error vector and B denoting the set of sampling times t k in the buffer.
For any given parameter vector, we can evaluate the Jacobian J R M × 5 with
[ J ] i j = e i Φ j .
Analytical expressions for all elements of J that only depend on the parameters Φ and on the measurements are given in Appendix B.3 for the rotation-based constraint and in Appendix B.4 for the orientation-based constraint.
The Gauss–Newton algorithm [50] is used to minimize the error. Starting with an initial parameter vector Φ 0 , we iteratively obtain the estimate by
Φ i + 1 = Φ i + α p i with J J p i = J e ,
until convergence is achieved, with the iteration index i, the step direction p i , and the step length α = 1 . In between iterations, we switch from one joint axis representation to the other via Cartesian coordinates if | sin θ i | < 1 2 , i = 1 , 2 (cf. Figure 4). As a result of the optimization step, we obtain the joint axes j 1 and j 2 in the coordinates systems of sensors S 1 and S 2 , respectively, and the heading offset δ between the reference frames E 1 and E 2 .

Appendix B.2. Moving Window Approach for Real-Time Applications

Note that the proposed optimization method can not only be applied to recorded datasets but is also suitable for real-time application. In the simplest case, samples are saved while the subject performs a motion and afterward, the optimization is performed on the stored samples, and the resulting calibration parameters are applied to all subsequent samples. For an improved online implementation that continuously updates the axes estimates (if desired) and that starts to provide estimates as early as possible, the method can be extended to the following moving window approach:
  • New samples are continuously selected every 0.05   s and stored in a ring buffer containing M = 200 data sets, i.e., old data sets are automatically discarded.
  • As soon as the buffer is half-full, optimization starts.
  • One Gauss–Newton step is performed every time a sample is added to the buffer (to continuously update the solution while spreading the computational load over time).
Note that it is also possible to keep the parameters for the joint axes θ 1 , φ 1 , θ 2 , and φ 2 fixed after the initial estimate and only track the heading offset δ .

Appendix B.3. Gradient of Rotation-Based Cost Function

For efficient optimization using the rotation-based joint constraint introduced in Section 4.2, we need to calculate the elements of the Jacobian J , i.e.,
[ J ] i j = e i Φ j = ω rel · Φ j j n j n + j n j n · Φ j ω rel .
The derivative of the normalized axis is
Φ j j n j n = Φ j j n j n j n j n · Φ j j n j n 3 .
All necessary subsequent derivatives are detailed in the following. Note that, while j n depends on all parameters in Φ , the relative angular rate ω rel only depends on δ .

Appendix B.3.1. Derivative with Respect to the Joint Axes

We exploit the fact that the product rule holds for quaternion multiplication [52]. Similarly, we could argue that the rotation can be expressed using a rotation matrix and make use of the product rule for matrix multiplication.
j n θ 1 , φ 1 = q E 1 S 1 θ 1 , φ 1 j 1 q E 1 S 1 1 × j 2 E 1
j n θ 2 , φ 2 = j 1 E 1 × q E 1 S 2 θ 2 , φ 2 j 2 q E 1 S 2 1
Deriving the axes in local sensor coordinates with respect to θ and φ as defined in (14) is straightforward:
j i θ i = cos θ i cos φ i   cos θ i sin φ i   sin θ i ,
j i φ i = sin θ i sin φ i   sin θ i cos φ i   0 , i = 1 , 2 .
The same is possible for the alternative joint axis parametrization.

Appendix B.3.2. Derivative with Respect to the Heading Offset

Instead of quaternion multiplication, we can make use of Rodrigues’ rotation formula to express the transformation of a vector v R 3 from E 2 to E 1 , i.e.,
v E 1 = q E 1 E 2 v E 2 q E 1 E 2 1 = v E 2 cos ( δ ) + 0   0   1 × v E 2 sin ( δ )
= + 0   0   1 0   0   1 · v E 2 1 cos ( δ ) .
This allows us to calculate the derivatives
1 1 ω rel δ = δ ω 2 E 1 = ω 2 E 2 sin ( δ ) 0   0   1 × ω 2 E 2 cos ( δ )
=   0   0   1 0   0   1 · ω 2 E 2 sin ( δ )
and
1 1 j n δ = j 1 E 1 × δ j 2 E 1 with δ j 2 E 1 = j 2 E 2 sin ( δ ) +   0   0   1 × j 2 E 2 cos ( δ )
= +   0   0   1 0   0   1 · j 2 E 2 sin ( δ ) .

Appendix B.4. Gradient of Orientation-Based Cost Function

Analogously to the derivation in Appendix B.3, we now show how to calculate the elements of the Jacobian J for the orientation-based constraint introduced in Section 4.2, i.e.,
[ J ] i j = e i Φ j = Φ j ( arcsin 2 q w q x + 2 q y q z = : s ( θ 1 , φ 1 , θ 2 , φ 2 , δ ) β 0 ) ,
with q B 1 B 2 = : q w   q x   q y   q z .
Trivially, the derivative with respect to the fixed carrying angle β 0 is
e i β 0 = 1 .
For the derivatives with respect to the other parameters, we make use of the fact that
Φ j arcsin s ( Φ j ) = Φ j s ( Φ j ) 1 s ( Φ j ) 2
and that
Φ j s ( Φ j ) = 2 q x Φ j q w + q x q w Φ j + q y Φ j q z + q y q z Φ j .
To determine the derivative of the quaternion components q w , q x , q y , and q z , remember that the relative segment orientation q B 1 B 2 , as defined in (11), is the multiplicative concatenation of five quaternions:
q B 1 B 2 = q B 1 S 1 ( θ 1 , φ 1 ) q S 1 E 1 q E 1 E 2 ( δ ) q E 2 S 2 q S 2 B 2 ( θ 2 , φ 2 ) .
Since for each parameter, only a single of those five quaternions depends on the respective parameter, the other four quaternions are constant factors, i.e.,
θ 1 , φ 1 q B 1 B 2 = θ 1 , φ 1 q B 1 S 1 q S 1 E 1 q E 1 E 2 q E 2 S 2 q S 2 B 2
δ q B 1 B 2 = q B 1 S 1 q S 1 E 1 δ q E 1 E 2 q E 2 S 2 q S 2 B 2
θ 2 , φ 2 q B 1 B 2 = q B 1 S 1 q S 1 E 1 q E 1 E 2 q E 2 S 2 θ 2 , φ 2 q S 2 B 2 .

Appendix B.4.1. Derivative with Respect to the Joint Axes

The sensor-to-segment orientation for the first segment can be expressed as
q B 1 S 1 = cos ( ψ 2 ) sin ( ψ 2 ) v v , with ψ = arccos ( j 1 , z ) and v = j 1 × 0 0 1 = j 1 , y j 1 , x 0 .
For the scalar part of the quaternion,
θ 1 , φ 1 cos ψ 2 = 1 2 sin ψ 2 ψ θ 1 , φ 1
and
1 1 θ 1 , φ 1 ψ = j 1 , z θ 1 , φ 1 1 j 1 , z 2 .
The derivative of the vector part of the quaternion is
θ 1 , φ 1 sin ψ 2 v v = 1 v 2 v v sin ( ψ 2 ) θ 1 , φ 1 + sin ψ 2 v v θ 1 , φ 1 sin ψ 2 v v θ 1 , φ 1 ,
with
θ 1 , φ 1 sin ψ 2 = 1 2 cos ψ 2 ψ θ 1 , φ 1
and
1 1 θ 1 , φ 1 v = 1 v j 1 , y j 1 , y θ 1 , φ 1 j 1 , x j 1 , x θ 1 , φ 1 .
For the derivatives of the Cartesian joint axis vector j 1 with respect to θ 1 and φ 1 , refer to Appendix B.3.
The derivative with respect to θ 2 and φ 2 follows analogously for the second sensor-to-segment orientation
q S 2 B 2 = cos ( ψ 2 ) sin ( ψ 2 ) v v , with ψ = arccos ( j 2 , x ) and v = 0 1 0 × j 2 = j 1 , z 0 j 1 , x .

Appendix B.4.2. Derivative with Respect to the Heading Offset

The derivative of the heading offset quaternion
q E 1 E 2 = cos ( δ 2 ) 0 0 sin ( δ 2 )
with respect to the heading offset δ is
1 1 δ q E 1 E 2 = 1 2 sin ( δ 2 ) 0 0 1 2 cos ( δ 2 ) .

Appendix C. On-Chip Sensor Fusion, Soft Tissue Motions, and Axis Ambiguity

Appendix C.1. Extension to On-Chip 6D Sensor Fusion

Especially in wireless inertial sensor networks, it is desirable to perform on-chip sensor fusion, potentially with a high sampling rate of the gyroscopes, and then to only transmit the orientation quaternions at a regular (and typically much lower) sampling rate to the processing unit. However, the constraint (7) is based on angular rates, i.e., on the gyroscope measurements.
Instead of transmitting the gyroscope measurements as well, which requires extra bandwidth, increases power consumption, and might not be possible without changing hardware and/or the communication protocol, the angular rates can easily be approximated from the change of orientation
q S i ( t k 1 ) S i ( t k ) E i = q E i S i ( t k ) q E i S i ( t k 1 ) 1 = : q w   q x   q y   q z , i = 1 , 2 ,
by
ω ( t k ) E i = 2 T s arccos ( q w ) q x   q y   q z q x   q y   q z .
Note that due to the order of quaternion multiplication, we already obtain the angular rate in each sensor’s global frame, thus avoiding another transformation step.
Of course, when the gyroscope and accelerometer readings are available, it is equally possible to perform 6D sensor fusion in the processing unit, e.g., using the VQF algorithm [48], and directly employ the angular rates measured by the gyroscopes for evaluation of the kinematic constraint. Therefore, this proposed extension is not restrictive but instead broadens the scope of applicability of the method.
Note that the orientation-based constraint is already quaternion-based and does not require any other measurement data. Therefore, employing the proposed extension is not necessary when using this constraint.

Appendix C.2. Measurement and Soft Tissue Motion Artifact Reduction

Measurement anomalies, such as the sensor accidentally touching objects, or soft tissue motion can cause artifacts in the measured angular rates ω 1 and ω 2 . This leads to high-frequency disturbances (compared to the frequency of the functional joint motions) that often violate the rotation-based constraint (7) and therefore deteriorate the estimation accuracy. Low-pass filtering of the angular rates used for evaluating the rotation-based constraint with a cutoff frequency of f c = 5 Hz improves the accuracy and robustness of the anatomical calibration.

Appendix C.3. Ambiguity in the Signs of the Joint Axes

The joint constraints cannot be used to determine the signs of the joint rotation axes, as for any pair of axes, the value of the cost function for ( j 1 , j 2 ) , ( j 1 , j 2 ) and also ( j 1 , j 2 ) is exactly the same. Correspondingly, whether, for example, supination is defined as a positive or negative rotation around an axis pointing proximally along the right forearm is only a matter of convention.
In practical applications, it is essential to ensure that a specific definition is always followed, e.g., [45]. In order to determine the sign, two approaches are practical: The first is to ensure a sensor placement that is roughly known, i.e., the half-space in which each joint axis points is predetermined. Another way is to exploit the joint’s range of motion in combination with the offset-removal method described in Section 4.5. For example, by defining that an extended and supinated elbow corresponds to α = 0 , γ = 0 and choosing the signs of the axes so that the mean joint angles during calibration are positive, we ensure that we follow the definitions given in [45].

Appendix D. Sensitivity to Cutoff Frequency, Sample Selection Frequency, and Window Duration

As a further part of the evaluation, we consider the three main degrees of freedom in applying the proposed methods and investigate the influence of those parameters:
  • The cutoff frequency f c for measurement and soft tissue motion artifact reduction (employed value: 5 Hz , cf. Appendix C.2, rotation-based constraint only)
  • The sample selection frequency (employed value: 20 Hz , T s = 0.05 s )
  • The duration of the measurement window (employed value: 10 s ).
We apply the proposed methods to all trials of the five subjects of the first experiment for different values of the respective parameter while keeping the other two parameters at the previously employed default value. In order to condense the obtained information (cf. Figure 6), we calculate the mean and the 99th percentile of the variability angles ε w of all windows of all trials.
For the angular rate cutoff frequency f c for measurement and soft tissue motion artifact reduction, the obtained results are shown in Figure A1. If the cutoff frequency is chosen too low ( f c = 2 Hz ), the mean and 99th-percentile of ε w increase compared to the smallest possible value. At those frequencies, valuable information about the movement is lost, leading to more inconsistent estimation results. However, when choosing 3 Hz f c 7 Hz , the results are more consistent than without low-pass filter. Therefore, we can conclude that low-pass filtering of the angular rates helps to increase robustness and that f c = 5 Hz is a reasonable choice for the cutoff frequency.
Figure A1. Variability of the obtained axis estimates (mean and 99th-percentile of ε w , relative to minimum value) for different values of the cutoff frequency of the soft tissue motion artifact reduction low pass filter. Low-pass filtering of the angular rates increases the consistency of the axis estimates, but for too low cutoff frequencies, important information is lost, and the deviations increase. Choosing a cutoff frequency of 5 Hz gives robust estimates.
Figure A1. Variability of the obtained axis estimates (mean and 99th-percentile of ε w , relative to minimum value) for different values of the cutoff frequency of the soft tissue motion artifact reduction low pass filter. Low-pass filtering of the angular rates increases the consistency of the axis estimates, but for too low cutoff frequencies, important information is lost, and the deviations increase. Choosing a cutoff frequency of 5 Hz gives robust estimates.
Sensors 22 09850 g0a1
To determine how many data are needed to obtain consistent estimates, we repeat the same evaluation for the other two parameters, i.e., window duration and sample selection frequency, which is shown for both constraints in Figure A2. As expected, using more data in the optimization, i.e., increasing the window duration or increasing the sample selection frequency, leads to more consistent estimates. However, this comes at a cost. Longer window durations cause inconvenience for the subject that has to perform the movements and limit the applicability of the method. Therefore, the duration of 10 s was chosen as a compromise between ease of use and accuracy and to demonstrate that such short durations lead to good results. If the data are available, employing longer motion sequences should be considered (up to a point where the assumption of δ being constant is not valid anymore due to integration drift). The sampling selection frequency is less critical as it only affects the computational time. However, the results show that increasing the frequency past 10 Hz does not significantly affect the results. The chosen frequency of 20 Hz is more than sufficient while still considerably removing the number of data sets compared to typical IMU raw data sampling rates of 50– 500 Hz .
Figure A2. Variability of the obtained axis estimates (mean and 99th-percentile of ε w , relative to minimum value) for different values of the window duration and the sample selection frequency for the (a) rotation-based constraint and the (b) orientation-based constraint. In general, using more data (long windows at high sampling rates) leads to more consistent estimates but increases inconvenience for the subject and processing time.
Figure A2. Variability of the obtained axis estimates (mean and 99th-percentile of ε w , relative to minimum value) for different values of the window duration and the sample selection frequency for the (a) rotation-based constraint and the (b) orientation-based constraint. In general, using more data (long windows at high sampling rates) leads to more consistent estimates but increases inconvenience for the subject and processing time.
Sensors 22 09850 g0a2

References

  1. Picerno, P. 25 Years of Lower Limb Joint Kinematics by Using Inertial and Magnetic Sensors: A Review of Methodological Approaches. Gait Posture 2017, 51, 239–246. [Google Scholar] [CrossRef] [PubMed]
  2. Filippeschi, A.; Schmitz, N.; Miezal, M.; Bleser, G.; Ruffaldi, E.; Stricker, D. Survey of Motion Tracking Methods Based on Inertial Sensors: A Focus on Upper Limb Human Motion. Sensors 2017, 17, 1257. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Vitali, R.V.; Perkins, N.C. Determining Anatomical Frames via Inertial Motion Capture: A Survey of Methods. J. Biomech. 2020, 106, 109832. [Google Scholar] [CrossRef] [PubMed]
  4. Seel, T.; Raisch, J.; Schauer, T. IMU-based Joint Angle Measurement for Gait Analysis. Sensors 2014, 14, 6891–6909. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Olsson, F.; Kok, M.; Seel, T.; Halvorsen, K. Robust Plug-and-Play Joint Axis Estimation Using Inertial Sensors. Sensors 2020, 20, 3534. [Google Scholar] [CrossRef] [PubMed]
  6. Müller, P.; Bégin, M.A.; Schauer, T.; Seel, T. Alignment-Free, Self-Calibrating Elbow Angles Measurement Using Inertial Sensors. IEEE J. Biomed. Health Inform. 2017, 21, 312–319. [Google Scholar] [CrossRef]
  7. Laidig, D.; Schauer, T.; Seel, T. Exploiting Kinematic Constraints to Compensate Magnetic Disturbances When Calculating Joint Angles of Approximate Hinge Joints from Orientation Estimates of Inertial Sensors. In Proceedings of the 2017 International Conference on Rehabilitation Robotics (ICORR), London, UK, 17–20 July 2017; pp. 971–976. [Google Scholar] [CrossRef]
  8. Graurock, D.; Schauer, T.; Seel, T. Automatic Pairing of Inertial Sensors to Lower Limb Segments—a Plug-and-Play Approach. Curr. Dir. Biomed. Eng. 2016, 2, 715–718. [Google Scholar] [CrossRef]
  9. Zimmermann, T.; Taetz, B.; Bleser, G. IMU-to-segment Assignment and Orientation Alignment for the Lower Body Using Deep Learning. Sensors 2018, 18, 302. [Google Scholar] [CrossRef] [Green Version]
  10. Piazza, S.J.; Okita, N.; Cavanagh, P.R. Accuracy of the Functional Method of Hip Joint Center Location: Effects of Limited Motion and Varied Implementation. J. Biomech. 2001, 34, 967–973. [Google Scholar] [CrossRef]
  11. Seel, T.; Schauer, T.; Raisch, J. Joint Axis and Position Estimation from Inertial Measurement Data by Exploiting Kinematic Constraints. In Proceedings of the 2012 IEEE International Conference on Control Applications, Dubrovnik, Croatia, 3–5 October 2012; pp. 45–49. [Google Scholar] [CrossRef]
  12. Crabolu, M.; Pani, D.; Raffo, L.; Cereatti, A. Estimation of the Center of Rotation Using Wearable Magneto-Inertial Sensors. J. Biomech. 2016, 49, 3928–3933. [Google Scholar] [CrossRef]
  13. Olsson, F.; Halvorsen, K. Experimental Evaluation of Joint Position Estimation Using Inertial Sensors. In Proceedings of the 2017 20th International Conference on Information Fusion (Fusion), Xi’an, China, 10–13 July 2017; pp. 1–8. [Google Scholar] [CrossRef]
  14. Brennan, A.; Deluzio, K.; Li, Q. Assessment of Anatomical Frame Variation Effect on Joint Angles: A Linear Perturbation Approach. J. Biomech. 2011, 44, 2838–2842. [Google Scholar] [CrossRef] [PubMed]
  15. Fan, B.; Li, Q.; Tan, T.; Kang, P.; Shull, P.B. Effects of IMU Sensor-to-Segment Misalignment and Orientation Error on 3-D Knee Joint Angle Estimation. IEEE Sensors J. 2022, 22, 2543–2552. [Google Scholar] [CrossRef]
  16. Miezal, M.; Taetz, B.; Bleser, G. On Inertial Body Tracking in the Presence of Model Calibration Errors. Sensors 2016, 16, 1132. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Bouvier, B.; Duprey, S.; Claudon, L.; Dumas, R.; Savescu, A. Upper Limb Kinematics Using Inertial and Magnetic Sensors: Comparison of Sensor-to-Segment Calibrations. Sensors 2015, 15, 18813–18833. [Google Scholar] [CrossRef] [PubMed]
  18. Picerno, P.; Cereatti, A.; Cappozzo, A. Joint Kinematics Estimate Using Wearable Inertial and Magnetic Sensing Modules. Gait Posture 2008, 28, 588–595. [Google Scholar] [CrossRef]
  19. Picerno, P.; Caliandro, P.; Iacovelli, C.; Simbolotti, C.; Crabolu, M.; Pani, D.; Vannozzi, G.; Reale, G.; Rossini, P.M.; Padua, L.; et al. Upper Limb Joint Kinematics Using Wearable Magnetic and Inertial Measurement Units: An Anatomical Calibration Procedure Based on Bony Landmark Identification. Sci. Rep. 2019, 9, 14449. [Google Scholar] [CrossRef] [Green Version]
  20. Vargas-Valencia, L.S.; Elias, A.; Rocon, E.; Bastos-Filho, T.; Frizera, A. An IMU-to-body Alignment Method Applied to Human Gait Analysis. Sensors 2016, 16, 2090. [Google Scholar] [CrossRef]
  21. Robert-Lachaine, X.; Mecheri, H.; Larue, C.; Plamondon, A. Accuracy and Repeatability of Single-Pose Calibration of Inertial Measurement Units for Whole-Body Motion Analysis. Gait Posture 2017, 54, 80–86. [Google Scholar] [CrossRef]
  22. Butt, H.T.; Taetz, B.; Musahl, M.; Sanchez, M.A.; Murthy, P.; Stricker, D. Magnetometer Robust Deep Human Pose Regression with Uncertainty Prediction Using Sparse Body Worn Magnetic Inertial Measurement Units. IEEE Access 2021, 9, 36657–36673. [Google Scholar] [CrossRef]
  23. van der Straaten, R.; Wesseling, M.; Jonkers, I.; Vanwanseele, B.; Bruijnes, A.K.B.D.; Malcorps, J.; Bellemans, J.; Truijen, J.; Baets, L.D.; Timmermans, A. Discriminant Validity of 3D Joint Kinematics and Centre of Mass Displacement Measured by Inertial Sensor Technology during the Unipodal Stance Task. PLoS ONE 2020, 15, e0232513. [Google Scholar] [CrossRef]
  24. Palermo, E.; Rossi, S.; Marini, F.; Patanè, F.; Cappa, P. Experimental Evaluation of Accuracy and Repeatability of a Novel Body-to-Sensor Calibration Procedure for Inertial Sensor-Based Gait Analysis. Measurement 2014, 52, 145–155. [Google Scholar] [CrossRef]
  25. Favre, J.; Aissaoui, R.; Jolles, B.M.; de Guise, J.A.; Aminian, K. Functional Calibration Procedure for 3D Knee Joint Angle Description Using Inertial Sensors. J. Biomech. 2009, 42, 2330–2335. [Google Scholar] [CrossRef] [PubMed]
  26. de Vries, W.H.K.; Veeger, H.E.J.; Cutti, A.G.; Baten, C.; van der Helm, F.C.T. Functionally Interpretable Local Coordinate Systems for the Upper Extremity Using Inertial & Magnetic Measurement Systems. J. Biomech. 2010, 43, 1983–1988. [Google Scholar] [CrossRef] [PubMed]
  27. Luinge, H.J.; Veltink, P.H.; Baten, C.T.M. Ambulatory Measurement of Arm Orientation. J. Biomech. 2007, 40, 78–85. [Google Scholar] [CrossRef]
  28. Cutti, A.G.; Giovanardi, A.; Rocchi, L.; Davalli, A.; Sacchetti, R. Ambulatory Measurement of Shoulder and Elbow Kinematics through Inertial and Magnetic Sensors. Med Biol. Eng. Comput. 2008, 46, 169–178. [Google Scholar] [CrossRef]
  29. Ligorio, G.; Bergamini, E.; Truppa, L.; Guaitolini, M.; Raggi, M.; Mannini, A.; Sabatini, A.M.; Vannozzi, G.; Garofalo, P. A Wearable Magnetometer-Free Motion Capture System: Innovative Solutions for Real-World Applications. IEEE Sens. J. 2020, 20, 8844–8857. [Google Scholar] [CrossRef]
  30. Favre, J.; Jolles, B.M.; Aissaoui, R.; Aminian, K. Ambulatory Measurement of 3D Knee Joint Angle. J. Biomech. 2008, 41, 1029–1035. [Google Scholar] [CrossRef]
  31. Lebleu, J.; Gosseye, T.; Detrembleur, C.; Mahaudens, P.; Cartiaux, O.; Penta, M. Lower Limb Kinematics Using Inertial Sensors during Locomotion: Accuracy and Reproducibility of Joint Angle Calculations with Different Sensor-to-Segment Calibrations. Sensors 2020, 20, 715. [Google Scholar] [CrossRef] [Green Version]
  32. Mascia, G.; Brasiliano, P.; Di Feo, P.; Cereatti, A.; Camomilla, V. A Functional Calibration Protocol for Ankle Plantar-Dorsiflexion Estimate Using Magnetic and Inertial Measurement Units: Repeatability and Reliability Assessment. J. Biomech. 2022, 111202. [Google Scholar] [CrossRef]
  33. Cottam, D.S.; Campbell, A.C.; Davey, P.C.; Kent, P.; Elliott, B.C.; Alderson, J.A. Functional Calibration Does Not Improve the Concurrent Validity of Magneto-Inertial Wearable Sensor-Based Thorax and Lumbar Angle Measurements When Compared with Retro-Reflective Motion Capture. Med Biol. Eng. Comput. 2021, 59, 2253–2262. [Google Scholar] [CrossRef]
  34. Cordillet, S.; Bideau, N.; Bideau, B.; Nicolas, G. Estimation of 3D Knee Joint Angles during Cycling Using Inertial Sensors: Accuracy of a Novel Sensor-to-Segment Calibration Procedure Based on Pedaling Motion. Sensors 2019, 19, 2474. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Carcreff, L.; Payen, G.; Grouvel, G.; Massé, F.; Armand, S. Three-Dimensional Lower-Limb Kinematics from Accelerometers and Gyroscopes with Simple and Minimal Functional Calibration Tasks: Validation on Asymptomatic Participants. Sensors 2022, 22, 5657. [Google Scholar] [CrossRef] [PubMed]
  36. Salehi, S.; Bleser, G.; Reiss, A.; Stricker, D. Body-IMU Autocalibration for Inertial Hip and Knee Joint Tracking. In Proceedings of the 10th EAI International Conference on Body Area Networks; BodyNets ’15; ICST (Institute for Computer Sciences, Social-Informatics and Telecommunications Engineering): Brussels, Belgium, 2015; pp. 51–57. [Google Scholar] [CrossRef] [Green Version]
  37. McGrath, T.; Fineman, R.; Stirling, L. An Auto-Calibrating Knee Flexion-Extension Axis Estimator Using Principal Component Analysis with Inertial Sensors. Sensors 2018, 18, 1882. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  38. McGrath, T.; Stirling, L. Body-Worn IMU Human Skeletal Pose Estimation Using a Factor Graph-Based Optimization Framework. Sensors 2020, 20, 6887. [Google Scholar] [CrossRef] [PubMed]
  39. McGrath, T.; Stirling, L. Body-Worn IMU-based Human Hip and Knee Kinematics Estimation during Treadmill Walking. Sensors 2022, 22, 2544. [Google Scholar] [CrossRef] [PubMed]
  40. Olsson, F.; Seel, T.; Lehmann, D.; Halvorsen, K. Joint Axis Estimation for Fast and Slow Movements Using Weighted Gyroscope and Acceleration Constraints. In Proceedings of the 2019 22th International Conference on Information Fusion (FUSION), Ottawa, ON, Canada, 2–5 July 2019; pp. 1–8. [Google Scholar] [CrossRef]
  41. Nowka, D.; Kok, M.; Seel, T. On Motions That Allow for Identification of Hinge Joint Axes from Kinematic Constraints and 6D IMU Data. In Proceedings of the 2019 18th European Control Conference (ECC), Naples, Italy, 25–28 June 2019. [Google Scholar] [CrossRef] [Green Version]
  42. Taetz, B.; Bleser, G.; Miezal, M. Towards Self-Calibrating Inertial Body Motion Capture. In Proceedings of the 2016 19th International Conference on Information Fusion (FUSION), Heidelberg, Germany, 5–8 July 2016; pp. 1751–1759. [Google Scholar]
  43. Norden, M.; Müller, P.; Schauer, T. Real-Time Joint Axes Estimation of the Hip and Knee Joint during Gait Using Inertial Sensors. In Proceedings of the 5th International Workshop on Sensor-Based Activity Recognition and Interaction; iWOAR ’18; Association for Computing Machinery: New York, NY, USA, 2018; pp. 1–6. [Google Scholar] [CrossRef]
  44. de Vries, W.H.K.; Veeger, H.E.J.; Baten, C.T.M.; van der Helm, F.C.T. Magnetic Distortion in Motion Labs, Implications for Validating Inertial Magnetic Sensors. Gait Posture 2009, 29, 535–541. [Google Scholar] [CrossRef]
  45. Wu, G.; van der Helm, F.C.T.; Veeger, H.E.J.D.; Makhsous, M.; Roy, P.V.; Anglin, C.; Nagels, J.; Karduna, A.R.; McQuade, K.; Wang, X.; et al. ISB Recommendation on Definitions of Joint Coordinate Systems of Various Joints for the Reporting of Human Joint Motion—Part II: Shoulder, Elbow, Wrist and Hand. J. Biomech. 2005, 38, 981–992. [Google Scholar] [CrossRef]
  46. Kuipers, J.B. Quaternions and Rotation Sequences. In Proceedings of the International Conference on Geometry, Integrability and Quantization; Coral Press Scientific Publishing: Varna, Bulgaria, 1999; pp. 127–143. [Google Scholar] [CrossRef]
  47. Laidig, D.; Müller, P.; Seel, T. Automatic Anatomical Calibration for IMU-based Elbow Angle Measurement in Disturbed Magnetic Fields. Curr. Dir. Biomed. Eng. 2017, 3, 167–170. [Google Scholar] [CrossRef]
  48. Laidig, D.; Seel, T. VQF: Highly Accurate IMU Orientation Estimation with Bias Estimation and Magnetic Disturbance Rejection. Inf. Fusion 2023, 91, 187–204. [Google Scholar] [CrossRef]
  49. Laidig, D.; Lehmann, D.; Bégin, M.A.; Seel, T. Magnetometer-Free Realtime Inertial Motion Tracking by Exploitation of Kinematic Constraints in 2-DoF Joints. In Proceedings of the 2019 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Berlin, Germany, 23–27 July 2019; pp. 1233–1238. [Google Scholar] [CrossRef]
  50. Wright, S.; Nocedal, J. Numerical Optimization; Springer: Berlin/Heidelberg, Germany, 1999; Volume 35, pp. 67–68. [Google Scholar]
  51. Weygers, I.; Kok, M.; Seel, T.; Shah, D.; Taylan, O.; Scheys, L.; Hallez, H.; Claeys, K. In-Vitro Validation of Inertial-Sensor-to-Bone Alignment. J. Biomech. 2021, 110781. [Google Scholar] [CrossRef]
  52. Dam, E.B.; Koch, M.; Lillholm, M. Quaternions, Interpolation and Animation; Datalogisk Institut, Københavns Universitet Copenhagen: Copenhagen, Denmark, 1998; Volume 2. [Google Scholar]
Figure 1. Anatomical calibration, also called sensor-to-segment calibration, is the task of determining how the IMUs are attached to the body segments. More precisely, the rotations between the IMU coordinate systems S 1 , 2 , defined by the sensor housing, and the corresponding body segments B 1 , 2 , determined by anatomical axes such as the joint axes j 1 , 2 , have to be determined. Conventional methods rely on precisely defined calibration movements and poses, whereas the proposed methods use kinematic constraints to derive this information from arbitrary joint motion.
Figure 1. Anatomical calibration, also called sensor-to-segment calibration, is the task of determining how the IMUs are attached to the body segments. More precisely, the rotations between the IMU coordinate systems S 1 , 2 , defined by the sensor housing, and the corresponding body segments B 1 , 2 , determined by anatomical axes such as the joint axes j 1 , 2 , have to be determined. Conventional methods rely on precisely defined calibration movements and poses, whereas the proposed methods use kinematic constraints to derive this information from arbitrary joint motion.
Sensors 22 09850 g001
Figure 2. Anatomical model of the elbow joint. The humeroulnar joint is a hinge joint with the rotation axes j 1 , allowing for flexion and extension (FE). The radioulnar joint also has one degree of freedom ( j 2 ) and allows for pronation and supination (PS). In this contribution, we refer to the combined joint with two degrees of freedom as elbow joint.
Figure 2. Anatomical model of the elbow joint. The humeroulnar joint is a hinge joint with the rotation axes j 1 , allowing for flexion and extension (FE). The radioulnar joint also has one degree of freedom ( j 2 ) and allows for pronation and supination (PS). In this contribution, we refer to the combined joint with two degrees of freedom as elbow joint.
Sensors 22 09850 g002
Figure 3. (a) Geometric kinematic model of the elbow joint. Inertial sensors S 1 and S 2 are placed in arbitrary orientation on the upper arm B 1 and forearm B 2 . Upper arm and forearm are connected by two hinge joints that allow for FE ( j 1 ) and PS ( j 2 ). (b) View onto the j 1 - j 2 plane. The fixed rotation between FE and PS is called carrying angle.
Figure 3. (a) Geometric kinematic model of the elbow joint. Inertial sensors S 1 and S 2 are placed in arbitrary orientation on the upper arm B 1 and forearm B 2 . Upper arm and forearm are connected by two hinge joints that allow for FE ( j 1 ) and PS ( j 2 ). (b) View onto the j 1 - j 2 plane. The fixed rotation between FE and PS is called carrying angle.
Sensors 22 09850 g003
Figure 4. Two spherical parametrizations are used to represent the joint axes j i , i = 1 , 2 , with two parameters each, θ i and φ i . To avoid the derivative becoming close to zero, we convert the respective axis to Cartesian coordinates and then to the other representation whenever | sin θ i | < 0.5 .
Figure 4. Two spherical parametrizations are used to represent the joint axes j i , i = 1 , 2 , with two parameters each, θ i and φ i . To avoid the derivative becoming close to zero, we convert the respective axis to Cartesian coordinates and then to the other representation whenever | sin θ i | < 0.5 .
Sensors 22 09850 g004
Figure 5. Variability angle ε w and misalignment angle α used to evaluate the axis estimation results. ε i is the angle between the estimated axis for a single window and the mean estimate. α is the angle between the mean estimate and the axis obtained by careful manual sensor attachment. For a good anatomical calibration method, ε i should be small, showing that the estimates are consistent, and α should be within 30°, showing that the estimates are plausible.
Figure 5. Variability angle ε w and misalignment angle α used to evaluate the axis estimation results. ε i is the angle between the estimated axis for a single window and the mean estimate. α is the angle between the mean estimate and the axis obtained by careful manual sensor attachment. For a good anatomical calibration method, ε i should be small, showing that the estimates are consistent, and α should be within 30°, showing that the estimates are plausible.
Sensors 22 09850 g005
Figure 6. Consistency and plausibility results for the first experiment with the (a) rotation-based constraint and the (b) orientation-based constraint, for two motion types and for five human subjects and a mechanical joint (m). The proposed methods estimate plausible axes for all subjects and all motions. The rotation-based constraint yields more consistent estimates than the orientation-based constraint, and the simple motion leads to better results than the complex motion.
Figure 6. Consistency and plausibility results for the first experiment with the (a) rotation-based constraint and the (b) orientation-based constraint, for two motion types and for five human subjects and a mechanical joint (m). The proposed methods estimate plausible axes for all subjects and all motions. The rotation-based constraint yields more consistent estimates than the orientation-based constraint, and the simple motion leads to better results than the complex motion.
Sensors 22 09850 g006
Figure 7. 3D visualization of the estimation results for an exemplary trial (Subject 2, simple motion, rotation-based constraint). The joint axis estimates from all windows agree well (blue arrows). The PS axis agrees very well with the expected value (red arrow), while for the FE axis there is a misalignment of 17°, most likely due to imprecise manual sensor attachment.
Figure 7. 3D visualization of the estimation results for an exemplary trial (Subject 2, simple motion, rotation-based constraint). The joint axis estimates from all windows agree well (blue arrows). The PS axis agrees very well with the expected value (red arrow), while for the FE axis there is a misalignment of 17°, most likely due to imprecise manual sensor attachment.
Sensors 22 09850 g007
Figure 8. Investigation into the variability of the FE axis estimates (Subject 2, complex motion, rotation-based constraint). (a) 3D visualization of the axis estimates for all windows. (b) Plot of the estimated heading offset δ and the angle of the FE axis in the (approximately horizontal) y-z-plane of the upper arm IMU coordinate system. There is an obvious correlation, indicating that without sufficient upper arm movement, the kinematic constraint does not allow for distinguishing between a heading rotation of the joint axis and a heading offset between the sensor orientations.
Figure 8. Investigation into the variability of the FE axis estimates (Subject 2, complex motion, rotation-based constraint). (a) 3D visualization of the axis estimates for all windows. (b) Plot of the estimated heading offset δ and the angle of the FE axis in the (approximately horizontal) y-z-plane of the upper arm IMU coordinate system. There is an obvious correlation, indicating that without sufficient upper arm movement, the kinematic constraint does not allow for distinguishing between a heading rotation of the joint axis and a heading offset between the sensor orientations.
Sensors 22 09850 g008
Figure 9. Joint angle estimation errors for all trials with a conventional 9D approach and with the proposed plug-and-play magnetometer-free methods, using OMC-based angles as ground truth. The numbers below the axis labels indicate the mean root mean square error (RMSE) for all 16 trials. The proposed method with the rotation-based constraint yields the same accuracy as the much more restrictive conventional 9D method.
Figure 9. Joint angle estimation errors for all trials with a conventional 9D approach and with the proposed plug-and-play magnetometer-free methods, using OMC-based angles as ground truth. The numbers below the axis labels indicate the mean root mean square error (RMSE) for all 16 trials. The proposed method with the rotation-based constraint yields the same accuracy as the much more restrictive conventional 9D method.
Sensors 22 09850 g009
Figure 10. Joint angle trajectories for an exemplary (a) drinking and (b) pick-and-place trial obtained with the proposed IMU-based method (and the rotation-based constraint), the conventional 9D IMU-based approach, and the OMC ground truth. While being much less restrictive, the proposed method is able to obtain FE and PS joint angles that agree well with the angles obtained with the other two methods.
Figure 10. Joint angle trajectories for an exemplary (a) drinking and (b) pick-and-place trial obtained with the proposed IMU-based method (and the rotation-based constraint), the conventional 9D IMU-based approach, and the OMC ground truth. While being much less restrictive, the proposed method is able to obtain FE and PS joint angles that agree well with the angles obtained with the other two methods.
Sensors 22 09850 g010
Figure 11. Standard deviation of the carrying angle for all trials with the different angle calculation methods. The proposed method induces the smallest variation in the assumed-to-be-constant carrying angle. This indicates that the estimated joint axes describe the functional motion axes better than the axes obtained via careful manual IMU placement (conventional IMU) and via placing markers on anatomical landmarks (OMC ground truth).
Figure 11. Standard deviation of the carrying angle for all trials with the different angle calculation methods. The proposed method induces the smallest variation in the assumed-to-be-constant carrying angle. This indicates that the estimated joint axes describe the functional motion axes better than the axes obtained via careful manual IMU placement (conventional IMU) and via placing markers on anatomical landmarks (OMC ground truth).
Sensors 22 09850 g011
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Laidig, D.; Weygers, I.; Seel, T. Self-Calibrating Magnetometer-Free Inertial Motion Tracking of 2-DoF Joints. Sensors 2022, 22, 9850. https://doi.org/10.3390/s22249850

AMA Style

Laidig D, Weygers I, Seel T. Self-Calibrating Magnetometer-Free Inertial Motion Tracking of 2-DoF Joints. Sensors. 2022; 22(24):9850. https://doi.org/10.3390/s22249850

Chicago/Turabian Style

Laidig, Daniel, Ive Weygers, and Thomas Seel. 2022. "Self-Calibrating Magnetometer-Free Inertial Motion Tracking of 2-DoF Joints" Sensors 22, no. 24: 9850. https://doi.org/10.3390/s22249850

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop