Next Article in Journal
The Impact of Augmented Reality (AR) on Vocabulary Acquisition and Student Motivation
Next Article in Special Issue
LiDAR SLAM with a Wheel Encoder in a Featureless Tunnel Environment
Previous Article in Journal
Document Image Restore via SPADE-Based Super-Resolution Network
Previous Article in Special Issue
Two-Dimensional Positioning with Machine Learning in Virtual and Real Environments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Inertial Measurement Units’ Reliability for Measuring Knee Joint Angle during Road Cycling

Faculty of Electrical Engineering, University of Ljubljana, Tržaška c. 25, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(3), 751; https://doi.org/10.3390/electronics12030751
Submission received: 30 December 2022 / Revised: 25 January 2023 / Accepted: 30 January 2023 / Published: 2 February 2023

Abstract

:
We explore the reliability of joint angles in road cycling obtained using inertial measurement units. The considered method relies on 3D accelerometer and gyroscope measurements obtained from two such units, appropriately attached to two adjacent body parts, measuring the angle of the connecting joint. We investigate the effects of applying a simple drift compensation technique and an error-state Kalman filter. We consider the knee joint angle in particular, and conduct two measurement trials, a 5 and a 20 minute one, for seven subjects, in a closed, supervised laboratory environment and use optical motion tracking system measurements as reference. As expected from an adaptive solution, the Kalman filter gives more stable results. The root mean square errors per pedalling cycle are below 3.2°, for both trials and for all subjects, implying that inertial measurement units are not only reliable for short measurements, as is usually assumed, but can be reliably used for longer measurements as well. Considering the accuracy of the results, the presented method can be reasonably extended to open, unsupervised environments and other joint angles. Implementing the presented method supports the development of cheaper and more efficient monitoring equipment, as opposed to using expensive motion tracking systems. Consequently, cyclists can have an affordable way of position tracking, leading to not only better bicycle fitting, but to the avoidance and prevention of certain injuries as well.

1. Introduction

Cycling biomechanics is a well-studied research field, usually addressing important questions of cycling posture analysis, injury prevention and performance improvement [1,2,3,4,5,6]. Guidelines for seat height, pedal position, pedalling rate, and force application have been presented [1,2,3,4,5,6,7,8].
Being directly linked to the activation of muscles and muscle groups, the knee joint angle has shown to have a great effect on one’s technique and its possible further improvement [1]. The flexion of joints of the lower limbs in particular changes with the pedalling crank angle. It has been reported that cyclists during ergometer cycling have 66° of total knee motion [9]. Represented as the inner angle between the femur and the tibia, knee flexion reaches 134° at the bottom dead 180° crank position and 68° at the top 0° in the crank cycle. In general, however, different cyclists prefer different cycling positions [2]. Affected by lower seat height and more upright position, knee flexion values are usually lower when non-elite and especially non-road and commuter cyclists are considered, whereas higher values are expected for professionals, accustomed to a more aerodynamic position with drop bars. Although static bicycle fitting, considering joint angles at 180° and 0°, is a cheap and effective method, some researchers have indicated that further tuning of a cyclist’s position could be done using dynamic measurements [4,10].
Optical motion tracking systems [11,12,13], goniometers [14], and video analysis [9,10,13,14,15] are most commonly used to dynamically measure joint angles during cycling. While all these solutions provide for reliable measurements, their use is generally conditioned by a closed laboratory environment and cycling on the spot, using a stationary bicycle or a dedicated turbo trainer, on which the cyclist’s personal bicycle is locked in place. Using mobile cameras is possible, but unfortunately it is mostly too expensive for regular or recreational use and for non-professional purposes.
More recently, motion tracking with video cameras is being replaced by wearable devices with integrated inertial measurement units (IMU), combining 3D accelerometers, gyroscopes, and magnetometers. Their small dimensions and lightness, coupled with low energy consumption, portability, availability, and ease of use are some of the reasons for their ubiquity and indispensability for tracking movements and movement patterns [16,17,18,19,20,21,22,23] and consequently for motion analysis in sports [24,25,26,27,28]. With the usage of different sensor fusion techniques, these devices have shown to be successful in orientation estimation and angle determination of different joints [29,30,31,32,33].
Since raw measurements of IMU sensors are prone to various errors, offset readings in particular, causing integration errors and in turn attitude and position estimates drift, IMUs are in general considered reliable for short measurement trials, measured usually in seconds [29,30,31] or up to a couple of minutes [32,33]. The accuracy for longer measurement trials is largely affected by the dynamic conditions of the motion captured.
Various error-compensation techniques are usually applied to improve results accuracy, the Kalman filter being one of the most popular and robust ones [30,31,32,33]. In the motion capture context, the Kalman filter relies on fusing signals from different inertial sensors and is especially used in dynamic environments. In [32] a magnetometer-free Kalman filter was designed for robust estimation of joint angles in magnetically disturbed environments. After conducting a set of two measurements, a short 1 min and another 3 min one, the values of the root mean square error (RMSE) were 1.88 and 3.04°, respectively. Additionally, magnetometers can be a valuable tool when combined with inertial sensors for absolute orientation estimation and motion tracking, and a more valuable insight on the matter is presented in [12,13,34,35,36,37]. Sensor fusion algorithms designed with magnetometer usage in mind, such as the Tilt Kalman filter and Madgwick filter, improve orientation estimation in many applications [38,39].
Given the benefits of IMUs, if such sensors prove reliable for measuring joint angles during cycling, they will benefit the industry. Cheaper and more accessible equipment will be developed and used in real-world environments. Consequently, such equipment will be useful to professional as well as recreational cyclists in improving their technique.
Some research has already been conducted in this field [12,13,40]. The author of [12] used a full MVN body suit [41], housing 17 IMU devices and relying on anthropometry and a biomechanical model to define and assemble individual segments and track kinematics during road cycling. The hip, knee, and ankle joint angles were obtained using the Kinematic Coupling algorithm, based on an error-state Kalman filter utilizing accelerometer, gyroscope, and magnetometer readings. For each of the 10 subjects participating, 3 short indoor measurements were evaluated using an optical system, each measurement being 1 min in length, with the cadence goal being between 90–110 rpm. RMSEs were in the ranges 0.8–0.9°, 3.1–3.4°, and 2.2–2.8° for the hip, knee, and ankle joint, respectively. Using the Madgwick filter, the authors of [13] report similar RMSE values for the knee angle, i.e., below 3.8° for short measurements, no longer than 30 s.
In [40] researchers measured the ankle joint angle with an IMU attached to the cyclist’s pedal, using 3D accelerometer and gyroscope readings only, passed through a Kalman filter. Evaluation was done using two optical encoders, one on the ergometer pulley and another on the pedal. The RMSE of 10 short 45 s measurements on a single individual amounted to 2.77° ± 0.10°.
However, to the best of our knowledge, a more comprehensive research, investigating the accuracy of joint angle estimation using IMUs, considering short-term measurements as well as those longer in duration, is missing and would highly benefit the community.
We consider a simple method for measuring joint angles, relying on 3D accelerometer and gyroscope measurements from two IMU devices, tracking the rotations of two adjacent body parts, in turn measuring the angle of the connecting joint. Road bicycles, even carbon framed ones, contain parts made of ferrous materials such as the chain, chainring, sprocket, small metal gearboxes and brakes components, bolts and screws, felts with metal spikes, drive and steering bearings, and metal cleats of the clipless bicycle pedals, all rotating at a high speed characteristic to the cycling environment. The magnetic fields of these ferrous parts overpower the Earth’s magnetic field causing the magnetometer readings to become unreliable [12]. Consequently, the usage of a magnetometer, and the previously mentioned algorithms, utilising this sensor, are in this study omitted. To evaluate the method, the knee joint is chosen. Measurements obtained using an optical motion tracking system are used for result evaluation. Two error compensation techniques are considered–simple gyroscope offset subtraction along with first-degree polynomial detrending and the Kalman filter.
We consider two durations of trials, 5 and 20 min. Providing for shorter-term accuracy evaluation, the former supports general position evaluation and bicycle fitting in dynamic conditions, mostly in closed, laboratory environments. Providing for longer-term accuracy evaluation, the latter could be used for further improvement of biological feedback loops, aimed towards improving a cyclist’s technique, both during indoor and outdoor cycling. Additionally, longer-term measurement could be combined with other sensing technologies, e.g., for measuring muscle activity and power output, providing for deeper insight into the complexity of individual’s biomechanics during cycling.
The presented research is a continuation of our preliminary investigation presented as a conference paper [42]. The methodology has been further developed and a more comprehensive evaluation has been conducted, including additional and longer measurement trials, obtained for an extended sample of subjects.
In all the subsequent sections, we use the following notation rules: large bold letters denote matrices, small bold letters denote vectors, and large or small italics denote scalars.

2. Materials and Methods

2.1. Determining Joint Angle from IMU Measurements

To measure the knee joint angle, one IMU device is placed on the subject’s thigh and another on his or her shank, as illustrated in Figure 1. To avoid additional signal post-processing and transformations, one intrinsic coordinate system axis (in the presented Figure 1, the x-axis) of the IMU is aligned with the longitudinal axis of the respective segment, thigh or shank.
Denoting with α ( I M U ) [n] the sought-after joint angle for each measurement step n, we can write:
α ( I M U ) [ n ] = π β ( I M U ) [ n ] γ ( I M U ) [ n ] ,
where β ( I M U ) [ n ] and γ ( I M U ) [ n ] are the angles of rotation for the thigh and the shank, respectively, determined using gravity reaction force vector projections on the x and y axes of each IMU. We denote the 1 × 3 vectors of these projections respectively for the thigh and shank IMU with g 1 = [ g 1 x   g 1 y   g 1 z ] and g 2 = [ g 2 x   g 2 y   g 2 z ]. Considering the orientation of both sensors and simple geometry presented in Figure 1, we can write:
β ( I M U ) [ n ] = | arctan ( g 1 y [ n ] / g 1 x [ n ] ) | ,
γ ( I M U ) [ n ] = arctan ( g 2 y [ n ] / g 2 x [ n ] ) .
To determine the components of vectors g 1 [ n ] and g 2 [ n ] in (2) and (3) for each measurement step n, we first consider an initial stationary window of Ns samples, preceding the actual cycling motion. By averaging the 3D accelerometer measurements during this window, we obtain 1 × 3 initial vectors g 1 [ 0 ] and g 2 [ 0 ] . For each subsequent measurement sample, we rotate the current vector as measured by the 3D gyroscope. Denoting with g i [ n + 1 ] and g i [ n ] the subsequent and current iteration of the vectors i = 1,2, and with R i ( g y r o ) [ n ] the respective rotation matrix obtained from the gyroscope measurements, we can write:
g i [ n + 1 ] = g i [ n ] R i ( g y r o ) [ n ]   .
The post-multiplication rotation order applied in (4) accounts for the fact that the 3D gyroscope measures rotations in its intrinsic, i.e., rotating coordinate system.
In particular, the rotation matrix in (4) is obtained by considering the Simultaneous Orthogonal Rotation Angle (SORA), as presented in [43]. SORA correctly interprets the three rotations measured for each time sample n as occurring simultaneously. As long as the axis of rotation does not change during the sampling interval, SORA accurately represents the actual rotation of the gyroscope, around a single axis and angle. Accordingly, for each n the rotation axis is equal to the normalized angular velocity output of the gyroscope while the rotation angle is equal to the product of the angular velocity magnitude and the sampling interval. Denoting with ω i [ n ]   a 1 × 3 vector of angular velocity measurements, u i [n] and φ i [ n ] the axis and angle of rotation, respectively, and with Ts the sampling interval, for each IMU i = 1,2 and measurement sample n, we can write:
u i [ n ] = ω i [ n ] / | ω i [ n ] | ,
φ i [ n ] = | ω i [ n ] |   T s ,
R i ( g y r o ) [ n ] = u i x 2 + c φ i u i y 2 + u i z 2 1 c φ i u i x u i y s φ i u i z 1 c φ i u i x u i z + s φ i u i y 1 c φ i u i x u i y + s φ i u i z u i y 2 + c φ i u i x 2 + u i z 2 1 c φ i u i y u i z s φ i u 1 x 1 c φ i u i x u i z s φ i u i y 1 c φ i u i y u i z + s φ i u i x u i z 2 + c φ i u i x 2 + u i y 2
In (7) s φ and c φ are additionally introduced and used as abbreviated notations respectively for the sine and cosine functions of the rotation angle φ .
Opting for using the rotation matrix (7) instead of the rotation quaternion in (4) is conditioned by our research aim of obtaining and evaluating orientation results for each time sample n. While the rotation quaternion would provide for equally valid results, the rotation matrix has a slight computational advantage when calculating orientation on a sample-by-sample basis [44]. If we were to calculate orientation not after each rotation but after a couple or more, the rotation quaternion would be used instead.

2.2. IMU Measurements Error Compensation and Sensor Fusion

Accelerometer and gyroscope sensors suffer from various sources of measurement errors, most considerably output bias [45,46]. Given this drawback, the orientation results calculated from the gyroscope measurements on an integration basis, are known to drift, especially for longer measurements. To compensate for this effect, we apply a simple calibration technique. We estimate the gyroscope output bias from a calibration stationary window of Nc samples. We then subtract this offset from all subsequent measurement samples. While the Ns window that is used for determining the initial values of vectors g 1 [ 0 ] and g 2 [ 0 ]   is a relatively short window, occurring immediately prior to the cycling motion, the Nc window is relatively longer and occurs prior to the measurement trial, i.e., prior to Ns and the cycling motion. Finally, the g 1 and g 2   vectors are detrended with a polynomial of the first degree before the arctan function evaluation and β ( I M U ) [ n ] , γ ( I M U ) [ n ] , and α ( I M U ) [ n ] estimation in (1)–(3).
Additionally, we apply the Kalman filter sensor fusion technique, combining accelerometer and gyroscope measurements to provide for better orientation estimates. Essentially, the filter exploits the fact that both the accelerometer and gyroscope measure orientation–the former operating as an inclinometer and measuring vector g projections on the sensor intrinsic coordinate system axes and the latter measuring angular velocities around those same axes.
In particular, we use an error-state Kalman filter [12,47,48,49], as implemented in [50]. The filter is fed with raw acceleration measurements and offset compensated gyroscope readings. The implemented filter then iteratively attempts to track errors in orientation, gyroscope output bias, and linear acceleration to output final orientation and angular velocity. For each iteration step, the filter first predicts orientation from the gyroscope readings, compensated for output bias and estimates the error in vector g projections, i.e., the difference between two calculated vectors g–one by considering the predicted orientation and the other by considering the acceleration measurements, having the linear acceleration estimated in the previous iteration step subtracted. Using this error, the Kalman filter parameters are updated according to the Kalman equations and used to finally correct the predicted orientation, gyroscope output bias and linear acceleration.
For a properly functioning and stable Kalman filter, its properties, defining the observation model noise, must be appropriately tuned. The gyroscope noise parameter is set equal to the maximum variance of the gyroscope readings while stationary, whereas the gyroscope drift noise is set up to a low value, determined empirically. Similarly, accelerometer noise is set equal to the maximum variance of the accelerometer readings while stationary, while the linear acceleration noise, characterising the acceleration experienced by the sensor during the measurement, is set equal to the maximum variance of the accelerometer during the cycling part of the measurement. The linear acceleration decay factor parameter is set experimentally to best reflect the dynamic nature of the captured motion.

2.3. Determining Joint Angle from Optical Motion Tracking System Measurements

To evaluate the joint angle determined from IMU measurements, one rigid body per IMU is designed and tracked by the optical motion tracking system. Each rigid body is constructed using a flat brick 12.8 × 4.7 cm in size from The Lego Group, Billund, Denmark, holding three optical markers, together with the IMU device. The IMUs and the markers are fixated using two-side adhesive tape. The central marker of the rigid body is placed on the IMU itself. Using additional, smaller Lego® bricks the remaining two optical marker are positioned to lie along the sensor’s intrinsic x and y axis. All three markers define a coordinate system of the rigid body, aligned with that of the sensor.
The optical motion tracking system has reasonable difficulties recognizing similar rigid bodies at once, which results in occasional permutations of such bodies during the recognition process. To make the difference in appearance of the two rigid bodies more apparent and their recognition more accurate, one marker of each rigid body is additionally elevated for a predetermined height. This change in marker position causes a slight misalignment of the IMU and rigid body coordinate frames and is compensated by defining an additional, virtual marker in the optical motion tracking system software, at the position where the marker was originally placed and using it instead of the elevated marker for defining the rigid body’s intrinsic coordinate system. The final distance between the central and the two outer markers is 9 and 3.5 cm for the thigh and 10.7 and 3.5 cm for the shank rigid body.
Both rigid bodies are fixated to the corresponding body segment using medical cohesive elastic bandage.
To get the crank position and determine the phase of the cycle, an additional marker is placed on the bottom of the bicycle pedal, just below its intrinsic axis of rotation.
With all the sensors attached, the cyclist cycles in a supervised environment on a road bicycle fixated on a turbo trainer. The overall measurement setup is illustrated in Figure 2.
For each measurement sample n, the optical tracking system gives the orientations of both rigid bodies R 1 ( r e f ) [ n ] and R 2 ( r e f ) [ n ] in the global frame. To determine the knee joint angle, a connecting rotation matrix, aligning the first rigid body with the second one and denoted with R c o n n ( r e f ) [ n ] is calculated. We can write:
R c o n n ( r e f ) [ n ] = ( R 1 ( r e f ) [ n ] ) 1 R 2 ( r e f ) [ n ] .
The angle between the two orientation matrices R 1 ( r e f ) [ n ] and R 2 ( r e f ) [ n ] , i.e., the knee joint angle, is then calculated as the angle of rotation described by R c o n n ( r e f ) [ n ] :
α ( r e f ) [ n ] = a c o s [   ( t r ( R c o n n ( r e f ) [ n ] ) 1 ) / 2 ] ,
where tr denotes the trace function, i.e., the sum of all elements on the matrix diagonal.
If, due to numerical errors, the absolute value of the acos function argument in (9) exceeds 1, leading to a complex solution for   α ( r e f ) [ n ] , the angle of rotation is calculated using the asin function instead. Since we are interested in only the angle and not the direction of rotation, we use the absolute values of the asin function and calculate α ( r e f ) [ n ] according to:
α ( r e f ) [ n ] = k π + ( 1 ) k | asin [   ( R c o n n ( r e f ) [ n ] 3 , 2 R c o n n ( r e f ) [ n ] 2 , 3 ) 2 + ( R c o n n ( r e f ) [ n ] 1 , 3 R c o n n ( r e f ) [ n ] 3 , 1 ) 2 + ( R c o n n ( r e f ) [ n ] 2 , 1 R c o n n ( r e f ) [ n ] 1 , 2 ) 2 / 2 ] | ,
where k is equal to 1 if the acos argument in (9) is negative and 0 otherwise, extending the asin function evaluation in (10) to also support results between π /2 and π .

2.4. Alignment of IMU and Optical Motion Tracking System Coordinate Frames

Despite best efforts one can invest in the physical alignment of the rigid body coordinate system with that of the IMU, the two will, in general, never exactly match. The human-introduced error during marker positioning, the use of supportive base and adhesive tape to fixate the markers all contribute to a systematic orientation misalignment.
Even in the highly improbable case of perfectly positioned optical markers, used to define the rigid body coordinate system, the markers themselves measure 1.1 centimetre in diameter, giving way to coordinate system definition uncertainty. A misalignment of the rigid body’s coordinate system by a few degrees is hence expected and should be accounted for to provide for relevant result evaluation.
We experimentally determine a rotation matrix, defining the orientation of the rigid body coordinate system relative to that of the respective IMU’s. We perform a short measurement, starting from a stationary state (s = 0) in an arbitrary orientation and eventually rotating both rigid bodies into three additional distinct arbitrary orientations (s = 1,2,3). For each rigid body i we then search for a rotation matrix that best aligns the IMU and optical system measurements.
We compensate the gyroscope measurements for output bias. Further using the rotation axis and angle according to (5) and (6), we calculate the four orientations of the IMU in its initial coordinate frame. We denote the obtained orientations for each rigid body i with O i ( g y r o ) [s], where s denotes all four arbitrary states, i.e., s = 0,1,2,3. Note that, since we are representing all four orientations with respect to the initial state (s = 0), the following holds O i ( g y r o ) [0] = I, where I denotes a 3 × 3 identity matrix.
We then consider the optical system orientation measurements, denoted with O i ( r e f ) [s]. Since O i ( r e f ) [s] orientations are given in the global frame of the optical motion tracking system, we first perform the following transformation:
( O i ( r e f ) [ 0 ]   ) 1 O i ( r e f ) [ s ]   ,
to obtain the four orientations representations in the initial system of the rigid body i. Since both the IMU and the optical motion tracking system should measure the same orientations in their respective intrinsic coordinate systems, without measurement errors and misalignment, O i ( g y r o ) [s] would match (11). Since the measurements are short and gyroscope bias is compensated for, we attribute the difference in the measured orientation entirely to the IMU and rigid body misalignment. For each i we then search for a rotation matrix R m i s s   i that best aligns O i ( g y r o ) [s] and O i ( r e f ) [s], i.e., that best fits the following expression:
R m i s s   i ( O i ( r e f ) [ 0 ]   ) 1 O i ( r e f ) [ s ] R m i s s   i   1 = O i ( g y r o ) [ s ]
for s = 1,2,3. We achieve this using a brute force method–by composing all rotation matrices possible R m i s s   i , for a rotation angle between 0 to 5°, with 0.05° resolution, and for all possible rotation axes with a 0.05 resolution for x, y, and z projections in the range [−1,1]. Considering each such composed matrix, we calculate the difference matrix:
Δ i [ s ] = O i ( g y r o ) [ s ] R m i s s   i ( O i ( r e f ) [ 0 ]   ) 1 O i ( r e f ) [ s ]   R m i s s   i   1
for s = 1,2,3. Finally, R m i s s   i for which the following criteria:
argmin ( s = 1 3 s u m s q ( Δ i [ s ] )
is met, where sumsq denotes the sum of matrix elements’ squares, is set as the matrix of misalignment between the rigid body i coordinate system and the respective IMU.
Using R m i s s   i all optical system measurements R i ( r e f ) [ n ]   are compensated according to:
R m i s s   i R i ( r e f ) [ n ] R m i s s   i   1
and used instead of the original R i ( r e f ) [ n ] (8) values for calculating the reference knee joint angle in (9)–(10).

2.5. Time-Synchronizing Joint Angle Measurements

The IMU and optical system joint angle results are synchronised considering the correlation function between the first 5 s of their run (including the stationary period and at least the first two periods) and using the position of this function’s maximum as the synchronisation time-shift value.
Since no two systems have perfectly matching clocks, for longer measurements, despite the afore-mentioned mutual time-synchronisation, the IMU and optical system angles desynchronise with ever more divergence as the angles run longer. This effect is illustrated in Figure 3. Despite the initial time-synchronisation, after 124,000 samples (slightly over 20 min for a 100 Hz sampling frequency), the results are misaligned in time for 7 samples on average.
To compensate for this effect the Longest Common Subsequence (LCSS) algorithm is applied [51], removing samples from α ( I M U ) [ n ]   and   α ( r e f ) [ n ] to obtain best time matching between both angles, as illustrated in Figure 4. The algorithm reduces the sampling frequency by a small margin, however, it efficiently removes the described systematic synchronization error. The maximum allowed jump between two samples was set to 6, corresponding to slightly less than 10% of the number of samples obtained during one crank cycle at 90 rpm cadence and 100 Hz sampling, i.e., 66.67 samples/cycle.

2.6. Determining the Crank Angle

The crank angle, denoted with ψ [ n ] , is obtained from the coordinates of the pedal marker, as illustrated in Figure 2 denoted with 3, according to:
ψ [ n ] = a t a n 2 ( ( ( x 3 [ n ] x 3   o f f s e t ) ) ( z 3 [ n ] z 3   o f f s e t ) ) ) ,
where x 3 [ n ] and z 3 [ n ] are the marker x and z coordinates for each n and x 3   o f f s e t and z 3   o f f s e t are the crank axis offsets from the global coordinate system origin in the x and z dimension, respectively.

