TrialSynth: Generation of Synthetic Sequential Clinical Trial Data
Chufan Gao, Mandis Beigi, Afrah Shafquat, Jacob Aptekar, Jimeng Sun
TL;DR
TrialSynth integrates a Variational Autoencoder with Hawkes Process-based sequential modeling to generate high-fidelity, time-stamped synthetic clinical trial data from small datasets. By employing a Transformer encoder to produce latent representations and a Hawkes-based decoder, it captures both the timing and order of clinical events, with optional knowledge of event types to improve fidelity. Across seven real-world datasets, TrialSynth variants outperform baselines in downstream predictive utility while offering tunable privacy-utility trade-offs via VAE sampling variance and event-type control. The approach supports targeted trial design applications, enabling realistic synthetic trajectories that protect patient privacy, though generalizability to larger, more diverse populations and deeper privacy guarantees remain areas for future work.
Abstract
Analyzing data from past clinical trials is part of the ongoing effort to optimize the design, implementation, and execution of new clinical trials and more efficiently bring life-saving interventions to market. While there have been recent advances in the generation of static context synthetic clinical trial data, due to both limited patient availability and constraints imposed by patient privacy needs, the generation of fine-grained synthetic time-sequential clinical trial data has been challenging. Given that patient trajectories over an entire clinical trial are of high importance for optimizing trial design and efforts to prevent harmful adverse events, there is a significant need for the generation of high-fidelity time-sequence clinical trial data. Here we introduce TrialSynth, a Variational Autoencoder (VAE) designed to address the specific challenges of generating synthetic time-sequence clinical trial data. Distinct from related clinical data VAE methods, the core of our method leverages Hawkes Processes (HP), which are particularly well-suited for modeling event-type and time gap prediction needed to capture the structure of sequential clinical trial data. Our experiments demonstrate that TrialSynth surpasses the performance of other comparable methods that can generate sequential clinical trial data at varying levels of fidelity / privacy tradeoff, enabling the generation of highly accurate event sequences across multiple real-world sequential event datasets with small patient source populations. Notably, our empirical findings highlight that TrialSynth not only outperforms existing clinical sequence-generating methods but also produces data with superior utility while empirically preserving patient privacy.
