Adding chest X-rays to models built on electronic health records (EHR, the structured stream of labs, vitals, codes and notes collected during a hospital stay) often makes predictions slightly worse. That is strange, because clinicians clearly use these images. This proposal tests one specific explanation. A radiograph currently enters these models as a single whole-image summary. That summary mostly describes anatomy that has not changed, records the background along with the lungs, and sits in the sequence as one isolated, stale event. Clinicians read a radiograph differently. They compare each organ against the patient's previous film and ask what changed, where, and over how long. We propose to convert every radiograph into a few "change tokens," one for each anatomical compartment (left lung, right lung, cardiac silhouette). Each token describes how that region differs from the same region in the patient's most recent prior image, tagged with the elapsed time between the two films. These tokens are inserted into the EHR sequence as sparse, timestamped clinical events.
In two sentences: the image is not useless, but it is presented to the model in the wrong form. If we turn each X-ray into "how did each organ change since last time, and how long ago," the image should stop competing with the dense EHR stream and start complementing it, specifically for diseases whose evidence is spread across both imaging and physiology. The study is built so that it can also return a negative answer. It includes controls that would show the X-ray contributes nothing beyond the radiologist's report, or that a gradient-balancing trick alone is enough.
Core Claim
Two findings motivate the work. In Autoregressive EHR Foundation Models with Multimodal Inputs, radiographs were fed through a frozen whole-image encoder into a GPT-style patient-history model. Adding them lowered ICU mortality AUROC from 0.8651 (EHR only) to 0.8624, while clinical notes raised it to 0.8751. The benchmark When Does Multimodal Learning Help in Healthcare? A Benchmark on EHR and Chest X-Ray Fusion (CareBench) compared 14 fusion methods. It found that gains are small at best (phenotyping AUPRC rose from 0.472 to 0.495), appear only for conditions such as heart failure and COPD that need both structural and physiological evidence, and often vanish when about 75% of stays have no image. Both papers process the X-ray as one global, single-timepoint vector.
Our claim is that most of this "CXR penalty" comes from representation, and that three properties jointly fix it. The first is anatomical restriction: features are pooled only inside segmented organ masks. The second is temporal differencing: each compartment is compared against the same patient's prior image. The third is explicit timing: the elapsed interval and whether a prior exists are encoded, so the model knows how stale the comparison is. The prediction is falsifiable. On the same backbone, change tokens should turn the penalty into a gain on mortality and on modality-distributed phenotypes. Sepsis, where CareBench found imaging adds nothing, should show no gain, and it serves as a negative control. If restricting to anatomy or differencing alone accounts for the gain, the ablations will show it.
Relation to Prior Work
Several papers supply parts of the method but do not combine them. The masking technique comes from Computed tomography–based COVID–19 triage through a deep neural network using mask–weighted global average pooling, which pools CT features only over lung parenchyma, and from Lesion-Centric Latent Phenotypes from Segmentation Encoders for Breast Ultrasound Interpretability, which applies mask-weighted pooling to lesion embeddings. Both work on single static images and use no clinical time series. The masks come from CheXmask, which provides lung and heart masks for MIMIC-CXR-JPG together with a per-mask quality score (Reverse Classification Accuracy, RCA). CheXmask also constrains the design in two ways. Anteroposterior views, the bedside films that dominate ICU imaging, fail more often. And an "anatomy" segmentation strategy is needed so that dense consolidations are not masked out. We therefore use the anatomy masks, and we fall back to global features whenever the quality score is below the recommended 0.7 threshold.
The idea of modeling change comes from temporal vision-language work. DeltaNet encodes the difference between a baseline image and the current one. BioViL-T splits representations into static and temporal parts without image registration and introduced the MS-CXR-T benchmark. CoCa-CXR restricts cross-attention between prior and current images to rectangular spatial neighborhoods and reaches 65.0% progression accuracy on MS-CXR-T versus 60.2% for BioViL-T. This is the strongest evidence in the file that localizing comparisons helps. All three methods work only on image pairs plus report text, use boxes or no anatomy at all, and never meet an EHR stream. We reuse the change idea but bound it by organ masks, and we test it where it matters for prediction: inside a longitudinal clinical model.
The two closest competitors take different routes to asynchronous fusion. DDL-CXR uses a diffusion model, a generator that learns by gradually denoising random noise into samples. Conditioned on the prior X-ray and the EHR recorded since, it generates an up-to-date global image latent, reaching mortality AUROC 0.822 versus 0.815 for EHR alone. It addresses staleness by generating the missing present, with no anatomical structure. We address it by describing the observed past change and its age, which is cheaper and avoids hallucinated images. TDSig is the only work in the file that touches all four directions. It combines nodule CT patches with ICA-derived EHR signatures in a time-distance transformer and reaches AUC 0.824 on 227 patients. Its regions are hand-identified nodule crops rather than organ compartments, it does not difference images, and it does not test missing imaging. We take its continuous time-decay attention as the mechanism for encoding elapsed time. For EHR tokenization we use the multiplicative value embedding from MedFuse, which reports AUPRC 0.5612 versus 0.5317 for additive embeddings on PhysioNet 2012. This keeps the EHR side strong, so any gain cannot be blamed on a weak tabular encoder.
Research Program
The change encoder is built first and checked on its own. Each frontal MIMIC-CXR image passes through a pretrained chest X-ray encoder. Its spatial feature map is pooled separately within each CheXmask compartment mask. This gives a compartment vector $z_{c,t}$ for compartment $c$ at image time $t$. For each image we find the patient's most recent earlier frontal film at time $t'$, which may come from a previous admission. The change token for compartment $c$ concatenates the current vector, the difference $z_{c,t} - z_{c,t'}$, a learned embedding of $\log(t - t')$, and that compartment's mask-quality score. When no prior image exists, a learned "first film" flag replaces the difference. A view-position flag (anteroposterior versus posteroanterior) is always included.
Using a small head on these difference vectors, the encoder is fine-tuned on MS-CXR-T progression labels, restricted to lung-region findings. This tests whether mask-bounded differences carry real progression signal before any EHR is involved.
The tokens then enter two EHR backbones, each with its original fusion mechanism kept intact. The first is a CareBench-style EHR transformer with late-fusion and cross-attention variants. The second is an autoregressive patient-history model with compressed latent queries and zero-initialized gated cross-attention, as in Autoregressive EHR Foundation Models with Multimodal Inputs. Placing change tokens in both backbones separates the effect of how the image is represented from the effect of the fusion architecture. Causal masking is strict: a token at time $t$ sees only images acquired before $t$. The analysis program then decomposes the effect. It measures which compartments the model uses for which phenotype, whether the gain grows with the number of prior images a patient has, and whether gains survive the 75%-missing Base Cohort.
Baselines
The naive reference is an EHR-only transformer with multiplicative value embeddings, trained on the same CareBench splits. On the autoregressive backbone, the reported EHR-only mortality AUROC is 0.8651 (Autoregressive EHR Foundation Models with Multimodal Inputs). Change tokens count as beating it if mortality AUROC exceeds that of the same rerun EHR-only model with a bootstrap confidence interval excluding zero, across five seeds. The published gaps are about 0.003 AUROC, so a single run cannot settle anything.
The standard image baseline is a global whole-image embedding of the most recent X-ray, carried forward to the decision time and fused through the same mechanism. This reproduces the setting in which the penalty was observed.
The strongest existing fusion competitors are the best CareBench method on the Matched and Base cohorts, including the InfoReg gradient-balancing regularizer, and DDL-CXR. CareBench reports its best phenotyping case as AUPRC rising from 0.472 to 0.495. DDL-CXR reports mortality AUROC 0.822 versus 0.815 in its own cohort of stays longer than 48 hours. Because these cohorts differ, we rerun DDL-CXR on its cohort definition, giving it the same image encoder initialization, a tuning budget of equal GPU-hours, and its published hyperparameters as the starting point. Beating it means matching or exceeding its AUROC at a fraction of its compute, or exceeding it on the heart-failure, COPD and edema phenotypes.
Three ablations isolate the key ingredient, each using identical tokens with one property removed. The first keeps anatomy but drops the difference (mask-pooled static features only). The second keeps the difference but drops anatomy (global whole-image delta, BioViL-T-style). The third replaces real masks with masks shifted to a random location of matched area. If the shifted-mask control performs as well as the real masks, anatomy is not doing the work.
Why not just…?
Why not just use the radiology report text instead of the image? This is the most serious threat. Notes improved the autoregressive model (0.8751), and a report already contains the radiologist's localized comparison with the prior film. We include report-sentence tokens, timestamped at report signing, as a baseline. We also test report plus change tokens. If report tokens match change tokens and the combination adds nothing, the honest conclusion is that the pixels contribute nothing beyond the report. The project then becomes a diagnostic result rather than a method, and we would report it as such. Our expectation that images still add something rests on two points: reports lag behind image acquisition, and reports describe only findings the radiologist chose to mention. We test the lag directly by restricting report access to its true signing time.
Why not just add InfoReg or another gradient-balancing method to the global embedding? CareBench shows that balancing helps with the asymmetry between a continuous EHR record and an episodic image. But balancing changes how much the model listens to the image, not what the image says. We run InfoReg with global embeddings and with change tokens. If InfoReg with global embeddings closes the gap, representation is not the bottleneck.
Why not just take a global image difference, as BioViL-T does, and skip segmentation? This is the second ablation. CoCa-CXR's advantage over BioViL-T on MS-CXR-T (65.0% versus 60.2%) suggests that localizing the comparison matters, but those localized regions were boxes and the evaluation was on progression labels, not on outcome prediction. If the global delta matches the compartment delta on outcomes, the segmentation step is unnecessary and we drop it.
Why not just ignore images, as an EHR-only model does? For sepsis, CareBench suggests ignoring images is correct, and we treat sepsis as the case where we expect no gain. For heart failure and COPD, the EHR-only ceiling is exactly what we aim to raise. A gain on those phenotypes only, and not on sepsis, is the pattern that would justify keeping images at all.
Proposed Experiments
The first check validates the encoder on MS-CXR-T. A mask-bounded difference head should approach CoCa-CXR's reported 65.0% average progression accuracy on lung findings. We do not need to exceed it. We need to show that compartment differences carry progression signal, and to report where segmentation failure on bedside views costs accuracy, stratified by view position and quality score.
The main experiment uses the CareBench Matched Cohort (7,149 stays) and Base Cohort (26,947 stays), with in-hospital mortality and the 25-label phenotyping task. We report AUROC, AUPRC and calibration error for each method. The decisive comparison is the same backbone run four ways: EHR-only, global snapshot, global delta, and anatomical change tokens. The autoregressive-backbone version asks one question: does the 0.8651 → 0.8624 drop reverse? We also report per-phenotype gains, predicting gains for heart failure, COPD and pulmonary edema and none for sepsis. We test whether the gain grows with the number of available prior films and shrinks as the comparison interval lengthens, which follows directly if change information is what helps. Finally, we report the race-stratified true-positive-rate gap, because CareBench found that fusion widened it. A representation that improves accuracy while widening that gap would not count as a success.
The study fails cleanly under three outcomes: change tokens beat global snapshots but not report tokens, shifted masks perform as well as real ones, or gains appear for sepsis as much as for heart failure. Each of these would point to a different explanation for the X-ray penalty. Each is worth knowing before anyone builds larger imaging-plus-EHR foundation models.
References
- Autoregressive EHR Foundation Models with Multimodal Inputs
- When Does Multimodal Learning Help in Healthcare? A Benchmark on EHR and Chest X-Ray Fusion
- Computed tomography–based COVID–19 triage through a deep neural network using mask–weighted global average pooling
- Lesion-Centric Latent Phenotypes from Segmentation Encoders for Breast Ultrasound Interpretability
- CheXmask: a large-scale dataset of anatomical segmentation masks for multi-center chest x-ray images
- DeltaNet: Conditional Medical Report Generation for COVID-19 Diagnosis
- Learning to Exploit Temporal Structure for Biomedical Vision-Language Processing
- CoCa-CXR: Contrastive Captioners Learn Strong Temporal Structures for Chest X-Ray Vision-Language Understanding
- Addressing Asynchronicity in Clinical Multimodal Fusion via Individualized Chest X-ray Generation
- Longitudinal Multimodal Transformer Integrating Imaging and Latent Clinical Signatures from Routine EHRs for Pulmonary Nodule Classification
- MedFuse: Multiplicative Embedding Fusion for Irregular Clinical Time Series