Skip to Content
SensorsSensors
  • Article
  • Open Access

3 December 2026

24 Pages

Fusion of a Mobile Markerless Motion Capture Application and an Inertial Sensor for Joint Angle Measurement: Three-System Comparison Against Optical Motion Capture

,
,
and
1
Department of Biomedical Engineering, Sri Sivasubramaniya Nadar College of Engineering, Chennai 603110, Tamil Nadu, India
2
Department of Biomedical Engineering, Shiv Nadar University Chennai, Chennai 603110, Tamil Nadu, India
*
Author to whom correspondence should be addressed.
Sensors2026, 26(23), 7633;https://doi.org/10.3390/s26237633 
(registering DOI)
This article belongs to the Section Biomedical Sensors

Abstract

Mobile markerless motion capture (MMC) applications show limited agreement with optical motion capture (OMC) in measuring joint range of motion (ROM), and published corrections are learned against the reference on adults with full movement. This study examined whether a correction trained once against OMC can be applied without it and whether it remains valid under restricted movement. Shoulder abduction/adduction, elbow flexion/extension and knee flexion/extension were recorded in 30 healthy young adults with a MediaPipe-based application, one inertial measurement unit (IMU) and an OMC system. Eight methods were evaluated by leave-one-subject-out cross-validation, including a fusion of the application and IMU angles with a movement-phase correction. The fusion reduced the waveform root-mean-square error from 10.9°, 18.3° and 9.4° to 7.9°, 6.9° and 8.2° at the knee, shoulder and elbow (not significant at the elbow), and removed the peak bias, but the 95% limits of agreement remained about ±20°. When restricted movement was simulated by halving every excursion, the gradient boosting and neural network corrections overestimated ROM by up to 33%, whereas the amplitude-scaled fusion remained within 2%. A three-cornered hat analysis assigned up to 9° (shoulder) and 8° (elbow) of the peak disagreement to the OMC or to error shared by the test systems. Validity in patients remains to be established.

1. Introduction

Joint range of motion (ROM) is measured routinely in orthopedic and neurological rehabilitation to grade impairment and to follow recovery. The universal goniometer is the common clinical tool, but it depends on the examiner and gives only the end-range value [1]. Marker-based optical motion capture (OMC) is regarded as the reference for joint kinematics. However, it needs a laboratory, calibrated cameras and trained personnel, it is sensitive to marker placement and soft tissue movement [2], and it is not suited to a clinic or a home [3,4].
Markerless motion capture (MMC) has therefore gained attention. Systems with several synchronized cameras reconstruct the body in three dimensions and have reported joint angle errors of about 5° or less for gait and functional tasks [5,6,7]. However, they need two or more calibrated cameras and a fixed capture volume, which is again difficult to arrange in a small clinic or at home. A single camera on a mobile device needs no calibration and can be set up by one person, and it is the configuration considered in this work. Pose estimation frameworks such as MediaPipe detect body landmarks in RGB images on a smartphone, and joint angles are calculated from the landmarks without any marker or sensor on the body [4,8,9]. Smartphone applications of this kind have been validated for the knee [10] and for rehabilitation movements in general [8]. The reported errors of single-camera MMC against OMC are typically of the order of 10°, and they depend on the joint, the task and the camera view [4]. For MediaPipe in particular, mean absolute errors of 8.6° over upper and lower limb movements [11] and of 3.7° to 28.8° for the peak angle across eight physiotherapy exercises [12] were reported against marker-based systems. Inertial measurement units (IMUs) are a second portable option, and their validity for shoulder ROM has been reported [13,14]. IMU angles are also sensitive to the placement and alignment of the sensor on the segment, although less than marker-based angles are to marker placement [15,16].
In order to reduce this error, corrections applied after data collection have been proposed recently. Iizuka et al. [17] used a linear model with leave-one-subject-out (LOSO) cross-validation and reduced the knee root-mean-square error (RMSE) during squats from 10.9° to 3.9°. Pratapneni et al. [18] fitted a harmonic model to the error of a single-camera system and reduced the mean absolute error of knee flexion during gait from 11.2° to 5.3°. Galasso et al. [19] proposed a compensation algorithm for a single-camera gait system with IMUs as the reference, and Maeda et al. [20] trained machine learning models on MediaPipe features against inertial sensors for hip ROM. Fusion of video and inertial data has also been studied through biomechanical models and deep networks [21,22,23,24].
Three points remain open in these studies. First, the corrections are learned and the signals are aligned against the reference system, which is not available in a clinic. Second, the corrections are based on healthy adults who move through a similar range, and it is not known whether they remain valid when the movement is restricted as in patients. Third, the OMC angle is treated as free of error, although it is calculated from a small number of skin markers.
In this work, a MediaPipe-based MMC application, one IMU sensor and an OMC system were recorded together, measuring dynamic joint ROM of shoulder, elbow and knee in 30 healthy young adults. The same recordings were analyzed for a different question in another manuscript, currently under review [25], which deals with the effect of timing and of the agreement metric on the apparent accuracy of the recorded MMC angle. The recordings, the time alignment to the OMC angle and their classifications (Section 2.3 and Section 2.4) are common to both manuscripts, and are described here in full, so that the present work can be assessed on its own. The fusion, the restricted-movement test and the three-cornered hat analysis of the individual errors are addressed exclusively in this manuscript. The questions investigated and the approaches introduced are as follows.
  • Whether two portable estimates of the same joint angle, i.e., from an MMC application and from one IMU, can be combined by a simple and inspectable model that is trained once against OMC and then applied to a new person without any reference system. A linear fusion with a movement-phase correction is proposed for this purpose, in which the two signals are aligned with each other only. To our knowledge, earlier corrections of single-camera angles [17,18,19,20] used a single test signal and were evaluated after its alignment with the reference, and earlier video and IMU fusion methods [21,22,23,24] relied on a biomechanical model or a deep network.
  • Whether a correction learned on adults with full movement remains valid when the excursion is smaller. A restricted-movement stress test is introduced for this purpose, in which the slope and the intercept of the estimated ROM against the reference ROM are examined in addition to the coefficient of determination.
  • How much of the disagreement with a marker-based angle can be assigned to each of the three systems, including the reference. The three-cornered hat method [26] is applied to the repetition peak for this purpose, together with a bound for the case in which the errors of the two test systems are correlated.

2. Materials and Methods

2.1. Participants

Thirty healthy young adults aged 18 to 24 years took part in this study, i.e., 19 women (age 21.6 ± 1.1 years, height 155.9 ± 6.6 cm, body mass index 23.7 ± 4.4 kg/m2) and 11 men (age 19.8 ± 2.2 years, height 173.4 ± 4.8 cm, body mass index 23.0 ± 5.2 kg/m2). Volunteers were included if they could move the shoulder, elbow and knee through their range without severe restriction, could follow instructions, were suitable for non-invasive sensors and skin markers, and gave written informed consent. Volunteers with a severe neurological, cognitive or psychiatric disorder affecting participation, severe pain or an acute injury restricting the movements, a recent fracture, surgery or medical intervention affecting the shoulder, elbow or knee, or pregnancy were excluded. The protocol allowed ages of 18 to 70 years, and only healthy young adults were recruited for the dataset analyzed here. The protocol was approved by the Institutional Ethics Committee of Sri Sivasubramaniya Nadar College of Engineering (Ref: IEC/SSN CE/Pr.No.20/08.02.2025) and was conducted in accordance with the Declaration of Helsinki. Informed consent was obtained from all participants.

2.2. Experimental Setup

Three systems recorded each movement at the same time. The experimental setup is shown in Figure 1, and the acquisition and analysis pipeline in Figure 2. The hardware and the raw output of each system are described first, followed by the definition of the angle obtained from each of them.
Figure 1. Experimental setup. (a) Top view: the tablet running the MMC application on a tripod at 2.2 m from the participant, with the OMC camera (OptiTrack V120:Duo, NaturalPoint Inc., Corvallis, OR, USA; 120 Hz; Motive software) beside it; both face the participant. (b) Reflective markers and IMU for each joint; the angle θ is calculated at the middle marker or landmark. (c) Movements and the camera view used; gray: starting position. Each movement was recorded on the right and left sides. (d) Start of a recording.
Figure 2. Block diagram of the study. θM is the joint angle of the MMC application in the image plane (Equation (1)), θI is the joint angle from the pitch of the IMU and θO is the three-marker joint angle of the OMC system (Section 2.2). The MMC application starts recording once all the landmarks are detected and, after a programmed delay of 1.5 s, sends a start command to the OMC system and the IMU; the clocks are not synchronized. All three signals are resampled to 120 Hz. For a new recording, the MMC angle θM and the IMU angle θI are aligned with each other, fused with Equation (2) and corrected with Equation (3), and the OMC system is not needed. The shaded blocks use the OMC angle θO: the alignment of θM and θI to θO, the training of the fusion weights w0, wM and wI (Equation (2)) and the phase-correction coefficients c0, ak and bk (Equation (3)) on the other participants by leave-one-subject-out cross-validation (dashed arrows from the training block), and the evaluation of the held-out participant. Only the proposed method is shown; the other methods are described in Section 2.5.
(1) MMC application: A custom Android application was developed in Kotlin with the CameraX library and the MediaPipe pose estimation framework [9], which detects 33 body landmarks in each frame. The application ran on a tablet (Galaxy Tab S9, SM-X710, Samsung Electronics Co., Ltd., Suwon, Republic of Korea) mounted on a tripod in portrait orientation at 2.2 m from the participant. The analyzed image was 640 × 480 pixels. The raw output of the framework for each frame is the position of every landmark in image coordinates that are normalized by the image width and height, together with a visibility score. Each joint angle was calculated in the image plane at the vertex of three landmarks, i.e., hip, shoulder and elbow for the shoulder joint, shoulder, elbow and wrist for the elbow joint, and hip, knee and ankle for the knee joint, as
θ = cos − 1 v 1 ⋅ v 2 ∥ v 1 ∥   ∥ v 2 ∥
where v1 and v2 are the two-dimensional vectors from the vertex to the two adjacent landmarks. The angle is thus the included angle between the two segments, i.e., the angle at the vertex between the lines to the two adjacent landmarks, as projected on the image, which is 180° for a straight limb at the elbow and knee and close to 0° for the arm at the side at the shoulder. All three angles were calculated from the normalized image coordinates without a correction for the aspect ratio of the image, and the effect of this is quantified in Section 3.5. The application stored the angle with a time stamp for every processed frame, and the landmark coordinates were not stored. For display, the angle was smoothed exponentially (α = 0.2) and held until it changed by 2°. The shoulder and elbow recordings contained the unsmoothed angle, whereas the knee recordings contained the displayed angle. This difference was not a design choice of this study. The knee was recorded in the sagittal view, in which the hip, knee and ankle landmarks were partly occluded by the other limb and fluctuated between frames; the application, which was the same for all three joints, therefore wrote the smoothed and held value to the file for the knee only. The smoothing delayed the angle by about 0.15 s, which was removed by the alignment. The knee results are therefore not strictly comparable with those of the other two joints.
(2) IMU: One inertial sensor (Xsens DOT, Movella Inc., Henderson, NV, USA; 60 Hz) was fixed with its strap on the distal segment of the joint, i.e., on the lateral aspect of the distal upper arm just above the elbow for the shoulder, on the lateral aspect of the distal forearm just above the wrist for the elbow and on the anterior aspect of the mid-shank for the knee, with the positive x axis of the sensor along the long axis of the segment and pointing towards the proximal joint (the shoulder, the elbow and the knee, respectively). The raw output of the sensor is its orientation with respect to an earth-fixed frame with its vertical axis along gravity, which was stored as Euler angles in the Z-Y-X (yaw, pitch, roll) sequence. The pitch angle is the elevation of the sensor x axis above the horizontal. It is referenced to gravity, it does not depend on the heading about the vertical, and it is defined uniquely between −90° and +90°; only the roll and yaw angles become ill-defined when the pitch approaches ±90° (gimbal lock), and they were not used. The segment angle was taken as the change in the pitch angle from its value in the starting position, so that no sensor-to-segment calibration other than this rest reading was needed. The shoulder angle was this change, and the elbow and knee angles were obtained as 180° minus this change. Two assumptions are made here. First, the proximal segment (trunk for the shoulder, upper arm for the elbow, thigh for the knee) is taken as stationary. All three movements were performed standing. For the shoulder and elbow, the participants faced the tablet and had no support, and for the knee, they stood side-on to the tablet, where six participants held a chair for support. The proximal segment was controlled by instruction and observation only, and it was not strapped. Second, the movement is taken to be a rotation about one axis that is perpendicular to the sensor x axis, and the limb is taken as straight (180°) in the starting position. A two-sensor arrangement, in which the angle is obtained from the relative orientation of the proximal and distal sensors [16], was not used in this protocol. The extent to which these assumptions were met is examined in Section 3.5 from the full orientation of the sensor and from the OMC angle in the starting position.
(3) OMC: A marker-based system (OptiTrack V120:Duo, NaturalPoint Inc., Corvallis, OR, USA; 120 Hz; Motive software) was placed adjacent to the tablet. It has two cameras on a fixed bar, which is factory calibrated. The factory calibration was used, no user calibration with a wand was carried out before the sessions, and a calibration residual is therefore not available for these recordings. The raw output is the three-dimensional position of each marker. Three reflective skin markers were placed on the anatomical landmarks that correspond to the three landmarks of the MMC application, i.e., on the lateral aspect of the hip, on the superior aspect of the shoulder near the acromion and on the lateral aspect of the distal upper arm near the elbow for the shoulder; near the acromion, on the lateral aspect of the distal upper arm near the elbow and on the distal forearm just proximal to the wrist for the elbow; and on the lateral aspect of the hip, the knee joint and the ankle for the knee. These sites are close to the joints but are not on the joint centers, which adds to the difference between the OMC angle and an anatomical joint angle. The OMC angle was calculated at the middle marker with Equation (1) from the three-dimensional marker positions. No segment coordinate systems, joint centers or biomechanical model as recommended by the International Society of Biomechanics [27] were used, since three markers do not allow them. The OMC angle is therefore a three-point included angle and not an anatomical joint angle, and it is sensitive to marker placement and to soft tissue movement [2]. The origin of the OMC frame is at the camera bar, with one axis pointing from the bar towards the participant, one horizontal axis across the field of view and one vertical axis. As the bar was beside the tablet and faced the same way, the plane formed by the horizontal and vertical axes of the OMC frame was taken as parallel to the image plane of the tablet, and this plane was used for the image-plane projection of the OMC angle in Section 4.3.
(4) Comparability of the three angles: The three systems measure related but not identical quantities. The OMC angle is the included angle between the two segments in three dimensions. The MMC angle is the same included angle after projection on the image plane, and the two are equal only when both segments lie in a plane parallel to the image. The IMU angle is the change in the inclination of the distal segment, which is equal to the change in the included angle only when the proximal segment is stationary and the movement stays in a vertical plane. The three angles are therefore comparable for the planar movements and camera views of this protocol (frontal view for shoulder abduction and elbow flexion, sagittal view for knee flexion), and the differences between the definitions appear as a part of the disagreement reported below. The same three-point definition is used for the MMC and OMC angles, whereas the IMU angle is obtained on a different physical principle. At the elbow, which was recorded in the frontal view, the plane of the forearm movement depends on the rotation of the upper arm, and any part of the movement towards or away from the camera shortens the projected forearm and changes the MMC angle while leaving the OMC and IMU angles unchanged.

2.3. Protocol

The application started recording when all the required landmarks were detected and, after a programmed delay of 1.5 s, sent a start command over a network socket to a program on a personal computer, which started the OMC and IMU recordings. The clocks of the systems were not synchronized. The participant stood facing the tablet for shoulder abduction and elbow flexion and side-on to the tablet for knee flexion, as shown in Figure 1c, and six participants held a chair for support during knee flexion. After a settling period of 10 s in the starting position (arm at the side for the shoulder, limb straight for the elbow and knee), the participant performed the movement through the comfortable maximum range and returned to the starting position, about four times at a self-selected speed and without a pause at the end of the range. The participants were asked to keep the trunk upright and to move in the plane facing the camera. During elbow flexion, the palm faced the body and the forearm moved sideways across the front of the body, so that the movement stayed approximately in the image plane and the shoulder, elbow and wrist markers remained visible to the OMC cameras. The movement part of a recording lasted 32 ± 10 s for the shoulder, 21 ± 6 s for the elbow and 17 ± 5 s for the knee (mean ± standard deviation). Shoulder abduction/adduction, elbow flexion/extension and knee flexion/extension were recorded on the right side and then on the left side, accounting for a total of 180 recordings. The markers and the sensor were moved to the other limb between the two sides. All the recordings of a participant were made in one session.

2.4. Signal Processing

The OMC angle was placed on its true time base from the frame times, and gaps longer than 0.25 s were excluded. The MMC angle was kept on its recorded time stamps, as the frame rate of a pose estimation pipeline is not uniform [17]. The frame rate was not fixed; its measured median was 25.0 Hz. All three signals were resampled to 120 Hz by linear interpolation. As the clocks were not synchronized, each test signal, i.e., the recorded MMC and IMU angles, was aligned with the OMC angle by the time shift that maximized the correlation coefficient within ±30 s, with at least 80% overlap. This alignment with the OMC angle was used for the evaluation and for the baseline agreement of the recorded signals. The movement window was defined from the OMC angle as the interval in which its standard deviation over 1 s exceeded 8°, extended by 0.5 s on both sides, and the waveform RMSE was calculated within this window. The RMSE after removal of the mean difference in each recording was also calculated, which separates a constant offset from the remaining waveform error.
A recording was accepted as reference-valid when at least one test system correlated with the OMC angle at r ≥ 0.95 after alignment. A recording in which the two test systems correlated with each other at r ≥ 0.95, but neither did so with the OMC angle, was classified as reference suspect and was excluded from the main analysis. The rationale is that the MMC application and the IMU work on different physical principles and share no hardware, so for a waveform on which they agree closely and which the OMC angle does not follow them, the error most likely lies in the OMC angle of that recording, e.g., a marker that was occluded, mislabeled or displaced. Both rules select recordings by their agreement with the reference, so they can make the errors of the MMC application and the IMU appear smaller. For this reason, the evidence for the classification is reported in Section 3.1, and the baseline agreement is also given with the excluded recordings included. Repetitions were detected from the peaks of the OMC angle (prominence of at least 40% of the excursion, at least 1 s apart), and the peak angle and ROM of each repetition were obtained for every system between the midpoints of adjacent peaks.

2.5. Post-Collection Methods

All the methods were learned on the other participants, with the OMC angle as the target, and applied to the held-out participant (LOSO). The OMC system is thus needed when a method is built and is not needed when it is applied. For the methods that use the IMU, the IMU angle θI was aligned with the MMC angle θM by cross-correlation of these two signals only, in the same manner as in Section 2.4, so that the OMC angle of the held-out participant was not used to combine the two signals. For the evaluation, the aligned pair was then placed on the time base of the OMC angle, and the movement window of Section 2.4 was used. Eight methods were compared with the recorded MMC angle, and they are listed in Table 1 with their inputs and settings. The settings of the Kalman smoother and of the two learned models were chosen once, as moderately regularized values, before the held-out results were examined. No search over settings was made, so no inner validation loop was needed, and the results of these methods may not be the best that they can give. Within the movement window, every sixth sample (20 Hz) of the training recordings was used for fitting.
Table 1. Post-collection methods compared with the recorded MMC angle. All were trained with the OMC angle as the target on the other participants. M: MMC angle; I: IMU angle.
(1) Linear correction: A line from θM to the OMC angle was fitted by least squares on the training participants and applied to the held-out participant, as in [17]. This method uses the MMC angle alone and corrects a gain and an offset that are common to all participants.
(2) Linear fusion: The MMC and IMU angles are two estimates of the same joint angle with different sources of error, i.e., projection and landmark error for the MMC angle and proximal segment movement and sensor placement for the IMU angle. A weighted sum of two such estimates has a lower error than either of them when their errors are not fully correlated. The MMC angle and the IMU angle θI were therefore combined as
θ ^ F t = w 0 + w M   θ M t + w I   θ I t
with the three weights obtained by least squares against the OMC angle on the training participants, separately for each joint. The weights are not constrained to add up to one, so that a common gain error is also corrected.
(3) Phase correction: After a linear model, the remaining error was found to repeat with the movement cycle, e.g., an underestimation near the end of the range. A correction that depends on the position within the cycle was therefore added, in the manner of the harmonic correction of [18]. The estimate was low-pass filtered at 2 Hz (second-order Butterworth filter, applied forwards and backwards) after removal of its mean, and the phase φ(t) of the movement cycle was obtained as the angle of its analytic signal from the Hilbert transform. The remaining error of the training recordings, divided by the standard deviation σ of the estimate within a movement window obtained from the estimate itself with the rule of Section 2.4, so that no reference signal is used when the correction is applied to a new recording, was then fitted by least squares with a constant and three harmonics of the phase, which gave the seven coefficients c0, ak and bk. For a held-out recording, the correction was applied as
θ ^ t = θ ^ F t + σ c 0 + ∑ k = 1 3 a k sink φ t + b k cosk φ t
Because the correction is multiplied by σ of the recording to which it is applied, it becomes smaller when the movement is smaller. The correction was applied to the linear correction and to the linear fusion. The assumptions are that the movement is cyclic, so that a phase can be defined, and that the shape of the error over the cycle is common to the participants.
(4) Kalman smoother: The linearly corrected MMC and IMU angles were treated as two measurements of one angle in a constant-velocity model with the angle and the angular velocity as states. A Kalman filter followed by a Rauch–Tung–Striebel smoother was applied, with the measurement variances taken as the residual variances of the two linear corrections on the training participants and a fixed process noise (Table 1). The phase correction was also applied to its output.
(5) Gradient boosting and neural network: These two models were included as flexible learned corrections of the kind proposed in [20]. Both were trained to predict the OMC angle at each time sample of the training recordings. The gradient boosting regressor used 13 features of the sample, i.e., the two angles, their difference, their time derivatives, the sine and cosine of the phase, and six summary values of the recording (standard deviation, 5th and 95th percentiles of each angle). The neural network was a multilayer perceptron with two hidden layers that received a 1 s window of both angles centered on the sample. Each model was validated on the held-out participant in the same LOSO loop as the other methods, and the training was repeated with other random seeds to check the stability of the results.
(6) Per-recording line: One line was fitted to the fused estimate of each recording against the OMC angle of the same recording. This needs the reference and is not counted as a method; it is reported only as an upper bound of what a gain and an offset specific to the recording could achieve.

2.6. Design of the Restricted-Movement Stress Test

In order to test whether a method that had learned the ROM of adults without impairment holds good when the range is smaller, every held-out recording was compressed to half of its excursion about its own rest level in all three recording systems (MMC, IMU and OMC), i.e., each signal x(t) was replaced by x0 + 0.5[x(t) − x0], where x0 is its rest level. The methods trained on the uncompressed recordings were applied, and the ratio of the estimated ROM to the OMC ROM was calculated. In addition, the estimated ROM of every repetition was regressed on the OMC ROM over the uncompressed and compressed recordings together, and the coefficient of determination (R2), the slope and the intercept were obtained. A method that follows the range has a slope of 1 and an intercept of 0°. This test changes only the amplitude. The timing, the speed profile and the plane of the movement are those of the full movement, and the errors of the systems are scaled together with the signals. It thus represents the reduced range of motion of patients, but not the changes in speed, the compensatory movements and the out-of-plane motion that accompany a real restriction, and it checks only that a correction does not depend on the range seen in training. As the proposed phase correction is multiplied by σ, it follows a linear scaling by construction, whereas a model without this property is tested outside its training range.

2.7. Three-Cornered Hat

For three systems x, y and z with mutually independent errors, the variance of the difference between two systems is the sum of their individual error variances. The individual error variance of x is then [26]
σ x 2 = 1 2 Var x − y + Var x − z − Var y − z
This was applied to the peak angle of each repetition from the MMC application, the IMU and the OMC system. Confidence intervals were obtained with 2000 bootstrap samples over participants. An estimated variance can be negative when the true value is small, and it is then reported as zero. The independence assumption needs attention here. When the errors of the MMC application and the IMU have a covariance c, Equation (4) returns σ2O + c for the OMC system and σ2M − c and σ2I − c for the two test systems [28]. The value obtained for the OMC system is therefore the sum of its individual error and of any error that is shared by the two test systems, and it is an upper bound of the OMC error when c is positive. In contrast, an error shared by the MMC and OMC angles, which use the same three-point definition, is subtracted from the terms of these two systems and added to that of the IMU, so it lowers the value obtained for the OMC system. The estimates were therefore recalculated for assumed correlations ρ between the errors of the two test systems from 0 to 0.5, with c = ρσMσI. Here, σM and σI are the covariance-corrected values, i.e., σ2M and σ2I are the values returned by Equation (4) plus c, so c appears on both sides; it was solved self-consistently by fixed-point iteration for each ρ. The value of ρ at which the OMC term becomes zero is reported. As the IMU was aligned in time with the MMC angle for the fusion, the analysis was also repeated with each test system aligned separately with the OMC angle.

