1 Introduction

Since its inception in the 1960s, the field of computational cardiac electrophysiology has contributed to many advances in understanding the links between the flow of ions, transmembrane potential and electromechanical activity of the heart under control, pathological and drug-influenced conditions. In particular, much attention has been devoted to modelling the action potential within cardiac tissue—that is, the transmembrane potential at a given location, as a function of time, during a given cardiac cycle—and the extracellular potential, allowing simulation of electrocardiograms. Mathematical models are now available of the action potentials observed in many different species and cardiac cell types (Noble and Rudy 2001; Fink et al. 2011).

In this paper, we develop methods for simulating a system that is of particular interest for safety pharmacology—monolayers of human stem cell-derived cardiomyocytes (hSC-CMs). The Comprehensive in vitro Proarrhythmia Assay (CiPA) initiative has proposed a series of complementary cardiac safety assays to improve upon the current methods of assessing the arrhythmic risk associated with novel pharmaceutical compounds (Sager et al. 2014; Gintant et al. 2016). The use of hSC-CMs will form a key component of the CiPA paradigm through multi-cellular assays such as the micro-electrode array (Harris et al. 2013; Clements and Thomas 2014).

The action potentials of hSC-CMs are often classified into one of the three subpopulations, or phenotypes, two of which are shown in Fig. 1. The consequences of having different phenotypes of cell within a small tissue sample are difficult to investigate experimentally. We therefore propose simulation as a method by which the impact of variation in cell type on the cardiac safety assessment process may be investigated. In this paper, we compare two methods of simulating a system that contains variable cellular populations, with our primary focus on a future application to simulation of multi-cellular hSC-CM cultures.

Fig. 1
figure 1

Simulated action potentials of atrial-like and ventricular-like human stem cell-derived cardiomyocytes, generated using the Paci et al. (2013) model. Two properties of the action potentials are indicated. The maximum diastolic potential, MDP, is the most hyperpolarised potential. The action potential duration, \(\hbox {APD}_{90}\), is the time taken to achieve a given percentage (here, 90%) of repolarisation following the upstroke

1.1 Characteristics of Human Stem Cell-Derived Cardiomyocytes

Human stem cell-derived cardiomyocytes are electrophysiologically and structurally immature, with some of their properties resembling neonatal cells rather than their adult counterparts. They are small and rounded, with diameters of approximately 10–50 µm [see for example Snir et al. (2003), Gherghiceanu et al. (2011) or Fig. 1 in Ma et al. (2011)]. hSC-CMs typically beat spontaneously, with multi-cellular cultures exhibiting a focus of activation, or pacemaker region, which triggers excitation in the remainder of the culture. The activation wavefronts travel at slower speeds than observed in adult cardiac tissue, usually in the region of 2–20 cm/s (Burridge et al. 2011; Mehta et al. 2011; Lee et al. 2012).

As this system is made up of coupled oscillators, from a mathematical perspective we might expect to observe synchronous activation throughout the monolayer (Mirollo and Strogatz 1990). However, finite conduction velocities are observed.

Analysis of hSC-CM action potentials from single cells has indicated that three subpopulations, or phenotypes, may be present within a given sample of cells: atrial-like, ventricular-like and nodal-like (He et al. 2003; Zhang et al. 2009; Ma et al. 2011). The phenotypes are named to reflect the similarity with the action potentials found in the respective regions of the adult heart, and are usually defined in terms of metrics based on the duration of the action potential, although alternatives have also been proposed (Lopez-Redondo et al. 2016). Precise statistics on the relative abundance of each phenotype are difficult to obtain due to different methods of classification and inherent variability within each of the phenotypes (Pekkanen-Mattila et al. 2010). At the present time, there are differing views on the spatial organisation of these phenotypes within tissue. Zhu et al. (2016) and Vestergaard et al. (2017) reported regions of different action potential morphology within some, but not all, clusters of human embryonic stem cell-derived cardiomyocytes. However, Du et al. (2015) did not detect such spatial organisation in their studies of monolayers of human-induced pluripotent stem cell-derived cardiomyocytes, instead reporting a spectrum of action potential morphologies throughout the tissue.

1.2 Existing Methods for Tissue Simulations Containing Multiple Electrophysiology Phenotypes

Tissue-level cardiac electrophysiology is usually modelled using the monodomain or bidomain equations (Keener and Sneyd 2009). When modelling multiple phenotypes, the tissue is usually partitioned into regions containing only one phenotype. However, this method becomes computationally infeasible if the phenotypes are well-mixed within the tissue, as the tissue must be partitioned into many very small regions where just a single phenotype is present. Under these conditions, we may utilise the extended bidomain (or tridomain) model. The extended bidomain model adds a second intracellular domain for a second phenotype and has been used to simulate mixtures of cardiomyocytes and fibroblasts (Sachse et al. 2009) and gastrointestinal electrophysiology (Buist and Poh 2010). The two intracellular domains represent continuously linked regions of each of the two types of cell; a third intracellular domain would be required if it were to be used for simulating the three cell types reported in hSC-CM cultures. The extended bidomain model is well-suited for simulating thoroughly mixed cell types (Corrias et al. 2012), with the two interconnected intracellular domains providing a natural method by which two cell types can be considered to occupy a small unit of space. To model spatial variation in phenotype proportions in the extended bidomain model, we could adjust the surface area of each domain per unit volume of tissue (\(\chi \)). But, as Sachse et al. (2009) observed, “it is unclear [how we should adjust the intra- and inter-domain gap junction conductivities to model] the density and arrangement of myocytes and fibroblasts”. These authors linearly scaled the conductivities in each domain from values in tissues with 100% myocytes or 100% fibroblasts according to volume fraction of each phenotype. Based on the assumption that within each domain there are always connections between cells of a given phenotype, the number of connections is proportional to the volume fraction. These assumptions may not hold in regions with low proportions of a phenotype: with only say 10% of a given cell type present, a typical cell of that type does not ‘touch’ and share gap junctions with any cells of the same type, there may be no continuous domain of this cell type through which currents can flow.

