Abstract
Purpose
Estimating loading of the knee joint may be helpful in managing degenerative joint diseases. Contemporary methods to estimate loading involve calculating knee joint contact forces using musculoskeletal modeling and simulation from motion capture (MOCAP) data, which must be collected in a specialized environment and analyzed by a trained expert. To make the estimation of knee joint loading more accessible, simple input predictors should be used for predicting knee joint loading using artificial neural networks.
Methods
We trained feedforward artificial neural networks (ANNs) to predict knee joint loading peaks from the mass, height, age, sex, walking speed, and knee flexion angle (KFA) of subjects using their existing MOCAP data. We also collected an independent MOCAP dataset while recording walking with a video camera (VC) and inertial measurement units (IMUs). We quantified the prediction accuracy of the ANNs using walking speed and KFA estimates from (1) MOCAP data, (2) VC data, and (3) IMU data separately (i.e., we quantified three sets of prediction accuracy metrics).
Results
Using portable modalities, we achieved prediction accuracies between 0.13 and 0.37 root mean square error normalized to the mean of the musculoskeletal analysis-based reference values. The correlation between the predicted and reference loading peaks varied between 0.65 and 0.91. This was comparable to the prediction accuracies obtained when obtaining predictors from motion capture data.
Discussion
The prediction results show that both VCs and IMUs can be used to estimate predictors that can be used in estimating knee joint loading outside the motion laboratory. Future studies should investigate the usability of the methods in an out-of-laboratory setting.
Similar content being viewed by others
Explore related subjects
Find the latest articles, discoveries, and news in related topics.Avoid common mistakes on your manuscript.
Introduction
It is believed that excess joint loading may have adverse effects on joint health and affect the development of joint diseases like knee osteoarthritis (KOA) [11, 17, 19]. Existing literature is inconclusive on how knee joint loading exactly affects KOA [18], but it is nonetheless believed to play a part at least in the structural progression of the disease [3, 5, 11, 17, 24]. Structural degeneration of cartilage is likely irreversible and therefore, prevention would be the best treatment to fight its progression. Assuming there is causation between knee joint loading and diseases linked to structural cartilage degeneration, developing accessible methods to estimate knee joint loading is extremely important. This would allow the design of better individualized preventive methods to reduce the incidence of such diseases.
Personalized knee joint loading can be estimated with musculoskeletal simulation and modeling, where the contact forces in the joint are calculated [13]. The input data required for these calculations is cumbersome to collect, as it requires a separate motion laboratory with expensive motion capture (MOCAP) equipment and time-consuming subject preparation. Therefore, easier ways to calculate knee joint contact forces (KJCFs) are required to enable biomechanically informed knee joint loading estimates in clinical settings, where they could be used for guiding rehabilitation and predicting the onset of degenerative joint diseases. In the recent years, machine learning techniques, especially feedforward artificial neural networks (ANNs) have been used for predicting knee joint loading [2, 5, 16, 29, 33]. However, to calculate the predictions, these studies require MOCAP data collected in a motion laboratory. While MOCAP data is extensive and enables high-accuracy prediction models, it limits the usability of the methods in out-of-laboratory settings where effortless data collection is emphasized.
Inertial measurement units (IMUs) and video cameras (VCs) provide a more portable and effortless alternative to MOCAP and could be utilized in out-of-laboratory (e.g., clinical) settings because of their ease of use. IMUs can provide wireless information about orientations and accelerations of body segments when they are strapped to the subject [30]. VC data, e.g., from a webcam, can be analyzed to identify anatomical landmarks of the subject using human pose estimation solutions [7, 26]. Therefore, both IMUs and VCs represent possible modalities for obtaining biomechanically relevant input data that could be used (e.g., combined with demographic information) for predicting KJCFs in a clinical setting.
IMU and VC data have already been used for estimating KJCFs with machine learning. For instance, Raimondo et al. calculated KJCFs using ground reaction forces and moments estimated from IMU data [27]. Stetter et al. trained and evaluated ANNs to predict KJCFs from acceleration and angular velocity data measured with IMUs on the thigh and the shank [33]. Uhlrich et al. developed the OpenCap platform that can solve KJCFs from smartphone videos [35]. While most existing methods eliminate the need for MOCAP data, they are designed for specific measurement technologies. Prediction of KJCFs would be more modular, and thus more accessible in out-of-laboratory use, if it was designed to only require input data that is readily available in clinics (e.g., demographic information like mass, height, age, and sex) or obtainable from different portable modalities (such as VC and IMUs). These modular methods to predict KJCFs should be designed to utilize inputs that are so simple that any of several available technologies, rather than a specific one, could be used for obtaining them.
In our previous study [22], we explored the possibility of using ANNs to predict knee joint loading peaks from simple input variables alias predictors and quantified the accuracy of the predictions. There, we chose mass, height, age, sex, walking speed and knee frontal plane alignment as predictors. These predictors were chosen because they can be collected (mass, height, age, sex) or estimated (walking speed, knee alignment) without MOCAP data. In that study, the predictors were nonetheless calculated from MOCAP data. Because our long-term goal is to bring biomechanical assessment of knee joint loading peaks out of the motion laboratory to, e.g., clinician’s appointment, the need for MOCAP data should be eliminated in the future.
Therefore, the aim of this study is (1) to develop and evaluate methods to estimate simple predictors of KJCF without MOCAP data and (2) to demonstrate the accuracy of ANNs trained on MOCAP data to predict KJCF peaks from those predictors. We hypothesized that ANNs trained on MOCAP data can with sufficient accuracy predict knee joint contact force peaks during gait using the participants’ mass, height, age, sex, walking speed, and knee flexion angle (KFA) as the predictors, where the latter two are estimated from IMU and VC data. We quantified the accuracy of estimating walking speed and KFA, and the accuracy of utilizing those predictors to predict KJCF peaks with ANNs, by comparing the predictor estimates and KJCF predictions to ground truth values obtained from MOCAP and musculoskeletal modeling and simulation for IMU and VC data separately.
Materials and Methods
This work comprised the following main steps (Fig. 1):
-
1.
Musculoskeletal analysis of existing MOCAP datasets [1, 6, 15, 20, 32]
-
2.
Training of ANNs to predict KJCF peaks using the existing musculoskeletal analyzed data
-
3.
Collection of an independent dataset comprising MOCAP, IMU, and VC data
-
4.
Musculoskeletal analysis of the collected dataset to obtain ground truth walking speed, KFA predictor and KJCF peaks
-
5.
Estimation of walking speed and KFA from (a) IMU and (b) VC data
-
6.
Evaluation of estimation accuracy of walking speed and KFA predictor from (a) IMU and (b) VC data
-
7.
Prediction of KJCF peaks using demographic data and walking speed and KFA predictors from (a) IMU and (b) VC data
-
8.
Evaluation of prediction accuracy of the trained ANNs against the independent dataset.
Overview of the study. Motion capture data from existing datasets was analyzed (1) using OpenSim and used for training feedforward artificial neural networks to predict knee joint contact force peaks from the mass, height, age, sex, walking speed, and knee flexion angle predictors of subjects (2). An independent dataset was collected (3) and analyzed (4). Walking speed and knee flexion angle predictors were then estimated from video camera and IMU data separately from the independent dataset (5) and compared against ground truth values from analyzed MOCAP data (6). Finally, the trained networks were used for predicting knee joint contact force peaks (7), and the predictions were compared to ground truth values calculated from the test set using musculoskeletal modeling and simulation (8)
Musculoskeletal Analysis of Existing MOCAP Datasets (Fig. 1: Step 1)
Five existing MOCAP datasets were used: four open datasets of healthy participants [6, 15, 20, 32] and one dataset of KOA patients [1] (a total of 290 subjects as described in our previous study, where demographic information per dataset is also presented [22]). All datasets contained marker trajectories and ground reaction forces and moments (GRF) from overground walking trials. We used the musculoskeletal simulation and modeling software OpenSim 4.3 [8] for analyzing the data in a multi-stage workflow, which involved:
-
i.
Scaling a musculoskeletal model to subject-specific dimensions and muscle strengths
-
ii.
Calculating the kinematics of motion from marker trajectories using the inverse kinematics tool
-
iii.
Calculating the dynamics of motion from force plate data and the kinematics using the inverse dynamics tool
-
iv.
Estimating muscle activations using the static optimization tool
-
v.
Finally, estimating joint reaction forces, i.e., knee joint contact forces based on data from the previous stages (i-iv). The analysis was done identically to our previous study [22], which contains a more detailed explanation. In short, we incorporated a bicompartmental knee mechanism [23] into a full-body musculoskeletal model [28] to calculate bicompartmental joint reaction forces applied to the medial and lateral contact points of the tibia; the extracted KJCFs then comprised the full-stance time series of the medial compartment, lateral compartment, and summed (medial + lateral) compressive tibiofemoral contact forces.
From the output of the musculoskeletal analysis, the trajectories of markers on the pelvis, time series of KFAs, and time series of KJCFs were further analyzed. We calculated walking speed from the trajectories of markers on the pelvis cluster. For KFAs, we constructed a KFA predictor by calculating the difference between the maximum of the first half and the minimum of the second half of the stance phase (Fig. 2). For KJCFs, which were characterized by two distinct peaks during the stance phase (loading response and terminal extension), we identified the maximum of each peak. The maximum loading of the full stance phase was also identified. Using the peak detection method described in our previous study [22], all these three peak values were identified separately for medial and lateral compartments and their combined load; this resulted in nine different KJCF peaks (Fig. 3), i.e., our response variables.
An illustration of the knee flexion angle (KFA) predictor. The knee flexion curve during stance is shown in blue. The KFA predictor is calculated in degrees as the difference between the maximum of the first half of the flexion curve and the minimum of the second half of the flexion curve. The red double-ended arrow shows the maximum and the minimum used for calculating the KFA predictor
An illustration of the extracted knee joint contact force peaks. We extracted a total of nine peaks: loading response (1st peak in time series), terminal extension (2nd peak in time series), and full-stance maximum over the sum of compartmental loadings (left), medial compartmental loading (center), and lateral compartmental loading (right). The full-stance maximum peak always equals either the loading response peak or the terminal extension peak, whichever is higher. The illustrated loading curves are artificially generated
Training of ANNs Using the Existing Musculoskeletal Analyzed Data (Fig. 1: Step 2)
We trained shallow feedforward ANNs to predict KJCF peaks. The predictors were the subjects’ mass, height, age, sex, walking speed, and KFA predictor. Unlike in our previous study [22], frontal knee alignment was replaced with KFA because we had no reliable method to measure the frontal alignment without MOCAP data; furthermore, we assumed that KFA correlates with some KJCF peaks because KFA has been shown to correlate with peak external knee extension moments on KOA patients [14]. A separate ANN was trained for each KJCF peak, resulting in nine ANNs that each predicted a different peak from the KJCF time series during the stance phase of gait.
We used MATLAB R2023a for training the ANNs. Each network had a single hidden layer with just one hidden node. We trained the networks with the musculoskeletal analyzed data retrieved from existing MOCAP datasets [1, 6, 15, 20, 32]. Because one of the datasets contained KOA patients [1], we first used that dataset to pre-train the network and then used the remaining four datasets [6, 15, 20, 32] to finish the training. Therefore, the training dataset comprised 290 subjects and approximately 5000 walking trials (the exact number of included trials varied with the response variable [22]). No separate validation subset was split from the training data because we used a backpropagation training algorithm with Bayesian regularization to avoid overfitting. Detailed information about the design and training of the networks is presented in the Supplementary material. The performance of the trained networks was later evaluated against the test subset (see step 8 for details).
Collection of an Independent Walking Dataset (Fig. 1: Step 3)
The study received approval from the University of Eastern Finland Ethics Committee and adheres to the Declaration of Helsinki. We recruited and analyzed 51 healthy volunteers without knee pain or abnormalities in their walking to participate in walking measurements in a motion laboratory. Due to issues with automatic labeling of experimental marker data that could not be fixed without great effort, 5 were excluded and the analyzed set of participants consisted of 46 participants. These participants (29 male, 17 female) were between 20 and 45 years of age (mean ± standard deviation: 29 ± 6), had body mass indices between 18.8 and 40.4 (25.1 ± 4.2), and performed overground walking trials with three instructed velocities: comfortable walking speed, 25% slower than comfortable (referred to as “slow”), and 25% faster than comfortable (referred to as “fast”). The demographics between our training and test sets do not fully match and are compared in the Supplementary material (Supplementary discussion, “Demographic observations in the training and test sets”). Before walking trials, we measured the participants’ mass, height, and inter-ASIS distance (i.e., the distance between the palpated left and the right anterior superior iliac spine protrusions on the ilium) and collected their age and sex with a survey. The dominant leg was also determined by this survey as the leg the participants would prefer for kicking a football and all 46 participants identified their right leg as the dominant leg; we later analyzed this “dominant leg” to retrieve KFAs and KJCFs (Fig. 1: steps 5 and 4, respectively). We chose to limit our analysis on only the dominant leg to ensure no differences in kinematics or kinetics between the dominant and the non-dominant leg affect the results of the study.
We equipped the participants with 42 reflective markers that were tracked with a motion analysis system (10 Vicon Vero cameras, Vicon Nexus software, Vicon Motion Systems Ltd, UK) and 7 nine-degree-of-freedom IMUs (Xsens MTw Awinda, Movella Inc, Henderson, NV, USA). The participants had a marker cluster with 4 markers each on the pelvis, both thighs, and both shanks. On both feet, we placed individual markers on the 1st distal phalanx, 4th proximal phalanx, and posterior to the heel. Individual markers were also placed on medial and lateral malleoli on both ankles, and medial and lateral epicondyles on both knees. Additionally, we placed individual markers on the manubrium of the sternum, on acromia, and on the 7th cervical vertebra; we placed these upper-body markers on clothing instead of skin if any risk of marker occlusion by clothing was present. Behind the pelvis and on thighs, the IMUs were placed on a slot in the marker clusters; on shanks, we strapped the IMUs on the lateral side just above the ankle; on feet, we taped the IMUs on the metatarsals. Finally, two markers were placed on each metatarsal IMU, one posteriorly and the other anteriorly. An illustration of the marker and IMU placement is provided in Fig. 4.
For each instructed velocity (slow, comfortable, and fast), the participants performed 10 overground walking trials in one direction and another 10 in the opposite direction. A video camera (VICON Vue) placed 4 m from the walking line recorded sagittal-plane video at a 1280x720 resolution. Marker, IMU and VC data were collected at 100 Hz. We also collected GRFs of the foot of the dominant leg from a floor-embedded force plate (AMTI OR6-7) at 1000 Hz.
Additionally, we scanned the right knee of each participant using low-field magnetic resonance imaging (MRI) and measured the intercondylar distance from the frontal and transverse views of the 3D reconstruction of the knee. We defined intercondylar distance as the distance between the mid-points of lateral and femoral condyles. This distance was used only to set the intercondylar distance of the knee of the musculoskeletal models in the test set (Fig. 1: step 4). Note that the use of MRI data to set the intercondylar distance of the musculoskeletal model is not relevant for the prediction accuracy of the neural networks (Fig. 1: step 8) nor required to use the trained networks.
In conclusion, we collected demographic information and measured a total of 60 walking trials per participant. For each trial, we captured marker trajectories and GRFs, IMU acceleration and orientation data, and sagittal-plane video of the participant. We present videos demonstrating the walking trials in the Supplementary videos. The collected pseudonymized raw data is available on Zenodo (https://zenodo.org/records/10559504).
Musculoskeletal Analysis of the Collected Dataset (Fig. 1: Step 4)
The independent MOCAP dataset that we collected underwent a musculoskeletal modeling and analysis pipeline identical to the pipeline we described for existing datasets from literature (Fig. 1: step 1), with model scaling-related exceptions mentioned below:
-
1.
We used the SCoRE [9] and SARA [10] protocols to find the hip and knee joint centers and knee axes of rotation because they have been shown to locate hip joint centers and knee axes of rotation accurately and repeatably [34]. This information was used for scaling the femurs during model scaling. However, because SCoRE has been shown to exaggerate the lateral position of the hip joint center [4], we chose not to use it for scaling the pelvis because it would have made the pelvis too large. Instead, we scaled the pelvis according to the previously collected (see earlier steps) manual measurement of the participant’s inter-ASIS distance. For setting the intercondylar distance the knee joint, we used the intercondylar distance measured from low-field MRI of the right knee.
-
2.
We scaled the maximum isometric muscle forces of the musculoskeletal models according to \(1.5\times {(\frac{\text{SUBJECT MASS}}{\text{GENERIC MODEL MASS}})}^{2/3}\). The factor of 1.5 was used to prevent maximal muscle activations during the fastest walking speeds (the value chosen was based on our experience rather than literature). The exponential factor of 2/3 comes from assuming an allometric relationship between body mass and cross-sectional area of muscle (which determines muscle force) [12].
-
3.
For determining the neutral static standing pose, we used the SCoRE-estimated hip joint centers and knee joint centers, markers on both sides of the ankles, and markers of the foot projected to the floor. The floor-projected foot markers let us set the orientation of the foot during standing as the foot was flat on the ground. Furthermore, we assumed that pelvis orientation was neutral while standing (no pelvic tilt or list).
We extracted walking speed, KFA, and KJCF peaks like we described earlier for existing MOCAP datasets. These KJCF peaks were later used as ground truth values when evaluating the trained ANNs (Fig. 1: step 8).
KFA and Walking Speed from IMU and VC Data (Fig. 1: Step 5)
In addition to MOCAP data, the collected walking dataset contained data from two portable modalities: a sagittal-plane VC and IMUs. To estimate KFA and walking speed from both modalities, we analyzed them separately.
We analyzed the sagittal-plane video data by running the OpenPose computer vision algorithm [7] at a 480 × 272 resolution to detect anatomical landmarks, i.e., keypoints, of the participant in each image frame. We estimated walking speed by associating pixels in the image to real world displacement and tracking the horizontal displacement of the hip keypoint in the image. We estimated the time series of KFA by calculating the angle between vectors defined using hip, knee, and ankle keypoints, and then extracted the KFA predictor from the resulting time series of estimated KFA.
For IMU data, we estimated walking speed using orientation data from thigh and shank IMUs. We used acceleration data for identifying gait cycles and calculate the gait period, i.e., the duration of each gait cycle. We assumed that thighs and shanks are rigid bodies whose lengths are given as a fraction of the participant’s height and that the left and the right thigh bodies connect at the proximal end. We could then use the 3D orientation of the IMUs for rotating corresponding thighs and shanks and calculate the 3D positions of the distal ends of the shank bodies. Finally, we calculated stride length based on the positions of the distal ends of the shanks and divided the stride lengths by the gait period to obtain an estimate of walking speed. For KFA, we assumed that the axis of greatest rotation during walking was the axis rotating objects in the sagittal plane for the thigh and shank IMUs. We then used principal component analysis on orientation data of thigh and shank IMUs to find the rotation in the axis of greatest rotation, set the rotation to zero when the participant stood in neutral position in the first frame of the trial, and calculated the angle between the principal axes of thigh and shank IMUs during the trial. This method resulted in an estimate of the time series of knee flexion angle, from which we extracted the KFA predictor. More detailed information about IMU and VC-based methods is presented in the Supplementary material.
Finally, to quantify the accuracy of determining the KFA predictor and walking speed from VC and IMU data, we compared their estimates to the ground truth values obtained from the MOCAP and musculoskeletal analysis of the walking dataset we had collected (Fig. 1: step 6).
Evaluation of Prediction Accuracy of Trained Artificial Neural Networks (Fig. 1: Step 8)
The walking dataset we collected formed an independent test subset for evaluating KJCF peak prediction accuracy of trained ANNs. We considered the KJCF peaks from the musculoskeletal analysis pipeline as ground truth values. The demographic information (mass, height, age, sex) and walking speed and KFA (estimated from IMUs and VCs separately) from the collected walking dataset were fed into the ANNs to obtain the predicted KJCF peaks (Fig. 1: step 7). Additionally, we input the demographic information together with MOCAP-based walking speed and KFA to retrieve baseline KJCF peak predictions. The KJCF peak predictions obtained using IMU and VC data were compared against the baseline predictions to evaluate how much modality-specific error in walking speed and KFA affected the predicted KJCF peaks.
We only included valid trials for the independent test set. Trial validity was determined by visually inspecting the time series of ground reaction forces and hip and knee joint angles for anomalies that indicated, e.g., that the participant did not step fully on the force plate (see Supplementary material for further details). For each walking configuration (combination of instructed velocity and direction), we only included participants with at least five valid trials. If a participant had less than five valid walking trials in any walking configuration (i.e., less than half of all trials for a configuration), the participant was eliminated (i.e., all trials of that participant were omitted from subsequent analysis). This resulted in the elimination of two to six participants depending on modality (IMU or VC) and response variable (different peaks of the KJCF time series).
For those participants eligible for the test set, we picked the first five valid trials per walking configuration in the test set to evaluate the prediction accuracy of KJCF peaks. This criterion ensured that the test set was balanced in the sense that no participant or walking configuration was emphasized over the others. Therefore, the KJCF prediction results presented in this paper include 30 walking trials per participant (six different walking configurations with five included trials per configuration). Additionally, results for different walking speeds are presented in Supplementary material. To evaluate how beneficial the inclusion of the KFA predictor or walking speed in the predictor set is, we also trained neural networks with only demographic predictors (mass, height, age, sex), demographic predictors and the KFA predictor, demographic predictors and walking speed, and the full predictor set of demographic predictors, the KFA predictor, and walking speed.
Comparison Between Artificial Neural Networks and Multiple Linear Regression
To compare the ANN-based prediction models of KJCF peaks against a more intuitively understandable approach, we fitted first-order polynomial multiple linear regression (MLR) models to predict the response variables. We used the ordinary least squares method to fit MLR models to equation
where coefficients a through g are the fitted parameters and y is the prediction. One MLR model was fitted for each response variable. For fitting the MLR models, we used the training data of the ANNs, and for evaluating the performance of the MLR models, we used the test data of the ANNs. We used the same data for ANN and MLR models to enable comparison between them.
Statistical Tests
We conducted analysis of variance (ANOVA) tests to evaluate if occluding the analyzed leg, using different predictor sets, or using MLR prediction models instead of ANN prediction models have a statistically significant effect on the accuracy of predicting KJCF peaks. The level of statistical significance was set at p = 0.05, where values at or below the level were interpreted as statistically significant.
For testing if occluding the analyzed leg (as determined by walking direction) had a statistically significant effect on KJCF peak prediction accuracy, we used a two-way repeated measures ANOVA test. Within-participant means of relative change in mean absolute error from baseline were used as the observations of the dependent variable. Walking direction (“left”, where the left leg was facing the camera and occluded the analyzed right leg; or “right”, where the analyzed leg was visible to the camera), and response variable (nine loading peaks) were used as the two within-subjects factors.
A three-way repeated measures ANOVA test was used to determine if the predictor set had a significant effect on KJCF peak prediction accuracy. Within-participant normalized root-mean square errors of KJCF peak prediction were used as the observations of the dependent variable. The predictor set (demographic variables only, demographic + KFA, demographic + walking speed, or demographic + walking speed + KFA), modality (baseline, IMU, or VC) and response variable (nine loading peaks) were used as the three within-subjects factors. Because there were four instead of two different predictor sets, we used a multiple pairwise comparison procedure with Bonferroni correction to test for statistically significant differences between paired predictor sets.
Finally, a three-way repeated measures ANOVA test was used to determine if there were significant differences in KJCF peak prediction accuracy between ANN and MLR models. Within-participant normalized root-mean square errors of KJCF peak prediction were used as the observations of the dependent variable. Prediction method (ANN or MLR), modality (baseline, IMU, or VC) and response variable (nine loading peaks) were used as the three within-subjects factors.
Results
The dispersion of the walking speed and KFA predictors in the collected dataset shows greater relative variability for the KFA predictor than for walking speed (Table 1). We estimated walking speed from IMU data with marginally greater RMSE and smaller Pearson correlation coefficient (calculated against MOCAP-based “ground truth” values) than from VC data (Table 2). However, the estimated KFA predictor from IMU data had a clearly smaller RMSE and greater Pearson correlation coefficient than from VC data. Furthermore, compared to IMU data, estimation from VC data showed greater inter-subject variation in both metrics for both predictors. Relative to the mean of the reference values (Table 1), the RMSEs presented in Table 2 correspond to mean relative errors of 4.8% for walking speed and 23.0% for the KFA predictor.
Between baseline, IMU-based, and VC-based predictions, the KJCF peak prediction errors vary little, and no method clearly outperforms the others in terms of prediction accuracy (Table 3). However, for terminal extension peaks, the IMU-based predictions correlate better with the musculoskeletal modeling and simulation-based peaks than the VC-based predictions do. In all three cases, the correlation between predicted and ground truth values was higher for summed peaks than for compartmental peaks. For IMU and VC, loading response peaks were predicted with the highest NRMSE. Furthermore, in terms of NRMSE, loading peaks in the lateral compartment were always predicted less accurately than medial or summed loading peaks.
The linear fits to baseline predictions versus reference peaks in Fig. 5 indicate that in general ANN prediction is biased towards too high KJCF peaks at low levels of loading and too low KJCF peaks at high levels of loading. This effect is emphasized when predicting terminal extension peaks. Similar figures for IMU and VC data-based predictions are presented in the Supplementary material.
Accuracies of predicting KJCF peaks with ANNs when utilizing walking speed and knee flexion angle from motion capture (baseline) data. Each point represents a KJCF peak from one walking trial, calculated with musculoskeletal simulation and modeling (x axis) and ANNs (y axis). Walking trials from different subjects have different colors. All plots use the same participants and walking trials
Walking direction, determining whether the analyzed leg was completely visible to the camera or partially occluded by the other leg, was visually observed to have no impact on KJCF prediction accuracy when estimating walking speed and KFA predictor from VC data compared to estimating them from MOCAP data (Fig. 6). In accordance with visual observations, a two-way repeated measures ANOVA test found no statistically significant effect between walking direction and the relative change in mean absolute error from baseline (p = 0.07).
The effect of walking direction on the change (from baseline) of mean absolute error (MAE) of predicting knee joint contact force peaks when walking speed and KFA predictor are estimated from video camera data. “Left” indicates that the analyzed leg (right leg) was occluded to the camera by the left leg, and “right” indicates that the analyzed leg was visible to the camera and occluded the left leg
Including either the KFA predictor or walking speed in the predictor set decreases the error of predicting KJCF peaks compared with using only demographic predictors (Fig. 7). However, the inclusion of walking speed appears to decrease the error more than the inclusion of the KFA predictor. The error of predicting full-stance peaks (max peak both/medial/lateral) further seems to decrease slightly when the KFA predictor is included in addition to demographic predictors and walking speed, but its inclusion has negligible effect on the error or even increases it slightly for other response variables.
Comparison of NRMSE errors between ANN-predicted peaks and "ground truth" peaks from MS analysis for different predictor sets when walking speed and KFA predictor are from motion capture (left, baseline), inertial measurement unit (center, IMU), or video camera (right, video) data. Blue bars represent error when only demographic predictors (mass, height, age, and sex) are in the set; red bars when the predictor set comprises the demographic predictors and KFA predictor; orange bars when the predictor set comprises the demographic predictors and walking speed; and purple bars with the full predictor set. The values shown comprise participants that were valid for all modality and response variable combinations, totaling 37 participants
A three-way repeated measures ANOVA test showed that the choice of the predictor set has a significant effect on prediction error (p < 0.001). Prediction errors differ significantly when using only demographic predictors compared to using any of the other three predictor sets (p < 0.02). Furthermore, including walking speed in the predictor set in addition to demographic variables and the KFA predictor has a significant effect on prediction error (p = 0.02). However, no significant effect on prediction error was observed when comparing the predictor set with demographic variables and the KFA predictor against the predictor set with demographic variables and walking speed (p = 0.53), nor when including the KFA predictor in the predictor set when it already contained demographic variables and walking speed (p = 1.00).
Comparison of prediction NRMSE between trained ANN models and fitted first-order polynomial multiple linear regression models show that the difference in prediction NRMSE varies depending on the response variable and whether the predictions used walking speed and KFA predictors estimated from MOCAP data, IMU data, or VC data (Fig. 8). ANN models outperformed MLR models for lateral loading response peaks and lateral terminal extension peaks, MLR models outperformed ANN models for summed and medial terminal extension peaks, and otherwise, neither type of model consistently outperformed the other. However, a three-way repeated measures ANOVA test found no statistically significant effect on prediction error between the methods (ANN versus MLR, p = 0.94).
Comparison of prediction RMSE normalized to the mean of the reference values (NMRSE) between artificial neural network (ANN) models and first-order polynomial multiple linear regression (MLR) models. The errors are grouped by response variable. In each group, prediction NRMSE is shown for predictions using walking speed and KFA predictor from motion capture data (baseline), inertial measurement unit data (IMU), and video camera data (VC)
Discussion
Our main findings show that predicting knee joint contact force peaks using demographic data with walking speed and KFA predictor from IMU or VC data separately yields similar accuracies to using predictors from MOCAP data. However, prediction accuracy varied depending on the peak of the KJCF time series, with lower errors for summed and medial loading peaks than for lateral loading peaks.
Using portable modalities to estimate walking speed and KFA predictor did not meaningfully affect the prediction accuracy of KJCF peaks (Table 3) despite the errors in estimating the predictors (Table 2). In some cases, using portable modalities even improved accuracy; in these cases, the error in walking speed and KFA predictor likely shifted the prediction towards the reference value by coincidence. Because the KFA predictor was estimated with greater error than walking speed (Table 2), we are satisfied that it had little effect on KJCF prediction accuracy when walking speed was already present in the predictor set (Fig. 7). Therefore, estimating KFA may be unnecessary to reach the prediction accuracies reported in this study. Furthermore, the measurement of walking speed could be done with even simpler modalities (such as a stopwatch) than IMUs and VCs, so if we dropped the KFA predictor, we could perhaps make our approach even more portable without compromising much prediction accuracy.
Our ANN-based KJCF peak predictions are particularly inaccurate for one participant (Fig. 5, teal points forming the clusters of highest reference loading). This participant was notably heavy, representing the highest BMI in the test set (40.4 compared to the second-highest 34.8). This observation implies that the ANN prediction models cannot accurately predict loading peaks for very obese individuals, which is expected given that the obese individuals in the training dataset came mostly from the KOA patient dataset, where loading values are unlikely to represent non-pathological yet obese loading, and which was only used in pre-training the networks. Therefore, including more non-pathological but obese subjects in the training set could improve the capability of the network to predict their loading peaks. It is also possible that our musculoskeletal model scaling parameters are unsuitable for very heavy subjects, which could cause distorted loading peaks in the training data, but we consider it unlikely because we have validated our musculoskeletal simulation pipeline [22] and scaled muscle strength of the models according to body mass.
When estimating KFA from VC data, we expected the occlusion of the analyzed leg to adversely affect the detection of the keypoints using OpenPose and result in greater error in KJCF peaks compared to baseline, where KFA was calculated from MOCAP data. Because walking direction (determining whether the analyzed leg was visible or occluded) had no unambiguous effect on the prediction accuracy of KJCF peaks (Fig. 6), KFA estimation remained largely unhindered by the occlusion of the analyzed leg. This is a promising observation because partial occlusion of the subject is a drawback of VC-based motion analysis methods; reliable tracking of the occluded leg would benefit out-of-laboratory use, where the operator may lack experience in preventing occlusions or correcting occlusion-related errors after the measurement.
No definitive superiority in terms of minimized NRMSE exists between ANN and MLR models (Fig. 8). Because the differences between them are consistently noticeable when predicting lateral loading response peaks, the relationships between predictors and the response for that response variable may have more nonlinearity than relationships for response variables do. Consequently, the nonlinear approximation capability of ANNs, which first-order polynomial MLR models lack, could result in superior ANN performance. Similarly, summed and medial terminal extension peaks may have comparably more linear relationships between the predictors and the response, which is why linear MLR models predict them with lower error than nonlinear ANN models do. If so, then ANNs may be a better option for predicting loading peaks that are mostly monotonous (as lateral peaks sometimes were); it is also possible that lateral compartmental loading lacks the double bump shape that is usually present in the medial compartmental loading profile and which we assumed to exist in both compartments. Future studies should investigate the capability of higher-order polynomial and regularized models to predict KJCF peaks, as those models are easier for others to adopt and provide better information about the inference (i.e., the relationship between the input and the output) of the model than ANN-based models do.
We demonstrated the estimation of the KFA predictor and walking speed with two portable modalities: a limited set of IMUs and a single video camera. However, our method to train neural network models for predicting KJCF peaks is independent of these two modalities because the models are trained with MOCAP data. Therefore, the trained models could be used with any modality that can estimate the KFA predictor and walking speed. Observations related to estimating the predictors using IMU and VC data are presented in more detail in Supplementary material (“Estimation of walking speed and knee flexion angle predictor”). Comparison of KJCF prediction accuracy to existing studies is also presented in the Supplementary material.
Compared to the predictor set of our previous study [22], we replaced frontal plane angle with sagittal plane angle in the predictors because we had no well-established way to estimate the frontal plane angle. Furthermore, knee sagittal plane angle may contain information about knee extension moment and the force exerted on the knee joint by knee extensors at the beginning of the stance phase. A recent study by Saiki et al. [31] showed that OpenPose can estimate even the radiographic hip-knee-ankle angle well; thus, future research could utilize OpenPose to retrieve knee angles in both the sagittal and the frontal planes for the predictor set. In the case of the frontal plane, a single image from a static standing pose would suffice.
Because we showed that the time series of the knee joint flexion angle can be obtained outside the motion laboratory, future research could investigate if such time series information obtained outside the motion laboratory could be utilized for predicting entire KJCF loading time series, like some existing studies have done with MOCAP data [2, 16]. Predicting the entire KJCF loading time series could enable the calculation of parameters such as loading impulses and their utilization in predictive models of knee degeneration [25] in addition to loading peaks. Moreover, the fact that our models predict only KJCF peaks is an important limitation. For out-of-laboratory uses, other information such as joint moments could be useful in addition to KJCFs [35]. Therefore, while our methods cannot replace full musculoskeletal simulation, they may prove useful in cases where only a limited set of musculoskeletal simulation outputs is required. However, the analysis pipeline we present could also be used to train models for predicting, e.g., joint moment peaks. In their current state, our models could be used, e.g., to evaluate whether changing the weight, walking speed, or knee flexion angle during stance results in increased or decreased knee joint contact force maxima; this sort of directional accuracy has been presented as one simple metric relevant for out-of-laboratory use [21]. Although our previous work [22] reported KJCF peak prediction accuracies similar to those in this study and noted that the accuracies were on the same scale as the inherent variability of KJCF peaks during repeated walking trials, actually using our models in out-of-laboratory applications remains to be demonstrated in future studies.
Conclusions
We trained ANNs to predict KJCF peaks with simple predictors that can be obtained without MOCAP. We demonstrated IMUs and VCs as alternative modalities to MOCAP, but our trained ANNs do not require any specific modality. This modularity means that the ANNs could be used for predicting KJCF peaks with predictors estimated from other modalities than IMUs or VCs (e.g., stopwatch or photocells for walking speed and electrogoniometers for KFA), or with the same modalities from different manufacturers. The future use of stopwatches or photocells is further motivated by our observation that the KFA predictor appears to be unimportant when walking speed is present in the predictor set. Hence, if we dropped the KFA predictor but otherwise kept the predictor set unchanged, we could utilize even simpler measurement technologies than we did in the present study. However, the usability of only KJCF peaks as the output is a limitation for out-of-laboratory applications.
References
Aaboe, J., H. Bliddal, S. P. Messier, T. Alkjær, and M. Henriksen. Effects of an intensive weight loss program on knee joint loading in obese adults with knee osteoarthritis. Osteoarthritis Cartilage. 19:822–828, 2011.
Ardestani, M. M., Z. Chen, L. Wang, Q. Lian, Y. Liu, J. He, D. Li, and Z. Jin. Feed forward artificial neural network to predict contact force at medial knee joint: application to gait modification. Neurocomputing. 139:114–129, 2014.
Astephen Wilson, J. L., and D. Kobsar. Osteoarthritis year in review 2020: mechanics. Osteoarthritis Cartilage. 29:114–169, 2021.
Boekesteijn, R. J., M. P. F. van de Ven, L. M. Wilders, P. Bisseling, B. E. Groen, and K. Smulders. The effect of functional calibration methods on gait kinematics in adolescents with idiopathic rotational deformity of the femur. Clinical Biomechanics. 107:106028, 2023.
Brisson, N. M., A. A. Gatti, P. Damm, G. N. Duda, and M. R. Maly. Association of machine learning based predictions of medial knee contact force with cartilage loss over 2.5 years in knee osteoarthritis. Arthritis & Rheumatology, 2021. https://doi.org/10.1002/art.41735
Camargo, J., A. Ramanathan, W. Flanagan, and A. Young. A comprehensive, open-source dataset of lower limb biomechanics in multiple conditions of stairs, ramps, and level-ground ambulation and transitions. J Biomech.119:110320, 2021.
Cao, Z., G. Hidalgo, T. Simon, S.-E. Wei, and Y. Sheikh. OpenPose: realtime multi-person 2D pose estimation using part affinity fields. Comput. Vis. Pattern Recog., 2018. http://arxiv.org/abs/1812.08008.
Delp, S. L., F. C. Anderson, A. S. Arnold, P. Loan, A. Habib, C. T. John, E. Guendelman, and D. G. Thelen. OpenSim: open-source software to create and analyze dynamic simulations of movement. IEEE Trans. Biomed. Eng. 54:1940–1950, 2007.
Ehrig, R. M., W. R. Taylor, G. N. Duda, and M. O. Heller. A survey of formal methods for determining the centre of rotation of ball joints. J. Biomech. 39:2798–2809, 2006.
Ehrig, R. M., W. R. Taylor, G. N. Duda, and M. O. Heller. A survey of formal methods for determining functional joint axes. J. Biomech. 40:2150–2157, 2007.
Felson, D. T. Osteoarthritis as a disease of mechanics. Osteoarthritis Cartilage. 21(1):10–15, 2013. https://doi.org/10.1016/j.joca.2012.09.012.
Folland, J. P., T. M. McCauley, and A. G. Williams. Allometric scaling of strength measurements to body size. Eur. J. Appl. Physiol. 102:739–745, 2008.
Fregly, B. J., T. F. Besier, D. G. Lloyd, S. L. Delp, S. A. Banks, M. G. Pandy, and D. D. D’Lima. Grand challenge competition to predict in vivo knee loads. J. Orthop. Res. 30(4):503–513, 2012. https://doi.org/10.1002/jor.22023.
Fukaya, T., H. Mutsuzaki, and K. Mori. Relations between external moment and movement of the knee joint during the stance phase in patients with severe knee osteoarthritis. J. Orthop. 16:101–104, 2019.
Fukuchi, C. A., R. K. Fukuchi, and M. Duarte. A public dataset of overground and treadmill walking kinematics and kinetics in healthy individuals. PeerJ. 1–17:2018, 2018.
Giarmatzis, G., E. I. Zacharaki, and K. Moustakas. Real-time prediction of joint forces by motion capture and machine learning. Sensors (Switzerland). 20:1–19, 2020.
Glyn-Jones, S., A. J. R. Palmer, R. Agricola, A. J. Price, T. L. Vincent, H. Weinans, and A. J. Carr. Osteoarthritis. Lancet. 386:376–387, 2015.
Henriksen, M., M. W. Creaby, H. Lund, C. Juhl, and R. Christensen. Is there a causal link between knee loading and knee osteoarthritis progression? A systematic review and meta-analysis of cohort studies and randomised trials. BMJ Open. 4:e005368–e005368, 2014.
Hochberg, M. C., M. G. Cisternas, and S. I. Watkins-Castillo. United States Bone and Joint Initiative: the Burden of Musculoskeletal Diseases in the United States (BMUS). Bone Jt. Initiative USA. 4:11–12, 2020.
Horst, F., S. Lapuschkin, W. Samek, K.-R. Müller, and W. I. Schöllhorn. A public dataset of overground walking kinetics and full-body kinematics in healthy adult individuals. Mendeley Data. 2019. https://doi.org/10.17632/svx74xcrjr.3.
Kaneda, J. M., K. A. Seagers, S. D. Uhlrich, J. A. Kolesar, K. A. Thomas, and S. L. Delp. Can static optimization detect changes in peak medial knee contact forces induced by gait modifications? J. Biomech. 152:111569, 2023.
Lavikainen, J., L. Stenroth, T. Alkjær, P. A. Karjalainen, R. K. Korhonen, and M. E. Mononen. Prediction of knee joint compartmental loading maxima utilizing simple subject characteristics and neural networks. Ann. Biomed. Eng. 2023. https://doi.org/10.1007/s10439-023-03278-y.
Lerner, Z. F., M. S. DeMers, S. L. Delp, and R. C. Browning. How tibiofemoral alignment and contact locations affect predictions of medial and lateral tibiofemoral contact forces. J. Biomech. 48:644–650, 2015.
Miyazaki, T. Dynamic load at baseline can predict radiographic disease progression in medial compartment knee osteoarthritis. Ann. Rheum. Dis. 61:617–622, 2002.
Mononen, M. E., P. Tanska, H. Isaksson, and R. K. Korhonen. A novel method to simulate the progression of collagen degeneration of cartilage in the knee: data from the osteoarthritis initiative. Sci. Rep. 6:1–14, 2016.
Needham, L., M. Evans, D. P. Cosker, L. Wade, P. M. McGuigan, J. L. Bilzon, and S. L. Colyer. The accuracy of several pose estimation methods for 3D joint centre localisation. Sci. Rep. 11:20673, 2021.
Di Raimondo, G., M. Willems, B. A. Killen, S. Havashinezhadian, K. Turcot, B. Vanwanseele, and I. Jonkers. Peak tibiofemoral contact forces estimated using IMU-based approaches are not significantly different from motion capture-based estimations in patients with knee osteoarthritis. Sensors. 23:4484, 2023.
Rajagopal, A., C. L. Dembia, M. S. DeMers, D. D. Delp, J. L. Hicks, and S. L. Delp. Full-body musculoskeletal model for muscle-driven simulation of human gait. IEEE Trans. Biomed. Eng. 63:2068–2079, 2016.
Rane, L., Z. Ding, A. H. McGregor, and A. M. J. Bull. Deep learning for musculoskeletal force prediction. Ann. Biomed. Eng. 47:778–789, 2019.
Saber-Sheikh, K., E. C. Bryant, C. Glazzard, A. Hamel, and R. Y. W. Lee. Feasibility of using inertial sensors to assess human movement. Man Ther. 15:122–125, 2010.
Saiki, Y., T. Kabata, T. Ojima, Y. Kajino, D. Inoue, T. Ohmori, J. Yoshitani, T. Ueno, Y. Yamamuro, A. Taninaka, T. Kataoka, N. Kubo, S. Hayashi, and H. Tsuchiya. Reliability and validity of OpenPose for measuring hip-knee-ankle angle in patients with knee osteoarthritis. Sci. Rep. 13:3297, 2023.
Schreiber, C., and F. Moissenet. A multimodal dataset of human gait at different walking speeds established on injury-free adult participants. Sci. Data. 6:1–7, 2019.
Stetter, B. J., S. Ringhof, F. C. Krafft, S. Sell, and T. Stein. Estimation of knee joint forces in sport movements using wearable sensors and machine learning. Sensors (Switzerland). 19:1–12, 2019.
Taylor, W. R., E. I. Kornaropoulos, G. N. Duda, S. Kratzenstein, R. M. Ehrig, A. Arampatzis, and M. O. Heller. Repeatability and reproducibility of OSSCA, a functional approach for assessing the kinematics of the lower limb. Gait Posture. 32:231–236, 2010.
Uhlrich, S. D., A. Falisse, Ł Kidziński, J. Muccini, M. Ko, A. S. Chaudhari, J. L. Hicks, and S. L. Delp. OpenCap: 3D human movement dynamics from smartphone videos. bioRxiv. 2022. https://doi.org/10.1101/2022.07.07.499061.
Acknowledgments
This work was supported by the European Union and the University of Eastern Finland under the ERDF projects Human measurement and analysis research and innovation laboratories (HUMEA, IDs A73200 & A73241) and Digital Technology RDI Environment (DigiCentersNS, IDs A74338 & A74340). Biocenter Kuopio is acknowledged for their infrastructural support.
Funding
Open access funding provided by University of Eastern Finland (including Kuopio University Hospital). The research leading to these results has received funding from the Research Council of Finland (grants 324994, 328920, 352666, 332915, 322423, 349469 and 334773 – under the frame of ERA PerMed), the Research Committee of the Kuopio University Hospital Catchment Area for the State Research Funding (grants 5654242, 5041814), Innovation Fund Denmark Grant no. 9088-00006B under the frame of ERA PerMed, and the Sigrid Juselius Foundation (grants 230123, 230093).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
Mika E. Mononen and Rami K. Korhonen own shares in Aikoa Technologies Oy.
Ethical Approval
This study, including its procedures involving human participants, was reviewed and approved by the University of Eastern Finland Committee on Research Ethics (Statement No. 16/2022). All participants were consenting volunteers. This study was performed in line with the principles of the Declaration of Helsinki.
Additional information
Associate Editor Joel Stitzel oversaw the review of this article.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Supplementary file 2 (AVI 220796 KB)
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Lavikainen, J., Stenroth, L., Vartiainen, P. et al. Predicting Knee Joint Contact Force Peaks During Gait Using a Video Camera or Wearable Sensors. Ann Biomed Eng (2024). https://doi.org/10.1007/s10439-024-03594-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10439-024-03594-x