Abstract
Atrial fibrillation (AF) is a common cardiac arrhythmia characterised by disordered electrical activity in the atria. The standard treatment is catheter ablation, which is invasive and irreversible. Recent advances in computational electrophysiology offer the potential for patient-specific models that can be used to guide clinical decisions. To be of practical value, we must be able to rapidly calibrate physics-based models using routine clinical measurements. We pose this calibration task as a static inverse problem, where the goal is to infer spatially homogenous tissue-level electrophysiological parameters from the available observations. To make this tractable, we replace the expensive forward model with Gaussian process emulators (GPEs), and propose a novel adaptation of the ensemble Kalman filter (EnKF) for static non-linear inverse problems. The approach yields parameter samples that can be interpreted as coming from the best Gaussian approximation of the posterior distribution. We compare our results with those obtained using Markov chain Monte Carlo (MCMC) sampling and demonstrate the potential of the approach to enable near-real-time patient-specific calibration, a key step towards predicting outcomes of AF treatment within clinical timescales. The approach is readily applicable to a wide range of static inverse problems in science and engineering.
Data availability
The datasets used and analysed during the current study are available from the corresponding author on reasonable request.
References
Linz, D. et al. Atrial fibrillation: epidemiology, screening and digital health. Lancet Reg. Health Eur. 37 (2024).
Clayton, R. H. et al. Models of cardiac tissue electrophysiology: progress, challenges and open questions. Prog. Biophys. Mol. Biol. 104(1–3), 22–48 (2011).
Niederer, S. A., Lumens, J. & Trayanova, N. A. Computational models in cardiology. Nat. Rev. Cardiol. 16(2), 100–111 (2019).
Boyle, P. M. et al. Computationally guided personalized targeted ablation of persistent atrial fibrillation. Nat. Biomed. Eng. 3(11), 870–879 (2019).
Bayer, J. D., Blake, R. C., Plank, G. & Trayanova, N. A. A novel rule-based algorithm for assigning myocardial fiber orientation to computational heart models. Ann. Biomed. Eng. 40(10), 2243–2254 (2012).
Roney, C. H. et al. Constructing bilayer and volumetric atrial models at scale. Interface Focus 13(6), 20230038 (2023).
Jaffery, O. A., Melki, L., Slabaugh, G., Good, W. W. & Roney, C. H. A review of personalised cardiac computational modelling using electroanatomical mapping data. Arrhythmia & Electrophysiology Review 13, e08 (2024).
Nairn, D., et al. Differences in atrial substrate localization using late gadolinium enhancement-magnetic resonance imaging, electrogram voltage, and conduction velocity: a cohort study using a consistent anatomical reference frame in patients with persistent atrial fibrillation. Europace 25(9), euad278 (2023).
Coveney, S., et al. Gaussian process manifold interpolation for probabilistic atrial activation maps and uncertain conduction velocity. Phil. Trans. R. Soc. A 378, 2173, 20190345 (2020).
Coveney, S. et al. Bayesian calibration of electrophysiology models using restitution curve emulators. Front. Physiol. 12, 693015 (2021).
Evensen, G. The ensemble Kalman filter: theoretical formulation and practical implementation. Ocean Dyn. 53, 343–367 (2003).
Moradkhani, H., Sorooshian, S., Gupta, H. V. & Houser, P. R. Dual state-parameter estimation of hydrological models using ensemble Kalman filter. Adv. Water Resour. 28(2), 135–147 (2005).
Huang, R. et al. Calibrating parameters of power system stability models using advanced ensemble Kalman filter. IEEE Trans. Power Syst. 33(3), 2895–2905 (2017).
Wu, M. & Smyth, A. W. Application of the unscented Kalman filter for real-time nonlinear structural system identification. Struct. Control Health Monit. 14(7), 971–990 (2007).
Corrado, C. & Niederer, S. A. A two-variable model robust to pacemaker behaviour for the dynamics of the cardiac action potential. Math. Biosci. 281, 46–54 (2016).
Tang, Y., Ambandan, J. & Chen, D. Nonlinear measurement function in the ensemble Kalman filter. Adv. Atmos. Sci. 31, 551–558 (2014).
Kennedy, M. C. & O’Hagan, A. Bayesian calibration of computer models. J. R. Stat. Soc. Ser. B. Stat. Methodol. 63(3), 425–464 (2001).
Gramacy, R. B. Surrogates: Gaussian Process Modeling, Design, and Optimization for the Applied Sciences. Chapman and Hall/CRC (2020).
Williams, C. K. I. & Rasmussen, C. E. Gaussian Processes for Machine Learning. (MIT Press, 2006).
Iglesias, M. A., Law, K. J. H. & Stuart, A. M. Ensemble Kalman methods for inverse problems. Inverse Problems 29(4), 045001 (2013).
Kovachki, N. B. & Stuart, A. M. Ensemble Kalman inversion: a derivative-free technique for machine learning tasks. Inverse Problems 35(9), 095005 (2019).
Raveendran, T., Gupta, S., Vasu, R. M. & Roy, D. Pseudo-time particle filtering for diffuse optical tomography. J. Opt. Soc. Am. A 28(10), 2070–2081 (2011).
Raveendran, T., Gupta, S., Vasu, R. M. & Roy, D. A pseudo-time EnKF incorporating shape based reconstruction for diffuse optical tomography. Med. Phys. 39(2), 1092–1101 (2012).
Lin, Z., Sun, Y., Yin, F. & Thiéry, A. H. Ensemble Kalman filtering meets Gaussian process SSM for non-mean-field and online inference. IEEE Trans. Signal Process. (2024).
Schillings, C. & Stuart, A. M. Analysis of the ensemble Kalman filter for inverse problems. SIAM J. Numer. Anal. 55(3), 1264–1290 (2017).
Plank, G. et al. The openCARP simulation environment for cardiac electrophysiology. Comput. Methods Programs Biomed. 208, 106223 (2021).
Roney, C. H.,et al. Predicting atrial fibrillation recurrence by combining population data and virtual cohorts of patient-specific left atrial models. Circ. Arrhythm. Electrophysiol. 15(2), e010253 (2022).
Mamajiwala, M., Corrado, C., Niederer, S., Wilkinson, R. & Clayton, R. Global sensitivity analysis of left atrial electrophysiology models. In Computing in Cardiology, 1–4 (2024).
Bode, F., Kilborn, M., Karasik, P. & Franz, M. R. The repolarization-excitability relationship in the human right atrium is unaffected by cycle length, recording site and prior arrhythmias. J. Am. Coll. Cardiol. 37(3), 920–925 (2001).
Corrado, C. et al. A work flow to build and validate patient specific left atrium electrophysiology models from catheter measurements. Med. Image Anal. 47, 153–163 (2018).
Beckett, G., et al. ARCHER2 service description. Zenodo (2024).
Roney, C. H. et al. Universal atrial coordinates applied to visualisation, registration and construction of patient specific meshes. Med. Image Anal. 55, 65–75 (2019).
Wieland, F.-G., Hauber, A. L., Rosenblatt, M., Tönsing, C. & Timmer, J. On structural and practical identifiability. Curr. Opin. Syst. Biol. 25, 60–69 (2021).
Pertsov, A. M., Davidenko, J. M., Salomonsz, R., Baxter, W. T. & Jalife, J. Spiral waves of excitation underlie reentrant activity in isolated cardiac muscle. Circ. Res. 72(3), 631–650 (1993).
Coveney, S. et al. Calibrating cardiac electrophysiology models using latent Gaussian processes on atrial manifolds. Sci. Rep. 12(1), 16572 (2022).
Iglesias, M. & Yang, Y. Adaptive regularisation for ensemble Kalman inversion. Inverse Problems 37(2), 025008 (2021).
Garbuno-Inigo, A., Hoffmann, F., Li, W. & Stuart, A. M. Interacting Langevin diffusions: gradient structure and ensemble Kalman sampler. SIAM J. Appl. Dyn. Syst. 19(1), 412–441 (2020).
Cleary, E., Garbuno-Inigo, A., Lan, S., Schneider, T. & Stuart, A. M. Calibrate, emulate, sample. J. Comput. Phys. 424, 109716 (2021).
Fenton, F. & Karma, A. Vortex dynamics in three-dimensional continuous myocardium with fiber rotation: filament instability and fibrillation. Chaos 8(1), 20–47 (1998).
Fenton, F. H., Cherry, E. M., Hastings, H. M. & Evans, S. J. Multiple mechanisms of spiral wave breakup in a model of cardiac electrical activity. Chaos 12(3), 852–892 (2002).
Bueno-Orovio, A., Cherry, E. M. & Fenton, F. H. Minimal model for human ventricular action potentials in tissue. J. Theor. Biol. 253(3), 544–560 (2008).
Corrado, C., Roney, C. H., Narayan, S. M., Giles, W. R. & Niederer, S. A. The effect of clinically relevant changes in extracellular electrolyte concentrations on human atrial arrhythmias. Commun. Med. 6, 7 (2025).
Strocchi, M. et al. Cell to whole organ global sensitivity analysis on a four-chamber heart electromechanics model using Gaussian processes emulators. PLOS Comput. Biol. 19, e1011257 (2023).
Lanyon, C. W., et al. Weaving the digital tapestry: methods for emulating cohorts of cardiac digital twins using Gaussian processes. Ann. Biomed. Eng. (to appear).
Loeppky, J. L., Sacks, J. & Welch, W. J. Choosing the sample size of a computer experiment: a practical guide. Technometrics 51(4), 366–376 (2009).
van Schie, M. S., Heida, A., Taverne, Y. J. H. J., Bogers, A. J. J. C. & de Groot, N. M. S. Identification of local atrial conduction heterogeneities using high-density conduction velocity estimation. EP Europace 23(11), 1815–1825 (2021).
Heida, A. et al. Reduction of conduction velocity in patients with atrial fibrillation. J. Clin. Med. 10(12), 2614 (2021).
Roy, D. & Gorti, G. V. Stochastic Dynamics, Filtering and Optimization (Cambridge University Press, 2017).
Kappen, H. J. Path integrals and symmetry breaking for optimal control theory. J. Stat. Mech. Theory Exp. 2005(11), P11011 (2005).
Hsu, E. P. Stochastic Analysis on Manifolds. American Mathematical Society (2002).
Mamajiwala, M. & Roy, D. Stochastic dynamical systems developed on Riemannian manifolds. Probabilistic Eng. Mech. 67, 103179 (2022).
Rainforth, T., Foster, A., Ivanova, D. R. & Bickford Smith, F. Modern Bayesian experimental design. Statist. Sci. 39(1), 100–114 (2024).
Piazzese, C., Carminati, M. C., Pepi, M. & Caiani, E. G. Statistical shape models of the heart: applications to cardiac imaging. In Statistical Shape and Deformation Analysis, 445–480. (Elsevier, 2017).
Acknowledgements
This work used the ARCHER2 UK National Supercomputing Service (https://www.archer2.ac.uk). We thank Caroline H. Roney for valuable feedback and assistance with refining the figures.
Funding
This work was funded by the Engineering and Physical Sciences Research Council (EPSRC, grant EP/W000091/2).
Author information
Authors and Affiliations
Contributions
M.M. conceived and implemented the method. C.C. contributed scripts for atrial electrophysiology simulations, and C.W.L. contributed scripts for MCMC. R.H.C. and S.A.N. advised on cardiac modelling. R.D.W. advised on the mathematical formulation and design of numerical experiments. All authors reviewed the manuscript.
Corresponding authors
Ethics declarations
Competing Interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Mamajiwala, M., Corrado, C., Lanyon, C.W. et al. Rapid calibration of atrial electrophysiology models using Gaussian process emulators in the ensemble Kalman filter. Sci Rep (2026). https://doi.org/10.1038/s41598-026-39948-9
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-39948-9