C OMPLEXITY AND E MERGENCE Dr Nick Malleson Dr Alison
Heppenstall GEOG3150 Semseter 2 Lecture 4
Slide 2
Re-cap: last week Social simulation Interest in 60s and again
in 90s (with AI). Agent-based modelling The uses of simulation.
Explanatory vs predictive
Slide 3
Recap: Why is social simulation important? Understanding more
about society through Testing out ideas using simulation to Create
new knowledge, test existing theories, create new theories and
create new insight in A computer generated environment that
Overcomes (some) ethical problems
Slide 4
Modelling Recap: Bottom up v.s. top-down Aggregate Advantages
Simplicity Homogeneous Individuals Very large systems Disadvantages
Low-level dynamics (smoothing out) Modelling interactions and
emergence Representing complex systems Advantages Simplicity
Homogeneous Individuals Very large systems Disadvantages Low-level
dynamics (smoothing out) Modelling interactions and emergence
Representing complex systems Individual-level Advantages
Heterogeneity Interactions (Human) Behaviour Emergence and complex
systems Disadvantages Difficult to create Computationally expensive
Difficult to define (choose important variables) Advantages
Heterogeneity Interactions (Human) Behaviour Emergence and complex
systems Disadvantages Difficult to create Computationally expensive
Difficult to define (choose important variables)
Slide 5
Practical recap.. Change the value of a variable? Ask the
turtles to change their colour? Ask the blue turtles to move to the
point (5,14)? (Then review this diagram).this diagram Ask the
turtles to do more than one thing (e.g. turn blue and then move
forward) Make a procedure called move-turtles ? Call the procedure
from the go procedure? Make a global variable with a slider Change
the value of a variable? Ask the turtles to change their colour?
Ask the blue turtles to move to the point (5,14)? (Then review this
diagram).this diagram Ask the turtles to do more than one thing
(e.g. turn blue and then move forward) Make a procedure called
move-turtles ? Call the procedure from the go procedure? Make a
global variable with a slider Well spend ~5 minutes going over some
of the material covered in the practical. How do you do the
following:
Slide 6
Lecture 4 Emergence Cellular Automata and the Game of Life
Non-linear dynamics Complexity Chaos Emergence Cellular Automata
and the Game of Life Non-linear dynamics Complexity Chaos These are
all key concepts!
Slide 7
Readings Flake, G. (1998) The Computational Beauty of Nature.
MIT Press Wolfram, S. (2002). A New Kind of Science. Wolfram Media
Wolfram, S. (2002). A New Kind of Science. Wolfram Media Railsback,
S.F., 2012. Agent-Based and Individual-Based Modeling: A Practical
Introduction. Princeton University Press, New Jersey. (Page 101+)
Railsback, S.F., 2012. Agent-Based and Individual-Based Modeling: A
Practical Introduction. Princeton University Press, New Jersey.
(Page 101+)
Slide 8
Emergence: What is it? The whole is greater than the sum of its
parts. - Aristotle (?) The whole is greater than the sum of its
parts. - Aristotle (?) A property of a collection of simple
sub-units that comes about through the interactions of the subunits
and is not a property of any single subunit - Gary Flake A property
of a collection of simple sub-units that comes about through the
interactions of the subunits and is not a property of any single
subunit - Gary Flake Attribution: Yewenyi at the English language
Wikipedia https://en.wikipedia.org/wiki/User:Yewenyi Attribution:
Discott https://en.wikipedia.org/ wiki/User:Discott The way that
complex systems and patterns arise out of a multiplicity of
relatively simple interactions - Wikipedia The way that complex
systems and patterns arise out of a multiplicity of relatively
simple interactions - Wikipedia
Slide 9
Emergence questions If there is no leader, how are flocks etc.
controlled? List some of the organisms that demonstrate emergent
behaviour Can you think of any other examples of emergent phenomena
If there is no leader, how are flocks etc. controlled? List some of
the organisms that demonstrate emergent behaviour Can you think of
any other examples of emergent phenomena When watching the video,
think about:
Slide 10
Emergence: What is it? http://www.youtube.com/w
atch?v=aEaZHWXmbRw (up to 4:50) http://www.pbs.org/wgbh/nova/
nature/emergence.html
Slide 11
Emergence: What is it? Simple rules -> complex outcomes In
the past, we have assumed that complex phenomena are driven by a
complex mechanism This is not always the case Possible to prove the
with simple computer programs Agent-based models are one example,
others to follow
Slide 12
Emergence: A new kind of science? I even have increasing
evidence that thinking in terms of simple programs will make it
possible to construct a single truly fundamental theory of
physical, from which space, time, quantum mechanics and all the
other known features of our universe will emerge. - Wolfram (2002)
I even have increasing evidence that thinking in terms of simple
programs will make it possible to construct a single truly
fundamental theory of physical, from which space, time, quantum
mechanics and all the other known features of our universe will
emerge. - Wolfram (2002)
Slide 13
Game time! http://www.icosystem.com/labsdemos/the-game/ Rules
Everyone randomly selects 2 individuals person A and person B. Now
move so that you always keep A in between yourself and B so that A
is your protector from B. At some point Nick will say stop. Then
you become the protector, and need to move so that you keep
yourself between A and B. Health and Safety Slippery, uneven
ground, please be careful Dont leave the field This isnt
compulsory, so if you dont have sensible shoes (or dont want to
come) you can wait here.
Slide 14
Lecture 4 Emergence Cellular Automata and the Game of Life
Non-linear dynamics Complexity Chaos Emergence Cellular Automata
and the Game of Life Non-linear dynamics Complexity Chaos
Slide 15
An Example of Emergence: Cellular Automata Not dissimilar to an
agent-based model. Useful here to demonstrate emergence Consist of
a grid of cells (similar to NetLogo patches) Rules drive behaviour
of cells E.g. If more than two neighbours repaint their house, I
will repaint mine. E.g. If farmers around me start to grow barley,
I will grow maize All cells driven by the same rules But cells can
be in different states
Slide 16
Simple rules can produce complicated patterns. E.g. fractals An
Example of Emergence: Cellular Automata
Slide 17
Cellular Automata in Geography Great for physical geographical
systems Land use / land cover change Forest fires Water systems..
etc.. (look up some examples yourselves) NetLogo Demos: Voting
(peoples votes are influenced by their neighbours) Fire (spread of
forest fires) Percolation (oil spreading through earth) What is are
the main differences between a cellular automata and an agent-based
model?
Slide 18
The Game of Life A cellular automata Beautiful example of
simple rules leading to complex outcomes Cells can be alive (black)
or dead (white) Rules for each cell: If dead, and alive neighbours
= 3 Alive If alive, and alive neighbours < 2 Die of loneliness
If alive and alive neighbours > 3 Die of overcrowding Otherwise,
stays as it is.
Slide 19
The Game of Life in NetLogo Life model
Slide 20
The Game of Life Gliders A glider is a pattern that travels
across the board in the Game of Life Very useful! Can transmit
information across the world Building blocks for many other objects
(by colliding in a particular way)
Slide 21
The Game of Life Glider Gun See
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Image
attributed to Kieff
(https://en.wikipedia.org/wiki/User:Kieff)Kieffhttps://en.wikipedia.org/wiki/User:Kieff
See https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Image
attributed to Kieff
(https://en.wikipedia.org/wiki/User:Kieff)Kieffhttps://en.wikipedia.org/wiki/User:Kieff
Initial configuration Running the model A pattern that
automatically creates gliders
Slide 22
The Game of Life Spaceships Lightweight spaceship For more
information, see: http://www.conwaylife.com/wiki/Spaceship David
Eppstein's weekender Loads of other examples...
Slide 23
The Game of Life So what?! This might all seem fairly pointless
the really interesting stuff happens when these different patterns
are combined...... and they start to produce patterns that look
like a living thing
Slide 24
Use software called Golly http://golly.sourceforge.net/
Examples Breeders Create new patterns Life -> breeders -> p90
rake factory Life -> breeders -> space filler Others
Life-like -> Replicator Life-like -> Spiral growth Life-like
-> Coral Remember the key message -> these complex, life-like
patterns emerge through the application of three simple rules. The
Game of Life Examples
Slide 25
Emergence: why is it important? Key message: Complex structures
can emerge from simple rules Emergence is hard to anticipate Cannot
be deduced from solely analysis of individuals behaviour Emergence
is a characteristic of complex systems
Slide 26
Emergence: why is it important? Global (macro) level patterns
are the result of micro interactions. Individual-level modelling is
focused on understanding how macro-level patterns emerge from
micro-level through the process of simulation. Macro: global scale
e.g. the largest scale you are modelling at e.g. regional, country
Micro: small scale e.g. individuals, households
Slide 27
Real Example: Segregation Schelling Thomas Schelling (Harvard)
looked at racial segregation. You will have experimented with his
model in the last practical Initially 1D, then 2D, cellular
automata / ABM Cells either 1 or 0 (black or white). If
neighbourhood > x% of another colour, move to nearest area where
this isnt true.
Slide 28
NetLogo: Demonstration 35%: 50%: 80%: 35%: 50%: 80%: What do
you think happens when 35%, 50% and 80% preferences are
selected?
Slide 29
Schelling Results Even with low individual preferences for
neighbour similarity, segregation develops. (Also, if preference is
too high, then no one is satisfied) 35% preference50% preference80%
preference
Slide 30
Schelling Behaviour & Environment Simple, rule-based
behaviour One decision move or stay Abstract environment Advantages
Easy to fully understand model dynamics (Possible) insight into
dynamics of real-world patterns of segregation Disadvantages
Behaviour and environment too simple to reflect the real world ?
Patterns are an artefact of Schellings thought experiment, nothing
more ?
Slide 31
Lecture 4 Emergence Cellular Automata and the Game of Life
Non-linear dynamics Complexity Chaos Emergence Cellular Automata
and the Game of Life Non-linear dynamics Complexity Chaos
Slide 32
Linear Systems Linear: the output of a system is linearly
proportional to the inputs Example: You have a population of 10
bunnies Each bunny will have 4 bunny babies You can work out how
many bunnies there will be in 3 generations: Generation 1: 10
bunnies. Generation 2: 10 X 4 = 40 bunnies. Generation 3: 10 X 4 X
4 = 160 bunnies Generation n: 10 X (n-1) bunnies This is an example
of LINEAR system.
Slide 33
Linear Systems Example of a linear system. With bunnies! You
have a population of 10 bunnies Each bunny will have 4 bunny babies
You can work out how many bunnies there will be in 3 generations:
Generation 1: 10 bunnies. Generation 2: 10 X 4 = 40 bunnies.
Generation 3: 10 X 4 X 4 = 160 bunnies Generation n: 10 X 4 (n-1)
bunnies Now, we increase the number of bunnies per parent. You have
a population of 10 bunnies Each bunny will have 6 bunny babies You
can work out how many bunnies there will be in 3 generations:
Generation 1: 10 bunnies. Generation 2: 10 X 6 = 60 bunnies.
Generation 3: 10 X 6 X 6 = 360 bunnies Generation n: 10 X 6 (n-1)
bunnies If we change the model inputs, there is a linear change in
the outputs
Slide 34
Non-linear: A bunnies tale The bunny population continues to
grow in a linear fashion. All those tasty bunnies dont go unnoticed
by predators As the predator population thrives, the bunnies
diminish. However, as the predators food is scarce, their
population begins to fail. The bunny population recovers. The cycle
begins again. Now, if we change the bunny growth rate, what will
happen?
Slide 35
Non-linearity in wolf-sheep model Demo: wolf-sheep predation
Run the model (with grass) Now, I am going to kill some of the
sheep, what will happen?
Slide 36
Non-linearity in the wolf-sheep model Unlike our bunny
population, removing sheep has unexpected effects Changing model
inputs has a non-linear impact on the model outcomes We cannot
predict how the system will behave (At least not very far into the
future) Understanding the interactions between wolves, sheep and
grass is the key
Slide 37
Non-linearity In general, non-linear systems are any system
where the inputs are not linearly proportional to the outputs.
E.g.: Thresholds Rule-based Random etc. Non-linearity leads to
chaos /chaotic dynamics Irregular dynamics where the system keeps
changing without exact repetition. More on chaos later
Slide 38
Nonlinearity A Mathematical Example Lotka-Volterra equations
Mathematical representation of predator-prey system x is the number
of prey y is the number of predators , , , are parameters The
population fluctuates alpha = 2 beta = 0.5 gamma = 0.2 delta = 0.6
alpha = 2 beta = 0.5 gamma = 0.2 delta = 0.6
Slide 39
Nonlinearity Another Mathematical Example The logistic map
Mathematical representation of a population growth model x n ->
ratio of existing population to the maximum possible population at
year n r -> reproduction or starvation, depending on population
size What happens as r increases?
Slide 40
Logistic Map Attributiong: Gisling
(http://commons.wikimedia.org/wiki/User:Gisling) on
Wikipediahttp://commons.wikimedia.org/wiki/User:Gisling
Attributiong: Gisling
(http://commons.wikimedia.org/wiki/User:Gisling) on
Wikipediahttp://commons.wikimedia.org/wiki/User:Gisling What
happens as r increases? The program that I demonstrated in the
lecture was made by Dan Olner. You can run it yourself here:
http://www.personal.leeds.ac.u k/~geodo/exploringchaos/ The program
that I demonstrated in the lecture was made by Dan Olner. You can
run it yourself here: http://www.personal.leeds.ac.u
k/~geodo/exploringchaos/
Slide 41
Lecture 4 Emergence Cellular Automata and the Game of Life
Non-linear dynamics Complexity Chaos Emergence Cellular Automata
and the Game of Life Non-linear dynamics Complexity Chaos
Slide 42
Flocks Agent- Based Swarms Result of agents working together to
produce groups that follow each other E.g. herds of animals, flocks
of birds, or schools of fish.
Slide 43
http://www.youtube.com/watch?v=qJjeHLcbQJ0
Slide 44
Question How is the flock controlled?
Slide 45
Boids Scientists have puzzled over how flocks are controlled A
solution has been offered by Craig Reynolds (1986) a simulation of
flocking behaviour Each agent has the following rules Avoid
colliding with your neighbour most of all. Fly in the average
direction of your neighbours. Try to move into the centre of the
flock (to prevent being eaten). The seemingly realistic flocking
patterns suggest that it is an emergent phenomena with no
leader.
Slide 46
Flocks How they act
Slide 47
http://www.youtube.com/watch?v=GUkjC-69vaw
Slide 48
Uses of flocking agents Simulating how crowds move. Popular
Post-Hillsborough. Notting Hill Carnival MausHouse Lecture on this
later
Slide 49
Uses of flocks Searching solution spaces - e.g. CCGs swarming
GAM. The GAM adds intelligent foraging interactions such as I know
a good place to find food (a cluster), follow me
Slide 50
Swarming Robots and Data Collection Geographical data comes
from many sources: Loggers attached to sensors in the field.
Scientists attached to sensors in the field. This takes time. Many
geographical areas are either socially or physically inhospitable.
Some are essentially impossible.
Slide 51
Autonomous Sensors Satellites obviously. Oceanic sensors e.g.
Autosub. Mars Rovers. Cryobots melt though ice returning data to
surface units. May be used on Europa. DARPA/Berkleys SmartDust
small environmental sensors with wireless links. ~200 monitor Storm
Petrel habitat at Great Duck Island, Maine, USA. Used to monitor
temperature, light, humidity and pressure. Self-assembling,
self-healing network Drop into environments Years of operation
without replacing batteries Down to 4 cubic mm.
Slide 52
Automatic recognition from images Flocking sensors and
automonous cameras set up. Moving objects and what they are. DARPAs
Combat Zones That See Satellite images overlain on combat
information. 3D landscapes produced combining these data
sources.
Slide 53
Bringing it all together Complex Systems Systems that exhibit
the features we have seen in this lecture can be called complex.
Complex systems are Non-linear Driven by large numbers of variables
Have emergence as a key feature Can demonstrate spatial and
temporal variance Note: Complex complicated e.g. the LotkaVolterra
equation But The jury is still out as to how the word complexity
should be defined (Flake, 1998, p 135)
Slide 54
Lecture 4 Emergence Cellular Automata and the Game of Life
Non-linear dynamics Complexity Chaos Emergence Cellular Automata
and the Game of Life Non-linear dynamics Complexity Chaos
Slide 55
Chaotic systems Tiny changes can have huge impacts The
butterfly effect Example: The logistic map (in earlier slides)
Edward Lorenzs 1960s weather simulation Behaviour is deterministic
But very difficult to predict in the long term Photo attributed to
Gianfranco Reppucci on Flickr
http://www.flickr.com/photos/giefferre/4446877066/
http://www.flickr.com/photos/giefferre/4446877066/ Photo attributed
to Gianfranco Reppucci on Flickr
http://www.flickr.com/photos/giefferre/4446877066/
http://www.flickr.com/photos/giefferre/4446877066/
Slide 56
Chaos One lecture (or even a whole course) cannot do justice to
this new, potentially revolutionary area of scientific research. Do
some reading! Youll find it fascinating (And it will be obvious in
the exam who really understands all this ) One lecture (or even a
whole course) cannot do justice to this new, potentially
revolutionary area of scientific research. Do some reading! Youll
find it fascinating (And it will be obvious in the exam who really
understands all this )
Slide 57
Complex Geographical Systems Traditional modelling techniques
cannot handle the defining features of complex systems Particularly
non-linearity and emergence But most geographical systems are
complex systems! Individual-level modelling techniques are showing
great potential for modelling geographical systems.
Slide 58
Complex Geographical Systems The weather Chaotic system (tiny
changes lead to dramatic effects, discovered by Edward Lorenz)
Ensemble modelling to manage the chaos Nonlinear partial
differential equations, similar to a cellular automata (I think!)
Crowds Uncountable human-human and human-environment interactions
What causes protests to become riots? more on these practical
applications later in the course
Slide 59
Issues Geographers Can Save the World There are several major
questions wed want to ask of geographical systems if we could.
Stability: does the system have a dynamic equilibrium or does it
fluctuate? Robustness: can the system withstand shocks and still
produce sensible outputs? Sensitivity: will a small perturbation
produce chaos? If we can identify complexity within systems, we
can: Understand them better Manipulate them to our own requirements
Make better predictions
Slide 60
Summary Emergence: sum is greater than the parts Bottom-up /
individual-level modelling is focused on understanding how
macro-level patterns emerge from micro-level through the process of
simulation. Non-linearity: Relationship between two variables is
not linear (Predator-prey) Complex systems: Exhibit non-linearity
and emergence. Very difficult to predict! Chaos: Small changes lead
to huge impacts
Slide 61
Further reading / watching To really have a chance of
understanding these concepts, youll need to do some more research.
The resources below are a good place to start. Also see the list on
the course website:
http://www.geog.leeds.ac.uk/courses/level3/geog3150/lectures/lecture4/
http://www.geog.leeds.ac.uk/courses/level3/geog3150/lectures/lecture4/
Igor Nikolic, Complex Adaptive Systems TED talk
http://tedxtalks.ted.com/video/TEDxRotterdam-Igor-Nikolic-Comp Read
a relevant chapter in my favourite academic book Flake, G. (1998)
The Computational Beauty of Nature. MIT Press Systems of Systems
(IBM) http://www.youtube.com/watch?v=h2br2_twHfw Clips from a BBC
Documentary about chaos (ideas about chaos are closely related to
complex systems) On the VLE (not publicly available)
https://vlebb.leeds.ac.uk/bbcswebdav/xid-4312172_2https://vlebb.leeds.ac.uk/bbcswebdav/xid-4312172_2
A full-legth BBC documentary: The Secret Life of Chaos Available on
Box of Broadcasts: http://bobnational.net/record/21567
Slide 62
Next week How to model interactions and behaviour. Seminar The
Ethics of Individual-Level Modelling Promises something different.
Two short readings. http://www.geog.leeds.ac.uk/courses/level3/geo
g3150/seminars/seminar2/
Slide 63
A video to finish...
http://tedxtalks.ted.com/video/TEDxRotterdam-Igor-Nikolic-Comp