After a total knee replacement (TKA), the line along which body weight travels through the leg can shift. The clearest example is a patient whose corrected knee sits beside a contralateral knee that still collapses inward. Such shifts concentrate stress on particular regions of bone and have been linked to fractures around the implant. Clinicians would like to track this from ordinary phone video recorded at home, but current tools cannot do it. Accurate joint angles today require calibrated multi-camera rigs. Clinical video classifiers only output a diagnosis label, and they fail badly when the camera looks from the side. Real footage of rare post-surgical gaits, paired with ground-truth angles, barely exists.
We propose to manufacture that footage. The generator is an autoregressive video model, meaning one that produces a long video chunk by chunk, with each chunk conditioned on the frames already made. We condition it on musculoskeletal simulations of walking in which each leg's alignment is set deliberately. We then accept a generated chunk only if an independent pose estimator, run on the synthetic pixels, recovers the knee angles we asked for. When a chunk fails this check, the generator backs up to the last good chunk and tries again, rather than discarding the whole video. The result is a large, labeled corpus of photorealistic asymmetric gait video, and it is used to train a single-camera estimator of frontal-plane knee alignment. The claim is testable on real motion-capture ground truth. It is also falsifiable by a cheap competitor: training on rendered avatars instead.
Core Claim
Photorealistic generated video beats graphics-rendered avatars as training data for monocular frontal-plane knee angle estimation only if its labels are trustworthy. The chunk-level check-and-backtrack loop is what makes them trustworthy. Our specific prediction is that removing the verification loop makes the synthetic data no better than avatar renders, while keeping it improves estimation on held-out real subjects. The improvement should be largest in the regimes where current methods break: side and oblique views, and gaits whose two legs are aligned differently.
The clinical target is kinematic, not mechanical. We estimate frontal-plane knee angle, a hip–knee–ankle axis proxy, and the gap between the two legs across a walking bout. These serve as visible stand-ins for altered force lines. We do not claim to recover bone stress. Stress would require finite-element models such as the tibial analysis of Liu et al., which simulates tibial loading under valgus and flexion postures with known boundary conditions.
Why This Gap Is Real
The clinical motivation comes from two papers. Sun et al. report a patient whose unilateral TKA corrected varus while the other knee remained in severe valgus. The resulting asymmetry produced a medial tibial stress fracture around the component. Chen et al. find that a larger hip–knee–ankle angle predicts later contralateral patellar dislocation. Both findings rest on static radiographs, and neither says anything about how alignment behaves across many walking cycles at home.
On the vision side, several papers set the bar and also mark its limits. Lin et al. estimate OpenSim joint angles directly from two synchronized camera views. They train on ODAH, a synthetic set of avatar meshes animated by OpenSim-driven motions. OpenCapBench shows that standard keypoint accuracy does not reflect joint-angle validity. Its SynthPose models, pose detectors fine-tuned on synthetic data with dense anatomical landmarks, cut joint-angle error two- to fourfold. Both approaches need multiple views, and neither targets post-surgical asymmetry. GAVD shows that monocular clinical gait classifiers score 91–97% from the front or back but only 56–66% from the side, and it produces no per-frame angles.
These three papers therefore define the target (anatomically valid angles), the failure (a single camera at an arbitrary angle), and the simplest synthetic-data solution (avatars). Lin et al. note that avatar renders lack real-world visual variety.
Research Program
We build a generation pipeline in three parts. The first part is the kinematic source. We take gait motions of the kind used to animate ODAH and retarget them in OpenSim with a parameterized frontal-plane offset per knee, with separate settings for varus and valgus magnitude on each side. This gives a controllable, fully labeled 3D trajectory for each bout, covering symmetric gaits, one-sided correction, and "blownknee"-style opposite deformities. The camera pose is sampled per bout, deliberately including side and oblique views.
The second part is the generator. We use a streaming autoregressive video model of the LongLive family. LongLive fine-tunes on the model's own imperfect rollouts and keeps the first frames' tokens as a persistent anchor. It reports 20.7 frames per second on one H100 and coherent video up to 240 seconds. We add a lightweight control adapter that takes per-frame projected dense-landmark maps from the OpenSim trajectory, together with a reference identity image. The adapter is fine-tuned on real multi-view gait footage whose landmarks come from SynthPose. Each chunk spans roughly one gait cycle. Long bouts matter here because inter-limb asymmetry and drift in alignment only appear over many cycles. That is precisely where short-clip generators fall apart and where streaming conditioning earns its place.
The third part is the verifier with backtracking, adapted from Temporal Backtracking Search. That work shows video diffusion models commit early to flawed trajectories. It repairs them by restarting from verified clean prefixes rather than resampling whole videos. After each chunk $k$, a frozen verifier estimator $V$ recovers per-frame 3D knee angles from the generated pixels, using the known camera. The chunk is accepted if
$$ e_k = \max_{t \in \text{chunk } k} \left| V(x_t)_{\text{frontal}} - q_t^{\text{frontal}} \right| \le \tau, $$
where $x_t$ is generated frame $t$, $q_t^{\text{frontal}}$ is the commanded frontal-plane knee angle for either leg, and $\tau$ is a tolerance in degrees. A chunk that fails is regenerated from the last accepted prefix with a new noise sample. A bout that exhausts its retry budget is dropped.
The verifier is kept deliberately separate from the downstream estimator we train. It uses a different backbone and has never seen synthetic video. The final evaluation is on real motion-capture ground truth. Together these break the obvious circularity, where the data would learn to satisfy one particular model's quirks.
The content-production contribution is the pipeline's yield: accepted, labeled seconds of video per GPU-hour. We measure it the way RoVid-X treats curation, as a staged filter whose throughput and rejection rates are reported. That work curated 4 million physically annotated robot clips and showed that visually polished generators can rank poorly on physical realism. We extend this style of filtering from language-model judges to quantitative joint-angle checks.
The downstream model is a monocular estimator. It is a single-view variant of the Lin et al. architecture, predicting frontal- and sagittal-plane knee angles plus a per-bout asymmetry index. It is trained on whichever corpus a given arm of the study specifies.
Baselines
The do-nothing reference is the monocular estimator trained only on the real footage available, with no synthetic data. This shows how much any synthetic corpus helps at all.
The strongest existing competitor for synthetic training data is avatar rendering in the style of ODAH from Lin et al.. We render exactly the same OpenSim trajectories and camera poses through a mesh renderer, so labels are exact by construction. The only differences from our corpus are visual realism and label noise. This is the most dangerous baseline because its labels are perfect and it costs far less than video generation.
For the underlying accuracy bar, Lin et al. report 8.06° joint-angle mean absolute error and 55.54 mm PA-MPJPE with two views. We found no reported result on Lacuna for monocular frontal-plane knee angle on OpenCapBench or GAVD. We will therefore establish these numbers ourselves, running each arm with identical estimator architecture, training steps, and hyperparameter search budget.
The second competitor is compute-matched best-of-N filtering. We generate whole bouts without backtracking, keep those whose worst-chunk error clears $\tau$, and spend the same total GPU-hours as our method. TBS reports 22.7% versus 0.7% for best-of-N on its out-of-distribution maze task. Nothing guarantees that gap carries over to gait video, so this comparison is a genuine test.
The ablation that isolates our key ingredient is generated video with no verification at all, trained at matched corpus size. Beating the competitors means lower frontal-plane angle error and asymmetry-index error than both the avatar arm and the unverified arm on held-out real subjects. The margin must exceed seed-to-seed variation across three training runs, and it should concentrate in side and oblique views.
Why not just…?
Why not just train on rendered avatars? This is the real threat, and we treat it as a possible outcome rather than a strawman. Lin et al. already achieve zero-shot transfer from ODAH to real data, which shows avatars carry a lot of signal. Their own caveat is missing visual variety: clothing, backgrounds, and lighting. That caveat is plausibly worst for subtle frontal-plane angles, where loose trousers hide the knee. The matched avatar arm settles the question directly. If it ties with verified generated video, we will report that generation is not worth its cost for this task. A mixed corpus is also tested, in case the two sources complement each other.
Why not just filter whole videos with best-of-N instead of backtracking? Best-of-N is simpler and needs no chunk-level restarts. Its weakness is that one bad cycle discards a whole multi-minute bout, so yield should fall roughly geometrically with bout length. The compute-matched arm measures exactly this, reporting accepted labeled seconds per GPU-hour against bout length. If yields match at our bout lengths, backtracking is dropped in favor of best-of-N.
Why not just mine real footage with scalable curation tools and pseudo-label it? Pipelines such as STEPs, which localizes key steps without labels, and LAVE, which edits video through language narration, can find walking segments in raw footage. They cannot supply degree-level frontal-plane labels, because monocular pseudo-labels are the very quantity we are trying to make reliable. Real recordings of post-TKA opposite-deformity gaits are also rare and unlabeled. We still include an arm that pseudo-labels real multi-view gait with SynthPose, since that is the fair real-data alternative wherever multi-view data happen to exist.
Why not just classify with a stronger action model? GAVD's SlowFast reaches 94% accuracy but outputs a category, not an angle. Its 56–66% side-view accuracy is itself the problem we target. A classifier also cannot track a patient's alignment continuously over recovery.
Proposed Experiments
The first and decisive check comes before any downstream training. On a held-out set of commanded trajectories, we measure how well the generator preserves the frontal-plane angle it was given. The measure is the verifier-independent error: the angle recovered by a second estimator, and on a subset by multi-view reconstruction of generated multi-camera renders. We report acceptance rate and error as functions of commanded deformity, from 0° to large offsets. If the adapter cannot render offsets of a few degrees distinguishably, the project stops and reports this as a limit of pose-conditioned video models. That limit would be consistent with the realism-versus-physics gap documented by PISA and RBench.
The main experiment trains the monocular estimator under five arms: real only, plus avatars, plus unverified generation, plus best-of-N generation, and plus backtracking-verified generation. All arms use matched corpus sizes. We evaluate knee-angle RMSE and asymmetry-index error on the real multi-view motion-capture data behind OpenCapBench, fed one camera at a time and binned by viewing angle. We then transfer to GAVD and its controlled CASD set. Ground-truth angles are absent there, so we test whether the estimated asymmetry index separates the labeled asymmetric gait classes from normal gait, with particular attention to side views, where the published classifiers drop to 56–66%.
Secondary measurements cover pipeline yield per GPU-hour and sensitivity to $\tau$. As a quality sanity check, we report visual quality on VBench-Long against LongLive's reported 83.52, to confirm that the control adapter does not degrade the base model.
A small clinical pilot with post-TKA patients filmed at home would be the natural next step. No such dataset appears in our sources, so we report no numbers for it here.
References
- Biomechanical and Injury Tolerance Analysis of Tibial Movement Under Different Postures and Impact Loads
- The “blownknee” patient’s stress fracture of distal tibial component after unilateral TKA: A case report
- Prediction of Subsequent Contralateral Patellar Dislocation after First-Time Dislocation Based on Patellofemoral Morphologies
- 3D Kinematics Estimation from Video with a Biomechanical Model and Synthetic Training Data
- OpenCapBench: A Benchmark to Bridge Pose Estimation and Biomechanics
- Computer Vision for Clinical Gait Analysis: A Gait Abnormality Video Dataset
- LongLive: Real-time Interactive Long Video Generation
- Temporal Backtracking Search for Test-time Generative Video Reasoning
- Rethinking Video Generation Model for the Embodied World
- STEPs: Self-Supervised Key Step Extraction and Localization from Unlabeled Procedural Videos
- LAVE: LLM-Powered Agent Assistance and Language Augmentation for Video Editing
- PISA Experiments: Exploring Physics Post-Training for Video Diffusion Models by Watching Stuff Drop