← Back to Home

MedGNN

Five graph models predicting the emergency diagnosis of a patient visit under one identical evaluation contract. CEI-GNN, the model I designed, explains itself as a sum of evidence and scores best.

Mar 2026 – now · MSc thesis

Overview

Graph neural networks are used for clinical prediction but are almost always explained after the fact, so an attribution map need not describe how the model decided. This thesis predicts the 10 most frequent emergency department diagnoses from multi-visit patient graphs built from MIMIC-IV-ED, runs five graph models under one identical protocol, and adds CEI-GNN, a model whose prediction is a sum of readable evidence contributions.

Example 03 · Long historyDiagnosis label 09

  • Index visit
  • Patient
  • Chief complaint
  • Vital sign
  • Lab result
  • Earlier lab result
  • Prior diagnosis
  • Structural link
  • Clinical relation

Synthetic graphs, not patient records. Read them left to right in time: an earlier lab value links to the same lab now with its change, earlier diagnoses link to the visit, and findings recorded together are joined. Every visit carries 6 triage vitals; real graphs hold more labs (median 9) than drawn here, and each lab also links to a shared lab type node.

What I built

Five models, one contract

Model · where the explanation comes fromHow it reasons
CEI-GNN v3Built inAdditive evidence. Adds up contributions from findings, finding pairs and unmeasured tests; every term can be read directly.
ProtGNNBuilt inCase-based. Compares each graph to learned class archetypes and classifies by similarity.
GSATBuilt inStochastic attention. Learns to sample an informative subgraph and predicts from it.
GraphCareBuilt inVisit attention. Weights visits and the concepts inside them, then predicts from the weighted sum.
GCHM-PNAPost-hoc onlyRelation-aware multi-aggregator message passing with gated concept hubs, added as a stronger graph encoder.

CEI-GNN, ProtGNN, GSAT and GraphCare explain themselves; GCHM-PNA needs an explainer applied afterwards.

Results

Benchmark results

MethodMacro-F1AccuracyBalanced acc.Top-3
CEI-GNN v3Best in column: 0.639±0.006Best in column: 0.630±0.005Best in column: 0.642±0.011Best in column: 0.853±0.004
ProtGNN0.628±0.0030.612±0.0040.627±0.0050.844±0.001
GCHM-PNA0.618±0.0010.606±0.0040.621±0.0050.839±0.004
GraphCare0.606±0.0080.595±0.0060.608±0.0050.824±0.006
GSAT0.595±0.0020.584±0.0040.599±0.0050.822±0.004

Validation fold (4,254 visits, 10 diagnoses), mean ± standard deviation over three seeds; checkpoints chosen on the development split; best per column underlined.

Explanation faithfulness

ExplainerFidelity-plus liftFidelity-minus lift
CEI-GNNProtGNNCEI-GNNProtGNN
Grad0.4010.2010.3400.007
IntegratedGrad0.4310.2260.3840.008
GNNExpl.0.1090.0720.0860.002
Native0.446n/a0.379n/a

Gain over each model's own random mask on 500 visits (498 patients), three seeds, 15,000 records; higher is better. Fidelity-plus: how much more the prediction drops than with a random mask when the important inputs are removed. Fidelity-minus: how much less it drops when only the important inputs are kept.

Limits

Links