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

What's hot (20)

PPTX
BAT Algorithm
Ayushi Gagneja
 
PPTX
Bat Algorithm
Arman Hemel
 
PPTX
Firefly algorithm
supriya shilwant
 
PPTX
Cuckoo Optimization ppt
Anuja Joshi
 
PDF
Vx works RTOS
Sai Malleswar
 
PPT
Digital signal processing
Living Online
 
PPT
AI Lecture 7 (uncertainty)
Tajim Md. Niamat Ullah Akhund
 
PPTX
Evolutionary computing - soft computing
SakshiMahto1
 
PDF
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
PPTX
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Nature-Inspired Optimization Algorithms
Xin-She Yang
 
PPTX
Adaptive filter
A. Shamel
 
PPTX
Lagrange's equation with one application
Zakaria Hossain
 
PPTX
Ch2 properties of the task environment
Julyn Mae Pagmanoja
 
PDF
Bee algorithm
Njoud Omar
 
PPTX
Practical Swarm Optimization (PSO)
khashayar Danesh Narooei
 
PPTX
Bee algorithm
kousick
 
PPTX
Bat Algorithm_Basics
Designage Solutions
 
PPTX
ant colony optimization
Shankha Goswami
 
BAT Algorithm
Ayushi Gagneja
 
Bat Algorithm
Arman Hemel
 
Firefly algorithm
supriya shilwant
 
Cuckoo Optimization ppt
Anuja Joshi
 
Vx works RTOS
Sai Malleswar
 
Digital signal processing
Living Online
 
AI Lecture 7 (uncertainty)
Tajim Md. Niamat Ullah Akhund
 
Evolutionary computing - soft computing
SakshiMahto1
 
Metaheuristic Algorithms: A Critical Analysis
Xin-She Yang
 
Spider Monkey Optimization Algorithm
Ahmed Fouad Ali
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Nature-Inspired Optimization Algorithms
Xin-She Yang
 
Adaptive filter
A. Shamel
 
Lagrange's equation with one application
Zakaria Hossain
 
Ch2 properties of the task environment
Julyn Mae Pagmanoja
 
Bee algorithm
Njoud Omar
 
Practical Swarm Optimization (PSO)
khashayar Danesh Narooei
 
Bee algorithm
kousick
 
Bat Algorithm_Basics
Designage Solutions
 
ant colony optimization
Shankha Goswami
 

Similar to Bat algorithm (20)

PPTX
batalgorithm-170406072944 (4).pptx
gopikahari7
 
PPTX
batalgorithm-170406072944 (4).pptx
gopikahari7
 
PPTX
batalgorithm-160501121237 (1).pptx
gopikahari7
 
PPTX
Introduction to equalization
Harshit Srivastava
 
PDF
A Hybrid Bat Algorithm
Xin-She Yang
 
PPT
Pulse amplitude modulation
Vishal kakade
 
PDF
Slide Handouts with Notes
Leon Nguyen
 
PPT
C1. probability distribution
Ankita Darji
 
PDF
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
Velalar College of Engineering and Technology
 
PPTX
Unit 2 – Probability Distributions (1).pptx
giovanniealvarez1
 
PDF
sampling-alising.pdf
BangalirecipeLaboni
 
PDF
swarm pso and gray wolf Optimization.pdf
abbas miry
 
PPT
Instrumental lecture 2
esmail_alwrafi
 
PPTX
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
StanfordComputationalImaging
 
PPTX
Introduction to Time-Frequency Analysis and Wavelets
LingaReddyC
 
PPT
ISI - DC error correction techniques in channel
jubairruby
 
PPT
Chapter7 descriptive to read for engineering
ssuserc62698
 
PPT
cos323_s06_lecture13_sigproc bio signal processing
Rameshraja49
 
PDF
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
Sangjun Han
 
PPTX
Boolean expression org.
mshoaib15
 
batalgorithm-170406072944 (4).pptx
gopikahari7
 
batalgorithm-170406072944 (4).pptx
gopikahari7
 
batalgorithm-160501121237 (1).pptx
gopikahari7
 
Introduction to equalization
Harshit Srivastava
 
A Hybrid Bat Algorithm
Xin-She Yang
 
Pulse amplitude modulation
Vishal kakade
 
Slide Handouts with Notes
Leon Nguyen
 
C1. probability distribution
Ankita Darji
 
ACO, Firefly, Modified Firefly, BAT, ABC algorithms
Velalar College of Engineering and Technology
 
Unit 2 – Probability Distributions (1).pptx
giovanniealvarez1
 
sampling-alising.pdf
BangalirecipeLaboni
 
swarm pso and gray wolf Optimization.pdf
abbas miry
 
Instrumental lecture 2
esmail_alwrafi
 
Build Your Own VR Display Course - SIGGRAPH 2017: Part 4
StanfordComputationalImaging
 
Introduction to Time-Frequency Analysis and Wavelets
LingaReddyC
 
ISI - DC error correction techniques in channel
jubairruby
 
Chapter7 descriptive to read for engineering
ssuserc62698
 
cos323_s06_lecture13_sigproc bio signal processing
Rameshraja49
 
Feasibility of EEG Super-Resolution Using Deep Convolutional Networks
Sangjun Han
 
Boolean expression org.
mshoaib15
 
Ad

Recently uploaded (20)

PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
Q2 Leading a Tableau User Group - Onboarding
lward7
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Q2 Leading a Tableau User Group - Onboarding
lward7
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Ad

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.