swarm intelligence an introduction

32
Swarm Intelligence An Introduction Applied Artificial Intelligence (Third Semester, ME in CSN/CIE) 1

Upload: luna

Post on 05-Jan-2016

31 views

Category:

Documents


2 download

DESCRIPTION

Swarm Intelligence An Introduction. Applied Artificial Intelligence (Third Semester, ME in CSN/CIE). What is Swarm?. A loosely structured collection of interacting agents Agents: Individuals that belong to a group (but are not necessarily identical) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Swarm Intelligence   An Introduction

Swarm Intelligence An Introduction

Applied Artificial Intelligence(Third Semester, ME in CSN/CIE)

1

Page 2: Swarm Intelligence   An Introduction

What is Swarm?• A loosely structured collection of interacting

agents– Agents:

• Individuals that belong to a group (but are not necessarily identical) • They contribute to and benefit from the group• They can recognize, communicate, and/or interact with each other

• The instinctive perception of swarms is a group of agents in motion – but that does not always have to be the case.

• A swarm is better understood if thought of as agents exhibiting a collective behavior

2

Page 3: Swarm Intelligence   An Introduction

• Swarm Intelligence (SI) is an Artificial Intelligence (AI) technique based on the collective behaviour in decentralized, self-organized systems.

• Generally made up of agents who interact with each other and the environment.

• No centralized control structures.• Based on group behaviour found in nature.

3

Page 4: Swarm Intelligence   An Introduction

Examples from Nature

• Honey Bee Swarm

4

Page 5: Swarm Intelligence   An Introduction

Honey Bee Swarm• And thy Lord taught the Bee to build its cells in hills, on

trees, and in (men’s) habitations; Then to eat of all the produce (of the earth), and find with skill the spacious paths of its Lord: there issues from within their bodies a drink of varying colors, wherein is healing for men: verily in this is a Sign for those who give thought” [Quran, 16, 68-69]

• "And your Lord revealed to the bee: 'Build dwellings in the mountains and the trees and also in the structures which men erect. Then eat from every kind of fruit and travel the paths of your Lord, which have been made easy for you to follow.' From inside them comes a drink of varying colors, containing healing for mankind. There is certainly a sign in that for people who reflect." [an-Nahl: 68-69]

5

Page 6: Swarm Intelligence   An Introduction

Examples from Nature

• Ant Colony: Until, when they came upon the valley of the ants, an ant said, “O ants, enter your homes so that you do not be crushed by Solomon and his soldiers while they do not feel it [Quran 27:18]

6

Page 7: Swarm Intelligence   An Introduction

Examples from Nature• Flocks of Birds: “Do they not look at the birds, held poised in the

midst of (the air and) the sky? Nothing holds them up but (the power of) Allah. Verily in this are Signs for those who believe.”

• Do they not observe the birds above them, spreading their wings and folding them in? None can uphold them except the Most Gracious: Truly it is He that watches over all things. (Verse 67:19)

7

Page 8: Swarm Intelligence   An Introduction

Examples from Nature

• Termite Colony:

8

Page 9: Swarm Intelligence   An Introduction

Examples from Nature• Immune System: "He is Supreme over His creatures, and He

appoints guards to protect you." [Quran 6:61]

Immune System is a group of cells, molecules, and organs that act together to defend the body against foreign invaders that may cause disease, such as bacteria, virus, and fungi.

9

Page 10: Swarm Intelligence   An Introduction

Examples from Nature

• Locusts: They will emerge from their graves with downcast eyes, like swarming locusts. (Qur'an, 54:7)

10

Page 11: Swarm Intelligence   An Introduction

Examples from Nature• Crowd:

11

Page 12: Swarm Intelligence   An Introduction

History • In the 1950s, scientists started to conduct research about how social

animals and insects such as bees, ants, termites, etc. are communicating and coordinating themselves.

• In 1973, “Actor Model” was developed by Carl Hewitt, Peter Bishop und Richard Steiger. The Actor model is a mathematical model of concurrent computation that treats "actors" as the universal primitives of concurrent digital computation: in response to a message that it receives, an actor can make local decisions, create more actors, send more messages, and determine how to respond to the next message received.

• In 1989, Beni and Wang in 1989 introduced Cellular Robotic Systems.• The concept of SI was expanded by Bonabeau, Dorigo, and Theraulaz

in 1999.

12

Page 13: Swarm Intelligence   An Introduction

SI Algorithms

• Ant Colony Optimization (ACO)• Particle Swarm Optimization (PCO)/PSO• Artificial Bee Colony (ABC)

13

Page 14: Swarm Intelligence   An Introduction

Ant Colony Optimization (ACO)

• The study of artificial systems modeled after the behavior of real ant colonies and are useful in solving discrete optimization problems

• Introduced in 1992 by Marco Dorigo – Originally called it the Ant System (AS)– Has been applied to

• Traveling Salesman Problem (and other shortest path problems)• Several NP-hard Problems

• It is a population-based metaheuristic used to find approximate solutions to difficult optimization problems

14

Page 15: Swarm Intelligence   An Introduction

What is Metaheuristic?

• A metaheuristic refers to a master strategy that guides and modifies other heuristics to produce solutions beyond those that are normally generated in a quest for local optimality.

• Or more simply:– It is a set of algorithms used to define heuristic

methods that can be used for a large set of problems

15

Page 16: Swarm Intelligence   An Introduction

Artificial Ant

• A set of software agents• Stochastic• Based on the pheromone model– Pheromones are used by real ants to mark paths.

Ants follow these paths (i.e., trail-following behaviors)

• Incrementally build solutions by moving on a graph

• Constraints of the problem are built into the heuristics of the ants

16

Page 17: Swarm Intelligence   An Introduction

Using ACO• The optimization problem must be written in the

form of a path finding problem with a weighted graph

• The artificial ants search for “good” solutions by moving on the graph– Ants can also build infeasible solutions – which could

be helpful in solving some optimization problems• The metaheuristic is constructed using three

procedures:– ConstructAntsSolutions– UpdatePheromones– DaemonActions

17

Page 18: Swarm Intelligence   An Introduction

ConstructAntsSolutions

• Manages the colony of ants• Ants move to neighboring nodes of the graph• Moves are determined by stochastic local

decision policies based on pheromone tails and heuristic information

• Evaluates the current partial solution to determine the quantity of pheromones the ants should deposit at a given node

18

Page 19: Swarm Intelligence   An Introduction

UpdatePheromones• Process for modifying the pheromone trails• Modified by– Increase

• Ants deposit pheromones on the nodes (or the edges)

– Decrease• Ants don’t replace the pheromones and they evaporate

• Increasing the pheromones increases the probability of paths being used (i.e., building the solution)

• Decreasing the pheromones decreases the probability of the paths being used (i.e., forgetting)

19

Page 20: Swarm Intelligence   An Introduction

DaemonActions• Used to implement larger actions that require

more than one ant• Examples:– Perform a local search– Collection of global information

20

Page 21: Swarm Intelligence   An Introduction

Particle Swarm Optimization (PSO)

• A population based stochastic optimization technique

• Searches for an optimal solution in the computable search space

• Developed in 1995 by Eberhart and Kennedy• Inspiration: Swarms of Bees, Flocks of Birds,

Schools of Fish

21

Page 22: Swarm Intelligence   An Introduction

More on PSO• In PSO individuals strive to improve

themselves and often achieve this by observing and imitating their neighbors

• Each PSO individual has the ability to remember

• PSO has simple algorithms and low overhead– Making it more popular in some circumstances

than Genetic/Evolutionary Algorithms– Has only one operation calculation:

• Velocity: a vector of numbers that are added to the position coordinates to move an individual

22

Page 23: Swarm Intelligence   An Introduction

Psychological System in PSO

• A psychological system can be thought of as an “information-processing” function

• You can measure psychological systems by identifying points in psychological space

• Usually the psychological space is considered to be multidimensional.

23

Page 24: Swarm Intelligence   An Introduction

Philosophical Leaps” Required

• Individual minds = a point in space• Multiple individuals can be plotted in a set of

coordinates• Measuring the individuals result in a

“population of points”• Individuals near each other imply that they

are similar• Some areas of space are better than others

24

Page 25: Swarm Intelligence   An Introduction

Applying Social Psychology

• Individuals (points) tend to – Move towards each other– Influence each other– Why?

• Individuals want to be in agreement with their neighbors

• Individuals (points) are influenced by:– Their previous actions/behaviors– The success achieved by their neighbors

25

Page 26: Swarm Intelligence   An Introduction

WHAT HAPPENS IN PSO

• Individuals in a population learn from previous experiences and the experiences of those around them– The direction of movement is a function of:• Current position• Velocity (or in some models, probability)• Location of individuals “best” success• Location of neighbors “best” successes

• Therefore, each individual in a population will gradually move towards the “better” areas of the problem space

• Hence, the overall population moves towards “better” areas of the problem space

26

Page 27: Swarm Intelligence   An Introduction

Performance of the PSO Algorithm Relies on selecting several parameters correctly Parameters:

Constriction factor Used to control the convergence properties of a PSO

Inertia weight How much of the velocity should be retained from previous

steps Cognitive parameter

The individual’s “best” success so far Social parameter

Neighbors’ “best” successes so far Vmax

Maximum velocity along any dimension

27

Page 28: Swarm Intelligence   An Introduction

Artificial Bee Colony Algorithm (ABC)• This is a population based search algorithm first developed in

2005.• It mimics the food foraging behaviour of honey bees.• A colony of honey bees can extend itself over long distances (up

to 14 km) and in multiple directions simultaneously to exploit a large number of food sources. A colony prospers by deploying its foragers to good fields. In principle, flower patches with plentiful amounts of nectar or pollen that can be collected with less effort should be visited by more bees, whereas patches with less nectar or pollen should receive fewer bees.

• Colony Communication contains three pieces of information regarding a flower patch:1. The direction in which it will be found 2. Its distance from the hive 3.

Its quality rating (fitness).

28

Page 29: Swarm Intelligence   An Introduction

Pseudo Code for ABC1. Initialize population with random solutions.2. Evaluate fitness of the population. 3. While (stopping criterion not met) //Forming new

population.4. Select sites for neighbourhood search. 5. Recruit bees for selected sites (more bees for best sites) and evaluate fitnesses. 6. Select the fittest bee from each patch. 7. Assign remaining bees to search randomly and evaluate their fitnesses. 8. End While.

29

Page 30: Swarm Intelligence   An Introduction

Advantages of SI

• The systems are scalable because the same control architecture can be applied to a couple of agents or thousands of agents

• The systems are flexible because agents can be easily added or removed without influencing the structure

• The systems are robust because agents are simple in design, the reliance on individual agents is small, and failure of a single agents has little impact on the system’s performance

• The systems are able to adapt to new situations easily

30

Page 31: Swarm Intelligence   An Introduction

Recent Developments in SI Applications• U.S. Military is applying SI techniques to

control of unmanned vehicles• NASA is applying SI techniques for planetary

mapping• Medical Research is trying SI based controls

for nanobots to fight cancer• SI techniques are applied to load balancing in

telecommunication networks• Entertainment industry is applying SI

techniques for battle and crowd scenes

31

Page 32: Swarm Intelligence   An Introduction

Assignment

• Write a technical report on the applicability of Swarm intelligence in the following areas:– Data Mining– Intelligent Robots– Routing– Movies/Entertainment Industry– Parameter Optimization– Protection/Security Systems– Applications of ABC algorithm

• Your report should include a comprehensive literature review with a list of references.

32