SlideShare a Scribd company logo
1 of 22
BAT ALGORITHM
Introduction
What is echolocation ?
• After hitting and reflecting, the bats transform their own pulse into
useful information to explore how far away the prey is.
• The pulse rate can be simply determined in the range from 0 to 1,
where 0 means that there is no emission and 1 means that the bat’s
emitting is their maximum.
• Bat sends signal with frequency f.
• Echo signal used to calculate the distance.
B
C1
C2
C3
B
C1
C2
C3
Frequency
Frequency
S1
S2
S3
IDEALIZED RULES FOR BAT ALGORITHM
• All bats use echolocation to sense distance and they know the
difference between food/prey.
• velocity “vi”
• at position “Xi”
• with a fixed frequency “f” min ,
• varying wavelength λ
• and loudness A0 to search for prey.
• They can automatically adjust the wavelength of their emitted pulses
and adjust the rate of pulse emission r[0,1], depending on the
proximity of the target.
velocity “vi”
position “Xi”
frequency “fmin”
wavelength λ
loudness A0
Algorithm: Bat Algorithm
• 1. Initialize Bat population: Xi (i = 1, 2, ..., n)
• 2. Define frequency Fi and velocity Vi
• 3. Initialize pulse rates ri and the loudness Ai
• 4. while t< Maximum iterations do
• 5. update frequency and velocity
• 6. Calculate transfer function values using Equation (4)
• 7. Update Vi, Xi, and Fi using Equations 5 to 7
• 8. if (rand >ri ) then
• 9. Select the global best solution (Gbest) among the available best solutions and with the available Gbest
dimensions modify the dimensions of Xi randomly.
• 10. end
• 11. Generate new solution randomly Equation (8)
• 12. if ((rand <Ai) and (F(Xi)<F(Gbest))then
• 13. Accept the new solutions increase ri and reduce Ai using Equations (9 to 10)
• 14. end
• 15. Find the current Gbest and Rank the best
• 16. end
MATHEMATICAL EQUATIONS
• Generating new solutions is performed by moving virtual bats
according to the following equations:
• 𝑓𝑖 = 𝑓 𝑚𝑖𝑛 + 𝑓𝑚𝑎𝑥 − 𝑓 𝑚𝑖𝑛 𝛽
• 𝑣𝑖
𝑡
= 𝑣𝑖
𝑡−1
+ (𝑥𝑖
𝑡
− 𝑥∗) 𝑓𝑖
• 𝑥𝑖
𝑡
= 𝑥𝑖
𝑡−1
+ 𝑣𝑖
𝑡
• Where βЄ[0,1] is a random vector drawn from a uniform distribution.
• X* is the current global best location (solution) which is located after
comparing all the solutions among all the bats.
MATHEMATICAL EQUATIONS
• The current best solution according to the equation:
• where δ Є[-1,1] is a random number, while At is the average loudness
of all the best at this time step.
𝑥 𝑛𝑒𝑤 = 𝑥 𝑜𝑙𝑑 +𝛿𝐴 𝑡
MATHEMATICAL EQUATIONS
• The loudness can be chosen as any value of convenience as the
loudness usually decreases once a bat has found its prey, while the rate
of pulse emission increases.
LOUDNESS AND PULSE EMISSION VS ITERARION
𝐴𝑖
𝑡+1
=∝ 𝐴𝑖
𝑡
𝑟𝑖
𝑡+1
= 𝑟𝑖
0
[1-exp(-𝛾t)]
FLOW CHART
EXAMPLE – SEGMENTATION
• The multilevel threshold problem can be configured as a k-
dimensional optimization problem for optimal thresholds [t1,t2,…tk]
which optimizes an objective function.
• The objective function is determined from the histogram of the image,
denoted as h(i), i = 0,1,2,…L-1, where h(i) represents the number of
pixels having the gray level i.
EXAMPLE – SEGMENTATION
• L gray levels in a given image I having M pixels and these gray levels
are in the range {0,1,…L-1}.
• The normalized probability at level i is defined by the ratio:
pi = h(i)/M
ADVANCEMENTS
• Multi objective bat algorithm (MOBA).
• Fuzzy logic bat algorithm (FLBA).
• Binary bat algorithm (BBA).
Algorithm 2: Binary Bat Algorithm
• 1. Initialize Bat population: Xi (i = 1, 2, ..., n) rand(0 or 1) and Vi= 0
• 2. Define pulse frequency Fi
• 3. Initialize pulse rates ri and the loudness Ai
• 4. whilet < Maximum iterations do
• 5. update velocities and adjust frequencies
• 6. Using Equation (11) Calculate transfer function value
• 7. Using Equation (12) update Xi
• 8. if (rand >ri ) then
• 9. Select the global best solution (Gbest) among the available best solutions and with the available Gbest
dimensions modify the dimensions of Xi randomly
• 10. end
• 11. Generate new solution randomly
• 12. if ((rand <Ai) and (F(Xi)<F(Gbest))then
• 13. Accept the new solutions increase ri and reduce Ai using Equations (9 to 10)
• 14. end
• 15. Find the current Gbest and Rank the best
• 16. end
COMPARATIVE ANALYSIS
ALGORITHM BASED ON DEFINED BY FEATURES AREA OF
APPLICATION
BAT Echo location
behavior of bat
Pulse rate emission
and loudness
Accurate and
efficient
Engineering design
and classification
FIREFLY Flashing behavior of
firefly
Brightness and
attractiveness
Finds a good solution
in less number
Digital image
processing
CUCKOO SEARCH Brooding of cuckoo Color of eggs Simple
implementation
Nano technology
WHY BAT ALGORITHM IS
BETTER?
1. Automatic zooming.
2. Parameter control.
3. Frequency tuning.
4. More number of solutions.
ADVANTAGES OF BAT
• Solve a wide range of problems and highly non-linear problems
efficiently.
• It gives promising optimal solutions.
• The loudness and the pulse emission rates essentially provides a
mechanism for automatic control and auto-zooming into region.
• Number of solutions increases in the library and so more accurate
options are available.
IMPROVEMENTS REQUIRED
• Bat algorithm converge quickly at the early stage and then the
convergence rate slows down.
• There is no mathematical analysis to link the parameters with
convergence rates.
• It is not clear what the best values are for most application.
Thank You
Questions ?

More Related Content

What's hot

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimizationvk1dadhich
 
Artificial bee colony algorithm
Artificial bee colony algorithmArtificial bee colony algorithm
Artificial bee colony algorithmSatyasis Mishra
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationHanya Mohammed
 
Artificial Bee Colony: An introduction
Artificial Bee Colony: An introductionArtificial Bee Colony: An introduction
Artificial Bee Colony: An introductionAdel Rahimi
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemjayatra
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationSuman Chatterjee
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsMustafa Salam
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingAmr E. Mohamed
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)quadmemo
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithmAhmed Fouad Ali
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm OptimizationStelios Petrakis
 
Cuckoo search final
Cuckoo search finalCuckoo search final
Cuckoo search finalNepalAdz
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization pptAnuja Joshi
 
ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.N Vinayak
 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeRajorshi Mukherjee
 

What's hot (20)

Ant colony optimization
Ant colony optimizationAnt colony optimization
Ant colony optimization
 
Artificial bee colony algorithm
Artificial bee colony algorithmArtificial bee colony algorithm
Artificial bee colony algorithm
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Bat Algorithm_Basics
Bat Algorithm_BasicsBat Algorithm_Basics
Bat Algorithm_Basics
 
Artificial Bee Colony: An introduction
Artificial Bee Colony: An introductionArtificial Bee Colony: An introduction
Artificial Bee Colony: An introduction
 
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problemShow ant-colony-optimization-for-solving-the-traveling-salesman-problem
Show ant-colony-optimization-for-solving-the-traveling-salesman-problem
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Cuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly AlgorithmsCuckoo Search & Firefly Algorithms
Cuckoo Search & Firefly Algorithms
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Metaheuristics
MetaheuristicsMetaheuristics
Metaheuristics
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
 
Artificial Bee Colony algorithm
Artificial Bee Colony algorithmArtificial Bee Colony algorithm
Artificial Bee Colony algorithm
 
Particle Swarm Optimization
Particle Swarm OptimizationParticle Swarm Optimization
Particle Swarm Optimization
 
Cuckoo search final
Cuckoo search finalCuckoo search final
Cuckoo search final
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.
 
Particle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi MukherjeeParticle Swarm Optimization by Rajorshi Mukherjee
Particle Swarm Optimization by Rajorshi Mukherjee
 

Similar to Bat algorithm

batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxgopikahari7
 
batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxgopikahari7
 
batalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptxbatalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptxgopikahari7
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat AlgorithmXin-She Yang
 
Pulse amplitude modulation
Pulse amplitude modulationPulse amplitude modulation
Pulse amplitude modulationVishal kakade
 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with NotesLeon Nguyen
 
C1. probability distribution
C1. probability distributionC1. probability distribution
C1. probability distributionAnkita Darji
 
Instrumental lecture 2
Instrumental lecture 2Instrumental lecture 2
Instrumental lecture 2esmail_alwrafi
 
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4StanfordComputationalImaging
 
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
Feasibility of EEG Super-Resolution Using Deep Convolutional NetworksFeasibility of EEG Super-Resolution Using Deep Convolutional Networks
Feasibility of EEG Super-Resolution Using Deep Convolutional NetworksSangjun Han
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing ssuser2797e4
 
Schelkunoff Polynomial Method for Antenna Synthesis
Schelkunoff Polynomial Method for Antenna SynthesisSchelkunoff Polynomial Method for Antenna Synthesis
Schelkunoff Polynomial Method for Antenna SynthesisSwapnil Bangera
 
Acoustic echo cancellation
Acoustic echo cancellationAcoustic echo cancellation
Acoustic echo cancellationchintanajoshi
 
Wavelet transform
Wavelet transformWavelet transform
Wavelet transformTwinkal
 

Similar to Bat algorithm (20)

batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptx
 
batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptx
 
batalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptxbatalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptx
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
 
Pulse amplitude modulation
Pulse amplitude modulationPulse amplitude modulation
Pulse amplitude modulation
 
Slide Handouts with Notes
Slide Handouts with NotesSlide Handouts with Notes
Slide Handouts with Notes
 
C1. probability distribution
C1. probability distributionC1. probability distribution
C1. probability distribution
 
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
ACO, Firefly, Modified Firefly, BAT, ABC algorithmsACO, Firefly, Modified Firefly, BAT, ABC algorithms
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
 
sampling-alising.pdf
sampling-alising.pdfsampling-alising.pdf
sampling-alising.pdf
 
Instrumental lecture 2
Instrumental lecture 2Instrumental lecture 2
Instrumental lecture 2
 
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
 
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
Feasibility of EEG Super-Resolution Using Deep Convolutional NetworksFeasibility of EEG Super-Resolution Using Deep Convolutional Networks
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 
Schelkunoff Polynomial Method for Antenna Synthesis
Schelkunoff Polynomial Method for Antenna SynthesisSchelkunoff Polynomial Method for Antenna Synthesis
Schelkunoff Polynomial Method for Antenna Synthesis
 
Acoustic echo cancellation
Acoustic echo cancellationAcoustic echo cancellation
Acoustic echo cancellation
 
Wavelet transform
Wavelet transformWavelet transform
Wavelet transform
 
Lec11.ppt
Lec11.pptLec11.ppt
Lec11.ppt
 
Sampling
SamplingSampling
Sampling
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Recently uploaded (20)

The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Bat algorithm

  • 3. • After hitting and reflecting, the bats transform their own pulse into useful information to explore how far away the prey is. • The pulse rate can be simply determined in the range from 0 to 1, where 0 means that there is no emission and 1 means that the bat’s emitting is their maximum.
  • 4. • Bat sends signal with frequency f. • Echo signal used to calculate the distance. B C1 C2 C3 B C1 C2 C3 Frequency Frequency S1 S2 S3
  • 5. IDEALIZED RULES FOR BAT ALGORITHM • All bats use echolocation to sense distance and they know the difference between food/prey. • velocity “vi” • at position “Xi” • with a fixed frequency “f” min , • varying wavelength λ • and loudness A0 to search for prey. • They can automatically adjust the wavelength of their emitted pulses and adjust the rate of pulse emission r[0,1], depending on the proximity of the target.
  • 6. velocity “vi” position “Xi” frequency “fmin” wavelength λ loudness A0
  • 7. Algorithm: Bat Algorithm • 1. Initialize Bat population: Xi (i = 1, 2, ..., n) • 2. Define frequency Fi and velocity Vi • 3. Initialize pulse rates ri and the loudness Ai • 4. while t< Maximum iterations do • 5. update frequency and velocity • 6. Calculate transfer function values using Equation (4) • 7. Update Vi, Xi, and Fi using Equations 5 to 7 • 8. if (rand >ri ) then • 9. Select the global best solution (Gbest) among the available best solutions and with the available Gbest dimensions modify the dimensions of Xi randomly. • 10. end • 11. Generate new solution randomly Equation (8) • 12. if ((rand <Ai) and (F(Xi)<F(Gbest))then • 13. Accept the new solutions increase ri and reduce Ai using Equations (9 to 10) • 14. end • 15. Find the current Gbest and Rank the best • 16. end
  • 8. MATHEMATICAL EQUATIONS • Generating new solutions is performed by moving virtual bats according to the following equations: • 𝑓𝑖 = 𝑓 𝑚𝑖𝑛 + 𝑓𝑚𝑎𝑥 − 𝑓 𝑚𝑖𝑛 𝛽 • 𝑣𝑖 𝑡 = 𝑣𝑖 𝑡−1 + (𝑥𝑖 𝑡 − 𝑥∗) 𝑓𝑖 • 𝑥𝑖 𝑡 = 𝑥𝑖 𝑡−1 + 𝑣𝑖 𝑡 • Where βЄ[0,1] is a random vector drawn from a uniform distribution. • X* is the current global best location (solution) which is located after comparing all the solutions among all the bats.
  • 9. MATHEMATICAL EQUATIONS • The current best solution according to the equation: • where δ Є[-1,1] is a random number, while At is the average loudness of all the best at this time step. 𝑥 𝑛𝑒𝑤 = 𝑥 𝑜𝑙𝑑 +𝛿𝐴 𝑡
  • 10. MATHEMATICAL EQUATIONS • The loudness can be chosen as any value of convenience as the loudness usually decreases once a bat has found its prey, while the rate of pulse emission increases.
  • 11. LOUDNESS AND PULSE EMISSION VS ITERARION 𝐴𝑖 𝑡+1 =∝ 𝐴𝑖 𝑡 𝑟𝑖 𝑡+1 = 𝑟𝑖 0 [1-exp(-𝛾t)]
  • 13. EXAMPLE – SEGMENTATION • The multilevel threshold problem can be configured as a k- dimensional optimization problem for optimal thresholds [t1,t2,…tk] which optimizes an objective function. • The objective function is determined from the histogram of the image, denoted as h(i), i = 0,1,2,…L-1, where h(i) represents the number of pixels having the gray level i.
  • 14. EXAMPLE – SEGMENTATION • L gray levels in a given image I having M pixels and these gray levels are in the range {0,1,…L-1}. • The normalized probability at level i is defined by the ratio: pi = h(i)/M
  • 15. ADVANCEMENTS • Multi objective bat algorithm (MOBA). • Fuzzy logic bat algorithm (FLBA). • Binary bat algorithm (BBA).
  • 16. Algorithm 2: Binary Bat Algorithm • 1. Initialize Bat population: Xi (i = 1, 2, ..., n) rand(0 or 1) and Vi= 0 • 2. Define pulse frequency Fi • 3. Initialize pulse rates ri and the loudness Ai • 4. whilet < Maximum iterations do • 5. update velocities and adjust frequencies • 6. Using Equation (11) Calculate transfer function value • 7. Using Equation (12) update Xi • 8. if (rand >ri ) then • 9. Select the global best solution (Gbest) among the available best solutions and with the available Gbest dimensions modify the dimensions of Xi randomly • 10. end • 11. Generate new solution randomly • 12. if ((rand <Ai) and (F(Xi)<F(Gbest))then • 13. Accept the new solutions increase ri and reduce Ai using Equations (9 to 10) • 14. end • 15. Find the current Gbest and Rank the best • 16. end
  • 17. COMPARATIVE ANALYSIS ALGORITHM BASED ON DEFINED BY FEATURES AREA OF APPLICATION BAT Echo location behavior of bat Pulse rate emission and loudness Accurate and efficient Engineering design and classification FIREFLY Flashing behavior of firefly Brightness and attractiveness Finds a good solution in less number Digital image processing CUCKOO SEARCH Brooding of cuckoo Color of eggs Simple implementation Nano technology
  • 18. WHY BAT ALGORITHM IS BETTER? 1. Automatic zooming. 2. Parameter control. 3. Frequency tuning. 4. More number of solutions.
  • 19. ADVANTAGES OF BAT • Solve a wide range of problems and highly non-linear problems efficiently. • It gives promising optimal solutions. • The loudness and the pulse emission rates essentially provides a mechanism for automatic control and auto-zooming into region. • Number of solutions increases in the library and so more accurate options are available.
  • 20. IMPROVEMENTS REQUIRED • Bat algorithm converge quickly at the early stage and then the convergence rate slows down. • There is no mathematical analysis to link the parameters with convergence rates. • It is not clear what the best values are for most application.