1 / 32

Swarm Intelligence An Introduction

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)

luna
Télécharger la présentation

Swarm Intelligence An Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. 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

  3. 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.

  4. Examples from Nature • Honey Bee Swarm

  5. 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]

  6. 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]

  7. 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)

  8. Examples from Nature • Termite Colony:

  9. 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. 

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

  11. Examples from Nature • Crowd:

  12. 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.

  13. SI Algorithms • Ant Colony Optimization (ACO) • Particle Swarm Optimization (PCO)/PSO • Artificial Bee Colony (ABC)

  14. 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

  15. 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

  16. 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

  17. 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

  18. 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

  19. 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)

  20. DaemonActions • Used to implement larger actions that require more than one ant • Examples: • Perform a local search • Collection of global information

  21. 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

  22. 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

  23. 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.

  24. 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

  25. 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

  26. 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

  27. 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

  28. 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).

  29. Pseudo Code for ABC • Initialize population with random solutions. • Evaluate fitness of the population. • While (stopping criterion not met) //Forming new population. • Select sites for neighbourhood search. • 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.

  30. 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

  31. 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

  32. 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.

More Related