Uncovering bias and variability in how large language models attribute cardiovascular risk

Justine Tin Nok Chan1, Ray Kin Kwek2

  • 1School of Clinical Medicine, University of Cambridge, Cambridge, United Kingdom.

Frontiers in Digital Health
|December 25, 2025
PubMed

Insights

Large language models (LLMs) show bias in cardiovascular risk assessment, attributing higher risk to men and Black patients. Their decisions varied with comorbidities, highlighting the need for careful evaluation to prevent health inequities.

Area of Science:

  • Medical Artificial Intelligence
  • Clinical Decision Support Systems
  • Health Equity Research

Background:

  • Large language models (LLMs) are increasingly integrated into medical applications.
  • However, their performance in attributing cardiovascular risk, particularly concerning demographic and clinical factors, is not well understood.
  • This gap necessitates an examination of LLM decision-making processes in this critical area.

Purpose of the Study:

  • To investigate how a specific LLM (ChatGPT 4.0 mini) assigns relative cardiovascular risk across various demographic and clinical domains.
  • To assess the LLM's consistency and potential biases in risk attribution.
  • To explore the impact of specific clinical factors (e.g., BMI, diabetes, depression, smoking, hyperlipidemia) on the LLM's risk assessments.

Main Methods:

  • A structured set of prompts was designed covering six domains: general cardiovascular risk, BMI, diabetes, depression, smoking, and hyperlipidemia.
  • Prompts were submitted in triplicate to ChatGPT 4.0 mini.
  • Neutral prompts assessed baseline risk attribution, while comparative prompts evaluated changes in risk assignment when specific domains were included.

Main Results:

  • The LLM generally attributed higher cardiovascular risk to men than women and to Black patients compared to white patients across neutral prompts.
  • In comparative analyses, sex-based risk attributions shifted in two of six domains (e.g., with depression, risk was equal; with smoking, males were higher risk).
  • Race-based risk attributions remained consistent, with the LLM consistently identifying Black patients as higher risk. High agreement across repeated runs (ICC=0.949) was observed.

Conclusions:

  • The LLM demonstrated both bias and variability in its cardiovascular risk attributions across different domains.
  • While sex-based risk perceptions could be influenced by comorbidities, race-based perceptions were notably stable.
  • These findings underscore the critical need for rigorous evaluation of LLMs in clinical settings to mitigate the risk of perpetuating existing health inequities.

Related Concept Videos

Bias in Epidemiological Studies01:29

Bias in Epidemiological Studies

Biases can arise at various stages of research, from study design and data collection to analysis and interpretation. Recognizing and addressing these biases is essential to ensure the validity and reliability of epidemiological findings.Broadly speaking, biases in epidemiology fall into three main categories: selection bias, information bias, and confounding. A more detailed description of possible biases is:  
1.2K
Factors Influencing Heart Rate01:30

Factors Influencing Heart Rate

The heart rate, or pulse rate, is a vital indicator of cardiovascular health. It reflects the number of times the heart beats per minute. Various physiological and environmental factors influence heart rate, increasing or decreasing cardiac output. Understanding these factors is crucial for assessing heart function and identifying potential health issues.
Let us explore the significant factors affecting heart rate, including age, body temperature, posture, acute pain, chemical influences,...
6.1K
Confounding in Epidemiological Studies01:27

Confounding in Epidemiological Studies

Confounding in statistical epidemiology represents a pivotal challenge, referring to the distortion in the perceived relationship between an exposure and an outcome due to the presence of a third variable, known as a confounder. This variable is associated with both the exposure and the outcome but is not a direct link in their causal chain. Its presence can lead to erroneous interpretations of the exposure's effect, either exaggerating or underestimating the true association. This...
552
Variability: Analysis01:11

Variability: Analysis

Measures of variability are statistical metrics that reveal the dispersion pattern within a dataset. They are pivotal in biostatistics, providing insights into the heterogeneity within health and biological data. Variability signifies the degree to which data points diverge from one another, helping researchers understand the potential range of values and associated uncertainty within the data.
The range is a simple measure of variability, indicating the difference between the highest and...
415