Schwach nichtlineare wertekontinuierliche Systeme

Schwach nichtlineare wertekontinuierliche Systeme

Lineare Vs. Nichtlineare Systeme

LinearNichtlinear
Systemabbildungxβ€Ύk+1=Akxβ€Ύk+Bk(uβ€Ύk+wβ€Ύk)\underline{x}_{k+1} = \mathbf{A}_k \underline{x}_k + \mathbf{B}_k (\underline{u}_k + \underline{w}_k)xβ€Ύk+1=aβ€Ύk(xβ€Ύk,uβ€Ύk,wβ€Ύk)\underline{x}_{k+1} = \underline{a}_k(\underline{x}_k, \underline{u}_k, \underline{w}_k)
Messabbildungyβ€Ύk=Hkxβ€Ύk+vβ€Ύk\underline{y}_{k} = \mathbf{H}_k \underline{x}_k + \underline{v}_kyβ€Ύk=hβ€Ύk(xβ€Ύk,vβ€Ύk)\underline{y}_k = \underline{h}_k (\underline{x}_k, \underline{v}_k)

Extended Kalman Filter (EKF)

πŸ’‘ Idee: Linearisierung mit Tylorentwicklung 1. Ordnung um die beste verfΓΌgbare SchΓ€tzung, um den (linear) Kalman-Filter zu vewenden.

  • Systemabbildung

    aβ€Ύk(xβ€Ύk,uβ€Ύk)β‰ˆaβ€Ύk(xβ€Ύβ€Ύk,uβ€Ύβ€Ύk)⏟Nomialteil+Ak(xβ€Ύkβˆ’xβ€Ύβ€Ύk)+Bk(uβ€Ύkβˆ’uβ€Ύβ€Ύk)⏟Differentialteil \underline{a}_{k}\left(\underline{x}_{k}, \underline{u}_{k}\right) \approx \underbrace{\underline{a}_{k}\left(\underline{\overline{x}}_k, \underline{\overline{u}}_k\right)}_{\text{Nomialteil}}+\underbrace{\mathbf{A}_{k}\left(\underline{x}_k-\underline{\overline{x}}_k\right)+\mathbf{B}_{k}\left(\underline{u}_{k}-\underline{\overline{u}}_k\right)}_{\text{Differentialteil}}
  • Messabbildung

    hβ€Ύk(xβ€Ύk,vβ€Ύk)β‰ˆhβ€Ύk(xΛ‰β€Ύk,vΛ‰β€Ύk)⏟Nomialteil+Hkβ‹…(xβ€Ύkβˆ’xΛ‰β€Ύk)+Lkβ‹…(vβ€Ύkβˆ’vΛ‰β€Ύk)⏟Differentialteil \underline{h}_{k}\left(\underline{x}_{k}, \underline{v}_{k}\right) \approx \underbrace{\underline{h}_{k}\left(\underline{\bar{x}}_{k}, \underline{\bar{v}}_{k}\right)}_{\text{Nomialteil}}+ \underbrace{\mathbf{H}_{k} \cdot \left(\underline{x}_{k}-\underline{\bar{x}}_{k}\right)+\mathbf{L}_{k} \cdot\left(\underline{v}_{k}-\underline{\bar{v}}_{k}\right)}_{\text{Differentialteil}}
Üb 7, A2

PrΓ€diktion

  • Berechnung Erwartungswert ΓΌber nichtlineare Funktion

    x^β€Ύk+1p=aβ€Ύk(x^β€Ύke,uβ€Ύ^k) \underline{\hat{x}}_{k+1}^{p}=\underline{a}_{k}\left(\underline{\hat{x}}_{k}^{e}, \hat{\underline{u}}_{k}\right)
  • Berechnung Kovarianzmatrix ΓΌber die Linearisierung

    Ck+1pβ‰ˆAkCkeAk⊀+Ckwβ€²=AkCkeAk⊀+BkCkwBk⊀ \mathbf{C}_{k+1}^{p} \approx \mathbf{A}_{k} \mathbf{C}_{k}^{e} \mathbf{A}_{k}^{\top}+\mathbf{C}_{k}^{w^{\prime}}=\mathbf{A}_{k} \mathbf{C}_{k}^{e} \mathbf{A}_{k}^{\top}+\mathbf{B}_{k} \mathbf{C}_{k}^{w} \mathbf{B}_{k}^{\top}

    mit

    Ak=βˆ‚aβ€Ύk(xβ€Ύk,uβ€Ύk)βˆ‚xβ€Ύk⊀∣xβ€Ύk=x^β€Ύkβˆ’1e,uβ€Ύk=uβ€Ύ^kBk=βˆ‚aβ€Ύk(xβ€Ύk,uβ€Ύk)βˆ‚uβ€Ύk⊀∣xβ€Ύk=x^β€Ύkβˆ’1e,uβ€Ύk=uβ€Ύ^k \mathbf{A}_k = \left.\frac{\partial \underline{a}_{k}\left(\underline{x}_{k}, \underline{u}_{k}\right)}{\partial \underline{x}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k-1}^{e}, \underline{u}_{k}=\hat{\underline{u}}_{k}} \qquad \mathbf{B}_k = \left.\frac{\partial \underline{a}_{k}\left(\underline{x}_{k}, \underline{u}_{k}\right)}{\partial \underline{u}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k-1}^{e}, \underline{u}_{k}=\hat{\underline{u}}_{k}}

Filterung

  • Linearisierung um xβ€Ύk\underline{x}_k und vβ€Ύk\underline{v}_k

    Hk=βˆ‚hβ€Ύk(xβ€Ύk,vβ€Ύk)βˆ‚xβ€Ύk⊀∣xβ€Ύk=x^β€Ύkp,vβ€Ύk=v^β€ΎkLk=βˆ‚hβ€Ύk(xβ€Ύk,vβ€Ύk)βˆ‚vβ€Ύk⊀∣xβ€Ύk=x^β€Ύkp,vβ€Ύk=v^β€Ύk \mathbf{H}_{k}=\left.\frac{\partial \underline{h}_{k}\left(\underline{x}_{k}, \underline{v}_{k}\right)}{\partial \underline{x}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k}^{p}, \underline{v}_{k}=\underline{\hat{v}}_{k}} \qquad \mathbf{L}_{k}=\left.\frac{\partial \underline{h}_{k}\left(\underline{x}_{k}, \underline{v}_{k}\right)}{\partial \underline{v}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k}^{p}, \underline{v}_{k}=\underline{\hat{v}}_{k}}
  • KF Filterung schriit mit Linearisierung

    Kk=CkpHk⊀(LkCkvLk⊀+HkCkpHkT)βˆ’1xβ€Ύ^ke=xβ€Ύ^kp+Kk[yβ€Ύ^kβˆ’hβ€Ύk(xβ€Ύ^kp,vβ€Ύ^k)]=vβ€Ύ mittelwertfreixβ€Ύ^kp+Kk[yβ€Ύ^kβˆ’hβ€Ύk(xβ€Ύ^kp,0)]Cke=Ckpβˆ’KkHkCkp=(Iβˆ’KkHk)Ckp \begin{aligned} \mathbf{K}_{k}&=\mathbf{C}_{k}^{p} \mathbf{H}_{k}^{\top}\left(\mathbf{L}_{k} \mathbf{C}_{k}^{v} \mathbf{L}_{k}^{\top}+\mathbf{H}_{k} \mathbf{C}_{k}^{p} \mathbf{H}_{k}^{T}\right)^{-1} \\\\ \hat{\underline{x}}_{k}^{e}&=\hat{\underline{x}}_{k}^{p}+\mathbf{K}_{k}\left[\hat{\underline{y}}_{k}-\underline{h}_{k}\left(\hat{\underline{x}}_{k}^{p}, \hat{\underline{v}}_{k}\right)\right] \overset{\underline{v} \text{ mittelwertfrei}}{=} \hat{\underline{x}}_{k}^{p}+\mathbf{K}_{k}\left[\hat{\underline{y}}_{k}-\underline{h}_{k}\left(\hat{\underline{x}}_{k}^{p}, 0\right)\right]\\\\ \mathbf{C}_{k}^{e}&=\mathbf{C}_{k}^{p}-\mathbf{K}_{k} \mathbf{H}_{k} \mathbf{C}_{k}^{p} = (\mathbf{I} - \mathbf{K}_{k} \mathbf{H}_{k})\mathbf{C}_{k}^{p} \end{aligned}

