Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization...

26
Collective and Swarm Intelligence Master in Intelligent Systems, 2011–2012 Gianni A. Di Caro [email protected] USI/SUPSI Istituto Dalle Molle di studi sull , intelligenza artificiale Dalle Molle Institute for Artificial Intelligence (IDSIA) Lugano, Switzerland Gianni A. Di Caro Swarm Intelligence 1 / 26

Transcript of Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization...

Page 1: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Collective and Swarm IntelligenceMaster in Intelligent Systems, 2011–2012

Gianni A. Di [email protected]

US

I/S

UP

SI Istituto

Dalle Molle di studi sull,intelligenza artificiale

cartello esterno 1:1080 x 106 cm1 pezzo

Materiale e stampa:forex (plastico) 6 mma 3 colori (blu, cyan, grigio)

US

I/S

UP

SI

US

I/S

UP

SI

US

I/S

UP

SI

1° piano

3 pezzi 2 pezzi2 pezzi

cartelli interni 1:1040 x 53 cm

Materiale e stampa:forex (plastico) 6 mma 3 colori (blu, cyan, grigio)

Dalle Molle Institute for Artificial Intelligence (IDSIA)Lugano, Switzerland

Gianni A. Di Caro Swarm Intelligence 1 / 26

Page 2: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Road map

1 Collective and Swarm Intelligence (SI): Nature’s inspiration, general principles,self-organization

2 Main characteristics of SI design

3 Focus: Swarm Robotics

4 Focus: Particle Swarm Optimization (PSO)

Gianni A. Di Caro Swarm Intelligence 2 / 26

Page 3: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Swarm Intelligence (SI) in a nutshellSwarm Intelligence: a relatively novel research field that deals with collective behaviors that resultfrom the local interactions of individual components with each other and with their environment

1 Modeling: Study of collective behaviors in nature, such as nest building, foraging, and item sorting in insectsocieties, and swarming, flocking, herding, and schooling behaviors in vertebrates

2 Engineering: Bottom-up design of distributed systems that display forms of useful and/or interestingbehavior at the global level as a result of the actions of a number of units interacting with one another and withtheir environment at the local level. This design can get useful inspiration from Nature’s systems!

Applications: complex optimization problems, routing in networks, swarm robotics, . . .

Gianni A. Di Caro Swarm Intelligence 3 / 26

Page 4: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Acting as a swarm, not as an individual!

Social behavior pays back!

Many is better than one (right?)

Implicit and/or explicit cooperation is an (evolutionary) advantage

Acting as a unit is the key, here it is some compelling evidence!

https://www.youtube.com/watch?v=TWew0EqM7e4

Gianni A. Di Caro Swarm Intelligence 4 / 26

Page 5: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Swarm intelligence Manifesto

Gianni A. Di Caro Swarm Intelligence 5 / 26

Page 6: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Fish schooling

Gianni A. Di Caro Swarm Intelligence 6 / 26

Page 7: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Birds flocking in V-formation

Gianni A. Di Caro Swarm Intelligence 7 / 26

Page 8: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Termites’ nest

Gianni A. Di Caro Swarm Intelligence 8 / 26

Page 9: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Honeybee comb

Gianni A. Di Caro Swarm Intelligence 9 / 26

Page 10: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Cooperation in ant colonies

Ant chain Ant wall

Gianni A. Di Caro Swarm Intelligence 10 / 26

Page 11: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Wasps’ nest

Gianni A. Di Caro Swarm Intelligence 11 / 26

Page 12: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Ants, bees, and fishes and at work

Ants: leaf-cutting, breeding, chaining

Ants: Food catering

Ants: Learning the shortest path between food and nest

Ants: an agricultural and transportation system

Bees: waggle dance to recruit workers

Sardines: schooling and escaping predators

Gianni A. Di Caro Swarm Intelligence 12 / 26

Page 13: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Locusts, birds, and fireflies at work

Locusts: swarming and eating everything

Birds: Roosting

Fireflies: synchronized flashing

Gianni A. Di Caro Swarm Intelligence 13 / 26

Page 14: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

What do all these behaviors have in common?

Distributed society of autonomous individuals/agents

Control is fully distributed among the agents

Communications among the individuals are localized

Interaction rules and information processing seem to be simple: minimalist agentcapabilities and interaction protocols

System-level behaviors appear to transcend the behavioral repertoire of the singleagent

Deliberative and/or self-organizing cooperation is at work

Local information propagates in a multi-step fashion

The overall response of the system features:

RobustnessAdaptivity

Scalability

Swarm Intelligence design applies these same principles to obtain these sameobjectives as in Nature’s complex adaptive systems

Gianni A. Di Caro Swarm Intelligence 14 / 26

Page 15: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Bottom-up vs. Top-down design

Ontogenetic and phylogenetic evolution has (necessarily) followed a bottom-upapproach (grassroots) to design systems:

Instantiation of the basic units (atoms, cells, organs, organisms, individuals, . . . )composing the system and let them (self-)organize to generate more complex/organizedsystem-level behaviors and/or structures

Population + Interaction protocols are “more important” than the single modules

On the other hand, from an engineering point of view we can also choose atop-down approach:

Acquisition of comprehensive knowledge about the problem/system to deal with, analysis,decomposition, definition of a possibly optimal strategy

Gianni A. Di Caro Swarm Intelligence 15 / 26

Page 16: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Challenges of SI design

Given a task/problem to deal with, a number of design choices:1 Characteristics/skills of the agents

2 Size of the population (related to the choice 1.)

3 Neighborhood definition

4 Interaction protocols and information to exchange

5 Where the information is updated (agent, channel, environment)

6 Use or not of randomness (or, heuristic decisions)

7 Synchronous or asynchronous activities and interactions

8 . . .

Lots of parameters

Predictability and efficiency are important issues

Is a top-down approach better?

Gianni A. Di Caro Swarm Intelligence 16 / 26

Page 17: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

The philosopher’s stone of computing?

1 Create a large number of autonomous, minimalist units

2 Spread them in the environment and forget about them

3 Let them sensing and interacting locally

4 Let them exchange information and act cooperatively

5 They will (self-)adapt, (self-)learn, (self-)evolve, (self-)repair, (self-)organize . . .

6 They will create a fully autonomic system

7 They will do the job for us, adapting to changes in the environment, in the structure of the system, in the tasks. . .

This is the ultimate goal of swarm intelligence design!

Gianni A. Di Caro Swarm Intelligence 17 / 26

Page 18: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Taxonomy based on Neighborhood, Communication, & Mobility

Point-to-point: antennation, trophallaxis (food or liquid exchange), mandibularcontact, direct visual contact, chemical contact, hardwired direct connections(neurons, cells), unicast radio contact

Limited-range Broadcast: the signal propagates to some limited extent throughoutthe environment and/or is made available for a rather short time (e.g., use of lateralline in fishes to detect water waves), generic visual detection, radio broadcast

Indirect: two individuals interact indirectly when one of them modifies theenvironment and the other responds asynchronously to the modified environmentat a later time. This is called stigmergy [Grassé, 1959] (e.g., pheromonelaying/following, post-it, web)

Physical mobility: individuals autonomously move across the states of anembedding environment, such as connection topology changes over time (basedon neighborhood and communication capability), different areas of theenvironment are accessed in parallel, density and connectivity of the systemnetwork depend on time and space

Static positioning, state evolution: connection topology and environmentembedding do not change over time. It is the information that moves in multi-hopfashion. The internal state of an individual changes over time, and, as aconsequence, also it surrounding environment

Gianni A. Di Caro Swarm Intelligence 18 / 26

Page 19: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

SI algorithmic frameworks (and relatives)

Stigmergy, Mobility → Ant Algorithms and in particular to Ant Colony Optimization(ACO) [Dorigo & Di Caro, 1999], which is based on the shortest path finding abilitiesof ant colonies

Stigmergy → Cultural Algorithms [Reynolds, 1994], are population-basedalgorithms derived from processes of cultural evolution and exchange in societies

Broadcast-like, Mobility → Particle Swarm Optimization [Kennedy & Eberhart,2001], related to schooling and flocking behaviors

Point-to-point → Hopfield neural networks [Hopfield, 1982], derived from brain’sstructure and behavior

Point-to-point and neighbor broadcast → Cellular Automata [Wolfram, 1984],Gossip algorithms [Demers et al., 1987]

Different combinations of communication and mobility → Swarm robotics, AdaptiveRouting and Information Gossip in telecommunication networks

Genetic algorithms, Artificial immune systems, . . .

Gianni A. Di Caro Swarm Intelligence 19 / 26

Page 20: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

IDSIA research on the application of SI design principles

Swarm robotics: study of cooperation, interaction and self-organization in systems composed of many(relatively) simple robots

Combinatorial optimization: reverse-engineering of the pheromone-based shortest path finding behavior of antcolonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the VehicleRouting Problem (VRP) (both in academic and industrial contexts)

Network routing: application of the same behaviors from ant colonies to solve problems of data routing (i.e.,minimum length/delay paths) in dynamic telecommunication networks

Gianni A. Di Caro Swarm Intelligence 20 / 26

Page 21: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Self-assembly in homogeneous swarms

Swarm-bots project, EU-funded (2002-2005): self-assembly and cooperation inhomogeneous robotic swarms

http://www.youtube.com/watch?v=CJOubyiITsE

Gianni A. Di Caro Swarm Intelligence 21 / 26

Page 22: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Self-organization and cooperation in heterogeneous swarms

Swarmanoid project, EU-funded (2006-2010): communication, self-organization,and cooperation in heterogeneous swarms

http://www.youtube.com/watch?v=M2nn1X9Xlps

Gianni A. Di Caro Swarm Intelligence 22 / 26

Page 23: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Self-organized path finding

http://www.youtube.com/watch?v=Ghphiawt058

http://www.youtube.com/watch?v=hYhid0dcAtI

Gianni A. Di Caro Swarm Intelligence 23 / 26

Page 24: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Human-swarm interaction and cooperation

NCCR Robotics project, Swiss-funded (2011-2014): symbiotic peer-to-peerinteraction and cooperation between humans and robotic swarms

http://www.youtube.com/watch?v=kHpXEcYanvY

Gianni A. Di Caro Swarm Intelligence 24 / 26

Page 25: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Mixed swarms of humans, animals, and robots

SWARMIX project, Swiss-funded (2011-2014): cooperation and interaction in mixedswarms of humans, dogs, and robots for search and rescue missions

https://www.youtube.com/watch?v=C-ix2iBMoyY

Gianni A. Di Caro Swarm Intelligence 25 / 26

Page 26: Collective and Swarm Intelligence - Gianni Di Caro ...colonies to solve complex optimization problems such as the Traveling Salesman Problem (TSP) or the Vehicle Routing Problem (VRP)

Swarm-bots, swarmanoids, self-reconfiguration, crowds, . . .

The Swarmanoid systemhttp://www.youtube.com/watch?v=M2nn1X9Xlps

Swarming can be very scary for humans!http://www.youtube.com/watch?v=CJOubyiITsE

Morphogenesis: reshaping swarm structurehttp://www.youtube.com/watch?v=-G66iL__VdA

Another example of self-reconfiguring swarms, with human interactionhttp://www.youtube.com/watch?v=se318w2LXD0

The Smavnet project: flying like birdshttp://www.youtube.com/watch?v=pfYs5C8D4uk

Human crowd simulationshttp://www.youtube.com/watch?v=Hc6kng5A8lQ

Human-swarm interaction at IDSIAhttps://www.youtube.com/watch?v=Q9OOGf7YCOc

Gianni A. Di Caro Swarm Intelligence 26 / 26