CTSL: Codebook-based Temporal-Spatial Learning for Accurate Non-Contrast Cardiac Risk Prediction Using Cine MRIs

Haoyang Su, Shaohao Rui, Jinyi Xiang, Lianming Wu, Xiaosong WangarXiv 2025 · DOI

TL;DR

CTSL (Codebook-based Temporal-Spatial Learning) is a new self-supervised framework that predicts major adverse cardiac events (MACE) directly from raw, contrast-free Cine MRI videos without requiring manual segmentation masks. By using multi-view teacher-student distillation and discrete spatiotemporal codebooks, it effectively decouples complex heart motion from anatomy to significantly outperform traditional contrast-dependent and radiomics-based survival models.

What Problem Does This Paper Address?

Predicting long-term cardiac risk (such as a Major Adverse Cardiac Event, or MACE) using Cine MRI is highly valuable for patient care, but it is notoriously difficult because myocardial tissue dynamics are complex and heavily entangled across space and time.

Traditional deep learning methods rely on contrast agents and tedious, human-refined segmentation masks of the ventricular myocardium to isolate the heart's structure. Without contrast agents, creating these manual masks becomes impractical in a fast-paced clinical setting. Furthermore, existing survival models struggle to effectively integrate multi-dimensional, multi-view data (like short-axis and longitudinal views) over time. CTSL aims to solve this by learning robust spatiotemporal representations directly from raw, non-contrast Cine MRI data without any manual annotations.

Methods

The CTSL framework operates through a two-stage self-supervised learning paradigm, followed by a final survival prediction stage:

  1. Adaptive Myocardial Motion Localization (Preprocessing): Instead of manual masking, the authors apply the Farneback dense optical flow algorithm to automatically estimate motion between adjacent Cine frames, isolating a motion-focused Region-of-Interest (ROI).
  2. Stage I: Motion-aware Multi-view Distillation: Utilizing a teacher-student setup based on DINOv2 and a Uniformer backbone, a teacher network processes multiple long-axis (LAX) views (2-chamber, 3-chamber, and 4-chamber orientations), while a student network processes short-axis (SA) views. They are aligned using a hybrid loss combining Kullback-Leibler (KL) divergence and a motion contrastive loss ($\mathcal{L}_{MCL}$) to synchronize motion trajectories across different anatomical views.
  3. Stage II: Spatiotemporal Disentangling: Inspired by VQ-VAE latent space discretization, the model extracts query tokens from the student network and passes them through separate, trainable temporal ($\mathcal{C}_\tau$) and spatial ($\mathcal{C}_\sigma$) codebooks. This dual-codebook design resolves ambiguities caused by temporal blurring (e.g., distinguishing trabeculations from papillary muscles) before fusing them via cross-attention.
  4. Stage III: Survival Prediction: The final represented image queries are fused with tabular Electronic Health Record (EHR) clinical biomarkers (such as age, ejection fraction, and smoking status) and fed into a classical Cox proportional hazards head to rank and output MACE risk scores.
Fig. 1. Overall framework and detailed structure of CTSL. (a) Self-supervised cardiac risk prediction framework. (b) Model architecture with Uniformer [18] backbone.

Datasets

The authors evaluated their method on three private, in-house cardiac CINE MRI datasets:

  • RJCCM: 407 patients, 135 cardiovascular risk factors, 30-phase cardiac cycles.
  • AZCCM: 673 patients, 173 cardiovascular risk factors, 25-phase cardiac cycles.
  • TJCCM: 313 patients, 74 cardiovascular risk factors, 25-phase cardiac cycles.

Each dataset contains four standardized views (short-axis, 2-chamber, 3-chamber, and 4-chamber orientations) along with matched tabular EHR data.

Key Insights and Ideas

  • Multi-View Synergy via Distillation: Instead of forcing the model to process every view during final inference, leveraging long-axis views via a teacher network during pre-training allows the student network to inherently encode global anatomical context from simple short-axis inputs.
  • Disentanglement via Dual Codebooks: Separating space and time into distinct discrete codebooks prevents the model from getting confused by temporal blurring, which often obscures fine spatial boundaries in the heart's chambers.
  • Mask-Free Motion Localization: Optical flow can successfully substitute for expensive manual segmentation masks by naturally highlighting where the heart is moving, making non-contrast clinical pipelines highly feasible.

Key Results

CTSL achieved state-of-the-art performance across all three datasets, evaluated using the Concordance Index (C-index), where a higher score indicates more accurate risk stratification:

  • RJCCM: 0.788 (outperforming the next best SOTA, SurvRNC, at 0.731)
  • AZCCM: 0.826 (outperforming SurvRNC at 0.739)
  • TJCCM: 0.863 (outperforming Deep Survival Machines at 0.746)
Table 1. Performance comparison across three datasets (Metric: C-index↑(p-value↓)). The radiomics features extracted using PyRadiomics v3.1.0 [9] serve as substitutes of images for non-imaging models like DeepSurv and DSM.

Kaplan-Meier survival curves showed clear, non-intersecting separation between high- and low-risk patient groups with highly significant p-values, validating the clinical utility of the risk scores.

Fig. 2. Kaplan-Meier [14] analysis comparing risk stratification performance. Curves contrast our model against the clinical gold-standard CoxPH and SOTA SurvRNC baseline. Patients were stratified into high/low-risk groups by median predicted risk scores.

SHAP (SHapley Additive exPlanations) analysis confirmed that the model successfully extracted clinically relevant motion biomarkers (like wall motion scoring and end-systolic volume) alongside traditional EHR risk factors like HDL levels and diabetes status.

Fig. 3. SHAP-based interpretability analysis (a: RJCCM, b: AZCCM, c: TJCCM). Top-8 features are displayed for each dataset. The top-5 most prognostically influential imaging biomarkers with positive (Aggregated_CTSL_Img_p) and negative (Aggre- gated_CTSL_Img_n) contributions are aggregated, respectively.

Limitations and Future Work

  • Private Dataset Validation: The framework was trained and evaluated entirely on three private, in-house datasets. Testing on large-scale, diverse public benchmarks is an essential next step to fully prove its real-world generalizability across different scanner manufacturers and hospital protocols.
  • Clinical Translation: While the paper notes that the model lays the groundwork for personalized therapeutic planning, it does not deeply explore how these risk scores translate directly into specific clinical treatment pathways or intervention decisions.

Summary updated

BibTeX
@misc{su2025ctsl,
  author = {Haoyang Su and Shaohao Rui and Jinyi Xiang and Lianming Wu and Xiaosong Wang},
  title = {{CTSL: Codebook-based Temporal-Spatial Learning for Accurate Non-Contrast Cardiac Risk Prediction Using Cine MRIs}},
  year = {2025},
  eprint = {2507.16612},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.16612},
}
Figure