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. Sometimes, the physical system that we try to model in equations is too complex, so it is much easier to discretize the problem and reduce the number of parameters. Each compartment is assumed to be a homogeneous entity within which the entities being modeled are equivalent. A multi-compartment model is classified as a lumped parameters model. Similar to more general mathematical models, multi-compartment models can treat variables as continuous, such as a differential equation, or as discrete, such as a Markov chain. Depending on the system being modeled, they can be treated as stochastic or deterministic.
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. Most commonly, the mathematics of multi-compartment models is simplified to provide only a single parameter—such as concentration—within a compartment.
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.
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
dq | |
dt |
=u(t)-kq
C= | q |
V |
Where k is the proportionality.
Simulation Analysis and Modeling 2 SAAM II is a software system designed specifically to aid in the development and testing of multi-compartment models. It has a user-friendly graphical user interfacewherein compartmental models are constructed by creating a visual representation of the model. From this model, the program automatically creates systems of ordinary differential equations. The program can bothsimulate and fit models to data, returning optimal parameter estimates and associated statistics. It was developed by scientists working on metabolism and hormones kinetics (e.g., glucose, lipids, or insulin).[1] It was then used for tracer studies and pharmacokinetics. Albeit a multi-compartment model can in principle be developed and run via other software, like MATLAB or C++ languages, the user interface offered by SAAM II allows the modeler (and non-modelers) to better control the system, especially when the complexity increases.
Discrete models are concerned with discrete variables, often a time interval
\Deltat
x(t)
y(t)
\Deltat
\begin{align} x(t+\Deltat)&=x(t)+\alphax(t)\Deltat-\betax(t)y(t)\Deltat\\ y(t+\Deltat)&=y(t)+\deltax(t)y(t)\Deltat-\gammay(t)\Deltat.\end{align}
Here
x(t)
y(t)
t
\alphax(t)\Deltat
\betax(t)y(t)\Deltat
\deltax(t)y(t)\Deltat
\gammay(t)\Deltat
\alpha,\beta,\delta,
\gamma
These equations are easily solved iteratively.
The discrete Lotka-Volterra example above can be turned into a continuous version by rearranging and taking the limit as
\Deltat → 0
\begin{align} &\lim\Delta
x(t+\Deltat)-x(t) | |
\Deltat |
\equiv
dx | |
dt |
=\alphax-\betaxy\\ &\lim\Delta
y(t+\Deltat)-y(t) | |
\Deltat |
\equiv
dy | |
dt |
=\deltaxy-\gammay \end{align}
This yields a system of ordinary differential equations. Treating this model as differential equations allows the implementation of calculus methods to study the dynamics of the system more in-depth.
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:
\begin{align} q |
1=q1k11+q2k12+ … +qnk1n+u1(t)\\
q |
2=q1k21+q2k22+ … +qnk2n+u2(t)\\ \vdots\\
q |
n=q1kn1+q2kn2+ … +qnknn+un(t) \end{align}
Where
n | |
0=\sum | |
i=1 |
{kij
j=1,2,...,n
Or in matrix forms:
|
Where
K=\begin{bmatrix} k11&k12& … &k1n\\ k21&k22& … &k2n\\ \vdots&\vdots&\ddots&\vdots\\ kn1&kn2& … &knn\\ \end{bmatrix}q=\begin{bmatrix} q1\\ q2\\ \vdots\\ qn \end{bmatrix} u=\begin{bmatrix} u1(t)\\ u2(t)\\ \vdots\\ un(t) \end{bmatrix}
\begin{bmatrix} 1&1& … &1\\ \end{bmatrix}K=\begin{bmatrix} 0&0& … &0\\ \end{bmatrix}
In the special case of a closed system (see below) i.e. where
u=0
q=c1
λ1t | |
e |
v1 |
+c2
λ2t | |
e |
v2 |
+ … +cn
λnt | |
e |
vn |
Where
λ1
λ2
λn
K
v1 |
v2 |
vn |
K
c1
c2
cn
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
λ=0
\begin{bmatrix} 1&1& … &1\\ \end{bmatrix}v=0
λ1
So
q=c1
v1 |
+c2
λ2t | |
e |
v2 |
+ … +cn
λnt | |
e |
vn |
Where
\begin{bmatrix} 1&1& … &
1\\ \end{bmatrix}vi=0 |
i=2,3,...n
This solution can be rearranged:
q=[
v1\begin{bmatrix} |
c1&0& … &0\\ \end{bmatrix} +
v2\begin{bmatrix} |
0&c2& … &0\\ \end{bmatrix} +...+
vn\begin{bmatrix} |
0&0& … &cn\\ \end{bmatrix}] \begin{bmatrix} 1
λ2t | |
\\ e |
\\ \vdots
λnt | |
\\ e |
\\ \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:
q=A \begin{bmatrix} 1
λ2t | |
\\ e |
\\ \vdots
λnt | |
\\ e |
\\ \end{bmatrix}
Where
A
λ2
λ3
λn
\begin{bmatrix} 1&1& … &1\\ \end{bmatrix}A=\begin{bmatrix} a&0& … &0\\ \end{bmatrix}
Generally speaking, as the number of compartments increases, it is challenging both to find the algebraic and numerical solutions to 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: