# Bidomain model

The bidomain model is a mathematical model to define the electrical activity of the heart. It consists in a continuum (volume-average) approach in which the cardiac microstructure is defined in terms of muscle fibers grouped in sheets, creating a complex three-dimensional structure with anisotropical properties. Then, to define the electrical activity, two interpenetrating domains are considered, which are the intracellular and extracellular domains, representing respectively the space inside the cells and the region between them.
The bidomain model was first proposed by Schmitt in 1969 before being formulated mathematically in the late 1970s.
Since it is a continuum model, rather than describing each cell individually, it represents the average properties and behaviour of group of cells organized in complex structure. Thus, the model results to be a complex one and can be seen as a generalization of the cable theory to higher dimensions and, going to define the so-called bidomain equations.
Many of the interesting properties of the bidomain model arise from the condition of unequal anisotropy ratios. The electrical conductivity in anisotropic tissues is not unique in all directions, but it is different in parallel and perpendicular direction with respect to the fiber one. Moreover, in tissues with unequal anisotropy ratios, the ratio of conductivities parallel and perpendicular to the fibers are different in the intracellular and extracellular spaces. For instance, in cardiac tissue, the anisotropy ratio in the intracellular space is about 10:1, while in the extracellular space it is about 5:2. Mathematically, unequal anisotropy ratios means that the effect of anisotropy cannot be removed by a change in the distance scale in one direction. Instead, the anisotropy has a more profound influence on the electrical behavior.
Three examples of the impact of unequal anisotropy ratios are
* the distribution of transmembrane potential during unipolar stimulation of a sheet of cardiac tissue,
* the magnetic field produced by an action potential wave front propagating through cardiac tissue,
* the effect of fiber curvature on the transmembrane potential distribution during an electric shock.

## Formulation
### Bidomain domain

The bidomain domain is principally represented by two main regions: the cardiac cells, called intracellular domain, and the space surrounding them, called extracellular domain. Moreover, usually another region is considered, called extramyocardial region. The intracellular and extracellular domains, which are separate by the cellular membrane, are considered to be a unique physical space representing the heart ($\mathbb {H}$), while the extramyocardial domain is a unique physical space adjacent of them ($\mathbb {T}$). The extramyocardial region can be considered as a fluid bath, especially when one wants to simulate experimental conditions, or as a human torso to simulate physiological conditions. The boundary of the two principal physical domains defined are important to solve the bidomain model. Here the heart boundary is denoted as $\partial \mathbb {H}$ while the torso domain boundary is $\partial \mathbb {T} .$

### Unknowns and parameters

The unknowns in the bidomain model are three, the intracellular potential $v_{i}$, the extracellular potential $v_{e}$ and the transmembrane potential $v$, which is defined as the difference of the potential across the cell membrane $v=v_{i}-v_{e}$.
Moreover, some important parameters need to be taken in account, especially the intracellular conductivity tensor matrix $\mathbf {\Sigma } _{i}$, the extracellular conductivity tensor matrix $\mathbf {\Sigma } _{e}$. The transmembrane current flows between the intracellular and extracellular regions and it is in part described by the corresponding ionic current over the membrane per unit area $I_{\text{ion}}$. Moreover, the membrane capacitance per unit area $C_{m}$ and the surface to volume ratio of the cell membrane $\chi$ need to be considered to derive the bidomain model formulation, which is done in the following section.

### Standard formulation

The bidomain model is defined through two partial differential equations (PDE) the first of which is a reaction diffusion equation in terms of the transmembrane potential, while the second one computes the extracellular potential starting from a given transmembran potential distribution.
Thus, the bidomain model can be formulated as follows: ${\begin{alignedat}{2}&\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v\right)+\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v_{e}\right)=\chi \left(C_{m}{\frac {\partial v}{\partial t}}+I_{\mathrm {ion} }\right)-I_{s_{1}}\\[1ex]&\nabla \cdot \left(\left(\mathbf {\Sigma } _{i}+\mathbf {\Sigma } _{e}\right)\nabla v_{e}\right)=-\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v\right)+I_{s_{2}}\end{alignedat}}$ where $I_{s_{1}}$ and $I_{s_{2}}$ can be defined as applied external stimulus currents.

### Ionic current equation

The ionic current is usually represented by an ionic model through a system of ordinary differential equations (ODEs). Mathematically, one can write $I_{\text{ion}}=I_{\text{ion}}(v,\mathbf {w} )$ where $\mathbf {w}$ is called ionic variable. Then, in general, for all $t>0$, the system reads ${\begin{cases}{\dfrac {\partial \mathbf {w} }{\partial t}}=\mathbf {F} (v,\mathbf {w} )&{\text{in }}\mathbb {H} \\\mathbf {w} (t=0)=\mathbf {w} _{0}&{\text{in }}\mathbb {H} \end{cases}}$
Different ionic models have been proposed:
* phenomenological models, which are the simplest ones and used to reproduce macroscopic behavior of the cell.
* physiological models, which take into account both macroscopic behaviour and cell physiology with a quite detailed description of the most important ionic current.

### Model of an extramyocardial region

In some cases, an extramyocardial region is considered. This implies the addition to the bidomain model of an equation describing the potential propagation inside the extramyocardial domain.
Usually, this equation is a simple generalized Laplace equation of type $-\nabla \cdot (\mathbf {\Sigma } _{0}\nabla v_{0})=0\quad \mathbf {x} \in \mathbb {T}$ where $v_{0}$ is the potential in the extramyocardial region and $\mathbf {\Sigma } _{0}$ is the corresponding conductivity tensor.
Moreover, an isolated domain assumption is considered, which means that the following boundary conditions are added $(\mathbf {\Sigma } _{0}\nabla v_{0})\cdot \mathbf {n} _{0}=0\quad \mathbf {x} \in \partial \mathbb {T} ,$ $\mathbf {n} _{0}$ being the unit normal directed outside of the extramyocardial domain.
If the extramyocardial region is the human torso, this model gives rise to the forward problem of electrocardiology.

## Derivation

The bidomain equations are derived from the Maxwell's equations of the electromagnetism, considering some simplifications.
The first assumption is that the intracellular current can flow only between the intracellular and extracellular regions, while the intracellular and extramyocardial regions can comunicate between them, so that the current can flow into and from the extramyocardial regions but only in the extracellular space.
Using Ohm's law and a quasi-static assumption, the gradient of a scalar potential field $\varphi$ can describe an electrical field $\mathbf {E}$, which means that $\mathbf {E} =-\nabla \varphi .$
Then, if $J$ represent the current density of the electric field $\mathbf {E}$, two equations can be obtained ${\begin{alignedat}{2}J_{i}&=-\mathbf {\Sigma } _{i}\nabla v_{i}\\J_{e}&=-\mathbf {\Sigma } _{e}\nabla v_{e}.\end{alignedat}}$ where the subscript $i$ and $e$ represent the intracellular and extracellular quantities respectively.
The second assumption is that the heart is isolated so that the current that leaves one region need to flow into the other. Then, the current density in each of the intracellular and extracellular domain must be equal in magnitude but opposite in sign, and can be defined as the product of the surface to volume ratio of the cell membrane and the transmembrane ionic current density $I_{m}$ per unit area, which means that $-\nabla \cdot J_{i}=\nabla \cdot J_{e}=\chi I_{m}.$
By combining the previous assumptions, the conservation of current densities is obtained, namely
| ${\begin{alignedat}{2}\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{i})&=\chi I_{m}\\\nabla \cdot (\mathbf {\Sigma } _{e}\nabla v_{e})&=-\chi I_{m}\end{alignedat}}$ | (1) |
from which, summing the two equations
    $\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{i})=-\nabla \cdot (\mathbf {\Sigma } _{e}\nabla v_{e}).$
This equation states exactly that all currents exiting one domain must enter the other.
From here, it is easy to find the second equation of the bidomain model subtracting $\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{e})$ from both sides. In fact, $\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{i})-\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{e})=-\nabla \cdot (\mathbf {\Sigma } _{e}\nabla v_{e})-\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{e})$ and knowing that the transmembral potential is defined as $v=v_{i}-v_{e}$ $\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v)=-\nabla \cdot ((\mathbf {\Sigma } _{i}+\mathbf {\Sigma } _{e})\nabla v_{e}).$ Then, knowing the transmembral potential, one can recover the extracellular potential.
Then, the current that flows across the cell membrane can be modelled with the cable equation,
| $I_{m}=\chi \left(C_{m}{\frac {\partial v}{\partial t}}+I_{\text{ion}}\right),$ | (2) |
Combining equations (1) and (2) gives $\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v_{i}\right)=\chi \left(C_{m}{\frac {\partial v}{\partial t}}+I_{ion}\right).$ Finally, adding and subtracting $\nabla \cdot (\mathbf {\Sigma } _{i}\nabla v_{e})$ on the left and rearranging $v=v_{i}-v_{e}$, one can get the first equation of the bidomain model $\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v\right)+\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v_{e}\right)=\chi \left(C_{m}{\frac {\partial v}{\partial t}}+I_{\mathrm {ion} }\right),$ which describes the evolution of the transmembrane potential in time.
The final formulation described in the standard formulation section is obtained through a generalization, considering possible external stimulus which can be given through the external applied currents $I_{s_{1}}$ and $I_{s_{2}}$.

