1 / 18

Kalman Filter and Data Streaming

Kalman Filter and Data Streaming. Presented By :- Ankur Jain Department of Computer Science 7/21/03. Outline. Kalman Filters Introduction to Kalman Filter (KF) Common Applications The Discrete Kalman Filter Example and Common Results Pros and Cons

joshua
Download Presentation

Kalman Filter and Data Streaming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Kalman Filter and Data Streaming Presented By :- Ankur Jain Department of Computer Science 7/21/03

  2. Outline • Kalman Filters • Introduction to Kalman Filter (KF) • Common Applications • The Discrete Kalman Filter • Example and Common Results • Pros and Cons • Application of KF in Data Streaming • Issues in Data Streaming • Recap – Adaptive filters for Data Streaming • Can KF be a solution ? • A possible approach • Challenges and Issues

  3. Introduction to Kalman Filter • KF was developed in 1960 by R.E. Kalman • A prediction/correction algorithm typically used over linear systems • KF finds applications in :- • Prediction of time varying variable based on a linear state model (based on previous measurements) • Estimation of a value where measurements are made in noisy environments (noisy input is converted to less noisy data) • Data fusion (Used for obtaining an estimate of a value whose measurement is obtained from different sources)

  4. Common applications of the KF • Tracking Missiles • Tracking moving objects • Computor Vision • Extracting lip motion from video • Data Smoothing and Curve fitting • Fitting bezier patches to point data • Data Fusion/Integration • Integration of spatio-temporal video segments • Robotics • Robust estimation and sensor data noise reduction • Many Others

  5. The Discrete Kalman Filter (DKF) State Model F: State Transition x: State Vector v: Gaussian Noise (0, Q) Measurement Model H: Observation Relation w: Gaussian Noise (0,R) z: Observation

  6. DKF cont… Prediction Predicted state at the next observation: State prediction covariance: Observation prediction

  7. DKF cont… Kalman Gain Innovation Innovation covariance Kalman Gain

  8. DKF cont… Correction Corrected state estimate Corrected state covariance

  9. Performance of the filter Results obtained on prediction of ordinate value of motion of track ball (Siggraph 2001)

  10. Performance of the filter The latency observed in the above result can be avoided by incorporating a better state model

  11. Performance of the filter Tracking a table tennis ball video sequence (Workshop on Image Analysis for Multimedia Interactive Services 1997)

  12. Interesting Properties of KF from the perspective of data streams • The filter exhibits robustness in presence of occlusions (when the measurements are not available) • DKF along with extended Kalman filter (for non linear systems) can be used to model wide range of state transition functions • Errors in measuring devices, clock incoherencies , network behaviors etc can be modeled in a single error matrix • The errors in the estimations can used to adaptively change the sampling rate of a stream to allow for sensitivity in the final result

  13. Recap …(adaptive filters to save communication resource ) Stream Processor Maintains copy of bound for each object Bound Cache updates [L1, H1] [Li, Hi] … [Ln, Hn] Filters Data Sources Bound Shrinking [L1, H1] V1 updates updates Precision Manager . V2 updates Bound shrinking Selective growing . . Registers Queries Bounded Answers . Bound Shrinking [Ln, Hn] Vn updates Queries + precision constraints Generates streams of updates User Periodically shrinking bound Reallocates bound width and sends growth messages Intercepts update streams, and forwards those that fall outside its bound CQ Evaluator

  14. Drawbacks of this approach • Not sensitive to the input stream • Need for adaptive sampling rate • Network characteristics are assumed be constant and clock incoherence is not handled efficiently • Network dynamics should be incorporated • Seems unsuitable for sensor data • Most of the stream data will show some trend which can be estimated and only critical values be updated • The model does not allow for sensor measurement error

  15. The Kalman Filter Approach • Two Kalman Filters can be installed at each source • KF 1 (Sensitivity) Every time the prediction is larger than a specified threshold δthe sampling rate is increased • KF 2 (estimation) This filter works in the same way as the filter at main processor and updates only critical values when the prediction error at the main processor is larger that a threshold  • The Kalman Filter at the main processor estimates based on the critical update values • Network characteristics and clock mismatches can be modeled in one single matrix which can be updated at the remote source each time significant changes are observed (too many updates will degrade performance !)

  16. Advantages of Using KF • Increased sensitivity in the results • Adaptive sampling rate • If the source values do not show frequent variations in values significant network bandwidth can saved (growth messages are avoided !) • Linear as well as non linear systems can be modeled • Dynamic Network behavior can be incorporated at some cost of network bandwidth

  17. changes sampling rate if prediction error is large values from estimation Results are updated to the user continuously Update of critical values when estimation error is large User User registers queries Periodic update of network condition and clock skews (rare updates) Data Sources CQ Evaluator Main Stream Proc. v1 v2 Vn-1 Vn

  18. Issues and challenges • Construction of matrices for modeling the network behavior • Selecting sampling rates and thresholds • We intend to start conducting with static thresholds • However we lose adaptivity for precision but still hope to gain on usage of resources within a specified precision • Avoiding too much computation at the remote source location as typically sensors have limited computational and power resources • Once the above issues are resolved we would like to extend it to answer aggregate queries such has MAX, AVG, VAR etc. and integration of data from multiple sources • Sensitivity vs Precision vs Adaptation !

More Related