Development and clinical validation of a multimodal AI framework to predict persistent fever during antibiotic therapy in hospitalized patients with cancer

Development and clinical validation of a multimodal AI framework to predict persistent fever during antibiotic therapy in hospitalized patients with cancer

Cohort characteristics

Across the UME training, UME holdout, pooled regional (St. Josef Hospital and Ruhrlandklinik), and MIMIC-IV ICU cohorts, we identified hospital stays of patients with cancer and subsequently restricted the sample to stays with antibiotic treatment. We then required at least one documented temperature measurement 48-72 h after antibiotic initiation for outcome determination. Among these, fever during 24–48 h after antibiotic initiation was observed in a subset of cases, yielding final cohorts of 1035 hospital stays in the UME training cohort, 296 in the UME holdout cohort, 307 in the pooled regional cohort, and 778 in the MIMIC-IV ICU cohort (Fig. 1).

Fig. 1: Flow diagram illustrating the cohort extraction steps for the datasets used in this study.Hospital stays of patients with cancer diagnosis are categorized into four groups: UME training from January 2020 to January 2024 and March 2025 to January 2026 with 30,877 stays; UME holdout from January 2024 to March 2025 with 7,674 stays; Regional hospitals from January 2020 to June 2026 with 8,603 stays; and MIMIC-IV ICU from 2008 to 2022 with 17,256 stays. Among these, patients who received therapeutically dosed intravenous antibiotics number 10,728 in UME training, 2,943 in UME holdout, 2,321 in Regional hospitals, and 11,018 in MIMIC-IV ICU. Ongoing stays of adult patients 48 to 72 hours after the first antibiotic dose with at least one body temperature measurement coded include 8,103 in UME training, 2,293 in UME holdout, 2,014 in Regional hospitals, and 5,379 in MIMIC-IV ICU. Patients with fever defined as temperature greater than or equal to 38.0 degrees Celsius, 24 to 48 hours after the first antibiotic dose number 1,035 in UME training, 296 in UME holdout, 307 in Regional hospitals, and 778 in MIMIC-IV ICU.

UME University Medicine Essen, Germany; Regional hospitals St. Josef hospital and Ruhrlandklinik, Essen, Germany. MIMIC-IV ICU: Beth Israel Deaconess Medical Center Boston Intensive Care Unit, USA.

Training, internal holdout, and external validation cohorts showed variations in several baseline and clinical characteristics (Table 1). Prevalence of persistent fever 48–72 h after initiation of antibiotic therapy was highest in the UME training cohort at 55.7% (576/1035), followed by the UME holdout cohort at 50.0% (148/296). The MIMIC-IV and the pooled regional hospitals cohort showed numerically lower prevalence at 46.7% (363/778) and 44.0% (135/307), respectively. The UME training and holdout cohorts were dominated by hematologic malignancies, including leukemia (32.4% [335/1035] and 29.1% [86/296]) and other hematological malignancies (48.8% [505 /1035] and 51.7% [153/296]). In contrast, the pooled regional hospitals cohort (82.7% [254/307]) and the MIMIC-IV ICU cohort consisted predominantly of patients with solid tumors (68.0% [529/778]).

Table 1 Baseline characteristics of patient hospitalizations at the University Medicine Essen (UME) training cohort, UME holdout cohort, regional cohort pooled from Ruhrlandklinik and St. Josef hospital, and MIMIC-IV dataset

Further notable differences were observed in patterns of clinical practice. The mean interval from hospital admission to first antibiotic administration was longer in the UME training and holdout cohorts (6.0 [SD 5.8] and 6.1 [5.6] days, respectively) than in the pooled regional hospitals cohort (3.0 [SD 1.8] days) and MIMIC-IV (2.4 [SD 1.7] days). Temperature monitoring was also more frequent in the MIMIC-IV ICU cohort, with a mean of 9.0 (SD 4.8) recordings 24-48 hours after first antibiotic administration, compared with 4.7 (SD 5.4) and 4.6 (SD 3.6) in the UME training and holdout cohorts, respectively, and 3.9 (SD 2.6) in the pooled regional hospitals cohort.

Availability of chest radiography before the prediction time window varied across cohorts: imaging was available in 39.7% (411/1035) of hospital stays in the UME training cohort, 44.3% (131/296) in the UME holdout cohort, 54.7% (168/307) in the pooled regional cohort, and 26.1% (203/778) in MIMIC-IV.

Model performance

Across all datasets, the models showed a broadly consistent pattern regarding balanced accuracy and sensitivity-specificity profiles (Fig. 2). Among the multimodal strategies, tabularized multimodal TabPFN had the highest point estimate for balanced accuracy in each dataset: 0.76 (95% CI, 0.73–0.79) on UME during repeated 5-fold cross-validation, 0.79 (95% CI, 0.74–0.83) on the UME holdout set, 0.72 (95% CI, 0.66–0.77) on the pooled regional hospitals dataset, and 0.71 (95% CI, 0.68–0.74) on MIMIC-IV. Other multimodal fusion strategies showed broadly comparable, although more variable, performance, with transformer, early-fusion, and late-fusion models yielding balanced accuracy point estimates between 0.62 and 0.74 across datasets. Partially overlapping confidence intervals indicate that these results support a numerical trend toward higher performance of the tabularized multimodal TabPFN model rather than a clear separation in every setting.

Fig. 2: Model performance across datasets using balanced accuracy, sensitivity, and specificity.The image compares the performance of different model types across four datasets—UME CV, UME holdout, Regional hospitals, and MIMIC-IV—using three metrics: balanced accuracy, sensitivity, and specificity. Multimodal models, tabular baseline models, and large language model comparators are evaluated. Multimodal tabularized TabPFN consistently achieves the highest point estimates of balanced accuracy across datasets. Logistic regression and random forest tabular models generally show moderate balanced accuracy and sensitivity but lower specificity. Large language model comparators, including Qwen-3 LLM zero-shot and few-shot, have lower balanced accuracy and sensitivity but relatively higher specificity on some datasets. Error bars indicate variability in performance for each model and metric.

Points represent performance estimates. For the UME training cohort, point estimates represent mean performance across 20 repeated 5-fold cross-validation runs, with performance within each repetition calculated from the pooled out-of-fold predictions of all five validation folds, whereas holdout and external-cohort points represent performance calculated on the respective full evaluation cohort. Horizontal error bars indicate bootstrapped 95% confidence intervals based on 2000 bootstrap resamples. Panels show (a) balanced accuracy, (b) sensitivity, and (c) specificity for models evaluated in the University Medicine Essen (UME) development cohort, temporally separated UME holdout cohort, pooled regional cohort from Ruhrlandklinik and St. Josef Hospital, and MIMIC-IV cohort. The unit of analysis was the hospital stay. Sample sizes were UME development n = 1035, UME holdout n = 296, pooled regional n = 307, and MIMIC-IV ICU n = 778 hospital stays. Source data are provided as a Source Data file.

The tabular-only TabPFN model followed a similar pattern across datasets, but with consistently lower point estimates of balanced accuracy than the multimodal variant, suggesting a stable numerical effect associated with incorporating multimodal information. Relative to logistic regression and random forest, both TabPFN variants generally yielded higher point estimates, however, overlap between confidence intervals was observed in most comparisons. The prompt-based Qwen-3 LLM comparators generally showed lower balanced accuracy than the trained tabular and multimodal models, and few-shot prompting did not consistently improve performance.

Across datasets, tabularized multimodal TabPFN showed sensitivity and specificity estimates of similar magnitude at the prespecified 0.5 threshold (Fig. 2b, c). On the cross-validated UME training dataset, sensitivity was 0.80 (95% CI 0.77–0.84) and specificity was 0.71 (95% CI 0.66–0.75); on the UME holdout set, corresponding values were 0.81 (95% CI 0.74–0.87) and 0.76 (95% CI 0.69–0.83). Performance remained comparable on the pooled regional hospitals dataset (sensitivity 0.75, 95% CI 0.67–0.82; specificity 0.68, 95% CI 0.61–0.75) and MIMIC-IV (sensitivity 0.73, 95% CI 0.68–0.78; specificity 0.69, 95% CI 0.64–0.73). Other multimodal strategies showed comparable but slightly less consistent operating characteristics; for example, late fusion achieved high sensitivity on the UME holdout (0.85, 95% CI 0.79–0.90) and regional hospitals datasets (0.79, 95% CI 0.71–0.85) but lower specificity (0.53, 95% CI 0.45–0.61; 0.53, 95% CI 0.45–0.60), whereas transformer fusion showed high specificity (0.80, 95% CI 0.76–0.84) on MIMIC-IV with lower sensitivity (0.59, 95% CI 0.54–0.64).

The tabular-only TabPFN model had a similar overall operating profile, with sensitivity ranging from 0.69 to 0.77 and specificity from 0.57 to 0.69. Both prompt-based Qwen-3-LLM comparators were characterized by lower sensitivity (0.43–0.54) and higher specificity (0.68–0.79) for the UME datasets and the regional hospitals but showed an opposite operating profile on the MIMIC-IV ICU dataset.

