THCM-CAL: Temporal-Hierarchical Causal Modelling with Conformal Calibration for Clinical Risk Prediction

Xin Zhang, Qiyu Wei, Yingjie Zhu, Fanyi Wu, Sophia Ananiadou

TL;DR

THCM-CAL is a novel clinical risk prediction framework that unifies unstructured clinical notes and structured diagnostic codes into a temporal-hierarchical causal graph. By combining dynamic causal discovery with multi-label conformal prediction, it significantly improves the accuracy of future diagnosis predictions while providing mathematically guaranteed uncertainty bounds.

What Problem Does This Paper Address?

Predicting a patient's future health risks from Electronic Health Records (EHRs) requires analyzing two very different types of data: structured International Classification of Diseases (ICD) codes and unstructured clinical narratives (like doctor's notes).

Existing machine learning approaches typically treat these modalities in isolation or use naive fusion strategies that view them as static co-occurrences. This ignores the directional, causal relationships inherent in medicine—such as a specific symptom mentioned in a note triggering an ICD code assignment, or a diagnosis from a previous hospital visit propagating risk to a subsequent admission. Furthermore, deep learning models deployed in clinical settings often suffer from overconfidence, making reliable uncertainty quantification a necessity before these tools can be safely trusted by healthcare professionals.

Figure 1: An illustrative two-slice causal graph over textual propositions and ICD nodes. Three directed edge types are learned: intra-slice sequencing (P2 →P3), intra-slice cross-modality triggers (P1 →C1), and inter- slice propagation (C1 →C4).

Methods

The proposed framework, THCM-CAL (Temporal-Hierarchical Causal Model with Conformal Calibration), tackles these challenges through a four-stage pipeline:

  1. Information Extraction: The model segments free-text clinical notes and uses a large language model (GPT-3.5) to extract clean, atomic clinical propositions. Simultaneously, historical ICD codes are mapped to their canonical textual descriptions.
  2. Node Representation: Textual propositions and ICD descriptions are encoded using a biomedical BERT model and projected into a shared embedding space to serve as graph nodes.
  3. Temporal-Hierarchical Causal Graph: The core of the model dynamically learns a multi-slice causal graph using Gumbel-Softmax sampling, enforced by a continuous acyclicity penalty (NOTEARS). It captures three distinct edge types: intra-visit sequencing (text-to-text), cross-modality triggers (text-to-code), and inter-visit risk propagation (code-to-code across time). Graph Convolutional Networks (GCNs) then fuse these relationships into a patient trajectory embedding.
  4. Conformal Calibration: Finally, the authors extend split conformal prediction to the multi-label setting. Instead of just outputting a point prediction, the model generates a calibrated set of plausible ICD codes that guarantees a user-specified coverage probability (e.g., a 90% confidence interval).
Figure 2: Overview of THCM-CAL. A four-stage pipeline for clinical risk prediction, which consists of: (1) Extracting diagnostic propositions and normalize ICD descriptions, (2) Embeding nodes with BERT, (3) Building and fuse a temporal–hierarchical causal graph via Gumbel–Softmax and message passing, and (4) Appling split conformal prediction for calibrated multi-label ICD coding.

Datasets

The model was evaluated on two standard, large-scale EHR benchmarks:

  • MIMIC-III: Filtered to 7,192 patients and 11,1980 admissions.
  • MIMIC-IV: Merged with the MIMIC-IV-Ext-BHC dataset (a meticulously cleaned and standardized corpus of clinical notes), resulting in 17,526 patients and 38,346 admissions.

To prevent label leakage, the authors explicitly filtered out discharge summaries and restricted the task to patients with at least two hospitalizations, using historical visits to predict the next admission's codes.

Key Insights and Ideas

  • Causality over Co-occurrence: Modeling the interactions between text and codes as a directed acyclic graph (DAG) prevents the model from picking up on spurious correlations, closely mimicking real-world clinical reasoning.
  • Multi-label Conformal Prediction: While conformal prediction is widely used for single-label tasks, extending it to multi-label ICD coding allows the framework to handle complex code co-occurrences while providing distribution-free mathematical guarantees on uncertainty.
  • Granular Text Processing: Extracting atomic propositions via an LLM before graph construction bridges the semantic gap between dense, messy clinical narratives and clean, structured diagnostic codes.

Key Results

THCM-CAL was compared against a wide array of baselines, including text-centric models (CAML, DistilBioBERT, BioMedLM), code-focused models, and advanced graph-based frameworks (Chet, DKEC).

  • MIMIC-III Performance: THCM-CAL achieved 30.02% Precision@10 and 24.04% Recall@10, outperforming the strongest baseline (Chet) by 5.50 and 5.22 percentage points, respectively.
  • MIMIC-IV Performance: It attained 28.83% Precision@10 and 37.03% Recall@10, beating the best baseline (DistilBioBERT) by 6.24 and 7.20 percentage points.
  • Comorbidity Retrieval: The model demonstrated a massive boost in Recall@20 (33.16% on MIMIC-III and 46.04% on MIMIC-IV), proving that explicit causal modeling helps surface less frequent but clinically vital comorbidities.
  • Calibration Efficiency: Conformal calibration successfully produced tighter, more compact prediction intervals while maintaining the nominal target coverage rate.

Limitations and Future Work

  • LLM Computational Overhead: Relying on commercial LLMs like GPT-3.5 for atomic proposition extraction introduces significant computational overhead and risks propagating errors if the LLM misidentifies or omits clinical facts.
  • Scaling to Richer Coding Systems: The framework was validated on datasets mapped to the older ICD-9 system. Adapting THCM-CAL to the much larger and more complex ICD-10 system, or to non-English clinical corpora, remains an open challenge for future work.

Summary updated

Abstract

Automated clinical risk prediction from electronic health records (EHRs) demands modeling both structured diagnostic codes and unstructured narrative notes. However, most prior approaches either handle these modalities separately or rely on simplistic fusion strategies that ignore the directional, hierarchical causal interactions by which narrative observations precipitate diagnoses and propagate risk across admissions. In this paper, we propose THCM-CAL, a Temporal-Hierarchical Causal Model with Conformal Calibration. Our framework constructs a multimodal causal graph where nodes represent clinical entities from two modalities: Textual propositions extracted from notes and ICD codes mapped to textual descriptions. Through hierarchical causal discovery, THCM-CAL infers three clinically grounded interactions: intra-slice same-modality sequencing, intra-slice cross-modality triggers, and inter-slice risk propagation. To enhance prediction reliability, we extend conformal prediction to multi-label ICD coding, calibrating per-code confidence intervals under complex co-occurrences. Experimental results on MIMIC-III and MIMIC-IV demonstrate the superiority of THCM-CAL.
BibTeX
@misc{zhang2025thcm,
  author = {Xin Zhang and Qiyu Wei and Yingjie Zhu and Fanyi Wu and Sophia Ananiadou},
  title = {{THCM-CAL: Temporal-Hierarchical Causal Modelling with Conformal Calibration for Clinical Risk Prediction}},
  year = {2025},
  eprint = {2506.17844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.17844},
}
Figure