Real-Time Musculoskeletal Surrogates for Pediatric Cerebral Palsy: a Credibility Pilot
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Real-Time Musculoskeletal Surrogates for Pediatric Cerebral Palsy: a Credibility Pilot Mohammad Arif Ul Alama a College of Science and Technology, North Carolina A & T State University, Greensboro, NC, USA
Abstract
arXiv:2608.28371v1 [cs.CV] 28 Aug 2026
Real-time musculoskeletal (MSK) surrogates could support personalized rehabilitation for children with cerebral palsy (CP), but their credibility depends on subject-wise evaluation, low inference latency, and calibrated uncertainty. We develop a subjectconditioned causal neural surrogate using OpenSim-derived static parameters, temporal joint kinematics, true muscle capacities, and training-only perturbations. On a real pediatric CP gait dataset comprising nine children, we use leave-one-subject-out validation on six development subjects and evaluate a frozen configuration once on three locked test subjects. The surrogate accurately reproduces musculotendon lengths (R2 ≈ 0.92 in development validation and ≈ 0.95 on locked subjects; nRMSE < 8%) while requiring only sub-millisecond to few-millisecond neural inference, well below a 100 ms interactive-rehabilitation target. In contrast, direct muscle-force estimation remains unstable at this small, heterogeneous scale: pooled metrics can overstate within-subject, per-muscle accuracy. A Monte Carlo credibility pilot further shows that propagating only ±5% anthropometry and muscle-capacity variation produces severely overconfident nominal 90% intervals (approximately 4% force coverage and below 1% MT-length coverage). These results establish a leakage-free evaluation and credibility framework for pediatric MSK surrogates, while identifying force modeling and epistemic uncertainty as the central next challenges for clinically credible digital twins. Keywords: Pediatric cerebral palsy, Musculoskeletal modeling, Neural surrogates, Real-time rehabilitation, Credibility assessment
1. Introduction Cerebral palsy (CP) is the leading cause of childhood physical disability and is associated with highly heterogeneous movement impairments Ros (2007). In particular, crouch gait changes joint loading, muscle recruitment, and the mechanical demands of walking, making patient-specific analysis important for clinical decision-making Steele et al. (2010). Musculoskeletal (MSK) simulation provides a noninvasive way to estimate quantities that cannot be measured directly during gait, including muscle forces, activations, and joint moments. OpenSim and subject-scaled full-body models have made these analyses broadly reproducible and clinically relevant Seth et al. (2018); Rajagopal et al. (2016). However, conventional muscledriven simulations remain too computationally expensive for interactive rehabilitation or continuously updated digital twins. Neural surrogates offer a practical route to real-time MSK analysis. Recent studies have used temporal neural networks and physics-informed objectives to estimate muscle forces or joint kinematics from motion and electromyography signals Zhang et al. (2022b); Liu et al. (2024); Zhang et al. (2022a). These results are promising, but most evidence is based on healthy adults, a small number of muscles, or task-specific datasets. Pediatric CP creates a more difficult setting because gait patterns, body dimensions, strength, and neuromuscular control vary substantially between children. Further, muscle force is not directly observed: it is an underdetermined model estimate whose value depends on the musculoskeletal model, optimization method, and physiological assumptions Roelker et al. (2020); Falisse et al. (2018). Consequently, a surrogate
Preprint submitted to Elsevier
should be evaluated not only by a favorable frame-pooled score, but also by its ability to generalize across held-out children. Credibility is equally important for clinical digital twins. ASME V&V 40 and recent FDA guidance emphasize that the evidence supporting a computational model should be appropriate for its intended context of use U.S. Food and Drug Administration (2023). This requires transparent data partitioning, validation on independent subjects, and explicit assessment of uncertainty rather than relying on point predictions alone. In this preliminary study, we develop a real-time, subject-conditioned MSK surrogate for pediatric CP gait and contribute: (i) a leakage-free evaluation protocol with leaveone-subject-out development validation and a locked held-out test set; (ii) a causal surrogate conditioned on OpenSim-derived static parameters and true muscle capacities; (iii) an honest characterization of the limitations of small-cohort muscle-force estimation; and (iv) a Monte Carlo credibility pilot showing that input-parameter propagation alone does not yield calibrated uncertainty. The subject-level cohort and evaluation partition are summarized in Table 1. Together, these results establish a rigorous experimental foundation for future credible pediatric MSK digital twins. 2. Method 2.1. Subject-Conditioned Causal Surrogate We developed a compact causal temporal convolutional network (TCN) with approximately 0.9 million trainable parameters. TCNs provide a computationally efficient mechanism August 31, 2026
Thus, predicted muscle forces are coupled to joint-level mechanics through the moment-arm relation in Eq. 1. Physicsinformed learning has shown promise for musculoskeletal inference, but its benefit depends on label quality, modeling assumptions, and the available data regime Zhang et al. (2022b). Accordingly, we report a direct ablation in Section 3, rather than presuming that this term improves force estimation.
Table 1: Cohort and subject-level evaluation partition. Frame counts denote aligned kinematic/CMC ground-truth frames. Dev: development LOSO; Test: locked held-out evaluation. Subject
Severity
Frames
Split
MI01 MI02 MO02 MO03 SE01 SE02
Mild Mild Moderate Moderate Severe Severe
674 893 799 749 838 889
Dev Dev Dev Dev Dev Dev
MI03 MO04 SE05
Mild Moderate Severe
736 1,166 804
Test Test Test
Total
—
7,548
6 Dev / 3 Test
2.3. Training-Only Perturbations To improve robustness without contaminating evaluation, we applied synthetic perturbations exclusively to training windows. These included independent ±5% perturbations of F max and anthropometry-related static features, small additive kinematic sensor noise, and temporary occlusion of up to two input channels. Validation and locked-test windows remained unperturbed. This separation is important because augmentation must not create an implicit pathway from evaluation subjects into model selection.
for using a finite history of motion while preserving causality, making them appropriate for real-time sequence inference Bai et al. (2018). At time t, the model receives a 251-frame (≈250 ms) history of 23 joint coordinates and their speeds (46 dynamic features), together with subject-specific static parameters extracted from the scaled OpenSim model. These parameters include muscle-specific maximum isometric forces (F max ), body-scale factors, model mass, and muscle geometric and contractile properties. OpenSim provides a transparent basis for these subject-scaled mechanistic quantities Seth et al. (2018); Rajagopal et al. (2016). The dynamic sequence is encoded by the causal TCN, while a small multilayer perceptron encodes static parameters. Their fused representation produces muscle force, activation, musculotendon (MT) length, and moment-arm outputs: (f̂t , ât , ℓ̂t , R̂t ) = gθ (Xt−W+1:t , s), τ̂t = R̂⊤t f̂t ,
f̂t = Fmax ⊙ ât ⊙ σ(zt ),
2.4. Leakage-Free Evaluation Protocol Our primary methodological contribution is a subject-level evaluation protocol. The six development subjects were evaluated with leave-one-subject-out (LOSO) validation: five subjects were used for training and the remaining subject for validation in each fold. Dynamic and static normalizers, missingvalue imputations, augmentation, and early-stopping decisions were fitted using only the corresponding training subjects. Three additional children, one per crouch-severity group, were retained as a locked held-out test set. The final architecture and training duration were frozen from the development folds before this test set was evaluated once. We report within-subject performance as the primary measure, including subject-level and mean-per-muscle R2 values. Frame-pooled/global R2 is reported only alongside these measures because it can be inflated by between-subject forcescale differences. The complete surrogate, data-labeling, testfirewall, and credibility-pilot workflow is shown in Figure 1. The protocol and uncertainty screening pilot are intended to support a risk-informed credibility workflow consistent with the principles of ASME V&V 40 and current FDA guidance for computational modeling and simulation U.S. Food and Drug Administration (2023).
(1)
where W = 251, X denotes kinematics, s denotes static subject parameters, R contains muscle moment arms, and τ is the resulting net muscle joint moment. The final expression enforces a muscle-specific force-capacity bound using true OpenSim F max values. The model predicts 92 muscle forces, activations, and MT lengths, as well as moment arms for 23 independent coordinates. 2.2. Supervision and Physics-Informed Objective Ground-truth forces and activations were obtained from the existing OpenSim computed muscle control (CMC) workflow, and MT lengths, moment arms, and inverse-dynamics joint moments were generated from each subject-scaled model. This use of OpenSim-derived labels follows established musculoskeletal simulation practice Thelen et al. (2003); Seth et al. (2018). We optimized a multi-task objective: L = λ f L f + λa La + λℓ Lℓ + λR LR + λτ Lτ ,
3. Results 3.1. Musculotendon Geometry Surrogate The causal subject-conditioned surrogate reproduced musculotendon (MT) lengths accurately. Development leaveone-subject-out (LOSO) validation achieved pooled MT-length R2 = 0.9245, while the frozen model achieved R2 = 0.9477 on the locked held-out subjects (Table 2; Figure 2). Locked-test MT-length nRMSE was 7.69% overall, with values of 6.51%, 6.38%, and 9.51% for the mild, moderate, and severe held-out subjects, respectively. This result establishes that the pipeline can replace the OpenSim geometry mapping with high accuracy in a causal setting.
(2)
where each term is a normalized mean-squared error for force, activation, MT length, moment arm, or joint moment, respectively. The torque term is evaluated only on available lowerlimb coordinates: 2 1 X τ̂t, j − τt,IDj . (3) Lτ = |J| j∈J 2
Figure 1: Overview of the subject-conditioned musculoskeletal surrogate and leakage-free evaluation protocol. Pediatric CP gait data are processed with subjectscaled OpenSim models and computed muscle control to generate force, activation, musculotendon-length, moment-arm, and inverse-dynamics labels. Windowed kinematics and static model parameters are provided to a causal TCN. Development subjects are used exclusively for leave-one-subject-out model selection and training-only augmentation. A firewall separates the locked held-out evaluation from development. The frozen model is subsequently used for a Monte Carlo credibility pilot with ±5% input variation and nominal 90% prediction-interval coverage assessment.
This discrepancy illustrates why pooled force metrics must not be used as the primary claim in a small, heterogeneous pediatric cohort. Frame-pooled/global R2 can partly reflect between-subject differences in force scale rather than withinsubject temporal tracking. We therefore emphasize subjectwise results in Figure 2 and recommend reporting normalized force, f /F max , in future experiments as a scale-robust secondary outcome. This normalized metric was not computed in the current notebook and is not retrospectively claimed here. Overall, the kinematic and latency components of the feasibility hypothesis are supported, whereas the direct muscle-force accuracy target is not yet met.
However, MT length is a smooth, largely deterministic function of joint configuration in the scaled musculoskeletal model Seth et al. (2018); Thelen et al. (2003). Thus, this result should be interpreted as validation of the data alignment, subject conditioning, and real-time geometry surrogate, rather than as evidence that MT-length prediction is the most difficult scientific component of the problem. 3.2. Real-Time Inference For one causal input window, mean neural inference time was 7.41 ms on a single-thread CPU and 3.16 ms on an NVIDIA A100 GPU. Both measurements are substantially below the 100 ms interactive-rehabilitation criterion. The result therefore establishes real-time feasibility for the neural surrogate component. We do not report a numerical speedup relative to an OpenSim CMC or static-optimization solve because an equivalent end-to-end OpenSim latency measurement was not collected in the current notebook. Such a comparison should be added in a follow-up experiment; otherwise, an explicit orders-ofmagnitude speedup claim would not be supported by the present evidence.
3.4. Torque-Consistency Diagnostic The physics-informed torque pathway did not yield meaningful joint-moment accuracy in the present configuration. Development LOSO pooled joint-moment R2 was −0.0055, and subject-wise values ranged from −0.024 to 0.000 (Table 2). This indicates that the masked torque-consistency term was empirically inert at the available sample size and label quality. This finding does not invalidate physics-informed musculoskeletal learning; rather, it shows that including a mechanically motivated loss does not guarantee improved generalization Zhang et al. (2022b). A future formal ablation should compare otherwise identical models trained with and without the torque term, and should evaluate normalized force targets, Hilltype force generation, and improved joint-moment labels.
3.3. Direct Muscle-Force Estimation Remains Difficult Force prediction was substantially less stable than MT-length prediction. Across development LOSO folds, pooled force R2 was 0.2165 with nRMSE of 34.55%. Subject-level force R2 ranged from −0.635 to 0.486. On the locked test set, the pooled force R2 increased to 0.6056, but this pooled value masked pronounced heterogeneity: force R2 was −1.052 for MI03, 0.239 for MO04, and 0.733 for SE05. A negative value means that the model performed worse than a subject-specific mean-force predictor. The complete subject-wise force and MT-length results are shown in Table 2 and Figure 2.
4. A Credibility (VVUQ) Pilot We conducted a screening-level uncertainty-propagation experiment using the frozen locked-test model. For each heldout subject, we drew 100 Monte Carlo samples with independent ±5% perturbations of muscle-specific F max values and anthropometry-related static inputs. We evaluated nominal 90% 3
Figure 2: Subject-wise global R2 for muscle force and MT length. Development subjects are evaluated by leave-one-subject-out validation; locked subjects are evaluated once after model configuration freezing. MT-length prediction is consistently strong except for one development subject, whereas force prediction varies sharply across children. This variation demonstrates why pooled force R2 must be interpreted alongside subject-wise metrics.
tainty associated with limited, heterogeneous pediatric training data, rather than the narrow input-parameter variation considered here. Consequently, input-only propagation is insufficient for clinically consequential or regulatory-grade credibility claims. Future work will add epistemic uncertainty through deep ensembles Lakshminarayanan et al. (2017), heteroscedastic prediction heads, and calibration methods such as conformal prediction Angelopoulos and Bates (2023). In the spirit of ASME V&V 40, this pilot establishes a measurable credibility gap and identifies the additional validation evidence needed before the surrogate could support a higher-consequence decision U.S. Food and Drug Administration (2023).
Table 2: Subject-wise global R2 results. Each subject-level value is computed over that subject’s evaluation windows and output dimensions. Joint-moment labels were generated only for development LOSO evaluation. Set
Subject
Force MT length Joint moment
Dev. Dev. Dev. Dev. Dev. Dev.
MI01 MI02 MO02 MO03 SE01 SE02
0.380 -0.050 0.441 0.486 -0.635 0.374
0.974 0.512 0.951 0.987 0.986 0.919
-0.019 -0.024 0.000 -0.014 -0.013 -0.007
Dev.
Pooled
0.217
0.925
-0.006
Locked MI03 Locked MO04 Locked SE05
-1.052 0.239 0.733
0.962 0.961 0.919
— — —
Locked Pooled
0.606
0.948
—
5. Discussion and Limitations prediction intervals over randomly sampled causal windows and measured empirical coverage and mean interval width. This experiment is a sensitivity and calibration diagnostic, not a complete credibility assessment. The resulting intervals were severely overconfident (Figure 3). Across the locked cohort, nominal 90% intervals achieved only 4.35% empirical coverage for muscle force and 0.70% coverage for MT length. Mean interval widths were 8.68 N for force and 0.00062 m for MT length. The same pattern appeared for every held-out subject: force coverage ranged from 3.94% to 4.72%, and MT-length coverage ranged from 0.37% to 0.88%. Thus, the propagated input variation represents only a small fraction of the observed prediction error. This failure is itself an informative result. The dominant uncertainty source is likely model-form and epistemic uncer-
This preliminary study establishes a rigorous evaluation substrate for pediatric MSK surrogates rather than a claim that all components of a clinically deployable digital twin have been solved. The leakage-free subject protocol, locked-test firewall, train-only preprocessing, and fast MT-length predictions demonstrate that real pediatric CP data can support reproducible, real-time surrogate evaluation. As summarized in Table 2 and Figure 2, however, the heterogeneous force results show that direct regression of raw muscle force from kinematics remains insufficient at this exploratory scale. In particular, pooled force metrics should not substitute for within-subject, per-muscle performance because body size and force scale can inflate frame-pooled agreement. Several limitations define the next research steps. First, the cohort contains only nine children and one lower-limb gait 4
Figure 3: Monte Carlo credibility pilot on locked held-out subjects. The dashed line denotes nominal 90% coverage. Propagating only ±5% variation in muscle capacity and anthropometry-related static inputs yields severely overconfident intervals: pooled empirical coverage is 4.35% for force and 0.70% for MT length. Narrow interval widths show that input-parameter variation captures only a small component of total predictive uncertainty.
References
trial per subject, as summarized in Table 1; larger and more diverse pediatric datasets are required to model inter-subject heterogeneity and to support reliable subgroup analyses. Second, CMC-derived force and activation labels are physics-based model estimates rather than in-vivo measurements. Future work should therefore predict normalized force ( f /Fmax ), incorporate Hill-type muscle dynamics, and evaluate sensitivity to alternative optimization and muscle-model assumptions Thelen et al. (2003); Seth et al. (2018). Third, the present torque-consistency pathway did not provide measurable improvement, indicating that moment supervision, moment-arm estimation, loss weighting, or the force parameterization requires redesign rather than merely stronger regularization. Finally, the credibility pilot in Figure 3 demonstrates that propagating plausible input uncertainty is not equivalent to calibrated predictive uncertainty. Regulatory-grade credibility requires explicit treatment of model-form and epistemic uncertainty, for example through ensembles, heteroscedastic prediction, and conformal calibration Lakshminarayanan et al. (2017); Angelopoulos and Bates (2023); U.S. Food and Drug Administration (2023). These findings directly motivate the next phase of the program: expansion to additional pediatric subjects, improved physics-consistent force modeling, calibrated uncertainty quantification, and extension from lowerlimb gait to upper-limb rehabilitation tasks.
, 2007. A report: the definition and classification of cerebral palsy april 2006. Developmental Medicine & Child Neurology 49, 8–14. doi:https://doi.org/10.1111/j.1469-8749.2007.tb12610.x. Angelopoulos, A.N., Bates, S., 2023. Conformal prediction: A gentle introduction. Found. Trends Mach. Learn. 16, 494–591. URL: https://doi.org/10.1561/2200000101, doi:10.1561/2200000101. Bai, S., Kolter, J.Z., Koltun, V., 2018. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271 doi:10.48550/arXiv.1803.01271. Falisse, A., Van Rossom, S., Gijsbers, J., Steenbrink, F., van Basten, B.J.H., Jonkers, I., De Groote, F., 2018. OpenSim versus human body model: A comparison study for the lower limbs during gait. Journal of Applied Biomechanics 34, 496–502. doi:10.1123/jab.2017-0156. Lakshminarayanan, B., Pritzel, A., Blundell, C., 2017. Simple and scalable predictive uncertainty estimation using deep ensembles, in: Proceedings of the 31st International Conference on Neural Information Processing Systems, Curran Associates Inc., Red Hook, NY, USA. p. 6405–6416. Liu, K., Liu, Y., Ji, S., Gao, C., Fu, J., 2024. Estimation of muscle forces of lower limbs based on cnn–lstm neural network and wearable sensor system. Sensors (Basel, Switzerland) 24. Rajagopal, A., Dembia, C.L., DeMers, M.S., Delp, D.D., Hicks, J.L., Delp, S.L., 2016. Full body musculoskeletal model for muscle-driven simulation of human gait. IEEE transactions on bio-medical engineering 63, 2068 – 2079. Roelker, S.A., Caruthers, E.J., Hall, R.K., Pelz, N.C., Chaudhari, A.M., Siston, R.A., 2020. Effects of optimization technique on simulated muscle activations and forces. Journal of applied biomechanics , 1–20. Seth, A., Hicks, J.L., Uchida, T.K., Habib, A., Dembia, C.L., Dunne, J.J., Ong, C.F., DeMers, M.S., Rajagopal, A., Millard, M., Delp, S.L., 2018. OpenSim: Simulating musculoskeletal dynamics and neuromuscular control to study human and animal movement. PLoS Computational Biology 14, e1006223. doi:10.1371/journal.pcbi.1006223. Steele, K.M., Seth, A., Hicks, J.L., Schwartz, M.S., Delp, S.L., 2010. Muscle contributions to support and progression during single-limb stance in crouch gait. Journal of Biomechanics 43, 2099–2105. doi:10.1016/j.jbiomech.2010.04.003. Thelen, D.G., Anderson, F.C., Delp, S.L., 2003. Generating dynamic simulations of movement using computed muscle control. Journal of Biomechanics 36, 321–328. doi:10.1016/S0021-9290(02)00432-3. U.S. Food and Drug Administration, 2023. Assessing the credibility of computational modeling and simulation in medical device submissions: Guidance for industry and food and drug administration staff. Accessed: 2026-08-24. Zhang, J., Zhao, Y., Bao, T., Li, Z., Qian, K., Frangi, A.F., Xie, S., Zhang, Z.L., 2022a. Boosting personalized musculoskeletal modeling with physicsinformed knowledge transfer. IEEE Transactions on Instrumentation and Measurement 72, 1–11. Zhang, J., Zhao, Y., Shone, F., Li, Z., Frangi, A.F., Xie, S., Zhang, Z.L., 2022b. Physics-informed deep learning for musculoskeletal modeling: Predicting
6. Conclusion
We developed a leakage-free, subject-conditioned MSK surrogate pipeline for real pediatric CP gait data. The approach meets real-time latency and MT-length accuracy targets, while quantifying the unresolved difficulty of small-cohort muscleforce estimation and showing that input-only uncertainty propagation is severely overconfident. Together, these results, summarized in Table 2 and Figures 2–3, provide a credible preliminary foundation and a focused technical agenda for in-silico pediatric neurorehabilitation. 5
muscle forces and joint kinematics from surface emg. IEEE Transactions on Neural Systems and Rehabilitation Engineering 31, 484–493.
6
Related documents
- Real-Time Musculoskeletal Surrogates for Pediatric Cerebral Palsy: a Credibility Pilot#792383
- Real-Time Musculoskeletal Surrogates for Pediatric Cerebral Palsy: a Credibility Pilot#788383
- Review of Pediatric Neurological Condition Seen in the Physiotherapy Department of a Children Hospital in Ibadan in Nigeria#352410
- Focal Cerebral Arteriopathy Severity Score Validation and Temporal Dynamics in Korean Pediatric Stroke: Distinguishing Inflammatory Arteriopathy From Unilateral Moyamoya Disease#311513
- Early Diagnosis Of Childhood Cerebral ALD#841087
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive