Difference between revisions of "Team:KU Leuven/Modeling/Hybrid"
Line 68: | Line 68: | ||
<div class="head"> | <div class="head"> | ||
<h2> | <h2> | ||
− | The | + | The Hybrid Model |
</h2> | </h2> | ||
</div> | </div> | ||
Line 107: | Line 107: | ||
<div class="toggletwo"> | <div class="toggletwo"> | ||
<h2> | <h2> | ||
− | Agent-based | + | Agent-based models |
</h2> | </h2> | ||
</div> | </div> | ||
Line 142: | Line 142: | ||
other hand, the diffusion and dynamics of the chemicals leucine and AHL are | other hand, the diffusion and dynamics of the chemicals leucine and AHL are | ||
easily described by well-established PDEs. To make use of the advantages of each | easily described by well-established PDEs. To make use of the advantages of each | ||
− | + | modeling approach, we decided to combine these two different types of modeling | |
− | in a hybrid | + | in a hybrid modeling framework. In this framework we modeled the bacteria as |
agents, while the chemical species were modeled using PDEs. There were two | agents, while the chemical species were modeled using PDEs. There were two | ||
challenges to our hybrid approach, namely coupling the models and matching them. | challenges to our hybrid approach, namely coupling the models and matching them. | ||
Line 149: | Line 149: | ||
refers to dealing with different spatial and temporal scales to achieve | refers to dealing with different spatial and temporal scales to achieve | ||
accurate, yet computationally tractable simulations. | accurate, yet computationally tractable simulations. | ||
+ | <br/> | ||
<br/> | <br/> | ||
Line 211: | Line 212: | ||
As discussed in the previous paragraph, our hybrid model incorporates chemical | As discussed in the previous paragraph, our hybrid model incorporates chemical | ||
species using PDEs. In our system these are AHL and leucine. The diffusion of | species using PDEs. In our system these are AHL and leucine. The diffusion of | ||
− | AHL and leucine can be described by the heat equation ( | + | AHL and leucine can be described by the heat equation (1). |
$$\frac{\partial C(\vec{r},t)}{\partial t}=\nabla^2 C(\vec{r},t) \;\;\; | $$\frac{\partial C(\vec{r},t)}{\partial t}=\nabla^2 C(\vec{r},t) \;\;\; | ||
\text(1)$$ | \text(1)$$ | ||
− | By using ( | + | By using (1) |
we assume that the diffusion speed is isotropic, i.e. the same in all spatial | we assume that the diffusion speed is isotropic, i.e. the same in all spatial | ||
directions. This also explains why it is called the heat equation, since heat | directions. This also explains why it is called the heat equation, since heat | ||
Line 223: | Line 224: | ||
states of all cells of type A. However, for our hybrid model we ignored the | states of all cells of type A. However, for our hybrid model we ignored the | ||
inner life of all bacteria and instead assumed that AHL and leucine production | inner life of all bacteria and instead assumed that AHL and leucine production | ||
− | is directly proportional to the density of A type cells ( | + | is directly proportional to the density of A type cells (2). |
$$ \frac{\partial C(\vec{r},t)}{\partial t}=\alpha \cdot \rho_A(\vec{r},t) | $$ \frac{\partial C(\vec{r},t)}{\partial t}=\alpha \cdot \rho_A(\vec{r},t) | ||
\;\;\; \text{(2)}$$ | \;\;\; \text{(2)}$$ | ||
Line 230: | Line 231: | ||
model. Finally, AHL and leucine are organic molecules and like most organic | model. Finally, AHL and leucine are organic molecules and like most organic | ||
molecules they will degrade over time. | molecules they will degrade over time. | ||
+ | |||
+ | We assume first-order kinetics meaning | ||
+ | that the rate at which AHL and similarly leucine disappear is proportional to | ||
+ | their respective concentrations (3a and 3b) assuming neutral pH (citation). | ||
$$ \frac{\partial C_{AHL}(\vec{r},t)}{\partial t}=-k_{AHL}\cdot C_{AHL}(\vec{r},t) | $$ \frac{\partial C_{AHL}(\vec{r},t)}{\partial t}=-k_{AHL}\cdot C_{AHL}(\vec{r},t) | ||
\;\;\; \text{(3a)} $$ | \;\;\; \text{(3a)} $$ | ||
$$ \frac{\partial C_{leucine}(\vec{r},t)}{\partial t}=-k_{leucine}\cdot C_{leucine}(\vec{r},t) | $$ \frac{\partial C_{leucine}(\vec{r},t)}{\partial t}=-k_{leucine}\cdot C_{leucine}(\vec{r},t) | ||
\;\;\; \text{(3b)} $$ | \;\;\; \text{(3b)} $$ | ||
− | + | ||
− | + | ||
− | + | Putting it all together, we obtain (4), both for AHL and leucine. | |
$$ \frac{\partial C(\vec{r},t)}{\partial t}=\nabla^2 C(\vec{r},t)+\alpha \cdot \rho_A(\vec{r},t)-k\cdot | $$ \frac{\partial C(\vec{r},t)}{\partial t}=\nabla^2 C(\vec{r},t)+\alpha \cdot \rho_A(\vec{r},t)-k\cdot | ||
C(\vec{r},t) \;\;\; \text{(4)} $$ | C(\vec{r},t) \;\;\; \text{(4)} $$ | ||
− | + | Note that these equations have exactly the same form as the equations for AHL and leucine | |
− | + | ||
in the colony level model. The crucial difference however lies in the | in the colony level model. The crucial difference however lies in the | ||
calculation of the density of cells of type A. In contrast to the colony level | calculation of the density of cells of type A. In contrast to the colony level | ||
Line 267: | Line 271: | ||
is because an applied force will immediately be balanced out by an opposing | is because an applied force will immediately be balanced out by an opposing | ||
frictional force, with no noticeable acceleration or deceleration phase taking | frictional force, with no noticeable acceleration or deceleration phase taking | ||
− | place. | + | place. |
+ | This eliminates the inertial term and simplifies Newton’s second law to | ||
+ | (5). | ||
$$ \frac{d^2 \vec{r}(t)}{dt^2}=\sum_{i} \vec{F}_{applied,i}-\gamma \cdot | $$ \frac{d^2 \vec{r}(t)}{dt^2}=\sum_{i} \vec{F}_{applied,i}-\gamma \cdot | ||
\frac{d \vec{r}(t)}{dt}=0 $$ | \frac{d \vec{r}(t)}{dt}=0 $$ | ||
$$\Rightarrow \frac{d \vec{r}(t)}{dt}=\frac{1}{\gamma} | $$\Rightarrow \frac{d \vec{r}(t)}{dt}=\frac{1}{\gamma} | ||
− | \cdot \sum_{i} \vec{F}_{applied,i} \;\;\; \text{(5)} $$ | + | \cdot \sum_{i} \vec{F}_{applied,i} \;\;\; \text{(5)} $$ |
− | + | Basically, the velocity can be calculated as the sum of all applied | |
− | + | forces times a constant. | |
− | forces times a constant | + | |
− | + | ||
</p> | </p> | ||
<p> | <p> | ||
Line 283: | Line 287: | ||
</p> | </p> | ||
+ | |||
+ | |||
+ | <p> | ||
$$ d\vec{r}_i(t)=\mu \cdot \frac{\kappa}{S(\vec{r},t)} \cdot \nabla S(\vec{r},t)\cdot dt + \sqrt{2 \cdot | $$ d\vec{r}_i(t)=\mu \cdot \frac{\kappa}{S(\vec{r},t)} \cdot \nabla S(\vec{r},t)\cdot dt + \sqrt{2 \cdot | ||
\mu}\cdot d\vec{W} \;\;\; (6) $$ | \mu}\cdot d\vec{W} \;\;\; (6) $$ | ||
− | + | However, the physical “chemotactic force” that propel bacteria is not easily | |
− | + | ||
measured or derived. Therefore, we base the equation of motion in one dimension | measured or derived. Therefore, we base the equation of motion in one dimension | ||
on (Eq. 6), a stochastic differential equation (SDE) that describes the motion | on (Eq. 6), a stochastic differential equation (SDE) that describes the motion | ||
of a single particle in a N-particle system that is governed by a Keller-Segel | of a single particle in a N-particle system that is governed by a Keller-Segel | ||
− | type PDE in the limit of N | + | type PDE in the limit of N ? 8, |
$$ \frac{\partial n(\vec{r},t)}{\partial t}=D_n \cdot \nabla^2 n - \nabla (n \cdot \chi(S(\vec{r},t)) | $$ \frac{\partial n(\vec{r},t)}{\partial t}=D_n \cdot \nabla^2 n - \nabla (n \cdot \chi(S(\vec{r},t)) | ||
\cdot\nabla S(\vec{r},t)) \;\;\; (7) $$ | \cdot\nabla S(\vec{r},t)) \;\;\; (7) $$ | ||
Line 300: | Line 306: | ||
outside the scope of this model description because it contains a stochastic | outside the scope of this model description because it contains a stochastic | ||
variable. The traditional rules of calculus do not apply anymore for stochastic | variable. The traditional rules of calculus do not apply anymore for stochastic | ||
− | differential equations and a different mathematical theory called | + | differential equations and a different mathematical theory called Ito calculus |
is required. It is sufficient to say that the second term containing dW accounts | is required. It is sufficient to say that the second term containing dW accounts | ||
for Brownian motion in the form of random noise added to the displacement of the | for Brownian motion in the form of random noise added to the displacement of the | ||
Line 312: | Line 318: | ||
function as in (Eq. 8). | function as in (Eq. 8). | ||
$$ \chi(S(\vec{r},t))=\mu \cdot \frac{\kappa}{S(\vec{r},t)} \;\;\; (8) $$ | $$ \chi(S(\vec{r},t))=\mu \cdot \frac{\kappa}{S(\vec{r},t)} \;\;\; (8) $$ | ||
− | |||
The first important thing to note is that we assumed | The first important thing to note is that we assumed | ||
$\chi (S)$ to be proportional to 1/S. This is because Keller and Segel proved that | $\chi (S)$ to be proportional to 1/S. This is because Keller and Segel proved that | ||
Line 435: | Line 440: | ||
points. Agents on the other hand reside in the space between grid points and | points. Agents on the other hand reside in the space between grid points and | ||
require local concentrations as inputs to calculate their next step. This | require local concentrations as inputs to calculate their next step. This | ||
− | problem is part of the coupling aspect in our hybrid | + | problem is part of the coupling aspect in our hybrid modeling framework and is |
discussed below. | discussed below. | ||
</p> | </p> | ||
Line 488: | Line 493: | ||
</div> | </div> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<div class="whiterow"></div> | <div class="whiterow"></div> | ||
</div> | </div> |
Revision as of 03:01, 19 September 2015
The Hybrid Model
The hybrid model represents an intermediate level of detail in between the colony level model and the internal model. Bacteria are treated as individual agents that behave according to the Keller-Segel type discretized stochastic differential equations, while chemical species are modeled using partial differential equations.
Model Description
Implementation
1-D Hybrid Model
The video box above shows one dimensional simulation results for the hybrid model. A constant speed and random step simulation has been computed. We observe that the bacteria form a traveling wave in both cases, which is essential for pattern formation. These results are also similar to what we get from the continuous model, which confirms our results.
2-D Hybrid Model
The videos above show simulation videos computed at the Flemish supercomputing center, for three different initial conditions similar to the ones we used for the colony level model. The first and second condition start from 9 mixed or 5 colonies of both cell types, arranged in a block or star shape. These first two gradually separate in a manner similar to what we would we also saw in the colony level model. The result for random initial data is fundamentally different. As the agent based approach allows for better implementation of adhesion large cell type A bands form. The AHL and Leucine produced by the type A bacteria causes the B type cells to move away leading to a pattern which we could not produce using PDEs alone, this beautifully illustrates the added value of hybrid modeling.
Incorporation of internal model
Up until now, we have largely ignored the inner life of the bacteria. This inner life consists of transcriptional networks and protein kinetics. Instead we assumed that AHL and leucine production is directly proportional to the density of type A cells. This only works in theory, since bacteria will be affected by their surroundings and the way their dynamics react to it. For example bacteria surrounded by a large concentration of AHL, will have more CheZ and will react more on the presence of Leucine. Also bacteria have different histories and will have different levels of transcription factors and different levels of proteins in their plasma. The proteins are not directly degraded and will still be present in the cytoplasm of the bacteria long after the network has been deactivated. From this, it is clear that 2 bacteria, although surrounded by the same AHL and leucine concentrations, can show different behavior and reaction kinetics.
This results in a heterogeneity of the bacterial population that has not yet been accounted for. To make up for this anomaly, we decided to add an internal model to every agent. This way we will get more realistic simulations. Every agent will get their own levels of CheZ, LuxR, LuxI and so on and will have individual reactions on their surroundings. We hope that this way we can get closer to the behavior of real bacteria.
References
[1] | Benjamin Franz and Radek Erban. Hybrid modelling of individual movement and collective behaviour. Lecture Notes in Mathematics, 2071:129-157, 2013. [ .pdf ] |
[2] | Zaiyi Guo, Peter M A Sloot, and Joc Cing Tay. A hybrid agent-based approach for modeling microbiological systems. Journal of Theoretical Biology, 255(2):163-175, 2008. [ DOI ] |
[3] | E F Keller and L A Segel. Traveling bands of chemotactic bacteria: a theoretical analysis. Journal of theoretical biology, 30(2):235-248, 1971. [ DOI ] |
[4] | E. M. Purcell. Life at low Reynolds number, 1977. [ DOI ] |
[5] | Angela Stevens. The Derivation of Chemotaxis Equations as Limit Dynamics of Moderately Interacting Stochastic Many-Particle Systems, 2000. [ DOI ] |
Equations
Contact
Address: Celestijnenlaan 200G room 00.08 - 3001 Heverlee
Telephone: +32(0)16 32 73 19
Email: igem@chem.kuleuven.be