SlideShare a Scribd company logo
1 of 18
Av-738
Adaptive Filter Theory
Lecture 4- Optimum Filtering
[Extended Kalman Filters]
Dr. Bilal A. Siddiqui
Air University (PAC Campus)
Spring 2018
All systems are ultimately nonlinear
• All of our discussion to this point has considered linear filters for linear systems.
Unfortunately, linear systems do not exist. All systems are ultimately nonlinear.
• But nonlinear problems are very difficult to solve. Therefore, it is often a
compromise between simplicity and performance.
Famous physicist Richard Feynman: “Linear systems are important because we
can solve them.”
• However, many systems are close enough to linear that linear estimation
approaches give satisfactory results. Eventually, we run across a system
that does not behave linearly even over a small range of operation. In this case,
we need to explore nonlinear estimators.
• Schwartz and Stear “No linear filter is consistently better than any other linear
filter…but any nonlinear filter is better than a strictly linear one.”
•
Extended Kalman Filter (EKF)
• The Kalman filter that we discussed in previous lecture directly applies only to linear
systems.
• However, a nonlinear system can be linearized, and then linear estimation techniques
(such as the Kalman or H∞) can be applied.
• In this lecture, we will discuss the linearized Kalman filter. This will involve
finding a linear system whose states represent the deviations from a nominal tra-
jectory of a nonlinear system.
• We can then use the Kalman filter to estimate the deviations from the nominal
trajectory, and hence obtain an estimate of the states of the nonlinear system.
• We will extend the linearized Kalman filter to directly estimate the states of a nonlinear
system.
• This filter, called the extended Kalman filter (EKF), is undoubtedly the most widely used
nonlinear state estimation technique that has been applied in the past few decades.
• It is also the work horse of aerospace navigation.
Linearized Kalman Filter
• Consider the following general nonlinear system model:
• Here, f(.) and h(.) are nonlinear functions.
• We will use Taylor series to expand these equations around a nominal control uo, nominal state xo, nominal
output yo, and nominal noise values wo and vo.
• These nominal values (all of which are functions of time) are based on a priori guesses of what the system
trajectory might look like.
• For example, if the system equations represent the dynamics of an airplane, then the nominal control, state,
and output might be the planned flight trajectory. The actual flight trajectory will differ from this nominal
trajectory due to mismodeling, disturbances, and other unforeseen effects.
• But the actual trajectory should be close to the nominal trajectory, in which case the Taylor series
linearization should be approximately correct.
Taylor Series expansion
• Since wo(t)=0 and vo(t) = 0, Δw(t) = w(t) and Δ v(t) = v(t).
• The inputs to the filter consist of Δy, which is the difference between the actual measurement y and the nominal measurement yo.
• Δx is output from the Kalman filter. It is an estimate of the difference between the actual state x and the nominal state xo.
• Assume that the control u(t) is perfectly known. Since it is determined by our control system, so there should not be any
uncertainty in its value. This means that uo(t) = u(t) and Δ u(t) = 0.
• The linearized Kalman filter would then be
Extended Kalman Filter
• We obtained a linearized KF for estimating the states of a nonlinear system.
• Derivation based on linearizing nonlin sys around a nominal state
trajectory.
• How do we know the nominal state trajectory?
• In some cases it may not be straightforward to find the nominal trajectory.
• Since the Kalman filter estimates the state of the system, we can use the
Kalman filter estimate as the nominal state trajectory.
• This is sort of an adhoc method. This is the idea of the extended Kalman
filter (EKF), which was originally proposed by Stanley Schmidt so that the
Kalman filter could be applied to nonlinear spacecraft navigation problems
Discrete-time EKF
• Suppose we have the system
• We perform a Taylor series expansion of the state equation around𝑥 𝑘−1
+
and 𝑤 𝑘−1 = 0
EKF Algorithm
Example
𝛾
𝛾
Solution (1)
• First, let’s find the discrete time equivalent of the system
𝑥1 𝑘
= 𝑥1 𝑘−1
+ 𝑇𝑥2 𝑘−1 + 𝑇𝑤1 𝑘−1
𝑥2 𝑘
= 𝑥2 𝑘−1
+ 𝑇𝜌0 𝑒
−
𝑥1 𝑘−1
𝑥2 𝑘−1
2
2𝛾𝑥3 𝑘 − 𝑇𝑔 + 𝑇𝑤2 𝑘−1
𝑥3 𝑘
= 𝑥3 𝑘−1
+ 𝑇𝑤3 𝑘−1
𝑦 𝑘 = 𝑥1 𝑘 + 𝑣 𝑘
Step a
𝐹𝑘−1 =
1 𝑇 0
𝐴1 𝐴2 𝐴3
0 0 1
Where
𝐴1 = −
𝑥2 𝑘−1
2
2𝛾𝑥3 𝑘
+ 𝑇𝜌0 𝑒
−
𝑥1 𝑘−1
+ 𝑥2 𝑘−1
+2
2𝛾𝑥3 𝑘
+
, 𝐴2 = 1 −
𝑥1 𝑘−1
+
𝑥2 𝑘−1
+
𝛾𝑥3 𝑘−1
+ 𝑇𝜌0 𝑒
−
𝑥1 𝑘−1
+ 𝑥2 𝑘−1
+2
2𝛾𝑥3 𝑘−1
+
, 𝐴3 =
𝑥2 𝑘−1
2
𝛾𝑥3 𝑘−1
+2 𝑇𝜌0 𝑒
−
𝑥1 𝑘−1
+ 𝑥2 𝑘−1
+2
2𝛾𝑥3 𝑘−1
+
𝐿 𝑘−1 =
𝑇 0 0
0 𝑇 0
0 0 𝑇
Step b-d
Since 𝑦 𝑘 = 𝑥1 𝑘 + 𝑣 𝑘
𝐻 𝑘 = 1 0 0
𝑀 𝑘 = 1
Take Home Pre-Mid Exam (submit by 8 am
Thursday) – Question 1
• Find altitude, velocity, and ballistic coefficient reciprocal
estimation-error magnitudes of a falling body averaged over 100 simulations for the
previous example.
• Submit by email to airbilal(at)gmail.com by 9 pm tonight. Late submisisons and copied
submissions will not be entertained.
• Compare with a linear Kalman filter in which F,L, H and M matrices are constant,
linearized at some midlevel altitude.
• Now change the situation. We change the measurement system so that it does not
measure the altitude of the falling body, but instead measures the range to the
measuring device. The measuring device is Iocated at an altitude “a” and at a
horizontal distance “M” from the body's vertical line of fall. The measurement
equation is therefore given by
• Repeat the question.
Parameter Estimation
• Kalman filters have been successfully used in system identification /
parameter estimation applications.
• We can consider the unknown parameter to be a constant (or very
slow varying) and then estimate it as a ‘state’.
• Suppose we have the following system
Parameter Estimation - continued
Solution
• First, let’s find the discrete time equivalent of the system
𝑥1 𝑘
= 𝑥1 𝑘−1
+ 𝑇𝑥2 𝑘−1
𝑥2 𝑘
= 𝑥2 𝑘−1
+ 𝑇(𝑥3 𝑘−1
𝑥1 𝑘−1
+ 𝑏𝑥2 𝑘−1
− 𝑥3 𝑘−1
𝑤 𝑘−1)
𝑥3 𝑘
= 𝑥3 𝑘−1
+ 𝑇𝑤 𝑝 𝑘−1
Steps of EKF
𝐹𝑘−1 =
1 𝑇 0
𝑇𝑥3 𝑘−1
+
1 + 𝑏𝑇 𝑇𝑥1 𝑘−1
+
0 0 1
, 𝐿 𝑘−1 =
0
−𝑇𝑥3 𝑘−1
+
0
𝐻 𝑘 =
1 0 0
0 1 0
𝑀 𝑘 = 1
Take Home Pre-Mid Exam (submit by 8 am
Thursday) – Question 2
• Solve the above example on Matlab.
• The true system parameters are 𝜔 𝑛= 2 and 𝜁= 0.1. Suppose that we
begin by estimating 𝜔 𝑛
2
as -8 with an initial estimation variance of 20.
• We set the variance of the artificial noise 𝜔 𝑝 = 0.1.
• In how many samples were you able to converge?
• Also, set different values of 𝜔 𝑝 and see its effect on parameter
estimates.
• Solutions will be posted online in the code folder after deadline.
• It is very easy to figure out if you are merely copying someone else’s
code. So, try to do your own work. It’s all about learning.

More Related Content

What's hot

Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]AI Robotics KR
 
Kalman filters
Kalman filtersKalman filters
Kalman filtersAJAL A J
 
Kalman filter for Beginners
Kalman filter for BeginnersKalman filter for Beginners
Kalman filter for Beginnerswinfred lu
 
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 - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]AI Robotics KR
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-functionSaifullah Memon
 
Kalman filter for object tracking
Kalman filter for object trackingKalman filter for object tracking
Kalman filter for object trackingMohit Yadav
 
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 - 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
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsSaifullah Memon
 
Kalman filter - Applications in Image processing
Kalman filter - Applications in Image processingKalman filter - Applications in Image processing
Kalman filter - Applications in Image processingRavi Teja
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modelingvishalgohel12195
 
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
 
Meeting w4 chapter 2 part 2
Meeting w4   chapter 2 part 2Meeting w4   chapter 2 part 2
Meeting w4 chapter 2 part 2mkazree
 
Application of the Kalman Filter
Application of the Kalman FilterApplication of the Kalman Filter
Application of the Kalman FilterRohullah Latif
 

What's hot (20)

Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
Sensor Fusion Study - Ch15. The Particle Filter [Seoyeon Stella Yang]
 
Kalman filters
Kalman filtersKalman filters
Kalman filters
 
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"
 
Kalman filter for Beginners
Kalman filter for BeginnersKalman filter for Beginners
Kalman filter for Beginners
 
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 [박정은]
 
Me314 week09-root locusanalysis
Me314 week09-root locusanalysisMe314 week09-root locusanalysis
Me314 week09-root locusanalysis
 
Slideshare
SlideshareSlideshare
Slideshare
 
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
Sensor Fusion Study - Ch8. The Continuous-Time Kalman Filter [이해구]
 
Lecture 2 transfer-function
Lecture 2 transfer-functionLecture 2 transfer-function
Lecture 2 transfer-function
 
Kalman filter for object tracking
Kalman filter for object trackingKalman filter for object tracking
Kalman filter for object tracking
 
Kalman filters
Kalman filtersKalman filters
Kalman filters
 
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 [김영범]
 
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]
 
Lecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systemsLecture 12 time_domain_analysis_of_control_systems
Lecture 12 time_domain_analysis_of_control_systems
 
Kalman filter - Applications in Image processing
Kalman filter - Applications in Image processingKalman filter - Applications in Image processing
Kalman filter - Applications in Image processing
 
Transfer function and mathematical modeling
Transfer  function  and  mathematical  modelingTransfer  function  and  mathematical  modeling
Transfer function and mathematical modeling
 
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
 
Meeting w4 chapter 2 part 2
Meeting w4   chapter 2 part 2Meeting w4   chapter 2 part 2
Meeting w4 chapter 2 part 2
 
Me314 week05a-block diagreduction
Me314 week05a-block diagreductionMe314 week05a-block diagreduction
Me314 week05a-block diagreduction
 
Application of the Kalman Filter
Application of the Kalman FilterApplication of the Kalman Filter
Application of the Kalman Filter
 

Similar to Av 738-Adaptive Filters - Extended Kalman Filter

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
 
presentation.ppt
presentation.pptpresentation.ppt
presentation.pptWasiqAli28
 
Chaos Presentation
Chaos PresentationChaos Presentation
Chaos PresentationAlbert Yang
 
Control System Modeling case study with complete explanation
Control System Modeling case study with complete explanationControl System Modeling case study with complete explanation
Control System Modeling case study with complete explanationhodelexdypiet
 
Vibration Isolation of a LEGO® plate
Vibration Isolation of a LEGO® plateVibration Isolation of a LEGO® plate
Vibration Isolation of a LEGO® plateOpen Adaptronik
 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsSohaibUllah5
 
Time Response in Control System
Time Response in Control SystemTime Response in Control System
Time Response in Control SystemAnshulShekhar3
 
Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Open Adaptronik
 
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
 
The describing function
The describing functionThe describing function
The describing functionkatamthreveni
 
3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptxAMSuryawanshi
 
Lecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsLecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsSALEH846
 

