Visual abstractsVisuals
ReviewThe Lancet Digital Health · Nov 29, 2025

Effective sample size for individual risk predictions: quantifying uncertainty in machine learning models

Thomassen D, Hackmann T, Goeman J, Steyerberg E, le Cessie S
Digital Health & AIAdult
Read the full paper free at the publisher ↗

Abstract

Individual prediction uncertainty is a key aspect of clinical prediction model performance; however, standard performance metrics do not capture it. Consequently, a model might offer sufficient certainty for some patients but not for others, raising concerns about fairness. To address this limitation, the effective sample size has been proposed as a measure of sampling uncertainty. We developed a computational method to estimate effective sample sizes for a wide range of prediction models, including machine learning approaches. In this Viewpoint, we illustrated the approach using a clinical dataset (N=23 034) across five model types: logistic regression, elastic net, XGBoost, neural network, and random forest. During simulations, our approach generated accurate estimates of effective sample sizes for logistic regression and elastic net models, with minor deviations noted for the other three models. Although model performance metrics were similar across models, substantial differences in effective sample sizes and risk predictions were observed among patients in the clinical dataset. In conclusion, prediction uncertainty at the individual prediction level can be substantial even when models are developed using large samples. Effective sample size is thus a promising measure to communicate the uncertainty of predicted risk to individual users of machine learning-based prediction models.

Topics

Machine Learning; Uncertainty; Humans; Sample Size; Risk Assessment; Logistic Models; Neural Networks, Computer

DOI: 10.1016/j.landig.2025.100911 · PubMed: 41318283

Spotted a mistake? Suggest a correction

More in Digital Health & AI

Lancet Digit Health · Nov 23, 2026 · Research · Digital Health & AI

ClinicalAge biomarker associated with mortality and disease risk in UK datasets

Lancet Digit Health · Nov 23, 2026 · Research · Digital Health & AI

Facial photographs used to estimate age and predict survival in cancer patients

Lancet Digit Health · Nov 23, 2026 · Research · Digital Health & AI

New model predicts severe fetal compromise risk at birth with 33.4% sensitivity

NPJ Digit Med · Nov 21, 2026 · Research · Digital Health & AI

ECG foundation models performed well on general data but less so on athletes' data

J Med Internet Res · Nov 20, 2026 · Research · Digital Health & AI

Six large language models showed similar question-answering accuracy on medical exam questions