3. Experimental Validation

3.1. Hardware

For the experiment two MetaMotionR inertial measurement units were used from Mbientlab Inc. [52], chosen for their small size, sampling frequency range, and ready-made software for simple logging and exporting of the conducted measurements. For the optical motion tracking system, the Qualisys Oqus 3-series from Qualisys AB, Gothenburg, Sweden, [53] was used, which consists of a set of infrared cameras positioned appropriately on the ceiling of the laboratory to capture the entire workspace.
The sampling frequency fs of both sensor systems was set up to 100 Hz, which was a safe compromise with respect to the frequency content of the captured motion and any future real-time transmission and processing needs.

3.2. Subjects

During a three-week period, 7 subjects participated in the study: 3 were females of the age between 32 and 39, whereas the 4 remaining subjects were males of age between 20 and 48. Each of the subjects gave a short description of their cycling experience along with their consent to conduct the said measurements. The subjects were asked to use their personal road bicycles if available, with seat height adjusted according to personal preference. If subjects did not have access to a personal bicycle, a substitute of proper size was obtained, adjusted seat-wise and used instead.

3.3. Measurement Protocol

With the workspace calibrated for the optical motion tracking system, the bicycle along with the turbo-trainer were placed so that the wheelbase of the bicycle aligned with the global x axis, the bicycle stack with the global z axis, and the handlebar width with the remaining y axis of the global coordinate frame as denoted by x g , y g , and z g in Figure 2. After the rigid bodies with the IMUs were fixated on the subject, they were given enough time on the bicycle to get used to the setup and adjustments were made if any were necessary.
The subject was first asked to cycle for 5 min, with a stationary minute before. After sufficient rest, the subject was asked to cycle for another 20 min, with a stationary minute prior. A cadence consistency goal was set to 90 rpm, forced using a software metronome.

3.4. Signal Processing

Once the measurements were completed, they were all exported and further processed offline in MathWorks MATLAB R2021B [54].
Considering the associated timestamp values, signals from both IMU devices were mutually synchronised and resampled, to provide for common measurement samples at exact Ts = 1/fs = 0.01 s time distance.
From the stationary minute, preceding both measurement trials, the last 20 consecutive samples determined to be stable for both IMUs were used for the Ns window to estimate the initial gravity reaction force vector projections, i.e., g 1 [ 0 ] and g 2 [ 0 ] . The first following sample was set as the start of the measurement, i.e., n = 1. Additionally, from this stationary minute, for each IMU, 650 consecutive samples with the least angular velocity variance were used for the Nc window for gyroscope offset compensation.
The IMU and optical motion system signals were then processed as presented in Section 2. In particular, for the Kalman filter parameters, the following were set: gyroscope drift noise = 2 · 10 9 and linear acceleration decay factor = 0.25 .
Anonymised data and all developed processing software are available for download from a publicly available repository [55].

4. Results

To evaluate the measured knee joint angles, the results are sliced up into cycles, using the angle’s peak values, as illustrated in Figure 5. The interval from one peak value to the next corresponds to one crank cycle. Table 1 summarizes the average cadence along with the maximum and minimum knee joint angles, as measured by the optical system, for each subject. For the 20 min measurement trial for Subject 5, the results are missing due to sporadic occlusions of the optical markers, causing the optical system to not only loose track but also confuse the markers when performing recognition, leading to incorrect application of the associated rigid body’s coordinate frame.
The average cadence was computed by averaging the number of samples for each cycle, i.e., angle peak value, and the cadence consistency goal of 90 rpm was best achieved by subjects 2, 4 and 6, whereas the rest of the subjects were either slightly quicker or faster, depending on the measurement trial.
For each cycle, angle RMSE is calculated using the optical motion tracking system’s measurements as reference values. From the computed RMSE by cycle, the average RMSE is calculated and presented in Table 2 as the final evaluation measure for each measurement trial and subject. The average RMSE for the last 10 cycles is also presented per each subject and measurement trial for comparison purposes. Additionally, the average RMSEs through all the 5 and 20 min measurement trials are given at the end of Table 2 for all RMSE categories.
RMSE of the knee joint angle calculated per cycle for all 5 and 20 min measurement trials are presented in Figure 6 and Figure 7, respectively. All subjects performed at least 342 for the 5 min and 1630 cycles for the 20 min measurement trials. Measurement trials for which the average RMSE values for the entire trial, as presented in Table 2, do not exceed the average RMSE of, respectively, all 5 or 20 min measurement trials for the Kalman filter are coloured blue while the remaining measurements trials are coloured red. The average entire trial RMSE obtained using the Kalman filter was chosen for comparison due to being the lowest between the two total averages.
From the results presented in Figure 6 and Figure 7 we can observe a non-negligeable difference between the knee joint angle values, measured with the two systems, already at the beginning of the measurements. This might come as a slight surprise, since the IMUs’ and rigid bodies’ coordinate systems are additionally initially aligned. Detailed investigation has shown that for the first couple of samples, the knee joint angles difference between both systems is indeed negligeable; however, calculating the RMSE per cycle basis, is affected by integration errors already for the first cycle, leading to noticeable difference from the beginning of the measurements.
Finally, Figure 8 presents the knee joint angles, α(IMU) and α(ref), with respect to the crank angle ψ , where the latter is computed from the added marker below the centre of the bicycle pedal, for one example 5 min and one example 20 min measurement.

5. Discussion