2.8. Statistical Analysis

Waveform RMSE is reported as the median and interquartile range across participants, and the methods were compared with the Friedman test followed by Wilcoxon signed-rank tests on participant means. The Holm correction was applied within each joint to a family of 12 comparisons: each of the eight methods of Table 1 against the recorded MMC angle, and the fusion with phase correction against the linear fusion, the Kalman smoother, gradient boosting and the neural network. The median paired difference is reported with a bootstrap 95% confidence interval. Agreement of the repetition peak was assessed with the bias and the 95% limits of agreement (LoA) for multiple observations per individual [29], and with the proportion of peaks within 5° and within 10° of the OMC value. These two limits were taken as the range of error that is usually accepted for clinical ROM measurement, i.e., about 5° for repeated goniometer readings by one examiner and up to 10° between examiners or instruments [30,31]. The bias was tested against zero with a one-sample t-test on participant means, and the standard deviation of the differences before and after fusion was compared through its ratio with a bootstrap interval over participants. The intraclass correlation coefficient for absolute agreement, ICC(A,1), was calculated on participant means. The variance of the peak difference was divided into components between participants, between recordings and between repetitions with a nested analysis of variance. In the stress test, the ROM ratio was tested against 1 with the Wilcoxon signed-rank test. A value of p < 0.05 was considered significant. The bootstrap confidence intervals were not adjusted for multiple comparisons. They describe the size of a difference and are not adjusted tests, so an interval that excludes zero can occur together with a Holm-adjusted p value above 0.05.

3. Results

3.1. Recordings and Agreement of the Recorded Signals

Of the 180 recordings from 30 participants, 162 were reference-valid (Table 2). In 150 of them, both test systems (the MMC application and the IMU) agreed with the OMC angle at r ≥ 0.95, and in the remaining 12, only one of them did. Sixteen recordings were classified as reference suspect, and two were unusable. In the 16 reference-suspect recordings, the MMC and IMU angles correlated with each other at a median of 0.99 (range 0.98 to 1.00), whereas their correlations with the OMC angle were between 0.30 and below 0.95, and their RMSE against the OMC angle was between 18° and 46°. Ten of the sixteen were shoulder recordings, and eight of these were of the left shoulder, which points to the marker set of that side and not to the two test systems.
Table 2. Recordings retained for analysis. Each joint was recorded on both sides of the 30 participants (60 recordings). The column Participants with a valid recording gives the number of participants with at least one reference-valid recording of that joint, so 29 at the knee and shoulder means that both recordings of one participant were excluded at each of these joints.
The agreement of the recorded signals is the baseline for the corrections and is reported here in full. The MMC application sampled at a median of 25.0 Hz and showed a median waveform RMSE of 10.9° at the knee, 18.3° at the shoulder and 9.4° at the elbow, against 11.5°, 8.2° and 10.6° for the IMU. The shoulder error was mainly a constant offset of +13.5°, and the RMSE reduced to 8.8° when the mean difference in each recording was removed. When the 16 reference-suspect recordings were included (178 recordings), these medians changed to 11.6°, 19.6° and 9.4° for the MMC application and to 12.8°, 10.1° and 11.3° for the IMU, i.e., by 0.0° to 1.9°. With the same 178 recordings, the fusion with phase correction, trained on the reference-valid recordings only, gave a median RMSE of 9.5°, 8.0° and 8.2°, and its reduction against the recorded MMC angle remained significant at the knee and shoulder (unadjusted Wilcoxon test, p = 0.008 and p < 0.001) and not significant at the elbow (p = 0.055), against unadjusted values of 0.005, <0.001 and 0.050 for the 162 reference-valid recordings. The result was similar when the suspect recordings were also used for training (9.6°, 8.1° and 8.1°). In the 16 suspect recordings themselves, the fused estimate disagreed with the OMC angle by an RMSE of 19° to 43°, as did the two test systems, so the fusion did not move these recordings towards the OMC angle. When these recordings were included, the width of the LoA of the fused peak changed from 41.2° to 40.1° at the knee and widened from 41.5° to 51.5° at the shoulder and from 42.2° to 66.3° at the elbow. The exclusion therefore lowers the reported error, mainly at the shoulder and elbow, and it does not change the order of the systems or of the joints or the significance of the gain of the fusion. One recording per joint is shown in Figure 3 with the proposed fusion.
Figure 3. Joint angle from the three systems and from the proposed fusion for the recording with the median MMC error of each joint. (a) Knee. (b) Shoulder. (c) Elbow.
The agreement of the peak angle of each repetition is given in Table 3 and Figure 4 for 688 repetitions (about four per recording, detected from the OMC angle) for the MMC application, the IMU and the proposed fusion. As recorded, the MMC application overestimated the peak by 21.6° at the shoulder and by 6.0° at the knee, and the LoA were 42° to 53° wide at the three joints. Only 16% of the shoulder peaks were within 10° of the OMC value. The IMU alone had a small bias at the shoulder (+1.6°) but the largest bias at the knee (+12.6°) and the widest LoA at the elbow (61.5°). The proportion of peaks within 5° of the OMC value was 30%, 6% and 43% for the MMC application and 16%, 43% and 27% for the IMU at the knee, shoulder and elbow.
Table 3. Agreement of the repetition peak angle with the OMC angle.
Figure 4. Bland–Altman plots of the repetition peak angle against the OMC angle. (a–c) MMC application as recorded. (d–f) IMU as recorded. (g–i) Proposed fusion with phase correction on held-out participants. Solid line: bias. Dashed lines: 95% LoA. Dotted line: zero difference. Each symbol is one repetition (blue circles: MMC application; grey squares: IMU; red triangles: fusion with phase correction). One IMU point of the elbow (+96°) lies outside the plotted range.

3.2. Post-Collection Correction and Fusion

The waveform RMSE of the methods on held-out participants is shown in Figure 5. The linear correction of the MMC angle reduced the shoulder RMSE from 18.3° to 10.6°, but it gave no gain at the knee or elbow. The methods differed at every joint (Friedman test, p < 0.001). The linear fusion lowered the RMSE to 8.5°, 6.7° and 8.2° at the knee, shoulder and elbow, and the fusion with phase correction to 7.9°, 6.9° and 8.2°. Against the recorded MMC angle, the fusion with phase correction reduced the RMSE by a median of 2.3° at the knee and 10.8° at the shoulder, which was significant after Holm correction (p = 0.043 and p < 0.001), whereas the reduction of 1.3° at the elbow was not (p = 0.32; Table 4). The additional gain of the phase correction over the linear fusion was not significant at any joint after correction.
Figure 5. Waveform RMSE against the OMC angle for the recorded MMC angle and the eight post-collection methods of Table 1 under LOSO cross-validation, median and interquartile range across participants. Circles: median; horizontal bars: interquartile range. The proposed method (fusion with phase correction) is shown in bold black, and the other methods in grey. (a) Knee. (b) Shoulder. (c) Elbow. The diamond is the per-recording line, which needs the reference.
Table 4. Statistical comparison of the fusion with phase correction against the recorded MMC angle (95% confidence interval in parentheses). The bias is the mean of the participant means, as used for the t-test, whereas Table 3 pools the repetitions. The confidence intervals are not adjusted for multiple comparisons; the unadjusted Wilcoxon p for the change in RMSE was 0.005, <0.001 and 0.050 at the knee, shoulder and elbow. The Holm correction covered 12 comparisons per joint (Section 2.8).
The Kalman smoother, the gradient boosting model and the neural network did not improve on this consistently. With the proposed fusion, the peak bias did not differ from zero at any joint (Table 4), and the proportion of shoulder peaks within 10° increased from 16% to 76% (Table 3). The standard deviation of the peak differences reduced at the knee and shoulder, by ratios of 0.85 and 0.78, but not at the elbow, and the width of the LoA remained about 41° to 42°, i.e., about ±20°. The proportion of fused peaks within 5° of the OMC value was 34%, 45% and 40% at the knee, shoulder and elbow, and the proportion within 10° was 65%, 76% and 75%. The fused estimate therefore did not reach the 5° to 10° range of Section 2.8 for an individual reading. The ICC of the peak angle increased from 0.37 to 0.58 at the knee and from 0.07 to 0.50 at the shoulder, and was unchanged at 0.64 at the elbow.
In contrast, the per-recording line gave an RMSE of 4.9°, 5.1° and 3.7° for knee, shoulder and elbow respectively (Figure 5) and LoA about half as wide. The remaining error is therefore largely a scale and an offset that are fixed within a recording. In the variance of the fused peak error, the component between repetitions was only 12%, 22% and 10% at the knee, shoulder and elbow, the component between recordings of a participant was 59%, 38% and 41%, and the component between participants was 29%, 40% and 49%. The intervals of these shares were wide, as each participant had at most two recordings per joint. The gain of the MMC angle against the OMC angle varied between recordings, with a standard deviation of 0.14 at the knee, 0.09 at the shoulder and 0.10 at the elbow, and the gain errors of the MMC application and the IMU were weakly correlated at the knee and elbow (r = 0.22 and 0.20). After a per-recording line, 90% to 99% of the residual power was below 2 Hz.

3.3. Restricted-Movement Stress Test

The ratio of the estimated ROM to the OMC ROM for the compressed recordings is shown in Figure 6. The fusion with phase correction returned the compressed range correctly, with ratios of 0.98 (95% CI 0.94 to 1.01), 0.99 (0.96 to 1.01) and 1.00 (0.97 to 1.03) at the knee, shoulder and elbow, none of which differed from 1. This is expected from its construction (Section 2.6). The linear fusion without the phase correction underestimated the knee range (0.93, p < 0.001). On the other hand, the gradient boosting model overestimated the ROM by 33% at the knee (95% CI 28% to 39%) and 18% at the elbow (15% to 21%), with a peak bias of about −25° at both joints, and the neural network overestimated the elbow ROM by 21% (16% to 25%). These ratios differed from 1 (p < 0.001), and 93% of the participants were more than 15% from the correct knee range with the gradient boosting model. The ratios of the two learned models changed by up to 0.02 when the training was repeated, which did not alter these findings.
Figure 6. Estimated ROM divided by the OMC ROM when every held-out recording was compressed to half of its excursion, for the recorded MMC angle and the eight methods of Table 1. (a) Knee. (b) Shoulder. (c) Elbow. Circles: mean ratio across participants. The vertical line marks a ratio of 1, i.e., a correctly returned range. The proposed method (fusion with phase correction) is shown in bold black, and the other methods in grey. Crosses mark a deviation above 15%.
The estimated ROM is plotted against the OMC ROM in Figure 7 for the uncompressed and compressed recordings together. The R2 was similar for all the methods, i.e., 0.88, 0.93 and 0.93 for the fusion with phase correction and 0.80, 0.90 and 0.93 for the gradient boosting model at the knee, shoulder and elbow. However, the slope of the gradient boosting model was 0.55 at the knee with an intercept of 38.6°, and 0.78 at the elbow with an intercept of 24.7°, and the neural network gave a slope of 0.81 with an intercept of 25.3° at the elbow. The fusion with phase correction gave slopes of 0.91 to 1.00 with intercepts below 5°.
Figure 7. Estimated ROM against the OMC ROM of each repetition on held-out participants, for the uncompressed (gray) and compressed (blue) recordings. Rows: knee (a–d), shoulder (e–h) and elbow (i–l). Columns: MMC application as recorded, fusion with phase correction, gradient boosting and neural network. Solid line: regression over both sets. Solid red line: regression over both sets. Dotted line: identity.
The pooled regression is driven by the contrast between the full and the compressed recordings. Whether an estimate follows real differences in range was therefore also examined within the uncompressed recordings alone, in which the OMC ROM varied naturally between repetitions (5th to 95th percentile 77° to 115° at the knee, 111° to 152° at the shoulder and 102° to 140° at the elbow). The slope of the fused ROM against the OMC ROM was 0.91 (95% CI 0.57 to 1.21) at the elbow, but only 0.50 (0.29 to 0.73) at the knee and 0.37 (0.18 to 0.57) at the shoulder, and the recorded MMC and IMU angles gave similar slopes (0.45 and 0.54 at the knee, 0.33 and 0.43 at the shoulder). These slopes are lowered by the narrow natural range and by the error of the OMC ROM itself, so they are not estimates of the true gain. They show, however, that the ability of any of the estimates to follow real differences in range between persons was not demonstrated at the knee and shoulder with the present data.

3.4. Individual Error of the Three Systems

The individual error of each system at the repetition peak, obtained with Equation (4), is shown in Figure 8.
Figure 8. Individual error standard deviation of the repetition peak for the OMC system, the MMC application and the IMU from the three-cornered hat, with 95% bootstrap intervals. The value is printed above each interval. The interval of the OMC system at the knee is 0° to 7.5°; its lower end is at the zero line.
With independent errors assumed, the term assigned to the OMC system was 1.7° (95% CI 0° to 7.5°) at the knee, 9.1° (5.8° to 11.9°) at the shoulder and 7.9° (3.8° to 10.7°) at the elbow. At the shoulder, this was similar to the term of the MMC application (9.9°) and larger than that of the IMU (6.0°). The values were unchanged when each test system was aligned separately with the OMC angle (9.1° at the shoulder and 8.1° at the elbow, and zero at the knee), so they do not arise from the alignment of the IMU with the MMC angle. They also changed little when only the 150 recordings in which both test systems agreed with the OMC angle were used (8.4° at the shoulder and 7.5° at the elbow), so they are not produced by the 12 recordings in which one test system disagreed. When the 16 reference-suspect recordings were added, the term of the OMC system rose to 12.2° (7.5° to 16.8°) at the shoulder and 15.4° (5.9° to 24.1°) at the elbow, whereas the terms of the MMC application (9.2° and 6.9°) and of the IMU (6.3° and 13.5°) were unchanged, and the knee values changed by less than 0.3°. The disagreement in these recordings is thus carried by the OMC angle, which supports their classification. They do depend on the independence assumption (Table 5). When the errors of the two test systems were taken as correlated with ρ = 0.3, the OMC term reduced to 7.5° (2.1° to 11.0°) at the shoulder and to 4.3° at the elbow, where the interval then included zero. At the knee, the term was zero for every ρ above 0. The whole term would be explained by shared error and not by the OMC system at ρ = 0.57 for the shoulder and ρ = 0.37 for the elbow. A shared error of this size cannot be ruled out, as both test systems measure the distal segment without tracking of the proximal one and the MMC and OMC angles share the three-point definition. The values of 9° and 8° are therefore upper bounds of the error of the OMC angle, and a part of the disagreement at the shoulder and elbow belongs either to the reference angle, which was calculated from three skin markers, or to an error common to the two test systems.
Table 5. Standard deviation (°) assigned to the OMC angle, the MMC application and the IMU at the repetition peak for assumed correlations ρ between the errors of the MMC application and the IMU (95% bootstrap interval of the OMC term in parentheses; negative variance estimates are given as 0), and half-width of the 95% LoA of the fused peak after removal of the OMC term. The covariance c = ρσMσI was solved self-consistently (Section 2.7). At the elbow, the OMC term reaches zero at ρ = 0.37; for larger ρ, no solution with a non-negative OMC variance exists, and the values at ρ = 0.37 are given.
When the OMC term for independent errors was removed, the LoA of the fused peak narrowed from ±20.6° to ±10.2° at the shoulder and from ±20.9° to ±14.0° at the elbow (Table 6). No change was obtained at the knee. These are the most favorable values for the test systems. With ρ = 0.3, the corresponding half-widths were 14.4° and 19.1° (Table 5), and with the limiting values of ρ, no narrowing remains.
Table 6. Half-width of the 95% LoA of the repetition peak against the OMC angle and after removal of the OMC term for independent errors (ρ = 0), in degrees. The half-widths are calculated from the pooled standard deviation of the repetition differences, as in the three-cornered hat, and are 0.2° narrower than those from the LoA for multiple observations in Table 3.

3.5. Checks of the IMU Assumptions and of the Image Geometry

The assumptions of the IMU angle (Section 2.2) were examined on the 158 reference-valid recordings for which the full orientation of the sensor was stored. The rotation of the sensor between successive samples was decomposed, and the share of the squared rotation about the principal axis of the movement was a median of 96% at the elbow, 83% at the knee and 83% at the shoulder. The remaining 4% to 17% was rotation about the other two axes, so the single-axis assumption held closely at the elbow and only approximately at the knee and shoulder. The roll and yaw angles of the sensor were not used for this check, as they showed jumps of up to 200° in and near the starting position of the knee and elbow recordings, where the segment was close to vertical and the pitch approached ±90°, which is the expected behavior of Euler angles near this limit and not a rotation of the segment. The pitch angle came within 10° of ±90° in 98% of the knee recordings, 61% of the shoulder recordings and 24% of the elbow recordings. The pitch angle remains defined there, but near this limit, it gives the size and not the direction of the tilt of the segment from the vertical, so a segment that starts slightly off the vertical and passes through it during the movement folds the angle and shortens the measured excursion. The IMU angle from the pitch accordingly underestimated the knee excursion (median gain 0.87 against the OMC angle). When the IMU angle was recalculated as the accumulated rotation about the principal axis, which does not use the pitch angle, the knee gain became 0.98 and, on these 158 recordings, the median RMSE of the IMU changed from 12.3° to 9.4° at the knee, from 8.1° to 9.7° at the shoulder and from 10.2° to 11.0° at the elbow. When the recalculated angle was used in the fusion with phase correction, the median RMSE on the same recordings changed from 7.9° to 7.5° at the knee, from 6.8° to 7.3° at the shoulder and from 8.1° to 7.9° at the elbow, and the width of the peak LoA from 41.5° to 40.4°, 41.8° to 47.2° and 42.8° to 41.3°. There was thus no consistent gain, as the fusion weights of Equation (2) already correct a gain that is common to the participants. The pitch-based angle was therefore retained, and the larger knee bias of the IMU in Table 3 is attributed to this compression and to movement of the thigh.
In the starting position, the OMC angle was 171.7 ± 6.2° at the knee and 162.8 ± 7.1° at the elbow, and not 180° as assumed for the IMU angle. This assumption adds an offset of about 8° and 17° to the IMU angle of these joints, which varies between participants with a standard deviation of 6° to 7°. The rest angle of each participant would be the correct offset, but it is not known to the IMU. In the fusion, the absolute level is carried mainly by the MMC angle, which measures the starting posture directly, and the mean part of the IMU offset is removed by the weight w0 of Equation (2). The part that is specific to a participant enters the fused estimate in proportion to the IMU weight, as a part of the recording-specific error of Section 3.2. It does not affect the ROM.
The effect of the aspect ratio on the MMC angle was quantified analytically, as the landmark coordinates were not stored. The image of 640 × 480 pixels was analyzed in portrait orientation, and the framework normalizes the horizontal coordinate by the width (480 pixels) and the vertical coordinate by the height (640 pixels). An angle calculated from the normalized coordinates therefore corresponds to an image in which horizontal distances are enlarged by a factor of 4/3 relative to vertical distances. If the proximal segment is vertical in the image (the trunk for the shoulder, the upper arm for the elbow and the thigh for the knee) and the included angle is θ, the calculated angle is θ′ = tan−1[(4/3) tan θ], taken in the same quadrant as θ. The error θ′ − θ is zero at 0°, 90° and 180°, positive between 0° and 90° and negative between 90° and 180°, with the largest magnitude of 8.2° near 41° and 139°. At the mean OMC peak angles of this study (138° at the shoulder, 76° at the knee and 42° at the elbow), the calculated angle is 8.2° lower than the true angle at the shoulder, 3.4° higher at the knee and 8.2° higher at the elbow. The sign agrees with the peak bias of the recorded MMC angle at the knee (+6.3°, Table 4) but is opposite at the shoulder (+21.0°), and at the elbow, the observed bias (+0.9°) is smaller than the predicted distortion. For an approximate correction, each stored angle θ′ was converted with θ = tan−1[(3/4) tan θ′] under the same assumption of a vertical proximal segment. This changed the mean peak bias of the recorded MMC angle from +6.3° to +3.8° at the knee, from +21.0° to +25.5° at the shoulder and from +0.9° to −6.4° at the elbow, and it increased the mean absolute peak error at all three joints (from 10.7° to 12.0°, from 22.7° to 26.8° and from 8.0° to 9.4°). It also increased the median waveform RMSE of the recorded MMC angle, from 10.9° to 11.6° at the knee, from 18.3° to 18.5° at the shoulder and from 9.4° to 10.3° at the elbow (Section 4.3). The assumption of a vertical proximal segment is approximate, and an exact correction needs the landmark coordinates.

4. Discussion

4.1. Principal Findings

A mobile MMC application was compared with an IMU and an OMC system at three joints in 30 healthy young adults. As recorded, the MMC application showed a waveform RMSE of 9.4° to 18.3° and LoA of 42° to 53° for the peak angle. The fusion of the MMC and IMU angles with a phase correction, trained on other participants against the OMC angle and applied without it, reduced the RMSE to 6.9° to 8.2° and removed the peak bias. However, the LoA remained about ±20°, the gain over the recorded MMC angle was not significant at the elbow, and the phase correction did not add a significant gain in accuracy over the linear fusion. Three further observations are of more interest than the accuracy itself. Most of the error that remained was fixed within a recording, the learned corrections failed when the excursion was reduced, and a part of the disagreement at the shoulder and elbow could not be assigned to the test systems alone.

4.2. Comparison with Published Work

The uncorrected knee error obtained here is close to the values reported for other single-camera systems, i.e., an RMSE of 10.9° during squats [17] and a mean absolute error of 11.2° during gait [18]. After correction, however, lower knee errors were reported in those studies than in ours, i.e., 3.9° with a linear model [17] and 5.3° with a harmonic model [18], against 7.9° in this work. A mean error of about 2° was reported for the knee after a compensation algorithm in [19].
The camera distance was fixed in this work at 2.2 m, as it was in [17], so the camera distance does not explain this difference. In those studies, the correction was learned and the signals were aligned against the reference system, and the task was a continuous cyclic movement. In this work, the MMC application and the IMU were aligned with each other only. When one line was fitted to each recording against the OMC angle, the RMSE reduced to between 3.7° and 5.1°, which is in the range of the published values. The published accuracy was therefore reached with our data only when the gain and the offset of the individual recording were known.
Fusion of video and inertial data has been proposed earlier through a biomechanical model [22], through deep networks trained on synthetic data [23], and by assigning different joints to the camera and the sensor [24]. The fusion used here combines two estimates of the same joint angle from one tablet and one sensor with a line and a phase term. It has ten parameters per joint, which can be inspected. These parameters are specific to the device, the camera position, the sensor placement and the population on which they were trained. A different tablet, camera view or patient group would need a new training set recorded with a reference system, and transfer of the parameters without such data was not tested here. The method is therefore free of the reference only at the time of use.

4.3. Recording-Specific Error

Eight correction methods of increasing complexity converged to nearly the same error. The Kalman smoother gave no gain because the remaining error was low-frequency (90% to 99% of its power below 2 Hz) and not random noise. The gain of the MMC angle varied between recordings by 9% to 14%, and a correction learned from other participants cannot know the gain of a new recording. As the camera distance was fixed, this variation is likely due to the orientation of the participant and of the plane of movement with respect to the camera, and to the placement of the sensor and of the markers, which were applied again for each side. Two geometric explanations were examined and did not account for it. The OMC angle recalculated in the image plane, i.e., from the marker positions projected on the plane parallel to the image (Section 2.2), reduced the shoulder peak bias from 21.3° to 12.9° in the 49 shoulder recordings with stored marker positions. This indicates that about 8° of the shoulder offset is the difference between a three-dimensional and a two-dimensional definition of the angle and not an error of either system, but it did not improve the waveform error. The aspect ratio of the 640 × 480 image can change the MMC angle by up to 8.2° (Section 3.5), but at the shoulder, it lowers the calculated angle, so it does not contribute to the positive shoulder bias, and its approximate correction, applied without the landmark coordinates, did not reduce the error either. About 8° of the shoulder bias is thus explained by the three-dimensional definition of the OMC angle, and the remainder is not explained by the present data.

