- 1College of Rehabilitation Sciences, Shanghai University of Medicine and Health Sciences, Shanghai, China
- 2YangZhi Rehabilitation Hospital (Shanghai Sunshine Rehabilitation Center), School of Medicine, Tongji University, Shanghai, China
- 3Shi’s Center of Orthopedics and Traumatology (Institute of Traumatology, Shuguang Hospital), Shuguang Hospital Affiliated to Shanghai University of Traditional Chinese Medicine, Shanghai, China
Introduction: Accurate joint moment analysis is essential in biomechanics, and the integration of direct collocation with markerless motion capture offers a promising approach for its estimation. However, markerless motion capture can introduce varying degrees of error in tracking trajectories. This study aims to evaluate the effectiveness of the direct collocation method in estimating kinetics when joint trajectory data are impacted by noise.
Methods: We focused on walking and squatting movements as our target activities. To assess the method's robustness, we created five groups with differing noise levels—noise-free, mild noise, noisy group1, noisy group2, and a Gaussian noise group—in the joint center trajectories. Our approach involved combining joint center tracking with biological terms within the direct collocation scheme to address noise-related challenges. We calculated kinematics, joint moments, and ground reaction forces for comparison across the different noise groups.
Results: For the walking task, the mean absolute errors (MAEs) for the knee flexion moments were 0.103, 0.113, 0.127, 0.129, and 0.116 Nm/kg across the respective noise levels. The corresponding MAEs of the ankle flexion moment were 0.130, 0.133, 0.145, 0.131, and 0.138 Nm/kg. The hip flexion moment had MAEs of 0.182, 0.204, 0.242, 0.246, and 0.249 Nm/kg in the respective groups. In squatting, the MAEs of ankle flexion moments were 0.207, 0.219, 0.217, 0.253, and 0.227 Nm/kg in the noise-free, mild noise, noisy group1, noisy group2, and the Gaussian noise group, respectively. The MAEs of the knee flexion moments were 0.177, 0.196, 0.198, 0.197, and 0.221 Nm/kg, whereas the mean MAEs of the hip flexion moments were 0.125, 0.135, 0.141, 0.161, and 0.178 Nm/kg in the respective groups.
Conclusion: The results highlight that the direct collocation method incorporating both tracking and biological terms in the cost function could robustly estimate joint moments during walking and squatting across various noise levels. Currently, this method is better suited to reflect general activity dynamics than subject-specific dynamics in clinical practice. Future research should focus on refining cost functions to achieve an optimal balance between robustness and accuracy.
Introduction
Joint moment analysis is crucial in biomechanics because it provides insights into the forces and torques acting on joints during movement. Understanding these moments is essential for exploring movement mechanics, which is helpful for performance optimization and ergonomics (Dos’Santos et al., 2021; Kim et al., 2024). Joint moment analysis is also a powerful tool in biomechanics that aids in injury prevention and rehabilitation and contributes to the design of better prosthetic and orthotic devices (Rogers-Bradley et al., 2024; Ye et al., 2024).
To acquire the joint moment during various movements, inverse dynamics is often used as a computational technique to calculate the forces and moments at the joints of a biomechanical system based on observed motion. By leveraging kinematic data (positions, velocities, and accelerations) from body segments and applying Newton’s laws of motion, inverse dynamics can be used to determine the net forces and moments necessary to produce observed movements (Ojeda et al., 2016). However, this method requires external force measurements (e.g., ground reaction forces) and relies on accurate kinematics obtained from motion capture systems and inertial parameters in musculoskeletal modeling. Unfortunately, the high cost and in-laboratory setup of motion capture systems and force plates limit the application of inverse dynamics in real-world scenarios.
With advances in deep learning, pose estimation technology has become an alternative to optical motion capture systems and has achieved acceptable accuracy (Wren et al., 2023; Outerleys et al., 2024). Markerless motion capture, also known as pose estimation, is a computer vision task that involves detecting and tracking the position and orientation of human body parts in images or videos. By predicting specific keypoints (such as joints, hands, and heads), pose estimation creates a skeletal representation of the subject. Notably, this approach is cost-effective and easily adaptable to various environments. Recently, pose estimation algorithms have become increasingly popular for analyzing human movement and understanding the mechanics of the body (Berhouet and Samargandi, 2024; Simonet et al., 2024). For example, pose estimation aids in the early diagnosis of movement disorders in patients with Parkinson’s disease (Hong et al., 2022). Athletes’ movements can be analyzed to improve techniques and prevent injuries (Monteiro et al., 2024). Pose estimation can also be used as a tool for physiotherapists to monitor patients’ ability to perform functional movements of the lower limbs (Hu et al., 2021). However, it is essential to consider potential errors arising from the number of cameras and the design of pose estimation algorithms, particularly when estimating joint centers (Wade et al., 2022).
Similar to motion capture systems, force plates are also essential for traditional biomechanics analysis in measuring the ground reaction force (GRF) for inverse dynamics calculations. Recently, optimal control has offered an alternative to sensor-based GRF measurements for tracking and simulation (Moissenet et al., 2019). By introducing contact elements in the musculoskeletal model, the contact dynamics are transformed into a differentiable and optimizable problem. In recent years, direct collocation has gained popularity as a method of optimal control in biomechanics (Lin and Pandy, 2017; Uhlrich et al., 2023; D’Hondt et al., 2024). This technique discretizes control and state variables at specific collocation points, effectively transforming the continuous-time optimal control problem into a finite-dimensional nonlinear programming problem. The key advantage lies in its simultaneous optimization of state and control trajectories, resulting in faster convergence than other approaches, such as direct single shooting (Betts, 2010; Porsa et al., 2016).
Widely employed to estimate muscle forces and joint moments, the direct collocation method has been successfully used to simulate various activities (Uhlrich et al., 2023). For example, given kinematics and GRFs, Lin and Pandy (2017) applied direct collocation to track joint angles and GRFs in musculoskeletal simulations. Falisse et al. (2019b) developed a unique cost function to ensure biological plausibility in predictive walking simulations without direct tracking of ground truth kinematics. Despite its potential, the ability of direct collocation to track joint centers has not been extensively examined, which is crucial given the variable errors introduced by different markerless motion capture setups.
A key distinction between tracking and predictive simulations in direct collocation lies in cost function design. To address the impact of noisy data, our study explored the combination of joint center tracking terms with biological terms used in predictive simulations. Our aim is to evaluate the effectiveness of this combination in estimating kinetics when joint trajectory inputs are noisy. We hypothesize that incorporating these terms into the cost function will increase the robustness of the kinetics estimation while tracking noisy joint center trajectories.
Methods
The analysis comprises three essential processes: raw data preprocessing, joint center tracking via direct collocation, and result comparison (Figure 1).
To evaluate the capability of kinetics estimation, ground truth kinematics, GRFs, and joint moments are needed. Since walking represents basic human movement, the OpenCap biomechanics data on walking were used for analysis (Uhlrich et al., 2023). The extracted walking data included 10 able-bodied adults walking at their preferred speed. This dataset included full-body kinematics and GRFs captured via optical motion capture systems with ground-embedded force plates. Joint moments were also included in the dataset and were calculated based on the kinematics and GRFs using the OpenSim’s inverse dynamics function (Seth et al., 2018). The marker-based data, GRFs, and joint moments were used as the ground truth for comparison. Additionally, we analyzed squatting activity in the OpenCap dataset because of its unique role in fitness and daily activities. Similar to the walking dataset, this dataset provides full-body kinematics, GRFs, and joint moments. The study participants consisted of 10 healthy adults, including six female and four male candidates, with an average age of 27.7 years (±3.8), an average mass of 69.2 kg (±11.6), and an average height of 1.74 m (±0.12).
In addition to traditional biomechanical data, the dataset comprises keypoint trajectories from a markerless motion capture system with varying configurations, including different camera setups and pose estimation algorithms. In this study, the OpenCap dataset included 20 keypoints, including the mid-hip, left and right hips, knees, ankles, heels, small and big toes, mid-shoulder, left and right shoulders, elbows, and wrists. Most of them reflect the joint centers in the OpenSim model (left and right hips, knees, ankles, heels, left and right shoulders, elbows, and wrists) or can be calculated from joint centers (mid-hip and mid-shoulder), except for the small and big toes. Therefore, we manually averaged the trajectories of the big and small toes to estimate the position of the metatarsal joint in the OpenSim model. Consequently, 18 joint centers were targeted for tracking (Figure 2). We selected data from five cameras using the OpenPose high-accuracy setting to form noisy group1 and data from two cameras using the OpenPose default setting to form noisy group2. We also converted the ground truth kinematics into keypoint trajectories as a noise-free group and performed tracking for comparison (Figure 1). Additionally, we averaged the noisy group1 and ground truth data to create a mild noise group. For comparison, trajectories of joint centers with Gaussian noise were additionally created for tracking. In total, five groups of keypoint trajectories with different noise levels (noise-free, mild noise, noisy group1, noisy group2, and Gaussian noise groups) were used for tracking.
For simulations, the OpenSim musculoskeletal model proposed by Uhlrich et al. (2022) employed 33 degrees of freedom (DoFs), including the root joint for the pelvis (6 DoFs, three for rotation and three for translation), bilateral hip (3 DoFs × 2), knee (1 DoF × 2), ankle (1 DoF × 2), subtalar (1 DoF × 2), metatarsophalangeal joint (1 DoF × 2), lumbosacral joint (3 DoFs), shoulder (3 DoFs × 2), and elbow (2 DoFs × 2). The model comprises 80 muscles actuating the lower limbs, along with several ideal torque motors for the lumbosacral joints, and joints from the upper limbs. Six contact spheres were attached to each foot for the simulation of foot‒ground interactions. For each subject, the scaled model provided in the dataset was used for simulation. One movement cycle was sampled for each task. The walking cycle begins when the left foot leaves the ground and ends after a full gait cycle is completed. The squatting cycle begins from a standing position and ends when the person returns to an upright position again.
The mean per joint position error (MPJPE) is a common metric used to evaluate the performance of human pose estimation algorithms. It measures the average distance between the predicted joint positions of a human skeleton and the ground truth joint positions in a given dataset. Smaller MPJPE values indicate better algorithm performance. Recent reports on MPJPE, estimated by pose estimation algorithms using monocular or multiple cameras, range from 16.9 to 45.5 mm (Martinez et al., 2017; Iskakov et al., 2019; Zhu et al., 2022). Compared with the ground truth data, the MPJPE values of the tracked joint centers in this study were 18.4 mm (mild noise group), 37.1 mm (noisy group1), and 37.9 mm (noisy group2) during walking and 15.4 mm, 30.1 mm, and 38.7 mm for squatting, respectively. The trajectories of the joint centers in the Gaussian noise group were established by incorporating Gaussian noise, resulting in an MPJPE of 40.0 mm.
The tracking tasks were treated as optimal control problems, in which the cost function was optimized for minimization. The joint center trajectories from one cycle of walking and squatting with varying noise levels were the primary targets in the cost function (Equation 1). Additional biological terms, including metabolic cost and passive torque terms from the predictive simulation, were adopted to regulate noisy data (Falisse et al., 2019b; Falisse et al., 2022). The cost function (
where
Since the metabolic energy rate term was incorporated for noise regulation, the inclusion of muscle–tendon units (MTUs) within the simulations is necessary. In line with Falisse et al. (2022), muscle excitation–activation coupling was modeled using Raasch’s model (Raasch et al., 1997; De Groote et al., 2009), whereas a Hill-type model described muscle–tendon interactions (Zajac, 1989; De Groote et al., 2016). The MTU parameters were extracted from the scaled models. Skeletal motion was depicted through Newtonian rigid body dynamics using compliant Hunt–Crossley foot–ground contacts with a stiffness set at 1 MPa and contact spheres with radii set at 0.032 m. Other parameters in the contact model, including dissipation, friction coefficients, and transition velocity, were set up as described by Falisse et al. (2019b). The ideal torque motor dynamics were represented via a linear first-order approximation. The muscle–tendon lengths, velocities, and moment arms were fitted as polynomial functions of the joint positions and velocities to improve the computational efficiency. The state variables included the joint position, velocity of all DoFs, normalized tendon force, and activation of the muscle and torque actuators. The control variables included derivatives of muscle activations and excitation of the torque actuator. Other control variables included joint acceleration and the tendon force derivative. Inverse kinematics was performed based on the tracked joint center trajectories of each group to establish initial guesses for joint positions, velocities, and accelerations. The initial guesses for other variables and the bounds of the variables were set up, and all the design variables were scaled, as described by Falisse et al. (2019b).
OpenSim 4.3 was used for musculoskeletal modeling (Seth et al., 2018), whereas OpenSimAD provided automatic differentiation (Falisse et al., 2019a), generating necessary derivatives for evaluating forward kinematics and inverse dynamics functions. CasADi was used to formulate the optimization problem, and IPOPT was used as an optimization solver in the direct collocation scheme with the Radau quadrature (Andersson et al., 2019). Parallel formulation was used to ensure efficient execution in CasADi. Based on preliminary findings, the tasks were discretized into 30 mesh intervals to balance the optimization speed and accuracy.
Sensitivity studies on metabolic weightings (0 (M0) and 10 times the default weighting (M10)) and passive torque weightings (0 (P0) and 10 times the default weighting (P10)) were performed for noisy group2. Additionally, we performed sensitivity studies on the number of mesh intervals, in which 40 mesh intervals (N40) and 50 mesh intervals (N50) were applied for the noisy group2 data. In total, we performed 220 optimization cases, including both walking and squatting tracking tasks, across five data groups (noise-free, mild noise, noisy group1, noisy group2, and Gaussian noise group) and six additional sensitivity groups (M0, M10, N40, N50, P0, and P10) for each task, involving 10 subjects. For comparison, we used the OpenCap pipeline with default settings to track the inverse kinematics data derived from the augmented markers of the two activities in the noisy group1 and 2 data. The ground truth kinematics derived from the optical motion capture of the two activities were also tracked using OpenCap with default settings for comparison.
After the optimization process was finished, the simulated kinematics, joint moments, and GRFs were generated. To account for subject variability, we normalized joint moments and GRFs by total body mass. The data were compared with the ground truth kinematics (derived from optical motion capture), joint moments, and GRF data. The mean absolute errors (MAEs) were calculated and compared between each group of data to show the performance in tracking and estimating kinetics. The kinematics derived from the augmented markers in the OpenCap dataset were also analyzed for comparison.
Results
The direct collocation method successfully completed all tracking tasks (Figures 3, 4). As shown in Table 1, the MAEs for each activity were averaged across movements and participants. In the walking task, the MAEs were 4.2° for the noise-free group, 5.1° for the mild noise group, 7.0° for noisy group1, 6.1° for noisy group2, and 4.6° for the Gaussian noise group for knee flexion angles across 10 participants. As the noise level increased, the accuracy of hip joint tracking decreased, with MAEs for hip flexion angles of 4.7°, 4.5°, 5.6°, 6.6°, and 6.8° in the corresponding groups. The ankle flexion angles revealed MAEs of 7.1°, 7.5°, 8.1°, 7.5°, and 7.1° in the respective groups. During the squatting task, the mean hip flexion angles had MAEs of 8.2°, 8.3°, 8.8°, 9.0°, and 8.0°, whereas knee flexion angles recorded 5.1°, 4.9°, 5.3°, 5.1°, and 4.8° in the respective groups. Ankle flexion angles showed MAEs of 3.7°, 3.7°, 3.4°, 3.5°, and 4.1° in the respective groups. Additional kinematics and error data for other lower limbs are detailed in Supplementary Material 1, 2.
Figure 3. Reference and tracked kinematics using the direct collocation method (mean and standard deviation) in the walking task. Ref, ground truth data derived from optical motion capture; Sim, simulation results.
Figure 4. Reference and tracked kinematics using the direct collocation method (mean and standard deviation) in the squatting task. Ref, ground truth data derived from optical motion capture; Sim, simulation results.
For joint moment estimation during the walking task (Figure 5), the knee and ankle joints achieved higher accuracy than hip joints when assessed against the ground truth. Specifically, the MAEs for the knee flexion moment were 0.103, 0.113, 0.127, 0.129, and 0.116 Nm/kg in the noise-free, mild noise, noisy group1, noisy group2, and the Gaussian noise group, respectively. For the ankle flexion moment, the corresponding MAEs were 0.130, 0.133, 0.145, 0.131, and 0.138 Nm/kg. The hip flexion moment had MAEs of 0.182, 0.204, 0.242, 0.246, and 0.249 Nm/kg in the respective groups. During squatting (Figure 6), the MAEs of the ankle flexion moments were 0.207, 0.219, 0.217, 0.253, and 0.227 Nm/kg in the noise-free, mild noise, noisy group1, noisy group2, and the Gaussian noise group, respectively. The MAEs of the knee flexion moments were 0.177, 0.196, 0.198, 0.197, and 0.221 Nm/kg, whereas the mean MAEs of the hip flexion moments were 0.125, 0.135, 0.141, 0.161, and 0.178 Nm/kg in the respective groups. Table 2 lists the MAEs of the joint moment for each activity. The joint moments and errors of the other lower limbs are reported in Supplementary Material 3, 4.
Figure 5. Normalized joint moment (mean and standard deviation) estimated by the direct collocation method and the reference data in the walking task. Ref, ground truth data derived from inverse dynamics based on optical motion capture and force plate data; Sim, simulation results.
Figure 6. Normalized joint moment (mean and standard deviation) estimated by the direct collocation method and the reference data in the squatting task. Ref, ground truth data derived from inverse dynamics based on optical motion capture and force plate data; Sim, simulation results.
With respect to the GRF estimation in the walking task (Figure 7), the mean MAEs for both feet in the vertical direction varied from 0.74 to 0.95 N/kg across the five groups. During squatting (Figure 8), these MAEs ranged from 0.80 to 1.25 N/kg (Table 3). Additional GRF data and error information for each group are available in Supplementary Material 5, 6.
Figure 7. Normalized GRF of the left foot estimated by the direct collocation method and the reference data of the walking task (AP, anterior–posterior; ML, medial–lateral).
Figure 8. Normalized GRF of the left foot estimated by the direct collocation method and the reference data of the squatting task (AP, anterior–posterior; ML, medial–lateral).
Discussion
This study performed a sensitivity analysis to explore the capabilities of the direct collocation method for kinetics estimation based on keypoint trajectories detected from pose estimation algorithms. Walking and squatting were selected as the tracking activities. To illustrate the effect of errors inherent in pose estimation algorithms, various noise levels of trajectories of joint centers were used for tracking. Our results indicate that the direct collocation method robustly tracks movements despite noise. Furthermore, our study highlights the feasibility and practical considerations of applying the direct collocation method in conjunction with markerless motion capture for biomechanical analysis.
A key finding was that the direct collocation approach, which incorporates both tracking and biological terms in the cost function, could robustly track noisy joint center trajectories and estimate joint moments and GRFs. The tracking errors remained consistent across various noise scenarios, largely because of the biological terms included in the cost function. The incorporation of constraints in the optimization process—such as state continuity, muscle activation dynamics, contact dynamics, and collision avoidance—ensures realistic and plausible model movements. Consequently, the method was robust to typical noise levels encountered with markerless motion capture systems, with kinematics converging into recognizable patterns, which is consistent with findings from previous studies by Falisse et al. (2019b) and Falisse et al. (2022). In addition to previous studies simulating walking, our study revealed that a tracking term in combination with biological terms could also be used to simulate squatting activity. Unlike economical movements such as walking, squatting is an energy-consuming activity. The robust performance in the squatting task indicates that the current settings in the collocation scheme are also suitable for tracking noneconomical activities.
The inclusion of a metabolic energy rate term played a significant role in managing noisy data and achieving biologically realistic kinetic estimations. Although excluding this term (in the M0 setting for noisy group2) slightly improved tracking accuracy, it resulted in higher errors for joint moment and GRF estimations than the default settings. This study adopted the metabolic energy rate model proposed by Bhargava et al. (2004), in which muscle excitation, activation, muscle fiber kinematics, and fiber-related forces were included to estimate the metabolic energy rate. This resulted in smooth and physiologically sound joint moments. In contrast, the OpenCap pipeline used joint position, velocity, and acceleration as tracking terms in the cost function (Uhlrich et al., 2023). This setting has certain benefits in estimating the joint moment when the input data are noise-free. However, the tracked joint acceleration, as the second derivative of the joint position, is susceptible to inaccuracies in the joint position, which can lead to deviations in joint acceleration and subsequently influence the results of the joint moment estimation. This could explain why, despite the OpenCap pipeline providing more accurate kinematics from augmented markers, the errors in joint moment estimation remained at the same levels as those observed in our study. In contrast, this study, which includes a metabolic energy rate term, could robustly estimate joint moments and GRFs against different noise levels. However, excessive metabolic weighting (M10) led to deviations from reference data, indicating a need for a balanced setting of the metabolic term for optimal performance. For example, low metabolic weighting could be assigned to energy-consuming activities.
Despite robust tracking and joint moment estimation, certain challenges persist. For example, the ankle flexion angle in the walking task had a smaller range of motion than the reference data. This issue also occurred in predictive simulations (Falisse et al., 2019b; Falisse et al., 2022; D'Hondt et al., 2024), indicating that current modeling of foot- or energy-utilizing strategies may deviate from that of humans. Interestingly, the group with zero metabolic weighting (M0) performed better in tracking ankle flexion movements (see Supplementary Material 1). This result suggests that metabolic weighting may be divided among specific muscle groups and that low metabolic weighting could be applied to energy-consuming activities involving those muscle groups. Additionally, discrepancies between the pelvis tilt and hip flexion angles emerged, where incorrect pelvis tilt estimations impacted the accuracy of hip flexion. This is because the orientation of the pelvis cannot be easily tracked by the positions of the hip joint centers. Since the pelvis is the root segment of the human model, the hip flexion angle may also be influenced. This issue is prevalent in pose estimation algorithms and remains difficult to resolve, even with multiple cameras (Wren et al., 2023). To address this problem, incorporating an additional inertial measurement unit (IMU) attached to the pelvis may be a suitable way to obtain precise orientation data.
Although our GRF profiles approximated the ground truth data, minor discrepancies arose in the walking task—specifically, in the initial contact time and magnitude. Several reasons may cause this issue. First, the thickness and material properties of the subject’s feet and shoes were not precisely modeled because of missing information in the ground truth data. Furthermore, the lumbar and knee joints were treated as joints with only rotational DoFs. The omission of their cushioning effects in the translational DoFs during simulation may contribute to GRF estimation errors. To alleviate this issue, calibrating the stiffness of the contact element and adjusting the height of the floor in the simulation scheme may improve the results (Serrancoli et al., 2019). Increasing the number of contact elements may also enhance the performance.
The estimation of joint moments in our study yielded error levels comparable to those from the OpenCap pipeline, despite fundamental differences in the cost function. Notably, OpenCap employs distinct weights to track various joint kinematics and activities, along with additional settings such as heel contact constraints for specific tasks. In contrast, our method applied uniform weights across all joint centers and used the same settings for both activities, except for incorporating cyclic constraints for walking. Consequently, while there was a compromise in kinematics tracking accuracy, our method maintained robust kinetics estimation. It is expected that introducing joint-specific and activity-specific weighting could further enhance the performance.
In both the walking and squatting tasks, the direct collocation method consistently provided more accurate estimations for the ankle and knee joint moments than for the hip joints. Several factors might contribute to this tendency. First, the inaccuracy in tracking hip joint angles, as mentioned earlier, plays a significant role. Additionally, joint moments are heavily influenced by the GRF, and its accuracy in the direct collocation scheme heavily relies on input kinematics and the model. In this study, the trunk was modeled as a single rigid body, a simplification that might result in a loss of detail regarding kinematics, inertia, and mass distribution, thereby leading to greater deviations in joint moment estimations adjacent to the trunk. On the other hand, the ground truth joint moments were calculated using OpenSim’s inverse dynamics function, which permitted certain pelvis residual torques to actuate degrees of freedom. However, the current direct collocation scheme constrained these residual forces to 0. Therefore, a detailed trunk model may be helpful in improving the quality of kinetics estimation.
This study has several limitations. Compared with previous methods, this study yielded greater tracking errors in joint angles when noise-free kinematics were tracked (Lin and Pandy, 2017; Uhlrich et al., 2023). The main reason is that to maintain robust tracking performance across different noise levels, our study incorporated biological terms for regulating noisy joint center trajectories. In our additional sensitivity studies, removing the metabolic term (M0) improved tracking accuracy, whereas its inclusion in the M10 configuration led to decreased accuracy. In terms of kinetics estimation, M0 generated more errors in the joint moment estimation than the default setting did in this study. Although the biological terms can constrain the noise trajectories into physiological movements and joint moments, they come at the expense of tracking performance. Furthermore, the selected joint centers might be insufficient for accurate joint angle tracking. Therefore, future studies could explore more generalized cost functions to strike a balance between robustness and accuracy. To further improve the robustness of joint moment estimation, the weight for each term in the cost function can be further divided and set up according to the input data quality and prior knowledge of the activities. Additionally, variations in the estimated joint moment errors across subjects and joints indicate that this method is currently better suited to reflect general activity dynamics than subject-specific dynamics when similar movements are performed.
Conclusion
The direct collocation method, which incorporates both tracking and biological terms into the cost function, can robustly estimate joint moments during walking and squatting across various noise levels. Future studies should aim to develop more comprehensive cost functions to achieve the optimal balance between robustness and accuracy.
Data availability statement
The original contributions presented in the study are included in the article/Supplementary Material; further inquiries can be directed to the corresponding authors.
Author contributions
KW: conceptualization, funding acquisition, investigation, methodology, writing–original draft, and writing–review and editing. LZ: resources and writing–original draft. LL: resources and writing–original draft. JS: validation and writing–original draft. XC: visualization and writing–original draft. HW: resources, supervision, and writing–review and editing.
Funding
The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This work was supported by the Shanghai Municipal Health Commission Excellent Young Medical Talents Training Program (No. 2022YQ038) and partially supported by the National Natural Science Foundation of China (82305358/31900942/81973871), the Special Project for Clinical Research in the Health Industry of the Shanghai Municipal Health Commission (No. 20224Y0208), and the Natural Science Foundation of Shanghai (No. 20ZR1452600).
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fbioe.2024.1483225/full#supplementary-material
References
Andersson, J. A. E., Gillis, J., Horn, G., Rawlings, J. B., and Diehl, M. (2019). CasADi: a software framework for nonlinear optimization and optimal control. Math. Program. Comput. 11 (1), 1–36. doi:10.1007/s12532-018-0139-4
Berhouet, J., and Samargandi, R. (2024). Emerging innovations in preoperative planning and motion analysis in orthopedic surgery. Diagn. (Basel) 14 (13), 1321. doi:10.3390/diagnostics14131321
Betts, J. T. (2010). Practical methods for optimal control and estimation using nonlinear programming. Philadelphia, PA: SIAM.
Bhargava, L. J., Pandy, M. G., and Anderson, F. C. (2004). A phenomenological model for estimating metabolic energy consumption in muscle contraction. J. Biomech. 37 (1), 81–88. doi:10.1016/s0021-9290(03)00239-2
De Groote, F., Kinney, A. L., Rao, A. V., and Fregly, B. J. (2016). Evaluation of direct collocation optimal control problem formulations for solving the muscle redundancy problem. Ann. Biomed. Eng. 44 (10), 2922–2936. doi:10.1007/s10439-016-1591-9
De Groote, F., Pipeleers, G., Jonkers, I., Demeulenaere, B., Patten, C., Swevers, J., et al. (2009). A physiology based inverse dynamic analysis of human gait: potential and perspectives. Comput. Methods Biomech. Biomed. Engin 12 (5), 563–574. doi:10.1080/10255840902788587
D'Hondt, L., De Groote, F., and Afschrift, M. (2024). A dynamic foot model for predictive simulations of human gait reveals causal relations between foot structure and whole-body mechanics. PLoS Comput. Biol. 20 (6), e1012219. doi:10.1371/journal.pcbi.1012219
Dos’Santos, T., Thomas, C., McBurnie, A., Comfort, P., and Jones, P. A. (2021). Biomechanical determinants of performance and injury risk during cutting: a performance-injury conflict? Sports Med. 51 (9), 1983–1998. doi:10.1007/s40279-021-01448-3
Falisse, A., Afschrift, M., and De Groote, F. (2022). Modeling toes contributes to realistic stance knee mechanics in three-dimensional predictive simulations of walking. PLoS One 17 (1), e0256311. doi:10.1371/journal.pone.0256311
Falisse, A., Serrancolí, G., Dembia, C. L., Gillis, J., and De Groote, F. (2019a). Algorithmic differentiation improves the computational efficiency of OpenSim-based trajectory optimization of human movement. PLoS One 14 (10), e0217730. doi:10.1371/journal.pone.0217730
Falisse, A., Serrancolí, G., Dembia, C. L., Gillis, J., Jonkers, I., and De Groote, F. (2019b). Rapid predictive simulations with complex musculoskeletal models suggest that diverse healthy and pathological human gaits can emerge from similar control strategies. J. R. Soc. Interface 16 (157), 20190402. doi:10.1098/rsif.2019.0402
Hong, R., Zhang, T., Zhang, Z., Wu, Z., Lin, A., Su, X., et al. (2022). A summary index derived from Kinect to evaluate postural abnormalities severity in Parkinson's Disease patients. NPJ Park. Dis. 8 (1), 96. doi:10.1038/s41531-022-00368-x
Hu, G., Wang, W., Chen, B., Zhi, H., Yudi, L., Shen, Y., et al. (2021). Concurrent validity of evaluating knee kinematics using Kinect system during rehabilitation exercise. Med. Nov. Technol. Devices 11, 100068. doi:10.1016/j.medntd.2021.100068
Iskakov, K., Burkov, E., Lempitsky, V., and Malkov, Y. (2019). Learnable triangulation of human pose. Proc. IEEE/CVF Int. Conf. Comput. Vis., 7718–7727. doi:10.1109/ICCV.2019.00781
Kim, S., So, J., Jeon, Y., and Moon, J. (2024). Effect of changes in motor skill induced by educational video program to decrease lower-limb joint load during cutting maneuvers: based on musculoskeletal modeling. BMC Musculoskelet. Disord. 25 (1), 527. doi:10.1186/s12891-024-07642-4
Lin, Y. C., and Pandy, M. G. (2017). Three-dimensional data-tracking dynamic optimization simulations of human locomotion generated by direct collocation. J. Biomech. 59, 1–8. doi:10.1016/j.jbiomech.2017.04.038
Martinez, J., Hossain, R., Romero, J., and Little, J. J. (2017). A simple yet effective baseline for 3d human pose estimation. Proc. IEEE Int. Conf. Comput. Vis., 2640–2649. doi:10.1109/ICCV.2017.288
Moissenet, F., Bélaise, C., Piche, E., Michaud, B., and Begon, M. (2019). An optimization method tracking EMG, ground reactions forces, and marker trajectories for musculo-tendon forces estimation in equinus gait. Front. Neurorobot 13, 48. doi:10.3389/fnbot.2019.00048
Monteiro, R. L. M., Dos Santos, C. C. A., Blauberger, P., Link, D., Russomanno, T. G., Tahara, A. K., et al. (2024). Enhancing soccer goalkeepers penalty dive kinematics with instructional video and laterality insights in field conditions. Sci. Rep. 14 (1), 10225. doi:10.1038/s41598-024-60074-x
Ojeda, J., Martínez-Reina, J., and Mayo, J. (2016). The effect of kinematic constraints in the inverse dynamics problem in biomechanics. Multibody Syst. Dyn. 37 (3), 291–309. doi:10.1007/s11044-016-9508-9
Outerleys, J., Mihic, A., Keller, V., Laende, E., and Deluzio, K. (2024). Markerless motion capture provides repeatable gait outcomes in patients with knee osteoarthritis. J. Biomechanics 168, 112115. doi:10.1016/j.jbiomech.2024.112115
Porsa, S., Lin, Y.-C., and Pandy, M. G. (2016). Direct methods for predicting movement biomechanics based upon optimal control theory with implementation in OpenSim. Ann. Biomed. Eng. 44 (8), 2542–2557. doi:10.1007/s10439-015-1538-6
Raasch, C. C., Zajac, F. E., Ma, B., and Levine, W. S. (1997). Muscle coordination of maximum-speed pedaling. J. Biomech. 30 (6), 595–602. doi:10.1016/s0021-9290(96)00188-1
Rogers-Bradley, E., Yeon, S. H., Landis, C., Lee, D. R. C., and Herr, H. M. (2024). Variable-stiffness prosthesis improves biomechanics of walking across speeds compared to a passive device. Sci. Rep. 14 (1), 16521. doi:10.1038/s41598-024-67230-3
Serrancoli, G., Falisse, A., Dembia, C., Vantilt, J., Tanghe, K., Lefeber, D., et al. (2019). Subject-exoskeleton contact model calibration leads to accurate interaction force predictions. IEEE Trans. Neural Syst. Rehabil. Eng. 27 (8), 1597–1605. doi:10.1109/tnsre.2019.2924536
Seth, A., Hicks, J. L., Uchida, T. K., Habib, A., Dembia, C. L., Dunne, J. J., et al. (2018). OpenSim: simulating musculoskeletal dynamics and neuromuscular control to study human and animal movement. PLoS Comput. Biol. 14 (7), e1006223. doi:10.1371/journal.pcbi.1006223
Simonet, A., Fourcade, P., Loete, F., Delafontaine, A., and Yiou, E. (2024). Evaluation of the margin of stability during gait initiation in Young healthy adults, elderly healthy adults and patients with Parkinson's disease: a comparison of force plate and markerless motion capture systems. Sensors (Basel) 24 (11), 3322. doi:10.3390/s24113322
Uhlrich, S. D., Falisse, A., Kidziński, Ł., Muccini, J., Ko, M., Chaudhari, A. S., et al. (2023). OpenCap: human movement dynamics from smartphone videos. PLoS Comput. Biol. 19 (10), e1011462. doi:10.1371/journal.pcbi.1011462
Uhlrich, S. D., Jackson, R. W., Seth, A., Kolesar, J. A., and Delp, S. L. (2022). Muscle coordination retraining inspired by musculoskeletal simulations reduces knee contact force. Sci. Rep. 12 (1), 9842. doi:10.1038/s41598-022-13386-9
Wade, L., Needham, L., McGuigan, P., and Bilzon, J. (2022). Applications and limitations of current markerless motion capture methods for clinical gait biomechanics. PeerJ 10, e12995. doi:10.7717/peerj.12995
Wren, T. A. L., Isakov, P., and Rethlefsen, S. A. (2023). Comparison of kinematics between Theia markerless and conventional marker-based gait analysis in clinical patients. Gait Posture 104, 9–14. doi:10.1016/j.gaitpost.2023.05.029
Ye, B., Liu, G., He, Z., Xu, J., Pan, H., and Zhu, H. (2024). Biomechanical mechanisms of anterior cruciate ligament injury in the jerk dip phase of clean and jerk: a case study of an injury event captured on-site. Heliyon 10 (11), e31390. doi:10.1016/j.heliyon.2024.e31390
Zajac, F. E. (1989). Muscle and tendon: properties, models, scaling, and application to biomechanics and motor control. Crit. Rev. Biomed. Eng. 17 (4), 359–411.
Keywords: kinetics, kinematics, ground reaction force, direct collocation, simulation
Citation: Wang K, Zhang L, Liang L, Shao J, Chen X and Wang H (2024) Robust kinetics estimation from kinematics via direct collocation. Front. Bioeng. Biotechnol. 12:1483225. doi: 10.3389/fbioe.2024.1483225
Received: 19 August 2024; Accepted: 27 November 2024;
Published: 18 December 2024.
Edited by:
Jasper Verheul, Cardiff Metropolitan University, United KingdomReviewed by:
James Cowburn, Cardiff University, United KingdomNicos Haralabidis, Stanford University, United States
Copyright © 2024 Wang, Zhang, Liang, Shao, Chen and Wang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Kuan Wang, a3Vhbl9fd2FuZ0BvdXRsb29rLmNvbQ==; Huihao Wang, aHVpaGFvd2FuZ0AxMjYuY29t