Kalman Filter Help: Get Started Estimating Future Location of Mobile Device

  • Context: Undergrad 
  • Thread starter Thread starter lynchtkd
  • Start date Start date
  • Tags Tags
    Filter Kalman filter
Click For Summary

Discussion Overview

The discussion revolves around the application of the Kalman Filter for estimating the future location of a mobile device based on angle measurements and GPS data. Participants explore the theoretical and practical aspects of implementing the Kalman Filter, including the necessary parameters and equations involved in the estimation process.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant expresses uncertainty about where to start with the Kalman Filter and seeks guidance on estimating future locations based on angle measurements.
  • Another participant questions whether the sensor measuring angles is located on the mobile device or elsewhere, noting that the system's observability may depend on the sensor's trajectory.
  • A participant describes tracking the device's location using GPS and proposes that the Kalman Filter could be used to estimate future locations based on the angles formed by recent movements.
  • Concerns are raised about the adequacy of using only three measurements to estimate motion parameters, suggesting that more data points are necessary for effective Kalman Filter implementation.
  • One participant emphasizes that while the Kalman Filter can be used to estimate future locations, a grounded example would be beneficial for understanding its application.
  • A detailed mathematical model for 2D movement is provided, including state transition and measurement equations, along with descriptions of process and measurement noise.

Areas of Agreement / Disagreement

Participants express differing views on the adequacy of the number of measurements required for effective Kalman Filter application, with some suggesting that three points are insufficient while others indicate that it could still be feasible with additional parameters like velocity and acceleration. The discussion remains unresolved regarding the best approach to implement the Kalman Filter in this context.

Contextual Notes

Limitations include the dependency on the number of measurements and the assumptions regarding the sensor's location and trajectory. The discussion also highlights the complexity of the mathematical model and the need for clarity in the implementation process.

lynchtkd
Messages
3
Reaction score
0
Hi all,

I am trying to estimate the future location of a mobile device and I was thinking of using the Kalman Filter to do this. Problem is I don't really know where to start. All the literature I have been reading gets much to advanced to quickly.

What i have is basically, I am measuring the angle between lines (measuring movements at time intervals) so we take a set of recent movements and extrapolate the likely future location of the mobile device.

Can anyone help please.
 
Physics news on Phys.org
lynchtkd said:
Hi all,

I am trying to estimate the future location of a mobile device and I was thinking of using the Kalman Filter to do this. Problem is I don't really know where to start. All the literature I have been reading gets much to advanced to quickly.

What i have is basically, I am measuring the angle between lines (measuring movements at time intervals) so we take a set of recent movements and extrapolate the likely future location of the mobile device.

Can anyone help please.
Is the sensor located at the mobile and measures the angles to other objects, or is the sensor located elsewhere and measures angles to the mobile?
In the second case, the system is observable only if the sensor follows an accelerated trajectory.
In order to help you I must have more informations about your system.
 
As the device moves we track its location, with say GPS. At regular intervals we read the location. So for example we have three points A,B,C. We create the lines |AB| and |BC| and measure the angle of change in direction from one line segment to another.

Am I right in thinking that using/implementing a Kalman filter we can use it to estimate the future location of the user?
 
lynchtkd said:
As the device moves we track its location, with say GPS. At regular intervals we read the location. So for example we have three points A,B,C. We create the lines |AB| and |BC| and measure the angle of change in direction from one line segment to another.

Am I right in thinking that using/implementing a Kalman filter we can use it to estimate the future location of the user?
Do you intend to estimate the motion parameters with only 3 measurements? It is not enough. But if you have several measurements at known times, you can use a Kalman filter in order to estimate the correct position (the measurements allways contain errors) as well as velocity and acceleration. Knowing those dynamic parameters you can estimate the future position.
The segments |AB|, |BC| and the angle between them are irrelevant to the use of a Kalman filter.
 
Cheers,

I only gave three points as an example, but using Kalman would be feasible to estimate future location. How would I go about implementing that model given I can know the velocity and acceleration? I have been reading and reading to try and get a greater understanding of the Kalman filter, but if I could get a more grounded example it would help greatly.
 
You can model your 2D movement as:
x_{k+1} = x_k + vx_k T + \frac{1}{2}ax_k T^2 + \nu_x
y_{k+1} = y_k + vy_k T + \frac{1}{2}ay_k T^2 + \nu_y
vx_{k+1} = vx_k + ax_k T + \nu_vx
vy_{k+1} = vy_k + ay_k T + \nu_vy
ax_{k+1} = ax_k + \nu_ax
ay_{k+1} = ay_k + \nu_ay
Or,in matrix form:
\mathbf{x_{k+1}} = \mathbf{\Phi} \mathbf{x_k} + \mathbf{w_k}
Where
\mathbf{x_k} = \left[ \begin{array}{c}<br /> x_k\\vx_k\\ax_k\\y_k\\vy_k\\ay_k<br /> \end{array} \right]
\mathbf{\Phi} = \left[ \begin{array}{cccccc}<br /> 1 &amp; T &amp; \frac{1}{2}T^2 &amp; 0 &amp; 0 &amp; 0\\<br /> 0 &amp; 1 &amp; T &amp; 0 &amp; 0 &amp; 0\\<br /> 0 &amp; 0 &amp; 1 &amp; 0 &amp; 0 &amp; 0\\<br /> 0 &amp; 0 &amp; 0 &amp; 1 &amp; T &amp; \frac{1}{2}T^2\\<br /> 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1 &amp; T\\<br /> 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1 <br /> \end{array} \right]
\mathbf{w_k}= \left[ \begin{array}{c}<br /> \nu_x\\<br /> \nu_vx\\<br /> \nu_ax\\<br /> \nu_y\\<br /> \nu_vy\\<br /> \nu_ay<br /> \end{array} \right]
\mathbf{w_k} represents the process noise (uncertainties in the movement).
The measurement equation, if I understand correctly is:
\mathbf{z_k} = \left[ \begin{array}{c}<br /> x_k\\y_k<br /> \end{array} \right]
or
\mathbf{z_k} = \mathbf{H} \mathbf{x_k}
with
\mathbf{H} = \left[ \begin{array}{ccccc}<br /> 1 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0\\<br /> 0 &amp; 0 &amp; 0 &amp; 1 &amp; 0 &amp; 0<br /> \end{array} \right]
If you know an estimate \mathbf{\hat{x}_{k|k}} of \mathbf{x_k} at the instant t_k and have a measurement \mathbf{z_{k+1}} at instant t_{k+1} , the best estimate \mathbf{\hat{x}_{k+1|k+1}} of \mathbf{x_{k+1}} is given by the Kalman filter:
\mathbf{\hat{x}_{k+1|k+1}} = \mathbf{\hat{x}_{k+1|k}} + \mathbf{K_{k+1}}(\mathbf{z_{k+1}} - \mathbf{H} \mathbf{\hat{x}_{k+1|k}})<br /> with<br /> \mathbf{\hat{x}_{k+1|k}} = \mathbf{\Phi} \mathbf{\hat{x}_{k|k}}<br /> \mathbf{K_{k+1}} = \mathbf{P_{k+1|k}}.\mathbf{H^T} (\mathbf{H} .\mathbf{P_{k+1|k}}.\mathbf{H^T} + \mathbf{R})^{-1}<br /> \mathbf{P_{k+1|k+1}} = (I - \mathbf{K_{k+1}}.\mathbf{H}). \mathbf{P_{k+1|k}}<br /> \mathbf{P_{k+1|k}} = \mathbf{\Phi}.\mathbf{P_{k|k}}.\mathbf{\Phi^T} + \mathbf{Q}<br /> where<br /> \mathbf{\hat{x}_{k|j}} is the best estimate of \mathbf{x_k} given the measurements until the instant t_j.
\mathbf{P_{k|j}} = E[(\mathbf{x_k}-\mathbf{\hat{x}_{k|j}}).(\mathbf{x_k}-\mathbf{\hat{x}_{k|j}})^T]
is the estimation error covariance matrix.
\mathbf{Q} is the process noise covariance matrix
and
\mathbf{R} is the measurement noise covariance matrix.
 
Last edited by a moderator:

Similar threads

  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 24 ·
Replies
24
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
9
Views
7K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
9K