(Linear) KF vs. EKF

(Linear) KFEKF
PrΓ€diktionx^β€Ύkp=Akβˆ’1x^β€Ύkβˆ’1e+Bkβˆ’1u^β€Ύkβˆ’1\underline{\hat{x}}_k^p = \mathbf{A}_{k-1}\underline{\hat{x}}_{k-1}^e + \mathbf{B}_{k-1} \underline{\hat{u}}_{k-1}
Ckp=Akβˆ’1Ckβˆ’1eAkβˆ’1⊀+Bkβˆ’1Ckβˆ’1wBkβˆ’1⊀\mathbf{C}_k^p = \mathbf{A}_{k-1} \mathbf{C}_{k-1}^e A_{k-1}^\top + \mathbf{B}_{k-1} \mathbf{C}_{k-1}^w \mathbf{B}_{k-1}^\top
x^β€Ύk+1p=aβ€Ύk(x^β€Ύke,uβ€Ύ^k)\underline{\hat{x}}_{k+1}^{p}=\underline{a}_{k}\left(\underline{\hat{x}}_{k}^{e}, \hat{\underline{u}}_{k}\right)
Ck+1pβ‰ˆAkCkeAk⊀+Ckwβ€²=AkCkeAk⊀+BkCkwBk⊀\mathbf{C}_{k+1}^{p} \approx \mathbf{A}_{k} \mathbf{C}_{k}^{e} \mathbf{A}_{k}^{\top}+\mathbf{C}_{k}^{w^{\prime}}=\mathbf{A}_{k} \mathbf{C}_{k}^{e} \mathbf{A}_{k}^{\top}+\mathbf{B}_{k} \mathbf{C}_{k}^{w} \mathbf{B}_{k}^{\top}
FilterungKk=CkpHk⊀(Ckv+HkCkpHk⊀)βˆ’1\mathbf{K}_k = \mathbf{C}_k^p \mathbf{H}_k^\top (\mathbf{C}_k^v + \mathbf{H}_k \mathbf{C}_k^p \mathbf{H}_k ^\top)^{-1}
x^β€Ύke=x^β€Ύkp+Kk(y^β€Ύkβˆ’Hkx^β€Ύkp)\underline{\hat{x}}_k^e = \underline{\hat{x}}_k^p + \mathbf{K}_k(\underline{\hat{y}}_k - \mathbf{H}_k \underline{\hat{x}}_k^p)
Cke=(Iβˆ’KkHk)Ckp\mathbf{C}_k^e = (\mathbf{I} - \mathbf{K}_k\mathbf{H}_k)\mathbf{C}_k^p
$\begin{aligned}
\mathbf{K}_{k}&=\mathbf{C}_{k}^{p} \mathbf{H}_{k}^{\top}\left(\mathbf{L}_{k} \mathbf{C}_{k}^{v} \mathbf{L}_{k}^{\top}+\mathbf{H}_{k} \mathbf{C}_{k}^{p} \mathbf{H}_{k}^{T}\right)^{-1} \\
\hat{\underline{x}}_{k}^{e}&=\hat{\underline{x}}_{k}^{p}+\mathbf{K}_{k}\left[\hat{\underline{y}}_{k}-\underline{h}_{k}\left(\hat{\underline{x}}_{k}^{p}, \hat{\underline{v}}_{k}\right)\right] \\
\mathbf{C}_{k}^{e}&=\mathbf{C}_{k}^{p}-\mathbf{K}_{k} \mathbf{H}_{k} \mathbf{C}_{k}^{p} = (\mathbf{I} - \mathbf{K}_{k} \mathbf{H}_{k})\mathbf{C}_{k}^{p}
\end{aligned}$
AuxiliaryAk=βˆ‚aβ€Ύk(xβ€Ύk,uβ€Ύk)βˆ‚xβ€Ύk⊀∣xβ€Ύk=x^β€Ύkβˆ’1e,uβ€Ύk=uβ€Ύ^k\mathbf{A}_k = \left.\frac{\partial \underline{a}_{k}\left(\underline{x}_{k}, \underline{u}_{k}\right)}{\partial \underline{x}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k-1}^{e}, \underline{u}_{k}=\hat{\underline{u}}_{k}}
Bk=βˆ‚aβ€Ύk(xβ€Ύk,uβ€Ύk)βˆ‚uβ€Ύk⊀∣xβ€Ύk=x^β€Ύkβˆ’1e,uβ€Ύk=uβ€Ύ^k\mathbf{B}_k = \left.\frac{\partial \underline{a}_{k}\left(\underline{x}_{k}, \underline{u}_{k}\right)}{\partial \underline{u}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k-1}^{e}, \underline{u}_{k}=\hat{\underline{u}}_{k}}
Hk=βˆ‚hβ€Ύk(xβ€Ύk,vβ€Ύk)βˆ‚xβ€Ύk⊀∣xβ€Ύk=x^β€Ύkp,vβ€Ύk=v^β€Ύk\mathbf{H}_{k}=\left.\frac{\partial \underline{h}_{k}\left(\underline{x}_{k}, \underline{v}_{k}\right)}{\partial \underline{x}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k}^{p}, \underline{v}_{k}=\underline{\hat{v}}_{k}}
Lk=βˆ‚hβ€Ύk(xβ€Ύk,vβ€Ύk)βˆ‚vβ€Ύk⊀∣xβ€Ύk=x^β€Ύkp,vβ€Ύk=v^β€Ύk\mathbf{L}_{k}=\left.\frac{\partial \underline{h}_{k}\left(\underline{x}_{k}, \underline{v}_{k}\right)}{\partial \underline{v}_{k}^{\top}}\right|_{\underline{x}_{k}=\underline{\hat{x}}_{k}^{p}, \underline{v}_{k}=\underline{\hat{v}}_{k}}

Probleme

  • Berechnung der posteriore Verteilung nur gut fΓΌr β€œschwache” NichtlinearitΓ€t

  • Linearisierung nur um einen Punkt

  • Linearisiertes System ist i.A. zeitvariant, auch wenn originalsytstem zeitinvariant ist, da Linearisierung vom SchΓ€tzwert abhΓ€ngt.

Kalman Filter in probabilistischer Form

Filterung

(Annahme: xβ€Ύk\underline{x}_k und yβ€Ύk\underline{y}_k sind gemeinsam Gaußverteilt)

  1. Define zβ€Ύ:=[xβ€Ύyβ€Ύ]\underline{z}:=\left[\begin{array}{l} \underline{x} \\ \underline{y} \end{array}\right]

  2. Mittelwert und Varianz von zβ€Ύ\underline{z} berechnen.

    ΞΌβ€Ύz=[ΞΌβ€ΎxΞΌβ€Ύy]=1Lβˆ‘i=1L[xβ€Ύiyβ€Ύi],Cz=1Lβˆ‘i=1L(zβ€Ύiβˆ’ΞΌβ€Ύz)(zβ€Ύiβˆ’ΞΌβ€Ύz)⊀=[CxxCxyCyxCyy] \underline{\mu}_z=\left[\begin{array}{l} \underline{\mu}_x \\ \underline{\mu}_y \end{array}\right]=\frac{1}{L}\sum_{i=1}^L\left[\begin{array}{l} \underline{x}_i \\ \underline{y}_i \end{array}\right], \quad \mathbf{C}_{z} = \frac{1}{L}\sum_{i=1}^L(\underline{z}_i - \underline{\mu}_z)(\underline{z}_i - \underline{\mu}_z)^\top = \left[\begin{array}{ll} \mathbf{C}_{x x} & \mathbf{C}_{x y} \\ \mathbf{C}_{y x} & \mathbf{C}_{y y} \end{array}\right]
  3. Filterung in probabilistischer Form mit Messung yβ€Ύ^\hat{\underline{y}}

    x^β€Ύke=xβ€Ύkp+CxyCyyβˆ’1(y^β€Ύβˆ’ΞΌβ€Ύy)Cke=Ckpβˆ’CxyCyyβˆ’1Cyx \begin{aligned} \underline{\hat{x}}_k^e &= \underline{x}_k^p + \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} (\underline{\hat{y}} - \underline{\mu}_y) \\ \mathbf{C}_k^e &= \mathbf{C}_k^p - \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} \mathbf{C}_{yx} \end{aligned}

Unscented Kalman Filter (UKF)

Üb 7, A3

Unscented Prinzipien

  • Nichtlineare Transformation eines einzelnen Punktes ist einfach
  • Es ist einfach, eine Punktwolke zu finden, deren Stichprobenmittelwert und -varianz mit den Momenten der gegebene Dichte ΓΌbereinstimmen.
  • Es ist einfach, Mittelwert und Varianz einer Punktwolke zu bestimmen

Bsp: additives Rauschen

xβ€Ύk+1=aβ€Ύk(xβ€Ύk)+wβ€Ύkyβ€Ύk=hβ€Ύk(xβ€Ύk)+vβ€Ύk \begin{aligned} \underline{x}_{k+1} &= \underline{a}_{k}(\underline{x}_{k}) + \underline{w}_{k} \\ \underline{y}_{k} &= \underline{h}_{k}(\underline{x}_{k}) + \underline{v}_{k} \end{aligned}

PrΓ€diktion

  1. Samples/Particles/Punkte propagieren

    xβ€Ύkp,i=aβ€Ύkβˆ’1(xβ€Ύkβˆ’1e,i) \underline{x}_{k}^{p, i} = \underline{a}_{k-1}(\underline{x}_{k-1}^{e, i})
  2. Mittelwert und Varianz basierend auf Samples berechnen

    x^β€Ύkp=1Lβˆ‘i=1Lxβ€Ύkp,iCkp=1Lβˆ‘i=1L(xβ€Ύkp,iβˆ’x^β€Ύkp)(xβ€Ύkp,iβˆ’x^β€Ύkp)⊀+Ckw \begin{aligned} \underline{\hat{x}}_{k}^p &= \frac{1}{L} \sum_{i=1}^L \underline{x}_{k}^{p, i} \\ \mathbf{C}_k^p &= \frac{1}{L} \sum_{i=1}^L (\underline{x}_{k}^{p, i} - \underline{\hat{x}}_{k}^p) (\underline{x}_{k}^{p, i} - \underline{\hat{x}}_{k}^p)^\top + \mathbf{C}_k^w \end{aligned}

Fitlerung

  1. Sampling:

    • FΓΌr prioren SchΓ€tzwert: 2N2N btw. 2N+12N+1 Samples auf Hauptachsen fΓΌr Dimension NN

      Bsp: Im skalaren Fall (N=1N=1), 2 Samples:

      >x1=ΞΌp+Οƒpx2=ΞΌpβˆ’Οƒp> > x_1 = \mu_p + \sigma_p \quad x_2 = \mu_p - \sigma_p >
    • Γ„hnlich fΓΌr Samples vom Mess-Rauschen

      Bsp: Im skalaren Fall (N=1N=1), 2 Samples:

      >v1=ΞΌv+Οƒvv2=ΞΌvβˆ’Οƒv> > v_1 = \mu_v + \sigma_v \quad v_2 = \mu_v - \sigma_v >
  2. Punkte Propagation

    yβ€Ύkp,i=hβ€Ύk(xβ€Ύkp,i) \underline{y}_{k}^{p, i} = \underline{h}_{k}(\underline{x}_{k}^{p, i})

    bzw.

    yβ€Ύki,j=hβ€Ύk(xβ€Ύkp,i,vβ€Ύkj) \underline{y}_{k}^{i, j} = \underline{h}_{k}(\underline{x}_{k}^{p, i}, \underline{v}_k^j)
  3. Verbundraum zβ€Ύ=[xβ€Ύyβ€Ύ]\underline{z}=\left[\begin{array}{l} \underline{x} \\ \underline{y} \end{array}\right] erstellen (Annahme: xβ€Ύk\underline{x}_k und yβ€Ύk\underline{y}_k sind gemeinsam Gaußverteilt). Mittelwert und Varianz von zβ€Ύ\underline{z} berechnen.

    ΞΌβ€Ύz=[ΞΌβ€ΎxΞΌβ€Ύy]=1Lβˆ‘i=1L[xβ€Ύiyβ€Ύi],Cz=1Lβˆ‘i=1L(zβ€Ύiβˆ’ΞΌβ€Ύz)(zβ€Ύiβˆ’ΞΌβ€Ύz)⊀=[CxxCxyCyxCyy] \underline{\mu}_z=\left[\begin{array}{l} \underline{\mu}_x \\ \underline{\mu}_y \end{array}\right]=\frac{1}{L}\sum_{i=1}^L\left[\begin{array}{l} \underline{x}_i \\ \underline{y}_i \end{array}\right], \quad \mathbf{C}_{z} = \frac{1}{L}\sum_{i=1}^L(\underline{z}_i - \underline{\mu}_z)(\underline{z}_i - \underline{\mu}_z)^\top = \left[\begin{array}{ll} \mathbf{C}_{x x} & \mathbf{C}_{x y} \\ \mathbf{C}_{y x} & \mathbf{C}_{y y} \end{array}\right]
  4. Filterung in probabilistischer Form mit Messung yβ€Ύ^\hat{\underline{y}}

    x^β€Ύke=xβ€Ύkp+CxyCyyβˆ’1(y^β€Ύβˆ’ΞΌβ€Ύy)Cke=Ckpβˆ’CxyCyyβˆ’1Cyx \begin{aligned} \underline{\hat{x}}_k^e &= \underline{x}_k^p + \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} (\underline{\hat{y}} - \underline{\mu}_y) \\ \mathbf{C}_k^e &= \mathbf{C}_k^p - \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} \mathbf{C}_{yx} \end{aligned}

Sampling

Samples nur auf Hauptachsen: Insgesamt 2N2N btw. 2N+12N+1 (NN: #Dimensionen)

Vorteil von UKF gegen EKF

  • UKF reduziert mΓΆglicherweise den Linearisierungsfehler des EKF
  • Man braucht die Jacobi-Matrizen nicht zu berechnen πŸ‘

Analytische Momente

Üb 7, A4
  1. Verbundraum zβ€Ύ\underline{z} erstellen

    z:=[xy] z := \left[\begin{array}{l} x \\ y \end{array}\right]
  2. Mittelwert von zβ€Ύ\underline{z} berechnen (mithilfe von hΓΆheren Momente der Gaußdichte)

    E{zβ€Ύ}=[x^pE{h(x)}] E\{\underline{z}\}=\left[\begin{array}{c} \hat{x}_{p} \\ E\{h(x)\} \end{array}\right]
  3. Differenz zwichen h(x)h(x) und Eh(x)E\\{h(x)\\} berechnen

    hΛ‰(x)=h(x)βˆ’E{h(x)} \bar{h}(x)=h(x)-E\{h(x)\}
  4. Cov⁑{zβ€Ύ}\operatorname{Cov}\{\underline{z}\} berechnen

    Cov⁑{zβ€Ύ}=[CxxCxyCyxCyy]=[Οƒp2E{(xβˆ’x^p)hΛ‰(x)}E{(xβˆ’x^p)hΛ‰(x)}E{hβ€Ύ2(x)}+Οƒv2] \operatorname{Cov}\{\underline{z}\}=\left[\begin{array}{ll} \mathbf{C}_{x x} & \mathbf{C}_{x y} \\ \mathbf{C}_{y x} & \mathbf{C}_{y y} \end{array}\right]=\left[\begin{array}{cc} \sigma_{p}^{2} & E\left\{\left(x-\hat{x}_{p}\right) \bar{h}(x)\right\} \\ E\left\{\left(x-\hat{x}_{p}\right) \bar{h}(x)\right\} & E\left\{\overline{h}^{2}(x)\right\}+\sigma_{v}^{2} \end{array}\right]
  5. Filterung in probabilistischer Form.

    x^β€Ύke=xβ€Ύkp+CxyCyyβˆ’1(y^β€Ύβˆ’ΞΌβ€Ύy)Cke=Ckpβˆ’CxyCyyβˆ’1Cyx \begin{aligned} \underline{\hat{x}}_k^e &= \underline{x}_k^p + \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} (\underline{\hat{y}} - \underline{\mu}_y) \\ \mathbf{C}_k^e &= \mathbf{C}_k^p - \mathbf{C}_{xy} \mathbf{C}_{yy}^{-1} \mathbf{C}_{yx} \end{aligned}

Ensemble Kalman Filter (EnKF)

Üb 6, A4 (f)

πŸ’‘ ReprΓ€sentiere den unsicheren SchΓ€tzwert nun per β€žStreuungsbreiteβ€œ einer Punktwolke.

Als β€žunsicheren Zustandβ€œ verwende LL NN-dim. Vektoren als Samples

Xk=[xβ€Ύk,1⏟RN,xβ€Ύk,2,…,xβ€Ύk,L]∈RNΓ—L,Wk=[wβ€Ύk,1,wβ€Ύk,2,…,wβ€Ύk,L]∈RNΓ—L \mathcal{X}_{k}=[\underbrace{\underline{x}_{k, 1}}_{\mathbb{R}^N}, \underline{x}_{k, 2}, \ldots, \underline{x}_{k, L}] \in \mathbb{R}^{N \times L}, \quad \mathcal{W}_{k}=\left[\underline{w}_{k, 1}, \underline{w}_{k, 2}, \ldots, \underline{w}_{k, L}\right] \in \mathbb{R}^{N \times L}

wobei die Samples als Spalten einer Matrix kompakt aufgefasst werden kΓΆnnen.

PrΓ€diktion

  • Nichtlinear

    Xkp=aβ€Ύkβˆ’1(Xkβˆ’1e,uβ€Ύkβˆ’1,Wkβˆ’1) \mathcal{X}_{k}^p = \underline{a}_{k-1}(\mathcal{X}_{k-1}^e, \underline{u}_{k-1}, \mathcal{W}_{k-1})
  • Linear

    Xkp=Akβˆ’1Xkβˆ’1e+Bkβˆ’1(uβ€Ύkβˆ’1+Wkβˆ’1) \mathcal{X}_{k}^p = \mathbf{A}_{k-1}\mathcal{X}_{k-1}^e + \mathbf{B}_{k-1}(\underline{u}_{k-1} + \mathcal{W}_{k-1})

Filterung

  • DurchfΓΌhrung der Filterschritt NUR mit Samples
  • Vermeidung der Verwendung der Update-Formeln fΓΌr Kovarianzmatrix (Reine Representation der Unsicherheiten durch Samples)

Schritte

  1. β€žPrΓ€dizierteβ€œ Mess-Samples berechnen

    • linear

      Yk=HkXkp+Vk \mathcal{Y}_k = \mathbf{H}_k \mathcal{X}_{k}^p + \mathcal{V}_{k}
    • nichtlinear

      Yk=hβ€Ύk(Xkp,Vk) \mathcal{Y}_k = \underline{h}_k (\mathcal{X}_{k}^p, \mathcal{V}_{k})
  2. Kalman Gain berechnen

    Cxy=1Lβˆ‘i=1Lxβ€Ύk,ipβ‹…yβ€Ύk,i⊀=1LXkpβ‹…Yk⊀Cyy=1Lβˆ‘i=1Lyβ€Ύk,iβ‹…yβ€Ύk,i⊀=1LYkβ‹…Yk⊀K=Cxyβ‹…Cyyβˆ’1 \begin{aligned} \mathbf{C}_{x y} &=\frac{1}{L} \sum_{i=1}^{L} \underline{x}_{k, i}^{\mathrm{p}} \cdot \underline{y}_{k, i}^{\top} \\ &=\frac{1}{L} \mathcal{X}_{k}^{\mathrm{p}} \cdot \mathcal{Y}_{k}^{\top} \\\\ \mathbf{C}_{y y} &=\frac{1}{L} \sum_{i=1}^{L} \underline{y}_{k, i} \cdot \underline{y}_{k, i}^{\top} \\ &=\frac{1}{L} \mathcal{Y}_{k} \cdot \mathcal{Y}_{k}^{\top} \\\\ \mathbf{K} &=\mathbf{C}_{x y} \cdot \mathbf{C}_{y y}^{-1} \end{aligned}
  3. Filterschritt mit der tatsΓ€chlichen Messung y^β€Ύk\underline{\hat{y}}_k

    Xke=Xkp+K(y^β€Ύkβ‹…1β€ΎβŠ€βˆ’Yk) \mathcal{X}_{k}^e = \mathcal{X}_{k}^p + \mathbf{K} (\underline{\hat{y}}_k \cdot \underline{\mathbb{1}}^\top - \mathcal{Y}_k)