Cellular Automata (CA) and Agent-Based Models (ABM) Dr Andy Evans.

Slides:



Advertisements
Similar presentations
Chapter 8 Geocomputation Part A:
Advertisements

Fractal geometry is being used to model cities using ideas from cellular automata.
Understanding the Complexity of Urban Road Congestion Ed Manley Department of Civil, Environmental and Geomatic Engineering Supervisors: Dr Tao Cheng (UCL)
Games as Emergent Systems first schema on “rules”.
Biologically Inspired Computation Some of the images in this lecture come from slides for a Course in Swarm Intelligence given at : Introducing Swarm Intelligence.
G5BAIM Artificial Intelligence Methods
Flocking Behaviors Presented by Jyh-Ming Lien. Flocking System What is flocking system? – A system that simulates behaviors of accumulative objects (e.g.
1 CO Games Development 2 Week 22 Flocking Gareth Bellaby.
Programming for Geographical Information Analysis: Advanced Skills Lecture 9: Modelling I: Agents and Netlogo Dr Andy Evans With additions from Dr Nick.
CITS4403 Computational Modelling Agent Based Models.
1 The Game of Life Supplement 2. 2 Background The Game of Life was devised by the British mathematician John Horton Conway in More sophisticated.
Cellular Automata (Reading: Chapter 10, Complexity: A Guided Tour)
1 Chapter 13 Artificial Life: Learning through Emergent Behavior.
CELLULAR AUTOMATON Presented by Rajini Singh.
CELLULAR AUTOMATA Derek Karssenberg, Utrecht University, the Netherlands LIFE (Conway)
Cellular Automata MATH 800 Fall “Cellular Automata” 588,000 results in 94,600 results in 61,500 results in 2.
Joanne Turner 15 Nov 2005 Introduction to Cellular Automata.
Universalities in Complex Systems: Models of Nature Konrad Hoppe Department of Mathematics.
Today’s Plan Introduction to Artificial Life Cellular Automata
Nawaf M Albadia Introduction. Components. Behavior & Characteristics. Classes & Rules. Grid Dimensions. Evolving Cellular Automata using Genetic.
General Purpose 3D Cellular Automata Modeller. A Regular Lattice of Cells, each obeying the same set of rules Simple rules for individual cells can produce.
L/O/G/O Ant Colony Optimization M1 : Cecile Chu.
MASS: From Social Science to Environmental Modelling Hazel Parry
Agent Based Modeling and Simulation
Discovery of Cellular Automata Rules Using Cases Ken-ichi Maeda Chiaki Sakama Wakayama University Discovery Science 2003, Oct.17.
Yingcai Xiao Artificial Intelligence in Game Development Yingcai Xiao.
The Role of Artificial Life, Cellular Automata and Emergence in the study of Artificial Intelligence Ognen Spiroski CITY Liberal Studies 2005.
Spatial Dynamical Modelling with TerraME Lectures 4: Agent-based modelling Gilberto Câmara.
Dynamic Models of Segregation
Parallel Computing for Urban Cellular Automata Qingfeng. Gene. Guan 2004-Nov-18 Geography Department Colloquium Univ. of California, Santa Barbara.
Complex systems complexity chaos the butterfly effect emergence determinism vs. non-determinism & observational non-determinism.
Cities and Complexity Gilberto Câmara Based on the book “Cities and Complexity” by Mike Batty Reuses on-line material on Batty’s website
CS 484 – Artificial Intelligence1 Announcements Lab 4 due today, November 8 Homework 8 due Tuesday, November 13 ½ to 1 page description of final project.
Centre for Advanced Spatial Analysis (CASA), UCL, 1-19 Torrington Place, London WC1E 6BT, UK web Talk.
1 Chapter 13 Artificial Life: Learning through Emergent Behavior.
Activity 2-1: The Game of Life
Introduction to Lattice Simulations. Cellular Automata What are Cellular Automata or CA? A cellular automata is a discrete model used to study a range.
Fractals. In colloquial usage, a fractal is "a rough or fragmented geometric shape that can be subdivided in parts, each of which is (at least approximately)
Cellular Automata Spatio-Temporal Information for Society Münster, 2014.
CELLULAR AUTOMATA A Presentation By CSC. OUTLINE History One Dimension CA Two Dimension CA Totalistic CA & Conway’s Game of Life Classification of CA.
Trust Propagation using Cellular Automata for UbiComp 28 th May 2004 —————— Dr. David Llewellyn-Jones, Prof. Madjid Merabti, Dr. Qi Shi, Dr. Bob Askwith.
Prof. Lars-Erik Cederman ETH - Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2, Nils.
Model Iteration Iteration means to repeat a process and is sometimes referred to as looping. In ModelBuilder, you can use iteration to cause the entire.
Exploring Complex Systems through Games and Computer Models Santa Fe Institute – Project GUTS
The Science of Complexity J. C. Sprott Department of Physics University of Wisconsin - Madison Presented to the First National Conference on Complexity.
Introduction to Agent-Based Modelling Dr Andy Evans.
Agent-Based Models Dr Andy Evans With additions from Dr Nick Malleson.
Spatial Dynamical Modelling with TerraME Lectures 4: Agent-based modelling Gilberto Câmara.
Neural Networks and Machine Learning Applications CSC 563 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
March Erb Scott E Page University of Michigan and Santa Fe Institute Complex Systems, Political Science, Economics.
Cellular Automata Introduction  Cellular Automata originally devised in the late 1940s by Stan Ulam (a mathematician) and John von Neumann.  Originally.
An Agent Epidemic Model Toward a general model. Objectives n An epidemic is any attribute that is passed from one person to others in society è disease,
CS851 – Biological Computing February 6, 2003 Nathanael Paul Randomness in Cellular Automata.
Intro to Life32. 1)Zoom to 10 That will allow you to see the grid and individual cells.
Introduction to Enviromental Modelling Lecture 1 – Basic Concepts Gilberto Câmara Tiago Carneiro Ana Paula Aguiar Sérgio Costa Pedro Andrade Neto.
A few of the people involved and what they’ve done.
TRU-COMP3710 Artificial Life and Emergent Behavior1 Course Outline Part I – Introduction to Artificial Intelligence Part II – Classical Artificial Intelligence.
Strategies and Rubrics for Teaching Chaos and Complex Systems Theories as Elaborating, Self-Organizing, and Fractionating Evolutionary Systems Fichter,
Biologically Inspired Computation Some of the images in this lecture come from slides for a Course in Swarm Intelligence given at : Lecture 5: Introducing.
Conway’s Game of Life Jess Barak Game Theory. History Invented by John Conway in 1970 Wanted to simplify problem from 1940s presented by John von Neumann.
Computing Systems Lecture 12 Future Computing. Natural computing Take inspiration from nature for the development of novel problem-solving techniques.
Modelagem Dinâmica com TerraME Aula 5 – Building simple models with TerraME Tiago Garcia de Senna Carneiro (UFOP) Gilberto Câmara (INPE)
Artificial Life and Emergent Behavior
Spatio-Temporal Information for Society Münster, 2014
L – Modeling and Simulating Social Systems with MATLAB
Illustrations of Simple Cellular Automata
Spatio-temporal information in society: cellular automata
Examples: Cellular Automata Modelling Agent-based models
Artificial Life and Emergent Behavior
Presentation transcript:

Cellular Automata (CA) and Agent-Based Models (ABM) Dr Andy Evans

Cellular Automata (CA) Can be used for searching/simulation but much much more. Essentially a grid of cells which may be different states dependant on the conditions around them. Each cell has a rule base determining how it reacts. For example, if a cell has less than two neighbours it dies, if it has more than two it reproduces and the neighbouring cells come alive. Can be used for searches, modelling crowds, ecosystems etc.

One dimensional CA Simplest CA: a line of cells. Each cell has a number of states it can be in, depending on the state of its neighbours and itself at the last time step. Usually drawn as a line of cells, with each line below each other being another time step. Simple rules can generate complex emergent behaviour.

Emergence From the simple rule: if both neighbours the same as you, go white else go black.

One dimensional CA Steven Wolfram classified CAs into… Class 1 always end in the same stable state. Class 2 settle into repeat patterns. Class 3 chaotic / white noise patterns. Class 4 complex patterns of near repetition with movement. Shows the wide range of natural patterns that could develop from simple rules.

One dimensional CA uses While they show that complex patterns can emerge from simple rules, this isn’t necessarily happening. However, we can use them to see if our simple rules develop complex patterns, and how resistant they are to perturbations to the starting conditions. E.g. crowd flow, street development, river networks.

The Schelling Model Thomas Schelling (Harvard) looked at racial segregation. Found that even if people were willing to live in areas made up of 50% other skin colours, segregation would develop. 1D CA. Cells either 1 or 0 (“black” or “white”). If neighbourhood > 50% of another colour, move to nearest area this isn’t true.

Two + dimensional CA Real power in geography comes from having two dimensions. Grid of cells that interact. Complex behaviour emerges that includes movement like a multi-cellular organism. John von Neumann (1966) came up with the idea. John Conway (late 60’s) “Game of Life” simplified it and gave it purpose.

The Game of Life Game of Life 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.

Two dimensional Game of Life CA In two dimensions, over time, some CA cell combinations form moving or periodically repeating multi-cellular organisms.

Classic two dimensional CA uses Modelling forest fires. Modelling animal and plant systems. Finding routes through mazes / landscapes etc.

Other uses SLEUTH Model of Keith Clarke (Santa Barbara). Uses CA to investigate urban growth. Uses current urban areas, slope, transport, landuse, exclusions. Grows cities. Used to study “what if?” scenarios. Essentially a whole new way of looking at urban form. Gigalopolis:

The lessons of CA Perfect fidelity (representation) isn’t necessary to model the world. Simple rules can lead to realistic and complex behaviour. These can be quite robust – missing information can turn out to be irrelevant to generating patterns, and they can often survive changes. However, representing the world as fixed and movement by state-changes seems wrong. Why not move the objects?

Intelligent Agents In part evolved from CAs. Essentially free moving cells or programs that intelligently interact with each other and their environment. One of the most important was Robert Axelrod’s 1980 cooperation competition.

Axelrod’s competition Imagine you’re an agent. If you cooperate with another agent, you get a moderate reward. Alternatively, if they’re suckered into cooperating with you, and you stab them in the back, you get a massive reward. However, if you both stab each other in the back, you get very little. The competition invited people to put in agents with different behaviours to see who won after hundreds of rounds. Consistently it was “Tit-for-tat”. Starts off cooperating but punishes backstabbers. This competition was later run with intelligent 2D CAs.

SIMCity Jay Forrester (1970) “Urban Dynamics” Describes cities as complex interacting dynamic systems Will Wright takes Forrester’s principals and builds them into a “bottom up” system of CA-like components “SIMCity”.

The SIMs Latest version “The SIMs” moved to direct autonomous humanoid intelligent agents. Similar agent based games include Populus (1989) and Civilization (1991). Intelligent agents are also used in games like Half-Life (1999). The agents adapt to player strategies.

Other Basic Competitive Agent Environments SugarScape. RoboCode.

Coding an Agent Agent Class Has an update method called each iteration, eg. move(), trade(). Has a position. Has a list of all other agents and can get their position. Can communicate with other agents if necessary. Environment Class Has environmental conditions. Calls the agents to update. Agents might, for example, trade with their nearest neighbours.

Petrol Price Modelling: can we determine the rules used by petrol stations to set their prices by guessing them from the patterns? Landscape fragmentation and aphid infection. Itzhak Benenson’s model of Tel-Aviv migration under ethnic influxes. Kai Nagel’s team at ETH in Switzerland. Model ~1million people in Zurich. Examples

Flocks: agent based swarms Utilise the emergent character of agents working together to produce groups that follow each other Like herds of animals, flocks of birds, or schools of fish.

Flocks Invented by Craig Reynolds (1986). 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 / to go for optimal solutions).

Flocks - how they act

Massive Prologue > Armies > Massive Simulator

Uses of Flocking Agents Simulating how crowds move. Popular Post-Hillsborough. Notting Hill Carnival Controlling resilient robot networks.