Skip to content

Synthetic Patient Panels for Healthcare Communication Testing #409

Closed

Description

@amaiaita

Project Title

Synthetic Patient Panels for Healthcare Communication Testing

One-Line Summary

Experimenting with using LLM-generated synthetic patient panels to test behavioural science interventions.

Origin (Optional)

NHSE

Project Tags

  • Domain: Primary care
  • Domain: Secondary care
  • Domain: Social Care
  • Domain: Emergency care
  • Domain: Diseases
  • Domain: Public/Population Health
  • Domain: Workforce & Allocation
  • Domain: Prescribing
  • Domain: Financial
  • Technique: Forecasting
  • Technique: Classification
  • Technique: Computer Vision
  • Technique: Deep Learning
  • Technique: Large Language Models (LLM)
  • Technique: Machine Learning
  • Technique: Neural Networks
  • Technique: Natural Language Processing (NLP)
  • Technique: Linkage
  • Technique: Simulation
  • Type: Best Practice Guidance
  • Type: Data Validation
  • Type: Documentation
  • Type: Ethics
  • Type: Explainability
  • Type: Generation
  • Type: Linkage
  • Type: Modelling
  • Type: Reproducible Analytical Pipeline (RAP)
  • Type: Research
  • Data Type: Structured
  • Data Type: Unstructured
  • Data Type: Multi-modal
  • Data Type: Sound/Audio
  • Data Type: Genomics
  • Data Type: Video/Image
  • Data Type: Text Data
  • Data Type: Time Series
  • Data Access: Patient Identifiable
  • Data Access: Synthetic
  • Data Access: Open Data
  • Data Access: Pseudonymised
  • Language: Python
  • Language: SQL
  • Language: R
  • Language: Web Development (e.g. Javascript, HTML, CSS)
  • Status: Work in Progress
  • Status: Complete
  • Status: On Pause
  • Status: In Development
  • Status: Retired
  • Status: Deployed
  • Status: Experimental

Project Description

Problem

The NHS sends millions of text messages, letters, and digital notifications to patients every year. Small differences in wording affect whether patients respond, book appointments, or take up services. Behavioural scientists work to improve the wording on these text messages, but usually come up with too many ideas to feasibly test them all on a real patient population, which is expensive and slow. Randomised controlled trials take months and require large sample sizes. Teams often launch messages or smaller randomised controlled trials without any idea on whether the messages they have chosen to test are the best options.

Solution

This tool generates synthetic patient panels using large language models. Each synthetic patient has a demographic profile (age, gender, ethnicity, deprivation level) sampled from real Census 2021 distributions at the LSOA level. Patients also receive behavioural traits (health literacy, digital confidence, trust in healthcare) drawn from configurable distributions.

Flow chart of the synthetic panels process.

The pipeline works in four stages:

  1. Generate a panel of N synthetic patients with realistic demographic and behavioural profiles.
  2. Present each patient with multiple message variants and ask a structured question (e.g. "How likely would you be to click on the link provided?").
  3. Collect responses on a Likert scale or as free-text reasoning, then compare response patterns across message variants and demographic subgroups.
  4. Run an automated bias judge that flags reasoning containing stereotyping, essentialism, or protected-trait dependence.

The tool supports built-in statistical power analysis. It calculates whether the sample size is large enough to detect meaningful differences between message variants and automatically increases the panel size if needed.

Users configure experiments through a Streamlit interface or command-line scripts.

Results

The team is currently working to determine the accuracy, usefulness and ethical implications of this tool and whether it should even be used. This is exploratory work at the moment and is not being used for any real decision making

Relevant Links (Optional)

Code (Currently Private): https://github.com/nhsengland/synthetic_panels

Project Status

Current Project

Year (if Past Project)

No response

Main Work Area Category

Natural Language Processing Products

Activity

  1. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

    ✅ Project Submission Processed

    Great! Your project page has been generated and a PR has been created.

    Pull Request: #410
    View PR

    Images processed: 1 image(s) have been automatically downloaded and included in the PR.

    Next Steps

    1. Review the generated project page markdown
    2. The team will review and merge when ready
    3. Once merged, the website will be updated automatically
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions