Preprint
Large Language Models

Virtual Patients Using Large Language Models: Scalable, Contextualized Simulation of Clinician-Patient Dialogue With Feedback

David A Cook, Joshua Overgaard, V Shane Pankratz, Guilherme Del Fiol, Chris A Aakre
April 4, 2025Journal of Medical Internet Research70 citations

70

Citations

6

Influential Citations

Journal of Medical Internet Research

Venue

2025

Year

Abstract

Background Virtual patients (VPs) are computer screen–based simulations of patient-clinician encounters. VP use is limited by cost and low scalability. Objective We aimed to show that VPs powered by large language models (LLMs) can generate authentic dialogues, accurately represent patient preferences, and provide personalized feedback on clinical performance. We also explored using LLMs to rate the quality of dialogues and feedback. Methods We conducted an intrinsic evaluation study rating 60 VP-clinician conversations. We used carefully engineered prompts to direct OpenAI’s generative pretrained transformer (GPT) to emulate a patient and provide feedback. Using 2 outpatient medicine topics (chronic cough diagnosis and diabetes management), each with permutations representing different patient preferences, we created 60 conversations (dialogues plus feedback): 48 with a human clinician and 12 “self-chat” dialogues with GPT role-playing both the VP and clinician. Primary outcomes were dialogue authenticity and feedback quality, rated using novel instruments for which we conducted a validation study collecting evidence of content, internal structure (reproducibility), relations with other variables, and response process. Each conversation was rated by 3 physicians and by GPT. Secondary outcomes included user experience, bias, patient preferences represented in the dialogues, and conversation features that influenced authenticity. Results The average cost per conversation was US $0.51 for GPT-4.0-Turbo and US $0.02 for GPT-3.5-Turbo. Mean (SD) conversation ratings, maximum 6, were overall dialogue authenticity 4.7 (0.7), overall user experience 4.9 (0.7), and average feedback quality 4.7 (0.6). For dialogues created using GPT-4.0-Turbo, physician ratings of patient preferences aligned with intended preferences in 20 to 47 of 48 dialogues (42%-98%). Subgroup comparisons revealed higher ratings for dialogues using GPT-4.0-Turbo versus GPT-3.5-Turbo and for human-generated versus self-chat dialogues. Feedback ratings were similar for human-generated versus GPT-generated ratings, whereas authenticity ratings were lower. We did not perceive bias in any conversation. Dialogue features that detracted from authenticity included that GPT was verbose or used atypical vocabulary (93/180, 51.7% of conversations), was overly agreeable (n=56, 31%), repeated the question as part of the response (n=47, 26%), was easily convinced by clinician suggestions (n=35, 19%), or was not disaffected by poor clinician performance (n=32, 18%). For feedback, detractors included excessively positive feedback (n=42, 23%), failure to mention important weaknesses or strengths (n=41, 23%), or factual inaccuracies (n=39, 22%). Regarding validation of dialogue and feedback scores, items were meticulously developed (content evidence), and we confirmed expected relations with other variables (higher ratings for advanced LLMs and human-generated dialogues). Reproducibility was suboptimal, due largely to variation in LLM performance rather than rater idiosyncrasies. Conclusions LLM-powered VPs can simulate patient-clinician dialogues, demonstrably represent patient preferences, and provide personalized performance feedback. This approach is scalable, globally accessible, and inexpensive. LLM-generated ratings of feedback quality are similar to human ratings.

Analysis

Why This Paper Matters

This paper addresses a critical bottleneck in medical education: the high cost and low scalability of virtual patient simulations. By leveraging large language models, the authors demonstrate a practical, inexpensive solution that can generate authentic dialogues and personalized feedback, making VP technology accessible to institutions worldwide. The work is particularly timely given the rapid adoption of LLMs in healthcare and the growing need for scalable clinical training tools.

The study's rigorous evaluation, including validation of novel rating instruments and comparison of human vs. LLM ratings, provides strong evidence that LLM-powered VPs can meet educational standards. The identification of specific dialogue flaws (e.g., verbosity, over-agreeableness) offers actionable insights for improving future systems.

Technical Contributions

  • LLM-Powered Patient Simulation: Carefully engineered prompts enable GPT to emulate patient personas with specific preferences (e.g., treatment goals, communication style), demonstrating contextualized role-playing.
  • Automated Feedback Generation: LLMs produce personalized feedback on clinical performance, with quality comparable to human-generated feedback, reducing the need for expert raters.
  • Self-Chat Capability: GPT can role-play both patient and clinician, enabling automated generation of training dialogues without human involvement.
  • Novel Evaluation Instruments: Development and validation of rating scales for dialogue authenticity and feedback quality, with evidence of content, internal structure, and relations with other variables.
  • Cost Efficiency: GPT-4.0-Turbo at $0.51 and GPT-3.5-Turbo at $0.02 per conversation, orders of magnitude cheaper than traditional VP development.

Results

  • Mean dialogue authenticity: 4.7/6 (SD 0.7)
  • Mean user experience: 4.9/6 (SD 0.7)
  • Mean feedback quality: 4.7/6 (SD 0.6)
  • Patient preference alignment: 42%-98% of dialogues for GPT-4.0-Turbo
  • GPT-4.0-Turbo outperformed GPT-3.5-Turbo on all metrics
  • Human-generated dialogues rated higher than self-chat dialogues
  • Feedback ratings from GPT were similar to human ratings; authenticity ratings were lower for GPT
  • No bias detected in any conversation
  • Common authenticity detractors: verbosity/atypical vocabulary (51.7%), over-agreeableness (31%), repeating questions (26%), easily convinced (19%), not disaffected by poor performance (18%)
  • Common feedback detractors: excessively positive (23%), missing weaknesses/strengths (23%), factual inaccuracies (22%)

Significance

This work demonstrates that LLM-powered virtual patients are not only feasible but also practical for widespread deployment in medical education. The ability to generate personalized, contextualized dialogues and feedback at minimal cost could democratize access to high-quality simulation training, particularly in resource-limited settings. The findings also highlight areas for improvement, such as reducing verbosity and ensuring appropriate emotional responses, guiding future LLM fine-tuning for healthcare applications. Beyond education, the methodology could extend to patient communication training, clinical decision support, and automated assessment of communication skills.