Extended Kalman Filter (EKF)

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

How does the reactivity of metals change as you move down a group in the periodic table? Explain the underlying reason for this trend.

Reactivity increases down the group. This is because the outermost electrons are further from the nucleus, experiencing less attraction, and are thus more easily lost.

Differentiate between the terms 'malleable' and 'ductile' when describing metals. Provide an example of a metal that exhibits both properties.

Malleable means a metal can be hammered into thin sheets, while ductile means it can be drawn into wires. Copper is a common example of a metal that is both malleable and ductile.

Explain why silver and gold are considered to be among the least reactive metals. What makes them useful in jewelry?

Silver and gold are least reactive because they have a strong attraction for their valence electrons, making them resistant to oxidation and corrosion. This inertness preserves their luster and appearance, which is why they are used in jewelry.

What is the significance of platinum in catalytic converters in automobiles, and how does it contribute to reducing pollution?

<p>Platinum acts as a catalyst, speeding up reactions that convert harmful pollutants like nitrogen oxides, carbon monoxide, and hydrocarbons into less harmful substances like nitrogen, carbon dioxide, and water.</p> Signup and view all the answers

Define 'oxidation state' and explain its importance in predicting the chemical behavior of an element. Give an example.

<p>Oxidation state represents the degree of oxidation of an atom – essentially, the hypothetical charge if all bonds were 100% ionic. It helps predict how an element will combine with others; for example, iron can have oxidation states of +2 or +3, leading to different compounds.</p> Signup and view all the answers

Describe the process of electroplating using silver or chromium, mentioning the role of the anode, cathode, and electrolyte in coating a metallic object.

<p>In electroplating, the object to be coated acts as the cathode, and the silver/chromium is the anode. Both are immersed in an electrolyte containing silver/chromium ions. When current is applied, the metal from the anode dissolves and plates onto the cathode.</p> Signup and view all the answers

Describe the process of electrolytic refining of copper. What are the key components and reactions that occur during the refining process and what is its purpose?

<p>Electrolytic refining of copper involves using an impure copper anode, a pure copper cathode, and a copper sulfate electrolyte. During electrolysis, copper dissolves from the anode and deposits on the cathode, leaving impurities behind. It's for purifying copper.</p> Signup and view all the answers

What is electrolysis? Briefly explain the process of electrolysis of water, including the products formed at the anode and cathode.

<p>Electrolysis is the process of using electricity to decompose a compound. Electrolysis of water produces hydrogen gas at the cathode and oxygen gas at the anode.</p> Signup and view all the answers

Explain the working principle of Nelson's cell for the preparation of sodium hydroxide (NaOH) from brine. What are the advantages of using Nelson's cell over other methods?

<p>Nelson's cell electrolyzes brine (NaCl solution) using a steel tank as the cathode and a graphite anode, separated by an asbestos diaphragm. NaOH is formed in the cathode compartment. It allows continuous operation and separation of chlorine and NaOH.</p> Signup and view all the answers

What is the difference between 22-carat and 24-carat gold? Why is gold often alloyed with other metals in jewelry?

<p>24-carat gold is pure gold, while 22-carat gold is 22 parts gold and 2 parts other metals. Gold is alloyed in jewelry to increase its strength and durability.</p> Signup and view all the answers

Flashcards

What is Electrolysis?

The process of using electricity to drive a non-spontaneous chemical reaction.

What is oxidation state?

A number that represents the degree of oxidation of an atom in a chemical compound.

What is electroplating?

Coating a metal object with a thin layer of another metal using electrolysis for protection or decoration.

Physical Properties of Metals

Metals are lustrous, malleable, ductile, and good conductors of heat and electricity.

Signup and view all the flashcards

Chemical Properties of Metals & Non-metals

Metals react by losing electrons, forming positive ions; non-metals gain electrons, forming negative ions.

Signup and view all the flashcards

Platinum as a Catalyst

Platinum is utilized in catalytic converters to reduce toxic emissions.

Signup and view all the flashcards

Examples of Halogens

Fluorine (F), Chlorine (Cl), Bromine (Br), Iodine (I).

Signup and view all the flashcards

Silver/Gold Low Reactivity

Gold and silver's full outer electron shells make them resist reactions.

Signup and view all the flashcards

Why use copper for wires?

Copper is very conductive and easily drawn into wires.

Signup and view all the flashcards

Malleable vs. Ductile

Malleable - can be hammered into thin sheets. Ductile - can be drawn into wires.

Signup and view all the flashcards

Study Notes

  • The Extended Kalman Filter (EKF) is a Kalman filter version designed for nonlinear systems.
  • It approximates non-linear systems by linearizing them around the current estimate and then applying the standard Kalman filter.

Kalman Filter Basics

  • Mathematical tool used to estimate the state of a system from noisy measurements
  • Extensively used in robotics, economics, and control systems.

Extended Kalman Filter

  • Addresses non-linearity by linearizing the system around the current estimate using Taylor series expansion.

EKF Steps

  • Prediction: Predict the next state and covariance using a non-linear system model.
  • Linearization: Linearize the system model around the predicted state.
  • Update: Update the state estimate using the Kalman gain, computed with the linearized system and measurement models.

Jacobian Matrix

  • The matrix of all first-order partial derivatives of a vector-valued function. $$ J = \begin{bmatrix} \frac{\partial f_1}{\partial x_1} & \cdots & \frac{\partial f_1}{\partial x_n} \ \vdots & \ddots & \vdots \ \frac{\partial f_m}{\partial x_1} & \cdots & \frac{\partial f_m}{\partial x_n} \end{bmatrix} $$
  • $f: \mathbb{R}^n \rightarrow \mathbb{R}^m$ is a vector-valued function.
  • $J$ is an $m \times n$ matrix where each entry $\frac{\partial f_i}{\partial x_j}$ represents the rate of change of the $i$-th component of $f$ with respect to the $j$-th component of $x$.
  • Used to linearize a non-linear function around a specific point

Taylor Series Expansion

  • Used to approximate a function at a point using its derivatives at another point.
  • Scalar function $f(x)$ expansion around a point $a$: $$ f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots $$
  • Vector-valued function $f(x)$ expansion around a point $a$: $$ f(x) \approx f(a) + J(a)(x-a) $$ Where $J(a)$ is the Jacobian matrix of $f$ evaluated at $a$.

System Model

  • The means to describe the evolution of the system state over time. $$ x_t = f(x_{t-1}, u_{t-1}, w_{t-1}) $$ Where:
    • $x_t$ = the state at time t
    • $x_{t-1}$ = the state at time t-1
    • $u_{t-1}$ = the control input at time t-1
    • $w_{t-1}$ = the process noise at time t-1
    • $f$ = a non-linear function that describes the system dynamics.

Measurement Model

  • Depicts the relationship between measurements and the system state $$ z_t = h(x_t, v_t) $$ Where:
    • $z_t$ = the measurement at time t
    • $x_t$ = the state at time t
    • $v_t$ = the measurement noise at time t
    • $h$ = a non-linear function relating the state to the measurement

EKF Algorithm Steps

  • Initialization: Initialize the state estimate $\hat{x}_0$ and the covariance matrix $P_0$. $$ \hat{x}_0 = E[x_0] $$ $$ P_0 = E[(x_0 - \hat{x}_0)(x_0 - \hat{x}_0)^T] $$
  • Prediction: Predict the state and covariance at time $t$ given the state estimate at time $t-1$. $$ \hat{x}t = f(\hat{x}{t-1}, u_{t-1}, 0) $$ $$ P_t = F_{t-1}P_{t-1}F_{t-1}^T + W_{t-1}Q_{t-1}W_{t-1}^T $$ Where:
    • $F_{t-1}$ is the Jacobian matrix of $f$ with respect to $x$ evaluated at $\hat{x}_{t-1}$
    • $W_{t-1}$ is the Jacobian matrix of $f$ with respect to $w$ evaluated at $0$
    • $Q_{t-1}$ is the covariance matrix of the process noise $w_{t-1}$
  • Measurement Update: Update the state estimate and covariance at time $t$ given the measurement at time $t$. $$ \tilde{y}_t = z_t - h(\hat{x}_t, 0) $$ $$ S_t = H_tP_tH_t^T + V_tR_tV_t^T $$ $$ K_t = P_tH_t^TS_t^{-1} $$ $$ \hat{x}_t = \hat{x}_t + K_t\tilde{y}_t $$ $$ P_t = (I - K_tH_t)P_t $$ Where :
    • $H_t$ is the Jacobian matrix of $h$ with respect to $x$ evaluated at $\hat{x}_t$
    • $V_t$ is the Jacobian matrix of $h$ with respect to $v$ evaluated at $0$
    • $R_t$ is the covariance matrix of the measurement noise $v_t$
    • $\tilde{y}_t$ is the measurement residual
    • $S_t$ is the innovation covariance
    • $K_t$ is the Kalman gain

EKF Algorithm Summary

Step Equation Description
1. Initialization $\hat{x}_0 = E[x_0]$, $P_0 = E[(x_0 - \hat{x}_0)(x_0 - \hat{x}_0)^T]$ Initialize state estimate and covariance.
2. Prediction $\hat{x}t = f(\hat{x}{t-1}, u_{t-1}, 0)$ Predict state using the non-linear system model
$P_t = F_{t-1}P_{t-1}F_{t-1}^T + W_{t-1}Q_{t-1}W_{t-1}^T$ Predict covariance using the linearized system model.
3. Update $\tilde{y}_t = z_t - h(\hat{x}_t, 0)$ Compute measurement residual.
$S_t = H_tP_tH_t^T + V_tR_tV_t^T$ Compute innovation covariance.
$K_t = P_tH_t^TS_t^{-1}$ Compute Kalman gain.
$\hat{x}_t = \hat{x}_t + K_t\tilde{y}_t$ Update state estimate using the Kalman gain and measurement residual.
$P_t = (I - K_tH_t)P_t$ Update covariance.

Robot Model

  • Considers a robot moving in a 2D plane.
  • The state of the robot is given by: $$ x_t = \begin{bmatrix} x \ y \ \theta \end{bmatrix} $$ Where:
    • $x$ and $y$ are the coordinates of the robot in the 2D plane
    • $\theta$ is the orientation of the robot
  • The control input is given by: $$ u_t = \begin{bmatrix} v \ \omega \end{bmatrix} $$ Where:
    • $v$ is the linear velocity of the robot
    • $\omega$ is the angular velocity of the robot
  • The system model is given by: $$ \begin{bmatrix} x_{t+1} \ y_{t+1} \ \theta_{t+1} \end{bmatrix} = \begin{bmatrix} x_t + v_t\cos(\theta_t)\Delta t \ y_t + v_t\sin(\theta_t)\Delta t \ \theta_t + \omega_t\Delta t \end{bmatrix} + w_t $$ Where:
    • $\Delta t$ is the time step
    • $w_t$ is the process noise
  • In this case, the function $f$ is: $$ f(x_t, u_t, w_t) = \begin{bmatrix} x_t + v_t\cos(\theta_t)\Delta t \ y_t + v_t\sin(\theta_t)\Delta t \ \theta_t + \omega_t\Delta t \end{bmatrix} + w_t $$

Measurement Model

  • The robot has a sensor measuring landmark distance: $$ z_t = \sqrt{(x_l - x_t)^2 + (y_l - y_t)^2} + v_t $$ Where:
    • $(x_l, y_l)$ are the coordinates of the landmark
    • $v_t$ is the measurement noise
  • In this case, the function $h$ is: $$ h(x_t, v_t) = \sqrt{(x_l - x_t)^2 + (y_l - y_t)^2} + v_t $$

EKF Implementation

  • Initialization: Initialize the state estimate $\hat{x}_0$ and the covariance matrix $P_0$.
  • Prediction: Predict the state and covariance at time $t$ given the state estimate at time $t-1$: $$ \hat{x}t = f(\hat{x}{t-1}, u_{t-1}, 0) = \begin{bmatrix} x_{t-1} + v_{t-1}\cos(\theta_{t-1})\Delta t \ y_{t-1} + v_{t-1}\sin(\theta_{t-1})\Delta t \ \theta_{t-1} + \omega_{t-1}\Delta t \end{bmatrix} $$ $$ P_t = F_{t-1}P_{t-1}F_{t-1}^T + W_{t-1}Q_{t-1}W_{t-1}^T $$ Where:
    • $F_{t-1}$ is the Jacobian matrix of $f$ with respect to $x$ evaluated at $\hat{x}{t-1}$: $$ F{t-1} = \begin{bmatrix} 1 & 0 & -v_{t-1}\sin(\theta_{t-1})\Delta t \ 0 & 1 & v_{t-1}\cos(\theta_{t-1})\Delta t \ 0 & 0 & 1 \end{bmatrix} $$
    • $W_{t-1}$ is the Jacobian matrix of $f$ with respect to $w$ evaluated at $0$: $$ W_{t-1} = \begin{bmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix} $$
    • $Q_{t-1}$ is the covariance matrix of the process noise $w_{t-1}$
  • Measurement Update: Update the state estimate and covariance at time $t$ given the measurement at time $t$: $$ \tilde{y}_t = z_t - h(\hat{x}_t, 0) = z_t - \sqrt{(x_l - x_t)^2 + (y_l - y_t)^2} $$ $$ S_t = H_tP_tH_t^T + V_tR_tV_t^T $$ $$ K_t = P_tH_t^TS_t^{-1} $$ $$ \hat{x}_t = \hat{x}_t + K_t\tilde{y}_t $$ $$ P_t = (I - K_tH_t)P_t $$ Where:
    • $H_t$ is the Jacobian matrix of $h$ with respect to $x$ evaluated at $\hat{x}_t$: $$ H_t = \begin{bmatrix} \frac{-(x_l - x_t)}{\sqrt{(x_l - x_t)^2 + (y_l - y_t)^2}} & \frac{-(y_l - y_t)}{\sqrt{(x_l - x_t)^2 + (y_l - y_t)^2}} & 0 \end{bmatrix} $$
    • $V_t$ is the Jacobian matrix of $h$ with respect to $v$ evaluated at $0$.
    • $R_t$ is the covariance matrix of the measurement noise $v_t$.

Results

  • Iteratively applying the prediction and update steps enables the EKF to estimate the robot's state over time.
  • The estimate's accuracy is affected by the accuracy of the system model, the measurement model, and noise characteristics.

Advantages of EKF

  • Handles Non-linear Systems by linearizing around the current estimate.
  • Computationally Efficient compared to other non-linear filters like particle filters.
  • Wide Applicability in robotics, computer vision, and control systems.

Disadvantages of EKF

  • Linearization Errors arise, especially in highly non-linear systems.
  • Jacobian Matrix Calculation can be difficult or impossible for some systems.
  • Tuning Required: careful tuning of noise covariance matrices can be time-consuming.

Conclusion

  • The EKF is a robust tool for estimating the state of non-linear systems, widely used in robotics and control systems.
  • Limitations: linearization errors and Jacobian calculation.
  • May need other non-linear filters like Unscented Kalman Filter (UKF) and particle filters for highly non-linear systems.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

Extended Kalman filter (EKF) Quiz
10 questions
Extended ER Model Quiz
24 questions

Extended ER Model Quiz

LuxuryTaylor8648 avatar
LuxuryTaylor8648
EXTENDED Chapter 16 Socioemotional Development
48 questions
Use Quizgecko on...
Browser
Browser