Theoremadvanced
EKF SLAM convergence theorem
Also called Dissanayake convergence theorem.
In linear Gaussian SLAM, landmark uncertainty never grows, and in the limit the landmarks become fully correlated with a floor set by the first pose.
The EKF SLAM convergence theorem of Dissanayake, Newman, Clark, Durrant-Whyte and Csorba (2001) describes what the Kalman filter for SLAM does to the map uncertainty when the models are linear and the noise is Gaussian. Three things hold. The uncertainty of the map never grows. The landmarks become fully correlated in the limit, so their relative positions become exact. And the uncertainty of each landmark never falls below the uncertainty of the robot at the time it first saw a landmark. The theorem is for the linear Gaussian case only, where the Kalman filter is exact. For the nonlinear EKF SLAM of a real robot it is a guide, not a guarantee: the nonlinear filter can become inconsistent.
Statement
Model. A vehicle position and landmarks that do not move. The vehicle moves by with a known and . A reading of landmark at step is with , positive definite. All noises are independent. The prior on the first pose is , and a landmark has no prior information: it enters the filter at its first reading, as in EKF SLAM. Let be the covariance of the Kalman filter after step , and its block for landmarks and . Inequalities between matrices are in the order of positive semidefinite matrices: means that is positive semidefinite.
Dissanayake et al. state and prove the three results for a linear SLAM model; the proof below is written for the model above, which is the simplest one of this kind.
Theorem.
- The map uncertainty never grows. Neither a prediction nor an update increases the block of for the landmarks already in the map. Hence the determinant of every principal submatrix of the map covariance does not increase from step to step.
- Full correlation in the limit. If landmarks and have been read together from the same pose at steps, then . So if they are read together infinitely often, the covariance of their difference tends to 0, and the landmark estimates become fully correlated.
- A floor set by the first pose. At every step, for every landmark , and the covariance of the vehicle is also at least . Here is the covariance of the vehicle when it first reads a landmark.
The paper says that the determinant of any submatrix "decreases monotonically"; the proof below gives "does not increase" for the principal submatrices, the ones that are covariances of a set of landmark coordinates.
In plain words
Take a robot that drives around and looks at fixed marks, where all errors are simple bell curves. Three things then hold. First, every new look at the marks makes the map more certain or leaves it as it is; it never makes it worse. Second, the robot learns where the marks are relative to each other better and better, and in the end it knows their relative layout exactly. Third, it can never know where the whole layout sits in the world better than it knew its own start position, because every reading is about differences, from the robot to a mark or from one place to the next. The whole map can slide together by the error of the start, and no reading can see that.
Proof
The filter is the exact posterior. In this model every quantity is a linear function of the Gaussian variables , and , so the Kalman filter computes the exact conditional mean and covariance of the state given the data. A landmark with no prior information enters at its first reading with the mean and the covariance of , which is the limit of the posterior under a Gaussian prior on as . Statements 1 and 2 are proved below for every finite , and they pass to the limit because they are non-strict inequalities between continuous functions of . Statement 3 is proved directly for the flat prior, whose posterior is a proper Gaussian once each landmark has a reading, with the limit mean and covariance.
Lemma. If are symmetric, then . If is singular, . Else with , so , and every eigenvalue of is at least 1.
Proof of 1. The prediction changes the vehicle and leaves the landmarks as they are, so the landmark block of is unchanged; only the vehicle block and the cross block change. An update with innovation covariance and gain gives , and because . So . For a set of landmark coordinates, the principal submatrices satisfy , since holds in particular for every that is zero outside . Adding a new landmark appends rows and columns and leaves the old block unchanged. By the lemma, the determinant of every principal submatrix of the old landmarks does not increase.
Proof of 2. Let be the steps at which both and were read. Then : the vehicle position cancels. The estimate has the error , which has mean 0 and covariance , whatever the state. The conditional mean is the estimate with the smallest error covariance among all functions of the data: for every fixed vector , , where and is the data. In the linear Gaussian case, the conditional covariance of does not depend on the values of the data, so the left side is , and the right side is . This holds for every , so .
As , . In one dimension, write . Then , a sum of two nonnegative terms. By statement 3, , so : the two estimates become fully correlated. In several dimensions, the same holds along each direction .
Proof of 3. Write and describe every other variable relative to it: and . Then , and . So the data depend on the relative variables and on the noise, and not on . In the prior, is independent of the , so it is independent of the , and the flat prior on the landmarks makes the flat and independent of too. Hence the posterior density factors as : given the data, is still and independent of . So , and in the same way . If the robot moved before its first reading of a landmark, take that time as step 0; the data before it carry no information about any landmark.
Consequences
- The correlations must be kept. The exact posterior has landmarks that become fully correlated, so a filter that drops the cross covariances, for example to save time, throws away the information that makes the map converge, and it reports a wrong uncertainty. This is why EKF SLAM keeps the full covariance and pays per update for landmarks.
- Relative accuracy is unlimited, absolute accuracy is not. The layout of the map becomes exact, but its place in the world is only as good as the robot's knowledge of its start. With the map frame fixed at the first pose, , and the map converges completely.
- The map covariance becomes singular in the limit. In the example below its determinant goes to 0. In practice this means that the information form, the inverse of , has entries that grow without bound, and a filter must take care with rounding.
- An exact filter never reports less than the floor. A nonlinear filter that reports a landmark or a vehicle covariance below is overconfident. This gives a simple check of consistency in simulation.
Tightness
A 1D example, by hand. A robot stands still on a line, with and . Its position has the prior variance . At each step it reads two landmarks with . After steps, by the proof of statement 3, the position is still , independent of the relative positions , and each is known from the mean of its readings with variance . So
After one step the variance of each landmark is , as in the EKF initialization. The determinant goes for , down, as statement 1 says. , which is exactly the bound of statement 2. And , the floor of statement 3, which is reached in the limit and not before. So the bounds of statements 2 and 3 cannot be improved in general. This short script runs the Kalman filter on the example and prints , , the determinant and :
def update(mu, P, i, z, R=1.0): # the state is (x, p1, p2); the reading is z = p_i - x + w
h = [-1.0, 0.0, 0.0]
h[i] = 1.0
Ph = [sum(P[r][c] * h[c] for c in range(3)) for r in range(3)]
S = sum(h[r] * Ph[r] for r in range(3)) + R
nu = z - sum(h[r] * mu[r] for r in range(3))
mu = [mu[r] + Ph[r] * nu / S for r in range(3)]
P = [[P[r][c] - Ph[r] * Ph[c] / S for c in range(3)] for r in range(3)]
return mu, P
big = 1e9 # no prior information on the landmarks
mu, P = [0.0, 0.0, 0.0], [[1.0, 0, 0], [0, big, 0], [0, 0, big]]
for k in range(1, 5):
mu, P = update(mu, P, 1, 2.0)
mu, P = update(mu, P, 2, 3.0)
det = P[1][1] * P[2][2] - P[1][2] ** 2
print(k, round(P[1][1], 6), round(P[1][2], 6), round(det, 6), round(P[1][1] + P[2][2] - 2 * P[1][2], 6))
# 1 2.0 1.0 3.0 2.0
# 2 1.5 1.0 1.25 1.0
# 3 1.333333 1.0 0.777778 0.666667
# 4 1.25 1.0 0.5625 0.5
The hypotheses matter.
- Linearity. For a nonlinear model, such as a planar robot with a heading and range and bearing readings, the EKF linearizes at the current estimate, and the statements are no longer theorems about it. Julier and Uhlmann (2001) showed with a stationary robot that the nonlinear EKF SLAM becomes inconsistent: its covariance becomes smaller than its true error. Huang and Dissanayake (2007) analyzed the nonlinear planar case and related the inconsistency to Jacobians evaluated at different estimates.
- Relative readings. Statement 3 needs readings and motions that see only differences. A sensor that measures absolute position, such as satellite positioning, breaks the floor, as it should.
- Static landmarks. If the landmarks move, the prediction adds noise to the map block, and statement 1 fails.
- Repeated joint readings. Statement 2 needs the two landmarks to be read together from the same pose again and again. Landmarks that are never seen together are still correlated through the path, but the bound does not apply directly.
History
Smith, Self and Cheeseman introduced the stochastic map in the late 1980s: one state vector and one covariance for the robot and all the objects, with the correlations between them. Durrant-Whyte and Bailey (2006) recall that many researchers at first expected the errors of such a map to grow without bound, and that the key step was to see that the joint problem of localization and mapping converges. Dissanayake, Newman, Clark, Durrant-Whyte and Csorba proved the three results above for the linear case in the IEEE Transactions on Robotics and Automation in 2001, and showed the filter at work on a vehicle with a millimeter wave radar. The same year, Julier and Uhlmann gave a counterexample for the nonlinear filter. Later work, such as Huang and Dissanayake (2007), studied when the nonlinear EKF SLAM is consistent.
References
- M. W. M. Gamini Dissanayake, Paul Newman, Steven Clark, Hugh F. Durrant-Whyte and M. Csorba, A solution to the simultaneous localization and map building (SLAM) problem, IEEE Transactions on Robotics and Automation 17(3), 2001, pages 229 to 241, Section III.A, Theorems 1 to 3 (the determinant of a submatrix of the map covariance, the full correlation of the landmarks in the limit, and the lower bound set by the initial vehicle covariance)
- Simon J. Julier and Jeffrey K. Uhlmann, A counter example to the theory of simultaneous localization and map building, Proceedings of the IEEE International Conference on Robotics and Automation, 2001, the inconsistency of the nonlinear EKF SLAM for a stationary robot
- Shoudong Huang and Gamini Dissanayake, Convergence and consistency analysis for extended Kalman filter based SLAM, IEEE Transactions on Robotics 23(5), 2007, pages 1036 to 1049, the analysis of the nonlinear planar EKF SLAM and the role of the Jacobians evaluated at different estimates
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 10 (EKF SLAM and the correlations between the landmarks)
- Hugh Durrant-Whyte and Tim Bailey, Simultaneous localization and mapping, part I, IEEE Robotics and Automation Magazine 13(2), 2006, from page 99, the history of the problem and the convergence of the joint estimate
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag M4GQH4 Edit this page History Report an error Markdown