SlideShare a Scribd company logo
1 of 41
L INEAR DYNAMICAL M ODELS


            IIT Kharagpur


 Computer Science and Engineering,
   Indian Institute of Technology
            Kharagpur.




                                     ,

                                         1 / 23
Problems addressed in Tracking
P REDICTION :
                      P   Xi | Y0 = y0 , . . . , Yi−1 = yi−1
DATA A SSOCIATION :
                      The prediction of the object’s state is used
                      to identify the measurements in the current
                      frame.
C ORRECTION :

                      P   Xi | Y0 = y0 , . . . , Yi−1 = yi−1 , Yi = yi




                                                                         ,

                                                                             2 / 23
Independence Assumptions
  Only the immediate past matters.

                    P (Xi | X1 , . . . , Xi−1 )   =   P (Xi | Xi−1 )
  Conditional independence of measurements.

           P   Yi , Yj , . . . , Yk | Xi =   P (Yi | Xi ) P   Yj , . . . , Yk | Xi




                                                                                     ,

                                                                                         3 / 23
Tracking as Inference
                            P    y0 | X0        P (X0 )
       P   X0 | Y0 = y0 =
                                    P      y0
                                P y0 | X0 P (X0 )
                       =
                                P y0 | X0 P (X0 ) dX0

                       ∝    P   y0 | X0         P (X0 )




                                                          ,

                                                              4 / 23
Prediction
  P   Xi | y0 , . . . , yi−1


               =         P     Xi , Xi−1 | y0 , . . . , yi−1 dXi−1




                                                                     ,

                                                                         5 / 23
Prediction
  P   Xi | y0 , . . . , yi−1


               =         P     Xi , Xi−1 | y0 , . . . , yi−1 dXi−1

               =         P     Xi | Xi−1 , y0 , . . . , yi−1   P   Xi−1 | y0 , . . . yi−1 dXi−1




                                                                                                  ,

                                                                                                      5 / 23
Prediction
  P   Xi | y0 , . . . , yi−1


               =         P     Xi , Xi−1 | y0 , . . . , yi−1 dXi−1

               =         P     Xi | Xi−1 , y0 , . . . , yi−1   P   Xi−1 | y0 , . . . yi−1 dXi−1

               =         P (Xi | Xi−1 ) P          Xi−1 | y0 , . . . yi−1 dXi−1




                                                                                                  ,

                                                                                                      5 / 23
Correction
P   Xi | y0 , . . . , yi−1 , yi

                       P Xi , y0 , . . . , yi−1 , yi
                  =
                        P y0 , . . . , yi−1 , yi




                                                       ,

                                                           6 / 23
Correction
P   Xi | y0 , . . . , yi−1 , yi

                       P Xi , y0 , . . . , yi−1 , yi
                  =
                        P y0 , . . . , yi−1 , yi
                       P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P   y0 , . . . , yi−1
                  =
                                                     P y0 , . . . , yi−1 , yi




                                                                                                      ,

                                                                                                          6 / 23
Correction
P   Xi | y0 , . . . , yi−1 , yi

                      P Xi , y0 , . . . , yi−1 , yi
                  =
                       P y0 , . . . , yi−1 , yi
                      P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1
                  =
                                                    P y0 , . . . , yi−1 , yi
                                                                     P y0 , . . . , yi−1
                  =   P yi | Xi P Xi | y0 , . . . , yi−1
                                                                   P y0 , . . . , yi−1 , yi



                                                                                                   ,

                                                                                                       6 / 23
Correction
P   Xi | y0 , . . . , yi−1 , yi

                      P Xi , y0 , . . . , yi−1 , yi
                  =
                       P y0 , . . . , yi−1 , yi
                      P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1
                  =
                                                    P y0 , . . . , yi−1 , yi
                                                                     P y0 , . . . , yi−1
                  =   P yi | Xi P Xi | y0 , . . . , yi−1
                                                                   P y0 , . . . , yi−1 , yi
                        P yi | Xi P Xi | y0 , . . . , yi−1
                  =
                       P yi | Xi P Xi | y0 , . . . , yi−1 dXi
                                                                                                   ,

                                                                                                       6 / 23
Linear Dynamic Models
               x∼      N   µ, Σ

            xi ∼   N   Di xi−1 ; Σdi
            yi ∼   N   Mi xi ; Σmi




                                       ,

                                           7 / 23
Kalman Filtering
The dynamic model:
                                  
                                  
                                                    xi ∼      N   di xi−1 , σ2i
                                                                              d
           Gaussian Distributions 
                                  
                                  
           (Normal Distributions) 
                                  
                                                               N   mi xi , σ2 i
                                  
                                  
                                                    yi ∼                   m

Tracking implies maintaining a representation of:

                               P   Xi | y0 , . . . , yi−1
                           P   Xi−1 | y0 , . . . , yi−1 , yi




                                                                                   ,

                                                                                       8 / 23
Notation
What we have to estimate:
                     −
                   Xi       σi−   P   Xi | y0 , . . . , yi−1
                     +
                   Xi       σi+   P   Xi | y0 , . . . , yi−1 , yi

What we know:
                     +    +
                   Xi−1 σi−1      P     Xi−1 | y0 , . . . , yi−1




                                                                    ,

                                                                        9 / 23
Tricks with the integrals
A new notation:
                                           2
                                    x−µ
                                   
                  g x ; µ, v = exp −
                                           
                                            
                                           
                                            
                                     2v    




                                                ,

                                                    10 / 23
Tricks with the integrals
A new notation:
                                                2
                                       x−µ
                                      
                     g x ; µ, v = exp −
                                                
                                                 
                                                
                                                 
                                        2v      

Some convenient transformations:
                    g x ; µ, v     = g x − µ ; 0, v




                                                      ,

                                                          10 / 23
Tricks with the integrals
A new notation:
                                                   2
                                       x−µ
                                      
                     g x ; µ, v = exp −
                                                   
                                                    
                                                   
                                                    
                                        2v         

Some convenient transformations:
                    g x ; µ, v     = g x − µ ; 0, v

                     g(m ; n, v)   = g(n ; m, v)




                                                        ,

                                                            10 / 23
Tricks with the integrals
A new notation:
                                                     2
                                       x−µ
                                      
                     g x ; µ, v = exp −
                                                     
                                                      
                                                     
                                                      
                                        2v           

Some convenient transformations:
                    g x ; µ, v     = g x − µ ; 0, v

                     g(m ; n, v)   = g(n ; m, v)

                                            µ v
                    g ax ; µ, v    = gx ;   a , a2




                                                          ,

                                                              10 / 23
Tricks with Integrals
     ∞
          g x − u ; µ, va g u ; 0, vb du ∝
     −∞
                                             g x ; µ, v2 + v2
                                                       a    b




                                                                ,

                                                                    11 / 23
Tricks with Integrals
      ∞
          g x − u ; µ, va g u ; 0, vb du ∝
     −∞
                                             g x ; µ, v2 + v2
                                                       a    b




                                     ad + cb bd
   g(x ; a, b) g(x ; c, d) = g x ;          ,       f (a, b, c, d)
                                      b+d b+d




                                                                     ,

                                                                         11 / 23
Prediction                                            P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P   Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞




                                                                                 ,

                                                                                     12 / 23
Prediction                                            P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P   Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞
                                                +   +       2
    ∝    g Xi ; di Xi−1 , σ2i
                           d      g Xi−1 ; Xi−1 , σi−1           dXi−1




                                                                                 ,

                                                                                     12 / 23
Prediction                                            P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P   Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞
                                                +   +       2
    ∝    g Xi ; di Xi−1 , σ2i
                           d      g Xi−1 ; Xi−1 , σi−1           dXi−1
                                                +  +             2
    ∝   g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1
                            d                                        dXi−1




                                                                                 ,

                                                                                     12 / 23
Prediction                                            P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P   Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞
                                                +   +       2
    ∝    g Xi ; di Xi−1 , σ2i
                           d      g Xi−1 ; Xi−1 , σi−1              dXi−1
                                                +  +                2
    ∝   g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1
                            d                                           dXi−1
                         +                          +           2
    ∝   g Xi −di u + Xi−1       ; 0, σ2i g u ; 0, σi−1
                                      d                              du




                                                                                 ,

                                                                                     12 / 23
Prediction                                             P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P    Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞
                                                 +   +        2
    ∝    g Xi ; di Xi−1 , σ2i
                           d       g Xi−1 ; Xi−1 , σi−1               dXi−1
                                                 + +                  2
    ∝   g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1
                            d                                             dXi−1
                         +                           +            2
    ∝   g Xi −di u + Xi−1        ; 0, σ2i g u ; 0, σi−1
                                       d                               du
                             +                +           2
    ∝   g Xi −di u ; di Xi−1 , σ2i g u ; 0, σi−1
                                d                             du




                                                                                  ,

                                                                                      12 / 23
Prediction                                             P Xi | y0 , . . . , yi−1
        ∞
    =        P (Xi | Xi−1 ) P    Xi−1 | y0 , . . . , yi−1 dXi−1
        −∞
                                                 +   +        2
    ∝    g Xi ; di Xi−1 , σ2i
                           d       g Xi−1 ; Xi−1 , σi−1               dXi−1
                                                 + +                  2
    ∝   g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1
                            d                                             dXi−1
                         +                           +            2
    ∝   g Xi −di u + Xi−1        ; 0, σ2i g u ; 0, σi−1
                                       d                               du
                             +                +           2
    ∝   g Xi −di u ; di Xi−1 , σ2i g u ; 0, σi−1
                                d                             du
                        +                     +          2
    ∝   g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1
                             d                                dv


                                                                                  ,

                                                                                      12 / 23
Prediction                                                              1-D state vector
P   Xi | y0 , . . . , yi−1

                                            +                      +    2
                   ∝         g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1
                                                  d                         dv

                                        +          +     2
                       ∝ g Xi ; di X0 , σ2i + di σi−1
                                         d




                                                                                     ,

                                                                                         13 / 23
Prediction                                                              1-D state vector
P   Xi | y0 , . . . , yi−1

                                               +                   +    2
                   ∝         g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1
                                                  d                         dv

                                          +        +       2
                       ∝ g Xi ; di X0 , σ2i + di σi−1
                                         d




                                       −             +
                                     Xi        = di Xi−1
                                           2                     2
                                                            +
                                    σi−1
                                      −
                                               = σ2i + di σi−1
                                                  d




                                                                                     ,

                                                                                         13 / 23
Correction                                                                        1-D state vector

                                                 P yi | Xi P Xi | y0 , . . . , yi−1
      P    Xi | y0 , . . . , yi−1 , yi =
                                                 P yi | Xi P Xi | y0 , . . . , yi−1       dXi


                                         ∝   P    yi | X i   P   Xi | y0 , . . . , yi−1



We know   P     Xi | y0 , . . . , yi−1
            −
we know   Xi    and σi−




                                                                                                ,

                                                                                                    14 / 23
Correction                                                     1-D state vector

                                                                −          2
   P   Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi−
                                                     m




                                                                               ,

                                                                                   15 / 23
Correction                                                     1-D state vector

                                                                −          2
   P   Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi−
                                                     m



                                                                −          2
                             = g mi Xi ; yi , σ2 i g Xi ; Xi , σi−
                                               m




                                                                               ,

                                                                                   15 / 23
Correction                                                     1-D state vector

                                                                −          2
   P   Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi−
                                                     m



                                                                −          2
                             = g mi Xi ; yi , σ2 i g Xi ; Xi , σi−
                                               m

                                       y i σ2 i 
                                                
                                              m           −       2
                             = gXi ;     , 2  g Xi ; Xi , σi−
                                
                                
                                                
                                     m m i     i
                                                 




                                                                               ,

                                                                                   15 / 23
Correction                                                      1-D state vector

                                                                 −          2
    P   Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi−
                                                      m



                                                                 −          2
                              = g mi Xi ; yi , σ2 i g Xi ; Xi , σi−
                                                m

                                        y i σ2 i 
                                                 
                                               m           −       2
                              = gXi ;     , 2  g Xi ; Xi , σi−
                                 
                                 
                                                 
                                      m m i     i
                                                  


        −                     2                                          2    
        Xi σ2 + mi y σ −
             mi
                                                             σ2 i σi−
                                                                m
                                                                                 
  X+ = 
                         i
                                               σi+ =
       
                    i
                                 
                                                        
                                                                                
                                                                                 
                                                                               
   i
                                                                              
        σ2 + m2 σ − 2                                                          2
                                                       
                                                             σ2 i + m2 σi−
                                
                                                        
                                                                                
                                                                                 
            mi   i     i                                      m      i




                                                                                     ,

                                                                                         15 / 23
A general state vector                                    Kalman Filtering
DYNAMIC M ODEL
                       xi ∼   N   Di xi−1 , Σdi
                       yi ∼   N   Mi xi , Σmi
S TART A SSUMPTIONS   x− and Σ− are known.
                       0      0

U PDATE E QUATIONS

      P REDICTION :                               C ORRECTION :
     x − = Di x +
       i        i−1                   Ki = Σ− Mi Mi Σ− Mi + Σmi
                                                                           −1
                                            i        i

     Σ− = Σdi + Di Σ+ Di
      i             i−1               x+ = x− + Ki yi − Mi x−
                                       i    i               i



                                      Σ+ = [ I d − Ki Mi ] Σ−
                                       i                    i


                                                                       ,

                                                                           16 / 23
Forward-Backward Smoothing
F ORWARD -BACKWARD F ILTER :                     P       Xi | y0 , . . . , yN

         P   Xi , yi+1 , . . . , yN | y0 , . . . , yi        P     y0 , . . . , yi
     =
                               P      y0 , . . . , yN
         P   yi+1 , . . . , yN | Xi , y0 , . . . , yi        P     Xi | y0 , . . . , yi        P       y0 , . . . , yi
     =
                                               P        y0 , . . . , yN
         P   yi+1 , . . . , yN | Xi     P Xi | y0 , . . . , yi P                     y0 , . . . , yi
     =
                                       P y0 , . . . , yN
     =   P   Xi | yi+1 , . . . , yN     P Xi | y0 , . . . , yi α


                                                                                                                         ,

                                                                                                                             17 / 23
Forward-Backward Smoothing
F ORWARD -BACKWARD F ILTER :          P    Xi | y0 , . . . , yN

              =   P   Xi | yi+1 , . . . , yN      P     Xi | y0 , . . . , yi α

where                                                                     
                        P    yi+1 , . . . , yN     P      y0 , . . . , yi 
                  α=
                    
                                                                          
                                                                           
                                                                          
                                                                           
                               P (Xi ) P          y0 , . . . , yN
                    
                                                                          
                                                                           




                                                                                 ,

                                                                                     18 / 23
Combining the Forward-Backward
Dynamics
    Forward dynamics: P Xi | y0 , . . . , yi
    Backward dynamics: P Xi | yi+1 , . . . , yN
    Forward-backward dynamics: P Xi | y0 , . . . , yN
N OTATION :
                          f ,+        f ,+
    Forward dynamics: Xi         and Σi
                                                        b,−
    Backward dynamics: Measurement is Xb with mean Xi
                                       i                      and Σb,−
                                                                   i
                                          ∗
    Forward-Backward dynamics: Xi and Σ∗
                                       i




                                                                         ,

                                                                             19 / 23
If we consider the backward dynamics as measurements, then the forward
dynamics would give the state just before the measurement comes in:




                                     F ORWARD -BACKWARD SMOOTHING
K ALMAN U PDATE EQUATIONS            ( CORRECTION )
( CORRECTION )
                                                   f ,+     f ,+             −1
                                −1
                                         Ki∗ = Σi         Σi       + Σb,−
                                                                      i
Ki = Σ− Mi Mi Σ− Mi + Σmi
      i        i
                                           ∗     f ,+                 b,−         f ,+
                                         Xi = Xi          + Ki X i          − Xi
 +    −                −
xi = xi + Ki yi − Mi xi
                                                                    f ,+
                                         Σ∗ = [ I − Ki ] Σi
Σ+ = [ I d − Ki Mi ] Σ−
 i                    i
                                          i




                                                                                         ,

                                                                                             20 / 23
Priors




         ,

             21 / 23
Smoothing over an interval




                             ,

                                 22 / 23
Data Association
N EAREST N EIGHBOURS
The r th region offers a measurement yir
We choose the region with the best value of

                              P    Yi = yir | y0 , . . . , yi−1



          =     P   Yi = yir | Xi , y0 , . . . , yi−1   P    Xi | y0 , . . . , yi−1 dXi

          =     P   Yi = yir | Xi     P     Xi | y0 , . . . , yi−1 dXi

The Kalman filter is used to compute           P    Yi = yir | y0 , . . . , yi−1



                                                                                          ,

                                                                                              23 / 23

More Related Content

What's hot

Introduction to Stochastic calculus
Introduction to Stochastic calculusIntroduction to Stochastic calculus
Introduction to Stochastic calculusAshwin Rao
 
Unit Circle - Trigonometry
Unit Circle - TrigonometryUnit Circle - Trigonometry
Unit Circle - TrigonometrySimon Borgert
 
On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...Nikita V. Artamonov
 
Logit stick-breaking priors for partially exchangeable count data
Logit stick-breaking priors for partially exchangeable count dataLogit stick-breaking priors for partially exchangeable count data
Logit stick-breaking priors for partially exchangeable count dataTommaso Rigon
 
Actuarial Science Reference Sheet
Actuarial Science Reference SheetActuarial Science Reference Sheet
Actuarial Science Reference SheetDaniel Nolan
 
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...On Foundations of Parameter Estimation for Generalized Partial Linear Models ...
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...SSA KPI
 
New Mathematical Tools for the Financial Sector
New Mathematical Tools for the Financial SectorNew Mathematical Tools for the Financial Sector
New Mathematical Tools for the Financial SectorSSA KPI
 
Regression Theory
Regression TheoryRegression Theory
Regression TheorySSA KPI
 
ABC-Xian
ABC-XianABC-Xian
ABC-XianDeb Roy
 
Huang_presentation.pdf
Huang_presentation.pdfHuang_presentation.pdf
Huang_presentation.pdfgrssieee
 
An Introduction to HSIC for Independence Testing
An Introduction to HSIC for Independence TestingAn Introduction to HSIC for Independence Testing
An Introduction to HSIC for Independence TestingYuchi Matsuoka
 
ABC: How Bayesian can it be?
ABC: How Bayesian can it be?ABC: How Bayesian can it be?
ABC: How Bayesian can it be?Christian Robert
 

What's hot (19)

Introduction to Stochastic calculus
Introduction to Stochastic calculusIntroduction to Stochastic calculus
Introduction to Stochastic calculus
 
Trig identities
Trig identitiesTrig identities
Trig identities
 
