Trajectory-Aware Synthetic Patient Twins for External Control Arms in Rare Disease Trials
My OxML 2026 poster: a three-stage diffusion pipeline for synthetic external control arms in rare disease trials, with a proposed evaluation on MIMIC-IV.
- Venue
- Oxford Machine Learning Summer School (OxML) 2026
- Track
- Poster Challenge, Track 1: Health & Bio
- Format
- Theoretical poster, sole author
- Status
- Implementation and experiments are future work
The problem
Around 7,000 rare diseases affect roughly 300 million people worldwide, but a single disease rarely gives a trial more than a few hundred eligible patients. With so few people a randomised trial cannot detect realistic effect sizes, and giving a placebo to patients with a severe, progressive condition is hard to defend ethically.
Regulators now allow external control arms, where the comparison group comes from outside the trial. Almost all of them today are observational, taken from registries or older trials, so they carry selection bias, unmeasured confounding and inconsistent measurement. Existing synthetic patient generators such as Synthea and medGAN target common conditions and cross-sectional records. They were not built for small cohorts followed over a long time.
The method
Each patient is a continuous-time trajectory of clinical states: demographics, labs that change over time, medications and events. A latent diffusion model learns to generate those trajectories in three stages.
- Stage 01Pretrain
Train the model on about 200,000 longitudinal trajectories from large common-disease registries, so it learns how labs move together and how treatments and events are usually ordered.
- Stage 02Adapt
Freeze the backbone and fine-tune low-rank adapters (LoRA) on the rare disease cohort of 20 to 200 patients. Under 1% of parameters change, which keeps the general prior and avoids overfitting a tiny cohort.
- Stage 03Constrain
At sampling time, reject trajectories that break rules supplied by clinicians. A treatment milestone cannot come before its diagnostic prerequisite, and cumulative dose cannot fall. This needs no retraining.
The proposed evaluation
The benchmark uses MIMIC-IV, a large public ICU database. An under-represented condition is held out as a stand-in rare disease with 80 patients. The model pretrains on everyone else, fine-tunes on 20% of the held-out cohort, and is scored against the unseen 80%. Because the ground truth is known, the protocol can measure bias as well as realism.
- ≈ 0.58Target TSTR AUC
A classifier tries to tell real from synthetic trajectories. A score near 0.50 means it mostly cannot.
- < 0.04Target survival deviation
Median absolute gap between Kaplan-Meier curves for the twins and the real held-out cohort, over 12 months.
- 10 / 10Target CIs covering the null
Under a simulated treatment with no effect, the 95% interval should contain zero in every one of 10 resampling seeds.
These three numbers are targets set in advance. They are not results.
Why the third metric matters
A generator can match every marginal distribution and still bias a treatment effect estimate if it breaks the dependencies that link cause to outcome. For a control arm, realistic-looking records are not enough. The estimate you get from them has to be unbiased, and that is what the null-effect test checks.
What it is not
This is a proposal. Nothing has been implemented and no experiments have been run. The figure above is a conceptual sketch with no data behind it, and the survival plot on the poster is labelled as an illustrative target.
Open problems
- Identifiability: tie the generator to an explicit structural causal model and derive when the estimate is provably unbiased.
- Real trial validation: replicate a completed single-arm rare disease trial using only synthetic controls.
- Privacy: add differentially private fine-tuning so twins from a 20-patient cohort cannot leak anyone's identity.
- Regulation: test the framework against FDA real-world-evidence guidance and EMA qualification procedures.
Certificates
I completed two OxML 2026 tracks: MLx Health & Bio and MLx Representation Learning & Generative AI.