4.4. Validity Under Restricted Movement

The gradient boosting model and the neural network gave errors similar to the linear fusion in the healthy participants. When the excursion was compressed to half, they overestimated the ROM by 18% to 33% at the knee and elbow, as they had learned the range that adults without impairment reach. For the gradient boosting model, this is the expected behavior, since a tree-based model returns values within the range of its training targets and does not extrapolate [32]. The observation is still of practical concern, because corrections of this type are trained on participants without impairment and are intended for patients, whose movement is restricted. The coefficient of determination did not reveal this failure, as R2 was between 0.80 and 0.93 for all the methods, whereas the slope and the intercept of the regression did. R2 alone is therefore not sufficient to validate a learned correction, and a test of this kind is suggested before a learned correction is used on patients. The proposed correction is scaled by the amplitude of the recording and remained within 2% of the correct range. It has to be noted that the test favors the proposed method, as a correction scaled by σ follows a linear compression by construction. The test compressed existing signals and did not change the speed, the compensation by adjacent segments or the out-of-plane movement, all of which change when a patient moves through a restricted range. It shows that the two learned models depend on the training range and that the proposed correction does not, and it does not show that the proposed correction is accurate in patients. Within the natural range of the uncompressed recordings, the fused ROM followed the OMC ROM at the elbow but not clearly at the knee and shoulder (Section 3.3), where the range was narrow. Recordings in which the participants deliberately move through a reduced range, and recordings of patients, are needed to settle this. The phase correction did not give a significant gain in accuracy over the linear fusion in the healthy participants, and its only measured benefit was the removal of the underestimation of the knee range by the linear fusion under compression.

4.5. Error of the Reference

The OMC angle is treated as the truth in validation studies. With three systems recorded together, the disagreement could be divided between them, and up to 9° of the peak disagreement at the shoulder and 8° at the elbow was assigned to the OMC angle. This follows from the observation that the MMC application and the IMU agreed with each other more closely than their separate disagreements with the OMC angle would allow. For example, at the shoulder, the standard deviations of the differences from the OMC angle were 13.4° and 10.9°, which would give about 17° between the two test systems if the OMC angle were exact and their errors independent, whereas 11.6° was observed. These values are large for a marker-based system, and they should not be read as the instrument error of the cameras. The OMC angle was calculated from three skin markers with a two-camera system and without a biomechanical model or joint centers, and the system was used with its factory calibration without a user wand calibration, so marker placement, soft tissue movement [2] and the difference between a three-point angle and the quantities measured by the test systems are the likely sources. The method cannot distinguish an error of the reference from an error shared by the two test systems, and the bound in Table 5 shows that a correlation of 0.37 (elbow) to 0.57 (shoulder) between their errors would explain the whole term. The selection of the recordings acts in the same direction as a shared error: recordings were retained when a test system agreed with the OMC angle, and the 16 recordings in which the OMC angle deviated most from both test systems were set aside, so the retained set cannot be used to conclude that the reference is at fault in general. Two consequences follow. First, with this reference, agreement better than about 8° to 9° at the shoulder and elbow cannot be demonstrated, whatever the accuracy of the test system. Second, a part of the LoA reported for these joints may belong to the reference angle, but this could not be confirmed without a reference of higher grade, such as cluster markers with anatomical calibration.

4.6. Practical Implications

The time stamps of an MMC application have to be recorded and used, as its frame rate is not uniform. Agreement has to be reported with a waveform metric after alignment and with LoA for the peak angle, since a metric based on angle bins does not depend on the timing and cannot detect a misaligned or wrong signal. The present results apply to the movements and views that were tested, i.e., shoulder abduction and elbow flexion in the frontal view and knee flexion in the sagittal view, performed mainly in one plane by healthy young adults. Validity for movements out of this plane, for other camera views and for general three-dimensional movement has not been established, and the image-plane angle of a single camera is not expected to hold there. For data collection in patients, a fixed camera distance alone is not sufficient, and a marked standing position and a check of the plane of movement should be included. The landmark coordinates should also be stored with each angle, so that geometric corrections such as the aspect ratio can be applied exactly.

4.7. Limitations

The participants were healthy young adults (18 to 24 years) with more women than men, and each was recorded in one session at one site, so the results cannot be generalized to older adults or to patients, and test–retest reliability could not be obtained. The OMC angle was obtained from three skin markers and two cameras without a biomechanical model and with the factory calibration only, so that a calibration residual is not available, and with this reference, an agreement below about 8° to 9° cannot be demonstrated at the shoulder and elbow. The separation of the individual errors assumes independent errors in the three systems, its result is an upper bound for the reference when the errors of the test systems are correlated, and its intervals at the knee and elbow were wide. Recordings were selected by their agreement with the reference, which can lower the reported errors. The IMU angle was taken from one sensor with a stationary proximal segment assumed and movement of the trunk or scapula during shoulder abduction is included in its error. The restricted-movement test was a simulated movement and not a recording of restricted movement of patients, and it favors a correction that is scaled by amplitude; within the natural range, the fused ROM did not clearly follow the reference ROM at the knee and shoulder. The knee recordings were stored by the application after smoothing and a 2° hold, whose effect on the knee error could not be estimated, so the comparison between the knee and the other joints is limited. The MMC angles were calculated without a correction for the aspect ratio. The settings of the Kalman smoother and of the two learned models were not tuned. The fusion parameters were trained and tested with one tablet, one camera position and one sensor placement. Further recordings in patients, with deliberately restricted movement and with a reference of higher grade, are needed to confirm these findings.

5. Conclusions

A fusion of the angles from a mobile MMC application and one inertial sensor, trained once against OMC and applied without it, reduced the waveform error and removed the peak bias of the application in healthy young adults. The limits of agreement of the peak angle remained about ±20°, which is wider than the 5° to 10° accepted for clinical ROM measurement, so the fused estimate is not yet sufficient for decisions on an individual patient. The fusion has ten trained parameters with a direct meaning (an offset, two weights and seven phase coefficients), and its correction scales with the amplitude of each recording, whereas the gradient boosting and neural network corrections overestimated the range when every recording was compressed numerically to half its excursion. The restricted-movement stress test showed that a learned correction can depend on the training range even when R2 is high. The three-cornered hat analysis showed that up to 8° to 9° of the disagreement at the shoulder and elbow cannot be assigned to the test systems alone, which limits what a three-marker reference can demonstrate. The parameters are free of the reference only at the time of use, and a new device, camera position or population needs new training data. The present results support further development of portable ROM assessment for clinics, home-based rehabilitation and telerehabilitation. They do not establish validity in patients or in these settings, which needs recordings of patients, of out-of-plane movement and with a reference of higher grade.

Author Contributions

Conceptualization, S.P.K.; methodology, S.P.K., S.S. and K.A.; software, D.S.R.; formal analysis, S.P.K., S.S. and D.S.R.; investigation, S.P.K. and S.S.; data curation, D.S.R.; writing—original draft preparation, D.S.R. and S.P.K.; writing—review and editing, S.P.K., S.S. and K.A.; supervision, S.P.K., S.S. and K.A.; funding acquisition, S.P.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Anusandhan National Research Foundation (ANRF), Science and Engineering Research Board, Government of India, under the Core Research Grant SERB-CRG, grant number CRG/2022/008910.

Institutional Review Board Statement

This study was conducted in accordance with the Declaration of Helsinki and approved by the Institutional Ethics Committee of Sri Sivasubramaniya Nadar College of Engineering (protocol code IEC/SSN CE/Pr.No.20/08.02.2025, approved on 8 February 2025).

Data Availability Statement

The de-identified joint angle signals of the MMC application, the IMU and the OMC system for all 180 recordings, the recording-level and repetition-level tables, the participant characteristics, coded S01 to S30, and the analysis code are openly available in Zenodo at https://doi.org/10.5281/zenodo.24374607 under a CC BY 4.0 license. Video was not stored, and no image of a participant is part of the dataset.

Acknowledgments