Unit Circle - Trigonometry
Unit Circle - TrigonometryUnit Circle - Trigonometry
Unit Circle - Trigonometry
 
1
11
1
 
On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...On the solvability of a system of forward-backward linear equations with unbo...
On the solvability of a system of forward-backward linear equations with unbo...
 
Image denoising
Image denoisingImage denoising
Image denoising
 
rinko2011-agh
rinko2011-aghrinko2011-agh
rinko2011-agh
 
rinko2010
rinko2010rinko2010
rinko2010
 
Tprimal agh
Tprimal aghTprimal agh
Tprimal agh
 
Logit stick-breaking priors for partially exchangeable count data
Logit stick-breaking priors for partially exchangeable count dataLogit stick-breaking priors for partially exchangeable count data
Logit stick-breaking priors for partially exchangeable count data
 
Actuarial Science Reference Sheet
Actuarial Science Reference SheetActuarial Science Reference Sheet
Actuarial Science Reference Sheet
 
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...On Foundations of Parameter Estimation for Generalized Partial Linear Models ...
On Foundations of Parameter Estimation for Generalized Partial Linear Models ...
 
Fdtd
FdtdFdtd
Fdtd
 
New Mathematical Tools for the Financial Sector
New Mathematical Tools for the Financial SectorNew Mathematical Tools for the Financial Sector
New Mathematical Tools for the Financial Sector
 
Regression Theory
Regression TheoryRegression Theory
Regression Theory
 
ABC-Xian
ABC-XianABC-Xian
ABC-Xian
 
Huang_presentation.pdf
Huang_presentation.pdfHuang_presentation.pdf
Huang_presentation.pdf
 
An Introduction to HSIC for Independence Testing
An Introduction to HSIC for Independence TestingAn Introduction to HSIC for Independence Testing
An Introduction to HSIC for Independence Testing
 
ABC: How Bayesian can it be?
ABC: How Bayesian can it be?ABC: How Bayesian can it be?
ABC: How Bayesian can it be?
 

Viewers also liked

Certificates of appreciation and trophies
Certificates of appreciation and trophiesCertificates of appreciation and trophies
Certificates of appreciation and trophiesSteve Vorster
 
Slideshare 069
Slideshare 069Slideshare 069
Slideshare 069LLRC
 
John deere 9550 and 9550 SH self-p rolled combine parts catalog
John deere 9550 and 9550 SH self-p rolled combine parts catalogJohn deere 9550 and 9550 SH self-p rolled combine parts catalog
John deere 9550 and 9550 SH self-p rolled combine parts catalogPartCatalogs Net
 
7th math c2 -l45
7th math c2 -l457th math c2 -l45
7th math c2 -l45jdurst65
 
Breaking through the Barriers
Breaking through the BarriersBreaking through the Barriers
Breaking through the BarriersDalia Abdelmegeed
 
Automotive part production capability - Bluestar Mould Group
Automotive part production capability - Bluestar Mould GroupAutomotive part production capability - Bluestar Mould Group
Automotive part production capability - Bluestar Mould GroupHuy Dickens
 
Как выбрать место для жизни? Как купить дом в селе?
Как выбрать место для жизни? Как купить дом в селе?Как выбрать место для жизни? Как купить дом в селе?
Как выбрать место для жизни? Как купить дом в селе?Andrey Bobrovitskiy
 
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIAL
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIALLA INVESTIGACIÓN EN EDUCACIÓN ESPECIAL
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIALFrancisco Vela Mota
 
Norppa lähellämme
Norppa lähellämmeNorppa lähellämme
Norppa lähellämmeVillha
 
Azure Active Directory problématique Web SSO
Azure Active Directory problématique Web SSOAzure Active Directory problématique Web SSO
Azure Active Directory problématique Web SSOSamir Arezki ☁
 

Viewers also liked (16)

scan0008
scan0008scan0008
scan0008
 
Certificates of appreciation and trophies
Certificates of appreciation and trophiesCertificates of appreciation and trophies
Certificates of appreciation and trophies
 
Sucesiones geometricas-matematicas
Sucesiones geometricas-matematicasSucesiones geometricas-matematicas
Sucesiones geometricas-matematicas
 
Slideshare 069
Slideshare 069Slideshare 069
Slideshare 069
 
John deere 9550 and 9550 SH self-p rolled combine parts catalog
John deere 9550 and 9550 SH self-p rolled combine parts catalogJohn deere 9550 and 9550 SH self-p rolled combine parts catalog
John deere 9550 and 9550 SH self-p rolled combine parts catalog
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
Sismos
SismosSismos
Sismos
 
7th math c2 -l45
7th math c2 -l457th math c2 -l45
7th math c2 -l45
 
Mikes portfolio
Mikes portfolioMikes portfolio
Mikes portfolio
 
The place we live in
The place we live inThe place we live in
The place we live in
 
