A personalized time-resolved 3D mesh generative model for unveiling normal heart dynamics

Mengyun Qiao, Kathryn A. McGurk, Shuo Wang, Paul M. Matthews, Declan P. O’Regan, Wenjia Bai

Abstract

Understanding the structure and motion of the heart is crucial for diagnosing and managing cardiovascular diseases. There is wide variation in cardiac shape and motion patterns, influenced by demographic and anthropometric factors. Unravelling normal patterns of shape and motion, and understanding how each individual deviates from the norm, would facilitate accurate diagnosis and personalized treatment strategies. Here, we developed a conditional generative model, MeshHeart, to learn the distribution of shape and motion patterns for the left and right ventricles. MeshHeart uses a geometric encoder to represent cardiac meshes in a latent space and a temporal transformer to model the motion dynamics. We propose a distance metric, latent delta, which quantifies the deviation of a real heart from its personalized normative pattern. In experiments using a large cardiac magnetic resonance image dataset of 38,309 participants from the UK Biobank, MeshHeart demonstrates high performance in reconstruction and generation. Latent space features are discriminative for cardiac disease classification, and latent delta exhibits strong correlations with clinical phenotypes in phenome-wide association studies.

Introduction: The Need for Personalized Cardiac Norms

Cardiovascular disease remains the leading cause of death globally. While advanced imaging tools like MRI provide detailed views of the heart, clinical assessment often relies on simplistic global metrics such as ejection fraction or chamber volumes. These metrics collapse complex, four-dimensional spatio-temporal dynamics (3D shape evolving over time) into single scalar values, potentially missing subtle but critical pathological patterns.

Furthermore, "normal" cardiac anatomy and function are highly variable across populations. A healthy heart for a young athlete differs significantly from that of an elderly individual. To address this, we propose a personalized normative model. By defining what a healthy heart should look like for a specific individual based on their demographics, we can precisely measure deviations that indicate disease.

Methods: The MeshHeart Architecture

MeshHeart is a conditional generative model built on a Variational Autoencoder (VAE) framework designed to handle high-dimensional spatio-temporal mesh data.

Spatial and Temporal Modeling

Unlike traditional neural networks that operate on pixels, MeshHeart utilizes Graph Convolutional Networks (GCNs) for spatial encoding. Representing the heart as a mesh (vertices and edges) allows GCNs to efficiently capture the complex geometric neighborhoods of the cardiac surface. To model the temporal dimension, we integrated a Temporal Transformer. This architecture is superior to traditional RNNs or LSTMs at capturing long-range dependencies across the full cardiac cycle (typically 50 frames).

Overview of the MeshHeart framework, including the architecture (a), generated sequences (b), and the concept of the latent delta (c).

Conditioning and the Latent Delta

The model is conditioned on demographic metadata, including age, sex, height, and weight. This allows the decoder to generate a synthetic heart mesh sequence representing the "average healthy version" of a person with those specific traits.

A key innovation is the Latent Delta ($\Delta z$). By calculating the Euclidean distance in the latent space between a patient's real heart sequence and the model-generated "healthy" version, we derive a single, powerful biomarker for cardiac deviation. This metric captures subtle structural and functional abnormalities that traditional phenotypes might overlook.

Results and Performance

The study utilized a massive dataset of 38,309 participants from the UK Biobank. The model was trained on 15,000 healthy participants and validated against a separate clinical set of 17,309 participants, including those with hypertension and myocardial infarction.

Superior Reconstruction and Generation

MeshHeart outperformed existing generative models such as Action2Motion and ACTOR. It achieved the lowest Average Symmetric Surface Distance (ASSD) of 1.934 mm and Hausdorff Distance of 4.163 mm. Visual analysis of reconstruction errors confirms that MeshHeart maintains high fidelity across both the left and right ventricles throughout the cardiac cycle.

Visual comparison of reconstruction errors (mm) between MeshHeart and baseline models at different time points.

Diagnostic Power and Phenomic Associations

The latent features extracted by MeshHeart significantly improved disease classification. For instance, in identifying myocardial infarction, adding latent features to standard clinical phenotypes increased the Area Under the Curve (AUC) from 0.836 to 0.876.

Furthermore, Phenome-wide association studies (PheWAS) revealed that the latent delta ($\Delta z$) correlates strongly with a wide range of systemic conditions, including diabetes, obesity, and renal failure. This suggests that $\Delta z$ is a robust indicator of overall cardiovascular health and systemic physiological stress.

Discussion and Future Directions

While MeshHeart represents a significant step toward "digital twin" technology in cardiology, several limitations remain. The current model focuses on the ventricles and does not yet include valves or long-axis views. Additionally, the model is purely data-driven; future iterations could benefit from integrating biophysical constraints like fluid dynamics or electrophysiology. Moving from cross-sectional to longitudinal data will also be crucial for predicting individual aging trajectories and disease progression.

Summary updated

BibTeX
@inproceedings{qiao2025personalized,
  author = {Mengyun Qiao and Kathryn A. McGurk and Shuo Wang and Paul M. Matthews and Declan P. O’Regan and Wenjia Bai},
  title = {{A personalized time-resolved 3D mesh generative model for unveiling normal heart dynamics}},
  booktitle = {Nature Machine Intelligence},
  year = {2025},
  doi = {10.1038/s42256-025-01035-5},
}
Figure