# Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy

Ricarda Buttmann, Andreas M. Lehrmann · arXiv · 2026-11-13

- **Problem** Diffusion posterior samplers treat their forward operator as accurate, but in ECGI that operator is only an estimate, and its error depends on the cardiac signal.
- **Method** Learns a signal-conditional linear correction and residual covariance for the nominal operator offline, then whitens the corrected likelihood and samples with a frozen diffusion prior.

![Figure 2: Model. The diagram traces the observation model from the physical forward problem to the whitened likelihood consumed by the posterior sampler. The r…](https://refivu.com/papers/d9ef88f1-6d57-4365-ad73-b34a7d0d5ebf/figures/figure-5383c209383476b2ed37c4338a84b76e.png?thumb=512)

**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.

[Original paper](https://arxiv.org/abs/2611.17851v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ricarda Buttmann, Andreas M. Lehrmann · Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy · Original paper figure · Extracted the figure area from page 6 of the original PDF.

## Why a fixed operator breaks in ECGI

ECGI estimates heart-surface potentials from body-surface potentials through a linear forward model, and this inversion is ill-conditioned, so small model errors are amplified. The mismatch between the operator used to invert and the one that produced the data is therefore not a minor nuisance in this setting.

Diffusion posterior samplers such as DPS and DDRM pair a learned prior with an explicit measurement model, but they were introduced for vision tasks and assume that this measurement model is accurate. In ECGI the nominal operator is built from an anatomical model and assumed conductivities, while the recording operator changes with respiration, posture, electrode placement and body composition.

The resulting error is structured: it depends on the heart signal being reconstructed, so it cannot be captured by a fixed, signal-independent noise term.

## Turning the operator mismatch into a corrected likelihood

The observation splits into the nominal term, a discrepancy term and noise, where the discrepancy is the recording operator minus the nominal operator applied to the heart-template potentials. \\\[ b = A h + d + \\varepsilon, \\quad d = (A\_0 - A)\\, h \\\] The discrepancy vanishes in the nominal condition, and the figure traces how the recording and nominal operators enter the pipeline before the whitening step.

OpDis-PS treats the nominal signal s equal to A h and the discrepancy column d as jointly Gaussian for each time point, which makes the discrepancy a signal-conditional variable. The conditional mean is linear in s, with predictor L equal to C\_ds C\_ss inverse, and the residual covariance Σ\_r equals C\_dd minus L C\_sd. The residual is independent of the signal, so only the predictable part is removed from the observation and the rest stays as a covariance term.

The predictable part is absorbed into a corrected operator Ã equal to (I + L) A, and the constant bias is subtracted from each column of b. The combined noise then has covariance Σ\_r plus σ² times the identity on the reduced coordinates, and the two parameters are estimated separately for each discrepancy source. L is computed with trace-scaled ridge regularization, and Σ\_r is obtained from the fitted residuals with Ledoit–Wolf shrinkage.

The combined noise is correlated across measurement coordinates, so the corrected observation and operator are whitened with W equal to (Σ\_r + σ² I) to the power minus one half. The whitened operator and observation then feed a spectral posterior sampler that treats the noise as isotropic, while the diffusion prior trained on heart-template potentials stays frozen.

For each observation the sampler returns K posterior draws, and their Monte Carlo mean is the reconstruction.

## Simulated data and the two discrepancy sources

Heart meshes come from 1000 synthetic four-chamber models, and 167 torso geometries with complete coverage are retained from the TotalSegmentator CT scans. Each heart is paired with compatible torsos, 176 electrode locations form a fixed vest layout, and heart and torso identities are split before pairing into 1700 training pairs, 100 validation pairs and 250 physiological test pairs.

Ventricular activity is simulated with openCARP over 450 ms sampled every 5 ms, and the simulated potentials are mapped onto the 1800-point heart template. Training covers 5100 sequences over the QRST interval.

For lung-conductivity discrepancy the nominal operator sets the lungs to 0.05 S/m and the rest of the torso to 0.22 S/m, while the recording operator draws the lung conductivity uniformly from 0.03 to 0.15 S/m. The approximation-error model uses a narrower range of lung conductivities, 0.04 to 0.10 S/m, so it never sees the full range of test operators.

That layer is 3 to 20 mm thick across test cases, whereas the approximation-error model draws thicknesses from 5 to 15 mm.

Pathological test sequences cover four severity configurations each of left bundle branch block, right bundle branch block and myocardial scar, giving 720 sequences per discrepancy condition, and none of them enter training or validation. Measurement noise is set so that the Frobenius signal-to-noise ratio, 20 log10 of the norm of A0 h over the norm of the noise, equals 40 dB in the main comparison and 30 dB in an additional evaluation.

## Accuracy against baselines at 40 dB

Every baseline with an explicit forward operator uses the nominal operator, so the comparison isolates how each method handles the mismatch. Variational baselines are first-order and spatio-temporal Tikhonov and Total Variation, the amortized baselines are a Transformer and Palette, and the posterior samplers are DPS and DDRM.

On pathological data under lung-conductivity discrepancy, OpDis-PS reached a relative error of 0.393, ahead of DDRM at 0.425, Palette at 0.517 and the Transformer at 0.561, while Total Variation and spatial Tikhonov were at 0.618 and 0.737.

Under subcutaneous-fat discrepancy, OpDis-PS reached a relative error of 0.395 on pathological data, against 0.460 for DDRM, 0.520 for Palette and 0.565 for the Transformer.

The authors read the gain over DDRM as isolating the discrepancy-aware likelihood, because the two methods share the prior, nominal operator and sampler. They also note that the amortized methods are competitive on physiological activation but degrade most on pathological activation, together with DPS.

## What the LBBB reconstruction shows

The example is one illustrative left bundle branch block case under lung-conductivity discrepancy, shown at 110 ms with 40 dB measurement noise. OpDis-PS and Palette recover the sharp activation front most clearly, and OpDis-PS shows the closest agreement with the ground truth. The Transformer blurs the front into a more diffuse shape, DPS displaces it spatially with attenuated contrast, and spatial Tikhonov keeps the displacement but broadens the front.

## Limits of the discrepancy model and evidence

The evaluation uses simulated electrophysiology and only two discrepancy sources, and the approximation-error model is estimated on a narrower distribution than the one that generates the test operators. The misspecification between these distributions was not varied systematically.

The linear predictor explains much less of the lung-conductivity discrepancy than of the subcutaneous-fat discrepancy, with held-out R2 of 0.441 against 0.937. The main tables report only the 40 dB condition, and the evaluation under stronger measurement noise is given in an appendix.

## Paper info

- **Authors**: Ricarda Buttmann, Andreas M. Lehrmann
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-13
- **Added**: 2026-11-16
- **Updated**: 2026-11-13
- **Version**: v1
- **arXiv**: 2611.17851
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.17851v1) · [PDF ↗](https://arxiv.org/pdf/2611.17851v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## 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.

## Quote from the paper

Ricarda Buttmann, Andreas M. Lehrmann (2026). Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy. arXiv:2611.17851v1. https://arxiv.org/abs/2611.17851v1

**BibTeX**

```
@misc{buttmann2026electrocardiographic,
  title = {{Electrocardiographic Imaging via Posterior Sampling under Operator Discrepancy}},
  author = {Ricarda Buttmann and Andreas M. Lehrmann},
  year = {2026},
  eprint = {2611.17851},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17851v1}
}
```

## Terms in this paper

- [Transformer](https://refivu.com/en/terms/48e8be2570bc-transformer)
- [relative error](https://refivu.com/en/terms/2688f874c6a8-relative-error)
- [total variation](https://refivu.com/en/terms/1be23df5f7af-total-variation)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/d9ef88f1-6d57-4365-ad73-b34a7d0d5ebf-electrocardiographic-imaging-via-posterior-sampling-under)