Breaking through the Barriers
Breaking through the BarriersBreaking through the Barriers
Breaking through the Barriers
 
Automotive part production capability - Bluestar Mould Group
Automotive part production capability - Bluestar Mould GroupAutomotive part production capability - Bluestar Mould Group
Automotive part production capability - Bluestar Mould Group
 
Как выбрать место для жизни? Как купить дом в селе?
Как выбрать место для жизни? Как купить дом в селе?Как выбрать место для жизни? Как купить дом в селе?
Как выбрать место для жизни? Как купить дом в селе?
 
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIAL
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIALLA INVESTIGACIÓN EN EDUCACIÓN ESPECIAL
LA INVESTIGACIÓN EN EDUCACIÓN ESPECIAL
 
Norppa lähellämme
Norppa lähellämmeNorppa lähellämme
Norppa lähellämme
 
Azure Active Directory problématique Web SSO
Azure Active Directory problématique Web SSOAzure Active Directory problématique Web SSO
Azure Active Directory problématique Web SSO
 

More from Krishna Karri (16)

11 mm91r05
11 mm91r0511 mm91r05
11 mm91r05
 
Translational health research
Translational health researchTranslational health research
Translational health research
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Lecture 10h
Lecture 10hLecture 10h
Lecture 10h
 
Lecture 9h
Lecture 9hLecture 9h
Lecture 9h
 
Lecture9
Lecture9Lecture9
Lecture9
 
Em
EmEm
Em
 
Segclus
SegclusSegclus
Segclus
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 

