Related Experiment Video
Updated: Aug 5, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Improving Clinical Validity in Synthetic Electronic Health Record Generation Using Best-of-N Sampling: Comparative
Md Akmol Masud1, Mahmud Hasan2
1Department of Electrical and Computer Engineering, Queen's University, 99 University Ave, Kingston, ON, K7L 3N6, Canada, +880 1304963440.
Best-of-N selection improves synthetic health record validity by filtering generated data. Its success depends on the generator's ability to produce valid samples, with CTGAN+best-of-16 showing the best overall performance.
Area of Science:
- Synthetic Data Generation
- Health Informatics
- Machine Learning
Background:
- Synthetic electronic health records (EHRs) face limitations in statistical fidelity and clinical validity.
- Plausible synthetic data can still violate critical physiological or relational constraints.
Purpose of the Study:
- Evaluate best-of-N constraint-minimizing selection for enhancing clinical validity of synthetic EHRs.
- Characterize the success and failure of this strategy based on generator valid support mass (pvalid).
Main Methods:
- Compared Wasserstein generative adversarial network with gradient penalty (WGAN-GP) and conditional tabular generative adversarial network (CTGAN) on three public clinical datasets.
- Assessed random sampling, naive clipping, and best-of-N selection (N={8, 16, 128}).
- Evaluated validity, fidelity (Kolmogorov-Smirnov statistics, correlation preservation), utility (TSTR AUC), and privacy (MIA AUC, DCR).
Main Results:
- Best-of-N effectiveness is tied to the generator's pvalid; WGAN-GP with pvalid=0 failed to produce valid samples.
- For WGAN-GP with pvalid=0.12, best-of-128 selection eliminated violations (0/500).
- CTGAN+best-of-16 achieved zero violations with strong fidelity and utility (TSTR AUC up to 0.81), maintaining near-random privacy.
Conclusions:
- Best-of-N acts as a feasibility filter, its efficacy dependent on the generator's valid support mass.
- CTGAN+best-of-16 demonstrated the optimal balance across clinical validity, fidelity, utility, and privacy in the evaluated scenarios.
Related Concept Videos
Contaminants and Errors
Another key consideration is determining the appropriate number of samples required to...
Sampling Plans
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...
Data Collection by Experiments
An example of the experimental method is a public clinical trial...
Statistical Software for Data Analysis and Clinical Trials
Types of Biopharmaceutical Studies: Controlled and Non-Controlled Approaches
Non-controlled studies, commonly employed for initial exploration, lack a control group, rendering them susceptible to biases and external influences. In contrast, controlled...
Sampling Methods: Overview
In analytical chemistry, the choice of sampling...
