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
- Pramod Kumar (ORCID: https://orcid.org/0009-0004-2299-3944)
- Anush Nayak (ORCID: https://orcid.org/0000-0002-8121-2958)
- Tejaswini BD
- Vanishri Arun
- Hari Prakash G
- Sunil Kumar D
Institutions
- JSS Academy of Higher Education and Research (IN)
- B.M.S. College of Engineering (IN)
- M S Ramaiah University of Applied Sciences (IN)
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