We therefore take an alternative and perhaps simpler approach and develop a modified derivation of the bidomain equations that assumes a mixture of cell types within the repeating homogenisation unit that is used in their derivation.

1.3 Outline of Study

The overall goal of this study is to model the electrophysiological properties of cardiac tissue containing multiple cellular subpopulations by extending the derivation of the standard bidomain equations to permit the modelling of more than one cell type. The equations governing this model are derived in “Appendix A” and summarised in Sect. 2. In Sect. 3, we propose a suite of simulations, designed with two aims in mind: to verify the derivation of the model, and to illustrate some key properties of systems that contain more than one cellular population. We present the results of the simulations in Sect. 4. Finally, in Sect. 5, we conclude by discussing how these simulations can inform investigation of hSC-CM monolayers in a two-dimensional domain.

2 The Mathematical Model

As explained in Sect. 1.1, we require a mathematical model that includes more than one cellular phenotype. We consider two possibilities: tissue that may be partitioned into distinct regions that each contain only one cellular phenotype; and tissue where all phenotypes are well-mixed. These two situations are shown in Fig. 2. The derivation of this model (including all assumptions made) may be found in “Appendix A”, where the equations are written in nondimensional form. In dimensional form, these governing equations are

$$\begin{aligned} \chi \bigg (C_{m} \frac{\partial V}{\partial t} + I_{\text {ion}}\bigg )= & {} \nabla \cdot \left( \varSigma _{i} \nabla (V + \phi _{e}) \right) , \end{aligned}$$
(1)
$$\begin{aligned} 0= & {} \nabla \cdot \left( \varSigma _{i} \nabla V + \left( \varSigma _{i} + \varSigma _{e} \right) \nabla \phi _{e} \right) , \end{aligned}$$
(2)

where V is the transmembrane potential, \(\phi _{e}\) is the extracellular potential, \(\chi \) is the ratio of cell membrane area to volume, \(C_{m}\) is the capacitance of the membrane, \(I_{\text {ion}}\) is the ionic current per unit area (specified by the solution of a system of ordinary differential equations at each point in space), and \(\varSigma _{i},\varSigma _{e}\) are the intracellular and extracellular conductivity tensors. The surface area of the cell mebmrane consists of a fraction \(\rho _{1}\) of phenotype 1, and a fraction \(\rho _{2}=1-\rho _{1}\) of phenotype 2. If the capacitance of these phenotypes are \(C_{m1},C_{m2}\), and the ionic current densities per unit area are \(I_{\text {ion},1},I_{\text {ion},2}\) we have

$$\begin{aligned} C_{m}= & {} \rho _{1}\, C_{m1} + \rho _{2}\, C_{m2}, \end{aligned}$$
(3)
$$\begin{aligned} I_{\text {ion}}= & {} \rho _{1}\, I_{\text {ion},1} + \rho _{2}\, I_{\text {ion},2}. \end{aligned}$$
(4)

When modelling hSC-CMs, both the intracellular and extracellular conductivity tensors may be approximated as isotropic. As a consequence \(\varSigma _i = \alpha \varSigma _e\), and the bidomain equations simplify to the monodomain equation (Keener and Sneyd 2009):

$$\begin{aligned} \chi \left( C_m \frac{\partial V}{\partial t} + I_\text {ion}(V; \mathbf {u})\right) - \frac{\partial }{\partial x} \left( \varSigma \frac{\partial V}{\partial x}\right) = 0, \end{aligned}$$
(5)

where

$$\begin{aligned} \varSigma = \varSigma _i \left( \varSigma _i + \varSigma _e\right) ^{-1} \varSigma _e = \frac{\alpha }{1+\alpha } \varSigma _e. \end{aligned}$$

When the cells are not well-mixed, we may instead partition the tissue region into regions where only one phenotype is present and solve the monodomain equations on each of these regions; we refer to this model as the partitioned phenotypes (PP) model.

Fig. 2
figure 2

Different spatial distributions of cellular phenotype. The case on the left may be divided into two partitioned regions, each containing a single type of cell. Partitioning the case on the right into single-phenotype regions would result in many tiny partitions. Performing the homogenisation process over regions containing both types of cell is therefore preferable

3 Description of Simulations

