# Multi-compartment model

(Redirected from Compartmental model)

A multi-compartment model is a type of mathematical model used for describing the way materials or energies are transmitted among the compartments of a system. Each compartment is assumed to be a homogeneous entity within which the entities being modelled are equivalent. For instance, in a pharmacokinetic model, the compartments may represent different sections of a body within which the concentration of a drug is assumed to be uniformly equal.

Hence a multi-compartment model is a lumped parameters model.

Multi-compartment models are used in many fields including pharmacokinetics, epidemiology, biomedicine, systems theory, complexity theory, engineering, physics, information science and social science. The circuits systems can be viewed as a multi-compartment model as well.

In systems theory, it involves the description of a network whose components are compartments that represent a population of elements that are equivalent with respect to the manner in which they process input signals to the compartment.

• Instant homogeneous distribution of materials or energies within a "compartment."
• The exchange rate of materials or energies among the compartments is related to the densities of these compartments.
• Usually, it is desirable that the materials do not undergo chemical reactions while transmitting among the compartments.
• When concentration of the cell is of interest, typically the volume is assumed to be constant over time, though this may not be totally true in reality.

Most commonly, the mathematics of multi-compartment models is simplified to provide only a single parameter—such as concentration—within a compartment.

## Single-compartment model

Possibly the simplest application of multi-compartment model is in the single-cell concentration monitoring (see the figure above). If the volume of a cell is V, the mass of solute is q, the input is u(t) and the secretion of the solution is proportional to the density of it within the cell, then the concentration of the solution C within the cell over time is given by

${\displaystyle {\frac {\mathrm {d} q}{\mathrm {d} t}}=u(t)-kq}$
${\displaystyle C={\frac {q}{V}}}$

where k is the proportionality.

## Multi-Compartment Model

As the number of compartments increases, the model can be very complex and the solutions usually beyond ordinary calculation.

The formulae for n-cell multi-compartment models become:

{\displaystyle {\begin{aligned}{\dot {q}}_{1}=q_{1}k_{11}+q_{2}k_{12}+\cdots +q_{n}k_{1n}+u_{1}(t)\\{\dot {q}}_{2}=q_{1}k_{21}+q_{2}k_{22}+\cdots +q_{n}k_{2n}+u_{2}(t)\\\vdots \\{\dot {q}}_{n}=q_{1}k_{n1}+q_{2}k_{n2}+\cdots +q_{n}k_{nn}+u_{n}(t)\end{aligned}}}

Where

${\displaystyle 0=\sum _{i=1}^{n}{k_{ij}}}$ for ${\displaystyle j=1,2,\dots ,n}$ (as the total 'contents' of all compartments is constant in a closed system)

Or in matrix forms:

${\displaystyle \mathbf {\dot {q}} =\mathbf {Kq} +\mathbf {u} }$

Where

${\displaystyle \mathbf {K} ={\begin{bmatrix}k_{11}&k_{12}&\cdots &k_{1n}\\k_{21}&k_{22}&\cdots &k_{2n}\\\vdots &\vdots &\ddots &\vdots \\k_{n1}&k_{n2}&\cdots &k_{nn}\\\end{bmatrix}}\mathbf {q} ={\begin{bmatrix}q_{1}\\q_{2}\\\vdots \\q_{n}\end{bmatrix}}\mathbf {u} ={\begin{bmatrix}u_{1}(t)\\u_{2}(t)\\\vdots \\u_{n}(t)\end{bmatrix}}}$ and ${\displaystyle {\begin{bmatrix}1&1&\cdots &1\\\end{bmatrix}}\mathbf {K} ={\begin{bmatrix}0&0&\cdots &0\\\end{bmatrix}}}$ (as the total 'contents' of all compartments is constant in a closed system)

In the special case of a closed system (see below) i.e. where ${\displaystyle \mathbf {u} =0}$ then there is a general solution.

${\displaystyle \mathbf {q} =c_{1}e^{\lambda _{1}t}\mathbf {v_{1}} +c_{2}e^{\lambda _{2}t}\mathbf {v_{2}} +\cdots +c_{n}e^{\lambda _{n}t}\mathbf {v_{n}} }$

