SlideShare a Scribd company logo
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

ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.
N Vinayak
 
Bat Algorithm_Basics
Bat Algorithm_BasicsBat Algorithm_Basics
Bat Algorithm_Basics
Designage Solutions
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
Ahmed Fouad Ali
 
Artificial bee colony algorithm
Artificial bee colony algorithmArtificial bee colony algorithm
Artificial bee colony algorithm
Satyasis Mishra
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
Anuja Joshi
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
pawansher2002
 
Artificial Bee Colony: An introduction
Artificial Bee Colony: An introductionArtificial Bee Colony: An introduction
Artificial Bee Colony: An introduction
Adel Rahimi
 
Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms
Xin-She Yang
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
Ahmed Fouad Ali
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
Ahmed Fouad Ali
 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
Uday Wankar
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
Ahmed Fouad Ali
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
gidla vinay
 
Crow search algorithm
Crow search algorithmCrow search algorithm
Crow search algorithm
Ahmed Fouad Ali
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
Ahmed Fouad Ali
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
Eslam Hamed
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
Ahmed Fouad Ali
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
Biswajit Panday
 
Bees algorithm
Bees algorithmBees algorithm
Bees algorithmAmrit Kaur
 

What's hot (20)

ABC Algorithm.
ABC Algorithm.ABC Algorithm.
ABC Algorithm.
 
Bat Algorithm_Basics
Bat Algorithm_BasicsBat Algorithm_Basics
Bat Algorithm_Basics
 
Cuckoo search algorithm
Cuckoo search algorithmCuckoo search algorithm
Cuckoo search algorithm
 
Artificial bee colony algorithm
Artificial bee colony algorithmArtificial bee colony algorithm
Artificial bee colony algorithm
 
Cuckoo Optimization ppt
Cuckoo Optimization pptCuckoo Optimization ppt
Cuckoo Optimization ppt
 
Bio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptxBio-inspired computing Algorithms.pptx
Bio-inspired computing Algorithms.pptx
 
Artificial Bee Colony: An introduction
Artificial Bee Colony: An introductionArtificial Bee Colony: An introduction
Artificial Bee Colony: An introduction
 
Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms Nature-Inspired Optimization Algorithms
Nature-Inspired Optimization Algorithms
 
Firefly algorithm
Firefly algorithmFirefly algorithm
Firefly algorithm
 
Whale optimizatio algorithm
Whale optimizatio algorithmWhale optimizatio algorithm
Whale optimizatio algorithm
 
Optimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping AlgorithmOptimization Shuffled Frog Leaping Algorithm
Optimization Shuffled Frog Leaping Algorithm
 
Butterfly optimization algorithm
Butterfly optimization algorithmButterfly optimization algorithm
Butterfly optimization algorithm
 
Ant colony optimization (aco)
Ant colony optimization (aco)Ant colony optimization (aco)
Ant colony optimization (aco)
 
Crow search algorithm
Crow search algorithmCrow search algorithm
Crow search algorithm
 
Artificial fish swarm optimization
Artificial fish swarm optimizationArtificial fish swarm optimization
Artificial fish swarm optimization
 
Swarm intelligence
Swarm intelligenceSwarm intelligence
Swarm intelligence
 
Harmony search algorithm
Harmony search algorithmHarmony search algorithm
Harmony search algorithm
 
Cuckoo search
Cuckoo searchCuckoo search
Cuckoo search
 
Final project
Final projectFinal project
Final project
 
Bees algorithm
Bees algorithmBees algorithm
Bees algorithm
 

Similar to Bat algorithm

batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptx
gopikahari7
 
batalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptxbatalgorithm-170406072944 (4).pptx
batalgorithm-170406072944 (4).pptx
gopikahari7
 
batalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptxbatalgorithm-160501121237 (1).pptx
batalgorithm-160501121237 (1).pptx
gopikahari7
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
Harshit Srivastava
 
A Hybrid Bat Algorithm
A Hybrid Bat AlgorithmA Hybrid Bat Algorithm
A Hybrid Bat Algorithm
Xin-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
 
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
Velalar College of Engineering and Technology
 
sampling-alising.pdf
sampling-alising.pdfsampling-alising.pdf
sampling-alising.pdf
BangalirecipeLaboni
 
swarm pso and gray wolf Optimization.pdf
swarm pso and gray wolf Optimization.pdfswarm pso and gray wolf Optimization.pdf
swarm pso and gray wolf Optimization.pdf
abbas miry
 
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 4
StanfordComputationalImaging
 
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
Sangjun 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 Synthesis
Swapnil Bangera
 
Acoustic echo cancellation
Acoustic echo cancellationAcoustic echo cancellation
Acoustic echo cancellationchintanajoshi
 
Wavelet transform
Wavelet transformWavelet transform
Wavelet transform
Twinkal
 
Lec11.ppt
Lec11.pptLec11.ppt
Lec11.ppt
ssuser637f3e1
 

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
 
swarm pso and gray wolf Optimization.pdf
swarm pso and gray wolf Optimization.pdfswarm pso and gray wolf Optimization.pdf
swarm pso and gray wolf Optimization.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
 

Recently uploaded

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 

Recently uploaded (20)

Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 

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.