Reaction-Diffusion Models
Reaction-Diffusion Models
There is a (broad) topic which we started to discuss in the previous lectures: the notion of _emergence_, i.e. how structures that are relevant for artificial life can spontaneously emerge in _natural systems_
There is a (broad) topic which we started to discuss in the previous lectures: the notion of emergence, i.e. how structures that are relevant for artificial life can spontaneously emerge in natural systems
By natural system, we can mean several things:
By natural system, we can mean several things:
Not engineered to display a desired behavior
Not engineered to display a desired behavior
Derived from simple principles
Derived from simple principles
Derived by trying to describe some physics
Derived by trying to describe some physics
This is the title of a paper of Turing in 1951, which we will focus on today
This is the title of a paper of Turing in 1951, which we will focus on today
From Continuous Structures to Discrete Ones
From Continuous Structures to Discrete Ones
It is taught in statistical mechanics and related disciplines how continuous limits arise from many discrete interactions, once we go to a large enough scale
It is taught in statistical mechanics and related disciplines how continuous limits arise from many discrete interactions, once we go to a large enough scale
However, the converse question is not as much discussed (or even at all, except perhaps in quantum mechanics): how do discrete structures emerge from continuous ones?
However, the converse question is not as much discussed (or even at all, except perhaps in quantum mechanics): how do discrete structures emerge from continuous ones?
For instance, if we want to use computers (at some scale), we will need some discrete structures, and in nature
For instance, if we want to use computers (at some scale), we will need some discrete structures, and in nature
This kind of questions can also be asked for cellular automata, and in particular certain cellular automata can be seen to give rise, at higher scales to continuous dynamics, like fluid mechanics
This kind of questions can also be asked for cellular automata, and in particular certain cellular automata can be seen to give rise, at higher scales to continuous dynamics, like fluid mechanics
Interactions between Discrete and Continuum
Interactions between Discrete and Continuum
The question of interaction between discrete and continuous structures is one of the most important in science
The question of interaction between discrete and continuous structures is one of the most important in science
From Discrete Structures to Continuous Ones
From Discrete Structures to Continuous Ones
The Chemical Basis of Morphogenesis
The Chemical Basis of Morphogenesis
The paper aims at eludicating how certain structure (in particular patterns) can spontaneously emerge e.g. in living tissues
The paper aims at eludicating how certain structure (in particular patterns) can spontaneously emerge e.g. in living tissues
In itself, this paper does not answer exactly how discrete structures emerge in continuous settings (nor does it try), but it reveals some important biological mechanisms that have for instance led, in the recent years, to the invention of Lenia
In itself, this paper does not answer exactly how discrete structures emerge in continuous settings (nor does it try), but it reveals some important biological mechanisms that have for instance led, in the recent years, to the invention of Lenia
Can we for instance make some gliders (like the ones of the Game of Life) emerge in continuous settings?
Can we for instance make some gliders (like the ones of the Game of Life) emerge in continuous settings?
In that context, key tools are: Taylor expansions, Fourier techniques, the Central Limit Theorem (which can be viewed as a consequence of the former two)
In that context, key tools are: Taylor expansions, Fourier techniques, the Central Limit Theorem (which can be viewed as a consequence of the former two)
In some sense, the question of interesting gliders was solved in the recent years with the invention of the Lenia family of cellular automata
In some sense, the question of interesting gliders was solved in the recent years with the invention of the Lenia family of cellular automata
Interestingly and surprisingly, the natural question of the connection with Turing-completeness was never done
Interestingly and surprisingly, the natural question of the connection with Turing-completeness was never done
(This could lead to an interesting project, even at the scale of this course)
(This could lead to an interesting project, even at the scale of this course)
A key question of focus is the embryonic development: how the embryo which is initially spherical, can undergo a symmetry breaking that leads to the emergence of structures like the ones we see in tissues
A key question of focus is the embryonic development: how the embryo which is initially spherical, can undergo a symmetry breaking that leads to the emergence of structures like the ones we see in tissues
(This looks like the kind of structures from which we could at least in principle build some computation devices)
(This looks like the kind of structures from which we could at least in principle build some computation devices)
Chemical Reactions
Chemical Reactions
Adding diffusion to the reaction system
Adding diffusion to the reaction system
Continuous Limits with PDEs
Continuous Limits with PDEs
Some Phenomenology
Some Phenomenology
Key Results about the Paper
Key Results about the Paper
If we have two chemicals $C_1$ and $C_2$ that transform into a chemical $C_3$, which we denote by $C_1+C_2\to C_3$, the rate at which $C_3$ will be produced from that reaction will be proportional to the _product_ of the concentrations of $C_1$ and $C_2$
If we have two chemicals C1C_1 and C2C_2 that transform into a chemical C3C_3, which we denote by C1+C2C3C_1+C_2\to C_3, the rate at which C3C_3 will be produced from that reaction will be proportional to the product of the concentrations of C1C_1 and C2C_2
Typically, we will denote by brackets e.g. $[C_1]_t, [C_2]_t$ the corresponding _concentrations_ of the chemicals $C_1, C_2$ as they evolve in time (with $t$ being the time variable)
Typically, we will denote by brackets e.g. [C1]t,[C2]t[C_1]_t, [C_2]_t the corresponding concentrations of the chemicals C1,C2C_1, C_2 as they evolve in time (with tt being the time variable)
So, if we had only this reaction, we would have a system of differential equations of the form
So, if we had only this reaction, we would have a system of differential equations of the form
$d[C_1]_t/dt=-k[C_1]_t[C_2]_t$
d[C1]t/dt=k[C1]t[C2]td[C_1]_t/dt=-k[C_1]_t[C_2]_t
$d[C_2]_t/dt=-k[C_1]_t[C_2]_t$
d[C2]t/dt=k[C1]t[C2]td[C_2]_t/dt=-k[C_1]_t[C_2]_t
$d[C_3]_t/dt=k[C_1]_t[C_2]_t$
d[C3]t/dt=k[C1]t[C2]td[C_3]_t/dt=k[C_1]_t[C_2]_t
More generally, if we have $n$ chemicals with concentrations $[C_1]_t,[C_2]_t,\ldots,[C_n]_t$, we have a system of $n$ differential equations for $j=1,\ldots,n$
More generally, if we have nn chemicals with concentrations [C1]t,[C2]t,,[Cn]t[C_1]_t,[C_2]_t,\ldots,[C_n]_t, we have a system of nn differential equations for j=1,,nj=1,\ldots,n
General form of reaction systems
General form of reaction systems
where $f_1,\ldots,f_n$ are each a nonlinear function of the concentrations $f_j:[0,1]^n\to\mathbb R$ for $j=1,\ldots,n$
where f1,,fnf_1,\ldots,f_n are each a nonlinear function of the concentrations fj:[0,1]nRf_j:[0,1]^n\to\mathbb R for j=1,,nj=1,\ldots,n
$d[C_j]_t/dt=f_j([C_1],\ldots,[C_n])$
d[Cj]t/dt=fj([C1],,[Cn])d[C_j]_t/dt=f_j([C_1],\ldots,[C_n])
Now, imagine that cells form a one-dimensional grid (these could model real cells in an organism), where each cell has a certain concentration of the chemicals $C_1,\ldots ,C_n$, and now the chemicals in a cell diffuse to the neighboring cells
Now, imagine that cells form a one-dimensional grid (these could model real cells in an organism), where each cell has a certain concentration of the chemicals C1,,CnC_1,\ldots ,C_n, and now the chemicals in a cell diffuse to the neighboring cells
Now, the differential equations become for the concentration $[C_j^k]$ of $C_j $ at the position $k$ become
Now, the differential equations become for the concentration [Cjk][C_j^k] of CjC_j at the position kk become
$d[C_j^k]_t/dt=f_j([C_1^k]_t,\ldots,[C_n^k]_t)+\alpha_j([C_{j}^{k-1}]_t+[C_{j}^{k+1}]_t-2[C_{j}^k])_t$
d[Cjk]t/dt=fj([C1k]t,,[Cnk]t)+αj([Cjk1]t+[Cjk+1]t2[Cjk])td[C_j^k]_t/dt=f_j([C_1^k]_t,\ldots,[C_n^k]_t)+\alpha_j([C_{j}^{k-1}]_t+[C_{j}^{k+1}]_t-2[C_{j}^k])_t
The term in front of the $\alpha$ reflects how much the concentration of $C_j$ at $k$ differs from the concentration of $C_j$ at the neighbors (this makes them tend to equilibrate)
The term in front of the α\alpha reflects how much the concentration of CjC_j at kk differs from the concentration of CjC_j at the neighbors (this makes them tend to equilibrate)
We can of course look at a higher-dimensional grid, and we would generally have something like
We can of course look at a higher-dimensional grid, and we would generally have something like
$d[C_j^k]_t/dt=f_j([C_1^k]_t,\ldots,[C_n^k]_t)+\alpha_j \Delta_k [C_{j}^\cdot]_t$
d[Cjk]t/dt=fj([C1k]t,,[Cnk]t)+αjΔk[Cj]td[C_j^k]_t/dt=f_j([C_1^k]_t,\ldots,[C_n^k]_t)+\alpha_j \Delta_k [C_{j}^\cdot]_t
with $\Delta_k[C_j^\cdot]_t$ is the discrete Laplacian, which reflects how much the concentration differs from the neighboring concentrations
with Δk[Cj]t\Delta_k[C_j^\cdot]_t is the discrete Laplacian, which reflects how much the concentration differs from the neighboring concentrations
If we pass to the limit when the lattice becomes a very fine grid (with mesh size $\delta$ going to $0$, the discrete Laplacian (with $e_i$ denoting the basis vector with $j$-th entry being $1$ and the other ones $0$) reads:
If we pass to the limit when the lattice becomes a very fine grid (with mesh size δ\delta going to 00, the discrete Laplacian (with eie_i denoting the basis vector with jj-th entry being 11 and the other ones 00) reads:
$(\sum_{i=1}^d f(x+\delta e_i)+f(x-\delta e_i))-2d f(x)$
(i=1df(x+δei)+f(xδei))2df(x)(\sum_{i=1}^d f(x+\delta e_i)+f(x-\delta e_i))-2d f(x)
$\sum_{i=1}^d (f(x)+\delta \partial_{i}f(x) e_i+\frac{\delta^2}{2}\partial_{ii} f(x) + (f(x)-\delta \partial_{i}f(x) e_i+\frac{\delta^2}{2}\partial_{ii} f(x) )-2df(x)+o(\delta^2)$
i=1d(f(x)+δif(x)ei+δ22iif(x)+(f(x)δif(x)ei+δ22iif(x))2df(x)+o(δ2)\sum_{i=1}^d (f(x)+\delta \partial_{i}f(x) e_i+\frac{\delta^2}{2}\partial_{ii} f(x) + (f(x)-\delta \partial_{i}f(x) e_i+\frac{\delta^2}{2}\partial_{ii} f(x) )-2df(x)+o(\delta^2)
becomes, using a second-order Taylor expansion
becomes, using a second-order Taylor expansion
And hence as $\delta\to0$, we get $\delta ^2\Delta f(x)+o(\delta^2)$, where
And hence as δ0\delta\to0, we get δ2Δf(x)+o(δ2)\delta ^2\Delta f(x)+o(\delta^2), where
$\Delta f(x)=\sum_i^d \partial_{ii} f(x)$
Δf(x)=idiif(x)\Delta f(x)=\sum_i^d \partial_{ii} f(x)
So, going back to reaction-diffusions, if we denote by $X_1,\ldots ,X_n$ the space-time field function of $(x,t)$ representing the reaction at location $x$ and time $t$, we get, for some $\alpha>0$
So, going back to reaction-diffusions, if we denote by X1,,XnX_1,\ldots ,X_n the space-time field function of (x,t)(x,t) representing the reaction at location xx and time tt, we get, for some α>0\alpha>0
$\partial_t X_j = f_j(X_1,\ldots,X_n) + \alpha_j \Delta X_j$
tXj=fj(X1,,Xn)+αjΔXj\partial_t X_j = f_j(X_1,\ldots,X_n) + \alpha_j \Delta X_j
This is the reaction-diffusion PDE
This is the reaction-diffusion PDE
The main insight of Turing is that this simple PDE, which really comes from first principles, can exhibit much of the richness of behaviors that is displayed in the natural world
The main insight of Turing is that this simple PDE, which really comes from first principles, can exhibit much of the richness of behaviors that is displayed in the natural world
Key Insight
Key Insight
In particular, via an analysis of the solutions near equilibrium points of $f_1,\ldots, f_n$ (i.e. space perturbations around constant solutions), one can see e.g. 'zebra stripe phenomena'
In particular, via an analysis of the solutions near equilibrium points of f1,,fnf_1,\ldots, f_n (i.e. space perturbations around constant solutions), one can see e.g. 'zebra stripe phenomena'
This is one the simplest situation where there are only two chemicals $U$ and $V$ whose concentration we call $u(x,t)$ and $v(x,t)$
This is one the simplest situation where there are only two chemicals UU and VV whose concentration we call u(x,t)u(x,t) and v(x,t)v(x,t)
The Gray-Scott equation:
The Gray-Scott equation:
$\partial_t u=\Delta u-uv^2+\beta (1-u)$
tu=Δuuv2+β(1u)\partial_t u=\Delta u-uv^2+\beta (1-u)
$\partial_t v=\Delta v + uv^2-(\beta+\gamma)v$
tv=Δv+uv2(β+γ)v\partial_t v=\Delta v + uv^2-(\beta+\gamma)v
It corresponds to the reaction $U+2V\leadsto 3V$, with some feed rate $\beta$ for $U$ and some kill rate $\gamma$ for $V$
It corresponds to the reaction U+2V3VU+2V\leadsto 3V, with some feed rate β\beta for UU and some kill rate γ\gamma for VV
The spatial variable $x\in\mathbb R^d$, where $d=2$ in the video below
The spatial variable xRdx\in\mathbb R^d, where d=2d=2 in the video below
Gray-Scott Equation
Gray-Scott Equation
Belousov-Zhabotinsky Equation
Belousov-Zhabotinsky Equation
This describes a chemical reaction cycle with chemicals $A,B,C$ with cycle interactions:
This describes a chemical reaction cycle with chemicals A,B,CA,B,C with cycle interactions:
$A+B\to 2A$
A+B2AA+B\to 2A
$B+C\to 2B$
B+C2BB+C\to 2B
$C+A\to2C$
C+A2CC+A\to2C
We get that the concentrations $a,b,c$ satisfy
We get that the concentrations a,b,ca,b,c satisfy
$\partial_t a=\Delta a+a(b-c)$
ta=Δa+a(bc)\partial_t a=\Delta a+a(b-c)
$\partial _t b=\Delta b+b(c-a)$
tb=Δb+b(ca)\partial _t b=\Delta b+b(c-a)
$\partial c=\Delta c + c(a-b)$
c=Δc+c(ab)\partial c=\Delta c + c(a-b)
A picture from Turing's original paper
A picture from Turing's original paper
Dappling pattern emergence
Dappling pattern emergence
Reaction-Diffusion PDE
Reaction-Diffusion PDE
Diffusion PDE
Diffusion PDE
To play with this: see the website of Karl Sims
To play with this: see the website of Karl Sims
(or you can use PyCA!)
(or you can use PyCA!)
Some Solitons with Reaction-Diffusion Models
Some Solitons with Reaction-Diffusion Models
Some progress towards gliders?
Some progress towards gliders?
Belousov-Zhabotinsky with r,g,b
Belousov-Zhabotinsky with r,g,b
Belousov-Zhabotinsky in the physical world (experiment by Tim Kench)
Belousov-Zhabotinsky in the physical world (experiment by Tim Kench)
Various phases of the Gray-Scott Equation
Various phases of the Gray-Scott Equation
Some Patterns in Nature
Some Patterns in Nature
Some pattern simulations vs animal skin
Some pattern simulations vs animal skin
Some patterns on lizards scales (Manyukan, Montandon, Fofonjka, Smirnov, Milinkovitch from Unige)
Some patterns on lizards scales (Manyukan, Montandon, Fofonjka, Smirnov, Milinkovitch from Unige)
Key Statement (Informally)
Key Statement (Informally)
We don't need more than basic chemistry to explain the process of pattern formation
We don't need more than basic chemistry to explain the process of pattern formation
Diffusion: running the discrete Laplace's equation
Diffusion: running the discrete Laplace's equation
.
alife-course
lecture-01
lecture-02
lecture-03
lecture-04
lecture-05
lecture-06
lecture-07
lecture-08
lecture-09
scratch