Where ${\displaystyle \lambda _{1}}$, ${\displaystyle \lambda _{2}}$, ... and ${\displaystyle \lambda _{n}}$ are the eigenvalues of ${\displaystyle \mathbf {K} }$; ${\displaystyle \mathbf {v_{1}} }$, ${\displaystyle \mathbf {v_{2}} }$, ... and ${\displaystyle \mathbf {v_{n}} }$ are the respective eigenvectors of ${\displaystyle \mathbf {K} }$; and ${\displaystyle c_{1}}$, ${\displaystyle c_{2}}$, .... and ${\displaystyle c_{n}}$ are constants.

However it can be shown that given the above requirement to ensure the 'contents' of a closed system are constant, then for every pair of eigenvalue and eigenvector then either ${\displaystyle \lambda =0}$ or ${\displaystyle {\begin{bmatrix}1&1&\cdots &1\\\end{bmatrix}}\mathbf {v} =0}$ and also that one eigenvalue is 0, say ${\displaystyle \lambda _{1}}$

So

${\displaystyle \mathbf {q} =c_{1}\mathbf {v_{1}} +c_{2}e^{\lambda _{2}t}\mathbf {v_{2}} +\cdots +c_{n}e^{\lambda _{n}t}\mathbf {v_{n}} }$

Where

${\displaystyle {\begin{bmatrix}1&1&\cdots &1\\\end{bmatrix}}\mathbf {v_{i}} =0}$ for ${\displaystyle \mathbf {i} =2,3,\dots n}$

This solution can be rearranged:

${\displaystyle \mathbf {q} ={\Bigg [}\mathbf {v_{1}} {\begin{bmatrix}c_{1}&0&\cdots &0\\\end{bmatrix}}+\mathbf {v_{2}} {\begin{bmatrix}0&c_{2}&\cdots &0\\\end{bmatrix}}+\dots +\mathbf {v_{n}} {\begin{bmatrix}0&0&\cdots &c_{n}\\\end{bmatrix}}{\Bigg ]}{\begin{bmatrix}1\\e^{\lambda _{2}t}\\\vdots \\e^{\lambda _{n}t}\\\end{bmatrix}}}$

This somewhat inelegant equation demonstrates that all solutions of an n-cell multi-compartment model with constant or no inputs are of the form:

${\displaystyle \mathbf {q} =\mathbf {A} {\begin{bmatrix}1\\e^{\lambda _{2}t}\\\vdots \\e^{\lambda _{n}t}\\\end{bmatrix}}}$

Where ${\displaystyle \mathbf {A} }$ is a nxn matrix and ${\displaystyle \lambda _{2}}$, ${\displaystyle \lambda _{3}}$, ... and ${\displaystyle \lambda _{n}}$ are constants. Where ${\displaystyle {\begin{bmatrix}1&1&\cdots &1\\\end{bmatrix}}\mathbf {A} ={\begin{bmatrix}a&0&\cdots &0\\\end{bmatrix}}}$

## Model topologies

Generally speaking, as the number of compartments increase, it is challenging both to find the algebraic and numerical solutions of the model. However, there are special cases of models, which rarely exist in nature, when the topologies exhibit certain regularities that the solutions become easier to find. The model can be classified according to the interconnection of cells and input/output characteristics:

1. Closed model: No sinks or source, lit. all koi = 0 and ui = 0;
2. Open model: There are sinks or/and sources among cells.
3. Catenary model: All compartments are arranged in a chain, with each pool connecting only to its neighbors. This model has two or more cells.
4. Cyclic model: It's a special case of the catenary model, with three or more cells, in which the first and last cell are connected, i.e. k1n ≠ 0 or/and kn1 ≠ 0.
5. Mammillary model: Consists of a central compartment with peripheral compartments connecting to it. There are no interconnections among other compartments.
6. Reducible model: It's a set of unconnected models. It bears great resemblance to the computer concept of forest as against trees.