Similar to Av 738-Adaptive Filters - Extended Kalman Filter (20)

Kalman_filtering
Kalman_filteringKalman_filtering
Kalman_filtering
 
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
 
presentation.ppt
presentation.pptpresentation.ppt
presentation.ppt
 
Kalman filter.pdf
Kalman filter.pdfKalman filter.pdf
Kalman filter.pdf
 
Chaos Presentation
Chaos PresentationChaos Presentation
Chaos Presentation
 
Control System Modeling case study with complete explanation
Control System Modeling case study with complete explanationControl System Modeling case study with complete explanation
Control System Modeling case study with complete explanation
 
Lecture 23 24-time_response
Lecture 23 24-time_responseLecture 23 24-time_response
Lecture 23 24-time_response
 
Vibration Isolation of a LEGO® plate
Vibration Isolation of a LEGO® plateVibration Isolation of a LEGO® plate
Vibration Isolation of a LEGO® plate
 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop Systems
 
Time Response in Control System
Time Response in Control SystemTime Response in Control System
Time Response in Control System
 
Vibration isolation progect lego(r)
Vibration isolation progect lego(r)Vibration isolation progect lego(r)
Vibration isolation progect lego(r)
 
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
 
The describing function
The describing functionThe describing function
The describing function
 
Week_10.2.pdf
Week_10.2.pdfWeek_10.2.pdf
Week_10.2.pdf
 
solver (1)
solver (1)solver (1)
solver (1)
 
control_5.pptx
control_5.pptxcontrol_5.pptx
control_5.pptx
 
3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx
 
Lecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systemsLecture 13 14-time_domain_analysis_of_1st_order_systems
Lecture 13 14-time_domain_analysis_of_1st_order_systems
 
Kalman Filter Basic
Kalman Filter BasicKalman Filter Basic
Kalman Filter Basic
 
Kalman Equations
Kalman EquationsKalman Equations
Kalman Equations
 

More from Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS

Marketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School StudentsMarketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School StudentsDr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 

More from Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS (18)

Av 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - IntroductionAv 738 - Adaptive Filtering Lecture 1 - Introduction
Av 738 - Adaptive Filtering Lecture 1 - Introduction
 
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School StudentsMarketing Presentation of Mechanical Engineering @ DSU for High School Students
Marketing Presentation of Mechanical Engineering @ DSU for High School Students
 
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
"It isn't exactly Rocket Science" : The artsy science of rocket propulsion
 
2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink2 Day Workshop on Digital Datcom and Simulink
2 Day Workshop on Digital Datcom and Simulink
 
Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?Why Choose Graduate Studies at the University you work in?
Why Choose Graduate Studies at the University you work in?
 
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
ME 312 Mechanical Machine Design [Screws, Bolts, Nuts]
 
ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]ME 312 Mechanical Machine Design - Introduction [Week 1]
ME 312 Mechanical Machine Design - Introduction [Week 1]
 
labview-cert
labview-certlabview-cert
labview-cert
 
WindTunnel_Certificate
WindTunnel_CertificateWindTunnel_Certificate
WindTunnel_Certificate
 
ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)ME438 Aerodynamics (week 12)
ME438 Aerodynamics (week 12)
 
ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)ME438 Aerodynamics (week 11)
ME438 Aerodynamics (week 11)
 
ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)ME-438 Aerodynamics (week 10)
ME-438 Aerodynamics (week 10)
 
ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)ME-438 Aerodynamics (week 9)
ME-438 Aerodynamics (week 9)
 
ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)ME438 Aerodynamics (week 8)
ME438 Aerodynamics (week 8)
 
ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)ME438 Aerodynamics (week 5-6-7)
ME438 Aerodynamics (week 5-6-7)
 
Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)Me438 Aerodynamics (week 1-2-3)
Me438 Aerodynamics (week 1-2-3)
 
ME 312 Mechanical Machine Design - Lecture 01
ME 312 Mechanical Machine Design  - Lecture 01ME 312 Mechanical Machine Design  - Lecture 01
ME 312 Mechanical Machine Design - Lecture 01
 
ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01ME 313 Mechanical Measurements and Instrumentation Lecture 01
ME 313 Mechanical Measurements and Instrumentation Lecture 01
 

Recently uploaded

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 

