CardioFit: A WebGL-Based Tool for Fast and Efficient Parameterization of Cardiac Action Potential Models to Fit User-Provided Data
Darby I. Cairns, Maxfield R. Comstock, Flavio H. Fenton, Elizabeth M. Cherry
TL;DR
This work tackles the challenge of rapidly identifying parameterizations for cardiac action potential models that reproduce data under diverse pacing conditions. It introduces CardioFit, a web-based tool that employs particle swarm optimization implemented in JavaScript and accelerated by WebGL to fit voltage time series and APD data across multiple cycle lengths. The approach supports several phenomenological AP models, an interactive interface for specifying data, models, and parameter bounds, and demonstrates accurate fittings to both model-derived and experimental datasets while providing insights into parameter roles and identifiability. The result is a fast, accessible platform that enables patient-specific or scenario-specific parameterizations without requiring local software installation, with practical impact for research and potential clinical translation.
Abstract
Cardiac action potential models allow examination of a variety of cardiac dynamics, including how behavior may change under specific interventions. To study a specific scenario, including patient-specific cases, model parameter sets must be found that accurately reproduce the dynamics of interest. To facilitate this complex and time-consuming process, we present an interactive browser-based tool that uses the particle swarm optimization (PSO) algorithm implemented in JavaScript and taking advantage of the WebGL API for hardware acceleration. Our tool allows rapid customization and can find low-error fittings to user-provided voltage time series or action potential duration data from multiple cycle lengths in a few iterations (10-32), corresponding to a runtime of a few seconds on most machines. Additionally, our tool focuses on ease of use and flexibility, providing a webpage interface that allows users to select a subset of parameters to fit, set the range of values each parameter is allowed to assume, and control the PSO algorithm hyperparameters. We demonstrate our tool's utility by fitting a variety of models to different datasets, showing how convergence is affected by model choice, dataset properties, and PSO algorithmic settings, and explaining new insights gained about the physiological and dynamical roles of the model parameters.
