Evidence map›Paper›PMID 40354109›Full record

ArticleJournal of medical Internet research2025

Evaluation and Bias Analysis of Large Language Models in Generating Synthetic Electronic Health Records: Comparative Study.

Ruochen Huang, Honghan Wu, Yuhan Yuan, Yifan Xu, Hao Qian, Changwei Zhang, Xin Wei, Shan Lu, Xin Zhang, Jingbao Kan and 2 more

Abstract readComparative Study
In one paragraph

Article in Journal of medical Internet research, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 5 papers.

0numbers the graph read from it
0cells of the map it votes in
5citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

5 citing papers in PubMed.

  1. Review
  2. Article
  3. Review
  4. Review
  5. Article
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

12 authors.

Ruochen HuangSchool of Biomedical Engineering and Informatics, Nanjing Medical University, Nanjing, China.ORCID 0009-0006-5297-2970
Honghan WuUniversity College London, London, United Kingdom.ORCID 0000-0002-0213-5668
Yuhan YuanSchool of Biomedical Engineering and Informatics, Nanjing Medical University, Nanjing, China.ORCID 0009-0007-9968-8587
Yifan XuSchool of Biomedical Engineering and Informatics, Nanjing Medical University, Nanjing, China.ORCID 0009-0009-4505-9341
Hao QianSchool of Biomedical Engineering and Informatics, Nanjing Medical University, Nanjing, China.ORCID 0009-0003-1932-2560
Changwei ZhangThe Pervasive Communication Center, Purple Mountain Laboratories, Nanjing, China.ORCID 0000-0002-6155-4205
Xin WeiNanjing University of Posts and Telecommunications, Nanjing, China.ORCID 0000-0001-6183-2298
Shan LuThe First Affiliated Hospital of Nanjing Medical University, Nanjing, China.ORCID 0009-0004-3088-5070
Xin ZhangThe First Affiliated Hospital of Nanjing Medical University, Nanjing, China.ORCID 0000-0003-0047-3134
Jingbao KanThe First Affiliated Hospital of Nanjing Medical University, Nanjing, China.ORCID 0000-0001-8146-4605
Cheng Wan *School of Biomedical Engineering and Informatics, Nanjing Medical University, Nanjing, China.ORCID 0000-0002-2981-5970
Yun Liu *The First Affiliated Hospital of Nanjing Medical University, Nanjing, China.ORCID 0000-0002-4311-3772

Funding

No grant is acknowledged in the PubMed record.

6 · The paper itself

Abstract

backgroundSynthetic electronic health records (EHRs) generated by large language models (LLMs) offer potential for clinical education and model training while addressing privacy concerns. However, performance variations and demographic biases in these models remain underexplored, posing risks to equitable health care.

objectiveThis study aimed to systematically assess the performance of various LLMs in generating synthetic EHRs and to critically evaluate the presence of gender and racial biases in the generated outputs. We focused on assessing the completeness and representativeness of these EHRs across 20 diseases with varying demographic prevalence.

methodsA framework was developed to generate 140,000 synthetic EHRs using 10 standardized prompts across 7 LLMs. The electronic health record performance score (EPS) was introduced to quantify completeness, while the statistical parity difference (SPD) was proposed to assess the degree and direction of demographic bias. Chi-square tests were used to evaluate the presence of bias across demographic groups.

resultsLarger models exhibited superior performance but heightened biases. The Yi-34B achieved the highest EPS (96.8), while smaller models (Qwen-1.8B: EPS=63.35) underperformed. Sex polarization emerged: female-dominated diseases (eg, multiple sclerosis) saw amplified female representation in outputs (Qwen-14B: 973/1000, 97.3% female vs 564,424/744,778, 75.78% real; SPD=+21.50%), while balanced diseases and male-dominated diseases skewed the male group (eg, hypertension Llama 2-13 B: 957/1000, 95.7% male vs 79,540,040/152,466,669, 52.17% real; SPD=+43.50%). Racial bias patterns revealed that some models overestimated the representation of White (eg, Yi-6B: mean SPD +14.40%, SD 16.22%) or Black groups (eg, Yi-34B: mean SPD +14.90%, SD 27.16%), while most models systematically underestimated the representation of Hispanic (average SPD across 7 models is -11.93%, SD 8.36%) and Asian groups (average SPD across 7 models is -0.77%, SD 11.99%).

conclusionsLarger models, such as Yi-34B, Qwen-14B, and Llama 2 to 13 B, showed improved performance in generating more comprehensive EHRs, as reflected in higher EPS values. However, this increased performance was accompanied by a notable escalation in both gender and racial biases, highlighting a performance-bias trade-off. The study identified 4 key findings as follows: (1) as model size increased, EHR generation improved, but demographic biases also became more pronounced; (2) biases were observed across all models, not just the larger ones; (3) gender bias closely aligned with real-world disease prevalence, while racial bias was evident in only a subset of diseases; and (4) racial biases varied, with some diseases showing overrepresentation of White or Black populations and underrepresentation of Hispanic and Asian groups. These findings underline the need for effective bias mitigation strategies and the development of benchmarks to ensure fairness in artificial intelligence applications for health care.

Indexed as

Electronic Health RecordsBiasFemaleHumansLarge Language ModelsMaleartificial intelligenceelectronic health recordsgender biaslarge language modelsperformance evaluationracial bias

Identifiers

PMID40354109
PMCPMC12107208

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.