Our initial simulations validate the governing equations by comparing several properties of the action potential, for both the PP and HP models, in the limit that the separation of scales parameter [defined in Eq. (22)] \(\delta \rightarrow 0\). We then demonstrate that the HP model may be used to reproduce experimental observations. Our simulations are all of a single fibre in one spatial dimension. Our boundary conditions enforce no flow of current across either end of the fibre and may be written

$$\begin{aligned} \frac{\partial V}{\partial x} = 0,\qquad \text {at both ends of the fibre.} \end{aligned}$$
(6)

This fibre is made up of two different cell types. In the absence of experimental evidence indicating any variation in conductivities, we assume constant intra- and extracellular conductivities throughout the fibre.

3.1 Simulation Sets

The simulations may be divided into six sets. In the first five sets, we use the phenomenological FitzHugh–Nagumo (FHN) action potential model (FitzHugh 1961; Nagumo et al. 1962) where

$$\begin{aligned} I_{\text {ion}}(V;w)= & {} V(V-\alpha )(1-V)-w, \end{aligned}$$
(7)
$$\begin{aligned} \frac{\mathrm{d}w}{\mathrm{d}t}= & {} \epsilon V - \beta w. \end{aligned}$$
(8)

This model is described by only three parameters, \(\alpha , \beta , \epsilon \), which are allowed to vary spatially to take account of different phenotypes. In particular, the model is self-exciting (i.e. does not require a stimulus to excite) if \(\alpha < 0\), and excitable (i.e. requires a sufficiently large external stimulus to excite) if \(\alpha \ge 0\). The linearity of the model in \(\alpha , \beta \) and \(\epsilon \) allows the parameters for the HP model to be calculated very easily using Eq. (4). For example, a parameter \(\alpha \) appears in the FHN model in Eq. (7). In the HP model, we denote this parameter by \(\alpha _{H}\), and see that it takes the value

$$\begin{aligned} \alpha _H = \rho _1\alpha _1 + \rho _2\alpha _2 . \end{aligned}$$
(9)

The values of \(\beta _{H}\) and \(\epsilon _H\) (the values of \(\beta \) and \(\epsilon \) used in the HP model) may be calculated in a similar manner. As such, the FHN model allows us to compare the predicted excitability properties of the HP model very effectively. In the final set of simulations, we use the physiological Paci et al. (2013) models of atrial-like and ventricular-like hSC-CM electrophysiology to investigate our intended use-case of simulating a monolayer of hSC-CMs, as used in safety pharmacology assays.

Fig. 3
figure 3

Spatial layout of the different phenotypes in the first three sets of simulations. The dark and light shades represent regions within which one of two cellular phenotypes is exclusively present. The cellular electrophysiology models that represent the two cell types are chosen from the six parameterisations of the FitzHugh–Nagumo model described in the main text. Intermediate shades denote the HP model with appropriate values of \(\rho _1\) and \(\rho _2\) (the relative contributions of each phenotype). The value of n indicates the number of regions into which the domain was partitioned when the PP model was used

Set 1 This set of simulations is designed to test whether the action potentials of the PP model tend towards those of the HP model as the size of the unit that we homogenise over is decreased; that is, in the limit \(\delta \rightarrow 0\), where \(\delta \) is defined in “Appendix A”. This is achieved by varying n, the number of repeating units that the domain is divided into. The layout of phenotypes is shown in Fig. 3. Four different combinations of parameterisations of the FitzHugh–Nagumo model are investigated, with each pair having different combinations of positive or negative \(\alpha \) values. The simulations are run until the action potential on each cardiac cycle is identical to that on the previous cycle.

Set 2 In a further stage of verification of the homogenisation, we use a small size of partitioned unit and alter the relative proportions of the two model phenotypes, \(\rho _1\) and \(\rho _2\), throughout the series of simulations, and compare the beat rates from both models. We see in Eq. (9) that varying \(\rho _1\) and \(\rho _2\) alters the excitability properties of the HP model, and so this set of simulations allows us to verify that the excitability properties of the HP model are correctly predicted. The layout of phenotypes is shown in Fig. 3.

Set 3 We will see later that the first two sets of simulations exhibit some localised behaviour in the vicinity of boundaries. Our third set of simulations investigates these effects through varying the distribution of phenotypes close to the boundary, as shown in Fig. 3.

Fig. 4
figure 4

Spatial layout of the different phenotypes in the final three sets of simulations. As in the previous figures, the dark and light shades represent two different phenotypes. In Sets 4 and 5, we utilise the parameterisations of the FitzHugh–Nagumo model that are listed in the main text, while in Set 6 we use atrial-like and ventricular-like models of hSC-CM electrophysiology (Paci et al. 2013)

Set 4 Until now, our investigations have assumed constant proportions of the two model phenotypes throughout the fibre at the macroscale. This assumption is, however, likely to be unrealistic. We therefore consider a fibre where the values of \(\rho _1\) and \(\rho _2\) used in the HP model are given by

$$\begin{aligned} \rho _1(x)&= 0.5 + A\sin \left( \frac{2\pi x}{L}\right) , \end{aligned}$$
(10)
$$\begin{aligned} \rho _2(x)&= 1 - \rho _1(x), \end{aligned}$$
(11)

