the kalman filter part 1 administrative stuff rudolf emil
play

The Kalman Filter (part 1) Administrative Stuff Rudolf Emil Kalman - PowerPoint PPT Presentation

The Kalman Filter (part 1) Administrative Stuff Rudolf Emil Kalman [http://www.cs.unc.edu/~welch/kalman/kalmanBiblio.html] Definition A Kalman filter is simply an optimal recursive data processing algorithm Under some assumptions the


  1. The Kalman Filter (part 1)

  2. Administrative Stuff

  3. Rudolf Emil Kalman [http://www.cs.unc.edu/~welch/kalman/kalmanBiblio.html]

  4. Definition • A Kalman filter is simply an optimal recursive data processing algorithm • Under some assumptions the Kalman filter is optimal with respect to virtually any criterion that makes sense.

  5. Definition “The Kalman filter incorporates all information that can be provided to it. It processes all available measurements, regardless of their precision, to estimate the current value of the variables of interest.” [Maybeck (1979)]

  6. Why do we need a filter? • No mathematical model of a real system is perfect • Real world disturbances • Imperfect Sensors

  7. Application: Radar Tracking

  8. Application: Lunar Landing https://github.com/chrislgarry/Apollo-11

  9. Application: Missile Tracking

  10. Application: Sailing

  11. Application: Robot Navigation

  12. Application: Other Tracking

  13. Application: Head Tracking

  14. Face & Hand Tracking

  15. A Simple Recursive Example • Problem Statement: Given the measurement sequence: z 1 , z 2 , …, z n find the mean [Brown and Hwang (1992)]

  16. First Approach 1. Make the first measurement z 1 Store z 1 and estimate the mean as µ 1 =z 1 2. Make the second measurement z 2 Store z 1 along with z 2 and estimate the mean as µ 2 = (z 1 +z 2 )/2 [Brown and Hwang (1992)]

  17. First Approach (cont’d) 3. Make the third measurement z 3 Store z 3 along with z 1 and z 2 and estimate the mean as µ 3 = (z 1 +z 2 +z 3 )/3 [Brown and Hwang (1992)]

  18. First Approach (cont’d) n. Make the n-th measurement z n Store z n along with z 1 , z 2 ,…, z n-1 and estimate the mean as µ n = (z 1 + z 2 + … + z n )/n [Brown and Hwang (1992)]

  19. Second Approach 1. Make the first measurement z 1 Compute the mean estimate as µ 1 =z 1 Store µ 1 and discard z 1 [Brown and Hwang (1992)]

  20. Second Approach (cont’d) 2. Make the second measurement z 2 Compute the estimate of the mean as a weighted sum of the previous estimate µ 1 and the current measurement z 2: µ 2 = 1/2 µ 1 +1/2 z 2 Store µ 2 and discard z 2 and µ 1 [Brown and Hwang (1992)]

  21. Second Approach (cont’d) 3. Make the third measurement z 3 Compute the estimate of the mean as a weighted sum of the previous estimate µ 2 and the current measurement z 3: µ 3 = 2/3 µ 2 +1/3 z 3 Store µ 3 and discard z 3 and µ 2 [Brown and Hwang (1992)]

  22. Second Approach (cont’d) n. Make the n-th measurement z n Compute the estimate of the mean as a weighted sum of the previous estimate µ n-1 and the current measurement z n: µ n = (n-1)/n µ n-1 +1/n z n Store µ n and discard z n and µ n-1 [Brown and Hwang (1992)]

  23. Comparison Batch Method Recursive Method

  24. Analysis • The second procedure gives the same result as the first procedure. • It uses the result for the previous step to help obtain an estimate at the current step. • The difference is that it does not need to keep the sequence in memory. [Brown and Hwang (1992)]

  25. Second Approach (rewrite the general formula) µ n = (n-1)/n µ n-1 +1/n z n µ n = (n/n) µ n-1 - (1/n) µ n-1 +1/n z n

  26. Second Approach (rewrite the general formula) µ n = (n-1)/n µ n-1 +1/n z n µ n = (n/n) µ n-1 - (1/n) µ n-1 +1/n z n µ n = µ n-1 + 1/n (z n - µ n-1 ) Difference Gain Old Between Factor Estimate New Reading and Old Estimate

  27. Second Approach (rewrite the general formula) Difference Gain Old Between Factor Estimate New Reading and Old Estimate

  28. Gaussian Properties

  29. The Gaussian Function

  30. Gaussian pdf

  31. Properties • If and • Then

  32. pdf for

  33. Properties

  34. Summation and Subtraction

  35. A simple example using diagrams

  36. Conditional density of position based on measured value of z 1 [Maybeck (1979)]

  37. Conditional density of position based on measured value of z 1 uncertainty position measured position [Maybeck (1979)]

  38. Conditional density of position based on measurement of z 2 alone [Maybeck (1979)]

  39. Conditional density of position based on measurement of z 2 alone uncertainty 2 measured position 2 [Maybeck (1979)]

  40. Conditional density of position based on data z 1 and z 2 uncertainty estimate position estimate [Maybeck (1979)]

  41. Propagation of the conditional density [Maybeck (1979)]

  42. Propagation of the conditional density movement vector expected position just prior to taking measurement 3 [Maybeck (1979)]

  43. Propagation of the conditional density movement vector expected position just prior to taking measurement 3 [Maybeck (1979)]

  44. Propagation of the conditional density uncertainty 3 σ x (t 3 ) z 3 measured position 3

  45. Updating the conditional density after the third measurement position uncertainty σ x (t 3 ) x(t3) z 3 position estimate

  46. Questions?

  47. Now let’s do the same thing …but this time we’ll use math

  48. How should we combine the two measurements? σ Z2 σ Z1 [Maybeck (1979)]

  49. Calculating the new mean Scaling Factor 1 Scaling Factor 2

  50. Calculating the new mean Scaling Factor 1 Scaling Factor 2

  51. Calculating the new mean Scaling Factor 1 Scaling Factor 2 Why is this not z 1 ?

  52. Calculating the new variance σ Z2 σ Z1 [Maybeck (1979)]

  53. Calculating the new variance Scaling Factor 1 Scaling Factor 2

  54. Remember the Gaussian Properties?

  55. Remember the Gaussian Properties? • If and • Then This is a 2 not a

  56. The scaling factors must be squared! Scaling Factor 1 Scaling Factor 2

  57. The scaling factors must be squared! Scaling Factor 1 Scaling Factor 2

  58. Therefore the new variance is Try to derive this on your own.

  59. Another Way to Express The New Position [Maybeck (1979)]

  60. Another Way to Express The New Position [Maybeck (1979)]

  61. Another Way to Express The New Position [Maybeck (1979)]

  62. The equation for the variance can also be rewritten as [Maybeck (1979)]

  63. Adding Movement [Maybeck (1979)]

  64. Adding Movement [Maybeck (1979)]

  65. Adding Movement [Maybeck (1979)]

  66. Properties of K • If the measurement noise is large K is small 0 [Maybeck (1979)]

  67. The Kalman Filter (part 2)

  68. Example Applications

  69. https://www.youtube.com/watch?v=MxwVwCuBEDA https://github.com/pabsaura/Prediction-of-Trajectory-with-kalman-filter-and-open-cv

  70. https://www.youtube.com/watch?v=sG-h5ONsj9s https://www.myzhar.com/blog/tutorials/tutorial-opencv-ball-tracker-using-kalman-filter/

  71. THE END

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend