PhysCARD: Physics-Grounded Reaction-Diffusion Learning for Long-Horizon Electrophysiology Simulation in Cardiac Digital Twins

Anh Vu Tran, Ziheng Deng, Yilin Lyu, Mengxiao Wang, Vivek Muthurangu, Mark Yy Chan, Ching-Hui Sia, Lei LiarXiv 2026

TL;DR

Simulating a human heartbeat down to the cellular level is essential for personalized medicine, yet traditional physics solvers take far too long, and standard deep learning shortcuts tend to drift into unphysical nonsense over time. PhysCARD solves this by wiring the fundamental laws of cardiac electricity directly into a graph neural network’s architecture—separating local cell firing from spatial wave propagation. The result is a "cardiac digital twin" simulator that predicts full heartbeat dynamics up to 168× faster than conventional solvers without hallucinating fake arrhythmias.

What Problem Does This Paper Address?

Imagine having a virtual replica of a heart attack patient's heart—a Cardiac Digital Twin—where doctors can test arrhythmia treatments before touching the patient. Every heartbeat is a choreographed wave of electrical depolarization (activation) and recovery (repolarization), governed by nonlinear reaction-diffusion partial differential equations (PDEs) playing out across complex 3D muscle fibers and dead, insulating scar tissue.

Classical numerical solvers calculate this accurately, but running thousands of simulations to calibrate a single patient's model is prohibitively slow. Neural network surrogates can speed this up, yet most only predict static activation maps or work on toy 2D/idealized shapes. When asked to simulate a full 600-millisecond heartbeat autoregressively (feeding their own predictions back in step-by-step), tiny errors snowball. Even Physics-Informed Neural Networks (PINNs), which add PDE penalties to the training loss, treat physics as a polite suggestion rather than an unbreakable rule—leaving long simulations prone to drift and phantom re-excitations.

Methods

Instead of treating a heartbeat step as a monolithic black box, PhysCARD mimics numerical operator splitting, breaking each 1-ms frame into alternating substeps of two specialized, learned modules:

Figure 1: Overview of PhysCARD. (a) The neural simulator F pre- dicts the cardiac state autoregressively, one frame at a time, from the post-stimulus state, conditioned on the anatomy A (geometry, fibres, conductivities and scar) and the ionic parameters θ of the cell model; the trace shows transmembrane potential Vm at one node as an example. (b) One step of F: the diffusion module Dψ, informed by A, and the reaction module Rϕ, informed by θ, alternate over n substeps.
  • Rest-Anchored Reaction Flow ($R_\phi$): A multi-layer perceptron that models local cellular excitation and recovery at each node. Crucially, the network evaluates both the current state and the resting state, subtracting the resting output by construction. This mathematically guarantees that resting tissue stays at exact equilibrium—zero drift allowed.
  • Physics-Encoded Conductance Diffusion ($\mathcal{D}_\psi$): Rather than letting a standard MeshGraphNet directly guess voltage changes, PhysCARD uses multi-head graph attention to predict edge-wise electrical conductances, which then drive a fixed diffusion equation. Hard architectural constraints enforce symmetric pairwise fluxes (charge conservation), non-negativity, row-caps (preventing voltage overshoots), and strict scar masking (zero current across scar tissue).
  • Three-Stage Learning: To keep the two modules from learning to cancel out each other's mistakes, they are trained progressively: Stage A pretrains $R_\phi$ on isolated single-cell dynamics; Stage B freezes $R_\phi$ and trains $\mathcal{D}_\psi$ on 3D meshes guided by a finite-element "physics teacher" on rolled-out states; and Stage C jointly fine-tunes both with a distillation loss so cellular kinetics don't warp.

Datasets

The authors built a clinical dataset from 37 post-myocardial infarction patients scanned at the National University Hospital, Singapore, using paired cine and late gadolinium enhancement (LGE) MRI. They reconstructed patient-specific 3D biventricular meshes complete with rule-based muscle fiber orientations and mapped 3D scar tissue. Ground-truth electrophysiology trajectories (510–650 ms) were generated via the openCARP solver using the monodomain Aliev-Panfilov model across three mesh resolutions: 1000 µm (~134k nodes) and 800 µm (~319k nodes) for training/testing, plus an unseen, ultra-fine 500 µm resolution (~1.4 million nodes) reserved strictly to test zero-shot generalization.

Key Insights and Ideas

  • Hard-coded physics beats soft loss penalties: Adding a PDE loss to a standard GNN (PI-GNN) helps keep the initial activation wave on track, but during the slow repolarization phase, errors explode. Hard-wiring physical invariants (like exact resting equilibrium) into the architecture keeps errors flat through the entire cycle.
  • Good trajectory metrics can hide bad physics: When the authors ablated the physical constraints on their diffusion module, overall rollout RMSE barely budged (4.97 mV vs. 5.60 mV). Yet inspecting the isolated module revealed it was cheating—injecting ~45% net artificial charge in a monopolar blob ahead of the wave rather than redistributing charge across the wavefront like true diffusion.
  • Order of operations matters: Reversing the substep order from Reaction $\rightarrow$ Diffusion to Diffusion $\rightarrow$ Reaction more than doubled the rollout error (4.97 to 10.4 mV), because small diffusion inaccuracies near the firing threshold get violently amplified by nonlinear cell kinetics.

Key Results

On unseen patient hearts, PhysCARD dramatically outperformed five baselines (GINO, AGATA, PhyMPGN, MeshGraphNet, and PI-GNN) over full-heartbeat rollouts:

  • Accuracy & Stability: PhysCARD achieved a rollout voltage RMSE of 4.52 mV (a ~72% error reduction over PI-GNN's 16.1 mV and MeshGraphNet's 23.3 mV), with local activation and repolarization timing errors of just 1.23 ms and 3.71 ms.
  • Zero Fake Arrhythmias: While MeshGraphNet and PI-GNN spuriously re-excited 35.7% and 39.7% of heart nodes after recovery, PhysCARD produced 0.00% spurious re-excitation.
  • Zero-Shot Super-Resolution & Speed: Without retraining, PhysCARD scaled to the 1.4-million-node (500 µm) meshes with a 7.20 mV RMSE. It ran 106× to 168× faster than openCARP—shrinking a 50-minute high-resolution simulation down to 28 seconds (and a 12-minute 1000 µm run to 4 seconds).

Limitations and Future Work

PhysCARD currently relies on the simplified two-variable Aliev-Panfilov cell model and treats dense scar as purely insulating without modeling semi-conducting "border zones," leaving complex reentrant arrhythmias and detailed ion-channel dynamics untested. Additionally, finer mesh resolutions introduced a slight, uniform shortening of action potential duration (~7 ms at 500 µm), and sequential autoregressive stepping means compute cost still scales linearly with simulation duration. Future work aims to incorporate detailed physiological cell models (like ten Tusscher and O'Hara-Rudy), explore resolution-aware calibration and larger time steps, and validate predictions against invasive clinical heart-mapping data.

Summary updated

BibTeX
@misc{tran2026physcard,
  author = {Anh Vu Tran and Ziheng Deng and Yilin Lyu and Mengxiao Wang and Vivek Muthurangu and Mark YY Chan and Ching-Hui Sia and Lei Li},
  title = {{PhysCARD: Physics-Grounded Reaction-Diffusion Learning for Long-Horizon Electrophysiology Simulation in Cardiac Digital Twins}},
  year = {2026},
  eprint = {2611.39819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39819},
}
Figure