To assess potential effects of imperfect calibration, we additionally evaluated threshold selection based on Youden’s index. These analyses yielded similar overall conclusions, with some operating characteristics improving and others worsening depending on model and cohort (Suppl. Tables 1–8).

The tabularized multimodal TabPFN model had a consistent trend toward improved discriminative performance compared with the tabular-only TabPFN model across internal and external cohorts, although confidence intervals overlapped in all cohorts. In the cross-validated UME training cohort, the area under the receiver operating characteristic curve (AUC) increased from 0.78 (95% CI 0.76–0.81) to 0.84 (95% CI 0.81–0.86) by leveraging multimodal-derived features, with a similar pattern in the temporally separated UME holdout cohort (0.77, 95% CI 0.72–0.82 vs. 0.82, 95% CI 0.77–0.87; paired DeLong p = 0.001). In external validation, tabularized multimodal TabPFN again yielded slightly higher AUC point estimates in the regional validation cohort (0.71, 95% CI 0.64–0.77 vs. 0.75, 95% CI 0.69–0.80; paired DeLong p = 0.021) and MIMIC-IV ICU cohort (0.75, 95% CI 0.71–0.80 vs. 0.78, 95% CI 0.7–0.81; paired DeLong p < 0.001). Additional performance metrics, including calibration metrics and confusion matrices, are reported in Supplementary Tables 1–8.

Repeated-inference stability testing showed high reproducibility for both upstream feature extraction and direct LLM-based prediction. Across repeated runs, mean feature-level agreement was 97.9% for clinical-note feature extraction and 95.0% for DICOM image feature extraction. Similarly, the prompt-based LLM prediction comparator showed identical binary predictions across repeated runs in 97.0% of encounters, and a prediction flip rate of 2.0% (Suppl. Tables 9–11). In the expert-reviewed reference-standard sub-study, LLM-derived clinical phenotypes showed high agreement with the clinician reference standard across the evaluated variables (agreement 84.6–99.2%; Cohen’s κ 0.65–0.98; Supplementary Table 12). Imaging-derived phenotypes showed moderate concordance with report-based reference labels (agreement 81.5–89.6%; Cohen’s κ 0.59–0.69; Supplementary Table 13).

Feature importance

To evaluate the contribution of features from different data modalities, SHAP values were computed across all datasets for tabularized multimodal TabPFN. The most influential features were broadly consistent across datasets, suggesting that the model relied on a stable set of key predictors despite differences in dataset composition (Fig. 3). For all datasets, the strongest contributor to the predicted probability of persistent fever was the Chronos-2 generated highest forecasted body temperature 48–72 h after start of antibiotic therapy (e.g., 0.060 [95% CI 0.057–0.063] for the UME training cohort, 0.067 [95% CI 0.062–0.073] for the UME holdout cohort, 0.096 [95% CI 0.088–0.104] for the regional cohort, 0.116 [95% CI 0.110–0.122] for the MIMIC-IV ICU cohort), followed by other body temperature-derived variables. The overall SHAP magnitude of text-derived features remained lower than that of temperature-based features and some laboratory-based features. Features derived from chest radiography did not rank among top predictors.

Fig. 3: SHAP values for the top 15 predictors based on the tabularized multimodal TabPFN model.The image presents four horizontal dot plots labeled a, b, c, and d, each showing the impact of various clinical features on model output using SHAP values. Each plot ranks features by their influence, with values ranging from negative to positive, indicating the direction and magnitude of impact. In plot a, the features with the greatest impact include maximum body temperature forecast 48 to 72 hours ahead, mean body temperature 24 to 48 hours prior, and the most recent body temperature taken 24 to 48 hours prior. Features such as male sex and antibiotic change have minimal impact. Plot b shows a similar pattern, with maximum body temperature forecast 48 to 72 hours ahead and mean body temperature 24 to 48 hours prior having the strongest influence. Antibiotic resistance has a slight negative impact. Plot c highlights maximum body temperature forecast 48 to 72 hours ahead and mean body temperature 24 to 48 hours prior as the most influential features. Immunosuppression and solid tumors have minimal impact. Plot d also shows maximum body temperature forecast 48 to 72 hours ahead and mean body temperature 24 to 48 hours prior as key positive contributors. Septic shock has a small impact, while other features have varying smaller effects. Across all plots, body temperature-related features consistently have the strongest influence on the model output, while other clinical variables show smaller or negligible effects.

Each dot represents a hospital stay in (a) the UME cross-validated training cohort, (b) the UME holdout cohort, (c) the pooled cohort from regional hospitals, and (d) the MIMIC-IV cohort. Color indicating the feature value (blue = low, red = high). Features are ordered by mean absolute SHAP value. The time indications are relative to the initiation of antibiotic therapy. BT Body temperature, Leuk. count Leukocyte counts; AB antimicrobial.