From the RMSE values presented in Table 2, we can observe that the Kalman filter clearly provides for better knee joint angle results, with the average RMSE values per cycle being in-between 1.39 and 3.12° for all 5 min measurement trials. For comparison, the average RMSE values per cycle for all 5 min measurement trials for the first-degree polynomial drift compensation method are in-between 1.30 and 7.84°.
The RMSEs values obtained for the 5 min trials for the Kalman filter are, in general, slightly lower than those presented in literature so far (3.1–3.4° for 5 min measurements in [12] and below 3.8° for 30 s measurements in [13]). We can attribute this improvement to offset subtraction and to additional initial alignment of the gyroscope and optical system rotation matrices.
Further on, we can observe that for the 20 min measurement trials, the knee joint angles RMSE significantly increases for the first-degree polynomial drift compensation method, with RMSE values being now in-between 7.15 and 23.24°. The accuracy for the Kalman filter method is practically unaffected, with RMSE values being now in-between 1.39 and 2.76°. To put into perspective, as the measurement duration increases for 300%, the average RMSE for the Kalman filter remains the same. This is even more evident when comparing the measurement average RMSE and the average RMSE for only the last 10 cycles, where the latter’s average RMSE is comparable to the average trial RMSE. In contrast, the average RMSE for the last 10 pedalling cycles for the first-degree polynomial drift compensation method is significantly higher than the average trial RMSE for almost all of the measurement trials.
The results presented confirm the hypothesis that the measurement error due to IMU limitations increases with the measurement duration and that this error can be significantly decreased with appropriate error compensation techniques. Given the results presented in Figure 6 and Figure 7, we can observe that while for some 5 min measurements, the RMSE values per cycle for the first-degree polynomial drift compensation method are comparable to those obtained for the Kalman filter method, the results for all 20 min measurements are significantly worse. In addition, the RMSE per cycle obtained for the first-degree polynomial drift compensation method is well above the total measurement average RMSE obtained for the Kalman filter after just a few minutes. In contrast, the Kalman filter results are below the given margin for the vast majority of time, confirming results stability as is expected from an adaptive solution.
To note, detrending of the measurements with a polynomial of the second degree was considered, assuming the gyroscope offset a linear process, leading to angle errors with a quadratic drift characteristic. However, this approach gave better results only for longer measurements and even then, the improvement was only on a case-by-case basis during preliminary testing, its use was omitted. In contrast, all of the conducted measurements benefited from the first-degree polynomial detrending, assuming linear angle drifts. In addition, preliminary testing also showed that using the complementary filter, due to the highly dynamic characteristic of the captured cycling motion, does not improve results and was hence omitted.
Further on, initial measurements with the IMU positioned on the subject’s shank have shown up to 30% deviation in magnetic field intensity when the subject is pedaling with a cadence of 90 rpm as oppose to when he is just sitting on the bicycle. In addition, this increase is a function of rotation speed so any variation in cadence would introduce further errors. As a result, further improvements gained through the usage of a magnetometer were deemed unlikely, and its use was omitted altogether.
Comparing the achieved accuracy of joint angles to the long-term accuracy of general orientation, obtained from robust single IMU orientation estimators, shows that the method presented either achieves or surpasses accuracies presented previously in literature [36,37]. Considering 1° RMSE on average achieved per Euler angle, roll and pitch (without considering the heading information), and per sensor as presented in [36], via adaptively tuning the measurement noise covariance matrix, amounts to approximately 2° for the full 3D joint angle, estimated using two IMUs, which is comparable to the average 2.18° RMSE obtained in this study. In [37] the reported median RMSE values per Euler angle obtained using an extended Kalman filter range from 3.8 to 7.8° for long-term measurements with various dynamic activities performed. The reason behind the fact that RMSE values obtained in this study are significantly lower than those presented in [37] stems from the specific cycling measurement environment in which the cycling cadence and motion are constrained. In such a case, the Kalman filter parameters do not have to be adapted during measurements and using constant values already gives highly accurate results. On the contrary, the method presented in [37] targets to achieve robust orientation estimation in various dynamic and static environments and activities. Using robust orientation estimation methods as presented in [36,37] is however expected to improve result accuracy for outdoor measurements, during which the cyclist, while still aiming to maintain a constant cadence, occasionally slows down or, for short-term recovery, stops pedalling altogether. Further investigations in this area would be highly beneficial for in-depth cycling biomechanics analysis.
While the presented results are highly promising, it is also important to note that significant attention was devoted to correctly aligning the rigid bodies with each respective body part, i.e., the thigh and the shank. A slight misalignment of the IMU from the body segment would introduce a discrepancy between the de facto measured angle and the target angle. For day-to-day measurements, when measurement preparation time should be optimized, this could be accounted for by adopting a segment to segment based IMU calibration technique, such as the one presented in [13].
Finally, comparing the Kalman IMU and reference knee joint angles with respect to the crank angle as can be seen in Figure 8, both follow the same trend with the IMUs measurements having only a slightly higher variance in comparison, observed as total thickness of the graph once all cycles are drawn, especially at crank position 0°. Additionally, in the same Figure we can observe that the optical motion tracking systems is prone to sporadic instantaneous errors, while the IMU measured angle has a smoothed run, as is expected in the given cycling dynamic conditions. This confirms the notion that the knee joint angle computed from IMUs can be reliably used with respect to the crank angle. Furthermore, this opens the door to its combination with data obtained using other sensor devices such as the electromyogram for tracking of muscle activation patterns.

6. Conclusions

Given the results obtained, the presented method could be used for precision fitting for professional cyclists. Instead of using expensive optical systems and other various methods, the optimal angles, not only the knee joint, but others as well, such as the hip joint angle, computed with IMUs could be used as a replacement. This would in turn lead to more affordable equipment for professional and amateur cyclists alike.
Extending the investigation from the controlled laboratory environment, the next step would be to confirm whether the presented solution proves equally reliable in outside world environments, where the presence of uneven road surfaces and corners could introduce challenges, probably requiring additional signal filtering techniques and robust joint angle estimators. In addition, inclusion of magnetometer readings could prove useful for tracking bicycle heading in outside environments, provided it is not mounted near the rotating ferrous bicycle parts, compromising the Earth’s magnetic field measurements.
Furthermore, the method presented in this paper could be used not only for measuring the knee joint angle, but for other active joints during cycling. Measuring the hip joint angle however in particular would also require additional signal filtering techniques, since one IMU would have to be placed in the sagittal plane of the right lumbar region where it would be affected by subject’s breathing, making the method less stable in the process.
The ever-growing field of technique monitoring and improvement with biofeedback loops for cyclists could also benefit from the presented method. Even without the actual evaluation of joint angles reliability, some promising research has been presented in this field using IMUs. For example, the authors of [56] developed a method for aligning the cyclist motion trajectories with previously recorded professional’s motion cycles and in [57] optimal cycling profile guidance has been presented, both relying on IMU joint angle measurements.
Finally, combining the results obtained from the presented method with readings from other sensor technologies, e.g., for muscle activation and contraction monitoring, could provide cyclists with crucial information on which muscle groups to focus on at a certain moment, potentially leading to more proficient muscle usage. This combined information could be given to the cyclist visually using a display on the bicycle handlebar, through sound with headphones, or haptically through vibrating actuators positioned appropriately on the cyclist’s body.

Author Contributions

Conceptualization, S.O. and S.S.; methodology, S.O. and S.S.; software, S.O. and S.S.; validation, S.O. and S.S.; writing – original draft, S.O. and S.S.; writing – review and editing, S.O. and S.S.; visualization, S.O.; supervision, S.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Slovenian Research Agency, grant number P2-0246 ICT4QoL—Information and communication technologies for quality of life.

Institutional Review Board Statement

This study was conducted for time periods of up to 2 h in length with the participants performing training activities expected of amateur cyclists. All of the participants gave their informed consent prior to conducting the measurements. The study was approved by the University of Ljubljana Human Research Ethics Committee (KERL UL) (No. 025-2022) and followed the Code of Ethics of the University of Ljubljana, which provides guidelines for studies involving human beings and is in accordance with the Declaration of Helsinki.

Informed Consent Statement

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

Data Availability Statement

