Diabetes-specialized versus general-purpose large language models for 5-year mortality prediction in adults with diabetes: a validation study using NHANES

Background Large language models (LLMs) are increasingly proposed for clinical prediction, but their prognostic accuracy, calibration and reliability relative to conventional models remain unclear. We evaluated whether diabetes-specific fine-tuning improves LLM prediction of mortality. Methods We included 6,242 adults with diabetes from NHANES 2005 to 2018 with linked National Death Index follow-up, split 70:30 into development and validation sets. Diabot, a Llama 3.1 8B model fine-tuned on diabetes guidelines, and its base model estimated 5-year all-cause mortality from text summaries of 19 routine predictors under seven prompting conditions. Comparators were Cox, logistic regression and XGBoost models. We assessed discrimination, calibration, net benefit, output format adherence and run-to-run stability. Results Among 1,307 validation participants (202 deaths), the Cox model achieved an AUC of 0.787 (95% CI 0.752 to 0.820). Zero-shot Diabot achieved 0.755 (0.720 to 0.790) with 98.6% valid outputs, versus 0.721 (0.679 to 0.759) and 76.7% for base Llama. Diabot outperformed base Llama with few-shot and stepwise prompts (AUC difference 0.03; p < 0.05). Both LLMs over-predicted mortality (expected/observed 1.20 and 1.43) and produced few distinct risk values. Recalibration in the development set corrected calibration (slope 1.01). Adding Diabot's score to the Cox model did not improve discrimination (AUC change + 0.001). Conclusions Domain fine-tuning improved output reliability and modestly improved discrimination, but neither LLM matched a Cox model using the same routine data. LLM risk estimates require recalibration before any clinical use.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-26
DOI
https://doi.org/10.21203/rs.3.rs-11663085/v1
Primary Topic
Machine Learning in Healthcare
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Diabetes-specialized versus general-purpose large language models for 5-year mortality prediction in adults with diabetes: a validation study using NHANES

Pramod Kumar, Anush Nayak, Tejaswini BD, Vanishri Arun et al.
Research Square
Machine Learning in Healthcare
preprint

Diabetes-specialized versus general-purpose large language models for 5-year mortality prediction in adults with diabetes: a validation study using NHANES

Pramod Kumar, Anush Nayak, Tejaswini BD, Vanishri Arun, Hari Prakash G, Sunil Kumar D
preprint en

Abstract

Background Large language models (LLMs) are increasingly proposed for clinical prediction, but their prognostic accuracy, calibration and reliability relative to conventional models remain unclear. We evaluated whether diabetes-specific fine-tuning improves LLM prediction of mortality. Methods We included 6,242 adults with diabetes from NHANES 2005 to 2018 with linked National Death Index follow-up, split 70:30 into development and validation sets. Diabot, a Llama 3.1 8B model fine-tuned on diabetes guidelines, and its base model estimated 5-year all-cause mortality from text summaries of 19 routine predictors under seven prompting conditions. Comparators were Cox, logistic regression and XGBoost models. We assessed discrimination, calibration, net benefit, output format adherence and run-to-run stability. Results Among 1,307 validation participants (202 deaths), the Cox model achieved an AUC of 0.787 (95% CI 0.752 to 0.820). Zero-shot Diabot achieved 0.755 (0.720 to 0.790) with 98.6% valid outputs, versus 0.721 (0.679 to 0.759) and 76.7% for base Llama. Diabot outperformed base Llama with few-shot and stepwise prompts (AUC difference 0.03; p < 0.05). Both LLMs over-predicted mortality (expected/observed 1.20 and 1.43) and produced few distinct risk values. Recalibration in the development set corrected calibration (slope 1.01). Adding Diabot's score to the Cox model did not improve discrimination (AUC change + 0.001). Conclusions Domain fine-tuning improved output reliability and modestly improved discrimination, but neither LLM matched a Cox model using the same routine data. LLM risk estimates require recalibration before any clinical use.

Research Square
JSS Academy of Higher Education and Research (IN), B.M.S. College of Engineering (IN), M S Ramaiah University of Applied Sciences (IN)
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon