Retrieval-Augmented Multimodal Language Model with Heterogeneous Evidence Integration for Clinical Prognosis
Organizations: Eindhoven University of Technology · University of Melbourne
Abstract
Clinical prognosis requires integrating structured measurements, physiological waveforms, longitudinal history, and population context. We introduce PRISM (Population-Retrieved Inference for Structured Multimodal Prognosis), a multimodal language model that combines per-feature numerical tokenization, recency-weighted aggregation of longitudinal ECGs, and a dual-modality population memory bank. Retrieval operates in representation space: the model receives mean-pooled embeddings of similar training-cohort encounters, while no individual retrieved record enters the prompt. On the 1,443-task MDS-ED benchmark, PRISM achieves AUROCs of 86.2% for diagnosis, 93.1% for deterioration, 91.8% for ICU admission, and 92.8% for mortality. These results use a 96-hour pre-arrival window unavailable to reported baselines. With benchmark-window inputs only, PRISM reaches 0.8895 AUROC, compared with 0.8937 for UniPACT and 0.8889 for MDS-ED. A matched-input compact fusion model using the same five evidence streams and frozen encoders reaches 0.7652 AUROC, versus 0.9092 for PRISM. Replacing numerical EHR encoding with text serialization reduces AUROC by 3.66 points; removing pre-arrival history reduces it by 1.97 points; and zeroing retrieval reduces it by 0.99 points. Genuine retrieval outperforms random-neighbor retrieval by 0.97 macro-average points, although a paired task-level sign test does not establish a uniform advantage (p=0.067). On the external MC-MED cohort, supervised fine-tuning reaches 0.8611 AUROC, compared with 0.8227 for locally trained gradient boosting and 0.7841 for source-only PRISM. These results support structure-aware multimodal integration and supervised external adaptation.
Figures & tables
| Method | Tasks · AUROC (%) | |||
| Diagnosis | Deterioration | ICU | Mortality | |
| ECG Foundation Models · waveform input | ||||
| HeartBERT ( Tahery et al., 2025 ) | ||||
| ECGFM-KED ( Tian et al., 2024 ) | ||||
| ESI ( Yu et al., 2024 ) | ||||
| ECGFounder ( Li et al., 2025 ) | ||||
| Model / condition | Diagnosis | Deterioration | ICU | Mortality | Overall AUROC |
| Source-only transfer | |||||
| PRISM, original bank | 0.7086 | 0.7112 | 0.8188 | 0.8977 | 0.7841 [0.751, 0.814] |
| Local-bank adaptation (no parameter updates) | |||||
| PRISM, MC-MED bank | 0.7080 | 0.7133 | 0.8193 | 0.9025 | 0.7858 [0.754, 0.815] |
| Supervised local training / adaptation | |||||
| Gradient boosting | 0.7012 | 0.7509 | 0.8924 | 0.9465 | 0.8227 [0.796, 0.851] |
| Ablation / configuration | AUROC | |
| Encoder ablations | ||
| Text-serialized EHR (no tokenization) † | 0.8726 | |
| w/o EHR encoder | 0.8874 | |
| w/o current-visit ECG † | 0.8931 | |
| w/o longitudinal ECG history † | 0.8970 | |
| Memory bank ablations, three-seed reference | ||
| Model | LLM | AUROC | AUPRC | ECE | Params |
| NN outcome prevalence ( ) | No | 0.5262 | 0.1235 | – | 0 |
| FT-Transformer, structured EHR only | No | 0.1864 | 0.4362 | 3.1M | |
| ECG and longitudinal history only | No | 0.2378 | 0.4308 | 4.1M | |
| Fusion, EHR + ECG + history | No | 0.2727 | 0.4261 | 4.6M | |
| Fusion + retrieval (all five streams) | No | 0.2500 | 0.4043 | 5.9M | |
| PRISM | Yes | 0.5504 | 0.1134 | 4B |
| Configuration | AUROC | AUPRC | ECE | |
| Structured EHR as serialized text | 0.8726 | 0.4632 | 0.1586 | |
| w/o 96-hour pre-arrival window | 0.8895 | 0.5358 | 0.1290 | |
| w/o current-visit ECG | 0.8931 | 0.5031 | 0.1266 | |
| w/o longitudinal ECG history | 0.8970 | 0.5418 | 0.1260 | |
| w/o retrieval (tokens zeroed) | 0.8993 | 0.5450 | 0.1239 | |
| Retrieval with random neighbors | 0.8995 | 0.5470 | 0.1224 |
| ECG Encoder | Diagnosis | Deterioration | ICU | Mortality |
| HeartBERT ( Tahery et al., 2025 ) | 83.65 | 91.07 | 90.79 | 91.61 |
| ECGFM-KED ( Tian et al., 2024 ) | 82.71 | 90.57 | 90.27 | 90.90 |
| ECGFounder ( Li et al., 2025 ) | 82.54 | 91.71 | 90.60 | 90.73 |
| D-BETA (PRISM) ( Hung et al., 2025 ) | 86.24 | 93.12 | 91.79 | 92.82 |
| vs. next-best | +2.59 | +1.41 | +1.00 | +1.21 |
| Group | Tasks | Rows | AUROC | AP@eval | AP@true | Brier | ECE |
| PRISM | |||||||
| Diagnoses | 1,428 | 253,055 | 0.8619 | 0.8532 | 0.3400 | 0.1720 | 0.1558 |
| Deterioration | 6 | 729 | 0.9291 | 0.9357 | 0.5855 | 0.1186 | 0.1183 |
| ICU | 2 | 3,476 | 0.9180 | 0.9204 | 0.7265 | 0.1383 | 0.0954 |
| Mortality | 7 | 4,898 | 0.9279 | 0.9172 | 0.5495 | 0.1126 | 0.0840 |
| Macro-of-macro | 1,443 | 0.9092 | 0.5504 | 0.1134 | |||
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Stage 1 | Stage 2 |
| LLM backbone | MedGemma-4B (frozen) | MedGemma-4B + LoRA |
| LoRA rank / scaling | – | 16 / 32 |
| LoRA dropout | – | 0.05 |
| LoRA target modules | – | q, k, v, o, gate, up, down |
| EHR encoder | 192 | frozen |
| EHR encoder layers / heads | 3 / 4 | frozen |
| Modality stream | Input dim. | Stage |
| Current-visit ECG | 1 | |
| Structured EHR | 512 | 1 |
| Longitudinal ECG history | 512 | 1 |
| Retrieved EHR context | 512 | 2 |
| Retrieved ECG context | 2 |
| Property | EHR Index | ECG Index |
| Vector dimension | 512 | |
| Distance metric | Cosine similarity | Cosine similarity |
| Indexed encounters | 116,186 | 116,186 |
| Neighbors retrieved ( ) | 3 | 3 |
| Context aggregation | Mean pooling | Mean pooling |
| Index construction | After Stage 1 | After Stage 1 |
| Group | Endpoint | Test | [95% CI] | [95% CI] |
| Deterioration | Cardiac arrest | 68 | 0.9706 [0.9187, 0.9965] | 0.9870 [0.9627, 1.0000] |
| Inotrope administration | 27 | 0.9615 [0.8765, 1.0000] | 0.9286 [0.8076, 1.0000] | |
| Mechanical ventilation | 437 | 0.9597 [0.9438, 0.9759] | 0.9666 [0.9517, 0.9789] | |
| ECMO cannulation | 18 | 0.9383 [0.8051, 1.0000] | 0.9383 [0.7916, 1.0000] | |
| Vasopressor initiation | 125 | 0.9286 [0.8717, 0.9701] | 0.9247 [0.8742, 0.9672] | |
| Severe hypoxemia | 54 | 0.8285 [0.7069, 0.9293] | 0.8285 [0.7129, 0.9286] |
| ICD-10 Chapter | Ch. | Mean | Range | |
| Pregnancy, childbirth, puerperium | O | 3 | 0.9825 | 0.9475–1.0000 |
| Certain infectious diseases | A | 15 | 0.9189 | 0.8493–0.9835 |
| Blood and immune disorders | D | 50 | 0.8952 | 0.6600–1.0000 |
| Circulatory system | I | 181 | 0.8900 | 0.7128–1.0000 |
| Poisoning and toxic effects | T | 43 | 0.8888 | 0.6317–0.9889 |
| Neoplasms | C | 48 | 0.8886 | 0.2800–1.0000 |
| AUROC Range | Tasks | Proportion | Cumulative |
| 506 | 35.4% | 35.4% | |
| – | 613 | 42.9% | 78.4% |
| – | 260 | 18.2% | 96.6% |
| – | 41 | 2.9% | 99.4% |
| 8 | 0.6% | 100% | |
| Total | 1,428 | 100% |
| Prior ECGs | Encounters | Share |
| 0 | 5,752 | 89.33% |
| 1 | 565 | 8.77% |
| 2 | 86 | 1.34% |
| 3 | 26 | 0.40% |
| 4 | 7 | 0.11% |
| 5 | 2 | 0.03% |
| Quantity | Value |
| Initialization of | 1.0000 |
| Converged | 0.9891 |
| Change from initialization | 1.1% |
| Half-life | 67.3 h |
| 97.1 h | |
| Weight retained at 96 h | 0.372 |
| Aggregation rule | All encounters | prior ECGs |
| Oldest acquisition only | 0.9083 | 0.8903 |
| Most recent acquisition only | 0.9087 | 0.8998 |
| Uniform average | 0.9091 | 0.9026 |
| Fixed decay, half-life 1 h | 0.9090 | 0.9041 |
| Fixed decay, half-life 2 h | 0.9089 | 0.9069 |
| Learned decay (PRISM) | 0.9092 | 0.9136 |
| Metric | Value |
| Unique patients | 71,098 |
| ECG-linked encounters | 129,095 |
| Training samples (task instances) | 4.5M |
| Training set | 116,186 |
| Validation set | 6,455 |
| Test set | 6,454 |
| Group | Tasks | Examples / Endpoints |
| Diagnosis | 1,428 | Full ICD-10 nosology (circulatory, musculoskeletal, etc.) |
| Deterioration | 6 | Intubation, cardiac arrest, vasopressors, severe hypoxemia |
| ICU Admission | 2 | Overall ICU admission, admission within 24 hours |
| Mortality | 7 | In-hospital; within 1, 7, 28, 90, 180, 365 days |
| Attribute | Subgroup | Patients | Rows | Event rate | AUROC [95% CI] | ECE |
| Sex | Female | 3,329 | 132,751 | 0.478 | 0.9177 [0.9037, 0.9270] | 0.1143 |
| Male | 3,027 | 129,407 | 0.523 | 0.8974 [0.8738, 0.9125] | 0.1442 | |
| Age | 40 | 1,028 | 30,289 | 0.265 | 0.9277 [0.8867, 0.9481] | 0.0962 |
| 40–54 | 1,073 | 38,031 | 0.416 | 0.9240 [0.9054, 0.9363] | 0.1153 | |
| 55–69 | 1,938 | 82,045 | 0.522 | 0.8969 [0.8745, 0.9141] | 0.1378 | |
| 70–84 | 1,598 | 76,755 | 0.565 | 0.8868 [0.8602, 0.9064] | 0.1356 |
| Cat. | Analyte | Lo | Hi | Unit | Cat. | Analyte | Lo | Hi | Unit |
| Vitals | Temperature | 36.0 | 38.0 | ∘ C | Vitals | Systolic BP | 90 | 140 | mmHg |
| Heart rate | 60 | 100 | bpm | Diastolic BP | 60 | 90 | mmHg | ||
| Resp. rate | 12 | 20 | br/min | O 2 sat. | 95 | – | % | ||
| Hem. | WBC | 4.5 | 11.0 | /µL | Hem. | Neutrophils | 50 | 70 | % |
| hemoglobin | 12.0 | 17.5 | g/dL | Lymphocytes | 20 | 40 | % | ||
| hematocrit | 36 | 50 | % | Eosinophils | 1.0 | 4.0 | % |
| Setting | Partition | Encounters/visits | Patients |
| Temporal | Training | 67,562 | 43,238 |
| Validation | 3,524 | 2,342 | |
| Test | 1,435 | 1,002 | |
| Memory bank | 71,086 | 45,580 | |
| MC-MED | Training | 31,239 | 22,908 |
| Validation | 4,579 | 3,982 |
| Task group | Retrieval zeroed | Random retrieval |
| Diagnosis | 0.7920 [0.779, 0.807] | 0.7919 [0.778, 0.806] |
| Deterioration | 0.7389 [0.641, 0.831] | 0.7310 [0.628, 0.828] |
| ICU | 0.8681 [0.830, 0.903] | 0.8657 [0.826, 0.901] |
| Mortality | 0.9215 [0.887, 0.949] | 0.9236 [0.889, 0.950] |
| Overall | 0.8301 [0.802, 0.857] | 0.8280 [0.799, 0.856] |
| Model / condition | Diagnosis | Deterioration | ICU | Mortality | Overall AUROC |
| Fusion MLP | 0.6617 | 0.8049 | 0.7858 | 0.8153 | 0.7669 [0.730, 0.801] |
| Fusion MLP + retrieval | 0.6488 | 0.7941 | 0.7798 | 0.7935 | 0.7541 [0.716, 0.788] |
| PRISM | 0.8119 | 0.8501 | 0.8726 | 0.9004 | 0.8587 [0.821, 0.892] |
| PRISM, retrieval zeroed | 0.8064 | 0.8431 | 0.8665 | 0.8957 | 0.8529 [0.815, 0.887] |
| PRISM, random neighbors | 0.8099 | 0.8525 | 0.8717 | 0.8988 | 0.8582 [0.821, 0.891] |
Clinical Outcome Prediction
Clinical outcome prediction uses patient records, imaging, signals, and biomarkers to estimate risks, disease trajectories, treatment response, and survival.
See all 265 papers