Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy

Ricarda Buttmann, Andreas M. LehrmannarXiv 2026

TL;DR

Electrocardiographic imaging (ECGI) is often hampered by "operator discrepancy"—the gap between a simplified mathematical model of a patient's body and their actual anatomy. OpDis-PS is a novel diffusion posterior sampler that treats this discrepancy as a predictable, signal-dependent error rather than random noise, enabling significantly more accurate non-invasive heart mapping, especially for rare cardiac pathologies.

What Problem Does This Paper Address?

Electrocardiographic imaging (ECGI) is a "holy grail" for cardiologists: it aims to reconstruct the electrical potentials on the surface of the heart using only electrodes placed on the torso. Mathematically, this is an ill-posed inverse problem. The torso acts like a thick, blurry lens, attenuating and smoothing the heart's electrical signals.

To solve this, researchers often use a "forward operator"—a matrix that describes how electrical signals travel through a specific patient's torso. However, this operator is almost always an estimate. Factors like respiration, posture, and unknown layers of subcutaneous fat mean the "nominal" operator used for reconstruction differs from the "recording" operator that actually generated the data.

Most existing methods either ignore this discrepancy or treat it as simple, independent noise. This paper argues that operator error is structured and signal-dependent: if you know what the heart signal looks like, you can actually predict how the model error will manifest.

Methods

The authors introduce OpDis-PS (Operator Discrepancy - Posterior Sampling). It builds on the success of diffusion models, which are excellent at learning complex "priors" (what a healthy or pathological heart signal should look like).

The key innovation lies in how OpDis-PS handles the likelihood—the part of the model that connects the heart signal to the body surface observations:

  1. Signal-Conditional Error Modeling: Instead of assuming the error is random, OpDis-PS models the discrepancy as a function of the nominal signal. It uses a Gaussian approximation-error framework to learn a linear correction for the forward operator.
  2. Corrected & Whitened Likelihood: The predictable part of the error is "folded" into a corrected forward operator. The remaining unpredictable part (the residual) is handled by a "whitening" step that accounts for correlations across different electrode locations.
  3. Frozen Prior: Crucially, the generative diffusion prior remains fixed. You don't need to retrain the expensive AI model for every different body type; you only adapt the likelihood function at inference time.
Figure 2: Model. The diagram traces the observation model from the physical forward problem to the whitened likelihood consumed by the posterior sampler. The recording operator A0 generates the observation, while the nominal operator A is used for reconstruction; from the discrepancy panel onward, all quantities are expressed in reduced coordinates.

Datasets

The study relies on high-fidelity simulations to provide ground-truth data that is impossible to get in live patients:

  • Geometries: 1,000 synthetic heart meshes and 167 torso geometries derived from the TotalSegmentator CT dataset.
  • Electrophysiology: Simulations performed using openCARP, covering both healthy physiological rhythms and three major pathologies: Left Bundle Branch Block (LBBB), Right Bundle Branch Block (RBBB), and Myocardial Scars.
  • Discrepancy Sources: Two realistic scenarios were tested: variations in lung conductivity (simulating different breath-hold states) and the addition of a subcutaneous fat layer.
Figure 3: Illustrative examples of pathologies. Ground-truth local activation-time (LAT) maps for the selected pathologies. The gray overlay marks the modeled scar region. The bundle-branch-block examples share the same heart geometry, whereas the scar example has a different anatomy.

Key Insights and Ideas

  • Error is Predictable: The "aha moment" here is that operator discrepancy isn't just chaos. Because the physics of volume conduction is linear, the error caused by a wrong conductivity estimate is also linearly related to the heart signal.
  • Physics + AI > AI Alone: Purely "amortized" models (like Transformers) that map body signals directly to heart signals tend to overfit their training data. They struggle when they see a heart pathology they weren't trained on. OpDis-PS combines a learned prior with explicit physics, allowing it to generalize much better to unseen medical conditions.
  • Likelihood Adaptation: By focusing on the likelihood rather than the prior, the authors provide a modular way to handle anatomical uncertainty without needing a massive, all-encompassing dataset of every possible body type.

Key Results

OpDis-PS consistently outperformed classical regularization (Tikhonov, Total Variation) and other state-of-the-art learning methods:

  • Accuracy: It achieved the lowest Relative Error (RE) and highest spatial/temporal correlation across both lung and fat discrepancy tests.
  • Pathology Performance: The gains were most pronounced on held-out pathologies. For example, in the lung conductivity test, OpDis-PS achieved a spatial correlation (sCC) of 0.853, significantly higher than the standard DPS (0.724) or Tikhonov methods (~0.65).
  • Visual Fidelity: Qualitative results show that OpDis-PS recovers sharp activation fronts that other methods either blur or displace.
Qualitative comparison showing OpDis-PS recovering a sharp activation front in an LBBB case.

Limitations and Future Work

While promising, the authors note several hurdles for clinical adoption:

  • Simulation Gap: The model was trained and tested on simulated data. Real-world recordings contain complex noise and artifacts (like muscle interference) not fully captured here.
  • Linear-Gaussian Assumption: The discrepancy model assumes a linear-Gaussian relationship. While this works for conductivity and fat layers, more complex anatomical shifts (like heart displacement) might require non-linear modeling.
  • Inference Speed: While faster than some iterative methods, diffusion sampling still takes several seconds per case, which might need optimization for real-time clinical use.

Future work will likely focus on calibrating uncertainty for real-world recordings and exploring how this framework handles more complex, non-linear anatomical variations.

Summary updated

Abstract

Electrocardiographic imaging (ECGI) reconstructs heart-surface potentials from body-surface potentials, an ill-posed inverse problem. Diffusion posterior samplers combine a learned prior with an explicit forward operator that they assume to be accurate. In ECGI this operator is only an estimate, because the body changes with respiration and posture, and body composition such as subcutaneous fat is rarely known for an individual patient. The resulting operator discrepancy is structured and depends on the heart signal. We introduce OpDis-PS, a diffusion posterior sampler that models this discrepancy instead of treating it as signal-independent noise. OpDis-PS learns how the discrepancy depends on the signal, folds this into a corrected forward operator, and reconstructs with a fixed prior across all operator conditions. We study two realistic sources of discrepancy, changing lung conductivity and an added subcutaneous-fat layer. Across both, OpDis-PS reconstructs more accurately than classical regularization and learned predictors, with its largest gains on held-out cardiac pathologies.
BibTeX
@misc{buttmann2026electrocardiographic,
  author = {Ricarda Buttmann and Andreas M. Lehrmann},
  title = {{Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy}},
  year = {2026},
  eprint = {2611.17851},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17851},
}
Figure