A Life Part A

Embed Size (px)

Citation preview

  • 8/2/2019 A Life Part A

    1/107

    Artificial Life

    p1 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Dr Richard Mitchell

    Soft, Hard and Wet (biological/chemical) approaches

    Introductions, Theory and Applications

  • 8/2/2019 A Life Part A

    2/107

    p2 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Aims of ModuleAims:

    Swarm Intelligence and Artificial Life are two active areas of

    research in computational optimisation and modelling. This moduleaims to inspire students into exploring the creative potential ofthese fields as well as providing insight into the state-of-the-art.

    So will describe work in A-Life :

    Overview + Soft, Hard, Wet

    Fundamentals & concepts, Progress & achievements

    And include latest research presentations

    theory and method ; advances and applications

  • 8/2/2019 A Life Part A

    3/107

    p3 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Module OutcomesAssessable Learning Outcomes:

    The debate between higher purpose (teleology) and emergence

    will be examined. Theoretical understanding of life and life-likephenomena will be tested. Current scientific issues concerningattempts at synthesising life will be evaluated.

    Additional Outcomes:

    The philosophical, social and ethical issues surrounding thecreation of soft, hard & wet artificial life are importantconsiderations for this subject.

    Assessment: Coursework only : presentation + web page

  • 8/2/2019 A Life Part A

    4/107

    History of A Life

    p4 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Probably the first to actively study and write on related topics wasJohn Von Neumann, mid 20th Century

    In The General and Logical Theory of Automata he proposedthat living organisms are just machines.

    He also studied machine self replication, suggesting an organismmust contain list of instructions on how to copy itseld

    Predating discovery of DNA (Crick, Watson, Franklin, Wilkins)

    Also significant, Mathematical Games column in Scientific American,which publicised John Conways Cellular Automaton ideas (1960s)

    The term artificial life was coined by Chris Langton, late 1980s.

    He was also responsible for the first specific conference (onSynthesis and Simulation of Living Systems)

  • 8/2/2019 A Life Part A

    5/107

    What is Life ?

    p5 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    What was life? No one knew. It was undoubtedly aware of itself,so soon as it was life; but it did not know what it was.

    Thomas Mann [1924]

    Life is a dynamic state of matter organized by information.

    Manfred Eigen [1992]

    Life is a complex system for information storage and processing.

    Minoru Kanehisa [2000]

  • 8/2/2019 A Life Part A

    6/107

    Websters Definition

    p6 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    the general condition that distinguishes organisms frominorganic objects and dead organisms, being manifested bygrowth through metabolism, a means of reproduction, and

    internal regulation in response to the environment.

    the animate existence or period of animate existence of anindividual.

    a corresponding state, existence, or principle of existenceconceived of as belonging to the soul.

    the period of existence, activity, or effectiveness of somethinginanimate, as a machine, lease, or play.

    animation; liveliness; spirit: the force that makes or keepssomething alive; the vivifying or quickening principle.

  • 8/2/2019 A Life Part A

    7/107

    What living things have in common

    p7 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    http://www.windows2universe.org/earth/Life/life1.html saysbiologists have determined that all living things share these:

    Living things need to take in energyLiving things get rid of waste

    Living things grow and develop

    Living things respond to their environment

    Living things reproduce and pass their traits onto theiroffspring

    Over time, living things evolve (change slowly) in response totheir environment

  • 8/2/2019 A Life Part A

    8/107

    p8 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Also difficult: where did Life come from?

    Geogenesis:

    Life started on Earth, in a relatively short period of time

    Atomic synthesis of C, N, O elements complicated

    Exact Conditions required to bootstrap life unknown

    Not observed new life being created from elements

    Exogenesis:

    Life started on an equivalent of EarthLife (or necessary components) travelled through space

    Seeded life then flourished on Earth

    Panspermia :

    Life (and seeds of life) exists throughout the universe

    Life could exist (and may already exist) elsewhere in the universe.

    Could A-Life help resolve the uncertainty?

  • 8/2/2019 A Life Part A

    9/107

    p9 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Overview of ALifePromotion:Artificial Life, a field that seeks to increase the role of synthesis inthe study of biological phenomena, has great potential, both forunlocking the secrets of life and for raising a host of disturbingissues-scientific and technical as well as philosophical and ethical.

    Christopher G. LangtonAcademic:Artificial Life investigates the scientific, engineering,

    philosophical, and social issues involved in our rapidly increasingtechnological ability to synthesize life-like behaviors from scratch incomputers, machines, molecules, and other alternative media.

    Artificial Life Journal MIT press

    Synthesis:To make a synthesis of; to put together or combine into a complex

    whole; to make up by combination of parts or elements.

    Oxford English Dictionary

  • 8/2/2019 A Life Part A

    10/107

    More from Chris Langton (1989)

    p10 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    AL views life as a property of the organization of matter, ratherthan a property of the matter which is so organized.

    Whereas biology has largely concerned itself with the material basisof life, AL is concerned with the formal basis of life.

    It starts at the bottom, viewing an organism as a large population ofsimple machines, and works upwards synthetically from there

    constructing large aggregates of simple, rule-governed objects whichinteract with one another nonlinearly in the support of life-like,global dynamics.

    The key concept in AL is emergent behavior.

    AL is concerned with tuning the behaviors of such low-level machinesthat the behavior that emerges at the global level is essentially thesame as some behavior exhibited by a natural living system. [...]Artificial Life is concerned with generating lifelike behavior.

  • 8/2/2019 A Life Part A

    11/107

    p11 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Alife Underview

    Alife is Fact Free Science

    John Maynard Smith, 1994

    Instead of testing a hypothesis on observable data, Alife seeks tosynthesise life like behaviour in agents.

    [Strong AL vs Weak AL debate as in with AI]

    An agent has a set of assigned properties, components or abilitiesbut not globally defined behaviours.

    Emergence of global behaviours from local interactions is desired Alife overlaps with Complex Systems

    This bottom-up approach with feedback & environmental interactionhas similarities with Cybernetics

  • 8/2/2019 A Life Part A

    12/107

    p12 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    ALife Alternative Descriptions

    Artificial Life considers the synthesis of life and life-likephenomena in wetware, hardware, and software, and theapplication of such techniques toward the enhancement of ourtheoretical understanding of life and life-like phenomena. It isalso intended to serve as a forum for the discussion andevaluation of the many technological, philosophical, social, andethical issues involved in our attempts to synthesize vital

    phenomena artificially.Artificial Life Journal

  • 8/2/2019 A Life Part A

    13/107

    p13 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    www.aaai.org/aitopics/html/alife.htmlArtificial Life is devoted to a new discipline that investigates the

    scientific, engineering, philosophical, and social issues involved inour rapidly increasing technological ability to synthesize life-likebehaviors from scratch in computers, machines, molecules, andother alternative media.

    By extending the horizons of empirical research in biology beyond

    the territory currently circumscribed by life-as-we-know-it, thestudy of artificial life gives us access to the domain of life-as-it-could-be.

    Relevant topics span the hierarchy of biological organization,

    including studies of the origin of life, self-assembly, growth anddevelopment, evolutionary and ecological dynamics, animal androbot behavior, social organization, and cultural evolution.

  • 8/2/2019 A Life Part A

    14/107

    p14 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Conference Topics - www.alifexi.org/cfp/Synthesis and origin of life, self-organization, self-replication,artificial chemistries

    Evolution and adaptation, evolutionary dynamics, evolutionary games,

    coevolution, major evolutionary transitions, ecosystemsDevelopment, differentiation, regulation; generative representations

    Synthetic biology

    Self-organizing technology, self-computing/computational ecosystemsUnconventional and biologically inspired computing

    Bio-inspired robots and embodied cognition, autonomous agents,

    evolutionary roboticsCollective behavior, communication, cooperation

    Artificial consciousness; the relationship between life and mind

  • 8/2/2019 A Life Part A

    15/107

    p15 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    ContinuedPhilosophical, ethical, and cultural implications

    Mathematical and philosophical foundations of Alife

    Evolution in the Brain; Artificial Consciousness: From Alife to Mind

    Communication in Embodied Agents

    Designing for Self; Amorphous and Soft Robotics

    Dynamical Systems Analysis

    Trophic Interactions Between Digital Organisms

    Autonomous Energy Management for Long Lived Robots

    Models for Gaia Theory - including Daisyworld

    The Environment and Evolution; Hidden Epistemology

  • 8/2/2019 A Life Part A

    16/107

    p16 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Alife Plan - in Components

    A gods eye view of the field

    Origin of life

    Evolutionary and ecological dynamics

    Growth and development

    Self-assembly

    Synthetic biology

    Animal and robot behaviourSocial organization, computational ecosystems and cultural evolution

    Collective behaviour, communication, cooperation

    Artificial consciousnessRelationship between life and mind

    Life-as-it-could-be

  • 8/2/2019 A Life Part A

    17/107

    p17 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    However

    Components in isolation do not give us artificial life.

    Cannot be too reductionist

    (top down)

    or too holistic

    (bottom-up).

    Need driving forces and purpose of how life is created.

    Artificial Life is one of many related subjects ...

  • 8/2/2019 A Life Part A

    18/107

    p18 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Theoretical Division of AI

    LEARNING

    GENETIC EVOLUTIONARY COMP. NEURAL NETWORKS

    INTELLIGENT AGENTS

    Artificial Life IMMUNESYSTEMSCELLULARAUTOMATA

    KNOWLEDGE BASED

    ExpertSystems

    DecisionSupport

    ENUMERATIVESGUIDEDNON-GUIDED

    Back-tracking

    Branch &Bound

    DynamicProgramming

    Case BasedReasoning

    FUZZY LOGIC

    GUIDED NON-GUIDEDLas Vegas

    Tabu SearchSimulatedAnnealing

    GAsGENETIC

    PROGRAMMINGEVOLUTION STRATEGIES

    & PROGRAMMING

    Hopfield Kohonen MLPs

    ANT

    COLONY

    LCS

  • 8/2/2019 A Life Part A

    19/107

    p19 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

  • 8/2/2019 A Life Part A

    20/107

    p20 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Artificial Life Already?Soft:

    Cellular Automata,

    Boids,

    Evolutionary algorithms?Hard:

    Self-replicating machines,

    Self-building robots?Wet:

    Rat-brained robots,

    DNA cartridges?

    Not all criteria for life met.

    Especially, adaptability: equilibrium is punctuated & truncated.

  • 8/2/2019 A Life Part A

    21/107

    p21 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Websites of the week:

    http://alife.org/

    http://alife.co.uk/

    http://alife.net/

    Download of the week:

    http://people.reed.edu/~mab/publications/papers/BedauTICS03.pdf

    Next week start on some Soft A-Life

    ~

    ~

  • 8/2/2019 A Life Part A

    22/107

    p22 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    2 : Soft A - Life

    A Life Components

    Soft Hard Wet

    Want to cover latest research presentations theory and method

    advances & applications

    Today some software approaches,flocking,

    cellular automata

    modelling daisyworld

    We start by looking at flocking

  • 8/2/2019 A Life Part A

    23/107

    p23 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Flocking

    Alife about interacting systems ... So flocking

    Collective motion:

    Fish in schools, sheep in herds, birds inflocks, lobsters in lines

    Characteristics of animal aggregations:

    Distinctive edgesUniform densities *

    Polarisation *

    Freedom to move within own volume

    Coordinated movement

    * [not required for Swarms]

  • 8/2/2019 A Life Part A

    24/107

    p24 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Flocking

    Benefits of flocking?

    Predator protection

    Statistical chance of surviving predator attack

    Better chance of finding food / group foraging

    Social advantages mating

    Cause(s) of in-line flocking?

    Drafting

    Vision

  • 8/2/2019 A Life Part A

    25/107

    p25 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Craig Reynolds & boids

    http://cmol.nbi.dk/models/boids/boids.html 3 rules

    Separation

    Steer to avoidcrowding with localflock mates.

    Alignment

    Steer toward theaverage heading oflocal flock mates.

    Cohesion

    Steer to move towardaverage position oflocal flock mates.

  • 8/2/2019 A Life Part A

    26/107

    p26 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Craig Reynolds & boids

    Each boid has direct access to whole scene's geometricdescription, but flocking requires that it reacts only toflockmates within its small neighborhood.

    The neighborhood could be considered a model of limitedperception (as by fish in murky water) but it is probably morecorrect to think of it as defining the region in which flockmatesinfluence a boids steering.

  • 8/2/2019 A Life Part A

    27/107

    p27 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Boids Neighbourhood

    The neighborhood

    distance, measured from the

    center of the boidangle, measured from boids

    direction of flight

    Flockmates outside localneighborhood ignored

    http://www.red3d.com/cwr/boids/

    distance

    angle

  • 8/2/2019 A Life Part A

    28/107

    p28 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Algorithm

    for each (Boid boid in boids) {float distance = Distance(Position, boid.Position);if (boid != this && !boid.Zombie) {

    >}if (boid.Zombie && distance < sight) { // Avoid zombies

    dX += Position.X - boid.Position.X;dY += Position.Y - boid.Position.Y;

    }}

    http://dynamicnotions.blogspot.com/2008/12/flocking-boids-c.html

  • 8/2/2019 A Life Part A

    29/107

    p29 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    if (distance < space) { // Create space.

    dX += Position.X - boid.Position.X;

    dY += Position.Y - boid.Position.Y;}

    else if (distance < sight) { // Flock together.

    dX += (boid.Position.X - Position.X) * 0.05f;

    dY += (boid.Position.Y - Position.Y) * 0.05f;

    }

    if (distance < sight) { // Align movement.

    dX += boid.dX * 0.5f;dY += boid.dY * 0.5f;

    }

    Algorithm : move boid

  • 8/2/2019 A Life Part A

    30/107

    p30 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Critique of Flocking

    Reynolds model is hypothetical

    Dynamic network

    Appearance of flocking only

    Flocking is complex

    Inherent scaling problems

    Simple algorithm has asymptotic complexity of O(n2) each boidassesses each other boid to determine its neighbour

    Spatial data structure allows the boids to be kept sorted bytheir location reduces cost down to nearly O(n)

  • 8/2/2019 A Life Part A

    31/107

    p31 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Critique Continued

    Lack of a quantitative model

    When is a flock a flock?

    Phase transition to become a flock ?

    When does a particular size of bird change flocking type, fromcluster to V?

    Heterogeneous vs homogeneous(different birds vs all birds the same)

    300 vision cf. 360 vision

  • 8/2/2019 A Life Part A

    32/107

    Langton : on Boids

    Boids are not birds; they are not even remotely like birds; theyhave no cohesive physical structure, but rather existasinformation structures processes within a computer.

    But and this is the critical but at the level of behaviors,flocking Boids and flocking birds are two instances of the samephenomenon: flocking.

    Theartificial in Artificial Life refers to the component parts, notthe emergent processes. If the component parts are implementedcorrectly, the processes they support are genuine every bit asgenuine as the natural processes they imitate.

    Artificial Life will therefore be genuine life it will simply be madeof different stuff than the life that has evolved on Earth.

    p32 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

  • 8/2/2019 A Life Part A

    33/107

    p33 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Cellular Automata

    A regular grid of cells is created with each in one of a number offinite states (often 0 or 1).

    Commonly, 2D is used for the grid, higher dimensionality possible.

    Time is discrete and the state of a cell at time t is a function ofthe states of a finite number of cells (neighborhood) at time t 1

    Every cell has the same rule for updating, based on the values in

    this neighbourhoodThe grid is toroidal

  • 8/2/2019 A Life Part A

    34/107

    p34 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Update

    Each time the rules are applied to the whole grid a new generationis created

    t-2 t-1 t

  • 8/2/2019 A Life Part A

    35/107

    p35 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Cellular Automata

    John Von Neumann working at Los Alamos in the 1940s wasinterested in self-replicating robots

    Stanislaw Ulam was working on crystal growth at the same time

    using a mathematical abstractionVon Neumann created the first Cellular Automata (CA), but it wascomplex with 29 states per cell!

    1970s John Conway greatly simplified CAs : Game of Life.

    Practical uses have included studying crystal growth, casting ofmetals and biological patterns (e.g. coral)

    'Fun' uses have included pattern generation, screensavers and PhD

    studiesTheoretical uses have shown self replication, infinite growth andcomputational power.

  • 8/2/2019 A Life Part A

    36/107

    p36 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Conways Game of Life

    http://www.tech.org/~stuart/life/rules.html

    Rules

    The Game of Life was invented by John Conway

    (Scientific American, 1970).

    Conway interested in a rule that for certain initial conditions

    would produce patterns that grow without limit, and some othersthat fade or get stable.

    The game is played on a field of cells, each of which has eightneighbors (adjacent cells). A cell is either occupied (by anorganism) or not.

  • 8/2/2019 A Life Part A

    37/107

    p37 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Rules for Next Gen

    The rules for deriving a generation from the previous one are :

    Death

    If an occupied cell has 0, 1, 4, 5, 6, 7, or 8 occupied neighbours,the organism dies (0, 1: of loneliness; 4 thru 8: of overcrowding).

    Survival

    If an occupied cell has two or three neighbours, the organismsurvives to the next generation.

    Birth

    If an unoccupied cell has three occupied neighbours, it becomesoccupied comes to life.

  • 8/2/2019 A Life Part A

    38/107

    p38 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Gliders, guns and spaceships

    Color Game Of Life Visual Exhibition

    See next slide

    Not just pretty patterns and colours

    Explores spontaneity, synchronicity and attractors

    http://www.collidoscope.com/cgolve/

    Glid d hi

  • 8/2/2019 A Life Part A

    39/107

    p39 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Gliders, guns and spaceships

  • 8/2/2019 A Life Part A

    40/107

    p40 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Cellular Automata Rule Notation

    The Modern Cellular Automata software accepts multiple forms ofrule specification.

    Rules may be specified in either basic or canonical format.Basic rule notation is based upon traditional "birth /survive.

    The characters "a" to "e" are used to indicate the number of sideneighbours in the rule.

    "a" corresponds to zero side neighbours,

    while

    "e" corresponds to four side neighbours.

  • 8/2/2019 A Life Part A

    41/107

    p41 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Continued

    Here are the meaningful combinations of total and side counts:

    0a 1ab 2abc 3abcd

    4abcde 5bcde 6cde 7de 8eHere is full basic rule specification for Game Of Life:

    3abcd / 2abc3abcd

    Birth / Survive statesSee http://www.collidoscope.com/modernca/

    C C d

  • 8/2/2019 A Life Part A

    42/107

    p42 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    CA Code:

    From http://blogs.msdn.com/calvin_hsia

    for (x = 0; x < m_numx; x++) {

    for (y = 0; y < m_numy; y++) {

    tmp[x, y] = CountNeighbors(x - 1, y - 1) +CountNeighbors(x - 1, y) +

    CountNeighbors(x - 1, y + 1) +

    CountNeighbors(x, y - 1) +CountNeighbors(x, y + 1) +

    CountNeighbors(x + 1, y - 1) +

    CountNeighbors(x + 1, y) +

    CountNeighbors(x + 1, y + 1);}

    } // this counts total number of neighbours

  • 8/2/2019 A Life Part A

    43/107

    p43 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    for (x = 0; x < m_numx; x++) { for (y = 0; y < m_numy; y++) {

    if (tmp[x, y] == 3 && m_cells[x, y] == 0)// an empty cell with exactly 3 neighbors: 1 is born

    m_diff[x, y] = m_cells[x, y] = 1;

    else if (tmp[x, y] >= 2 && tmp[x, y] 0) {

    // a live cell with 2 or more neighbors liveif (m_cells[x, y] == COLORDIV * MAXCOLOR - 1)

    m_diff[x, y] = 0; // no change

    else { m_cells[x, y]++; m_diff[x, y] = 1; }

    }

    else { // loneliness

    if (m_cells[x, y] == 0) m_diff[x, y] = 0; // already empty

    else { m_cells[x, y] = 0; m_diff[x, y] = 1; }}

    }

  • 8/2/2019 A Life Part A

    44/107

    Daisyworld

    p44 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Andrew J Watson and James E Lovelock; Biological homeostasis ofthe global environment: the parable of Daisyworld, Tellus (1983) 35B

    Lovelocks Imaginary world to demonstrate Gaia principle

    Life & Earth work together to mutual advantage

    Grey Planet - black/white daisy seeds in soil

    Daisies grow best at 22OC No grow if < 7OC or > 37OC

    Daisyworlds Sun is heating up: What happens to Daisyworld?

    from Sun

    of Planet

    Time

    C

    722

    37Temp

  • 8/2/2019 A Life Part A

    45/107

    Modelling Life on Daisyworld

    p45 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Model its temperature : model energy received, absorbed, emitted.

    Energy received comes from the sun

    Energy absorbed is affected by planet albedoPlanet albedo is affected by the areas of daisies

    Areas affected by birth/death rates : affected by temperature

    Energy Emitted (Stefan Boltzmann Law) k *Temp4

    Assume = Energy Absorbed = Energy Received - Energy Reflected= Solar Luminosity * Solar Flux Const - Energy Received * Albedo

    For World Temp, solve : StefansConst * (WorldTemp + 273)4

    = FluxConstant * Luminosity of Sun * (1 Planet Albedo)

    For any daisy species local temp is different re its albedo

    (Daisy Temp + 273)4 = AlbedoToTempConst *

    (Planet Albedo - Daisy Albedo) + (WorldTemp + 273)4

    Alb d d A f D i i

  • 8/2/2019 A Life Part A

    46/107

    p46 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Albedos and Areas of Daisies

    i i i

    0 0

    Suppose have n species of Daisy

    Let D be area of Daisy Species i, A its albedo, T its temp

    D and A can represent area and albedo of grey soil

    ni i

    i=0Planet Albedo = D *A

    Areas of each daisy, found by solving differential equationi

    idD

    = D * (Uncolonised Fertile Soil * Birth rate - Death rate)dt

    ni

    i=1

    Uncolonised Fertile Soil = Prop of Fertile Soil - D

    2i

    o o o

    Birth Rate = Max (0, 1 - 0.003265 * (22.5 - T) )

    {Parabolic from 5 - 40 , max at 22.5 }

    Al ith t h l ti

  • 8/2/2019 A Life Part A

    47/107

    p47 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Algorithm at each solar time

    Initialise areas of daisiesRepeat

    n0 i

    i=1Calc Area Grey Soil, D = 1 - D

    ni i

    i=0Calc Planet Albedo, A = A *D

    4FluxConstant*luminosity*(1-Albedo)

    PlanetTemp, PT =Stephan's Constant

    For i = 1 to n Update Di

    Until all Dis reached steady value

    44i iT = AlbedoToTemp*(Albedo-A) + PT 273iBirthRate = 1.0 - 0.003265 * Sqr (22.5- T )

    i= D * (BirthRate * AreaFertileSoil - DeathRate)

    Update Di :Numericallyintegrate using

    R ith 2 4 8 i

  • 8/2/2019 A Life Part A

    48/107

    p48 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    0 0.2 0.4 0.6 0.8-20

    0

    20

    40

    60

    80no lifetemp

    all DDS 1DS 2DS 3DS 4

    DS 5DS 6DS 7DS 8

    albedo 0.2:0.8

    0 0.2 0.4 0.6 0.8-20

    0

    20

    40

    6080 no life

    tempall DDS 1

    DS 2

    0 0.2 0.4 0.6 0.8-20

    020

    40

    60

    80no lifetempall D

    DS 1DS 2DS 3DS 4

    0.2:0.8

    Runs with 2, 4 or 8 species

  • 8/2/2019 A Life Part A

    49/107

    Other Approaches / Extensions

    p49 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Basic model : flat earth for sphere : divide into areas, eachreceiving different luminosity, and simulating each area.

    Can daisies albedo can evolve? See [Lenton is Lovelocks successor]

    Lenton, T. M. 1998. Gaia and natural selection. Nature 394: 439-447

    T.M.Lenton and J.E.Lovelock 2000. Daisyworld is Darwinian,Constraints on Adaptation are Important for Planetary Self-Regulation. J Theor Biol 206 109-114

    At http://www.sussex.ac.uk/Users/jgd20/lisbon2007/

    Computational Modelling of the Earth / Life System -

    Includes simulating Daisyworld using Cellular Automata

    Also Homeostasis and Rein Control: From Daisyworld to ActivePerception, by Inman Harvey, Proc ALife 9 2004

    shows also how Rein control can be used for robotics

    Websites of the week:

  • 8/2/2019 A Life Part A

    50/107

    p50 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Websites of the week:

    http://www.faqs.org/faqs/ai-faq/alife/

    http://homepages.feis.herts.ac.uk/~comqkd/Alife.htm

    http://www.mitpressjournals.org/loi/artl

    dont reply upon Wikipedia, but a good jumping off point!

    Next week modelling real life

    ll l f

  • 8/2/2019 A Life Part A

    51/107

    3 : Modelling Real Life

    p51 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    In this lecture we consider population models and their analysis

    Inc. interacting species : predator-prey, mutualist, competitive

    Starting with continuous modelsModel by change of population P

    b and d are birthand death rates

    P constant, rises exponentially or decay to 0 0 50

    50

    100

    Time

    Pop

    If birth rate b - b2 * P ; death rate d + d2 * P.

    2 2dP (b d (b d )*P) * Pdt

    0 50

    10

    20

    Time

    P

    op

    2 2

    b-dPop stabilises at

    b d

    dP

    (b d) * Pdt

    Cl i I i S i

  • 8/2/2019 A Life Part A

    52/107

    Classic Interacting Species

    p52 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Let F be number of foxes and R be number of rabbits.

    System model, as follows, where a, b, c, d are constants:

    dF c*R*F-d*Fdt

    dR a*R-b*R*Fdt

    For a = 20, b = 4, c = 3 and d = 27: stable at 9,5;

    Plot R and F v time but more useful Plot R v F (the phase plane plot)

    5 10 150

    5

    10

    Rabbit

    Fox

    0 0.5 10

    10

    20

    Time

    Rabb

    itand

    Fox

    Stable whenF = a/b and R = d/c

    Initial valuesset size of egg

    Logistic Rabbit Model

  • 8/2/2019 A Life Part A

    53/107

    p53 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Logistic Rabbit Model

    If no Foxes, Rabbits increase exponentially unrealistic, so

    0 5 10 150

    2

    4

    6

    8

    10

    Specie R

    Specie

    FWithdifferentconstants,plot can go

    straight toequilibrium

    ed

    a-ceSuggests both populations stable at R and F

    d b

    where lines a-bF-cR = 0

    and dR-e=0 meet

    dF

    d*R*F-e*F

    dt

    2dR

    a*R - b*R*F - c*R

    dt

    dRR(39 - R- 5F)

    dtdF

    F(-27 3R)dt

    M t li t I t ti

  • 8/2/2019 A Life Part A

    54/107

    p54 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Mutualist Interaction

    Interacting species which help each other

    Also have commensalist (one helps other) systems.

    Mutualists some survive independently, sometimes reliant

    Indirect mutualism no direct contact, but help each other

    Eg Hippo and Bird Clean teeth and food

    Sea-anemone & damsel fish Habitat + protection / food

    Plants and Insects Plant pollination insect foodEgret and Cattle Egret eat insects on cattle.

    Analyse on phase plane, again use loci where x and y const

    2dx

    x 13 2x 21ydt 2

    dy

    y 13 8x-3ydt

    Plot Zero Isoclines on Phase Plane

  • 8/2/2019 A Life Part A

    55/107

    p55 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Plot Zero Isoclines on Phase Plane

    Populations stable

    at x = 2, y = 1 andat x = 5, y = 3 andat x = 0, y = 0

    dx/dt = 0

    dy/dt = 0

    dx/dt = x( -13 - 2x2 + 21y)dy/dt = y(-13 + 8x - 3y2)

    The iscolines for dx/dt are x = 0 and -13 - 2x2 + 21y = 0

    Those for dy/dt are y = 0 and -12 + 8x - 3y2 =0

    Eq points: where a dx/dt isocline and a dy/dt isocline meet

    Main isos meet at 2,1 and 5,3; x = 0 and y = 0 meet at 0,0Dont include where x = 0 and -13-2x2+21y = 0 meet.

    What happenswhen startfrom differentinitial values ?

    Arguing Stability

  • 8/2/2019 A Life Part A

    56/107

    p56 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Arguing Stability

    Although three equilibrium points, one is not stable.

    To argue this, each region labelled ++ or -+First +/- indicates sign dx/dt; Second +/- is sign dy/dt

    e.g. ++ = dx/dt > 0 & dy/dt > 0 -+ = dx/dt < 0 & dy/dt > 0

    Now add

    trajectories frominitial x,y

    dy/dt = 0

    dx/dt = 0

    Go to 5,3 or 0,0

    The stable points

    dx/dt = x( -13 - 2x2 + 21y)

    dy/dt = y(-13 + 8x - 3y2

    )

    Go further : Phase Plane + Arrows

  • 8/2/2019 A Life Part A

    57/107

    p57 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Go further : Phase Plane + Arrows

    Arrows showdx/dt anddy/dt at

    intervalsCan be used tohelp sketch xand y values

    See how x,ymove fromstart posns

    To 5,3 or 0,0

    Not to 2,10 2 4 6 80

    1

    2

    3

    45

    6

    7

    Specie x

    Specie

    y

    Note Separatrix (thru 2,1) : x,y5,3 if above this, else 0,0

    Types of Equilibrium Point

  • 8/2/2019 A Life Part A

    58/107

    p58 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Types of Equilibrium Point

    4.9 5 5.1

    2.9

    3

    3.1Stable sink

    1.9 2 2.1

    0.9

    1

    1.1Saddle

    -0.1 0 0.1

    -0.1

    0

    0.1Stable spiral

    8.9 9 9.1

    4.9

    5

    5.1Centre

    NB Also have

    unstablesource andunstablespiral

    How can wecategorise apoint?

    Where locimeet areequilibrium

    point butdifferenttypes exist

    Jacobean Matrix for Analysis

  • 8/2/2019 A Life Part A

    59/107

    p59 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Jacobean Matrix for Analysis

    Define eq point as (Xe,Ye), here F1 = dx/dt & F2 = dy/dt = 0.

    Model system as being linear around an equilibrium point

    dx/dt = a11X +a12Ydy/dt = a21X +a22Y

    e e

    1

    11 X ,Y

    F

    a x

    e e

    1

    12 X ,Y

    Fa

    y

    e e

    2

    21 X ,Y

    Fa

    x

    e e

    2

    22 X ,Y

    Fa

    y

    We then define two matrices A (the Jacobean) and Z

    11 12

    21 22

    a a

    a a

    A

    Then system of equations can be written as dZ/dt = A Z

    X

    YZ

    Then Use Eigenvalues of Jacobean

  • 8/2/2019 A Life Part A

    60/107

    p60 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Then Use Eigenvalues of Jacobean

    For a 2*2 matrix with eigenvalues 1 and 2:

    If 1 and 2 are both < 0, the equilibrium point is stable sink

    If 1

    and 2

    are both > 0, the point is unstable source

    If one < 0 and the other > 0, have a saddle point

    The eigenvector for < 0 is used for the separatrix

    If eigenvalues complex have spiral points stable (spiral in) if real(1 ) < 0, unstable otherwise

    If purely complex, have a centre

    For 2

    + b + c : stable sink if b2

    4c; else spiral inFor 2 - b + c : source if b2 4c; else spiral out

    For 2 + b - c : will be saddle point

    Analysis on the Example

  • 8/2/2019 A Life Part A

    61/107

    p61 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Analysis on the Example

    21F ( 13 2x 21y) x(-4x)x

    1F 21xy

    2 22F (-13 8x-3y )-6yy

    2F 8yx

    -13 0 -13 and 13At 0,0,

    0 -13 So 0,0 is a stable pointA

    -100 105 -132.2178 and -21.7822At 5,3,

    24 -54 So 5,3 is stableA

    -16 42 -30 and 8At 2,1,

    8 -6 So 2,1 is a saddle point

    -3 7

    Note Eigenvectors are and for

    -30 and 81 4

    A

    22dy F y 13 8x-3ydt 2

    1dx F x 13 2x 21ydt

    Separatrix

  • 8/2/2019 A Life Part A

    62/107

    p62 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Separatrix

    If start above this 5,3; if start below 0,0

    The separatrix can be defined by dy/dx where

    Cant solve algebraically, so solve numerically

    Run as ode from a known point on curve (ie saddle point)

    One problem: at saddle point, dy/dx = 0/0;

    what is dy/dx?

    Answer, use its eigenvectorIn example, at point 2,1

    dydy dt

    dxdx

    dt

    -3

    1

    1Slope -

    3

    0 2 4 6 80

    12

    3

    4

    56

    7

    Specie x

    Specie

    y

    Applies to Fox Rabbit

  • 8/2/2019 A Life Part A

    63/107

    p63 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    pp

    0 36At 9,5 A

    15 0

    23.2379jcentre

    20 0At 0,0 A

    0 -27

    = 20, -27

    saddle

    0 5 10 150

    2

    4

    6

    8

    10

    Specie x

    Specie

    y

    dRR(20 - 4F);

    dtdF

    F(-27 3R)

    dt

    Fox Rabbit (Logistic) Example

  • 8/2/2019 A Life Part A

    64/107

    p64 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    ( g ) p

    -9 45At 9,6 A

    18 0

    -4.5000 28.1025jstable spiral

    39 0At 0,0 A

    0 -27saddle

    0 5 10 150

    2

    4

    6

    8

    10

    Specie x

    Specie

    y

    dRR(39 - R- 5F)

    dtdF

    F(-27 3R)

    dt

    Models of Males and Females (M & F)

  • 8/2/2019 A Life Part A

    65/107

    p65 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    3 2m m m

    dMr FM - d M - k (M FM )

    dt

    3 2f f f

    dF

    r FM - d F - k (F F M)dt

    e.g. rm = 1.3, dm = 7 , km = 0.01, rf = 1.1, df = 19 and kf = 0.01.

    22 1.3 0.01MM(1.3F -7- 0.01 (M FM) ) 0 or F (M 0)

    7 0.01M

    22 19 0.01FF(1.1M -19- 0.01 (F FM) ) 0 or M (F 0)1.1 0.01F

    For F2:

    Isocline for F1=dM/dt=0 found by finding F & M s.t.

    50

    60

    E ilib i

  • 8/2/2019 A Life Part A

    66/107

    p66 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    0 20 40 60010

    20

    3040

    50

    Specie x

    Speciey

    Equilibria at

    50,40

    20,10

    0,0

    -70 40 -95.6554At 50,40, EigVals so stable

    28 -52 -26.3446

    A

    -7 0 -7At 0,0, EigVals so stable

    0 -19 -19

    A

    -10 22 -22.1327At 20,10, EigVals so saddle

    10 -4 8.1327

    -0.8757For -ve , Eig Vec ; slope of separatrix = -0.5510.4829

    A

    Lotka-Volterra Mutualism Models

  • 8/2/2019 A Life Part A

    67/107

    p67 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    1 x xx xydxF x (r a x a y)dt

    2 y yx yydyF y (r a x a y)dt

    Isoclines are lines: eg when x = 0 or rx axxx + axyy = 0, etc.

    Assume all a parameters > 0. Consider main equil. point

    First 2 systems stable at main point, 3rd not. First ok with nomutualism; others obligate mutualists cant exist on own

    y

    F1 = 0

    F2 = 0y F1 = 0

    F2 = 0

    y

    F2 = 0

    F1 = 0

    Analysis

  • 8/2/2019 A Life Part A

    68/107

    p68 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    xx e xy e

    yx e yy e

    a X a Xmatrix is

    a Y a Y

    A

    To be stable, need two negative eigenvalues, ie

    ie gradient of F1 isocline > that of F2 isocline

    If isoclines are curves, can still apply this gradient test

    x x e y y e x y ey xeC ha r E q n : ( -a X - ) ( - a Y - ) a X a Y 0

    xx e yy e xy e yx eChar Eqn : (-a X - )(-a Y - ) a X a Y 0

    xx e yy e xy e yx e

    yxxxxx yy xy yx

    xy yy

    a X a Y a X a Y

    aaie a a a a or

    a a

    2 xx e yy e xx e yy e xy e yx e(a X a Y ) a X a Y a X a Y 0

    Advantage of Mutualism

  • 8/2/2019 A Life Part A

    69/107

    p69 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Note, with no mutualism (ie axy = ayx = 0)

    x1 x xxxx

    rdxF x (r a x) this is zero when xdt a

    y2 y yy

    yy

    rdyF y (r a y) this is zero when y

    dt a

    But, because of the positive feedback, due to mutualism, stablepoint is higher than these values.

    Note, we will show, if opposite can be true in competitive systems

    g f

    Lotka-Volterra Example

  • 8/2/2019 A Life Part A

    70/107

    p70 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    p-28 8At 4,4:4 -12

    = -29.8 -10.2 stable

    A

    0 2 4 6 8 100

    2

    4

    6

    8

    10

    Specie x

    Specie

    y

    83

    25.33 0At 0, :2.667 -8

    = -8 25.333 saddle

    A

    207

    -20 5.714At ,0:0 10.86

    = -20 10.86 saddle

    A

    20 0At 0,0:0 8

    = 20 8 unstable

    A

    1 dxF x 7x + 2y + 20dt

    2dy

    F y x - 3y + 8dt

    Competitive Species

  • 8/2/2019 A Life Part A

    71/107

    p71 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    p pdx x(8 0.5x 2y)dt

    dy y(10 x 2y)dt

    -2 -8At 4,3, = 1.29 and -9.29 saddle

    -3 -6

    A

    -8 -32At 16,0, = -8, -6 stable0 -6

    A

    -2 0At 0,5, = -10, -2 stable

    -5 -10

    A

    8 0At 0,0, = 8,10 unstable

    0 10

    A

    1F 8-x-2y

    x

    1F 2x

    y

    2F -y

    x

    2F 10-x-4y

    y

    Result only one species survives

  • 8/2/2019 A Life Part A

    72/107

    p72 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    -2 -8At 4,3=

    -3 -6Saddle

    At 16,0 -8 -32=Stable 0 -6

    At 0,5 -2 0=

    Stable -5 -10

    At 0,0 8 0=

    Unstable 0 10

    A

    A

    A

    A

    0 5 10 15 200

    2

    4

    6

    8

    Specie x

    Speciey

    Separatrix thru 4,3 whether go to 16,0 or 0,5

    Competitive But Stable swap lines

  • 8/2/2019 A Life Part A

    73/107

    p73 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    -4 8At 4,31.5 6

    -1.394 & -8.606 stable

    Adx x(10 - x - 2y);dtdy

    y(8 - 0.5x - 2y)dt

    0 5 10 15 200

    2

    4

    6

    8

    Specie x

    Specie

    y2 -20

    At 0,4 -2 -8

    -8 and 2 saddle

    A

    10 0

    At 0,0 u/s0 8

    A

    -10 -20At 10,0 0 3

    -10 and 3 saddle

    A

    No competition, x = 10, y = 4;with, stable at x = 4, y = 3

    comp bad!

    Summary

  • 8/2/2019 A Life Part A

    74/107

    p74 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    We have seen simple populations of models.

    Single species,

    Interacting mutualists, predator-prey and competitors

    Isoclines, where one pop stable, interact at equilibrium points.

    These can be stable sink, unstable source, saddle, stable spiral,unstable spiral or centre

    And that the state can be found from the eigenvalues of theJacobean matrix for each point.

    Mutualists stable point larger pop than if no interaction

    Competitors if stable smaller pop than if no interaction.This leads to considerations of attractors, which leads to fractals

    4 : More Modelling

  • 8/2/2019 A Life Part A

    75/107

    p75 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    In this lecture we build on population modelling

    Looking at attractors,

    Discrete models with recurrenceSee some effects of self similarity

    This then leads to fractals for artificial life

    Emergence

  • 8/2/2019 A Life Part A

    76/107

    p76 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    We wish for soft artificial life to emerge in a computer so createa system that changes states over time:

    Aphase space(cf mathematics) is a space in which all possible

    states of a system are represented. Each possible state of thesystem corresponds to one unique point in the phase space

    A state spacerepresentation (cf control engineering) is amathematical model of a physical system as a set of input, outputand state variables related by first-order differential equations.

    Can solve these to look at transient behaviour

    But for A-Life more interested in steady state

    This is Long-term behaviour : characterised by Attractors.

    This relates to the equilibria we saw last week.

    Attractors

  • 8/2/2019 A Life Part A

    77/107

    p77 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    An attractor is a 'set','curve', or 'space' that adynamical systemirreversibly evolves to ifleft undisturbed .

    May be known as a limit set

    Not necessarily trivial

    Dynamics of Attractors

  • 8/2/2019 A Life Part A

    78/107

    p78 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    http://www.scholarpedia.org/article/Attractor_network

    Activation of each system unit is associated with direction in amultidimensional space (configuration space)

    Every point in the space represents a possible state of the system

    (state vector).Motion of this vector represents its evolution in time (described as adynamic system)

    There are three types of attractors;

    point attractors,

    periodic attractorsstrange attractors

    Why use Attractors?

  • 8/2/2019 A Life Part A

    79/107

    p79 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    No need to know the start time or duration or to observe entireevolution of system to get result

    Only need to know the attractor, a given initial condition involves apath towards an attractor and an indication that the system hasreached the attractor

    They allow control of timing of systems response

    Robust to small changes in system parameters

    dilution (removal of system connections)

    asymmetry

    clipping/quantization of parameter values

    NB system could be computer based (e.g. networks), biological (e.g.heart) or mechanical (e.g. pendulum).

    Using Attractors

  • 8/2/2019 A Life Part A

    80/107

    p80 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    These systems are typically defined as series of ODEs

    dx= 10(y-x)

    dt

    dy = -xz + 28x - ydtdz 8

    = xy - ydt 3

    http://www.edc.ncl.ac.uk/highlight/rhnovember2006g02.php/

    Computation performed by mapping from an initial condition to aparticular attractorDynamics partition the configuration space into basins ofattraction around the attractors. Lets see some.

    Fixed Point Attractor

  • 8/2/2019 A Life Part A

    81/107

    p81 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Results are computed asdifferent input data settle

    into different fixed pointsThe region of initial states

    that settle into a singlefixed point is called its

    basin of attractionMost networks are fixed point

    networks

    C.f. Stable equilibrium point in

    population examples

    The state vector comes to rest

    0

    1020

    30

    5

    10154

    5

    67

    x1x2

    x3

    Example with three variables

    Limit Cycle Attractor

  • 8/2/2019 A Life Part A

    82/107

    p82 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    The state vector

    settles into aperiodic cycle

    The attractor is alimit cycle

    -Shown in red

    Transient in purple

    67

    8

    010

    200

    5

    10

    15

    x1x2

    x3

    Strange Attractor - chaotic

  • 8/2/2019 A Life Part A

    83/107

    p83 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    Two copies of the systemthat initially have nearly

    identical states will growdissimilar as they evolve.

    Divergence is restrictedso that in many

    directions the statevectors are growingcloser

    -20

    0

    20

    -200-100

    0100

    0

    200

    400

    600

    x1

    x2

    x3

    Higher Dimensions

  • 8/2/2019 A Life Part A

    84/107

    p84 RJM 20/12/11 CY4F8 Artificial Life Part A Dr Richard Mitchell 2012

    chaotic attractors (also encounter repellors)

    Rssler studied chaotic attractor a = 0.2, b = 0.2, c = 5.7NB a = 0.1, b = 0.1, and c = 14 more commonly used since

    dy

    = x + a ydt

    dz= b + z (x - c)

    dt

    dx= -y - z

    dt

    Lorenz attractor

  • 8/2/2019 A Life Part A

    85/107

    p85 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    is called the Prandtl number,

    is called the Rayleigh number.

    All , , > 0, but usually

    = 10, = 8/3 and is varied

    Simple model of convection in atmosphere.

    Sensitive to initial conditions

    y

    z

    x

    dx= (y - x)

    dt

    dy= x( ) - y

    dt

    z

    dz= xy - z

    dt

    2500

    10

    5

    0-5

    -101500 2000 t

    Some Discrete Models

  • 8/2/2019 A Life Part A

    86/107

    p86 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    In the above, the models were continuous

    They can be of single species, or multiple.

    We now move to considering discrete models

    Here xn is the population at time n

    The change in xn is set by a recurrence relation of the form

    n+1 n nx = r x (1 - x )

    These are of interest as the value of r affects what happens

    Different steady states are found

    These show self similarity, which leads nicely to fractals.

    Logistic Map discrete model

  • 8/2/2019 A Life Part A

    87/107

    p87 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    n+1 n nx = r x (1 - x )

    n x0 0.20001 0.32002 0.43523 0.49164 0.4999

    5 0.50006 0.50007 0.50008 0.5000

    9 0.500010 0.5000

    x0 = 0.2; r = 2

    0 5 100

    0.2

    0.4

    0.6

    But if r changed to 3.1

  • 8/2/2019 A Life Part A

    88/107

    p88 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    0 5 10 15 200.2

    0.4

    0.6

    0.8

    1

    n+1 n nx = r x (1 - x ) x0 = 0.2; r = 3.1

    n x

    0 0.20001 0.49602 0.77503 0.54064 0.769921 0. 764622 0.557923 0.7646

    24 0.5579

    Finally oscillates between 2 values

    But if r is 3.5

    (1 ) 0 2 3 5

  • 8/2/2019 A Life Part A

    89/107

    p89 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    n+1 n nx = r x (1 - x )

    n x0 0.2000

    1 0.56002 0.86243 0.41534 0.849927 0.875028 0.382829 0.826930 0.5009

    31 0.8750

    x0 = 0.2; r = 3.5

    Oscillates between 4 values

    0 5 10 15 20 250.2

    0.4

    0.6

    0.8

    1

    Final values for diff r

    1 (1 ) Fi l l f diff

  • 8/2/2019 A Life Part A

    90/107

    p90 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    n+1 n nx = r x (1 - x ) Final values for diff r

    See also http://en.wikipedia.org/wiki/File:LogisticCobwebChaos.gif

    1.0

    0.8

    0.6

    0.4

    0.2

    0.0 2.6 2.8 3.0 3.2 3.4 3.6

    Self-similarity

    C mp p ith h n m in

  • 8/2/2019 A Life Part A

    91/107

    p91 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Compare prev with when zoom in ..

    3.45 3.5 3.55 3.6

    0.8

    0.85

    0.9

    Orbits

    The Hnon map is a discrete time dynamical system exhibiting

  • 8/2/2019 A Life Part A

    92/107

    p92 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    The Hnon map is a discrete-time dynamical system - exhibitingchaotic behavior. The Hnon map takes a point (x, y) in the plane andmaps it to a new point

    -2 -1 0 1 2

    -0.4

    -0.2

    0

    0.2

    0.42n+1 n nx = y + 1 - ax

    n+1 ny = bx

    Here a = 1.3 b = 0.4Known to be chaotic

    Orbit plots of x,y

    For other values of a and b the map may be chaotic, intermittent,or converge to a periodic orbit

    Self Similarity - Fractals

    Th lf i il it b d li l d t F t l

  • 8/2/2019 A Life Part A

    93/107

    p93 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    The self similarity observed earlier, leads to Fractals

    These have been used in various ways re modelling life

    Examples include trees, Plants, Clouds, Mountains

    Darcy Wentworth Thompson, On Growth and Form, 1917

    Laid foundations for biomathematics; found equations to describestatic forms of organisms; saw transformations by changing paras

    FractalsComplex objects defined by systematically and recursively replacing

  • 8/2/2019 A Life Part A

    94/107

    p94 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Complex objects defined by systematically and recursively replacingparts of a simple start object with another, using a simple rule

    Simplest : Have initiator and generator, both many lines.

    Replace each line in the initiator with the generator shape.Makes more lines, so replace all these lines with generator

    Koch, SnowFlake, Forest Examples

  • 8/2/2019 A Life Part A

    95/107

    p95 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Sierpinski : Space Filling Curve

  • 8/2/2019 A Life Part A

    96/107

    p96 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    four shapes \_/ (+ rotations) A B C D, joined by four corners.A(n) is A(n-1) \ B(n-1) _ D(n-1) / A(n-1) {n > 0}A(0) is nowt. Similar for B(n), C(n) and D(n)

    Also

  • 8/2/2019 A Life Part A

    97/107

    p97 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Sierpinski Gasket :triangle from whichsmaller triangles are cut

    Can also getnatural fractals ..

    More sophisticated replication methods

    Lindenmayer System (L-Systems)

  • 8/2/2019 A Life Part A

    98/107

    p98 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Mathematical formalism proposed by biologist Aristid Lindenmayer in1968 : foundation for axiomatic theory of biological development

    A Lindenmayer system is a variant of a formal grammar (a set of

    rules and symbols), acting as a parallel rewriting systemIt models the growth processes of plants, organisms and self-similar

    fractals due to the recursive nature of the rules.

    Useful: http://algorithmicbotany.org/papers/#abop

    Details

  • 8/2/2019 A Life Part A

    99/107

    p99 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    L-systems are defined as a tuple

    G = {V, S, , P}

    whereV(the alphabet) is a set of symbols containing elements that can be

    replaced (variables)

    Sis a set of symbols containing elements that remain fixed(constants)

    (start, axiom or initiator) is a string of symbols from V definingthe initial state of the system

    Pis a set of production rules defining the way variables can bereplaced with combinations of constants and other variables.

    Example

    An L system is an ordered triplet

  • 8/2/2019 A Life Part A

    100/107

    p100 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    An L-system is an ordered triplet

    G =

    V = alphabet of the symbols in the system;V = {F, B}

    w = nonempty word , the axiom: BP = finite set of production rules (productions)

    B := F[-B][+B]

    F := FF

    B F

    BB

    BB

    F

    F

    Production Rules for Artificial Plants

    [+F]

  • 8/2/2019 A Life Part A

    101/107

    p101 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Add branching symbols [ ]

    simple example

    Main trunk shoots off oneside branch

    Angle 45

    Axiom: F

    Seed Cell Rule: F=F[+F]F

    Angle

    Gen 1

    Gen 2

    Gen 3

    Gen 8

    F F

    [+F]

    Some Examples

  • 8/2/2019 A Life Part A

    102/107

    p102 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    V = {F, X} the alphabet

    the axiom: X

    P = finite set of production rulesX := F[+X][-X]FX

    F := FF

    Probabilistic productionrulesA := B C ( P = 0.3 )

    A := F A ( P = 0.5 )A := A B ( P = 0.2 )

    http://coco.ccu.uniovi.es/malva/sketchbook/

    More Example L - Systems

  • 8/2/2019 A Life Part A

    103/107

    p103 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Colin McRae Dirt : pre-generated and preloaded!

    Making Life Realistic

    Fractals etc can help make realistic looking images

  • 8/2/2019 A Life Part A

    104/107

    p104 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    But life tends to move and interact

    So want artificial life to also behave realistically

    Need to define appropriate behaviour, dependent on surroundings

    Of interest is having situations with multiple entities

    Applications

    Film and TV

    Games

    Simulations for engineering, architecture and transport

    Premier system is MASSIVE

    MASSIVE

    Software package from Stephen Regelous for visual effects

  • 8/2/2019 A Life Part A

    105/107

    p105 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    p g p g

    Key feature : can create 1000s 1000000s of agents

    Fuzzy logic used so each agent react individually to surroundings

    Used to control prerecorded animation clips

    (say from motion capture or hand animation)

    Creates characters that move, act and react realistically

    Developed initially for Lord of the Rings

    Used in Avatar, King Kong, Narnia, I Robot, Doctor Who, WallE,

    http://www.massivesoftware.com/

    Some Images

  • 8/2/2019 A Life Part A

    106/107

    p106 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012

    Summary

    We have looked at more modelling of systems

  • 8/2/2019 A Life Part A

    107/107

    g y

    Some differential equations, and the associated attractors whichdefine their steady state

    We have considered discrete models recurrence relations, andseen the different states, and the associated self similarity

    This lead to fractal systems, including Lindenmayer systems, which

    have been used to produce computer generated imagesMore sophisticated examples also exist, of agents interacting with

    others, determining their actions/ movements.

    Next week, we move to hardware systems

    p107 RJM 20/12/11 CY4F8 Artificial Life Part A

    Dr Richard Mitchell 2012