Introduction to ODE Modeling Shlomo Ta’asan Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
Work and play: Disease spread, social behaviour and data collection in schools Dr Jenny Gage, Dr Andrew Conlan, Dr Ken Eames.
Advertisements

Quantitative Methods Interactions - getting more complex.
Modeling of Complex Social Systems MATH 800 Fall 2011.
CHEMICAL AND PHASE EQUILIBRIUM (1)
MTH16_Lec-14_Sp14_sec_9-2_1st_Linear_ODEs.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
Åbo Akademi University & TUCS, Turku, Finland Ion PETRE Andrzej MIZERA COPASI Complex Pathway Simulator.
Lecture outline The nomenclature of Immunology Types of immunity (innate and adaptive; active and passive; humoral and cell- mediated) Features of immune.
Lecture outline The nomenclature of Immunology
Welcome To Math 463: Introduction to Mathematical Biology
Computational Biology, Part 17 Biochemical Kinetics I Robert F. Murphy Copyright  1996, All rights reserved.
Chapter 4: Stochastic Processes Poisson Processes and Markov Chains
Enrichment - Derivation of Integrated Rate Equations For a first-order reaction, the rate is proportional to the first power of [A].
Spatial Models of Tuberculosis: Granuloma Formation
Modeling the SARS epidemic in Hong Kong Dr. Liu Hongjie, Prof. Wong Tze Wai Department of Community & Family Medicine The Chinese University of Hong Kong.
Copyright © Cengage Learning. All rights reserved.
MTH16_Lec-01_sec_6-1_Integration_by_Parts.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
Blood Glucose Regulation BIOE Glucose Regulation Revisited input: desired blood glucose output: actual blood glucose error: desired minus measured.
How does mass immunisation affect disease incidence? Niels G Becker (with help from Peter Caley ) National Centre for Epidemiology and Population Health.
Equation --- An equation is a mathematical statement that asserts the equality of twomathematicalstatement expressions. An equation involves an unknown,
BIOLOGY OF HUMAN AGING CHAPTER 10 The Immune System.
Specific Resistance = Immunity
National Computational Science Leadership Program (NCSLP) 1 Explorations in Computational Science: Hands-on Computational Modeling using STELLA Presenter:
SIR Epidemic Models CS 390/590 Fall 2009
Presentation Schedule. Homework 8 Compare the tumor-immune model using Von Bertalanffy growth to the one presented in class using a qualitative analysis…
TEST 1 REVIEW. Single Species Discrete Equations Chapter 1 in Text, Lecture 1 and 2 Notes –Homogeneous (Bacteria growth), Inhomogeneous (Breathing model)
Grade 10 HIV/Aids.  HIV/Aids   HIV( human immunodeficiency virus) is the virus which causes Aids in the human body.  Aids( Acquired immune deficiency.
CODE RED WORM PROPAGATION MODELING AND ANALYSIS Cliff Changchun Zou, Weibo Gong, Don Towsley.
Ch 9.5: Predator-Prey Systems In Section 9.4 we discussed a model of two species that interact by competing for a common food supply or other natural resource.
Chapter 2 Mathematical Modeling of Chemical Processes Mathematical Model (Eykhoff, 1974) “a representation of the essential aspects of an existing system.
Introduction to Stochastic Models Shlomo Ta’asan Carnegie Mellon University.
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
1 Modelling the interactions between HIV and the immune system in hmans R. Ouifki and D. Mbabazi 10/21/2015AIMS.
Sanja Teodorović University of Novi Sad Faculty of Science.
Rates of Reactions Why study rates?
Sometimes using simple inspection of trials cannot be used to determine reaction rates Run #[A] 0 [B] 0 [C] 0 v0v M0.213 M0.398 M0.480 M/s
FW364 Ecological Problem Solving Class 21: Predation November 18, 2013.
Vaccine Education Module: The Immune System Updated: April 2013.
Models of HIV Infection at the Immune System Level Mellon Tri-Co Faculty Modeling Working Group Bryn Mawr College December 12, 2003 Douglas E. Norton Villanova.
The elements of higher mathematics Differential Equations
1.5 Solving Inequalities Remember the rules of solving inequalities.
Sheng-Fang Huang. 1.1 Basic Concepts Modeling A model is very often an equation containing derivatives of an unknown function. Such a model is called.
L – Modelling and Simulating Social Systems with MATLAB © ETH Zürich | Lesson 3 – Dynamical Systems Anders Johansson and Wenjian.
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
Biochemical Reactions: how types of molecules combine. Playing by the Rules + + 2a2a b c.
The Rate of Chemical Reactions – The Rate Law.
Predicting the Future To Predict the Future, “all we have to have is a knowledge of how things are and an understanding of the rules that govern the changes.
Def: The mathematical description of a system or a phenomenon is called a mathematical model.
MA354 Math Modeling Introduction. Outline A. Three Course Objectives 1. Model literacy: understanding a typical model description 2. Model Analysis 3.
The Modeling of the HIV Virus. Group Members Peter Phivilay Eric Siegel Seabass < With help from Joe Geddes.
Review Etc.. Modified Tumor-Immune Model Dimensional Analysis Effective growth rate for tumor cells (density) 1/3 /time Carrying capacity for tumor cells.
University of Wollongong Mathematics Teachers Day June 2011 Where’s the Mathematics In Medicine? School of Mathematics and Applied Statistics Faculty of.
SIR Epidemics: How to model its behavior? Soonmook Lee 1.
Ch. 18-Immune Today Your DCP & CE for the Catalase Lab are due….______ Write this down: 1. Download the DCP/CE Rubric 2. the end of your GRADED.
Numerical Analysis Yu Jieun.
Chemical Equilibrium Reactants Products Reactants Products As the time increases… [Reactants] decrease, so the rate of forward reaction decreases; [Products]
SIR Epidemics 박상훈.
Diseases. Variations  Disease- a disorder of a body, system, organ structure or function. Ex. Christmas Disease (hemophilia B)  Virus- any member of.
Kharkov National Medical University MEDICAL INFORMATICS МЕДИЧНА ІНФОРМАТИКА.
Differential Equations A Universal Language
Kinetics of chemical reactions: overview
Section 10.1 Mathematical Modeling: Setting Up A Differential Equation
Introduction to Reaction Rates
Differentiation.
Current Issues in Biology, Volume 3 Scientific American
Predicting the Future To Predict the Future, “all we have to have is a knowledge of how things are and an understanding of the rules that govern the changes.
Predicting the Future To Predict the Future, “all we have to have is a knowledge of how things are and an understanding of the rules that govern the changes.
Introduction to Reaction Rates
2 Chapter Chapter 2 Equations, Inequalities and Problem Solving.
© 2014 by Princeton University Press
Presentation transcript:

Introduction to ODE Modeling Shlomo Ta’asan Carnegie Mellon University

Plan We will learn in this tutorial: translating biological knowledge to differential equations models In the afternoon Lab we use matlab to simulate models generate graphs, make predictions,... In particular we will model Reactions, Trafficking, Simple infections Participants will also have an opportunity to ‘play’ with more complex models Lotka-Volterra – periodic solutions Lorenz model – chaos

Modeling Biology Driven Models Biology is understood and is translated into equations, reactions, graphs, Data Driven Modeling: Use experimental data only to construct models Main ingredients : Objects: molecules (cytokines/chemokines/...), cells (Macrophages, Neutrophils,...), organs( lymph node, spleen,.., lung,.. ) Actions: trafficking/migration, interaction (activation/inhibition), proliferation Differential equations are about rate of change of quantities

Ordinary Differential Equations (ODE) a – some quantity examples: cell count, receptor expression level, cell damage,... We write ODE as da/dt = f where f may be a complex formula We interpret this ODE as da = f * dt - we read it as: the change in a during a short time interval dt is equal to f times dt

The evolution of a through time is done in small steps of size dt According to the equation a(t+dt) = a(t) + f * dt (this is what we do in Matlab in the afternoon) dt f * dt

Basic Example 1 1. da/dt = 0 This means da = 0 * dt = 0  change in a is 0,  a does not change

Basic Example 2 2. da/dt = 2 - This means da = 2 * dt  a changes by 2 * dt

Basic Example 3 3.da/dt = - a da = - a * dt  a changes by – a * dt - This means that a decreases, and the reduction is large when a is large and getting small when a is getting smaller.

What do we want to model? - interactions in the immune system cell-cell, virus/bacterium – cell, molecule (cytokine/chemokine)-cell, etc - trafficking - Natural killer trafficking between organs in the body - Dendritic cell migration from tissue to lymph-node Spread of disease in a population (in a given location) HIV, Influenza A ?? Pandemic – worldwide spread of an infection focus on the spatial aspect – spread between countries, continents

Preparation for Modeling - Some Syntax Syntax: A  0 Meaning: “A dies”, “Neutrophil goes apoptosis”, “bacteria die” etc. Syntax A  B Meaning: “ A changes into B” for example: A – macrophage, B – activated macrophage Syntax: A + B  C Meaning: “A and B interact to give C” or If A meets B then C is produced.

B  0B degrades A + B  AB degrades in the presence of A S + A  SA S + B  SB SA + B  SAB SB + A  SAB S SA SB SAB

Modeling Reactions - The Law of Mass Action “The rate of change of products is proportional to the product of reactants concentration” A  0 The only reactant (left side) is a :  rate of change is proportional to a, ODE da/dt = -k*a (minus sign since we loose a) A  B : Similar to the previous case but here one B is created per each A that disappear ODE da/dt = -k*a as before but we also have db/dt = k*a; here the sign is +

Modeling Reactions – cont. A + B  C; Here the reactants (left side) is A and B, the product (right side) is C. dc/dt = k *a*b; C is created at a rate proportional to the product of the concentration of A and B da/dt = - k*a*b; The rate of change of A is tha same as the rate of change of C – per each C that is created one A is lost db/dt = - k*a*b, similar to A.

Modeling Reactions – cont. A + B  A; (B degrades in the presence of A) Here the reactants (left side) is A and B. The right hand side is A. This means that A does not change! da/dt = 0; The change in B according to the law of mass action is proportional to the product of A and B db/dt = - k*a*b; In contrast B  0 (B degrades) db/dt = -k * b

Modeling Trafficking An example: Macrophages are trafficking between lung to Lymph node and back Want to know the number of macrophages in lung ad Lymph node as time progress. L: Number of Macrophages in the Lung LN: Number of Macrophages in the Lymph Node Assumption: When a macrophage leaves the lung it ends at the lymph node and vice versa. The rate of trafficking is proportional to the number of cell. This sounds a lot like our reactions before.

Trafficking – cont. We use our syntax: L  LN and LN  L written also as L  LN The rate at which cells arrive to the lymph node from the lung is proportional to the number of cells in the lung. Similarly, rate at which cells arrive to the lung from the lymph node is proportional to the number of cells in the lymph node. The ODE: dL/dt = -k1*L + k2 * LNloss + gain dLN/dt = – k2*LN + k1*L loss + gain

Modeling Infection -The SIR model Population has three groups: Susceptible (S), Infected (I) and Recovered (R) The dynamics is expressed in the reactions S + I -> I + I (rate: r) I -> R (rate: a) A difficulty: I is changed by multiple reactions. How to construct the equations (ODE)? - each reaction is independent of the other - they appear simultaneously - the rate of change of a product is a sum of change coming from all reactions

Biological DescriptionTranslation to ReactionsTranslation to ODE Susceptible meets an infected and become infected S + I -> I + IdS/dt = - r*S*I dI/dt = r*S*I Infected becomes recovered I -> RdI/dt = - a*I dR/dt = a*I dS/dt = - r*S*I dI/dt = r*S*I - a*I dR/dt = a*I Complete ODE Model = SUM of contributions from all reactions SIR Model

SIR model The differential equations dS/dt = - r*S*I dI/dt = r*S*I – a*I dR/dt = a*I This model is more interesting. We change the parameters a, r We can also change the initial values for S,R,I and see what happens. When to expect epidemic? A relation between parameters Such questions can be answered using some mathematical analysis. In this lectures we do it by simulation. -- we will do it in the lab

An HIV model The HIV virus targets specific cells, the CD4+ T cells. These cells may get infected and serve as a virus producing factory. In HIV infection the main problem is the decline in the number of CD4+ T cells that are essential for protecting the body form different pathogens. It is important to understand the dynamics of the CD4 cell count as a function of time. In this simplified model (Perelson) we consider three populations T - Target cells (CD4 T cells) I - Infected cells V - Virus

HIV model cont. Model assumptions: -> T ; (lambda) % target cells production T -> 0 ; (d) % target cells natural death T + V -> I + V ; (k) % target cell becomes infected by virus I -> 0; (delta) % infected cells death I -> I + V; (p) % virus replication in infected cells V -> 0; (c) % virus clearance We construct the equations similar to the SIR model. Each reaction contribute to changes in several of the variables. We add all the changes together for each variable separately

Biological Description Translation to ReactionsTranslation to ODE target cells production -> T ; (lambda)dT/dt = lambda target cells natural death T -> 0 ; (d)dT/dt = – d * T target cell becomes infected by virus T + V -> I + V; (k)dT/dt = – k * V * T dI/dt = k * V * T infected cells deathI -> 0; (delta)dI/dt = – delta * I virus replication in infected cells I -> I + V; (p)dV/dt = p* I virus clearanceV -> 0; (c)dV/dt = – c * V dT/dt = lambda – d * T – k * V * T dI/dt = k * V * T – delta * I dV/dt = p* I – c * V Complete ODE Model is SUM of contributions from all reactions HIV Model

HIV model cont. The ODE: dT/dt = lambda – d * T – k * V * T dI/dt = k * V * T – delta * I dV/dt = p* I – c * V This model has 6 parameters that may affect the behavior. We will study this in the lab

ReactionTranslation to ODE -> A ; (k1)dA/dt = k1 B -> 0 ; (k2)dB/dt = - k2 * B A -> B ; (k3)dA/dt = - k3 * A dB/dt = k3 * A A + B -> C ; (k4)dA/dt = - k4 * A * B dB/dt = - k4 * A * B dC/dt = k4 * A * B A + B -> A + D; (k5)dB/dt = - k5* A*B dD/dt = k5* A*B A + B -> C + D + E; (k6) dA/dt = - k6 * A * B dB/dt = - k6 * A * B dC/dt = k6 * A * B dD/dt = k6 * A * B dE/dt = k6 * A * B Complete ODE Model is SUM of contributions from all reactions Quick Manual: From Reactions To ODE

Lotka-Volterra Equation A + X  X + X X + Y  Y + Y Y  B da/dt = - k1*a*x dx/dt = k * a * x dx/dt = - k2 * x * y dy/dt = k2 * x * y dy/dt = - k3*y db/dt = k3 * y dx/dt = k1*a*x – k2*x*yda/dt = -k1*x*a dy/dt = k2*x*y – k3*ydb/dt = k3*y

Periodic Solutions

Phase Diagram understanding complex solutions Predator Prey

Chaotic Solutions dX/dt = -c(X - Y) dY/dt = aX - Y - XZ dZ/dt = b(XY - Z) a = 28; b = 2.667; c = 10;

Lorenz Mode – Phase Diagram

Now You are Ready to Do Your Own ODE Models The Question The Variables The Interaction/Trafficking/… Translate to ODE Simulate How does ….??

Enjoy!!