To quantify each feature’s contribution to predictive performance, we evaluated permutation feature importance for tabularized multimodal TabPFN by measuring the decline in discrimination after randomly shuffling individual predictors. Across all cohorts, the forecasted maximum body temperature 48–72 h after initiation of antibiotic therapy consistently had the greatest influence on model performance. In the UME training cohort, permuting this feature was associated with a mean AUC decrease of 0.06 (95% CI 0.03–0.09), compared with 0.05 (95% CI 0.00–0.09) in the UME holdout cohort, 0.06 (95% CI 0.00–0.11) in the pooled regional cohort, and 0.08 (95% CI 0.06–0.11) in the MIMIC-IV ICU cohort. Other temperature-derived variables and leukocyte measures demonstrated moderate importance, whereas remaining predictors contributed only marginally. Full permutation importance results are presented in Supplementary Table 14.

Removal of temperature-related information from structured variables, time-series features, and clinical notes was associated with AUCs of 0.57–0.61 across cohorts for both the tabularized multimodal TabPFN and transformer models. Temperature-only models showed AUCs of approximately 0.70–0.76. Across cohorts, full multimodal models had higher AUC point estimates than the corresponding temperature-only models. Removal of time-series signals was associated with larger AUC reductions than removal of clinical-note or imaging-derived features in several cohorts; for example, in the MIMIC-IV cohort, AUC for the tabularized multimodal TabPFN model was 0.74 (95% CI, 0.70–0.77) after time-series ablation compared with 0.78 (95% CI, 0.74–0.81) for the full model (paired DeLong p < 0.001). Clinical-note and imaging-derived feature ablations showed smaller and more cohort-dependent changes in AUC. In imaging-available subgroup analyses, adding imaging-derived features did not materially improve AUROC compared with imaging-ablated models, with ΔAUC values close to zero across cohorts and modelling strategies and all paired DeLong tests non-significant (Suppl. Table 15).

Sensitivity analysis

Model performance was robust to changes in the operational definition of the antibiotic reassessment time window from 48–72 h to 72–96 h after start of antibiotics. Supplementary Table 16 shows the distributional shift of fever prevalence in the datasets as well as adapted time-lagged features.

Following refitting, model performance remained comparable across algorithms. The tabularized multimodal TabPFN model achieved an AUC of 0.84 (95% CI 0.82–0.87) and a balanced accuracy of 0.78 (95% CI 0.75–0.80) in cross-validation on the UME training dataset. This performance was sustained in the UME holdout dataset, where the model achieved an AUC of 0.85 (95% CI 0.80–0.90) and a balanced accuracy of 0.78 (95% CI 0.73–0.83). Performance remained stable as compared to the original reassessment window in both the pooled regional hospital cohort (AUC 0.80, 95% CI 0.71–0.88; balanced accuracy 0.71, 95% CI 0.62–0.80) and MIMIC-IV (AUC 0.82, 95% CI 0.78–0.85; balanced accuracy 0.74, 95% CI 0.70–0.77). After standardizing temperature-measurement density, persistent-fever prevalence in MIMIC-IV decreased from 46.7% to 44.5% (2.5th–97.5th percentile, 43.4%–46.0%), while the tabular-only TabPFN model retained an AUROC of 0.74 (95% CI, 0.70–0.77), compared with 0.75 in the primary analysis.

Clinician validation study

A total of 15 clinicians completed the vignette-based validation study. On average, each participant assessed 92 case vignettes, classifying whether patients would remain febrile 48–72 hours after initiation of antibiotic therapy. Clinician performance varied across the three sequential assessment trials, during which different levels of information were provided. Their performance was comparable to the naive baseline (last-observation-carried-forward) in unaided scenarios, while it notably improved under AI assistance (Fig. 4).

Fig. 4: Sensitivity and specificity across clinician assessment trials.Performance comparison across three trials shows that the TabPFN multimodal AI model consistently achieves higher sensitivity and specificity than the naive baseline and Qwen-3 large language model with few-shot learning. Clinicians have lower sensitivity but similar or slightly higher specificity compared to the naive baseline. Individual clinician-assigned case set data points vary widely but generally cluster around the clinician bars. Trial 1 compares baseline, LLM, multimodal AI, and clinicians using tabular data only with 456 cases. Trial 2 adds clinical notes for clinicians with 465 cases, showing improved clinician sensitivity but lower specificity. Trial 3 adds AI assistance to clinicians with 458 cases, resulting in increased clinician sensitivity and specificity but still below the multimodal AI model. Error bars indicate variability in performance metrics.

Bars represent pooled sensitivity and specificity estimates across all vignette assessments within each trial, and error bars indicate bootstrapped 95% confidence intervals based on 2,000 bootstrap resamples. Solid bars indicate sensitivity and hatched bars indicate specificity. Open circles show individual case-set estimates, with n = 15 estimates per model or clinician group in each trial; each circle represents performance calculated on the vignette set assigned to one clinician, comprising 30–34 cases. Results are shown for the naive baseline (last-observation-carried-forward), Qwen3-Next-80B (few-shot), tabularized multimodal TabPFN, and clinicians across three sequential trials: tabular data only, tabular data plus clinical notes, and AI-assisted clinicians. Trial assessment sample sizes were N = 456, N = 465, and N = 458, respectively. Source data are provided as a Source Data file.

In the tabular-data-only setting (Trial 1; N = 456), clinicians achieved a pooled sensitivity of 0.67 (95% CI 0.61–0.73), specificity of 0.54 (95% CI 0.48–0.61), and balanced accuracy of 0.60 (95% CI 0.56–0.64). Tabularized multimodal TabPFN showed higher performance on all three metrics, with a sensitivity of 0.80 (95% CI 0.75–0.85), specificity of 0.74 (95% CI 0.68–0.79), and balanced accuracy of 0.77 (95% CI 0.73–0.81).

Adding clinical notes in Trial 2 (N = 465) was not associated with improved clinician performance. Clinician sensitivity was 0.70 (95% CI 0.64–0.76), specificity was 0.45 (95% CI 0.38–0.51), and balanced accuracy was 0.57 (95% CI 0.53–0.62). Tabularized multimodal TabPFN again showed higher performance, with sensitivity of 0.82 (95% CI 0.77–0.87), specificity of 0.75 (95% CI 0.69–0.81), and balanced accuracy of 0.79 (95% CI 0.75–0.82).

In the AI-assisted setting (Trial 3; N = 458), clinicians achieved a sensitivity of 0.79 (95% CI 0.74–0.84), specificity of 0.62 (95% CI 0.55–0.68), resulting in a balanced accuracy of 0.71 (95% CI 0.67–0.75), representing a notable performance improvement compared to the unaided clinician assessments. The predictive performance of tabularized multimodal TabPFN remained higher overall, with sensitivity of 0.87 (95% CI 0.82–0.91), specificity of 0.72 (95% CI 0.66–0.78), and balanced accuracy of 0.79 (95% CI 0.76–0.83), although the difference relative to clinicians was smaller than in the earlier trials.

Across trials, the naive baseline model demonstrated a stable and comparatively balanced performance profile, with balanced accuracy ranging from 0.63 to 0.64. Its performance was similar to clinician performance in the unaided Trials 1 and 2, while AI-assisted clinicians in Trial 3 performed better than the naive baseline. By contrast, Qwen-3-Next-80B performance was characterized by lower sensitivity (0.41–0.48) and higher specificity (0.76–0.80), with balanced accuracy ranging from 0.61 to 0.62.

When stratified by clinician experience, balanced accuracy was broadly similar across groups. Resident physicians achieved the highest point estimate (0.66, 95% CI 0.62–0.70), followed by medical students (0.64, 95% CI 0.60–0.69), whereas attending physicians had the lowest point estimate (0.58, 95% CI 0.53–0.62). Across all groups, sensitivity consistently exceeded specificity. Resident physicians achieved a sensitivity of 0.70 (95% CI 0.65–0.76) and a specificity of 0.63 (95% CI 0.56–0.69). Corresponding values were 0.73 (95% CI 0.67–0.78) and 0.56 (95% CI 0.49–0.62) for medical students, and 0.74 (95% CI 0.68–0.79) and 0.42 (95% CI 0.35–0.49) for attending physicians.

During AI-assisted Trial 3, agreement with the displayed AI predictions was broadly similar across clinician experience groups. Agreement rates were 82.1% for medical students (124/151; 95% CI 75.2–87.4%), 77.1% for resident physicians (121/157; 95% CI 69.9–83.0%), and 81.3% for attending physicians (122/150; 95% CI 74.3–86.8%). When stratified by AI prediction correctness, clinicians agreed with 82.0% (300/366) of correct and 72.8% (67/92) of incorrect AI predictions, departing from incorrect predictions in 27.2% (25/92) of assessments (Suppl. Table 17).

Confusion matrices for clinician performance across the three assessment stages are provided in Supplementary Table 18. Anonymized per-clinician performance estimates are provided in Supplementary Table 19.