where L is the length of the fibre, and A is the amount of variation in \(\rho _1\) and \(\rho _2\), with \(A\le 0.5\) so that \(0 \le \rho _1,\rho _2 \le 1\). In the PP model, the fibre is first divided into n units. In each unit, both \(\rho _1\) and \(\rho _2\) are calculated at the mid-point of the unit using Eqs. (10) and (11). The first fraction \(\rho _1\) of the unit is designated as phenotype 1; the remainder is designated as phenotype 2, as illustrated in Fig. 4.

Set 5 In these simulations, the values of \(\rho _1\) and \(\rho _2\) used in the HP model are identical to those described in Set 4. We introduce some random variation into the values of \(\rho _1\) and \(\rho _2\) used in the PP model. We first generate n uniformly distributed random numbers, \(R_{1},R_{2},\ldots ,R_{n}\), between 0 and 1, where n is the number of partitioned units. Let \(x_{m}\) be the x-coordinate of partitioned unit m. We then assign partitioned unit m as phenotype 1 if

$$\begin{aligned} R_{m} \le 0.5+A\sin \left( \frac{2\pi x_{m}}{L}\right) , \end{aligned}$$
(12)

and phenotype 2 otherwise. We also impose the restriction that an equal number of units with each of the two phenotypes are present in the fibre by rejecting any phenotype layout if this restriction is not met. For each of our choices of parameter A, we simulate 15 different arrangements of model phenotypes. Some example distributions of phenotypes are given in Fig. 4.

Set 6 Our final set of simulations closely follows the design of those in Set 5, but a physiological cell model is used rather than a phenomenological model. The first cell model is the ventricular-like model of Paci et al. (2013), while the second model is the atrial-like model from the same paper. In addition to altering the parameter A, we also alter the number of units, n, that the fibre is partitioned into. Example phenotype distributions can be found in Fig. 4.

3.2 Parameters Used in the Simulations

We define six sets of the \(\alpha \), \(\beta \) and \(\epsilon \) parameters for three self-exciting (S1–S3) and three excitable (E1–E3) models. The parameters chosen for these models result in action potentials with clearly different beat rates and action potential durations and have a range of positive and negative \(\alpha \) values. The parameters of the six forms of the FHN model are listed in Table 1, producing the action potentials shown in Fig. 5.

Table 1 Values of the FitzHugh–Nagumo model parameters \(\alpha , \beta \) and \(\epsilon \)
Fig. 5
figure 5

Action potentials of the six parameterisations of the FitzHugh–Nagumo model. The three self-exciting models (top) beat at their natural frequencies, while the excitable models (bottom) are stimulated every 500 time units. Upstroke times have been aligned at \(\text {time} = 0\)

In our final set of simulations, we use the Paci et al. (2013) physiologically based cellular electrophysiology model, with other parameters given in the right-hand column of Table 2.

Table 2 Tissue-level parameters for monodomain simulations

The monodomain problem was solved numerically using a custom implementation of the piecewise linear finite element method in Matlab. The systems of ordinary differential equations from either the FitzHugh–Nagumo or Paci et al. (2013) models were solved using the Forward Euler method. Accuracy of the solver was checked by comparing output against the analytical solution of an example one-dimensional monodomain problem from Pathmanathan and Gray (2014). Convergence studies were performed on systems based on the first set of simulations. The selected values of the space and time-steps are listed in Table 2, along with other relevant simulation parameters.

4 Results of Simulations

We now perform the simulations described in Sect. 3.

4.1 Set 1: Variation in the Size of the Partitioned Unit

As we described in Sect. 3.1, the primary aim of these simulations is to validate our homogenisation procedure. We do this by examining two cell-level properties of the action potential, \(\hbox {APD}_{90}\) and maximum diastolic potential, and one tissue-level property, conduction velocity. We use the layout of phenotypes shown in the top panel of Fig. 3 with four different combinations of the cellular electrophysiology models described in Sect. 3.2, given by:

  • Models S1 and S3 Both self-exciting, with \(\alpha _H=-0.09\);

  • Models S1 and E2 Self-exciting and excitable, respectively, with \(\alpha _H=-0.02\);

  • Models S3 and E2 Also self-exciting and excitable, but with \(\alpha _H=0.02\); and

  • Models E1 and E3 Both excitable, with \(\alpha _H=0.09\).

Using \(\rho _{1}=\rho _{2}=0.5\) in these initial simulations, we therefore expect the first two combinations to be self-exciting in the PP model in the limit that the number of compartments n increases; for the second two combinations, a stimulus will be required. A stimulus at the left-hand end of the fibre was used for combinations that were not self-exciting.

4.1.1 \(\hbox {APD}_{90}\) and Maximum Diastolic Potential

In Fig. 6, for each of the four different combinations of model phenotype, we plot the action potential duration for the PP simulations with varying numbers of partitioned units, n, and the HP simulations. On the left of the figure, we plot the \(\hbox {APD}_{90}\) along the entire fibre for: the HP model; the PP model with small partitioned units (\(n=240\)); and the PP model with large partitioned units (\(n=30\)). On the right-hand side, we plot the minimum and maximum values of the \(\hbox {APD}_{90}\) that occur over the central region of the fibre as n varies. As the stimulus can have a substantial effect on the value of the \(\hbox {APD}_{90}\) and other properties of the action potential, only the values between \(x=35\) and \(x=65\) are taken into account in these plots. In Fig. 7, we plot the maximum diastolic potential (MDP) in a similar manner to the \(\hbox {APD}_{90}\) values that are plotted in Fig. 6.

Fig. 6
figure 6

Variation in \(\hbox {APD}_{90}\) (time to achieve \(90\%\) repolarisation) during the final beat in Set 1 simulations. The panels on the left show the variation in \(\hbox {APD}_{90}\) across the fibre during the final complete beat for three selected cases: those of the PP model with the largest and smallest partitioned regions, and the HP model. The panels on the right show the minimum and maximum values of \(\hbox {APD}_{90}\) across the central region of \(35<x<65\) during the final complete beat of all Set 1 simulations. Values from the PP model are shown using crosses, while those from the HP model are indicated with the dotted line

Fig. 7
figure 7

Variation in maximum diastolic potential (MDP) from Set 1 simulations. As in the previous figure, the panels on the left show the MDP across the entire fibre for selected cases. Panels on the right provide a summary of the minimum and maximum values of MDP recorded in all simulations

The results shown in Figs. 6 and 7 generally follow a smooth trend in that, as the size of the partitioned unit decreases, the \(\hbox {APD}_{90}\) and MDP of the PP model approach those of the HP model. This confirms that the homogenisation process has worked as expected.

In Figs. 6 and 7, we note that the \(\hbox {APD}_{90}\) and MDP vary across the fibre. This variation becomes more marked near to the boundaries. This is because a travelling wave action potential, i.e. \(V=f(x-ct)\) (where c may depend on all variables and parameters in the model) is unable to satisfy the boundary condition given by Eq. (6), as has previously been noted by Cherry and Fenton (2011) in a single-phenotype study. We investigate this phenomenon in more detail in Sect. 4.3, but first make some comments that may be explained using these initial simulations.

There are two reasons for the boundary effects that can be observed in plots of \(\hbox {APD}_{90}\) across the domain in Fig. 6 where we have spatially alternating phenotype partitions. Initially we consider regions distant from any boundaries. If a phenotype A has a longer single-cell \(\hbox {APD}_{90}\) than a phenotype B then, upon repolarisation in the PP tissue simulation, current flows from more depolarised to less depolarised regions, which means that phenotype B’s repolarisation is delayed by both its neighbouring A phenotypes. The same currents cause phenotype A’s repolarisation to be encouraged by both its neighbouring B phenotypes, and the overall effect is to smooth the \(\hbox {APD}_{90}\) along the fibre. However, a phenotype on the boundary has just one neighbouring phenotype partition, with a no-flux boundary condition at the other side, which means that these smoothing effects are reduced and its \(\hbox {APD}_{90}\) phenotype can become more dominant. The difference between the single-cell \(\hbox {APD}_{90}\) values of the phenotypes themselves (\(\hbox {APD}_{90}\) shown in Table 1) then dictates the magnitude of this effect (S1–E2 have a large \(\hbox {APD}_{90}\) difference of approximately 55 ms, and large edge effects; whereas S3–E2 have a difference of only 5.5 ms and much smaller edge effects).

We also see edge effects due to wave propagation: an action potential reaching a boundary exhibits a shortened \(\hbox {APD}_{90}\) due to the no-flux condition instead of the presence of a more depolarised wave ahead; and conversely prolonged \(\hbox {APD}_{90}\) when an action potential originates on a boundary (as studied in detail by Cherry and Fenton (2011)). This second effect occurs in a homogenous phenotype situation as well, and so we deduce it is the dominant cause of the boundary effects in the lower two cases of Fig. 6 as both the HP and PP models exhibit similar edge effects.

As the MDP is a property of the action potential during the hyperpolarised or resting phase, the influence of the pacemaker location on its value is smaller than for the \(\hbox {APD}_{90}\). As we observed for the \(\hbox {APD}_{90}\), the nature of the boundary conditions pulls the MDP higher or lower than would otherwise be expected at the boundary. The one exception is again related to the pacemaking site, with the minimum value of MDP being slightly higher than expected at the right-hand side of the S1–S3 fibre.

There are, however, two exceptions to the smooth trends that we now explain. The first exception is in the two lower plots on the right-hand side of Fig. 6. We note that the \(\hbox {APD}_{90}\) seen across the region \(35< x < 65\) does still exhibit variations, albeit small variations, as the size of the partitioned unit decreases. This is because both of these simulations are excitable, rather than self-exciting, and therefore require a stimulus (artefact of stimulus edge can be seen on far left). Since the subsequent behaviour is asymmetric the influence of the stimulus prolongation can still be seen in the \(35< x < 65\) domain.

The second exception is in the third panel down on the right of Fig. 6, where we see an outlying result. For a large partitioned unit, where we may not expect the homogenisation to be valid, this PP model was self-exciting despite \(\alpha _H\) being positive. The region of the self-exciting Model S3 closest to the boundary was able to spontaneously depolarise as it was separated from the influence of non-self-exciting Model E2 by the entire large length of the partitioned unit. As a stimulus was also applied, the action potentials switched between spontaneous and stimulated. The change in effective beat rate has an impact on the \(\hbox {APD}_{90}\), which can be seen in Fig. 6: the final beat in the simulation with the second-largest partitioned unit was spontaneous rather than triggered by the stimulus.

