arXiv:2610.08506cs.CEOct 2026

Manuscript Offprint

arXiv:2610.08506

Closing the realism gap in physics-based gait simulations with a learned state prior

Markus Gambietz, Zhihao Zhao, Theodoros Balougias, Xiang Wang, Anne D. Koelewijn

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Predictive simulation of human movement is a promising tool for studying “what-if” scenarios in human movement and its underlying motor control, yet its realism is often limited. To address this gap, we incorporate a learned state prior that is trained on a large-scale dataset of human gait kinematics and external forces into predictive simulations. Resulting gait simulations yield kinematics and kinetics across diverse walking and running speeds that better match experimental data than current physics-based simulations, achieving accuracy comparable to data-driven models that reproduce learned data. Furthermore, our method enables robust hypothesis testing by demonstrating how varying optimality assumptions, muscle weakness, and footwear choices influence predicted gait. We also show that this prior generalizes well beyond its training data, successfully reconstructing full-body kinematics for curved running and cutting maneuvers from sparse marker sets. Ultimately, these results suggest that state priors should be broadly integrated into predictive simulations.

Keywords: predictive simulation, musculoskeletal modelling, machine learning, variational autoencoder, human locomotion, optimal control

1 Introduction

Despite decades of research, we still cannot fully explain why humans move the way they do. Experiments capture movements, but answering what-if questions, such as “How would running economy change with different footwear?”, requires measuring every condition of interest, which is time-consuming and often expensive [1]. More fundamental questions, for example whether humans choose their locomotion pattern based on energy efficiency or fatigue mitigation, cannot be observed directly in experiments [2, 3].

Physics-based predictive simulation offers a different route: instead of measuring how a person moves, it computes how a person would move under a candidate hypothesis or scenario. Given a musculoskeletal model, a task, and an objective, it generates a motion that is physically consistent while optimising that objective, and it has been implemented using both reinforcement learning and optimal control [4–7]. Plausible proxies for the objective behind human movement exist: effort, which is related to fatigue mitigation, or metabolic energy efficiency [2, 3]. By changing the objective, the body model, or the environment, one can test hypotheses about human motor control and predict how humans would move under new conditions.

In practice, the motions that these simulations produce are not always realistic. Human motion has many degrees of freedom and many muscles to coordinate, so even a reasonable objective admits optima that no human would produce. Current methods mitigate this by adding hand-designed regularisation terms, such as penalties on joint accelerations or head movement [4, 5, 8], or by tracking experimental data, i.e. by penalising deviation from measured kinematics or kinetics [9, 10]. Both have drawbacks: hand-tuned terms do not yield realistic motion across the full range of speeds and gait modes, and tracking terms require experimental data for every new condition. Moreover, some conditions might not even be testable, which limits their use for prediction. Data-driven motion generation models, on the other hand, produce highly realistic motion [11–13], but their generated motion is conditioned on learned representations of recorded motion patterns. Therefore, analysing a change, e.g. in the ground contact stiffness, would still require experimental data for that condition.

Integrating learned models of human movement into physics-based simulations provides an alternative to hand-designed terms and to reference tracking. Such models have been used to stabilise pose estimation [25, 26] and, notably, as a training reward in reinforcement learning-based physical simulation [27–31]. We apply

Figure

Figure 1: Overview of our simulation method. Two objective terms are jointly optimised, a task objective (here: metabolic costs) and a learned state prior. Metabolic costs are estimated from the musculoskeletal model over the full gait cycle [14], while the state prior is evaluated at every time step of the trajectory and then averaged. The resulting motion is constrained by the dynamics of the musculoskeletal model, which enforces that each state and control xkx_k, uku_k is physically consistent with the previous state [15]. Experiments 1 & 2 use N=50N = 50 collocation nodes, which means that the temporal resolution is higher than in this schematic, while Experiment 3 uses 149 to 175 nodes. Experiments 1 and 2 also enforce half-cycle periodicity, which means that the state at node N+1N + 1 must be equal to the left-right mirrored first node state Mx1\mathcal{M}x_1.

the same idea to optimal control-based predictive simulation, where a learned probability function replaces hand-designed regularisation terms. Compared to a trained policy, a trajectory optimisation returns a local optimum of the problem we pose. Differences between simulations can therefore be attributed to the change in objective, body model, or environment, rather than testing the generalization of the training process.

We refer to the probability estimate as a state prior: a smooth, differentiable reconstruction probability over the states we can measure, covering joint angles and velocities as well as ground reaction forces. Essentially, the state prior encodes how likely a given state is to be observed in human gait. We obtain it by training a probabilistic autoencoder once on a large motion-capture dataset [32] and then keeping it fixed across all simulations. We evaluate the state prior at every time step of a trajectory optimisation problem solved with numerical methods like direct collocation and use it as an ordinary objective term, alongside, for example, a term for metabolic energy (see Fig. 1). Compared to a tracking term that penalises deviation from a specific reference motion, the state prior is agnostic to the specific motion and does not prescribe a particular trajectory, speed, or gait mode. The state prior also only sees individual states, not the full trajectory, so it does not impose a specific gait speed or cadence. Within the optimisation, the physics then determines which motions are possible, the task objective determines which of those motions is preferred, and the state prior guides the solution towards the states that humans likely adopt.

We demonstrate this approach in three experiments. In the first, predictive simulations across the full range of walking and running speeds reproduce measured kinematics and ground reaction forces ( r=0.94–0.98r = 0.94–0.98) more closely than existing physics-based simulations, and comparably to data-driven models that are trained to reproduce the data. Realistic cadences, a self-chosen walking speed, and the walk-to-run transition emerge from these simulations without being imposed by the objective function or by reference data. In the second experiment, we test various hypotheses, showing that the prior does not overconstrain the solution space, but instead allows us to examine how different optimality criteria, muscle weakness, and ground contact models affect the predicted gait, including solutions that are physically valid but are not observed in humans. In the third, we show that the prior generalises beyond its training data by reconstruct-

Figure

b

Reference

Ours

PredSim

GaitDynamics

GGN

GaitEncoder

Figure

C

Figure

d

Figure

Figure

Figure 2: State prior-based simulations match measured walking and running data. a) Sagittal-plane hip, knee, and ankle joint angles (left) and fore-aft/vertical ground reaction forces (right) over one gait cycle, at a representative walking (1.2 m s −1^{-1}, solid) and running (3.5 m s −1^{-1}, dotted) speed. We find that our simulations are closer to experimental data [16, 17] than current state-of-the-art simulations using PredSim [7]. Individual trials are shown as thin lines, with the across-trial mean as a thick line and ±\pm SD shaded. All curves are phase-aligned to the reference mean before averaging. b) Duty factor, which is the fraction of the gait cycle in stance, across every simulated speed. We compare ours to reference data (mean ±\pm SD shaded) [16, 17], PredSim, GaitDynamics [11], and Generative GaitNet (GGN) [6]. The diamond marks our result for “self-chosen” walking speed. Our method yields a duty factor most consistently aligns with both walking and running reference data. c) Step cadence vs. speed for the same sources plus GaitEncoder [12], overlaid with literature reference relations (walking: [18], running: [19]). Here, current methods cannot reproduce the reference cadence-speed relation across the whole speed range. The diamond again marks our self-chosen speed result. d) Renders of exemplary gait cycles at walking (1.2 m s −1^{-1}) and running (4.3 m s −1^{-1}) speeds.

ing full-body kinematics of curved running and cutting manoeuvres from sparse marker sets. In conclusion, the same framework applies wherever the question is how a person would move under conditions that have not been measured, for example in footwear or assistive-device design.

References (59)