SlideShare a Scribd company logo
2
Most read
3
Most read
12
Most read
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

PPTX
Bat algorithm and applications
PPT
Presentation on Programming Languages.
PPTX
Advantages and Disadvatages of AC/DC Motor
PPTX
Steganography Project
PPTX
Bat algorithm
PDF
Particle Swarm Optimization: The Algorithm and Its Applications
PPTX
BAT Algorithm
PPTX
Bat algorithm explained. slides ppt pptx
Bat algorithm and applications
Presentation on Programming Languages.
Advantages and Disadvatages of AC/DC Motor
Steganography Project
Bat algorithm
Particle Swarm Optimization: The Algorithm and Its Applications
BAT Algorithm
Bat algorithm explained. slides ppt pptx

What's hot (20)

PPTX
Bat Algorithm
PDF
Algorithme de chauve souris
PPTX
Practical Swarm Optimization (PSO)
PPTX
Cuckoo Optimization ppt
PDF
Metaheuristic Algorithms: A Critical Analysis
PPT
Ant colony optimization
PPTX
Firefly algorithm
PPTX
Firefly algorithm
PPTX
Optimization Shuffled Frog Leaping Algorithm
PPTX
Crow search algorithm
PPTX
Bat Algorithm_Basics
PPTX
ant colony optimization
PPT
Artificial bee colony (abc)
PPTX
Ant colony optimization (aco)
PPTX
ADAPTIVE NOISE CANCELLATION
PPTX
Genetic Algorithm in Artificial Intelligence
PPTX
Cuckoo Search Algorithm - Beyazıt Kölemen
PDF
Nature-Inspired Optimization Algorithms
PPTX
Ai powered chatbots
PPTX
Fuzzy Genetic Algorithm
Bat Algorithm
Algorithme de chauve souris
Practical Swarm Optimization (PSO)
Cuckoo Optimization ppt
Metaheuristic Algorithms: A Critical Analysis
Ant colony optimization
Firefly algorithm
Firefly algorithm
Optimization Shuffled Frog Leaping Algorithm
Crow search algorithm
Bat Algorithm_Basics
ant colony optimization
Artificial bee colony (abc)
Ant colony optimization (aco)
ADAPTIVE NOISE CANCELLATION
Genetic Algorithm in Artificial Intelligence
Cuckoo Search Algorithm - Beyazıt Kölemen
Nature-Inspired Optimization Algorithms
Ai powered chatbots
Fuzzy Genetic Algorithm
Ad

Similar to Bat algorithm (20)

PPTX
batalgorithm-170406072944 (4).pptx
PPTX
batalgorithm-170406072944 (4).pptx
PPTX
batalgorithm-160501121237 (1).pptx
PPTX
Introduction to equalization
PDF
A Hybrid Bat Algorithm
PPT
Pulse amplitude modulation
PDF
Slide Handouts with Notes
PPT
C1. probability distribution
PDF
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
PPTX
Unit 2 – Probability Distributions (1).pptx
PDF
sampling-alising.pdf
PDF
swarm pso and gray wolf Optimization.pdf
PPT
Instrumental lecture 2
PPTX
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
PPTX
Introduction to Time-Frequency Analysis and Wavelets
PPTX
Multi resolution & Wavelet Transform.pptx
PPT
ISI - DC error correction techniques in channel
PPT
Chapter7 descriptive to read for engineering
PPT
cos323_s06_lecture13_sigproc bio signal processing
PDF
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptx
batalgorithm-160501121237 (1).pptx
Introduction to equalization
A Hybrid Bat Algorithm
Pulse amplitude modulation
Slide Handouts with Notes
C1. probability distribution
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
Unit 2 – Probability Distributions (1).pptx
sampling-alising.pdf
swarm pso and gray wolf Optimization.pdf
Instrumental lecture 2
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
Introduction to Time-Frequency Analysis and Wavelets
Multi resolution & Wavelet Transform.pptx
ISI - DC error correction techniques in channel
Chapter7 descriptive to read for engineering
cos323_s06_lecture13_sigproc bio signal processing
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
Digital-Transformation-Roadmap-for-Companies.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

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.