Difference between revisions of "Team:KU Leuven/Modeling/Hybrid"
Line 99: | Line 99: | ||
</p></div> | </p></div> | ||
<div class="part"> | <div class="part"> | ||
− | + | <h2>Partial Differential Equations</h2> | |
+ | <p> | ||
+ | </p> | ||
+ | </div> | ||
+ | <div class="part"> | ||
<h2> | <h2> | ||
− | Agent-based | + | Agent-based Models |
</h2> | </h2> | ||
<p> | <p> | ||
Line 122: | Line 126: | ||
<h2> | <h2> | ||
− | Hybrid | + | Hybrid Modeling Framework |
</h2> | </h2> | ||
<p>In our system, there are both bacteria and chemical species that spread out | <p>In our system, there are both bacteria and chemical species that spread out | ||
Line 155: | Line 159: | ||
<div class="head"> | <div class="head"> | ||
<h2> | <h2> | ||
− | Model | + | Model Description |
</h2> | </h2> | ||
</div> | </div> | ||
Line 162: | Line 166: | ||
<div class="summarytext1"> | <div class="summarytext1"> | ||
<div class="part"> | <div class="part"> | ||
+ | </div> | ||
+ | <div class="center"> | ||
+ | <div class="togglebar"> | ||
+ | <div class="toggle"> | ||
<h2> | <h2> | ||
− | Hybrid | + | Hybrid Model |
</h2> | </h2> | ||
− | + | </div> | |
+ | <div id="toggle"> | ||
<p>The main protagonists in our pattern-forming system are cell types A and B, | <p>The main protagonists in our pattern-forming system are cell types A and B, | ||
AHL and leucine. Cells A produce AHL as well as leucine. They are unaffected by | AHL and leucine. Cells A produce AHL as well as leucine. They are unaffected by | ||
Line 179: | Line 188: | ||
immobile there. More details can be found in the | immobile there. More details can be found in the | ||
<a href="https://2015.igem.org/Team:KU_Leuven/Research">research section</a>.</p> | <a href="https://2015.igem.org/Team:KU_Leuven/Research">research section</a>.</p> | ||
− | </div> | + | </div> |
− | + | </div> | |
− | + | <div class="togglebar"> | |
− | + | <div class="toggle"> | |
− | + | ||
<h2> | <h2> | ||
Partial Differential Equations | Partial Differential Equations | ||
</h2> | </h2> | ||
− | </div> | + | </div> |
− | <div id=" | + | <div id="toggle"> |
<p> | <p> | ||
As discussed in the previous paragraph, our hybrid model incorporates chemical | As discussed in the previous paragraph, our hybrid model incorporates chemical | ||
Line 228: | Line 236: | ||
spatial distribution of agents is necessary. This is addressed in the | spatial distribution of agents is necessary. This is addressed in the | ||
subparagraph below on coupling. | subparagraph below on coupling. | ||
− | </p></div> | + | </p> |
− | </div> | + | </div> |
+ | </div> | ||
<div class="togglebar"> | <div class="togglebar"> | ||
− | <div class=" | + | <div class="toggle"> |
<h2>Agent-based</h2> | <h2>Agent-based</h2> | ||
</div> | </div> | ||
− | <div id=" | + | <div id="toggle"> |
<p> | <p> | ||
To model bacteria movement on the other hand, we used an agent-based model that | To model bacteria movement on the other hand, we used an agent-based model that | ||
Line 256: | Line 265: | ||
forces times a constant. For more info about the Reynolds number and “life at | forces times a constant. For more info about the Reynolds number and “life at | ||
low Reynolds number” we refer to box 2. | low Reynolds number” we refer to box 2. | ||
− | + | <div class="whiterow"></div> | |
− | + | ||
− | + | <b> | |
− | + | Stochastic Differential Equation | |
− | + | </b> | |
− | + | </p> | |
− | < | + | |
− | Stochastic | + | |
− | </ | + | |
− | </ | + | |
− | + | ||
$$ 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) $$ | ||
Line 309: | Line 313: | ||
constant allows us to examine the effect of the relative strength of chemotaxis | constant allows us to examine the effect of the relative strength of chemotaxis | ||
versus random motion on pattern formation. | versus random motion on pattern formation. | ||
− | </p></div> | + | </p> |
− | </ | + | <div class="whiterow"></div> |
+ | <p> | ||
+ | <b> | ||
+ | Cell-cell Interactions | ||
+ | </b> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
In addition to chemotaxis and diffusion, cell-cell interactions play an | In addition to chemotaxis and diffusion, cell-cell interactions play an | ||
important role in pattern formation and also need to be modeled. Bacteria have | important role in pattern formation and also need to be modeled. Bacteria have | ||
Line 375: | Line 374: | ||
regarding the nearest-neighbor search algorithm, can be found in the paragraph on the agent-based | regarding the nearest-neighbor search algorithm, can be found in the paragraph on the agent-based | ||
module below. | module below. | ||
− | </p | + | </p> |
− | + | <div class="whiterow"></div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </div | + | |
− | + | ||
<p> | <p> | ||
+ | <b> | ||
+ | Equation of Motion | ||
+ | </b> | ||
Now we are ready to construct the equation of motion for cell type A and B as a | Now we are ready to construct the equation of motion for cell type A and B as a | ||
superposition of the Keller-Segel SDE (Eq. 6) and the cell interaction forces, | superposition of the Keller-Segel SDE (Eq. 6) and the cell interaction forces, | ||
Line 500: | Line 493: | ||
</div> | </div> | ||
</div> | </div> | ||
− | + | <div class="togglebar"> | |
− | <div class=" | + | <div class="toggle"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<h2> | <h2> | ||
Coupling | Coupling | ||
</h2> | </h2> | ||
− | |||
− | |||
− | |||
</div> | </div> | ||
− | + | <div id="toggle"> | |
− | + | ||
− | + | ||
<p> | <p> | ||
+ | <b>Agent-based to PDE</b> | ||
As described above, the agents’ effect in the PDE is modeled as a source term | As described above, the agents’ effect in the PDE is modeled as a source term | ||
that is proportional to the agent density. This approach is essentially the same | that is proportional to the agent density. This approach is essentially the same | ||
Line 580: | Line 563: | ||
<h4><div id=figure1>Figure 1</div> Gaussian, triangular and Epanechnikov kernel functions. Click to enlarge </h4> | <h4><div id=figure1>Figure 1</div> Gaussian, triangular and Epanechnikov kernel functions. Click to enlarge </h4> | ||
</div> | </div> | ||
− | + | <div class="whiterow"></div> | |
− | + | <p> | |
− | + | <b> PDE to agent-based </b><br/> | |
− | </div> | + | |
− | + | ||
− | + | ||
− | + | ||
The final component of our hybrid model is the mapping of the PDE model to the agent-based model. | The final component of our hybrid model is the mapping of the PDE model to the agent-based model. | ||
The latter model works with discrete objects that have continuous coordinates, which means that they can be located | The latter model works with discrete objects that have continuous coordinates, which means that they can be located | ||
Line 603: | Line 583: | ||
</p> | </p> | ||
</div> | </div> | ||
+ | </div> | ||
Line 644: | Line 625: | ||
</div> | </div> | ||
− | <div class=" | + | <div class="togglebar"> |
+ | <div class="toggle"> | ||
<h2>Matching</h2> | <h2>Matching</h2> | ||
− | <p> | + | <div id="toggle"> |
+ | <p><b>Decoupling of timesteps</b><br/> | ||
In order to benefit from the implicit PDE-solver described above the agent's time steps are chosen smaller | In order to benefit from the implicit PDE-solver described above the agent's time steps are chosen smaller | ||
then the time steps of the PDE solver. However type A cells produce molecules continuously as they move | then the time steps of the PDE solver. However type A cells produce molecules continuously as they move | ||
Line 678: | Line 661: | ||
width="100%"> | width="100%"> | ||
<div class="head"> | <div class="head"> | ||
− | + | <h2>1-D Hybrid Model</h2> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | <div class="summarytext1"> | |
− | + | <div class="part"> | |
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | ||
<!-- first Videobox start--> | <!-- first Videobox start--> | ||
<video id="video1" preload="auto" width="65%" tabindex="0" controls="" type="video/mp4"> | <video id="video1" preload="auto" width="65%" tabindex="0" controls="" type="video/mp4"> | ||
Line 719: | Line 700: | ||
</div> | </div> | ||
− | + | </div> | |
− | + | <div class="summaryheader"> | |
− | + | <div class="summaryimg"> | |
+ | <img src="https://static.igem.org/mediawiki/2015/e/eb/KU_Leuven_fossilBackground.png" | ||
+ | width="100%"> | ||
+ | <div class="head"> | ||
+ | <h2>2-D Hybrid Model</h2> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="summarytext1"> | ||
+ | <div class="part"> | ||
+ | </div> | ||
+ | </div> | ||
<!-- second Videobox start--> | <!-- second Videobox start--> | ||
<video id="video2" preload="auto" width="65%" tabindex="0" controls="" type="video/mp4"> | <video id="video2" preload="auto" width="65%" tabindex="0" controls="" type="video/mp4"> | ||
Line 775: | Line 767: | ||
beautifully illustrates the added value of hybrid modeling.</p> | beautifully illustrates the added value of hybrid modeling.</p> | ||
</div> | </div> | ||
+ | </div> | ||
− | <div class=" | + | <div class="summaryheader"> |
+ | <div class="summaryimg"> | ||
+ | <img src="https://static.igem.org/mediawiki/2015/e/eb/KU_Leuven_fossilBackground.png" | ||
+ | width="100%"> | ||
+ | <div class="head"> | ||
<h2>Incorporation of internal model</h2> | <h2>Incorporation of internal model</h2> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="summarytext1"> | ||
+ | <div class="part"> | ||
<p>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. </p> | <p>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. </p> | ||
<br> | <br> | ||
Line 867: | Line 869: | ||
</table> | </table> | ||
</div> | </div> | ||
+ | </div> | ||
+ | <div class="summaryheader"> | ||
+ | <div class="summaryimg"> | ||
+ | <img src="https://static.igem.org/mediawiki/2015/e/eb/KU_Leuven_fossilBackground.png" | ||
+ | width="100%"> | ||
+ | <div class="head"> | ||
+ | <h2>Equations</h2> | ||
</div> | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <div class="summarytext1"> | ||
+ | <div class="part"> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
<div class="whiterow"></div> | <div class="whiterow"></div> | ||
<!--Foot don't touch!--> | <!--Foot don't touch!--> |
Revision as of 21:10, 18 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.
Introduction
Spatial reaction-diffusion models that rely on Partial Differential Equations (PDEs) are based on the assumption that the collective behavior of individual entities, such as molecules or bacteria, can be abstracted to the behavior of a continuous field that represents the density of those entities. The brownian motion of molecules, for instance, is the result of inherently stochastic processes that take place at the individual molecule level, but is modeled at the density level by Fick’s laws of diffusion. These PDE-based models provide a robust method to predict the evolution of large-scale systems, but are only valid when the spatiotemporal scale is sufficiently large to neglect small-scale stochastic fluctuations and physical granularity. Moreover, such a continuous field approximation can only be made if the behavior of the individual entities is well described.
Partial Differential Equations
Agent-based Models
Agent-based models on the other hand explicitly treat the entities as individual “agents” that behave according to a set of “agent rules”. An agent is an object that acts independently from other agents and is influenced only by its local environment. The goal in agent-based models is to study the emergent systems-level properties of a collection of individual agents that follow relatively simple rules. In smoothed particle hydrodynamics for example, fluids are simulated by calculating the trajectory of each individual fluid particle at every timestep. Fluid properties such as the momentum at a certain point can then be sampled by taking a weighted sum of the momenta of the surrounding fluid particles. A large advantage of agent-based models is that the agent rules are arbitrarily complex and thus they allow us to model systems that do not correspond to any existing or easily derivable PDE model. However, because every agent is stored in memory and needs to be processed individually, simulating agent-based models can be computationally intensive.
Hybrid Modeling Framework
In our system, there are both bacteria and chemical species that spread out
and interact on a petri dish to form patterns. On the one hand, the bacteria are
rather complex entities that move along chemical gradients and interact with one
another. Therefore they are ideally modeled using an agent-based model. On the
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
modelling approach, we decided to combine these two different types of modeling
in a hybrid modelling framework. In this framework we modeled the bacteria as
agents, while the chemical species were modeled using PDEs. There were two
challenges to our hybrid approach, namely coupling the models and matching them.
Coupling refers to the transfer of information between the models and matching
refers to dealing with different spatial and temporal scales to achieve
accurate, yet computationally tractable simulations.
In the following paragraphs we first introduce our hybrid model and its
coupling. Once the basic framework is established, the agent-based module and
PDE module are discussed in more depth and the issue of matching is highlighted.
We also expand on important aspects of the model and its implementation such as
boundary conditions and choice of timesteps. Then the results for the 1-D model
and 2-D model simulations are shown and summarized. Finally, the incorporation
of the internal model into the hybrid model is discussed and a proof of concept
is demonstrated.
Model Description
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