WorksAgricultural and Biological Sciences
GraphEP: A Calibrated Data System and Benchmark for Learning Cardiac Electrophysiology
Abstract
High-fidelity simulations generate spatiotemporal data that are difficult to obtain experimentally, yet their outputs are rarely ready for scientific machine learning. Cardiac electrophysiology (EP) exemplifies this challenge: data reside on anatomy-dependent volumetric meshes, propagation follows anisotropic material fields, and relevant events span multiple temporal scales. We introduce GraphEP, a calibrated data system that converts cardiac meshes and simulation protocols into compact, graph-native trajectories of full-field transmembrane potential. GraphEP includes 732 left-ventricular simulations across 20 anatomies, with healthy and scarred substrates of varying severity and multiple pacing configurations. Each sample provides geometry, tissue and material features, stimulation, connectivity, derived activation targets, and provenance in PyTorch Geometric format. We benchmark four inductive biases for predicting transmembrane potential Vm(t): local message passing, global neural operators, multi-scale hierarchical graph transformers (HGT), and physiology-informed models. The latter include HGT-Lag, which separates activation timing from action-potential morphology, and the stateful Graph Aliev-Panfilov Action-Potential ODE (GAP2ODE), which evolves excitation and recovery autoregressively with frame-wise stimulation and graph diffusion. Results show that wider spatial communication improves on local message passing, while physiological structure provides the strongest inductive bias: HGT-Lag and GAP2ODE lead on complementary metrics by explicitly modeling propagation, recovery, and temporal state. GraphEP offers a reproducible pathway from mechanistic cardiac EP simulations to analysis-ready data and a controlled benchmark for learning on irregular anatomical geometries.
Introduction
Cardiac electrophysiology (EP) couples fast, nonlinear cellular dynamics with anisotropic propagation through a three-dimensional myocardium. A simulation is therefore neither a conventional image nor a fixed-sensor time series: every anatomy is represented by a different unstructured volumetric mesh, and every vertex carries a signal characterised by a sharp depolarisation front followed by substantially slower recovery. Moreover, the domain is geometric rather than merely discrete, as conduction depends on local material properties such as fibre, sheet, and sheet-normal directions. Cardiac EP, therefore, offers a useful test bed to learn multi-scale spatiotemporal dynamics on irregular geometries.
The challenge for scientific machine learning (SciML) is not only to solve or approximate the underlying cardiac forward model, but also to transform simulation outputs into a reproducible and analysis-ready data representation. High-fidelity EP cohorts remain expensive to generate and difficult to compare. Therefore, neural surrogates commonly use a fixed or simplified geometry, and simulation outputs are rarely released with reusable graph features [7]. A cross-anatomy dataset requires consistent geometry processing, physiological calibration, tissue labelling, stimulation protocols, graph construction, feature semantics, target extraction, normalisation, dataset splits, and provenance. Existing components such as openCARP [11], the ForCEPSS calibration protocol [7], and public four-chamber human heart geometries [12] make high-fidelity simulation possible, but are not, on their own, sufficient to define a reusable SciML corpus or benchmark. The quantitative benchmark in this first release is restricted to LV samples. Its split is sample-disjoint but not anatomy-disjoint: all 20 anatomies occur across train, validation, and test, while pacing configurations and pathological manifestations vary between samples. The benchmark, therefore, evaluates the learning of propagation rules across unseen samples on known anatomical identities. In this contribution, we also show biventricular and whole-heart simulations to demonstrate the scope of the generation pipeline as a system ready for SciML data preparation.
We introduce GraphEP as three connected contributions: (i) a reproducible path from three-dimensional meshes of cardiac geometries to calibrated solutions of the Monodomain partial differential equation (PDE) [10] and graph-native samples; (ii) an audited collection of 732 LV PyG geometric tensors spanning healthy and scarred substrates, Purkinje configurations, pacing sites, and non-resting boundary states; and (iii) a controlled benchmark of local, global, multi-scale, and biophysically-inspired architectures for full-field voltage regression and autoregressive state evolution.
Data and Methods
GraphEP transforms anatomically realistic cardiac meshes into graph-structured EP time series through a sequence of auditable stages: geometry preparation and annotation, physiological calibration, graph construction, and optional coarsening. The pipeline was conceived with the aim of retaining the information needed to trace a machine learning sample back to its underlying geometry, material configuration, stimulation protocol, and state of the system at any point in time.
Data generation and physiological calibration
The pipeline has four stages: extraction and augmentation of cardiac geometries, physiological calibration, solving a PDE system with a finite element method (FEM) solver, and conversion into PyTorch Geometric representations. It accepts volumetric meshes as input, and it extracts selected cardiac regions; in the released dataset, we extract the LV from the public four-chamber cohort of [12]. In this case, cardiac meshes are re-meshed to the target resolution and annotated with Universal Ventricular Coordinates [1]. A rule-based construction assigns fibre, sheet, and sheet-normal directions, producing the local material frame used for anisotropic conduction. Endocardial fast-conduction trees provide rapid activation, while biased random walks over the element graph generate minor, medium, and large scar patterns. Each scar core is inactive and nearly insulating, whereas its excitable border zone is assigned a reduced directional conductivity. Details of the algorithms and mesh handling steps are reported in the supplementary material in Section A.2.
The ToR-ORd ventricular cell model [13] is first brought to a periodic steady state. Tissue conductivities are then calibrated following the ForCEPSS workflow [7], which adapts the diffusion parameters to reproduce the prescribed conduction velocities at the chosen discretisation. Calibration is part of the data-generation pipeline itself rather than an external preprocessing step: the cellular model is initialised from periodic steady state and conductivities are tuned before cohort simulation. A compact quantitative QC table is reported in supplementary material in the extended Table 3.
Table 3: Physiological calibration and beat-level quality assessment of the GraphEP-LV release (). A quality beat (QB) starts from diastole ( of nodes above mV at onset) and captures at least 95% of eligible nodes within the pacing cycle. Panel B reports QB trains for samples with a Purkinje tree and a diastolic initial state at , thereby isolating the effect of lesion severity. Panel C reports physiology over all samples contributing at least one QB; values are median [5th, 95th percentile]. CV and AT denote conduction velocity and activation time, respectively.
| A. Conduction-velocity calibration | ||||||
| Tissue | Direction | Target CV (m s) | Achieved CV (m s) | Residual (%) | ||
| Myocardium (endo) | Longitudinal | 0.67 | 0.658 | |||
| Myocardium (endo) | Transverse | 0.30 | 0.310 | |||
| Myocardium (endo) | Sheet-normal | 0.17 | 0.162 | |||
| Purkinje | Longitudinal | 6.70 | 6.440 | |||
| Purkinje | Transverse | 3.00 | 2.72 | |||
| B. Quality-beat train by severity (Purkinje present, diastolic at ) | ||||||
| Severity | Mean QBs | 0 QB (%) | 1 QB (%) | 2 QBs (%) | 3 QBs (%) | |
| Healthy | 48 | 2.94 | 0 | 0 | 6 | 94 |
| Minor | 68 | 2.56 | 0 | 13 | 18 | 69 |
| Medium | 59 | 1.22 | 2 | 85 | 3 | 10 |
| Large | 54 | 0.89 | 11 | 89 | 0 | 0 |
| C. Physiology on quality beats | ||||||
| Group | Resting (mV) | Amp. (mV) | APD (ms) | Activated (%) | p95 AT (ms) | |
| All | 269 | [, ] | 110.9 [109.2, 114.4] | 312 [289, 340] | 100.0 [96.4, 100.0] | 281 [192, 532] |
| Healthy | 48 | [, ] | 113.7 [111.7, 115.0] | 300 [293, 316] | 100.0 [100.0, 100.0] | 237 [181, 282] |
| Minor | 81 | [, ] | 111.7 [111.1, 115.1] | 312 [296, 337] | 100.0 [99.9, 100.0] | 234 [184, 412] |
| Medium | 82 | [, ] | 109.7 [109.4, 111.2] | 318 [285, 347] | 99.9 [95.7, 100.0] | 327 [228, 557] |
| Large | 58 | [, ] | 109.3 [109.0, 109.7] | 315 [291, 330] | 99.3 [95.8, 99.9] | 422 [303, 517] |
| D. Corpus composition | ||||||
| Purkinje tree present | 299/732 (40.8%) | |||||
| Diastolic at | 441/732 (60.2%) |
Table 3.
OpenCARP [11] solves the Monodomain reaction–diffusion equation [6]. The solver is configurable following ForCEPPS recommendations and allows defining a stimulation protocol. In the released dataset we define three stimuli, each spaced 600 ms apart. We retain node-wise transmembrane voltage and derive first-threshold-crossing activation times. The frozen release stores 361 frames at 5 ms spacing over 1.8 s; finer solver outputs, calibration parameters, and pathology-generation details are documented in the supplementary material. The results are then saved in ZARR format, allowing for efficient indexing, reading, and writing times to storage. This also enables simulation compression, considering that the majority of the dense node-voltage time-series retain resting potential values, thus allowing us to save memory.
Graph-structured time-series representation
GraphEP converts each finite element simulation into a graph representation suitable for geometric learning. To reduce training costs, the finite element graph is coarsened with a topology-aware first-order -maximal-independent-set selector (kmis): native vertices are adjacent when they occur in a common tetrahedron. Each simulation becomes a PyTorch Geometric Data object with core tensors
Here and vary with anatomy, and where and are the number of samples. Voltage and stimulus are stored in half precision (FP16), whereas geometry, features, distances, and activation targets use single precision (FP32).
The node channels are , representing fibre and sheet directions, three intracellular conductivities, the stimulus mask and onset, the canonical tissue class, four UVC coordinates, and the anisotropic distance from the pacing region, respectively. Continuous channels are cluster-averaged and normalised; the stimulus mask uses logical OR, while the tissue class is inherited from the representative node.
For an edge , the five channels comprise: displacement projected onto the local fibre, sheet, and normal unit directions, Euclidean length, and conductivity projected along the edge. Hence, the representation retains the local material frame rather than reducing geometry to Cartesian distance alone.
The target y contains node-wise over three beats. The first valid rising crossing of mV defines y_lat, and invalid nodes are masked by lat_valid. Auxiliary fields include Euclidean, graph-geodesic, and conductivity-weighted stimulus distances, edge travel cost, tissue tags, scar points, protocol parameters, and provenance metadata. Each tetrahedron contributes one quarter of its volume to each of its four vertices, so node_volume approximates the local integration measure associated with each graph node.
Individual samples from the corpus differ in anatomy, discretisation and activation patterns, so no node-wise correspondence exists across the corpus; it can instead be partitioned by indicators derived from the released data: scar severity, Purkinje presence, prepacing state at , and activation extent (first-beat LAT fraction and peak active fraction), as demonstrated in the dataset summary of Figure 2.
Figure 2. Corpus variability. Dots are coloured by scar severity and marked by presence of the Purkinje network. Panels show pairwise projections of the first three principal components of model-facing signatures and the relation between first-beat LAT fraction and peak active fraction. Large markers denote group centroids. The projections illustrate that known controlled factors in the generation process are reflected in the resulting dynamics.
We include additional biophysical features that expose each sample’s state and physics. Distance features: signed graph-geodesic distance to the scar interface and to the core/border-zone region, and conductivity-weighted distances to the lesion and to the Purkinje network (in addition to the Purkinje tissue class type flag). Operator features: the sample-specific Galerkin-coarsened finite element operator
where is assembled on the native mesh from the calibrated conductivity tensor, and assigns native vertices to graph nodes. The lumped mass is coarsened by the same assignment, ; graph edges carry the entries of , nodes the diagonal of (the physical diffusion operator and integration measure of the coarse graph). These features are precomputed offline; the time since depolarisation, diastolic interval (DI), and voltage history are instead online states maintained by autoregressive models.
Prediction task and evaluation protocol
We formulate the supervised learning problem as the approximation of the solution operator that maps anatomy, material properties, and pacing conditions to the resulting spatiotemporal transmembrane potential field. Conceptually, for a cardiac domain :
where denotes the spatial position, represents the spatially varying geometric and material properties and describes the stimulation protocol for each sample . In practice, these fields are discretised with the graph . We let be the static node and edge attributes described in the previous section, including geometry, material orientation, tissue properties, and conductivity. This results in the discrete regression problem:
where is the number of graph nodes, is the number of simulated voltage frames, and denotes the learnable model parameters. The same regression problem can also be framed as an autoregressive task, where the operator does not learn the mapping from the initial conditions and static properties to the spatiotemporal transmembrane field, but instead maps the state of the system, conditioned by its circumstances, to a later time frame.
In addition to these direct solution-operator models, we evaluate a stateful graph neural ODE that instead learns the temporal evolution of a latent cardiac state.
The same regression problem can alternatively be framed as an autoregressive task. Rather than mapping the static inputs directly to the complete voltage trajectory, the model learns a state-transition operator that maps the current state of the system to a future state, conditioned on the graph, material properties, and stimulation:
where denotes the state of the system at time , which may include the transmembrane potential together with additional latent variables, and decodes this state to the predicted voltage. The complete trajectory is obtained by recursively applying the transition operator over the time points.
The frozen split is stratified over samples by anatomy and scar severity, although it is not anatomy-disjoint. All 20 heart models, therefore, occur across the split, while held-out samples differ in pacing configuration and pathological development. The release contains 732 PyG samples, partitioned into 513 training, 146 validation, and 73 test samples, and stored in a frozen manifest with SHA-256 verification. Samples are packaged deterministically, and the archive-level verification procedure and storage budget are reported in the supplementary material.
Each model is trained for 4,000 optimiser updates with pointwise voltage MSE and a temporal-variance term that discourages collapse to a flat trajectory. The checkpoint with the lowest validation node–time MAE is retained. Evaluation combines generic regression error with physiological endpoints: active-myocardium MAE, depolarisation amplitude MAE and ratio, local activation-time (LAT) MAE, action potential duration at 90% repolarisation (APD90) MAE, and repolarisation time (RT) MAE. This distinction is deliberate: pointwise voltage error alone does not establish that a surrogate can reproduce physiologically meaningful timing or waveform morphology. Additional details are reported in the supplementary material.
Model families and receptive-field axis
We organise the benchmark as a progression from generic spatial approximation to increasingly structured representations of cardiac propagation. GATv2 [2] provides a local message-passing baseline, while GINO [8] and GWNO introduce domain-wide communication through global neural operators. GHR [3] and HGT then combine information across multiple spatial resolutions, preserving local anatomical detail while communicating over the whole ventricle. The proposed physiology-informed models add structure specific to electrophysiology: HGT-Lag separates propagation timing from action potential morphology, whereas the stateful graph ODE evolves excitation and recovery through a numerical integrator coupled to the sample-specific diffusion operator. This progression allows us to examine not only how far information travels through a model, but also how explicitly the model represents the mechanisms that generate the trajectory.
Physiology-informed and multiscale models
Hierarchical Graph Transformer (HGT) and HGT-Lag. HGT follows a U-Net-like multi-resolution design and learns a map between continuous functions, thus describing a neural graph transformer operator. Node features are projected into a common latent space and progressively pooled onto regular 3-D grids of decreasing resolution. At each resolution, the spatially aggregated features are processed by linear-attention transformer blocks, which provide global information exchange at that spatial scale at a linear cost (number of tokens). The decoder maps coarse representations back to finer resolutions through inverse-distance-weighted interpolation from the pooled centroids, concatenates the corresponding encoder representations through skip connections, and refines the result with additional transformer blocks. The model, therefore, combines fine geometric detail with communication over progressively larger spatial scales. In the current implementation, graph edges are not used inside the transformer hierarchy. Instead, spatial neighbourhoods are induced by geometric pooling and interpolation.
The two variants share the same encoder and differ only in how the latent field is turned into a voltage trajectory. HGT applies a pointwise output network that regresses all frames of the trajectory directly. HGT-Lag, instead, uses a parametric action-potential decoder: from each node embedding, it predicts an amplitude, a baseline voltage, a local conduction speed, and a bounded residual correction to the activation time. A node’s activation time is the geodesic distance to the stimulation site divided by its predicted conduction speed, plus a residual and a shared action-potential template that describes an upstroke of learnable width multiplied by a learnable plateau-to-repolarisation tail. This template is shifted by learnable activation time and scaled by the amplitude to reconstruct the entire trajectory. Because the template is a function of physical time from activation, the same decoder is evaluable on any temporal grid. This formulation introduces a physiological inductive bias by approximately factorising the prediction problem into when the wave arrives and what local waveform follows, and it exposes an explicit per-node activation time that can be directly supervised.
Layer updates, grid pooling and unpooling, the linear-attention block, and the two decoders are defined in Supplementary Section B.3.1, together with an outline of the model’s architecture in Figure 7.
Figure 7. Architecture outline of HGT.
Physiology-informed Graph ODE Unlike the previous models, the physiology-informed Graph Aliev–Panfilov Action-Potential ODE (GAPODE) advances an excitable state on the graph using a neural reaction–diffusion ODE and constructs the voltage trajectory recursively. Each node carries normalised excitation , recovery and a small latent memory, evolving under Aliev–Panfilov reaction dynamics; propagation is governed by the sample-specific coarsened finite-element operator of Eq. (2). A graph network encodes local geometry and tissue class once per sample, and its output sets per-node reaction rates and per-edge conductance gains within fixed physiological bounds, acting as a learned closure model for what coarsening and the phenomenological cell model omit. The stimulus enters the excitation equation at every frame through a recovery-dependent gate, so refractory tissue cannot be re-excited and pacing acts on the evolving state. An implicit diffusion step keeps integration stable on irregular meshes. Finally, an observation map decodes the state to transmembrane voltage: an affine map plus a bounded learned correction capturing waveform detail beyond the two-variable dynamics. Equations, parameter bounds, online state and integration scheme are given in Supplementary Section B.1.
Results
Dataset scale, diversity and physiological structure
The released dataset contains 732 simulations from 20 source anatomies, each with 361 voltage frames at 5 ms, spaced over three paced beats (0–1800 ms; BCL 600 ms). The cohort includes healthy myocardium with minor, medium, and large random-walker scar patterns and multiple stimulus locations. Figure 2 summarises variability in model-facing signatures. The first three principal-component projections are associated with controlled cohort factors, including Purkinje configuration, boundary state, pacing location, and scar severity. We use these projections as a descriptive view of corpus variability rather than assigning a single causal factor to each component.
Representative full-field dynamics
Figure 1 contrasts healthy and scarred samples from the same LV anatomy and pacing protocol. In the healthy example, the wavefront crosses the ventricle regularly, and the myocardium recovers before the following stimulus. In the matched scarred example, propagation around the lesion is slower and spatially heterogeneous, leaving some regions depolarised when the subsequent stimulus arrives at the 600 ms pacing boundary. This interaction between propagation, waveform morphology, and successive pacing cycles illustrates why full-field might overlap excitable waves and create large delays.
Figure 1. GraphEP samples. Healthy and medium-scar examples over three paced beats. Heatmaps order nodes by first-beat activation; dashed lines mark successive stimuli. Scar delays and fragments propagation, leave late regions depolarised as the next stimulus arrives. Spatial snapshots show the corresponding wavefront moving around the scar obstacle.
Extension beyond the LV benchmark. The same generation system supports biventricular tissue with independently generated LV and Right Ventricle (RV) Purkinje regions and whole-heart simulations coupling Courtemanche atrial dynamics [5] with ToR-ORd ventricles. These experiments demonstrate pipeline extensibility to a large variety of experiments on cardiac meshes.
Benchmark performance and model inductive bias
The stateful graph ODE achieves the lowest full-trajectory MSE and MAE, active-myocardium MAE, depolarisation-amplitude error, and LAT error in Table 1. Its MAE is 10.21 ± 4.62 mV, compared with 15.55 ± 5.09 mV for HGT, the strongest one-shot model. Its depolarisation-amplitude error is 6.98 ± 3.55 mV and LAT error 103.2 ± 124.5 ms, supporting explicit state evolution and sample-specific diffusion for propagation and amplitude preservation. Figure 3 shows the prediction on a held-out scar sample: error concentrates in a thin band at the moving wavefront while amplitude and morphology are preserved, and Figure 4 shows the corresponding full-trajectory view, with the propagation pattern preserved across all three beats.
Figure 3. GAPODE prediction on a held-out scar sample. Ground truth, prediction, and absolute error on the native mesh at six times spanning the paced sequence. Voltage panels share the [−90, 40] mV scale, error panels [0, 60] mV. Error concentrates in a thin band at the moving wavefront while amplitude and morphology are preserved; the scar core, inactive and excluded from the simulated domain, appears as a cavity that the wave circumnavigates.
Figure 4. Full-trajectory view of the same prediction. Ground truth, prediction, and absolute error over all three paced beats, nodes ordered by first-beat activation time. The prediction preserves the propagation pattern across beats; error is confined to a narrow band tracking the wavefront.
| Model | MSE (mV) | MAE (mV) | A-MAE (mV) | AR | DA-MAE (mV) | LAT (ms) | APD90 (ms) | RT (ms) |
| GATv2 (4-layer) | 1762.5 ± 353.7 | 35.33 ± 4.29 | 38.08 ± 3.60 | 0.48 ± 0.12 | 63.18 ± 9.39 | 1238.0 ± 242.6 | 583.4 ± 103.6 | 676.4 ± 231.2 |
| GHR | 870.1 ± 463.0 | 20.31 ± 5.65 | 21.70 ± 7.49 | 0.82 ± 0.15 | 28.92 ± 8.17 | 282.1 ± 173.2 | 463.4 ± 123.7 | 450.4 ± 183.7 |
| GINO | 921.5 ± 752.2 | 20.78 ± 8.27 | 21.36 ± 10.27 | 0.89 ± 0.13 | 23.85 ± 8.99 | 184.7 ± 178.4 | 485.7 ± 153.8 | 448.2 ± 189.2 |
| GWNO | 913.2 ± 713.5 | 20.54 ± 8.26 | 21.10 ± 10.31 | 0.89 ± 0.13 | 22.45 ± 8.51 | 173.8 ± 171.5 | 434.9 ± 116.3 | 413.5 ± 163.5 |
| HGT | 612.6 ± 433.6 | 15.55 ± 5.09 | 15.98 ± 6.34 | 0.94 ± 0.13 | 18.77 ± 10.50 | 173.2 ± 177.7 | 434.5 ± 104.6 | 408.7 ± 147.1 |
| HGT-Lag | 761.2 ± 643.6 | 16.86 ± 7.61 | 17.61 ± 9.23 | 0.94 ± 0.17 | 19.46 ± 13.69 | 237.5 ± 261.3 | 375.9 ± 130.0 | 291.2 ± 115.4 |
| GAP2ODE† | 424.8 ± 406.6 | 10.21 ± 4.62 | 10.44 ± 5.97 | 0.95 ± 0.04 | 6.98 ± 3.55 | 103.2 ± 124.5 | 456.4 ± 135.4 | 422.3 ± 174.4 |
Table 1. Full-trajectory benchmark under a maximum budget of 4,000 optimiser updates. All metrics are computed over the complete 361-frame (0–1800 ms) repaired-target test trajectories. MSE: mean squared error; MAE: mean absolute error; A-MAE: active-myocardium MAE; AR: depolarisation-amplitude ratio; DA-MAE: depolarisation-amplitude MAE; LAT: local-activation-time MAE; APD90: action-potential-duration-at-90%-repolarisation MAE; RT: repolarisation-time MAE. Values are test mean ± sample standard deviation over the same 73 held-out simulations. †Trained with the same objective, converging at ∼2,600 optimiser updates, within the 4,000-update budget.
The gain does not extend to recovery: HGT-Lag retains the lowest APD90 and RT errors, while the graph ODE obtains 456.4 ± 135.4 and 422.3 ± 174.4 ms. Endpoint-dependent rankings show that voltage reconstruction, activation timing, and recovery morphology are distinct challenges. The graph ODE also changes from one shot to autoregressive; therefore, it reads the stimulation at every step and maintains the recovery state. This comparison tests state evolution and the biophysical features jointly rather than architecture alone. Statistical distributions of the performance of the models on the test samples are reported in the Extended results section at Figure 15. Examples of predictions are reported in the extended section C.4.
Figure 15. Full-trajectory test-error distributions across the 73 held-out simulations. Violins show the empirical sample distribution, internal boxes show the median and interquartile range, and points represent individual simulations. All panels use the 361-frame targets.
Discussion and Conclusion
GraphEP addresses the gap between producing a mechanistic simulation and turning it into reusable SciML data. A voltage trajectory is meaningful only in relation to the anatomy, material properties, calibration and intervention that produced it. By retaining this chain through graph conversion and deterministic release, GraphEP makes provenance part of the data representation rather than an external account of dataset construction.
The benchmark shows how model structure interacts with this representation. Communication beyond local neighbourhoods improves one-shot prediction, while physiological biases provide complementary benefits. The graph ODE improves voltage, depolarisation amplitude and activation timing by evolving recovery state with a sample-specific diffusion operator; HGT-Lag remains more accurate on recovery endpoints by separating propagation timing from waveform morphology.
Neither is uniformly superior, suggesting that propagation and repolarisation reward different physical biases.
Stateful surrogates also require a broader data contract than immutable trajectories alone: they need initial electrical state, time-resolved interventions and a reproducible physical operator. GraphEP supplies simulation-derived quantities as biophysical features, while recovery and event history remain internal to the rollout. This distinction prevents target-derived information from being mistaken for model state and allows the same release to support both one-shot and autoregressive learning.
GraphEP remains a controlled simulation testbed rather than a substitute for clinical data. Its split evaluates new conditions on 20 known anatomies and is not disjoint, so performance on unseen anatomies is yet untested. Scar patterns are procedurally generated and have not been validated against clinical scar segmentations or histopathology. The reported model rankings therefore describe this synthetic simulation distribution and may change for clinically derived scars or unseen anatomies. The current representation can hide non-resting boundary state, mix activation events across beats or sparse fast-conduction tissue during coarsening. Learned operator corrections may likewise restore flux across scar boundaries unless constrained by tissue semantics. These limitations motivate anatomy-disjoint evaluation, event-local labels, rare-tissue preservation and stricter operator enrichment. Within these bounds, GraphEP provides a reproducible setting for studying data design and model inductive bias together, with future extensions toward broader physiology, uncertainty and measured cardiac signals. Availability of the data is supported at the Zenodo archive v1.2 https://doi.org/10.5281/zenodo.24085325.
Acknowledgments and Disclosure of Funding
James Rowbottom gratefully acknowledges support from the Horizon Europe projects TROPHY (ultrafast holographic FTIR microscopy, 2022–2026) and CHARM (coherent Raman imaging for precision medicine). The authors acknowledge support from the National Science Foundation AI Institute in Dynamic Systems (grant no. 2624398). Matteo Baldan was supported by the National Center for Gene Therapy and Drugs Based on RNA Technology, funded by the European Union—Next-Generation EU under Italy’s National Recovery and Resilience Plan (NRRP), Mission 4, Component 2, Investment 1.4 (Project CN00000041, CUP B93D21010860004, Spoke 2 “Cancer”). The authors thank TaccLab and DAWN for providing computational resources.
Supplementary Data and Methods
Simulation pipeline: methods and configuration
GraphEP is produced by a fully scripted, four-stage pipeline (Figure 5): mesh preparation turns a source four-chamber anatomy into a tagged, fibre-annotated openCARP mesh; physiological calibration brings the ionic model to periodic steady state and fits conductivities to prescribed conduction velocities; openCARP solves the monodomain equations over three paced beats; and a postprocessing/baking stage that coarsens the finite-elment graph and prepare self-contained PyTorch Geometric samples. Coarsening is obviously optional but important to let model training scale. JSON-configured scripts drive the mesh and simulation, respectively. Every stage writes an auditable intermediate.

Figure 5. GraphEP data-generation pipeline. Mesh preparation (blue) and EP generation (green) are each driven by a single JSON-configured entry point; a postprocessing/baking stage (orange) coarsens the finite-element graph and writes self-contained PyTorch Geometric samples.
Mesh handling and augmentation
Mesh preparation is recipe-driven and is executed by interfaces/main_meshtool.py. A recipe identifies the immutable source anatomy, the chambers to retain, the desired spatial resolution, the universal ventricular coordinate (UVC) transfer method, and an ordered list of tissue-tagging operations. The pipeline has four auditable stages:
Conversion. The source VTK anatomy is converted to the openCARP
.pts/.elem/.lonrepresentation. Coordinates are normalized to , and the UVC fields are copied from point data or averaged from cell data to mesh vertices when necessary.
Chamber extraction. Source element tags select the LV alone, both ventricles, or all four chambers. The extracted boundary is smoothed when requested, while the original source tags are retained as immutable provenance.
Resolution and coordinates. The tetrahedral mesh is uniformly or curvature-adaptively resampled subject to the recipe’s target and minimum/maximum edge scales. UVC fields are then recomputed or interpolated onto the new vertices; the fibre and sheet directions remain associated with the resampled elements.
Semantic tagging. Ordered tagging methods assign atrial and ventricular regions, UVC-defined endocardial/mid-myocardial/epicardial layers, Purkinje tissue, and optional pathology. The final integer mapping is written to mesh
.tags.json, so downstream simulation and graph baking consume labels rather than campaign-specific tag numbers.
Each stage writes a separate intermediate and is skipped only when its expected mesh and metadata already exist. This makes extraction, remeshing, coordinate transfer, and biological labelling independently inspectable.
Resolution and uvc coordinates The resolution is rescaled accordingly to three configurable parameters: the expected median edge length, which would represent the median cardiac fibre length or the media tetrahedra face edge length; and a minimum and maximum value of such range. Then, a resample tool from meshtool is iteratively called to aggregate or cut edges of adjacent tetrahedra to converge to the desired choice. Universal Ventricular Coordinates instead (UVC) include four scalar fields as follows:
transmural : ranges between and represents the normalised depth through the ventricular wall.
rotational : ranges between and represents the ventricular long axis, distinguishing the septal, anterior, lateral and posterior position at a fixed depth and height.
apico-basal : ranges in and runs along the long axis from the apex at to the base .
ventricle identifier : represent the identifier of the left or right ventricle.
These coordinates can be provided or recomputed after remeshing by solving a Laplace problem with anatomically defined boundary conditions [1].
Semantic tagging Healthy tissue is defined by using intervals of the transmural coordinate that ranges between where 0 lands in the center of the geometry and 1 on the extent of the bounding box. So we can use thresholds on this coordinate to divide the volume in three sections from internal to external, i.e., endocardium; mesocardium and pericardium.
Pathological regions are incorporated by modifying the electrophysiological properties after geometric tagging. Core scar receives no ionic model and is assigned a uniform isotropic bath conductivity of S/m, which keeps the monodomain operator nonsingular while making the region effectively non-conductive. Border zones are KD-tree distance shells around core-scar elements [9]. Border-zone tissue retain an active Tomek model but use 10% lower transverse conductivity. Random-walker scars are formed on the element adjacency graph by multiple walkers biased toward elements not visited by earlier walks. The union of visited elements defines the core, after which the distance shell is assigned. The walkers, as summarised in 1, start from a surface and are biased towards new nodes that they have not seen yet. They are more likely to remain on the surface but they are allowed with a lower probability to dive into the volume.
Algorithm 1 Biased random-walk generation of scar tissue
Input: element adjacency adj, endocardial surface , seed elements
Output: scar core , border zone
Set number of walkers , walk length , novelty probability , surface preference , border-zone thickness
▷ Initialise the seen set of nodes
for all do
for to do
for to do
if and then
▷ prefer endocardial propagation
end if
if and then
▷ prefer unexplored elements
end if
end for
end for
end for
▷ border zone surrounding the scar core
return
Purkinje network fibres, instead, are generated using a fractal tree set of rules. The LV and RV trees are generated independently on their endocardial surfaces. For each chamber, boundary triangles are first extracted from the tetrahedral volume. Triangle normals distinguish the inward-facing cavity surface, and a principal-axis decomposition identifies the apical and basal directions. The configured root is either the apex, a reproducibly sampled apical face, a reproducibly sampled endocardial face, or an explicit vertex. The initial growth direction follows a surface edge toward the base where possible and is otherwise obtained by projecting the apex–base vector onto the local tangent plane.
The fractal-tree generator grows a surface-constrained trunk and recursively bifurcating branches and is implemented using the source methodology of Costabal et al. [4]. Its principal controls are iteration count, initial and daughter-branch lengths, discretization length, branch angle, repulsion from existing branches, and optional fascicles. In the implemented adaptive mode, the discretization length is derived from the harmonic mean of endocardial triangle-edge lengths; the trunk, branches, and fascicles scale with chamber long-axis length. Coverage is measured as the fraction of endocardial vertices within a prescribed Euclidean radius of a tree node. If the target is missed, bounded retries increase the iteration count and shorten daughter branches; the highest-coverage realisation is retained. For volumetric Purkinje representations, a KD-tree tags tetrahedra whose centroids fall within the configured distance of a branch. The authors suggest monitoring the generation of the purkinje tree based on the spatial resolution of the mesh.
Physiological calibration
To ensure that the anisotropy of the diffusion tensor produces physiologically accurate propagation behaviour at the chosen spatial resolution, the initial seed conductivities are refined using openCARP’s tuneCV tool [7]. In that tool, for each distinct tissue region, calibration is performed on a 2-cm 1-D monodomain cable. Such cable is initialized from the periodic cellular steady state, derived from a previous stage where a basic cycle of length 1000ms is run. The purpose of this BCL is to ensure that the membrane is physiologically polarized before the first action potential is launched, making the measured CV more representative of tissue in a steady pacing state. Extracellular conductivity is fixed, while intracellular conductivity is iteratively adjusted along a single principal axis (fibre, sheet, or normal) in each run, until the measured CV matches the reference (within a tolerance).
Given that a fixed stimulus current often fails in high-conductivity tissues or causes non-physical voltage spikes in low-conductivity tissues, we use a square-root scaling of the stimulus strength based on the seed intracellular conductivity, mimicking the dependence of the cable length constant and guaranteeing supra-threshold depolarization across all tissue types without PDE divergence. This follows suggestions from the authors of ForCEPS [7].
Pathological regions are incorporated through the modification of electrophysiological properties, whereby scar tissue is not assigned an ionic model since it is not electrically active, while border zone regions exhibit reduced (10% less than healthy) transverse conductivity to emulate fibrosis-induced slowing. Note that the scar region is given a uniform isotropic bath conductivity (of S/m), in order to maintain monodomain operator non-singularity while considering the region as non-conductive. Border zones are defined as a distance-based shell (computed with KD-tree) around core scar elements.
In Figure 6 we report a zoom of a real heart volumetric mesh, with tagged regional transmural endocardium, mesocardium, and epicardium regions, Purkinje network, and fibre directions.

Figure 6. Local fibre directions in a tagged ventricular mesh. The orthotropic conductivity tensor is aligned with the fibre, sheet and sheet-normal frame, producing anisotropic propagation through the myocardium.
openCARP monodomain solver
Electrical propagation is modelled by coupling the monodomain equation to the ToR-ORd ventricular-cell dynamics [13]:
where is membrane capacitance, is the membrane surface-to-volume ratio, is the anisotropic conductivity tensor, denotes the ToR-ORd cellular state variables and is the applied stimulus. Ventricular ionic dynamics are described by the Tomek–Rodriguez modification of the O’Hara–Rudy model (ToR-ORd). ToR-ORd is a biophysical human ventricular cardiomyocyte model in which the total ionic current results from the balance of transmembrane sodium, calcium and potassium currents together with intracellular calcium cycling. Its gating variables and ionic concentrations form the local state , whose evolution generates the rapid action-potential upstroke, plateau and repolarisation phases. Endocardial, mid-myocardial, and epicardial parameterizations reproduce regional differences in ventricular action-potential morphology. In the tissue simulation, ToR-ORd supplies the node-local reaction term, while openCARP couples neighbouring cells through the finite-element discretisation of the anisotropic monodomain operator.
Conversion of EP into PyTorch Geometric objects
The baking stage converts each finite-element solution into the graph tensors defined in Equation (1). Native vertices are assigned to retained KMIS nodes through the same partition used to aggregate extensive node volume. Geometry, tissue, stimulation and voltage fields are pooled according to their semantics: continuous intensive quantities are averaged, extensive volume is summed, stimulus masks use logical OR and categorical tissue labels are inherited from representative nodes. The frozen PyG object remains the immutable release unit.
Offline operator and distance-field enrichment
Some models require fields reproducible from archived meshes and plans but absent from the original 17-channel tensor. These additional features include; signed distance fields that encode proximity to the scar interface and core/border-zone region. For physical diffusion, the native stiffness matrix is assembled from
and coarsened with the bake partition,
Non-zero coarse edge coefficients and lumped masses are attached as fem_edge_stiffness and fem_node_mass. The transformation records its source mesh, plan and enrichment version. The released audit must define the stiffness sign convention and the handling of negative off-diagonal terms.
Additional biophysical features are distinct from the online state. Time since depolarisation, preceding diastolic interval, beat phase, and voltage history are updated from predicted states during free rollout; they are not target-derived features at evaluation time.
Models
Autoregressive state-evolution models
State and reaction dynamics
Each node carries , where is normalised excitation, is recovery, and is optional latent memory. The physical core uses dynamics like the Aliev–Panfilov model,
with and refractory gate , . Learned heads modulate bounded positive reaction rates and edge-conductance gains. The authoritative configuration must state whether any additive state residual is enabled; rate modulation preserves the equilibrium structure more directly than an unconstrained additive update.
Coarsened FEM diffusion
Let denote the coarse stiffness/Laplacian under the stored sign convention and its lumped mass. Diffusion is applied as a conservative flux,
where is a bounded learned edge correction conditioned on edge geometry and tissue. This correction closes the operator error introduced by coarsening but must be audited near scar boundaries.
Online physiological state and observation map
Latched predicted threshold crossings maintain the time since the last upstroke and the preceding diastolic interval. Beat phase and short predicted-voltage history can condition the parameter and readout heads. The observation map
uses bounded to reproduce waveform morphology without feeding that correction back into the dynamical state.
Integration and training
Reaction and stimulation are integrated explicitly with RK2, while stiff diffusion uses implicit Euler with a fixed-iteration, Jacobi-preconditioned conjugate-gradient solve. Rolling the transition over all frame times produces the 361-frame prediction. The archived run record must identify initial-state construction, objective, optimiser updates, solver, substeps, implicit stride, Conjugate Gradients iterations, and enrichment version. Target states or target-derived event timers must not enter headline free-rollout evaluation.
Local receptive field
GATv2
GATv2 is a message-passing graph neural network in which node features are first embedded using a two-layer MLP (), followed by stacked GATv2 layers with multi-head attention [2]. Multi-head outputs are averaged to preserve a constant hidden dimensionality across layers. A final two-layer MLP projects the latent node representations to the desired output dimension (361 for or 1 for LAT prediction). Normalised edge length, effective conductivity projected along the edge direction are encoded as edge features. These are then incorporated into the attention mechanism to represent anisotropic cardiac conduction. The model uses hidden width , attention heads, 3 GATv2Conv layers, and no dropout.
Multiscale receptive fields
HGT and HGT-Lag: layer definitions
Notation. A sample has nodes with positions and features , and output frames at times in ms. Hidden vectors use width ; attention uses heads of width . The encoder has levels with grid resolutions . All blocks below act on one graph at a time; in a batch they are applied independently per graph.
Input embedding. Node features are the 17 baked channels concatenated with a 16-dimensional encoding of the node’s stimulus time series, produced by a small pointwise network. They are lifted once,
Grid pooling. At level the bounding box of the graph is divided into equal cells. Let be the cell containing and the nodes falling in cell . Only non-empty cells are kept, and each becomes one token with the mean feature and the mean position of its nodes,
Pooling is, therefore, a pure averaging operator with no learnable parameters, and the number of tokens drops from to the number of occupied cells.
Linear-attention block. Let be the tokens of one level. Write for the element-wise root-mean-square normalisation with a learnable gain, and let be the positive feature map. With the projections are
each reshaped into heads. For every head, the attention output is
so the two sums are accumulated once per level, and the cost is rather than : every token still sees every other token at that scale. The block updates its input twice, with learnable scalars initialised at zero,
where is the element-wise product. Both updates are residual, so a block starts as the identity and learns how much to add.
Unpooling. To return from the tokens of level to the nodes of the finer level, each target node takes the nearest pooled centroids and interpolates with inverse-distance weights,
Encoder, bottleneck and decoder. The encoder stores a skip copy, pools, and applies one block per level; the bottleneck applies one block at the coarsest level; the decoder unpools, concatenates the stored skip, projects back to width and applies one block:
The result is one vector per original node.
Decoder A: HGT. The trajectory is read out pointwise, all frames at once,
so time is an output dimension, and nothing constrains the predicted waveform.
Decoder B: HGT-Lag. A linear head produces three scalars per node, and a second head produces the timing residual,
With the geodesic distance from node to the stimulation site and the residual bound, the activation time is
The shared template is an analytic upstroke of learnable width multiplied by a learnable tail , both evaluated at the physical offset ,
where is stored on a fixed 5 ms grid and read by linear interpolation. The trajectory is the shifted, scaled template returned to millivolts,
Since the upstroke factor equals at , is the predicted activation time itself and can be supervised directly against the activation times. Before training, the amplitude bias, the upstroke width and the conduction-speed bias are initialized from robust statistics of the training split – the median peak amplitude, the median maximum upstroke rate and the median ratio of distance to activation time – rather than by averaging trajectories, which would blur the upstroke.
Figure 8 illustrates the resulting separation of waveform morphology from activation timing. The shared learned template determines the common action-potential shape. The node-specific translates that shape in physical time, while and control its scale and offset. Thus the linear heads do not independently predict every displayed sample; they predict interpretable parameters through which the non-linear, time-continuous decoder constructs the trajectory.
Figure 8. Behaviour of the HGT-Lag trajectory decoder. (a) Shared template learned by the selected propagation-aware checkpoint. (b) Controlled activation-time shifts of that template. (c) Controlled changes to its scale and offset at fixed activation time. The shifts and affine parameters in (b–c) are synthetic examples chosen to expose the decoder’s operation; they are not benchmark predictions.
Settings used in the benchmark. , , grid hierarchy , interpolation neighbours, feed-forward width , no dropout, 16 stimulus channels. For HGT-Lag, ms, initial upstroke width 2 ms with floor ms, mV and mV.
Decoder-component ablation. We isolate the temporal decoder while retaining the HGT backbone, repaired targets, frozen split, seed, loss and optimiser-update cap. Direct HGT regresses all frames independently through its output head; the template-only variant predicts activation lag directly and reconstructs voltage with the shared action-potential template; the propagation-aware variant augments the same template with the distance–speed prior and a bounded residual lag. Table 2 reports this controlled single-seed comparison.
| Decoder | AP temp. | Prop. prior | MAE (mV) | LAT (ms) | APD90 (ms) | RT (ms) |
| Direct HGT | no | no | 15.55 ± 5.09 | 173.2 ± 177.7 | 434.5 ± 104.6 | 408.7 ± 147.1 |
| Template only | yes | no | 20.69 ± 4.92 | 310.9 ± 205.2 | 637.2 ± 181.9 | 489.2 ± 242.1 |
| Propagation aware | yes | yes | 16.86 ± 7.61 | 237.5 ± 261.3 | 375.9 ± 130.0 | 291.2 ± 115.4 |
Table 2. HGT-Lag decoder ablation on the frozen test split ( simulations). The HGT backbone and training protocol are fixed; only the trajectory decoder changes. Values are test mean ± sample standard deviation for one matched training seed.
Imposing the shared AP template without a propagation prior worsens every endpoint relative to Direct HGT: MAE increases by $5.14$ mV, while LAT, APD90 and RT errors increase by $137.7$, $202.7$ and $80.5$ ms, respectively. Adding the distance–speed propagation prior to that template improves every endpoint relative to Template only, reducing MAE by $3.83$ mV and LAT, APD90 and RT errors by $73.4$, $261.3$ and $198.0$ ms, respectively. The propagation-aware decoder nevertheless remains worse than Direct HGT on MAE and LAT, while improving APD90 and RT.
Graph Hierarchical Recurrent (GHR)
Graph Hierarchical Recurrent (GHR) neural network alternates message passing between fine- and coarse-scale graph representations, and its architecture is outlined in Figure 9 [3]. At each forward pass, the input graph is coarsened (with Graclus clustering) to construct a two-level hierarchy. Through scatter reduction, node states are aggregated to coarse supernodes on the fine graph, updated using a coarse-level GINEConv, and then broadcasted back to the fine graph to guide subsequent fine-scale GINEConv updates. This bidirectional communication (fine-coarse) is repeated for several recurrent reasoning steps. This allows to propagate long-range information while also preserving local geometry structure. In this case, edge features are represented by relative (Cartesian) coordinates and Euclidean distance, all encoded separately for each graph level. Node embeddings from the final scale, are then mapped to predictions through a linear regression head. The configuration considered, includes 3 GINEConv layers per coarse iteration (for fine-level message passing) or 2 GINEConv iterations (for coarse level message passing), 5 hierarchical (recurrent) reasoning steps. Hidden dimension is 64, RMSNorm is used for normalization, and an MLP for activation. Total message-passing rounds are 30 (5x2x3).

Figure 9. Architecture of GHR presented in the original contribution [3].
Global receptive field
GiNO
Our implementation follows the original GiNO formulation proposed in [8] (Figure 10), adapted to our application domain. GiNO follows an encode–process–decode design, where information defined on irregular mesh nodes is first lifted into a latent regular grid representation, processed using a Fourier Neural Operator (FNO), and finally projected back onto the original mesh topology. In our implementation, the core encode–FNO–decode structure and geometric aggregation mechanism remain unchanged; the modifications are limited to the input feature construction and task-specific output projection. In fact, following our task formulation, each node feature vector is augmented with stimulus-relative positional information and four additional geometric features (three Cartesian coordinates, and the absolute distance between the stimulus point and the node). The configuration utilised in the experiments includes: a latent channel dimension of 48, a latent grid resolution, 6 Fourier modes, 2 FNO layers and a 100mm GNO radius (max. neighbors=16).

Figure 10. Architecture Diagram of GINO from [8].
GWNO
Global Wavelet Neural Operator (GWNO), is a neural operator architecture derived from GINO. The only difference between the two is the Fourier Neural Operator (FNO) core operator, as in GWNO, it is represented by a Wavelet Neural Operator (WNO) backbone (in place of a 3D FNO). The respective global operator definitions are formulated as follows:
where and denote the discrete wavelet transform (DWT) and inverse DWT, respectively.
GWNO’s architecture follows an encode–process–decode design and encompasses four stages: input lifting, GNO encoding, global operator propagation, and GNO decoding followed by projection. Given an input function sampled on an irregular point cloud, the GNO encoder first maps the input coordinates and features into a latent representation on a regular grid, to then process the latent representation by the wavelet operator core. Finally, the decoded grid features are mapped back to the original query points through a GNO decoder and a projection MLP.
Dataset and benchmark reproducibility
Dataset composition
The 732 released simulations come from 20 left-ventricular anatomies extracted from the zen4590294 four-chamber cohort [12], each simulated under a healthy substrate and three severities of random-walker scar, and paced from multiple Halton-sampled stimulus sites. Sample counts are unequal across substrates because per-run quality control removes simulations with degenerate or non-finite ; the frozen split records the exact surviving set.
Evaluation metrics and loss function
Notation. One test sample is one simulation. For that sample let be the true transmembrane voltage in mV at node and frame , and let be the prediction. Frames are equally spaced by ms. Let be the set of active-myocardium nodes (all nodes that are not core scar) and its size. Every metric below is computed on one sample; the table reports the mean over the 73 test samples plus or minus the standard deviation across those samples.
Voltage error (columns MSE, MAE, A-MAE).
Table 4: GraphEP corpus at a glance. The benchmark predicts and evaluates the complete three-beat trajectory (361 frames; released graphs are -coarsened from the full-resolution finite-element mesh.
| Property | Value |
| Source cohort | zen4590294 CMR meshes [12] |
| LV anatomies | 20 |
| Substrate conditions | healthy; minor / medium / large random-walker scar |
| Simulations (H / Mi / Me / L) | 732 (100 / 220 / 212 / 200) |
| Pacing | 3 beats, BCL 600 ms, 0–1800 ms |
| Stored / predicted frames | 361 at 5 ms over 0–1800 ms |
| Node / edge feature channels | 17 / 5 |
| Numerical precision | , stimulus FP16; geometry, features FP32 |
| Train / val / test | 513 / 146 / 73 (stratified, anatomy-shared) |
| Release size | 39.85 GB across 11 files (9 data + metadata + manifest) |
| Estimated CPU hours |
Table 4.
A-MAE is the same average restricted to active myocardium, so that the passive scar volume cannot dilute the error.
Depolarization amplitude (columns AR, DA-MAE). The amplitude of a node is its peak voltage above its own first frame,
AR is a single ratio of mean amplitudes: 1 means the action-potential swing is reproduced, below 1 means a damped prediction, above 1 an over-shooting one.
Timing (columns LAT, APD90, RT). The activation time is the first time the trace rises through mV, obtained by linear interpolation between the two neighbouring frames. The repolarization time is the first time after the peak at which the trace falls back to , that is 90% repolarized; and are the same quantities of the prediction. Let be the set of nodes that activate in the ground truth and the set that also repolarizes in the ground truth.
Timing is scored only where the ground truth provides the event. When a prediction never crosses the threshold, its time is set to the last frame of the window, so a missed activation or repolarization is counted as a large error rather than silently dropped.
Training objective. Training minimizes a pointwise voltage term plus an amplitude guard. Let be the lumped node volume of node , and let and be the standard deviation over time of the true and predicted trace of node . For one graph,
The loss of a batch is the unweighted mean of over its graphs, so that large and small anatomies contribute equally. The amplitude guard is needed because a plain voltage MSE is minimized by a damped, nearly flat trace that averages the error across frames; penalizing the mismatch of the per-node temporal standard deviation keeps the action-potential swing.
Two remarks. First, the metrics above are unweighted node averages, while the loss is volume weighted; the two therefore agree in ranking but not in absolute value. Second, the lag-based model additionally supervises its explicit activation-time head against the baked ground-truth activation times with a Huber term of transition width 5 ms and weight 1, added to (39).
| Model | Node MAE (mV) | Volume MAE (mV) | Volume LAT (ms) | Volume APD90 (ms) | Volume RT (ms) |
| GATv2 | 35.33 ± 4.29 | 35.71 ± 4.33 | 1235.10 ± 241.93 | 600.42 ± 110.48 | 653.98 ± 234.74 |
| GHR | 20.31 ± 5.65 | 19.90 ± 6.09 | 272.56 ± 183.60 | 471.11 ± 123.79 | 439.10 ± 184.62 |
| GINO | 20.78 ± 8.27 | 20.58 ± 8.42 | 188.59 ± 180.69 | 476.35 ± 153.31 | 440.41 ± 190.27 |
| GWNO | 20.54 ± 8.26 | 20.32 ± 8.41 | 178.00 ± 173.41 | 425.40 ± 118.24 | 405.80 ± 167.16 |
| HGT | 15.55 ± 5.09 | 15.42 ± 5.24 | 175.35 ± 180.07 | 429.18 ± 107.86 | 399.70 ± 154.66 |
| HGT-Lag | 16.86 ± 7.61 | 16.85 ± 7.85 | 241.67 ± 265.74 | 368.64 ± 151.98 | 279.12 ± 119.69 |
| GAP2ODE | 10.21 ± 4.62 | 10.16 ± 4.80 | 98.10 ± 122.56 | 436.63 ± 128.77 | 404.82 ± 163.31 |
Table 5. Paired node- and physical-volume-weighted test metrics across the seven available models (73 simulations per model). Values are mean ± sample standard deviation across simulations. Volume weights are summed over exact KMIS clusters; voltage metrics score the released pooled graph field.
Physical-volume-weighted sensitivity analysis
Uniform node averages can depend on spatial sampling density within a simulation. We therefore report a paired sensitivity analysis using the physical tissue volume represented by each pooled graph node. On the original tetrahedral mesh, the lumped volume at a vertex is one quarter of the sum of incident tetrahedron volumes. For the released KMIS graph, vertex volumes are summed over the exact saved pooling clusters to give weights for each retained node. Nodes with no represented tetrahedral tissue have zero weight. For each simulation, the volume-weighted voltage MAE is
Where represent the amount of time frames.
Volume-weighted LAT, APD90, and RT are computed under the same conditions of the table in the main section of the manuscript. We first calculate each metric per simulation and then report its mean and sample standard deviation across simulations.
The analysis covers all seven Table 1 models with paired scores. The volume-weighted MAE ordering is unchanged: GAP2ODE retains the lowest voltage MAE, and HGT-Lag retains the lowest APD90 and RT errors. Weighting reverses three close secondary comparisons: GWNO versus HGT on APD90, GHR versus GINO on RT, and GWNO versus GAP2ODE on RT.
Examples of predicted samples
In this subsection we report a scar and healthy example with high performance from the propagation-aware in Figures [Figure 11,Figure 12].
Figure 11. These are half cut spatial renders of different temporal snapshots of an healthy prediction. The figure reports in the first row the ground truth target; on the second the prediction of the model; in the third row the absolute error. Colormap is related to the signal and provided by the colorbar on the right.
Figure 12. These are half cut spatial renders of different temporal snapshots of a scarred prediction. The figure reports in the first row the ground truth target; on the second the prediction of the model; in the third row the absolute error. Colormap is related to the signal and provided by the colorbar on the right. The scar produces delay and there are signals overlapping.
Other examples
Biventricular and whole-heart runs
Extended Tables 6 and 7 classify the parameters of the healthy biventricular and whole-heart examples by computational-pipeline stage. These are the resolved plans used to produce Figures 13 and 14, rather than generic defaults. Coordinates and radii are in , times in ms, conduction velocities in m/s, and conductivities in S/m. Both runs use anatomy 01 from the zen4590294 four-chamber collection.
The resulting effective material parameters are reported separately in Table 7. Values are ordered as . The biventricular values and the unscaled whole-heart values were obtained by the calibration described above.
Table 7: Ionic models and effective orthotropic conductivities used in the resolved simulation plans. The biventricular values were obtained by CV-targeted calibration from literature-informed seeds; the whole-heart ventricular values include the documented post-calibration factor of nine. The intracellular and extracellular triples are denoted by and , respectively. “Both” means that the same values were used in the biventricular and whole-heart examples.
| Run | Tissue | Ionic model | ||
| Biventricular | endocardium | Tomek ENDO | (0.23048, 0.06387, 0.02906) | (0.62, 0.24, 0.24) |
| mid-myocardium | Tomek MCELL | (0.23713, 0.06531, 0.02956) | (0.62, 0.24, 0.24) | |
| epicardium/default myocardium | Tomek EPI | (0.23324, 0.06494, 0.02978) | (0.62, 0.24, 0.24) | |
| Whole heart | endocardium | Tomek ENDO | (2.07434, 0.57487, 0.26154) | (5.58, 2.16, 2.16) |
| mid-myocardium | Tomek MCELL | (2.13419, 0.58776, 0.26605) | (5.58, 2.16, 2.16) | |
| epicardium/default myocardium | Tomek EPI | (2.09919, 0.58442, 0.26804) | (5.58, 2.16, 2.16) | |
| left/right atrium | Courtemanche | (3.50587, 1.06203, 0.37812) | (5.58, 2.16, 2.16) | |
| Both | LV/RV Purkinje | Tomek ENDO | (18.36735, 3.77421, 1.25709) | (62.0, 24.0, 24.0) |
Table 7.
Extended results of the benchmark
In this subsection we report the statistical distribution over the samples metrics of the models on the test set. It is increasingly evident that HGT-lag outperforms the other models in detecting the waveform of the signal, even if overall makes more mistakes on some samples that it finds harder. In fact it tests on a subset of samples with the highest performance, as stated in Figure 15
Table 6: Taxonomy of the parameters needed to reproduce the healthy multichamber runs. , and denote the fibre, sheet and sheet-normal directions.
| Pipeline stage | Parameter class | Biventricular healthy | Whole-heart healthy |
| Geometry | Chamber extraction | Source tags 1–2 (LV, RV) | Source tags 1–4 (LV, RV, LA, RA) |
| Resolution | target 2000; allowed 1500–3000 | target X; allowed X–X | |
| Coordinates/fibres | VTK conversion; interpolated UVC and source fibre field | Same | |
| Tissue tagging | Ventricular wall | UVC : endo [0, .25), mid [.25, .75), epi [.75, 1] | Same; source tags additionally separate LA and RA |
| Purkinje construction | LV/RV adaptive trees; = 22 (maximum 26); apex roots; seeds 1213/2213 | Initial LV/RV trees as at left; LV root random_endo, RV root apex; subsequently converted to a line-network representation | |
| Purkinje coverage | target 0.30, radius 1200, one retry, distance-threshold factor 0.5 | Same as biventricular model | |
| Cell initialization | Ionic steady state | Tomek with default; 50 single-cell cycles at BCL 1000 | Same for the ventricles; Courtemanche LA/RA; 50 cycles at BCL 1000 |
| CV calibration | Target myocardium 0.67/0.30/0.17; Purkinje 6.7/3.0/1.7 | Same; atria 0.80/0.40/0.20 | |
| Full-mesh prepacing | Protocol | 5 stimulation cycles, BCL 1000; simultaneous LV/RV stimuli | 5 cycles, BCL 1000; SAN at 0, LV/RV roots at 160 |
| Production EP | Stimulus support | LV/RV spheres, radius 5000, centres (71783, 63136, 26527) and (108845, 15599, 13324) | SAN sphere, radius 5000, centre (17537, 56609, 102672); LV/RV root vertices 60159/86326 |
| Timing | 3 pulses, start 0, duration 2, BCL 1000; strength 250 | 3 pulses per site, duration 2, BCL 1000; SAN/root offsets 0/160;) | |
| Numerics | Monodomain solver | , , tolerance , operator splitting and mass lumping; spacedt = 0.5, timedt = 1 | Same |
Table 6.

Figure 13. representative healthy biventricular simulation shown at six stages of the paced trajectory. Colour denotes transmembrane voltage. This example demonstrates extension of the generation pipeline to coupled LV and RV tissue with chamber-specific fast-conduction regions; it is not part of the quantitative LV benchmark.
Figure 14. Representative healthy whole-heart simulation shown at six stages of the activation trajectory. Colour denotes transmembrane voltage. The example couples atrial and ventricular electrophysiology and is included as a pipeline demonstration rather than part of the quantitative LV benchmark.
References
- [1]Jason Bayer, Anton J Prassl, Ali Pashaei, Juan F Gomez, Antonio Frontera, Aurel Neic, Gernot Plank, and Edward J Vigmond. Universal ventricular coordinates: A generic framework for describing position within the heart and transferring data. Medical image analysis, 45:83–93, 2018.DOI
- [2]Shaked Brody, Uri Alon, and Eran Yahav. How attentive are graph attention networks? arXiv preprint arXiv:2105.14491, 2021.arxiv.org/abs/2105.14491
- [3]Stefano Carotti, Marco Pacini, Alessio Gravina, Davide Bacciu, Bruno Lepri, and Sebastiano Bontorin. Graph hierarchical recurrence for long-range generalization. arXiv preprint arXiv:2605.18387, 2026.arxiv.org/abs/2605.18387
- [4]Francisco Sahli Costabal, Daniel E Hurtado, and Ellen Kuhl. Generating purkinje networks in the human heart. Journal of biomechanics, 49(12):2455–2465, 2016.DOI
- [5]Marc Courtemanche, Rafael J Ramirez, and Stanley Nattel. Ionic mechanisms underlying human atrial action potential properties: insights from a mathematical model. American Journal of Physiology-Heart and Circulatory Physiology, 275(1):H301–H321, 1998.DOI
- [6]Piero Colli Franzone, Luca Franco Pavarino, and Simone Scacchi. Mathematical cardiac electrophysiology. Springer, 2014.DOI
- [7]Matthias AF Gsell, Aurel Neic, Martin J Bishop, Karli Gillette, Anton J Prassl, Christoph M Augustin, Edward J Vigmond, and Gernot Plank. Forcepss—a framework for cardiac electrophysiology simulations standardization. Computer Methods and Programs in Biomedicine, 251:108189, 2024.DOI
- [8]Zongyi Li, Nikola Borislavov Kovachki, Chris Choy, Boyi Li, Jean Kossaifi, Shourya Prakash Otta, Mohammad Amin Nabian, Maximilian Stadler, Christian Hundt, Kamyar Azizzadenesheli, and Anima Anandkumar. Geometry-informed neural operator for large-scale 3d pdes, 2023.arxiv.org/abs/2309.00583
- [9]Songrit Maneewongvatana and David M Mount. Analysis of approximate nearest neighbor searching with clustered point sets. arXiv preprint cs/9901013, 1999.
- [10]Steven A. Niederer, Eric Kerfoot, Alan P. Benson, Miguel O. Bernabeu, Olivier Bernus, Chris Bradley, Elizabeth M. Cherry, Richard Clayton, Flavio H. Fenton, Alan Garny, Elvio Heidenreich, Sander Land, Mary Maleckar, Pras Pathmanathan, Gernot Plank, José F. Rodríguez, Ishani Roy, Frank B. Sachse, Gunnar Seemann, Ola Skavhaug, and Nic P. Smith. Verification of cardiac tissue electrophysiology simulators using an N-version benchmark. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 369(1954):4331–4351, 2011.
- [11]Gernot Plank, Axel Loewe, Aurel Neic, Christoph Augustin, Yung-Lin Huang, Matthias AF Gsell, Elias Karabelas, Mark Nothstein, Anton J Prassl, Jorge Sánchez, et al. The opencarp simulation environment for cardiac electrophysiology. Computer methods and Programs in Biomedicine, 208:106223, 2021.DOI
- [12]Marina Strocchi, Christoph M Augustin, Matthias AF Gsell, Elias Karabelas, Aurel Neic, Karli Gillette, Odrod Razeghi, Anton J Prassl, Edward J Vigmond, Jonathan M Behar, et al. A publicly available virtual cohort of four-chamber heart meshes for cardiac electro-mechanics simulations. PloS one, 15(6):e0235145, 2020.DOI
- [13]Jakub Tomek, Alfonso Bueno-Orovio, Elisa Passini, Xin Zhou, Ana Minchole, Oliver Britton, Chiara Bartolucci, Stefano Severi, Alvin Shrier, Laszlo Virag, et al. Development, calibration, and validation of a novel human ventricular myocyte model in health, disease, and drug block. elife, 8:e48890, 2019.DOI









