SlideShare une entreprise Scribd logo
1  sur  36
Introduction to Kalman Filter
2
Overview
• The Problem – Why do we need Kalman
Filter?
• What is a Kalman Filter?
• Conceptual Overview
• Kalman Filter – as linear dynamic system
• Object Tracking using Kalman Filter
3
The Problem
• System state cannot be measured directly
• Need to estimate “optimally” from measurements
Measuring
Devices Estimator
Measurement
Error Sources
System State
(desired but not
known)
External Controls
Observed
Measurements
Optimal Estimate
of System State
System
Error Sources
System
Black Box
Tracking Example
• Noisy Measurement +
Filtering gives the final
position.
• Localization + Filtering
• why Filter ?
• The process of finding the
“best estimate” from noisy
data amounts to “filtering
out” the noise.
• Kalman filter also doesn’t
just clean up the data
measurements, but also
projects these
measurements onto the
state estimate.
5
What is a Kalman Filter?
• Recursive data processing algorithm
• Generates optimal estimate of desired quantities
given the set of measurements
• Optimal?
– For linear system and white Gaussian errors, Kalman filter
is “best” estimate based on all previous measurements
– For non-linear system optimality is ‘qualified’
• Recursive?
– Doesn’t need to store all previous measurements and
reprocess all data each time step
Kalman Filter Assumptions
• Linearity and Gaussian White Noise
1. Because they are adequate enough to modal real time systems.
2. Can be easily manipulated because we need to calculate only two
moments.
3. Tractable mathematics due to linear property.
4. Calculation is very much simplified which is very important for online
algorithms.
5. Practical justification – central limit theorem
• Why we are adding Noise ?
1. To model disturbances in the system which are intractable.
2. To model measurement errors in the system.
3. For accurate estimation of values of a time-dependent process itself we
must include future noise.
7
Kalman Filter
What if the noise is NOT Gaussian?
Given only the mean and standard deviation of noise, the
Kalman filter is the best linear estimator. Non-linear
estimators may be better.
Why is Kalman Filtering so popular?
· Good results in practice due to optimality and structure.
· Convenient form for online real time processing.
· Easy to formulate and implement given a basic
understanding.
· Measurement equations need not be inverted.
Optimality of Kalman Filter
Optimal Estimation
10
Conceptual Overview
• Lost on the 1-dimensional line
• Position – y(t)
• Assume Gaussian distributed measurements
y
11
Conceptual Overview
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
• Sextant Measurement at t1: Mean = z1 and Variance = z1
• Optimal estimate of position is: ŷ(t1) = z1
• Variance of error in estimate: 2
x (t1) = 2
z1
• Boat in same position at time t2 - Predicted position is z1
12
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
Conceptual Overview
• So we have the prediction ŷ-(t2)
• GPS Measurement at t2: Mean = z2 and Variance = z2
• Need to correct the prediction due to measurement to get ŷ(t2)
• Closer to more trusted measurement – linear interpolation?
prediction ŷ-(t2)
measurement z(t2)
Conceptual Overview
14
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
Conceptual Overview
• Corrected mean is the new optimal estimate of position
• New variance is smaller than either of the previous two variances
measurement z(t2)
corrected optimal
estimate ŷ(t2)
prediction ŷ-(t2)
• Amount of Spread is the
measurement of
Uncertainty.
• We will try to reduce
this uncertainty in a way
trying to reduce the
variance.
15
Conceptual Overview
• Lessons so far:
Make prediction based on previous data - ŷ-, -
Take measurement – zk, z
Optimal estimate (ŷ) = Prediction + (Kalman Gain) * (Measurement - Prediction)
Variance of estimate = Variance of prediction * (1 – Kalman Gain)
16
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
Conceptual Overview
• At time t3, boat moves with velocity dy/dt=u
• Naïve approach: Shift probability to the right to predict
• This would work if we knew the velocity exactly (perfect model)
ŷ(t2)
Naïve Prediction ŷ-
(t3)
17
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
Conceptual Overview
• Better to assume imperfect model by adding Gaussian noise
• dy/dt = u + w
• Distribution for prediction moves and spreads out
ŷ(t2)
Naïve Prediction ŷ-
(t3)
Prediction ŷ-(t3)
18
0 10 20 30 40 50 60 70 80 90 100
0
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
Conceptual Overview
• Now we take a measurement at t3
• Need to once again correct the prediction
• Same as before
Prediction ŷ-(t3)
Measurement z(t3)
Corrected optimal estimate ŷ(t3)
19
Conceptual Overview
• Lessons learnt from conceptual overview:
– Initial conditions (ŷk-1 and k-1)
– Prediction (ŷ-
k , -
k)
• Use initial conditions and model (eg. constant velocity) to make
prediction
– Measurement (zk)
• Take measurement
– Correction (ŷk , k)
• Use measurement to correct prediction by ‘blending’ prediction
and residual – always a case of merging only two Gaussians
• Optimal estimate with smaller variance
Kalman Filter - as linear discrete-time
dynamical system
•Dynamic System – State of the system is time-variant.
•System is described by “state vector” – which is
minimal set of data that is sufficient to uniquely
describe the dynamical behaviour of the system.
•We keep on updating this system i.e. state of the
system or state vector based on observable data.
KF – as linear discrete -time system
System Description
• Process Equation :-
• xk+1 = F(k+1,k) * xk + wk ;
• Where F(k+1,k) is the transition matrix taking
the state xk from time k to time k+1.
• Process noise wk is assumed to be AWG with
zero mean and with covariance matrix defined
by :-
E [wn wkT] = Qk ; for n=k and zero otherwise.
• Measurement Equation :-
• yk = Hk * xk + vk ;
• Where yk is observable data at time k and Hk is
the measurment matrix.
• Process noise vk is assumed to be AWG with
zero mean and with covariance matrix defined
by :-
E [vn vkT] = Rk ; for n=k and zero otherwise.
KF – as linear discrete -time system
Measurement
23
Theoretical Basis
• Process to be estimated:
yk = Ayk-1 + wk-1
zk = Hyk + vk
Process Noise (w) with covariance Q
Measurement Noise (v) with covariance R
• Kalman Filter
Predicted: ŷ-
k is estimate based on measurements at previous time-steps
ŷk = ŷ-
k + K(zk - H ŷ-
k )
Corrected: ŷk has additional information – the measurement at time k
K = P-
kHT(HP-
kHT + R)-1
ŷ-
k = Ayk-1 + Buk
P-
k = APk-1AT + Q
Pk = (I - KH)P-
k
KF- linear dynamical time variant
system
25
Theoretical Basis
ŷ-
k = Ayk-1 + Buk
P-
k = APk-1AT + Q
Prediction (Time Update)
(1) Project the state ahead
(2) Project the error covariance ahead
Correction (Measurement Update)
(1) Compute the Kalman Gain
(2) Update estimate with measurement zk
(3) Update Error Covariance
ŷk = ŷ-
k + K(zk - H ŷ-
k )
K = P-
kHT(HP-
kHT + R)-1
Pk = (I - KH)P-
k
KF – Review the complete process
27
Blending Factor
• If we are sure about measurements:
– Measurement error covariance (R) decreases to zero
– K decreases and weights residual more heavily than prediction
• If we are sure about prediction
– Prediction error covariance P-
k decreases to zero
– K increases and weights prediction more heavily than residual
Kalman Filter – as Gaussian density
propagation process
• Random component wk
leads to spreading of the
density function.
• F(k+1,k)*XK causes drift
bodily.
• Effect of external
observation y is to
superimpose a reactive
effect on the diffusion in
which the density tends to
peak in the vicinity of
observations.
• Object is segmented using image processing techniques.
• Kalman filter is used to make more efficient the localization
method of the object.
• Steps Involved in vision tracking are :-
• Step 1:- Initialization ( k = 0 ) Find out the object position and
initially a big error tolerance(P0 = 1).
• Step 2:- Prediction( k > 0 ) predicting the relative position of
the object ^xk_ which is considered using as search center to
find the object.
• Step 3:- Correction( k > 0) its measurement to carry out the
state correction using Kalman Filter finding this way ^xk .
Object Tracking using Kalman Filter
• Advantage is to tolerate
small occlusions.
• Whenever object is
occluded we will skip the
measurement correction
and keeps on predicting
till we get object again
into localization.
Object Tracking using Kalman Filter
Object Tracking using Kalman Filter
for Non Linear Trajectory
• Extended
Kalman Filter
- modelling
more
dynamical
system using
unconstraine
d Brownian
Motion
Object Tracking using Kalman Filter
Mean Shift Optimal Prediction and Kalman Filter
for Object Tracking
Mean Shift Optimal Prediction and Kalman Filter
for Object Tracking
•Colour Based
Similarity
measurement –
Bhattacharyya
distance
• Target
Localization
• Distance
Maximization
• Kalman
Prediction
Object Tracking using an adaptive Kalman Filter
combined with Mean Shift
• Occlusion detection
based on value of
Bhattacharyya
coefficient.
• Based on trade-
offs between weight
to measurement and
residual error matrix
Kalman Parameters
are estimated.
Thank You

Contenu connexe

Tendances

Understanding kalman filter for soc estimation.
Understanding kalman filter for soc estimation.Understanding kalman filter for soc estimation.
Understanding kalman filter for soc estimation.Ratul
 
Seminar On Kalman Filter And Its Applications
Seminar On  Kalman  Filter And Its ApplicationsSeminar On  Kalman  Filter And Its Applications
Seminar On Kalman Filter And Its ApplicationsBarnali Dey
 
Maneuverable Target Tracking using Linear Kalman Filter
Maneuverable Target Tracking  using Linear Kalman FilterManeuverable Target Tracking  using Linear Kalman Filter
Maneuverable Target Tracking using Linear Kalman FilterAnnwesh Barik
 
Application of the Kalman Filter
Application of the Kalman FilterApplication of the Kalman Filter
Application of the Kalman FilterRohullah Latif
 
Fun and Easy Kalman filter Tutorial - Using Pokemon Example
Fun and Easy Kalman filter Tutorial - Using Pokemon ExampleFun and Easy Kalman filter Tutorial - Using Pokemon Example
Fun and Easy Kalman filter Tutorial - Using Pokemon ExampleRitesh Kanjee
 
Kalman Filtering
Kalman FilteringKalman Filtering
Kalman FilteringEngin Gul
 
Kalman Filter Based GPS Receiver
Kalman Filter Based GPS ReceiverKalman Filter Based GPS Receiver
Kalman Filter Based GPS ReceiverFalak Shah
 
Kalman Filter and its Application
Kalman Filter and its ApplicationKalman Filter and its Application
Kalman Filter and its ApplicationSaptarshi Mazumdar
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]AI Robotics KR
 
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]AI Robotics KR
 
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]AI Robotics KR
 
Real time implementation of unscented kalman filter for target tracking
Real time implementation of unscented kalman filter for target trackingReal time implementation of unscented kalman filter for target tracking
Real time implementation of unscented kalman filter for target trackingIAEME Publication
 

Tendances (20)

Kalman Filter Basic
Kalman Filter BasicKalman Filter Basic
Kalman Filter Basic
 
Understanding kalman filter for soc estimation.
Understanding kalman filter for soc estimation.Understanding kalman filter for soc estimation.
Understanding kalman filter for soc estimation.
 
kalman filtering "From Basics to unscented Kaman filter"
 kalman filtering "From Basics to unscented Kaman filter" kalman filtering "From Basics to unscented Kaman filter"
kalman filtering "From Basics to unscented Kaman filter"
 
Seminar On Kalman Filter And Its Applications
Seminar On  Kalman  Filter And Its ApplicationsSeminar On  Kalman  Filter And Its Applications
Seminar On Kalman Filter And Its Applications
 
Kalman Equations
Kalman EquationsKalman Equations
Kalman Equations
 
Maneuverable Target Tracking using Linear Kalman Filter
Maneuverable Target Tracking  using Linear Kalman FilterManeuverable Target Tracking  using Linear Kalman Filter
Maneuverable Target Tracking using Linear Kalman Filter
 
Application of the Kalman Filter
Application of the Kalman FilterApplication of the Kalman Filter
Application of the Kalman Filter
 
Kalman Filter
 Kalman Filter    Kalman Filter
Kalman Filter
 
Kalmanfilter
KalmanfilterKalmanfilter
Kalmanfilter
 
Fun and Easy Kalman filter Tutorial - Using Pokemon Example
Fun and Easy Kalman filter Tutorial - Using Pokemon ExampleFun and Easy Kalman filter Tutorial - Using Pokemon Example
Fun and Easy Kalman filter Tutorial - Using Pokemon Example
 
Kalman Filtering
Kalman FilteringKalman Filtering
Kalman Filtering
 
Kalman Filter Based GPS Receiver
Kalman Filter Based GPS ReceiverKalman Filter Based GPS Receiver
Kalman Filter Based GPS Receiver
 
Kalman Filter
Kalman FilterKalman Filter
Kalman Filter
 
Kalman Filter and its Application
Kalman Filter and its ApplicationKalman Filter and its Application
Kalman Filter and its Application
 