Av 738-Adaptive Filters - Extended Kalman Filter

  • 1. Av-738 Adaptive Filter Theory Lecture 4- Optimum Filtering [Extended Kalman Filters] Dr. Bilal A. Siddiqui Air University (PAC Campus) Spring 2018
  • 2. All systems are ultimately nonlinear • All of our discussion to this point has considered linear filters for linear systems. Unfortunately, linear systems do not exist. All systems are ultimately nonlinear. • But nonlinear problems are very difficult to solve. Therefore, it is often a compromise between simplicity and performance. Famous physicist Richard Feynman: “Linear systems are important because we can solve them.” • However, many systems are close enough to linear that linear estimation approaches give satisfactory results. Eventually, we run across a system that does not behave linearly even over a small range of operation. In this case, we need to explore nonlinear estimators. • Schwartz and Stear “No linear filter is consistently better than any other linear filter…but any nonlinear filter is better than a strictly linear one.” •
  • 3. Extended Kalman Filter (EKF) • The Kalman filter that we discussed in previous lecture directly applies only to linear systems. • However, a nonlinear system can be linearized, and then linear estimation techniques (such as the Kalman or H∞) can be applied. • In this lecture, we will discuss the linearized Kalman filter. This will involve finding a linear system whose states represent the deviations from a nominal tra- jectory of a nonlinear system. • We can then use the Kalman filter to estimate the deviations from the nominal trajectory, and hence obtain an estimate of the states of the nonlinear system. • We will extend the linearized Kalman filter to directly estimate the states of a nonlinear system. • This filter, called the extended Kalman filter (EKF), is undoubtedly the most widely used nonlinear state estimation technique that has been applied in the past few decades. • It is also the work horse of aerospace navigation.
  • 4. Linearized Kalman Filter • Consider the following general nonlinear system model: • Here, f(.) and h(.) are nonlinear functions. • We will use Taylor series to expand these equations around a nominal control uo, nominal state xo, nominal output yo, and nominal noise values wo and vo. • These nominal values (all of which are functions of time) are based on a priori guesses of what the system trajectory might look like. • For example, if the system equations represent the dynamics of an airplane, then the nominal control, state, and output might be the planned flight trajectory. The actual flight trajectory will differ from this nominal trajectory due to mismodeling, disturbances, and other unforeseen effects. • But the actual trajectory should be close to the nominal trajectory, in which case the Taylor series linearization should be approximately correct.
  • 5. Taylor Series expansion • Since wo(t)=0 and vo(t) = 0, Δw(t) = w(t) and Δ v(t) = v(t). • The inputs to the filter consist of Δy, which is the difference between the actual measurement y and the nominal measurement yo. • Δx is output from the Kalman filter. It is an estimate of the difference between the actual state x and the nominal state xo. • Assume that the control u(t) is perfectly known. Since it is determined by our control system, so there should not be any uncertainty in its value. This means that uo(t) = u(t) and Δ u(t) = 0. • The linearized Kalman filter would then be
  • 6. Extended Kalman Filter • We obtained a linearized KF for estimating the states of a nonlinear system. • Derivation based on linearizing nonlin sys around a nominal state trajectory. • How do we know the nominal state trajectory? • In some cases it may not be straightforward to find the nominal trajectory. • Since the Kalman filter estimates the state of the system, we can use the Kalman filter estimate as the nominal state trajectory. • This is sort of an adhoc method. This is the idea of the extended Kalman filter (EKF), which was originally proposed by Stanley Schmidt so that the Kalman filter could be applied to nonlinear spacecraft navigation problems
  • 7. Discrete-time EKF • Suppose we have the system • We perform a Taylor series expansion of the state equation around𝑥 𝑘−1 + and 𝑤 𝑘−1 = 0
  • 10. Solution (1) • First, let’s find the discrete time equivalent of the system 𝑥1 𝑘 = 𝑥1 𝑘−1 + 𝑇𝑥2 𝑘−1 + 𝑇𝑤1 𝑘−1 𝑥2 𝑘 = 𝑥2 𝑘−1 + 𝑇𝜌0 𝑒 − 𝑥1 𝑘−1 𝑥2 𝑘−1 2 2𝛾𝑥3 𝑘 − 𝑇𝑔 + 𝑇𝑤2 𝑘−1 𝑥3 𝑘 = 𝑥3 𝑘−1 + 𝑇𝑤3 𝑘−1 𝑦 𝑘 = 𝑥1 𝑘 + 𝑣 𝑘
  • 11. Step a 𝐹𝑘−1 = 1 𝑇 0 𝐴1 𝐴2 𝐴3 0 0 1 Where 𝐴1 = − 𝑥2 𝑘−1 2 2𝛾𝑥3 𝑘 + 𝑇𝜌0 𝑒 − 𝑥1 𝑘−1 + 𝑥2 𝑘−1 +2 2𝛾𝑥3 𝑘 + , 𝐴2 = 1 − 𝑥1 𝑘−1 + 𝑥2 𝑘−1 + 𝛾𝑥3 𝑘−1 + 𝑇𝜌0 𝑒 − 𝑥1 𝑘−1 + 𝑥2 𝑘−1 +2 2𝛾𝑥3 𝑘−1 + , 𝐴3 = 𝑥2 𝑘−1 2 𝛾𝑥3 𝑘−1 +2 𝑇𝜌0 𝑒 − 𝑥1 𝑘−1 + 𝑥2 𝑘−1 +2 2𝛾𝑥3 𝑘−1 + 𝐿 𝑘−1 = 𝑇 0 0 0 𝑇 0 0 0 𝑇
  • 12. Step b-d Since 𝑦 𝑘 = 𝑥1 𝑘 + 𝑣 𝑘 𝐻 𝑘 = 1 0 0 𝑀 𝑘 = 1
  • 13. Take Home Pre-Mid Exam (submit by 8 am Thursday) – Question 1 • Find altitude, velocity, and ballistic coefficient reciprocal estimation-error magnitudes of a falling body averaged over 100 simulations for the previous example. • Submit by email to airbilal(at)gmail.com by 9 pm tonight. Late submisisons and copied submissions will not be entertained. • Compare with a linear Kalman filter in which F,L, H and M matrices are constant, linearized at some midlevel altitude. • Now change the situation. We change the measurement system so that it does not measure the altitude of the falling body, but instead measures the range to the measuring device. The measuring device is Iocated at an altitude “a” and at a horizontal distance “M” from the body's vertical line of fall. The measurement equation is therefore given by • Repeat the question.
  • 14. Parameter Estimation • Kalman filters have been successfully used in system identification / parameter estimation applications. • We can consider the unknown parameter to be a constant (or very slow varying) and then estimate it as a ‘state’. • Suppose we have the following system
  • 16. Solution • First, let’s find the discrete time equivalent of the system 𝑥1 𝑘 = 𝑥1 𝑘−1 + 𝑇𝑥2 𝑘−1 𝑥2 𝑘 = 𝑥2 𝑘−1 + 𝑇(𝑥3 𝑘−1 𝑥1 𝑘−1 + 𝑏𝑥2 𝑘−1 − 𝑥3 𝑘−1 𝑤 𝑘−1) 𝑥3 𝑘 = 𝑥3 𝑘−1 + 𝑇𝑤 𝑝 𝑘−1
  • 17. Steps of EKF 𝐹𝑘−1 = 1 𝑇 0 𝑇𝑥3 𝑘−1 + 1 + 𝑏𝑇 𝑇𝑥1 𝑘−1 + 0 0 1 , 𝐿 𝑘−1 = 0 −𝑇𝑥3 𝑘−1 + 0 𝐻 𝑘 = 1 0 0 0 1 0 𝑀 𝑘 = 1
  • 18. Take Home Pre-Mid Exam (submit by 8 am Thursday) – Question 2 • Solve the above example on Matlab. • The true system parameters are 𝜔 𝑛= 2 and 𝜁= 0.1. Suppose that we begin by estimating 𝜔 𝑛 2 as -8 with an initial estimation variance of 20. • We set the variance of the artificial noise 𝜔 𝑝 = 0.1. • In how many samples were you able to converge? • Also, set different values of 𝜔 𝑝 and see its effect on parameter estimates. • Solutions will be posted online in the code folder after deadline. • It is very easy to figure out if you are merely copying someone else’s code. So, try to do your own work. It’s all about learning.