Date: January 22, 2024

Topic: Kalman Filters

Recall

We use the state transition matrix $F$ to estimate the new position and speed of the object.

For example, since the position is dependent on the previous position and speed, the new $x$ position is $x'= x + \dot x \Delta t$. The same can be seen for $y$.

Notes

Predicting the Next Position

Untitled

With $x$,$y$ being the location and $\dot{x},\dot{y}$ being the velocity (hidden) - assuming a constant velocity

$$ \bar{x} = \begin{bmatrix} x \\ y \\ \dot{x} \\ \dot{y} \end{bmatrix},

F = \begin{bmatrix} 1 & 0 & \Delta t & 0 \\ 0 & 1 & 0 & \Delta t \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} $$


When a prediction is performed, uncertainty increases. This is represented by $P$ which is the uncertainty encoded in the covariance matrix

Uncertainty

When we do a prediction, there will be an increase in uncertainty ($t_k$ to $t_{k+1}$)

Untitled

$Q$ is used to include errors inherent in the model (e.g., due to truncation, etc)


After movement and measurement, we get our new position but it includes some uncertainty $R$

By taking the new observation into our calculation, we reduce the uncertainty of the estimate. 2 Gaussians that multiply will have a results in reduced uncertainty

Measurements and Predictions

Measurement Step (Observations)

Untitled

$$ \bar z = \begin{bmatrix} x \\ y \end{bmatrix}, R = \begin{bmatrix} \sigma_x^2 & 0 \\ 0 & \sigma_y^2 \end{bmatrix} $$

Correcting Prediction (Observation Update)

Red is predicted, blue is actual and z is where we move the prediction after the observation

Red is predicted, blue is actual and z is where we move the prediction after the observation







<aside> 📌 SUMMARY: Explanation of the terms used in the update process of Kalman filters

</aside>