SlideShare a Scribd company logo
KohonAnts: A Self-Organizing Ant Algorithm for Clustering and Pattern Classification Antonio M. Mora , C.M. Fernandes, J.J. Merelo, J.L.J. Laredo Dpto. ATC. UNIVERSITY OF GRANADA (Spain) V. Ramos, A.C. Rosa LASEEB-ISR/IST. UNIVERSITY OF LISBON (Portugal) ALIFE XI
INDEX Ant Algorithms Kohonen’s Self Organizing Maps KohonAnts Experiments and Results Conclusions and Future Work ALIFE XI
Ant Algorithms Natural Ants ALIFE XI Ants live in colonies and  cooperate  searching for the benefit of the colony instead of their own. Ants  move following (smelling) and depositing  a chemical substance known as  pheromone  (which is also evaporated). This ‘comunication’ method is known as  stigmergy . They  can find the shortest path  between their nest and the food location. They  build clusters  with their larvae and also with their dead bodies.
Ant Algorithms Main Features ALIFE XI There are  many agents  called (artificial)  ants . All of them  move in a graph following and depositing  (artificial)  pheromone . They  cooperate to find a solution  (usually every ant yields a complete solution). There are  some formulae applied  in the running: state transition rule     decides the next step for each ant pheromone updating     contribution and evaporation evaluation function     assigns the cost to every solution
Ant Algorithms Ant System Model ALIFE XI Introduced by Chialvo and Millonas in 1995. Ants move in a grid . Each one is represented by its position  r , and orientation to move   . They decide where to move without consider their previous movements. They apply the so-called  response function , which depends on 3 parameters:       pheromone density of the cell       degree of randomness with which an ant follow the gradient of pheromone       factor of ant’s ability to sense pheromone
Kohonen’s SOM It is an  unsupervised  Artificial Neural Network. There is only an input and an output layer. There is a  Competitive learning  (only one neuron is activated for an input pattern). It Maps  high-dimensional data  into a  two-dimensional representation  space (usually rectangular or hexagonal grid). After training phase,  neurons with similar weights  tend to  cluster on the map . Main Features ALIFE XI
Kohonen’s SOM N  neurons in the input layer,  M  neurons in the output layer. Each input neuron is connected with all the output ones. Every input sample is associated to an input neuron. Each neuron of the output layer has associated a weight vector  Wj , as the same dimension as the  input data. General Structure ALIFE XI
Kohonen’s SOM For each  input pattern/sample , the  most similar neuron  (considering its weight vector),  and its neighbours , are activated. Working ALIFE XI The  weight vector  of every one of these neurons is  updated to be closer to the input  values. The  SOM evolves , ‘moving’ the neurons  in order to fit to the input space  (of samples).
KohonAnts Presentation ALIFE XI It  merges Ant System with Kohonen’s SOM  concepts. It is a  clustering and classification  algorithm. * * INPUT SAMPLES Each  input sample  (vector of variables) is  associated to an ant . They  move in a  toroidal  grid  which has a  vector  (of the same  dimension)  associated to each cell ( pheromone ) .
KohonAnts Working ALIFE XI Initialization Decide Where to Go For each Ant: Pheromone Update Pheromone  Evaporation END Stop criteria  is TRUE No more Ants Stop criteria  is FALSE
KohonAnts Main Functions (I) ALIFE XI Decide Where to Go every  ant evaluates its neighbourhood  (similar to SOM) to find the cell where move to. A  probability is associated to every cell . the  probability  of each cell  depends on the euclidean distance between the ant vector and the centroid  of a zone surrounding the cell. o o o o yellow circle is the neighbourhood (all possible cells to move) with radius = 2. green circles are areas to calculate centroid (marked with ’o’). the centroid is the arithmetic mean of the vectors inside the circle. So,  every ant moves with higher probability to cells surrounded by vectors similar to its own .
KohonAnts Main Functions (II) ALIFE XI Pheromone Update once an  ant chooses   the cell to move to  (inside its neighbourhood), it updates the vector of that cell and  makes it closer to its own vector . it applies a formula similar to the learning function of SOM, so  it depends on a learning rate   . Pheromone Evaporation once all the ants have moved,  the pheromone tends to disappear  (the vectors revert to its initial values). it uses a formula similar to the evaporation function of Ant Algorithms, which  depends on an evaporation rate   .
KohonAnts Key Features ALIFE XI The  neighbourhood radius and the learning rate decreases with the iterations  (as in SOM). It  means  big changes at the beginning ( clustering ) and small changes the rest of the running ( refinement ). An  ant can  ‘jump’ or ‘fly’, since it can  move to cells far than one hop . The  pheromone changes the grid  (environment) and makes it closer to the ant’s vector (input pattern/sample). The  ants tend to form clusters  near other similar ants (similar vectors). The  environment  (the grid) also ‘evolves’ and  can be used as a classification tool .
Experiments Datasets ALIFE XI IRIS data of  3 species  of Iris plant,  50 samples of each  class, and  4 variables  per sample (flower attributes). GLASS data of  6 classes  of glass,  214 samples  in total, and  9 variables  per sample (chemical composition). PIMA data of  2 classes  of diabetes patients,  768 samples , and  8 variables  per sample (medical data).
Experiments Clustering (Study) ALIFE XI performed over  IRIS plants dataset  (150 samples, 3 classes) it shows ants’ final position in the grid after 100 iterations a clear  line of behaviour  can be marked  depending on    and     it can be seen that  clear clusters are formed  for some values of these parameters
Experiments Clustering (Results) ALIFE XI performed over  IRIS plants dataset  (150 samples, 3 classes) it shows the evolution of the clusters of ants in a  few iterations, some clusters appear then, they are improved/refined in the following iterations Initial situation Iteration 10 Iteration 40 Iteration 100
Experiments Classification ALIFE XI example performed over  IRIS plants dataset  (150 samples, 3 classes) this is the  final situation of the grid  pheromone. Each cell is associated to a class we apply the KNN method to classify, so the class associated to a sample is the correspondent to the (majority) of the K closest vectors (of the grid)
Experiments Classification (Results) ALIFE XI Every dataset has been transformed into 6: 3 of 50% training/50% test 3 of 90% training/10% test The  results beat the classical KNN  method In recent works  also beat  other methods such as  Neural Networks, Fuzzy Logic, Linear Discriminant Analysis …
Conclusions And Future Wok ALIFE XI We have presented a  new algorithm which combines  ideas of two soft-computing methods such as  Kohonen’s Self-Organizing Maps and Ant System Model . It can be used as a  clustering and  as a  pattern classification  method. The preliminary  results  yielded are  very promising and beat some other techniques . FUTURE WORK : Make a comparison with some clustering algorithms and with other classification ones. Try more difficult problems. Implement and test some other ideas used in SOMs  and AS which may be improve the algorithm. Such a neighbourhood updating, a stop criteria or weights  in the  decide where to go  function.
Thank You! ALIFE XI The sources, bin and data can be found in: https://forja.rediris.es/websvn/wsvn/geneura/KohonAnts/

More Related Content

PPTX
Ant colony optimization
PPT
Ant Colony Algorithm
PPT
Ant colony optimization
PPT
Ant colony optimization
PPT
PPTX
Ant Colony Optimization for Load Balancing in Cloud
PPT
Ant Colony Optimization presentation
PDF
Classification with ant colony optimization
Ant colony optimization
Ant Colony Algorithm
Ant colony optimization
Ant colony optimization
Ant Colony Optimization for Load Balancing in Cloud
Ant Colony Optimization presentation
Classification with ant colony optimization

What's hot (19)

PDF
Swarm Intelligence: An Application of Ant Colony Optimization
PPTX
Final project
PDF
Ant Colony Optimization
PPTX
ant colony algorithm
PPT
Ant Colony Optimization - ACO
PPT
Lecture 9 aco
PDF
Ant colony optimization based routing algorithm in various wireless sensor ne...
PPTX
Ant colony algorithm
PPTX
Ant Colony Optimization (ACO)
PPTX
Ant colony optimization
PPTX
ant colony optimization
PPTX
Ant Colony Optimization
PPT
Ant colony Optimization
PPT
Ant colony optimization
PPS
hCHAC Lambda (NICSO 2010)
PPTX
Optimization by Ant Colony Method
PPTX
Ant colony optimization (aco)
PPT
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
PDF
Ant colony optimization
Swarm Intelligence: An Application of Ant Colony Optimization
Final project
Ant Colony Optimization
ant colony algorithm
Ant Colony Optimization - ACO
Lecture 9 aco
Ant colony optimization based routing algorithm in various wireless sensor ne...
Ant colony algorithm
Ant Colony Optimization (ACO)
Ant colony optimization
ant colony optimization
Ant Colony Optimization
Ant colony Optimization
Ant colony optimization
hCHAC Lambda (NICSO 2010)
Optimization by Ant Colony Method
Ant colony optimization (aco)
Optimization techniques: Ant Colony Optimization: Bee Colony Optimization: Tr...
Ant colony optimization
Ad

Viewers also liked (9)

PDF
Migration study on a Pareto-based island model for MOACOs
PPS
A Study of Parallel Approaches in MOACOs for solving the Bicriteria TSP
PPT
Sefl Organizing Map
PDF
Neural Networks: Self-Organizing Maps (SOM)
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPTX
Kohonen self organizing maps
PDF
Self-organizing maps - Tutorial
PDF
Artificial neural networks
PPTX
Artificial neural network
Migration study on a Pareto-based island model for MOACOs
A Study of Parallel Approaches in MOACOs for solving the Bicriteria TSP
Sefl Organizing Map
Neural Networks: Self-Organizing Maps (SOM)
Particle Swarm Optimization: The Algorithm and Its Applications
Kohonen self organizing maps
Self-organizing maps - Tutorial
Artificial neural networks
Artificial neural network
Ad

More from Antonio Mora (20)

PDF
Study on Genetic Algorithm Approaches to Improve an Autonomous Agent for a Fi...
PDF
Optimización Adaptativa basada en Colonias de Hormigas para la Composición de...
PDF
Adaptive Ant Colony Optimization for Service Function Chaining in a Dynamic 5...
PDF
Research in Videogames. (Much) further than just AI
PDF
GRETIVE: Un Bot Evolutivo para HearthStone basado en Perfiles
PDF
Improving the Performance of MCTS-Based μRTS Agents Through Move Pruning
PDF
Testing hybrid computational intelligence algorithms for general game playing...
PDF
Checking the difficulty of evolutionary-generated maps in a N-Body inspired m...
PDF
Applying Ant Colony Optimization for Service Function Chaining in a 5G Networ...
PDF
Investigación en videojuegos. (mucho) Mas allá de la IA
PDF
Beating uncertainty in racing bot evolution through enhanced exploration and ...
PDF
Inteligencia Computacional en Videojuegos (Meetup GranadAI 2019)
PDF
Free Form Evolution for Angry Birds Level Generation
PDF
Ciencia y Videojuegos (ULP 2019)
PDF
The Evolutionary Race: Improving the Process of Evaluating Car Controllers in...
PDF
Predicción de Quiebra Financiera de Empresas Mediante Equilibrado de Datos y ...
PDF
Driving in TORCS using modular fuzzy controllers - Poster - EvoGAMES 2017
PDF
Sólo puede quedar uno: Evolución de Bots para RTS basada en supervivencia
PDF
Living-UGR: Una aventura gráfica geolocalizada para difundir el patrimonio de...
PDF
Gamification in Teaching - How to motivate students through games
Study on Genetic Algorithm Approaches to Improve an Autonomous Agent for a Fi...
Optimización Adaptativa basada en Colonias de Hormigas para la Composición de...
Adaptive Ant Colony Optimization for Service Function Chaining in a Dynamic 5...
Research in Videogames. (Much) further than just AI
GRETIVE: Un Bot Evolutivo para HearthStone basado en Perfiles
Improving the Performance of MCTS-Based μRTS Agents Through Move Pruning
Testing hybrid computational intelligence algorithms for general game playing...
Checking the difficulty of evolutionary-generated maps in a N-Body inspired m...
Applying Ant Colony Optimization for Service Function Chaining in a 5G Networ...
Investigación en videojuegos. (mucho) Mas allá de la IA
Beating uncertainty in racing bot evolution through enhanced exploration and ...
Inteligencia Computacional en Videojuegos (Meetup GranadAI 2019)
Free Form Evolution for Angry Birds Level Generation
Ciencia y Videojuegos (ULP 2019)
The Evolutionary Race: Improving the Process of Evaluating Car Controllers in...
Predicción de Quiebra Financiera de Empresas Mediante Equilibrado de Datos y ...
Driving in TORCS using modular fuzzy controllers - Poster - EvoGAMES 2017
Sólo puede quedar uno: Evolución de Bots para RTS basada en supervivencia
Living-UGR: Una aventura gráfica geolocalizada para difundir el patrimonio de...
Gamification in Teaching - How to motivate students through games

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Machine Learning_overview_presentation.pptx
Empathic Computing: Creating Shared Understanding
Advanced methodologies resolving dimensionality complications for autism neur...
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Programs and apps: productivity, graphics, security and other tools
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
sap open course for s4hana steps from ECC to s4
Encapsulation_ Review paper, used for researhc scholars
Assigned Numbers - 2025 - Bluetooth® Document
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

KohonAnts: A Self-Organizing Ant Algorithm for Clustering and Pattern Classification

  • 1. KohonAnts: A Self-Organizing Ant Algorithm for Clustering and Pattern Classification Antonio M. Mora , C.M. Fernandes, J.J. Merelo, J.L.J. Laredo Dpto. ATC. UNIVERSITY OF GRANADA (Spain) V. Ramos, A.C. Rosa LASEEB-ISR/IST. UNIVERSITY OF LISBON (Portugal) ALIFE XI
  • 2. INDEX Ant Algorithms Kohonen’s Self Organizing Maps KohonAnts Experiments and Results Conclusions and Future Work ALIFE XI
  • 3. Ant Algorithms Natural Ants ALIFE XI Ants live in colonies and cooperate searching for the benefit of the colony instead of their own. Ants move following (smelling) and depositing a chemical substance known as pheromone (which is also evaporated). This ‘comunication’ method is known as stigmergy . They can find the shortest path between their nest and the food location. They build clusters with their larvae and also with their dead bodies.
  • 4. Ant Algorithms Main Features ALIFE XI There are many agents called (artificial) ants . All of them move in a graph following and depositing (artificial) pheromone . They cooperate to find a solution (usually every ant yields a complete solution). There are some formulae applied in the running: state transition rule  decides the next step for each ant pheromone updating  contribution and evaporation evaluation function  assigns the cost to every solution
  • 5. Ant Algorithms Ant System Model ALIFE XI Introduced by Chialvo and Millonas in 1995. Ants move in a grid . Each one is represented by its position r , and orientation to move  . They decide where to move without consider their previous movements. They apply the so-called response function , which depends on 3 parameters:   pheromone density of the cell   degree of randomness with which an ant follow the gradient of pheromone   factor of ant’s ability to sense pheromone
  • 6. Kohonen’s SOM It is an unsupervised Artificial Neural Network. There is only an input and an output layer. There is a Competitive learning (only one neuron is activated for an input pattern). It Maps high-dimensional data into a two-dimensional representation space (usually rectangular or hexagonal grid). After training phase, neurons with similar weights tend to cluster on the map . Main Features ALIFE XI
  • 7. Kohonen’s SOM N neurons in the input layer, M neurons in the output layer. Each input neuron is connected with all the output ones. Every input sample is associated to an input neuron. Each neuron of the output layer has associated a weight vector Wj , as the same dimension as the input data. General Structure ALIFE XI
  • 8. Kohonen’s SOM For each input pattern/sample , the most similar neuron (considering its weight vector), and its neighbours , are activated. Working ALIFE XI The weight vector of every one of these neurons is updated to be closer to the input values. The SOM evolves , ‘moving’ the neurons in order to fit to the input space (of samples).
  • 9. KohonAnts Presentation ALIFE XI It merges Ant System with Kohonen’s SOM concepts. It is a clustering and classification algorithm. * * INPUT SAMPLES Each input sample (vector of variables) is associated to an ant . They move in a toroidal grid which has a vector (of the same dimension) associated to each cell ( pheromone ) .
  • 10. KohonAnts Working ALIFE XI Initialization Decide Where to Go For each Ant: Pheromone Update Pheromone Evaporation END Stop criteria is TRUE No more Ants Stop criteria is FALSE
  • 11. KohonAnts Main Functions (I) ALIFE XI Decide Where to Go every ant evaluates its neighbourhood (similar to SOM) to find the cell where move to. A probability is associated to every cell . the probability of each cell depends on the euclidean distance between the ant vector and the centroid of a zone surrounding the cell. o o o o yellow circle is the neighbourhood (all possible cells to move) with radius = 2. green circles are areas to calculate centroid (marked with ’o’). the centroid is the arithmetic mean of the vectors inside the circle. So, every ant moves with higher probability to cells surrounded by vectors similar to its own .
  • 12. KohonAnts Main Functions (II) ALIFE XI Pheromone Update once an ant chooses the cell to move to (inside its neighbourhood), it updates the vector of that cell and makes it closer to its own vector . it applies a formula similar to the learning function of SOM, so it depends on a learning rate  . Pheromone Evaporation once all the ants have moved, the pheromone tends to disappear (the vectors revert to its initial values). it uses a formula similar to the evaporation function of Ant Algorithms, which depends on an evaporation rate  .
  • 13. KohonAnts Key Features ALIFE XI The neighbourhood radius and the learning rate decreases with the iterations (as in SOM). It means big changes at the beginning ( clustering ) and small changes the rest of the running ( refinement ). An ant can ‘jump’ or ‘fly’, since it can move to cells far than one hop . The pheromone changes the grid (environment) and makes it closer to the ant’s vector (input pattern/sample). The ants tend to form clusters near other similar ants (similar vectors). The environment (the grid) also ‘evolves’ and can be used as a classification tool .
  • 14. Experiments Datasets ALIFE XI IRIS data of 3 species of Iris plant, 50 samples of each class, and 4 variables per sample (flower attributes). GLASS data of 6 classes of glass, 214 samples in total, and 9 variables per sample (chemical composition). PIMA data of 2 classes of diabetes patients, 768 samples , and 8 variables per sample (medical data).
  • 15. Experiments Clustering (Study) ALIFE XI performed over IRIS plants dataset (150 samples, 3 classes) it shows ants’ final position in the grid after 100 iterations a clear line of behaviour can be marked depending on  and  it can be seen that clear clusters are formed for some values of these parameters
  • 16. Experiments Clustering (Results) ALIFE XI performed over IRIS plants dataset (150 samples, 3 classes) it shows the evolution of the clusters of ants in a few iterations, some clusters appear then, they are improved/refined in the following iterations Initial situation Iteration 10 Iteration 40 Iteration 100
  • 17. Experiments Classification ALIFE XI example performed over IRIS plants dataset (150 samples, 3 classes) this is the final situation of the grid pheromone. Each cell is associated to a class we apply the KNN method to classify, so the class associated to a sample is the correspondent to the (majority) of the K closest vectors (of the grid)
  • 18. Experiments Classification (Results) ALIFE XI Every dataset has been transformed into 6: 3 of 50% training/50% test 3 of 90% training/10% test The results beat the classical KNN method In recent works also beat other methods such as Neural Networks, Fuzzy Logic, Linear Discriminant Analysis …
  • 19. Conclusions And Future Wok ALIFE XI We have presented a new algorithm which combines ideas of two soft-computing methods such as Kohonen’s Self-Organizing Maps and Ant System Model . It can be used as a clustering and as a pattern classification method. The preliminary results yielded are very promising and beat some other techniques . FUTURE WORK : Make a comparison with some clustering algorithms and with other classification ones. Try more difficult problems. Implement and test some other ideas used in SOMs and AS which may be improve the algorithm. Such a neighbourhood updating, a stop criteria or weights in the decide where to go function.
  • 20. Thank You! ALIFE XI The sources, bin and data can be found in: https://forja.rediris.es/websvn/wsvn/geneura/KohonAnts/