4.1.2 Conduction Velocity

In Fig. 8, we plot the conduction velocity of the HP and PP models when the four phenotype combinations were used. The conduction velocity was calculated through the region \(35<x<65\). When the HP model was used for the self-exciting systems, full synchronisation occurred and the activation time was identical throughout the entire fibre, and so conduction velocity is evaluated as infinite. Consequently, the top two panels do not contain lines for the conduction velocity of the HP model. As the length of the partitions in the PP model case decreases towards zero, we expect to tend towards the synchronised HP case (where each point in space has each model present). Indeed, we see the effective conduction velocity increase to high above the stimulated case, as synchronisation effects occur and begin to dominate. We note that the magnitude of the increase in conduction velocity observed in these simulated systems is far greater than that typically reported as a result of restitution effects (Yue et al. 2005; Zhang et al. 2012).

Fig. 8
figure 8

Conduction velocity of the travelling waves in the Set 1 simulations. Activation times in cases where the HP model was used to simulate a spontaneously activating system (i.e. models S1–S3 and S1–E2 in the top panels) were synchronous, leading to an infinite conduction velocity

In the non-self-exciting stimulated fibres (the lower panels of Fig. 8), we observe good agreement between the conduction velocity for the HP and PP models for all lengths of partitioned unit.

4.2 Set 2: The Beat Rate and Excitability Condition When Phenotype Proportions Vary

In our second stage of the verification of the homogenisation, we investigate whether the beating condition of the FitzHugh–Nagumo model (\(\alpha <0\) for spontaneous beating) holds, and compare the beat rates of fibres simulated using the PP and HP models.

We pair each self-activating action potential model (S1, S2, S3) with each of the excitable models (E1, E2, E3). We alter the relative proportions of the two models, \(\rho _1\) and \(\rho _2\), in both the HP and PP fibres, giving us a range of model combinations with different values of the homogenised parameter \(\alpha _H=\rho _1\alpha _1+\rho _2\alpha _2\). We perform two sets of simulations with the PP model, one with mid-sized partitioned regions (\(n=60\)) and another with much smaller partitioned regions (\(n=240\)). The partitioned units are assigned a model phenotype in a regular pattern. Rather than alternating the phenotype of each partitioned unit, the precise layout is determined by the relative proportions of the two phenotypes (see Fig. 3 for further details).

Fig. 9
figure 9

Beat rate from Set 2 simulations. The beat rates of fibres simulated using the PP model are compared to those of fibres simulated using the HP model with equivalent proportions of the two phenotypes. With both sizes of partitioned units, the discrepancies between the HP and PP models (indicated by the proximity of the cross-dot pairs) are generally small. The discrepancies are noticeably smaller in the lower panel, where the smaller partitioned units are used. The major difference between the small and large partitioned unit simulations may be seen around \(\alpha _H=0\). The HP model is quiescent at this value of \(\alpha _H\), as are all instances of the PP model with small partitioned units. However, spontaneous beating is still seen in some of the simulations that utilise the PP model with larger partitioned units (Color Figure Online)

We first examine the discrepancy in beat rate between the HP and PP models in both panels of Fig. 9. The beat rates of the HP and PP models differ more when the partitioned units are large (top panel) than when the partitioned units are small (bottom panel). In general the condition that the PP model is self-exciting only when \(\alpha _H>0\) is adhered to. The only places where this condition is not met is around \(\alpha _H=0\), for the case where \(n=60\). This problem disappears when \(n=240\), i.e. when the size of the partitioned unit decreases and \(\delta \) approaches zero, and we are closer to the limit in which our homogenisation is valid.

4.3 Set 3: Boundary Effects

In Sect. 4.1.1, we noted the presence of boundary effects in both the PP and HP models. To examine this effect, we alter the model phenotype that is located at the boundary of three otherwise similar phenotype layouts for the PP model. We use Models S1 and S3 for this investigation as their spontaneous activity is representative of the beating of hSC-CMs. In the first case, where we have an even number of partitioned units, the outer model phenotype on the left-hand side of the fibre is Model S1 (with a slower natural frequency), while that at the right is Model S3 (with a faster natural frequency). In the other two cases, we have an odd number of units (one more than in the even-n cases). In one of these, Model S1 is present at both boundary units, while in the other Model S3 is present at both boundaries. We test these three patterns of model phenotypes with partitioned units in a range of sizes.

We plot the activation times of every beat in each of the three cases in Fig. 10. In each row of the figure, we move to a smaller size of the partitioned unit: at the top, we have 30 or 31 units, with 60 or 61, 120 or 121, and 240 or 241 in the rows below. In all cases plotted in Fig. 10, several beats occur before activation settles into a steady pattern. As we start off with identical initial conditions across the entire fibre, the first beat occurs near-simultaneously across the entire fibre before the dominant pacemaker begins to take over. While the process of the pacemaker settling to a steady state is induced by the initial conditions in this case, similar effects have been reported in experimental systems following other forms of perturbation (Kienast et al. 2014).

Fig. 10
figure 10

Activation times of all recorded beats in PP model simulations (Set 3) with equally sized partitions. The activation times are normalised so that the earliest activation time during each beat is set to 0. Model S1 has a slower natural beat rate than Model S3, and so propagation spreads from regions where Model S3 can dominate. As the number of partitions increases, the apparent conduction velocity increases due to synchronisation effects as we tend to the homogenised case (Color Figure Online)

Throughout the simulations shown in Fig. 10, the origin of activation is consistent as the number of partitioned units is increased. The activation wave always originates from a region of the faster-beating model phenotype; if Model S3 is present at one of the boundaries, the activation wave originates there. In the central case, activation begins at the central instance of Model S3, as the slower-beating Model S1 takes longer to reach the activation threshold at the boundaries than it does elsewhere. The increase in conduction velocity as the size of the partitioned unit decreases shows that the action potentials tend towards synchronisation in the homogenised limit, as we saw in Fig. 8.

4.4 Set 4: Regular Spatial Variation in Phenotype Proportion

In Fig. 11, we plot the final activation time from a series of simulations where \(\rho _1\) and \(\rho _2\) are allowed to vary spatially. We alter the parameter A from Eqs. (10)–(12) across our three investigations, to give us three distributions of the two model phenotypes with different amounts of variability across the fibre (see Fig. 4 for details). This series of simulations shows that as the size of the partitioned unit is decreased, the PP model tends towards the HP model.

Fig. 11
figure 11

Activation time of the final beat for Set 4 simulations. We compare the homogenised phenotypes (HP) model (black line) to the partitioned phenotypes (PP) model with 60, 120 and 240 partitioned units. Parameter A controls the extent of variation in phenotype—with more variation in phenotype there is a slower wave speed in both HP and PP models and a more noticeable difference between the HP and large-unit PP models. See Fig. 4 for the underlying phenotype arrangements across this domain

4.5 Set 5: Random Spatial Variation in Phenotype Proportion

In Sect. 4.4, we investigated a smooth variation in \(\rho _1\) and \(\rho _2\). We now add a random perturbation onto this smooth distribution, as described in Sect. 3.1. In Fig. 12, we plot the activation time of the final beat in as a bold black line for the homogenised case and grey thin lines for the partitioned cases. We have 15 repeats of the PP model simulations due to the different random arrangements of model phenotypes, as shown in Fig. 4, where \(n=120\).

Fig. 12
figure 12

Activation times of the final beat in the Set 5 simulations. The bold black line shows the activation time from the homogenised phenotypes model. The thinner grey lines show the activation time from the 15 randomly assigned partitions for the PP model [probabilities given by Eq. (12)], so that each has a slightly different phenotype layout, examples of which may be seen in Fig. 4. The HP model and PP model wave speeds are in good agreement (the same gradients are seen in these activation time plots), but the random arrangement of phenotype partitions can change the location of the emergent ‘pacemaker’ site(s) in the PP model

In contrast to the simulations for a regular variation in \(\rho _1\) and \(\rho _2\) shown in Fig. 11, we see that introducing randomness into \(\rho _1\) and \(\rho _2\) can induce differences between the PP and HP models. Specifically, the location of the pacemaker region may differ between these models, particularly in the simulations where the smooth variation is small (i.e. A is small), as the variations due to random error are then relatively large when compared to A. We note, however, that the gradients of all activation plots are very similar. Hence, although the pacemaker region may not be accurately located using the HP model, the conduction velocity is consistent. We return to this point when considering a physiological cell model in Sect. 4.6.

4.6 Set 6: Simulations with Physiological Action Potential Models

In this set of simulations, we extend the simulations in Sect. 4.5 to use the Paci et al. (2013) models of atrial-like and ventricular-like hSC-CM electrophysiology. The atrial-like model has a faster beat rate and shorter \(\hbox {APD}_{90}\) than the ventricular-like model, as is shown previously in Fig. 1. We arrange these two phenotypes in a similar manner to that used in the previous series of simulations, which can be seen in the second panel of Fig. 4. We investigate the impact of varying the parameter A, which sets the amount of variation in phenotype across the fibre.

In Fig. 13, we plot the final activation times of the simulations with varied numbers of partitioned units and values of A. From left to right, the figure shows the activation times of fibres divided into 20, 30 and 120 partitioned units. As we are now dealing with a dimensional simulation, this corresponds to patches of cells that are approximately 500, 330 and 80 µm across. The typical size of a hSC-CM varies, but even the smallest size of partitioned unit that is tested here would correspond to at least two cells. As in the previous section, we decrease the amount of variability in phenotype from top to bottom of the figure, with parameter A set to 0.5, 0.3 and 0.1 in each row.

Fig. 13
figure 13

Activation times of the final beat of simulations in the Set 6 simulations. The two cell types are represented by the Paci et al. (2013) models of ventricular-like and atrial-like hSC-CM electrophysiology. Results from the homogenised phenotypes model are shown as a bold black line; the thin grey lines represent the 15 randomly generated partitions according to Eq. (12). Each repeat has a slightly different phenotype layout; see Fig. 4 for examples of the underlying phenotype arrangements across this domain. As we noted in the previous set of simulations, the HP model and PP model wave speeds are in good agreement and we observe that the random arrangement of phenotype partitions can change the emergent ‘pacemaker site’ in the PP model

In the previous section, we noted that the HP model is able to capture the overall behaviour of the PP model very well when there is substantial variation in phenotype, i.e. a high value of A. We make similar observations to those made in Fig. 13—as A is progressively increased, keeping n fixed, we see that the pacemaker region is accurately located by the HP model. Even if the pacemaker region is not accurately located, it is seen that the conduction velocity is accurately predicted, as can be seen by the gradient of the plot of activation times. We also observe that the pacemaker region is more accurately located as n increases, as expected. Finally, we note from the gradient of the activation plots that the conduction velocity is around \(19\,\text {cm/s}\) for all values of A, which is similar to that discussed in Sect. 1.1.

5 Conclusions

We have investigated two models for including multiple cellular phenotypes within simulations of cardiac tissue. In the partitioned phenotypes (PP) model, the simulated domain contains distinct regions where a single-model phenotype is present. The homogenised phenotypes (HP) model assumes a well-mixed sample of cells, which we represent as a homogenised system. We have verified that the electrical activity generated by the PP model tends towards that of the HP model as the size of the partitions decreases. The HP model is therefore a good approximation to the PP model when the length scale of regions containing a mixture of cell types is small.

Use of the PP model requires that the mesh is sufficiently fine in order to capture the geometry of the partitioned regions as closely as possible. For realistic two- and three-dimensional simulations with small regions of distinct cell types, this will result in a very large number of nodes, and simulations using this mesh may not be computationally feasible. An advantage of the HP model is that it does not require the mesh to explicitly model the geometry of the partitioned regions, thus significantly reducing the number of nodes in the mesh and eliminating the need for customised versions of the mesh when simulating the same domain with different arrangements of cell types.

Our simulations have demonstrated some experimentally observed properties of hSC-CM monolayers. The first two sets of simulations involved fibres with regularly repeating units of alternating phenotype, tending towards a fully mixed system. We observed that changes in values of \(\hbox {APD}_{90}\) and MDP were apparent across the fibre, with the changes being gradual despite clear division between cell types in the PP model. The conduction velocity of the activation wave increased rapidly when a self-activating cell model was present in fibres simulated with the small-unit PP model or the HP model. More realistic conduction velocities were seen in simulations where there was spatial variation in the distribution of phenotypes. The lack of a dramatic variation in conduction velocity in experimental hSC-CM systems, such as those described in Lee et al. (2012), suggests that spatially homogeneous cellular phenotypes are unlikely to occur in cultures of hSC-CMs; and that there must be variation in the intrinsic beat rate of hSC-CMs in these multi-cellular cultures. This prediction is consistent with two other recent modelling studies: Abbate et al. (2018) and Tixier et al. (2018) propose that there must be spatial variation in phenotype in hSC-CMs to provoke signals of the magnitude observed in micro-electrode array experiments. In these papers, different phenotypes were introduced with a partitioned phenotype, and with a smoothly varying parameter set within one model, respectively.

The final three sets of simulations demonstrated how local spatial variability in the relative proportions of the two phenotypes introduced a stable pacemaker region in the HP and small-unit PP models. This observation provides a mechanism by which stable propagation of the activation wave can occur in hSC-CMs, even in cultures that only exhibit small amounts of variation in phenotype. The sixth set of simulations utilised physiologically based models of atrial-like and ventricular-like hSC-CM electrophysiology. We demonstrated similar conduction velocities in cases where both large and small amounts of phenotypic variation were simulated, in the region of values observed experimentally, which vary from approximately 1 cm/s to 20 cm/s depending on maturity (Mehta et al. 2011; Lee et al. 2012; Zhu et al. 2017). We can therefore propose that even a small amount of phenotypic variation removes the system from the fully synchronous regime observed when the HP model was used in the first set of simulations. However, synchronisation may still play a small role in the value of conduction velocity: our observations lead us to the prediction that paced hSC-CM monolayers may show slower conduction velocities than they do when left to self-excite.

In future work, we will compare two-dimensional simulation results using this model with experimental measurements from approximately two-dimensional monolayers of stem cell-derived cardiomyocytes. Such experiments typically use micro-electrode arrays to record extracellular potential at a number of sites in the centre of a monolayer in a circular well, and so provide some information on the direction and speed of propagating waves.

In addition to our main focus of human stem cell-derived cardiomyocytes, the homogenised phenotypes model may also be useful in other types of cardiac simulation where two or more cell types are present, such as in sino-atrial node where cellular properties are reported to vary based on their position within the pacemaking region. The current interest in uncertainty quantification and variability in biological systems is driven by the need to understand how these factors can affect model output, thus influencing the utility of these models to complement experiments (Elkins et al. 2013; Mirams et al. 2016). Our proposals for simulation of multiple cell types will enable detailed investigation of the impact of variable spatial distributions of cell type on the signals recorded from monolayer cultures of human stem cell-derived cardiomyocytes that are part of the proposed Comprehensive in vitro Proarrhythmia Assay initiative (Sager et al. 2014).