TL;DR
Deep learning models can predict pregnancy complications from electronic health records (EHRs) with impressive accuracy, but they usually operate as black boxes. ProtoPregNet is a new interpretable framework that explains its predictions by pointing to real "prototypical" patients—essentially saying, "this patient looks like that patient." While it matches the accuracy of non-interpretable baselines, a structured review by obstetrician-gynecologists (OBGYNs) reveals a crucial catch: high predictive performance doesn't automatically guarantee that the model's explanations are clinically useful.
What Problem Does This Paper Address?
Adverse pregnancy outcomes (APOs)—such as pre-eclampsia, gestational hypertension, and gestational diabetes—complicate up to 15% of pregnancies in the US and are a leading cause of maternal mortality. Early detection is critical, and longitudinal EHRs offer a rich history of visits, labs, and medications to help predict risk.
However, most complex EHR models are black boxes. Post-hoc explanation tools (like SHAP or LIME) can be inconsistent and don't always reflect how a model actually makes decisions. Prototype learning offers an inherently interpretable alternative: it compares a new patient to a set of learned, representative examples (prototypes), mirroring how clinicians naturally reason. While prototype learning has succeeded in medical imaging and waveforms (like ECGs), it remains underexplored for irregularly sampled, longitudinal EHRs—and has never been applied to pregnancy outcomes.
Methods
The authors introduce ProtoPregNet, a multi-branched prototype learning framework for multi-label classification of pregnancy outcomes (uncomplicated pregnancy, gestational diabetes, and hypertensive disorders of pregnancy).
Here is how it works:
- Off-the-Shelf Feature Extraction: Instead of training a massive EHR encoder from scratch, ProtoPregNet uses a frozen, pretrained EHR foundation model (
CLMBR-T-Base, 141M parameters) to convert a patient's longitudinal history into 768-dimensional embeddings. - Global and Local Branches:
- The global branch looks at a patient's entire trajectory up to diagnosis.
- The local branch inspects rolling trimester windows. Because
CLMBRis autoregressive (each embedding encodes the entire history up to that point), simply slicing a window would lose context. The authors solve this with a "delta" representation—subtracting embeddings at adjacent time points to isolate local changes while retaining historical context. - Adapter & Prototype Layers: A lightweight 2-layer MLP adapter projects the embeddings down to 64 dimensions, where they are jointly optimized with class-specific prototypes using a composite loss (including clustering, separation, orthogonality, contrastive, and a covariance loss to prevent embedding collapse).
- Prototype Projection: After training, each learned prototype vector is replaced with the most similar real training patient (or trimester window), constrained to single-label patients so the model doesn't just latch onto the sickest multi-label cases.
Datasets
The researchers used structured longitudinal EHRs from the Penn Medicine Health System (spanning 214 care sites, formatted in OMOP CDM v5.4, from 2003 to the present). They identified a cohort of 59,069 primigravid pregnancy episodes (each with at least 3 second/third-trimester visits and lasting at least 1 month), split 8:1:1 into train, validation, and test sets.
Key Insights and Ideas
- Accuracy ≠ Clinical Usability: Even though ProtoPregNet's prototypes are grounded in real patients and achieve strong predictive performance, OBGYNs rated many of them poorly on clinical representativeness and actionability. High metrics don't automatically translate to human-understandable explanations.
- Diagnostic Clarity Dictates Explanation Quality: Gestational diabetes has a standardized diagnostic pathway (e.g., glucose tolerance tests), and ProtoPregNet successfully learned clinically meaningful prototypes for it. In contrast, hypertensive disorders (pre-eclampsia and gestational hypertension) are heterogeneous and noisy in EHR diagnostic codes, leading to prototypes cluttered with general morbidity rather than clear, outcome-specific markers.
- Local Windows Ease Cognitive Load: Clinicians found it easier to evaluate focused trimester windows than sprawling, full-patient EHR timelines. In fact, one local prototype for hypertensive disorders was among the very few rated highly by all four reviewers.
Key Results
- Predictive Performance: ProtoPregNet achieved a macro-AUROC of 0.8830 (AUPRC 0.7851, F1 0.6977), matching its non-interpretable counterpart (AUROC 0.8739) and outperforming logistic regression (0.8602), decision trees (0.7489), and random forests (0.8521).
- Structured Clinician Review: Four OBGYNs independently rated 39 case prototypes on a 1–5 Likert scale. Only 3 prototypes were rated by at least three clinicians as both representative and actionable, and inter-rater agreement was low ($\kappa = 0.22$ for representativeness, $\kappa = 0.17$ for actionability).
- Perturbation Analysis: Removing glucose tolerance test results for gestational diabetes patients dropped the nearest prototype's contribution to the prediction by a median of 1.5 logits (over half of its original 2.45-logit contribution). No comparable single feature emerged for hypertensive disorders.
Limitations and Future Work
The study is limited to a single health system, so external, multi-site validation is needed. The clinician review also measured perceived prototype quality rather than whether prototypes actually improve clinical decision-making in practice. Additionally, restricting prototypes to single-label patients overlooks real-world comorbidities, and billing delays in EHRs may allow some diagnostic tests to leak into the pre-diagnosis window. Future work could incorporate chart-reviewed labels to reduce noise in hypertensive disorders, explore multi-label prototypes, and test whether these findings hold across other EHR foundation models.
Summary updated