The anonymised data is freely available from a public repository or by request through e-mail.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Fonda, B.; Sarabon, N. Biomechanics of Cycling (Literature review). Sport Sci. Rev. 2010, 19, 187–210. [Google Scholar] [CrossRef]
  2. Timmer, C.A.W. Cycling Biomechanics: A Literature Review. J. Orthop. Sport. Phys. Ther. 1991, 14, 106–113. [Google Scholar] [CrossRef] [PubMed]
  3. Turpin, N.A.; Watier, B. Cycling Biomechanics and Its Relationship to Performance. Appl. Sci. 2020, 10, 4112. [Google Scholar] [CrossRef]
  4. Swart, J.; Holliday, W. Cycling Biomechanics Optimization—The (R) Evolution of Bicycle Fitting. Curr. Sport. Med. Rep. 2019, 18, 490–496. [Google Scholar] [CrossRef] [PubMed]
  5. Bini, R.; Hume, P.A.; Croft, J.L. Effects of Bicycle Saddle Height on Knee Injury Risk and Cycling Performance. Sport. Med. 2011, 41, 463–476. [Google Scholar] [CrossRef]
  6. Peveler, W.W. Effects of Saddle Height on Economy in Cycling. J. Strength Cond. Res. 2008, 22, 1355–1359. [Google Scholar] [CrossRef]
  7. Elmer, S.J.; Barratt, P.R.; Korff, T.; Martin, J.C. Joint-Specific Power Production during Submaximal and Maximal Cycling. Med. Sci. Sport. Exerc. 2011, 43, 1940–1947. [Google Scholar] [CrossRef]
  8. Kautz, S.A.; Feltner, M.E.; Coyle, E.F.; Baylor, A.M. The Pedaling Technique of Elite Endurance Cyclists: Changes with Increasing Workload at Constant Cadence. Int. J. Sport Biomech. 1991, 7, 29–53. [Google Scholar] [CrossRef]
  9. Ericson, M.O.; Nisell, R.; Németh, G. Joint Motions of the Lower Limb During Ergometer Cycling. J. Orthop. Sport. Phys. Ther. 1988, 9, 273–278. [Google Scholar] [CrossRef]
  10. Bini, R.R.; Hume, P. A Comparison of Static and Dynamic Measures of Lower Limb Joint Angles in Cycling: Application to Bicycle Fitting. Hum. Mov. 2016, 17, 36–42. [Google Scholar] [CrossRef] [Green Version]
  11. Seo, J.-W.; Kim, D.-H.; Yang, S.-T.; Kang, D.-W.; Choi, J.-S.; Kim, J.-H.; Tack, G.-R. Differences in the Joint Movements and Muscle Activities of Novice according to Cycle Pedal Type. Korean J. Sport Biomech. 2016, 26, 237–242. [Google Scholar] [CrossRef]
  12. Cockcroft, S.J. An Evaluation of Inertial Motion Capture Technology for Use in the Analysis and Optimization of Road Cycling Kinematics. Master’s Thesis, University of Stellenbosch, Stellenbosch, South Africa, March 2011. [Google Scholar]
  13. 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]
  14. Rouffet, D.M.; Hautier, C.A. EMG Normalization to Study Muscle Activation in Cycling. J. Electromyogr. Kinesiol. 2008, 18, 866–878. [Google Scholar] [CrossRef]
  15. Sanderson, D.J.; Martin, P.; Honeyman, G.; Keefer, J. Gastrocnemius and soleus muscle length, velocity, and EMG responses to changes in pedalling cadence. J. Electromyogr. Kinesiol. 2006, 16, 642–649. [Google Scholar] [CrossRef]
  16. Sousa Lima, W.; Souto, E.; El-Khatib, K.; Jalali, R.; Gama, J. Human Activity Recognition Using Inertial Sensors in a Smartphone: An Overview. Sensors 2019, 19, 3213. [Google Scholar] [CrossRef]
  17. Shoaib, M.; Bosch, S.; Incel, O.D.; Scholten, H.; Havinga, P.J.M. Complex Human Activity Recognition Using Smartphone and Wrist-Worn Motion Sensors. Sensors 2016, 16, 426. [Google Scholar] [CrossRef] [PubMed]
  18. Gadaleta, M.; Rossi, M. IDNet: Smartphone-based gait recognition with convolutional neural networks. Pattern Recognit. 2018, 74, 25–37. [Google Scholar] [CrossRef]
  19. Sprager, S.; Juric, M.B. Inertial Sensor-Based Gait Recognition: A Review. Sensors 2015, 15, 22089–22127. [Google Scholar] [CrossRef]
  20. Cola, G.; Avvenuti, M.; Vecchio, A. Real-time identification using gait pattern analysis on a standalone wearable accelerometer. Comput. J. 2017, 60, 1173–1186. [Google Scholar] [CrossRef]
  21. Junker, H.; Amft, O.; Lukowicz, P.; Tröster, G. Gesture spotting with body-worn inertial sensors to detect user activities. Pattern Recognit. 2008, 41, 2010–2024. [Google Scholar] [CrossRef]
  22. Luinge, H.J.; Veltink, P.H. Measuring orientation of human body segments using miniature gyroscopes and accelerometers. Med. Biol. Eng. Comput. 2005, 43, 273–282. [Google Scholar] [CrossRef] [PubMed]
  23. Zhou, H.; Hu, H. Reducing Drifts in the Inertial Measurements of Wrist and Elbow Positions. IEEE Trans. Instrum. Meas. 2010, 59, 575–585. [Google Scholar] [CrossRef]
  24. Stančin, S.; Tomažič, S. Early Improper Motion Detection in Golf Swings Using Wearable Motion Sensors: The First Approach. Sensors 2013, 13, 7505–7521. [Google Scholar] [CrossRef]
  25. Martínez, A.; Jahnel, R.; Buchecker, M.; Snyder, C.; Brunauer, R.; Stöggl, T. Development of an Automatic Alpine Skiing Turn Detection Algorithm Based on a Simple Sensor Setup. Sensors 2019, 19, 902. [Google Scholar] [CrossRef] [PubMed]
  26. Kos, A.; Umek, A. Smart sport equipment: SmartSki prototype for biofeedback applications in skiing. Pers. Ubiquitous Comput. 2018, 22, 535–544. [Google Scholar] [CrossRef]
  27. Benages Pardo, L.; Buldain Perez, D.; Orrite Uruñuela, C. Detection of Tennis Activities with Wearable Sensors. Sensors 2019, 19, 5004. [Google Scholar] [CrossRef] [PubMed]
  28. Dadashi, F.; Millet, G.P.; Aminian, K. A Bayesian approach for pervasive estimation of breaststroke velocity using a wearable IMU. Pervasive Mob. Comput. 2015, 19, 37–46. [Google Scholar] [CrossRef]
  29. Bakashi, S.; Mahoor, M.H.; Davidson, B.S. Development of a body joint angle measurement system using IMU sensors. In Proceedings of the 33rd Annual International Conference of the IEEE EMBS, Boston, MA, USA, 30 August–3 September 2011. [Google Scholar]
  30. Deibe, Á.; Nacimiento, J.A.A.; Cardenal, J.; Peña, F.L. A Kalman Filter for Nonlinear Attitude Estimation Using Time Variable Matrices and Quaternions. Sensors 2020, 20, 6731. [Google Scholar] [CrossRef]
  31. Lee, J.K.; Park, E.J.; Robinovitch, S.N. Estimation of Attitude and External Acceleration Using Inertial Sensor Measurement During Various Dynamic Conditions. IEEE Trans. Instrum. Meas. 2012, 61, 2262–2273. [Google Scholar] [CrossRef]
  32. Lee, J.K.; Jeon, T.H. IMU-Based but Magnetometer-Free Joint Angle Estimation of Constrained Links. In Proceedings of the 2018 IEEE Sensors 2018, New Delhi, India, 28–31 October 2018; pp. 1–4. [Google Scholar] [CrossRef]
  33. Farahan, S.B.; Machado, J.J.M.; de Almeida, F.G.; Tavares, J.M.R.S. 9-DOF IMU-Based Attitude and Heading Estimation Using an Extended Kalman Filter with Bias Consideration. Sensors 2022, 22, 3416. [Google Scholar] [CrossRef]
  34. Sabatini, A.M. Kalman-Filter-Based Orientation Determination Using Inertial/Magnetic Sensors: Observability Analysis and Performance Evaluation. Sensors 2011, 11, 9182–9206. [Google Scholar] [CrossRef] [PubMed]
  35. Yean, S.; Lee, B.S.; Yeo, C.K.; Vun, C.H. Algorithm for 3D orientation estimation based on Kalman Filter and Gradient Descent. In Proceedings of the 7th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, Canada, 13–15 October 2016. [Google Scholar] [CrossRef]
  36. Candan, B.; Soken, H.E. Robust Attitude Estimation Using IMU-Only Measurements. IEEE Trans. Instrum. Meas. 2021, 70, 1–9. [Google Scholar] [CrossRef]
  37. Nazarahari, M.; Rouhani, H. A Full-State Robust Extended Kalman Filter for Orientation Tracking During Long-Duration Dynamic Tasks Using Magnetic and Inertial Measurement Units. IEEE Trans. Neural Syst. Rehabil. Eng. 2021, 29, 1280–1289. [Google Scholar] [CrossRef] [PubMed]
  38. Abyarjoo, F.; Barreto, A.; Cofino, J.; Ortega, F.R. Implementing a Sensor Fusion Algorithm for 3D Orientation Detection with Inertial/Magnetic Sensors. In Proceedings of the 8th International Joint Conference on Computer, Information, and Systems Sciences, and Engineering (CISSE), Bridgeport, CT, USA, 7–9 December 2012. [Google Scholar]
  39. Madgwick, S.O.H.; Harrison, A.J.L.; Vaidyanathan, R. Estimation of IMU and MARG orientation using a gradient descent algorithm. In Proceedings of the 12th IEEE International Conference on Rehabilitation Robotics (ICORR), Zurich, Switzerland, 29 June–1 July 2011. [Google Scholar] [CrossRef]
  40. Farjadian, A.B.; Kong, Q.; Gade, V.K.; Deutsch, J.E.; Mavrodis, C. VRACK: Measuring pedal kinematics during stationary bike cycling. In Proceedings of the 13th International Conference on Rehabilitation Robotics IEEE (ICORR), Seattle, WA, USA, 24–26 June 2013. [Google Scholar] [CrossRef]
  41. MVN Analyze. Available online: https://www.movella.com/products/motion-capture/mvn-analyze (accessed on 21 December 2022).
  42. Obradović, S. Evaluation of inertial measurement unites for determining knee joint angle during cycling. In Proceedings of the 31st International Electrotechnical and Computer Science Conference ERK 2022, Portorož, Slovenia, 19–20 September 2022. [Google Scholar]
  43. Stančin, S.; Tomažič, S. Angle Estimation of Simultaneous Orthogonal Rotations from 3D Gyroscope Measurements. Sensors 2011, 11, 8536–8549. [Google Scholar] [CrossRef] [PubMed]
  44. Stančin, S.; Tomažič, S. Computationally Efficient 3D Orientation Tracking Using Gyroscope Measurements. Sensors 2020, 20, 2240. [Google Scholar] [CrossRef] [PubMed]
  45. Godwin, A.; Agnew, M.; Stevenson, J. Accuracy of Inertial Motion Sensors in Static, Quasistatic, and Complex Dynamic Motion. J. Biomech. Eng. 2009, 131, 114501. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  46. Brodie, M.; Walmsley, A.; Page, W. Dynamic accuracy of inertial measurement units during simple pendulum motion. Comput. Methods Biomech. Biomed. Eng. 2008, 11, 235–242. [Google Scholar] [CrossRef]
  47. Potter, M.V.; Cain, S.M.; Ojeda, L.V.; Gurchiek, R.D.; McGinnis, R.S.; Perkins, N.C. Evaluation of Error-State Kalman Filter Method for Estimating Human Lower-Limb Kinematics during Various Walking Gaits. Sensors 2022, 22, 8398. [Google Scholar] [CrossRef] [PubMed]
  48. Potter, M.V.; Cain, S.M.; Ojeda, L.V.; Gurchiek, R.D.; McGinnis, R.S.; Perkins, N.C. Error-State Kalman filter for lower-limb kinematic estimation: Evaluation on a 3-body model. PLoS ONE 2021, 16, e0249577. [Google Scholar] [CrossRef]
  49. Vitali, R.V.; McGinnis, R.S.; Perkins, N.C. Robust Error-State Kalman Filter for Estimating IMU Orientation. IEEE Sens. J. 2021, 21, 3561–3569. [Google Scholar] [CrossRef]
  50. Orientation from Accelerometer and Gyroscope Readings—MATLAB. Available online: https://www.mathworks.com/help/fusion/ref/imufilter-system-object.html (accessed on 28 October 2022).
  51. Nguyen-Dinh, L.-V.; Roggen, D.; Calatroni, A.; Tröster, G. Improving online gesture recognition with template matching methods in accelerometer data. In Proceedings of the 12th International Conference on Intelligent Systems Design and Applications (ISDA), Kochi, India, 27–29 November 2012. [Google Scholar] [CrossRef]
  52. MMR—MetaMotionR—MBIENTLAB. Available online: https://mbientlab.com/store/metamotionr/ (accessed on 12 November 2022).
  53. Motion Capture Cameras 5+, 6+ and 7+ Series. Qualisys. Available online: https://www.qualisys.com/cameras/5-6-7/ (accessed on 12 November 2022).
  54. MATLAB, version 9.11.0.1837725 (R2021b) Update 2; The MathWorks Inc.: Natick, MA, USA, 2021.
  55. ObradovicSasa/KneeJointAngleMDPIRepository. Available online: https://github.com/ObradovicSasa/KneeJointAngleMDPIRepository (accessed on 22 December 2022).
  56. Yokota, H.; Naito, M.; Mizuno, N.; Ohshima, S. Framework for visual-feedback training based on a modified self-organizing map to imitate complex motion. Proc. Inst. Mech. Eng. Part P J. Sport. Eng. Technol. 2020, 234, 49–58. [Google Scholar] [CrossRef]
  57. Xu, J.Y.; Nan, X.; Ebken, V.; Wang, Y.; Pottie, G.J.; Kaiser, W.J. Integrated Inertial Sensors and Mobile Computing for Real-Time Cycling Performance Guidance via Pedaling Profile Classification. IEEE J. Biomed. Health Inform. 2015, 19, 440–445. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Placement of the IMUs on each body segment during standing position and during cycling.