Data fusion with kalman filtering
Data fusion with kalman filteringData fusion with kalman filtering
Data fusion with kalman filtering
 
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
Sensor Fusion Study - Ch7. Kalman Filter Generalizations [김영범]
 
Kalman filter
Kalman filterKalman filter
Kalman filter
 
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]Sensor Fusion Study - Ch5. The discrete-time Kalman filter  [박정은]
Sensor Fusion Study - Ch5. The discrete-time Kalman filter [박정은]
 
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
Sensor Fusion Study - Ch13. Nonlinear Kalman Filtering [Ahn Min Sung]
 
Real time implementation of unscented kalman filter for target tracking
Real time implementation of unscented kalman filter for target trackingReal time implementation of unscented kalman filter for target tracking
Real time implementation of unscented kalman filter for target tracking
 

Similaire à Slideshare

presentation.ppt
presentation.pptpresentation.ppt
presentation.pptWasiqAli28
 
lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxAnshulShekhar3
 
Object Detection Classification, tracking and Counting
Object Detection Classification, tracking and CountingObject Detection Classification, tracking and Counting
Object Detection Classification, tracking and CountingShounak Mitra
 
QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28Aritra Sarkar
 
Ms 1341-p touze-final
Ms 1341-p touze-finalMs 1341-p touze-final
Ms 1341-p touze-finalThomasTouz
 
Sistema de control discreto
Sistema de control discretoSistema de control discreto
Sistema de control discretoricardomadrid19
 
Sistemas de control discretos
Sistemas de control discretos Sistemas de control discretos
Sistemas de control discretos ricardomadrid19
 
Balancing Robot Kalman Filter Design – Estimation Theory Project
Balancing Robot Kalman Filter Design – Estimation Theory ProjectBalancing Robot Kalman Filter Design – Estimation Theory Project
Balancing Robot Kalman Filter Design – Estimation Theory ProjectSurya Chandra
 
Detection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackingDetection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackinghadarpinhas1
 
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3Build Your Own VR Display Course - SIGGRAPH 2017: Part 3
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3StanfordComputationalImaging
 

Similaire à Slideshare (20)

Av 738 - Adaptive Filtering - Kalman Filters
Av 738 - Adaptive Filtering - Kalman Filters Av 738 - Adaptive Filtering - Kalman Filters
Av 738 - Adaptive Filtering - Kalman Filters
 
Av 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman FilterAv 738-Adaptive Filters - Extended Kalman Filter
Av 738-Adaptive Filters - Extended Kalman Filter
 
Tracking[1]
Tracking[1]Tracking[1]
Tracking[1]
 
presentation.ppt
presentation.pptpresentation.ppt
presentation.ppt
 
B04402016018
B04402016018B04402016018
B04402016018
 
lecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptxlecture_18-19_state_observer_design.pptx
lecture_18-19_state_observer_design.pptx
 
Accelerometers 2015
Accelerometers 2015Accelerometers 2015
Accelerometers 2015
 
Week_10.2.pdf
Week_10.2.pdfWeek_10.2.pdf
Week_10.2.pdf
 
Kalman filter.pdf
Kalman filter.pdfKalman filter.pdf
Kalman filter.pdf
 
1542 inner products
1542 inner products1542 inner products
1542 inner products
 
Object Detection Classification, tracking and Counting
Object Detection Classification, tracking and CountingObject Detection Classification, tracking and Counting
Object Detection Classification, tracking and Counting
 
QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28
 
Kalman
KalmanKalman
Kalman
 
Ms 1341-p touze-final
Ms 1341-p touze-finalMs 1341-p touze-final
Ms 1341-p touze-final
 
Sistema de control discreto
Sistema de control discretoSistema de control discreto
Sistema de control discreto
 
Sistemas de control discretos
Sistemas de control discretos Sistemas de control discretos
Sistemas de control discretos
 
Balancing Robot Kalman Filter Design – Estimation Theory Project
Balancing Robot Kalman Filter Design – Estimation Theory ProjectBalancing Robot Kalman Filter Design – Estimation Theory Project
Balancing Robot Kalman Filter Design – Estimation Theory Project
 
Detection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackingDetection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and tracking
 
Week10 ben-control
Week10 ben-controlWeek10 ben-control
Week10 ben-control
 
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3Build Your Own VR Display Course - SIGGRAPH 2017: Part 3
Build Your Own VR Display Course - SIGGRAPH 2017: Part 3
 

Dernier

What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 

Dernier (20)