The authors thank all the participants and the Department of Biomedical Engineering, Sri Sivasubramaniya Nadar College of Engineering, for the support provided.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CIConfidence interval
ICCIntraclass correlation coefficient
IMUInertial measurement unit
LoALimits of agreement
LOSOLeave-one-subject-out
MMCMarkerless motion capture
OMCOptical motion capture
RGBRed–green–blue
RMSERoot-mean-square error
ROMRange of motion
SDStandard deviation

References

  1. Keogh, J.W.L.; Cox, A.; Anderson, S.; Liew, B.; Olsen, A.; Schram, B.; Furness, J. Reliability and validity of clinically accessible smartphone applications to measure joint range of motion: A systematic review. PLoS ONE 2019, 14, e0215806. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Leardini, A.; Chiari, L.; Della Croce, U.; Cappozzo, A. Human movement analysis using stereophotogrammetry. Part 3. Soft tissue artifact assessment and compensation. Gait Posture 2005, 21, 212–225. [Google Scholar] [PubMed]
  3. Cronin, N.J. Using deep neural networks for kinematic analysis: Challenges and opportunities. J. Biomech. 2021, 123, 110460. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Chaumeil, A.; Naaim, A.; Robert, T.; Muller, A.; Dumas, R. Markerless motion capture methodologies in biomechanics: From 2D images to 3D joint angles, a narrative review. Gait Posture 2026, 129, 110235. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Uhlrich, S.D.; Falisse, A.; Kidziński, Ł.; Muccini, J.; Ko, M.; Chaudhari, A.S.; Hicks, J.L.; Delp, S.L. OpenCap: Human movement dynamics from smartphone videos. PLoS Comput. Biol. 2023, 19, e1011462. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Kanko, R.M.; Laende, E.K.; Davis, E.M.; Selbie, W.S.; Deluzio, K.J. Concurrent assessment of gait kinematics using marker-based and markerless motion capture. J. Biomech. 2021, 127, 110665. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Nakano, N.; Sakura, T.; Ueda, K.; Omura, L.; Kimura, A.; Iino, Y.; Fukashiro, S.; Yoshioka, S. Evaluation of 3D markerless motion capture accuracy using OpenPose with multiple video cameras. Front. Sports Act. Living 2020, 2, 50. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Latreche, A.; Kelaiaia, R.; Chemori, A.; Kerboua, A. Reliability and validity analysis of MediaPipe-based measurement system for some human rehabilitation motions. Measurement 2023, 214, 112826. [Google Scholar] [CrossRef] [Scilit]
  9. Bazarevsky, V.; Grishchenko, I.; Raveendran, K.; Zhu, T.; Zhang, F.; Grundmann, M. BlazePose: On-device real-time body pose tracking. arXiv 2020, arXiv:2006.10204. [Google Scholar]
  10. Wang, J.; Xu, W.; Wu, Z.; Zhang, H.; Wang, B.; Zhou, Z.; Wang, C.; Li, K.; Nie, Y. Evaluation of a smartphone-based markerless system to measure lower-limb kinematics in patients with knee osteoarthritis. J. Biomech. 2025, 181, 112529. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Lafayette, T.B.d.G.; Kunst, V.H.d.L.; Melo, P.V.d.S.; Guedes, P.d.O.; Teixeira, J.M.X.N.; Vasconcelos, C.R.d.; Teichrieb, V.; da Gama, A.E.F. Validation of angle estimation based on body tracking data from RGB-D and RGB cameras for biomechanical assessment. Sensors 2023, 23, 3. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Clemente, C.; Chambel, G.; Silva, D.C.F.; Montes, A.M.; Pinto, J.F.; Silva, H.P.d. Feasibility of 3D body tracking from monocular 2D video feeds in musculoskeletal telerehabilitation. Sensors 2024, 24, 206. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Kaszyński, J.; Baka, C.; Białecka, M.; Lubiatowski, P. Shoulder range of motion measurement using inertial measurement unit—Concurrent validity and reliability. Sensors 2023, 23, 7499. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Kumar, S.P.; Saranya, S.; Kavitha, A.; Deepa Sri, R. Motion sensor and computer vision based shoulder joint range of motion estimation for rehabilitative assessment. J. Mech. Med. Biol. 2026, 26, 2540083. [Google Scholar] [CrossRef] [Scilit]
  15. Poitras, I.; Dupuis, F.; Bielmann, M.; Campeau-Lecours, A.; Mercier, C.; Bouyer, L.J.; Roy, J.-S. Validity and reliability of wearable sensors for joint angle estimation: A systematic review. Sensors 2019, 19, 1555. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Seel, T.; Raisch, J.; Schauer, T. IMU-based joint angle measurement for gait analysis. Sensors 2014, 14, 6891–6909. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Iizuka, R.; Yamada, K.; Sato, M.; Gotoda, N.; Akagi, R. Geometry-informed correction of projection bias in browser-based monocular squat assessment. Front. Sports Act. Living 2026, 8, 1831625. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Pratapneni, A.; Halvorson, R.; Silvestros, P.; Harris, N.; Bailey, J.F. Validating single-camera pose estimation against multi-camera motion capture for accessible biomechanical assessment. IEEE Access 2026, 14, 66264–66274. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Galasso, S.; Carissimo, C.; Cerro, G.; Molinara, M.; Ferrigno, L.; Calabrò, R.S.; de Nunzio, A.M. A novel measurement procedure for error correction in single camera gait analysis. IEEE Access 2024, 12, 158052–158064. [Google Scholar] [CrossRef] [Scilit]
  20. Maeda, T.; Kamenaga, T.; Inui, A.; Kitamura, T.; Kuroda, Y.; Tsubosaka, M.; Nakano, N.; Hayashi, S.; Matsumoto, T.; Kuroda, R. Accurate estimation of hip range of motion using MediaPipe and inertial sensors with machine learning models. BMC Musculoskelet. Disord. 2026, 27, 552. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Halilaj, E.; Shin, S.; Rapp, E.; Xiang, D. American Society of Biomechanics Early Career Achievement Award 2020: Toward portable and modular biomechanics labs: How video and IMU fusion will change gait analysis. J. Biomech. 2021, 129, 110650. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Pearl, O.; Shin, S.; Godura, A.; Bergbreiter, S.; Halilaj, E. Fusion of video and inertial sensing data via dynamic optimization of a biomechanical model. J. Biomech. 2023, 155, 111617. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Shin, S.; Li, Z.; Halilaj, E. Markerless motion tracking with noisy video and IMU data. IEEE Trans. Biomed. Eng. 2023, 70, 3082–3092. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  24. Ha, E.; Kim, J.-W. A joint-level hybrid framework for gait analysis using camera–IMU fusion and LSTM-based temporal correction. Sensors 2026, 26, 3828. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Deepa Sri, R.; Kumar, S.P.; Saranya, S.; Kavitha, A. Analysis choices and the apparent accuracy of a mobile application for markerless estimation of human joint angles: A direct comparison with optical and inertial motion capture. Med. Eng. Phys. 2026. submitted. [Google Scholar]
  26. Gray, J.E.; Allan, D.W. A method for estimating the frequency stability of an individual oscillator. In Proceedings of the 28th Annual Symposium on Frequency Control, Atlantic City, NJ, USA, 29–31 May 1974; pp. 243–246. [Google Scholar]
  27. Wu, G.; van der Helm, F.C.T.; Veeger, H.E.J.; Makhsous, M.; Van Roy, P.; 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] [Scilit] [PubMed]
  28. Premoli, A.; Tavella, P. A revisited three-cornered hat method for estimating frequency standard instability. IEEE Trans. Instrum. Meas. 1993, 42, 7–13. [Google Scholar] [CrossRef]
  29. Bland, J.M.; Altman, D.G. Agreement between methods of measurement with multiple observations per individual. J. Biopharm. Stat. 2007, 17, 571–582. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Gajdosik, R.L.; Bohannon, R.W. Clinical measurement of range of motion: Review of goniometry emphasizing reliability and validity. Phys. Ther. 1987, 67, 1867–1872. [Google Scholar] [PubMed]
  31. McGinley, J.L.; Baker, R.; Wolfe, R.; Morris, M.E. The reliability of three-dimensional kinematic gait measurements: A systematic review. Gait Posture 2009, 29, 360–369. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer: New York, NY, USA, 2009. [Google Scholar]
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.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.