cemetery organization, sorting, graph partitioning and data...

67
Cemetery Organization, Sorting, Graph Partitioning and Data Analysis

Upload: others

Post on 07-Sep-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Cemetery Organization, Sorting, Graph Partitioning and Data

Analysis

Page 2: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Introduction

• Ants cluster corpses to form cemeteries• Ants sort larvae• Not completely understood

– Simple model can predict behaviour• Model can be applied to:

– Data analysis– Graph partitioning – …

• Distributed clustering and sorting used as benchmark problems in robotics

Page 3: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Cemetary Organization• Several species form piles of corpses:

– Lasius Niger [Chretien]– Pheidole pallidula [Deneubourg]

• Basic mechanism is attraction between ants and corpses (Yikes!)– Small piles become bigger …– Positive feedback, once again

Page 4: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Page 5: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Page 6: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Larval Sorting

• Leptothorax unifasciatus (and many other species) sort larvae

• Circular sorting– Small in middle– Large on outside– Individual space increases with distance from centre– Space and metabolic rate are correlated [Franks]

Page 7: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Model of Corpse Clustering

• General idea is that isolated items picked up and dropped at locations of higher density …

Lecture Notes

Page 8: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Aggregation and SegregationMechanisms

AM, EE141, Swarm Intelligence, W4-1

Page 9: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Outline

• Social insects (ants)• Algorithms (data clustering)• Robotics experiments

Page 10: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Ants

Page 11: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

It defines a class of mechanisms exploited by social insects to coordinate andcontrol their activity via indirect interactions.

• Stigmergic mechanisms can be classified in two different categories:quantitative (or continuous) stigmergy and qualitative (or discrete)stigmergy

Stimulus

Answer

S1

R1

S2

R2

S3

R3

time

S 4

R4

S 5

R5

Stop

Definition

Stigmergy

Page 12: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Example of qualitative stigmergy Example of quantitative stigmergy

More detail in Week 6!• Duration of aggregation

process: 48 h!• Reduction of the spread of

infection? Chretien (1996)

Stigmergy

Page 13: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

A Model of Corpse Clustering

Characteristics of the algorithm for individual behavior(Deneubourg et al., 1991)

• When an ant encounters a corpse, it will pick it up with aprobability which increases with the degree of isolation of thecorpse

• When an ant is carrying a corpse, it will drop it with a probabilitywhich increases with the number of corpses in the vicinity

• Modulation of pick up/drop probabilities as a function of thepheromone clouds around the cluster -> quantitative (continuous)stigmergy

Page 14: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The probability that an agent which is not carrying an item will pickup an item

Ppick up =K+

K+ + f

Probability that an agent carrying an item will drop the item

Pdrop =f

K- + f

f : fraction of neighborhood sites occupied by itemsK-, K+: threshold constants

Algorithm for individual behavior

A Model of Corpse Clustering

( )2

)2(

Page 15: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

t = 15

t = 0

Short term memoryat t = 15

Probability of picking up an object:

Probability of dropping an objectwhich is being carried:

fi : fraction of neighboring sitesoccupied by objects of the same typeof the object i

K+, K- : constants

Pipick up = ( K+ / ( K+ + fi ) ) 2

Pidrop = ( fi / ( K- + fi ) ) 2

Individual behavioral algorithm

Model of HarvestSorting in Ants

Page 16: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses
Page 17: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Aggregation andSegregation Models

• Explanation of cemetery organization in Lasius niger,Pheidole pallidula, and Messor Sancta ant species ok

• Explanation of brood sorting in Leptothorax ants(concentric annular sorting) unexplained!

Page 18: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Algorithms

Page 19: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

• We define a « distance » d (or a dissimilarity) between objects in theattribute space of the object.

• For instance, in the sorting problem previously mentioned, 2 objects oiand oj can be similar or different (binary dissimilarity):

If oi and oj are identical objects then: d(oi, oj) = 0If oi and oj are different objects then: d(oi, oj) = 1

• The problem (and the algorithm) can be extended to more compleobjects described by a finite number n of attributes, each attributerepresented by a real value for instance.

• These objects can be described as points in the Rn space and d(oi, oj) asthe eucledian distance between them.

Application of Clustering Algorithms to the

Classification of Objects

Page 20: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The attribute space is projected on a smaller dimension space (e.g. l=2)

• Assumption: the projection space has to be chosen so that the distances intra-clusters are smaller than distances inter-cluster

• We finally discretize the projected space (it can be seen as a sub-space of Z2), sothat many clusterizing agents can move around and operate on this space

Algorithm of Lumer et Faieta (1994)

Application of Clustering Algorithms to the

Classification of Objects

Page 21: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The agents can locally perceive a certain number of cells around their position (areas2 around the current site r of the agent)

S

S

r

Algorithm of Lumer et Faieta (1994)

Application of Clustering Algorithms to the

Classification of Objects

Page 22: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

At time t, an agent at the site r finds an object oi, on this site f(oi) measures the meansimilarity of the object oi with the other objects oj which are in its neighborhood(within perception area sxs)

αααα : algorithm parameter which defines the dissimilarity scale

Algorithm of Lumer et Faieta (1994)

f(oi) = , if f > 01

s2[1– ]Σ

Oj ∈ Neigh(sxs) (r)

f(oi) = 0 , otherwise

α

d(oi, oj)

Application of Clustering Algorithms to the

Classification of Objects

Page 23: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

• If all the cells s2 around the agent at site r have similar objects to oi, weobtain :

∀ Oj ∈ Neigh(sxs) (r), d(oi, oj) = 0 and f(oi) = 1

• If all the cells s2 around the agent at site r have objects highly differentto oi, we obtain :

∀ Oj ∈ Neigh(sxs) (r), d(oi, oj) = α and f(oi) = 0

Algorithm of Lumer et Faieta (1994)

Application of Clustering Algorithms to the

Classification of Objects

Page 24: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

k1

k1 + f(oi)( )

2

{2f(oi), if f(oi) < k2

1, if f(oi) ≥ k2

If f(oi) = 1, oi has low probability to be picked upIf f(oi) = 0, oi has high probability to be picked up

Algorithm of Lumer et Faieta (1994)

Probability of an unloaded agent of picking up an object

Ppick up (oi) =

k1, k2 : threshold constants

Pdrop (oi) =

Probability of an loaded agent of dropping an object

Application of Clustering Algorithms to the

Classification of Objects

Page 25: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Example of collective sorting

Attribute space: 4 gaussian distributions of real numbers

20.0

15.0

10.0

5.0

0.0

-5.0

-10.0-10.0 0.0 10.0 20.0

20.0

15.0

10.0

5.0

0.0

-5.0

-10.0-10.0 0.0 10.0 20.0

Application of Clustering Algorithms to the

Classification of Objects

Page 26: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Points are randomly scattered on a grid of 52 X 52and clustering is performedwith 40 agents

t = 0 t = 500000

Example of collective sorting

Heuristic needed for better performances: heterogeneous agents (different speeds)and short term memory -> then 4 clusters …

Application of Clustering Algorithms to the

Classification of Objects

Page 27: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Robots

Page 28: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The mission:From local actions to global tasks: stigmergy and collectiverobotics.

The plan:• Give the robot some means of moving some discrete items.• Give it a start by enabling it to make small clusters.• Think of some way of estimating local density so that it can

use the Deneubourg algorithm to make progressively largerclusters.

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Page 29: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Page 30: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The behavior:

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Page 31: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

How does it works?

• probability of leaving a puck on a cluster increases with the size of the cluster• probability of taking a puck from a cluster decreases with the size of the cluster

so rate of growth increases with size

• adding a puck to a cluster increases its size• taking a puck from a cluster reduces its size

so the feedback is always positive

• The sum of the rates of growth over all clusters will be zero (conservation of pucks)• Therefore the rate of growth of at least the smallest cluster must be negative• So a group of n clusters will tend to become (n-1) clusters....and so on

Page 32: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Why a single cluster?

• clusters of 2 or less pucks are irreversibly eliminated• noise influence play a major role: algorithm is deterministic but

interactions robot-to-robot and robot-to-environment have a highstochastic component

• more quantitative analysis in the next lecture!

Page 33: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Other features of the robot system

• sensitive to friction and irregularities on floor• will form cluster around a suitable seed• robots are all different (small heterogeneities of the components)• robots change with time (battery life, general aging)• grippers entangling (mechanical interferences)• proximity sensors interferences (continuous emission)• puck lost by turning on the spot

Page 34: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Puck Clustering (Beckers, Holland,and Deneubourg, 1994)

Conclusion

• Robots can form clusters using a simpler algorithm than that proposed byDeneubourg: deterministic (but stochasticity in the interactions), strictly localsensing without memory (but memory = a little bit less local … ).

• Robots can show many of the advantageous features of ant behavior (robustnessto individual failure, robustness to environmental disturbance and interferences).

• The robot system is tightly coupled to the physics of the environment, andresponds coherently.

Page 35: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering and Sorting(Holland and Melhuish, 1998)

Bio-mimicking experiment: Leptothorax ants

• Live in cracks in rocks• Sort their brood• Perform nest migrations:

- find a new nest site- move the queen and brood there- build a surrounding wall- sort the brood

• Because of the 2D habitat and the interesting behaviors, ideal subjects forrepresenting in a land-robotic form ... but they build with particles of grit thesame width as their bodies (“blind bulldozing”)... so we need ‘building materials’the same width as the robots – Frisbees

• Arena’s area is 1760 times the area of a robot: same order of magnitude as theratio of the area of a Leptothorax nest to a single ant.

• Qualitative/feasibility rather than quantitative/efficiency study

Page 36: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

The Robots

• 23 cm in diameter

• 3h battery autonomy

• Motorola 68332, 16 Mb RAM

• 4 continuous emitting IRproximity sensors

• Microswitch on the gripper (threshold between 1 and 2 fresbees),locking-unlocking frisbee operations controlled by an actuator

• Double optical sensor (color detection) for center and periphery colordetection of the carried frisbee

Frisbee Gathering and Sorting(Holland and Melhuish, 1998)

Page 37: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Experimental set-up

Frisbee Gathering and Sorting(Holland and Melhuish, 1998)

Page 38: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Exp. 1: behavior for basic clustering

Rule 1:if (gripper pressed & Object ahead) then make random turn away from object Rule 2:if (gripper pressed & no Object ahead) then reverse small distance make random turn left or right Rule 3: go forward

Modified Beckers et al. basic behavior for rigid walls/robots!

Frisbee Gathering and Sorting(Holland and Melhuish, 1998)

Page 39: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 1: Results for basic clustering (10 robots, 44 frisbees)

8h 25 min, endcriterium:90% offrisbees gathered(40)

Page 40: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Exp. 1: comparison with performance Beckers et al. 94

• Beckers et al. 1994: 81 pucks and 3 robots in 1h 45 min

• Holland et al. 1998: 40 frisbees and 10 robots in 8h 25 min

Why? No quantitative comparison, modelling up to date …

• Different arena’s area, different robot speed

• Cluster of 1 object (Holland ‘98) vs. cluster of 2 objects(Beckers ‘94) irreversibly removed

• Noise in cluster shape (compacity of the clusters)

• …

Frisbee Gathering (Holland andMelhuish, 1998)

Page 41: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Exp. 2: Could we form clusters at the edges of the arena?

"It must be emphasized that a very large arena was necessary inDeneubourg et al's experiments to obtain "bulk" clusters: in effect,ants are attracted towards the edges of the experimental arena if theseare too close to the nest, resulting in clusters almost exclusively alongthe edges."Eric Bonabeau, 1998

Test:• Vary the algorithm ok• Vary the sensors ok• Vary the arena size?

Frisbee Gathering (Holland andMelhuish, 1998)

Page 42: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 2: Boundary clustering, algorithm

Rule 1:if (gripper pressed & Object ahead) then with probability p make random turn away from object else with probability (1-p) reverse small distance (dropping the frisbee) make random turn left or right Rule 2:if (gripper pressed & no Object ahead) then reverse small distance (dropping the frisbee) make random turn left or right Rule 3: go forward

Algorithm modified:

Rule 1 probabilistic!

Page 43: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 2: Boundary clustering, parameter bifurcationprobabilityof retention p

RESULTS

1.0 leads to a central cluster after 6 hours 35 minutes

0.95 leads to a central cluster, stopped when 2 main central clusters formed. Stopped~2.5hours

0.9 leads to a central cluster, stopped when 2 main central clusters formed. Stopped~5hours

0.88 1 cluster formed at edge. 40/44 at 9hrs 5m continued to be stable up to 11hrs20min.

0.85 1 major cluster formed at edge and approx. 15 singletons around the periphery.stopped after 1110hours

0.8 1 major cluster formed at edge and approx. 15 singletons around the periphery.Stopped after 11hrs

0.5 All pucks taken to periphery (frame 8, 0hr40mins)but no single cluster formedStopped at 11 hrs

0.0 All pucks taken to periphery (frame 3 0hr15m) but no single cluster formed.Stopped at 3hrs.

Page 44: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 2: Boundary clustering, parameter bifurcation

p = 0.0p = 0.5p = 0.8

p = 0.88p = 0.9p = 1.0

Page 45: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 2: Boundary clustering, sensory modification

Drop puck/Leave puck

Drop puck/Leave puck

wall

Mean 100.3 0

Pick up/ Retain puck

Obstacle detection only with central sensor (instead of the 3 frontal sensors)!

p =100.3/180 = 0.56

But robot movementsnot really uniformlydistributed(trajectories, no wallfollowing ) …

Page 46: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering (Holland andMelhuish, 1998)

Exp. 2: Boundary clustering, sensory modification

Similar to p = 0.88 in the algorithmic version!

Page 47: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Sorting (Holland andMelhuish, 1998)

Exp. 3: The pull back algorithm

Rule 1:if (gripper pressed & Object ahead) then make random turn away from object Rule 2:if (gripper pressed & no Object ahead) then if plain then lower pin and reverse for pull-back distance raise pin endif reverse small distance make random turn left or right

• Initial idea: change the compacity (pull back distance is a sensitive parameter) forspeeding up aggregation process

• Robot behavior different with ring or plain frisbees

Page 48: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Sorting (Holland andMelhuish, 1998)

Exp. 3: The pull back algorithm, results (pullback distance 2.6frisbees, 6 robots)

t = 0h00 t = 1h45 t = 8h05

Annular sorting like in Leptothorax ants!

Page 49: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Sorting (Holland andMelhuish, 1998)

Exp. 3: The pull back algorithm, results (pullback distance 2.6frisbees, 6 robots, end criterium: first cluster of 20 frisbees)

Trial 1 2 3 4 5

Time in hours 7.58 2.75 25.3 11.7 4.50

Number ofplains

11 12 11 10 12

High std dev

Low std dev

Page 50: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Frisbee Gathering and Sorting(Holland and Melhuish, 1998)

Conclusion

• Robots can form clusters using a simpler algorithm than that proposed byDeneubourg: deterministic (but stochasticity in the interactions), strictly localsensing without memory (but memory = a little bit less local … ).

• Robots can show many of the advantageous features of ant behavior (robustnessto individual failure, robustness to environmental disturbance and interferences).

• The robot system is tightly coupled to the physics of the environment, andresponds coherently.

But how about qualitative considerations? How can we improve the systemefficiency, how can we reduce the variability of the team performance, what arethe key parameters of the experiment?

Next lecture an answer attempt …

Page 51: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Page 52: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Page 53: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Generalization• Function f, replaced by fA and fB

– Memory enhanced to store quantities of A and B seen in time window• Gutowitz:

– Use entropy to track clustering dynamics:

– Pl fraction of all objects found in patch nxn• Oprisan

– All more recent objects greater weighting than old• Bonabeau

– Looked at various weighting factors, including short term activation, long term inhibition

∑−∈

=)(log

patchesslll PPE

Page 54: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Back to pdf

Page 55: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Random Placement

Unladen rule

Laden rule

Move rule

Swarm Intelligence: Bonabeau et al

Page 56: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Improvements to LF algorithm• Agents move with different speeds, v

• v in [1, vmax]• Fast ants not as selected as slow ants• Clusters form over different time scales• Variable speed like temperature

>

−+

−= ∑∈

otherwise 0

0 f if 11

),(11

)( )(

max

2rNeigho

ji

i sxsj

vvood

sofα

Page 57: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Improvements to LF Algorithm

• Add short term memory– Store last m objects and their locations– Pick up item, compares with m objects and

moves to most similar location– Forces cluster coalescence

• Behavioral switches– Add ability to destroy clusters– Other operators are possible too (forced merge)

Page 58: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Comments

• Cannot expect perfect clustering:– Cluster positions in plane arbitrary– Distances cannot be correlated due to projection– Nonparametric

• Algorithm is “halfway” between:– Cluster analysis– Multidimensional scaling

• Essentially, iterative merging of clusters

Page 59: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Application of LF Algorithm

• Applied technique to 1650 bank records• Found interesting underlying correlations

Single, ~20, Interest checking and mostlylive at home.

Married, possibly widowed, female

owners of a house …

Married male tenants, average

age 44.

Swarm Intelligence: Bonabeau et al

Page 60: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

But …

• Algorithm is VERY computationally expensive

• Isn’t really worth the effort • It’s really a simple way to implement

multidimensional scaling

Page 61: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Graph Partitioning

• Kuntz et al– Goal is to identify clusters within graph– Can be used as a graph-drawing algorithm– Useful for VLSI layout problems

• So: start with vertices with random coordinates• Goal is to:

– Clusters should be located in same region of space– Intercluster edges are minimized– Clusters are clearly separated

• Problem is NP-complete

Page 62: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Distance measure

• Algorithm is similar to that of LF – Vertices move in plane– Attracted or repelled

by other vertices in cluster

– Similarity is replaced by a distance measure

∑ ∑

= =

=

+

−= n

k

n

kjkik

n

kjkik

ji

aa

aavvd

1 1

1),(

Page 63: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Density Measure

• f(vi) a measure of average distance within graph of ith vertex to other vertices

>

= ∑∈

otherwise 0

0 f if ),(

11)( )(

2rNeigho

ji

i sxsj

vvdsvf α

2

2

2

1

1

)()()(

)()(

+

=

+

=

i

iid

iip

vfkvfvp

vfkkvp

Page 64: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Works well for smallGraphs, decays with N = 200 (see Fig. 4.13 and 4.14)

Page 65: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Swarm Intelligence: Bonabeau et al

Random Placement

Unladen rule

Laden rule

Move rule

Page 66: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Correlations

Initial

After 2,000,000 steps

Page 67: Cemetery Organization, Sorting, Graph Partitioning and Data …people.scs.carleton.ca/~arpwhite/courses/5900H/notes/SI... · 2002. 3. 17. · Introduction • Ants cluster corpses

Summary

• Corpse aggregation commonly observed behaviors in ants– Simple agent model (pickup/drop) works

• Model can be extended:– Multi-attribute, real domains– Maps high dimensional spaces onto 2D

• Application to graph drawing/layout described• Has been used in collective robotics