What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 

Slideshare

  • 2. 2 Overview • The Problem – Why do we need Kalman Filter? • What is a Kalman Filter? • Conceptual Overview • Kalman Filter – as linear dynamic system • Object Tracking using Kalman Filter
  • 3. 3 The Problem • System state cannot be measured directly • Need to estimate “optimally” from measurements Measuring Devices Estimator Measurement Error Sources System State (desired but not known) External Controls Observed Measurements Optimal Estimate of System State System Error Sources System Black Box
  • 4. Tracking Example • Noisy Measurement + Filtering gives the final position. • Localization + Filtering • why Filter ? • The process of finding the “best estimate” from noisy data amounts to “filtering out” the noise. • Kalman filter also doesn’t just clean up the data measurements, but also projects these measurements onto the state estimate.
  • 5. 5 What is a Kalman Filter? • Recursive data processing algorithm • Generates optimal estimate of desired quantities given the set of measurements • Optimal? – For linear system and white Gaussian errors, Kalman filter is “best” estimate based on all previous measurements – For non-linear system optimality is ‘qualified’ • Recursive? – Doesn’t need to store all previous measurements and reprocess all data each time step
  • 6. Kalman Filter Assumptions • Linearity and Gaussian White Noise 1. Because they are adequate enough to modal real time systems. 2. Can be easily manipulated because we need to calculate only two moments. 3. Tractable mathematics due to linear property. 4. Calculation is very much simplified which is very important for online algorithms. 5. Practical justification – central limit theorem • Why we are adding Noise ? 1. To model disturbances in the system which are intractable. 2. To model measurement errors in the system. 3. For accurate estimation of values of a time-dependent process itself we must include future noise.
  • 7. 7 Kalman Filter What if the noise is NOT Gaussian? Given only the mean and standard deviation of noise, the Kalman filter is the best linear estimator. Non-linear estimators may be better. Why is Kalman Filtering so popular? · Good results in practice due to optimality and structure. · Convenient form for online real time processing. · Easy to formulate and implement given a basic understanding. · Measurement equations need not be inverted.
  • 10. 10 Conceptual Overview • Lost on the 1-dimensional line • Position – y(t) • Assume Gaussian distributed measurements y
  • 11. 11 Conceptual Overview 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 • Sextant Measurement at t1: Mean = z1 and Variance = z1 • Optimal estimate of position is: ŷ(t1) = z1 • Variance of error in estimate: 2 x (t1) = 2 z1 • Boat in same position at time t2 - Predicted position is z1
  • 12. 12 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 Conceptual Overview • So we have the prediction ŷ-(t2) • GPS Measurement at t2: Mean = z2 and Variance = z2 • Need to correct the prediction due to measurement to get ŷ(t2) • Closer to more trusted measurement – linear interpolation? prediction ŷ-(t2) measurement z(t2)
  • 14. 14 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 Conceptual Overview • Corrected mean is the new optimal estimate of position • New variance is smaller than either of the previous two variances measurement z(t2) corrected optimal estimate ŷ(t2) prediction ŷ-(t2) • Amount of Spread is the measurement of Uncertainty. • We will try to reduce this uncertainty in a way trying to reduce the variance.
  • 15. 15 Conceptual Overview • Lessons so far: Make prediction based on previous data - ŷ-, - Take measurement – zk, z Optimal estimate (ŷ) = Prediction + (Kalman Gain) * (Measurement - Prediction) Variance of estimate = Variance of prediction * (1 – Kalman Gain)
  • 16. 16 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 Conceptual Overview • At time t3, boat moves with velocity dy/dt=u • Naïve approach: Shift probability to the right to predict • This would work if we knew the velocity exactly (perfect model) ŷ(t2) Naïve Prediction ŷ- (t3)
  • 17. 17 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 Conceptual Overview • Better to assume imperfect model by adding Gaussian noise • dy/dt = u + w • Distribution for prediction moves and spreads out ŷ(t2) Naïve Prediction ŷ- (t3) Prediction ŷ-(t3)
  • 18. 18 0 10 20 30 40 50 60 70 80 90 100 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 Conceptual Overview • Now we take a measurement at t3 • Need to once again correct the prediction • Same as before Prediction ŷ-(t3) Measurement z(t3) Corrected optimal estimate ŷ(t3)
  • 19. 19 Conceptual Overview • Lessons learnt from conceptual overview: – Initial conditions (ŷk-1 and k-1) – Prediction (ŷ- k , - k) • Use initial conditions and model (eg. constant velocity) to make prediction – Measurement (zk) • Take measurement – Correction (ŷk , k) • Use measurement to correct prediction by ‘blending’ prediction and residual – always a case of merging only two Gaussians • Optimal estimate with smaller variance
  • 20. Kalman Filter - as linear discrete-time dynamical system •Dynamic System – State of the system is time-variant. •System is described by “state vector” – which is minimal set of data that is sufficient to uniquely describe the dynamical behaviour of the system. •We keep on updating this system i.e. state of the system or state vector based on observable data.
  • 21. KF – as linear discrete -time system System Description • Process Equation :- • xk+1 = F(k+1,k) * xk + wk ; • Where F(k+1,k) is the transition matrix taking the state xk from time k to time k+1. • Process noise wk is assumed to be AWG with zero mean and with covariance matrix defined by :- E [wn wkT] = Qk ; for n=k and zero otherwise.
  • 22. • Measurement Equation :- • yk = Hk * xk + vk ; • Where yk is observable data at time k and Hk is the measurment matrix. • Process noise vk is assumed to be AWG with zero mean and with covariance matrix defined by :- E [vn vkT] = Rk ; for n=k and zero otherwise. KF – as linear discrete -time system Measurement
  • 23. 23 Theoretical Basis • Process to be estimated: yk = Ayk-1 + wk-1 zk = Hyk + vk Process Noise (w) with covariance Q Measurement Noise (v) with covariance R • Kalman Filter Predicted: ŷ- k is estimate based on measurements at previous time-steps ŷk = ŷ- k + K(zk - H ŷ- k ) Corrected: ŷk has additional information – the measurement at time k K = P- kHT(HP- kHT + R)-1 ŷ- k = Ayk-1 + Buk P- k = APk-1AT + Q Pk = (I - KH)P- k
  • 24. KF- linear dynamical time variant system
  • 25. 25 Theoretical Basis ŷ- k = Ayk-1 + Buk P- k = APk-1AT + Q Prediction (Time Update) (1) Project the state ahead (2) Project the error covariance ahead Correction (Measurement Update) (1) Compute the Kalman Gain (2) Update estimate with measurement zk (3) Update Error Covariance ŷk = ŷ- k + K(zk - H ŷ- k ) K = P- kHT(HP- kHT + R)-1 Pk = (I - KH)P- k
  • 26. KF – Review the complete process
  • 27. 27 Blending Factor • If we are sure about measurements: – Measurement error covariance (R) decreases to zero – K decreases and weights residual more heavily than prediction • If we are sure about prediction – Prediction error covariance P- k decreases to zero – K increases and weights prediction more heavily than residual
  • 28. Kalman Filter – as Gaussian density propagation process • Random component wk leads to spreading of the density function. • F(k+1,k)*XK causes drift bodily. • Effect of external observation y is to superimpose a reactive effect on the diffusion in which the density tends to peak in the vicinity of observations.
  • 29. • Object is segmented using image processing techniques. • Kalman filter is used to make more efficient the localization method of the object. • Steps Involved in vision tracking are :- • Step 1:- Initialization ( k = 0 ) Find out the object position and initially a big error tolerance(P0 = 1). • Step 2:- Prediction( k > 0 ) predicting the relative position of the object ^xk_ which is considered using as search center to find the object. • Step 3:- Correction( k > 0) its measurement to carry out the state correction using Kalman Filter finding this way ^xk . Object Tracking using Kalman Filter
  • 30. • Advantage is to tolerate small occlusions. • Whenever object is occluded we will skip the measurement correction and keeps on predicting till we get object again into localization. Object Tracking using Kalman Filter
  • 31. Object Tracking using Kalman Filter for Non Linear Trajectory • Extended Kalman Filter - modelling more dynamical system using unconstraine d Brownian Motion
  • 32. Object Tracking using Kalman Filter
  • 33. Mean Shift Optimal Prediction and Kalman Filter for Object Tracking
  • 34. Mean Shift Optimal Prediction and Kalman Filter for Object Tracking •Colour Based Similarity measurement – Bhattacharyya distance • Target Localization • Distance Maximization • Kalman Prediction
  • 35. Object Tracking using an adaptive Kalman Filter combined with Mean Shift • Occlusion detection based on value of Bhattacharyya coefficient. • Based on trade- offs between weight to measurement and residual error matrix Kalman Parameters are estimated.

Notes de l'éditeur

  1. Prove that this is best ?