Figure 1. Placement of the IMUs on each body segment during standing position and during cycling.
Electronics 12 00751 g001
Figure 2. Experimental setup for measuring the knee joint angle. 1 and 2 denote the rigid bodies used for determining the knee joint angle with the optical motion tracking system, whereas 3 denotes the additional marker used for the crank angle measurements. The two IMU devices are positioned below the central points of the two rigid bodies.
Figure 2. Experimental setup for measuring the knee joint angle. 1 and 2 denote the rigid bodies used for determining the knee joint angle with the optical motion tracking system, whereas 3 denotes the additional marker used for the crank angle measurements. The two IMU devices are positioned below the central points of the two rigid bodies.
Electronics 12 00751 g002
Figure 3. Desynchronisation of results for longer measurement trials due to systems’ clock-differences.
Figure 3. Desynchronisation of results for longer measurement trials due to systems’ clock-differences.
Electronics 12 00751 g003
Figure 4. Synchronisation of results for longer measurement trials after using the LCSS algorithm.
Figure 4. Synchronisation of results for longer measurement trials after using the LCSS algorithm.
Electronics 12 00751 g004
Figure 5. Example knee joint angle results. Maximum values are used to split the measurements into cycles. The cycles are then used for cadence, maximum angle, and average RMSE computation.
Figure 5. Example knee joint angle results. Maximum values are used to split the measurements into cycles. The cycles are then used for cadence, maximum angle, and average RMSE computation.
Electronics 12 00751 g005
Figure 6. Knee joint angle root mean square error (RMSE) by crank cycle for all conducted 5 min measurements. The green dashed line represents the average entire trial RMSE of the Kalman filter calculated across all cycles and all subjects. The red lines represent measurements for which the average RMSE per cycle exceeds the average RMSE of the Kalman filter.
Figure 6. Knee joint angle root mean square error (RMSE) by crank cycle for all conducted 5 min measurements. The green dashed line represents the average entire trial RMSE of the Kalman filter calculated across all cycles and all subjects. The red lines represent measurements for which the average RMSE per cycle exceeds the average RMSE of the Kalman filter.
Electronics 12 00751 g006
Figure 7. Knee joint angle root mean square error (RMSE) by crank cycle for all conducted 20 min measurements. The green dashed line represents the average entire trial RMSE of the Kalman filter calculated across all cycles and all subjects. The red lines represent measurements for which the average RMSE per cycle exceeds the average RMSE of the Kalman filter.
Figure 7. Knee joint angle root mean square error (RMSE) by crank cycle for all conducted 20 min measurements. The green dashed line represents the average entire trial RMSE of the Kalman filter calculated across all cycles and all subjects. The red lines represent measurements for which the average RMSE per cycle exceeds the average RMSE of the Kalman filter.
Electronics 12 00751 g007
Figure 8. Knee joint angles obtained using the proposed IMU-based method and reference optical motion tracking system, respectively plotted with respect to the computed crank angle. The gradient from dark blue to bright yellow is used to differentiate subsequent cycles, from the first to the last.
Figure 8. Knee joint angles obtained using the proposed IMU-based method and reference optical motion tracking system, respectively plotted with respect to the computed crank angle. The gradient from dark blue to bright yellow is used to differentiate subsequent cycles, from the first to the last.
Electronics 12 00751 g008
Table 1. The subjects’ average cadence with the maximum and minimum knee joint angles as measured with the reference optical motion tracking system.
Table 1. The subjects’ average cadence with the maximum and minimum knee joint angles as measured with the reference optical motion tracking system.
SubjectType of Measurement
Trial
Average Cadence
[rpm]
Max Knee
Joint Angle [°]
Min Knee
Joint Angle [°]
15 min
20 min
79.25 ± 8.41
81.94 ± 5.42
141.31 ± 7.57
146.97 ± 4.79 *
73.87 ± 3.61
74.56 ± 2.44
25 min
20 min
90.50 ± 5.70
89.68 ± 6.28
141.19 ± 2.79
141.21 ± 4.66
62.55 ± 0.96
59.52 ± 4.29
35 min
20 min
68.45 ± 6.76
88.73 ± 8.91
160.38 ± 4.08
158.08 ± 2.96
76.86 ± 1.96
76.39 ± 2.67
45 min
20 min
86.51 ± 5.49
88.68 ± 9.86
149.84 ± 4.12
148.55 ± 3.39
78.88 ± 2.70
75.07 ± 3.89
55 min
20 min **
95.03 ± 7.18
-
164.03 ± 1.68
-
81.90 ± 1.07
-
65 min
20 min
92.64 ± 6.26
89.83 ± 5.16
132.94 ± 3.67
130.57 ± 3.32
65.48 ± 1.56
63.95 ± 1.62
75 min
20 min
96.31 ± 7.44
98.88 ± 7.32
138.83 ± 3.00
139.63 ± 3.00
60.78 ± 1.49
69.19 ± 1.53
* Bicycle seat height was additionally adjusted for subject’s comfort after the 5 min trial, resulting in a noticeable increase in the max knee joint ** No results are given due to optical marker occlusion, resulting in no reference.
Table 2. Knee joint angle average root mean square errors (RMSE) by crank cycle with an interval of ± two standard deviations for the entire measurement trial and the last 10 cycles. The average RMSE for each method is presented at the end of the table.
Table 2. Knee joint angle average root mean square errors (RMSE) by crank cycle with an interval of ± two standard deviations for the entire measurement trial and the last 10 cycles. The average RMSE for each method is presented at the end of the table.
SubjectType of Measurement TrialRMSE
First-Degree Polynomial Drift Compensation [°]Kalman Filter [°]
Entire TrialLast 10 CyclesEntire TrialLast 10 Cycles
15 min
20 min
1.78 ± 1.31
7.80 ± 7.69
2.77 ± 0.59
15.52 ± 1.96
2.73 ± 0.92
2.41 ± 0.91
2.62 ± 0.47
2.29 ± 0.73
25 min
20 min
7.84 ± 7.19
12.58 ± 7.34
14.41 ± 0.30
15.30 ± 0.41
1.45 ± 1.12
1.46 ± 1.01
1.98 ± 0.32
1.72 ± 0.32
35 min
20 min
3.31 ± 1.44
7.15 ± 5.12
4.31 ± 0.74
10.76 ± 4.86
2.78 ± 1.09
2.76 ± 0.81
2.92 ± 0.28
2.42 ± 0.32
45 min
20 min
2.88 ± 0.97
23.24 ± 18.70
2.86 ± 0.69
30.00 ± 4.92
2.66 ± 0.77
2.58 ± 0.82
2.54 ± 0.76
2.59 ± 0.80
55 min
20 min *
3.51 ± 1.00
-
4.62 ± 0.45
-
3.12 ± 0.46
-
3.12 ± 0.40
-
65 min
20 min
3.40 ± 1.61
10.05 ± 12.15
3.80 ± 0.60
22.70 ± 1.07
1.60 ± 0.75
2.63 ± 0.70
2.21 ± 0.48
2.36 ± 0.44
75 min
20 min
1.30 ± 0.79
9.64 ± 9.40
0.93 ± 0.25
18.29 ± 1.09
1.39 ± 0.96
1.39 ± 1.18
1.33 ± 0.34
1.60 ± 0.25
Average 5 min
20 min
3.45 ± 4.98
11.75 ± 15.36
4.81 ± 8.23
18.76 ± 12.77
2.18 ± 1.63
2.18 ± 1.47
2.39 ± 1.21
2.16 ± 0.90
* No results are given due to marker occlusion resulting in no reference.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Obradović, S.; Stančin, S. Inertial Measurement Units’ Reliability for Measuring Knee Joint Angle during Road Cycling. Electronics 2023, 12, 751. https://doi.org/10.3390/electronics12030751

AMA Style

Obradović S, Stančin S. Inertial Measurement Units’ Reliability for Measuring Knee Joint Angle during Road Cycling. Electronics. 2023; 12(3):751. https://doi.org/10.3390/electronics12030751

Chicago/Turabian Style

Obradović, Saša, and Sara Stančin. 2023. "Inertial Measurement Units’ Reliability for Measuring Knee Joint Angle during Road Cycling" Electronics 12, no. 3: 751. https://doi.org/10.3390/electronics12030751

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