NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Few-Shot Generation of Personalized Neural Surrogates for Cardiac Simulation via Bayesian Meta-learning

Xiajun Jiang, Zhiyuan Li, Ryan Missel, Md Shakil Zaman, Brian Zenger, Wilson W. Good, Rob S. MacLeod, John L. Sapp, Linwei Wang

Abstract

Clinical adoption of personalized virtual heart simulations faces challenges in model personalization and expensive computation. While an ideal solution is an efficient neural surrogate that at the same time is personalized to an individual subject, the state-of-the-art is either concerned with personalizing an expensive simulation model, or learning an efficient yet generic surrogate. This paper presents a completely new concept to achieve personalized neural surrogates in a single coherent framework of meta-learning (metaPNS). Instead of learning a single neural surrogate, we pursue the process of learning a personalized neural surrogate using a small amount of context data from a subject, in a novel formulation of few-shot generative modeling underpinned by: 1) a set-conditioned neural surrogate for cardiac simulation that, conditioned on subject-specific context data, learns to generate query simulations not included in the context set, and 2) a meta-model of amortized variational inference that learns to condition the neural surrogate via simple feed-forward embedding of context data. As test time, metaPNS delivers a personalized neural surrogate by fast feed-forward embedding of a small and flexible number of data available from an individual, achieving – for the first time – personalization and surrogate construction for expensive simulations in one end-to-end learning framework. Synthetic and real-data experiments demonstrated that metaPNS was able to improve personalization and predictive accuracy in comparison to conventionally-optimized cardiac simulation models, at a fraction of computation.

Introduction

Personalized "virtual hearts" represent a significant advancement for clinical treatment planning. However, their practical application is limited by two primary hurdles: the difficulty of personalization and the high cost of simulation. Calibrating a simulation to match a specific patient's unique physiology, such as tissue excitability or scar patterns, typically requires slow and computationally draining iterative optimization. Furthermore, even once calibrated, running a single high-fidelity 3D simulation can take minutes or hours.

Existing approaches often address these issues in isolation, either personalizing slow physics-based models or building fast but generic neural surrogates. This paper introduces metaPNS, an end-to-end framework that solves both problems simultaneously by learning the process of personalization through Bayesian meta-learning.

Methodology

The metaPNS framework frames personalization as a few-shot generative modeling problem. The architecture, illustrated in Figure 1, comprises two main components:

  1. Set-Conditioned Generative Model: This neural surrogate replaces expensive physics equations. It utilizes Graph Convolutional Neural Networks (GCNNs) to process the complex 3D geometry of the heart and a temporal transition model to simulate electrical signal propagation over time.
  2. Amortized Variational Inference (VI) Meta-Model: This component acts as the "personalizer." Instead of slow optimization, it uses a fast feed-forward network to embed a small set of subject-specific "context data" into a latent space, which then conditions the generative model.
The metaPNS architecture featuring a set-conditioned generative model and an amortized variational inference meta-model.

The system is trained using episodic training, where it learns to predict "target" simulations (new stimulation locations) for a subject based on a few "context" simulations from that same subject. The model was evaluated on synthetic data generated via the Aliev-Panfilov model and real-world in-vivo animal recordings.

Results and Discussion

MetaPNS demonstrates a paradigm shift by treating personalization as a fast inference step rather than an optimization problem. This allows the system to immediately understand underlying tissue properties from a few data points.

Key performance metrics include:

  • Computational Efficiency: A traditional physics simulation taking ~5 minutes is replaced by a surrogate taking only 0.24 seconds. Personalization, which previously required ~500 minutes of Bayesian Optimization, is achieved in 0.032 seconds.
  • Predictive Accuracy: MetaPNS significantly outperforms standard neural surrogates and optimization-based methods (FS-BO and VAE-BO) in Mean Square Error (MSE) and Correlation Coefficients (CC), particularly on unseen target sets.
  • Visual Fidelity: Qualitative results (Figure 2) show that metaPNS closely matches ground truth simulations across different cases, capturing complex propagation patterns more accurately than baseline methods.
Qualitative comparison of cardiac simulations across different models against ground truth for two cases.

The model's geometry-awareness, enabled by GCNNs, ensures that simulations respect the 3D structure of the heart mesh. Furthermore, the performance remains robust even with variable context sizes, highlighting its effective few-shot capabilities.

Conclusion

MetaPNS provides a novel, end-to-end framework for generating personalized neural surrogates in milliseconds. While a performance gap remains when transitioning from synthetic to real-world in-vivo data, the framework's ability to unify personalization and simulation is a major step forward. Future work will focus on higher-fidelity multi-physics simulations and incorporating diverse clinical data types like ECGs.

Summary updated

BibTeX
@inproceedings{jiang2022few,
  author = {Xiajun Jiang and Zhiyuan Li and Ryan Missel and Md Shakil Zaman and Brian Zenger and Wilson W. Good and Rob S. MacLeod and John L. Sapp and Linwei Wang},
  title = {{Few-Shot Generation of Personalized Neural Surrogates for Cardiac Simulation via Bayesian Meta-learning}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  url = {https://openreview.net/forum?id=wh0SxQWKUp1},
}
Figure