Linear

  • 1. L INEAR DYNAMICAL M ODELS IIT Kharagpur Computer Science and Engineering, Indian Institute of Technology Kharagpur. , 1 / 23
  • 2. Problems addressed in Tracking P REDICTION : P Xi | Y0 = y0 , . . . , Yi−1 = yi−1 DATA A SSOCIATION : The prediction of the object’s state is used to identify the measurements in the current frame. C ORRECTION : P Xi | Y0 = y0 , . . . , Yi−1 = yi−1 , Yi = yi , 2 / 23
  • 3. Independence Assumptions Only the immediate past matters. P (Xi | X1 , . . . , Xi−1 ) = P (Xi | Xi−1 ) Conditional independence of measurements. P Yi , Yj , . . . , Yk | Xi = P (Yi | Xi ) P Yj , . . . , Yk | Xi , 3 / 23
  • 4. Tracking as Inference P y0 | X0 P (X0 ) P X0 | Y0 = y0 = P y0 P y0 | X0 P (X0 ) = P y0 | X0 P (X0 ) dX0 ∝ P y0 | X0 P (X0 ) , 4 / 23
  • 5. Prediction P Xi | y0 , . . . , yi−1 = P Xi , Xi−1 | y0 , . . . , yi−1 dXi−1 , 5 / 23
  • 6. Prediction P Xi | y0 , . . . , yi−1 = P Xi , Xi−1 | y0 , . . . , yi−1 dXi−1 = P Xi | Xi−1 , y0 , . . . , yi−1 P Xi−1 | y0 , . . . yi−1 dXi−1 , 5 / 23
  • 7. Prediction P Xi | y0 , . . . , yi−1 = P Xi , Xi−1 | y0 , . . . , yi−1 dXi−1 = P Xi | Xi−1 , y0 , . . . , yi−1 P Xi−1 | y0 , . . . yi−1 dXi−1 = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . yi−1 dXi−1 , 5 / 23
  • 8. Correction P Xi | y0 , . . . , yi−1 , yi P Xi , y0 , . . . , yi−1 , yi = P y0 , . . . , yi−1 , yi , 6 / 23
  • 9. Correction P Xi | y0 , . . . , yi−1 , yi P Xi , y0 , . . . , yi−1 , yi = P y0 , . . . , yi−1 , yi P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1 = P y0 , . . . , yi−1 , yi , 6 / 23
  • 10. Correction P Xi | y0 , . . . , yi−1 , yi P Xi , y0 , . . . , yi−1 , yi = P y0 , . . . , yi−1 , yi P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1 = P y0 , . . . , yi−1 , yi P y0 , . . . , yi−1 = P yi | Xi P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1 , yi , 6 / 23
  • 11. Correction P Xi | y0 , . . . , yi−1 , yi P Xi , y0 , . . . , yi−1 , yi = P y0 , . . . , yi−1 , yi P yi | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1 = P y0 , . . . , yi−1 , yi P y0 , . . . , yi−1 = P yi | Xi P Xi | y0 , . . . , yi−1 P y0 , . . . , yi−1 , yi P yi | Xi P Xi | y0 , . . . , yi−1 = P yi | Xi P Xi | y0 , . . . , yi−1 dXi , 6 / 23
  • 12. Linear Dynamic Models x∼ N µ, Σ xi ∼ N Di xi−1 ; Σdi yi ∼ N Mi xi ; Σmi , 7 / 23
  • 13. Kalman Filtering The dynamic model:    xi ∼ N di xi−1 , σ2i d Gaussian Distributions    (Normal Distributions)   N mi xi , σ2 i    yi ∼ m Tracking implies maintaining a representation of: P Xi | y0 , . . . , yi−1 P Xi−1 | y0 , . . . , yi−1 , yi , 8 / 23
  • 14. Notation What we have to estimate: − Xi σi− P Xi | y0 , . . . , yi−1 + Xi σi+ P Xi | y0 , . . . , yi−1 , yi What we know: + + Xi−1 σi−1 P Xi−1 | y0 , . . . , yi−1 , 9 / 23
  • 15. Tricks with the integrals A new notation: 2  x−µ  g x ; µ, v = exp −        2v  , 10 / 23
  • 16. Tricks with the integrals A new notation: 2  x−µ  g x ; µ, v = exp −        2v  Some convenient transformations: g x ; µ, v = g x − µ ; 0, v , 10 / 23
  • 17. Tricks with the integrals A new notation: 2  x−µ  g x ; µ, v = exp −        2v  Some convenient transformations: g x ; µ, v = g x − µ ; 0, v g(m ; n, v) = g(n ; m, v) , 10 / 23
  • 18. Tricks with the integrals A new notation: 2  x−µ  g x ; µ, v = exp −        2v  Some convenient transformations: g x ; µ, v = g x − µ ; 0, v g(m ; n, v) = g(n ; m, v) µ v g ax ; µ, v = gx ; a , a2 , 10 / 23
  • 19. Tricks with Integrals ∞ g x − u ; µ, va g u ; 0, vb du ∝ −∞ g x ; µ, v2 + v2 a b , 11 / 23
  • 20. Tricks with Integrals ∞ g x − u ; µ, va g u ; 0, vb du ∝ −∞ g x ; µ, v2 + v2 a b ad + cb bd g(x ; a, b) g(x ; c, d) = g x ; , f (a, b, c, d) b+d b+d , 11 / 23
  • 21. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ , 12 / 23
  • 22. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ + + 2 ∝ g Xi ; di Xi−1 , σ2i d g Xi−1 ; Xi−1 , σi−1 dXi−1 , 12 / 23
  • 23. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ + + 2 ∝ g Xi ; di Xi−1 , σ2i d g Xi−1 ; Xi−1 , σi−1 dXi−1 + + 2 ∝ g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1 d dXi−1 , 12 / 23
  • 24. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ + + 2 ∝ g Xi ; di Xi−1 , σ2i d g Xi−1 ; Xi−1 , σi−1 dXi−1 + + 2 ∝ g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1 d dXi−1 + + 2 ∝ g Xi −di u + Xi−1 ; 0, σ2i g u ; 0, σi−1 d du , 12 / 23
  • 25. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ + + 2 ∝ g Xi ; di Xi−1 , σ2i d g Xi−1 ; Xi−1 , σi−1 dXi−1 + + 2 ∝ g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1 d dXi−1 + + 2 ∝ g Xi −di u + Xi−1 ; 0, σ2i g u ; 0, σi−1 d du + + 2 ∝ g Xi −di u ; di Xi−1 , σ2i g u ; 0, σi−1 d du , 12 / 23
  • 26. Prediction P Xi | y0 , . . . , yi−1 ∞ = P (Xi | Xi−1 ) P Xi−1 | y0 , . . . , yi−1 dXi−1 −∞ + + 2 ∝ g Xi ; di Xi−1 , σ2i d g Xi−1 ; Xi−1 , σi−1 dXi−1 + + 2 ∝ g Xi −di Xi−1 ; 0, σ2i g Xi−1 −Xi−1 ; 0, σi−1 d dXi−1 + + 2 ∝ g Xi −di u + Xi−1 ; 0, σ2i g u ; 0, σi−1 d du + + 2 ∝ g Xi −di u ; di Xi−1 , σ2i g u ; 0, σi−1 d du + + 2 ∝ g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1 d dv , 12 / 23
  • 27. Prediction 1-D state vector P Xi | y0 , . . . , yi−1 + + 2 ∝ g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1 d dv + + 2 ∝ g Xi ; di X0 , σ2i + di σi−1 d , 13 / 23
  • 28. Prediction 1-D state vector P Xi | y0 , . . . , yi−1 + + 2 ∝ g Xi −v ; di Xi−1 , σ2i g v ; 0, di σi−1 d dv + + 2 ∝ g Xi ; di X0 , σ2i + di σi−1 d − + Xi = di Xi−1 2 2 + σi−1 − = σ2i + di σi−1 d , 13 / 23
  • 29. Correction 1-D state vector P yi | Xi P Xi | y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 , yi = P yi | Xi P Xi | y0 , . . . , yi−1 dXi ∝ P yi | X i P Xi | y0 , . . . , yi−1 We know P Xi | y0 , . . . , yi−1 − we know Xi and σi− , 14 / 23
  • 30. Correction 1-D state vector − 2 P Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi− m , 15 / 23
  • 31. Correction 1-D state vector − 2 P Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi− m − 2 = g mi Xi ; yi , σ2 i g Xi ; Xi , σi− m , 15 / 23
  • 32. Correction 1-D state vector − 2 P Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi− m − 2 = g mi Xi ; yi , σ2 i g Xi ; Xi , σi− m y i σ2 i    m  − 2 = gXi ; , 2  g Xi ; Xi , σi−      m m i i  , 15 / 23
  • 33. Correction 1-D state vector − 2 P Xi | y0 , . . . , yi−1 , yi ∝ g yi ; mi Xi , σ2 i g Xi ; Xi , σi− m − 2 = g mi Xi ; yi , σ2 i g Xi ; Xi , σi− m y i σ2 i    m  − 2 = gXi ; , 2  g Xi ; Xi , σi−      m m i i   − 2  2   Xi σ2 + mi y σ − mi   σ2 i σi− m  X+ =  i σi+ =   i          i      σ2 + m2 σ − 2 2    σ2 i + m2 σi−        mi i i m i , 15 / 23
  • 34. A general state vector Kalman Filtering DYNAMIC M ODEL xi ∼ N Di xi−1 , Σdi yi ∼ N Mi xi , Σmi S TART A SSUMPTIONS x− and Σ− are known. 0 0 U PDATE E QUATIONS P REDICTION : C ORRECTION : x − = Di x + i i−1 Ki = Σ− Mi Mi Σ− Mi + Σmi −1 i i Σ− = Σdi + Di Σ+ Di i i−1 x+ = x− + Ki yi − Mi x− i i i Σ+ = [ I d − Ki Mi ] Σ− i i , 16 / 23
  • 35. Forward-Backward Smoothing F ORWARD -BACKWARD F ILTER : P Xi | y0 , . . . , yN P Xi , yi+1 , . . . , yN | y0 , . . . , yi P y0 , . . . , yi = P y0 , . . . , yN P yi+1 , . . . , yN | Xi , y0 , . . . , yi P Xi | y0 , . . . , yi P y0 , . . . , yi = P y0 , . . . , yN P yi+1 , . . . , yN | Xi P Xi | y0 , . . . , yi P y0 , . . . , yi = P y0 , . . . , yN = P Xi | yi+1 , . . . , yN P Xi | y0 , . . . , yi α , 17 / 23
  • 36. Forward-Backward Smoothing F ORWARD -BACKWARD F ILTER : P Xi | y0 , . . . , yN = P Xi | yi+1 , . . . , yN P Xi | y0 , . . . , yi α where    P yi+1 , . . . , yN P y0 , . . . , yi  α=        P (Xi ) P y0 , . . . , yN     , 18 / 23
  • 37. Combining the Forward-Backward Dynamics Forward dynamics: P Xi | y0 , . . . , yi Backward dynamics: P Xi | yi+1 , . . . , yN Forward-backward dynamics: P Xi | y0 , . . . , yN N OTATION : f ,+ f ,+ Forward dynamics: Xi and Σi b,− Backward dynamics: Measurement is Xb with mean Xi i and Σb,− i ∗ Forward-Backward dynamics: Xi and Σ∗ i , 19 / 23
  • 38. If we consider the backward dynamics as measurements, then the forward dynamics would give the state just before the measurement comes in: F ORWARD -BACKWARD SMOOTHING K ALMAN U PDATE EQUATIONS ( CORRECTION ) ( CORRECTION ) f ,+ f ,+ −1 −1 Ki∗ = Σi Σi + Σb,− i Ki = Σ− Mi Mi Σ− Mi + Σmi i i ∗ f ,+ b,− f ,+ Xi = Xi + Ki X i − Xi + − − xi = xi + Ki yi − Mi xi f ,+ Σ∗ = [ I − Ki ] Σi Σ+ = [ I d − Ki Mi ] Σ− i i i , 20 / 23
  • 39. Priors , 21 / 23
  • 40. Smoothing over an interval , 22 / 23
  • 41. Data Association N EAREST N EIGHBOURS The r th region offers a measurement yir We choose the region with the best value of P Yi = yir | y0 , . . . , yi−1 = P Yi = yir | Xi , y0 , . . . , yi−1 P Xi | y0 , . . . , yi−1 dXi = P Yi = yir | Xi P Xi | y0 , . . . , yi−1 dXi The Kalman filter is used to compute P Yi = yir | y0 , . . . , yi−1 , 23 / 23