## Boundary conditions

In order to solve the model, boundary conditions are needed. The more classical boundary conditions are the following ones, formulated by Tung.
First of all, as state before in the derive section, there ca not been any flow of current between the intracellular and extramyocardial domains. This can be mathematically described as $(\mathbf {\Sigma } _{i}\nabla v_{i})\cdot \mathbf {n} =0\quad \mathbf {x} \in \partial \mathbb {H}$ where $\mathbf {n}$ is the vector that represents the outwardly unit normal to the myocardial surface of the heart. Since the intracellular potential is not explicitily presented in the bidomain formulation, this condition is usually described in terms of the transmembrane and extracellular potential, knowing that $v=v_{i}-v_{e}$, namely $(\mathbf {\Sigma } _{i}\nabla v)\cdot \mathbf {n} =-(\mathbf {\Sigma } _{i}\nabla v_{e})\cdot \mathbf {n} \quad \mathbf {x} \in \partial \mathbb {H} .$
For the extracellular potential, if the myocardial region is presented, a balance in the flow between the extracellular and the extramyocardial regions is considered $\left(\mathbf {\Sigma } _{e}\nabla v_{e}\right)\cdot \mathbf {n} _{e}=-\left(\mathbf {\Sigma } _{0}\nabla v_{0}\right)\cdot \mathbf {n} _{0}\quad \mathbf {x} \in \partial \mathbb {H} .$ Here the normal vectors from the perspective of both domains are considered, thus the negative sign are necessary. Moreover, a perfect transmission of the potential on the cardiac boundary is necessary, which gives $v_{e}=v_{0}\quad \mathbf {x} \in \partial \mathbb {H} .$
Instead, if the heart is considered as isolated, which means that no myocardial region is presented, a possible boundary condition for the extracellular problem is $\left(\mathbf {\Sigma } _{i}\nabla v\right)\cdot \mathbf {n} =-\left((\mathbf {\Sigma } _{i}+\mathbf {\Sigma } _{e})\nabla v_{e}\right)\cdot \mathbf {n} \quad \mathbf {x} \in \partial \mathbb {H} .$

## Reduction to monodomain model

By assuming equal anisotropy ratios for the intra- and extracellular domains, i.e. $\mathbf {\Sigma } _{i}=\lambda \mathbf {\Sigma } _{e}$ for some scalar $\lambda$, the model can be reduced to one single equation, called monodomain equation $\nabla \cdot (\mathbf {\Sigma } \nabla v)=\chi \left(C_{m}{\frac {\partial v}{\partial t}}+I_{\mathrm {ion} }\right)-I_{s}$ where the only variable is now the transmembrane potential, and the conductivity tensor $\mathbf {\Sigma }$ is a combination of $\mathbf {\Sigma } _{i}$ and $\mathbf {\Sigma } _{e}.$

## Formulation with boundary conditions in an isolated domain

If the heart is considered as an isolated tissue, which means that no current can flow outside of it, the final formulation with boundary conditions reads ${\begin{cases}\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v\right)+\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v_{e}\right)=\chi \left(C_{m}{\dfrac {\partial v}{\partial t}}+I_{\mathrm {ion} }\right)-I_{s_{1}}&\mathbf {x} \in \mathbb {H} \\[1ex]\nabla \cdot \left(\left(\mathbf {\Sigma } _{i}+\mathbf {\Sigma } _{e}\right)\nabla v_{e}\right)=-\nabla \cdot \left(\mathbf {\Sigma } _{i}\nabla v\right)+I_{s_{2}}&\mathbf {x} \in \mathbb {H} \\[1ex]\mathbf {\Sigma } _{i}(\nabla v+\nabla v_{e})\cdot \mathbf {n} =0&\mathbf {x} \in \partial \mathbb {H} \\[1ex]\left[\mathbf {\Sigma } _{i}(\nabla v+\nabla v_{e})+\mathbf {\Sigma } _{e}\nabla v_{e}\right]\cdot \mathbf {n} =0&\mathbf {x} \in \partial \mathbb {H} \end{cases}}$

## Numerical solution

There are various possible techniques to solve the bidomain equations. Between them, one can find finite difference schemes, finite element schemes and also finite volume schemes. Special considerations can be made for the numerical solution of these equations, due to the high time and space resolution needed for numerical convergence.