Original Article


Prompting strategies and large language model prediction of postoperative outcomes after esophagectomy: a retrospective cohort study

Michael Mosebetsi Moleka, Juan Xiong, Wanli Jiang

Abstract

Background: Large language models (LLMs) can generate individualized postoperative risk estimates, but the accuracy of directly elicited probabilities and the effect of prompting strategy remain uncertain.

Methods: This retrospective cohort study included 299 consecutive adults who underwent curative-intent esophagectomy at a tertiary center in Wuhan, China, between December 23, 2020, and June 19, 2025. Outcome-blinded clinical vignettes were evaluated by 5 LLMs using zero-shot, structured-reasoning, and simulated multidisciplinary-team prompting, yielding 4,485 assessments. The primary outcome was postoperative length of stay (LOS) of 15 days or longer; pulmonary complications were secondary, and anastomotic leak was exploratory. Performance was assessed using the Brier score (primary measure), area under the receiver operating characteristic curve (AUROC), area under the precision-recall curve (AUPRC), and calibration, with 95% CIs from 5,000 outcome-stratified bootstrap samples and a leave-one-out prevalence-null benchmark. Ten prespecified within-model prompt contrasts were tested using paired t tests with Holm adjustment.

Results: The mean (standard deviation, SD) patient age was 66.4 (7.6) years, and 54 patients (18.1%) were women. Prolonged LOS occurred in 96 patients (32.1%), pulmonary complications in 44 (14.7%), and anastomotic leak in 14 (4.7%). For prolonged LOS, Brier scores ranged from 0.218 to 0.237 versus 0.219 for the prevalence-null benchmark; AUROCs ranged from 0.507 to 0.566. None of 10 within-model prompt contrasts remained significant after Holm adjustment, and the model-by-prompt interaction was covariance-sensitive. For pulmonary complications, the lowest Brier score was 0.1282 versus 0.1263 for the null benchmark; interaction methods disagreed. For anastomotic leak, all 15 systems had higher (worse) Brier scores than the null benchmark, and 11 of 15 AUROCs were below 0.5.

Conclusions: Directly elicited LLM probabilities showed discrimination close to chance and no meaningful improvement over prevalence-based predictions. Structured-reasoning and simulated multidisciplinary-team prompting did not produce consistent gains. These directly elicited probabilities are therefore not suitable for use as clinical risk estimates.

Download Citation