Filter Tuning Tool

Kalman Filter Parameter Optimization

Optimize Extended Kalman Filter parameters for underwater navigation. Tune process noise covariances, measurement uncertainties, and filter gains for optimal estimation performance.

Process Noise Covariances (Q)
Measurement Noise Covariances (R)
Filter Settings

Final Position Error

--
m

Final Velocity Error

--
m/s

Avg Kalman Gain

--

Consistency

--
%
Position Error & Uncertainty
Kalman Gain Evolution
Innovation Sequence
Covariance Trace

Kalman Filter Tuning Theory

Process Noise Covariance (Q)

The process noise matrix Q represents uncertainty in the system model. It accounts for unmodeled dynamics, linearization errors, and external disturbances:

Q = E[w · wᵀ] where w ~ N(0, Q) Larger Q → Filter trusts measurements more (faster response, less smooth) Smaller Q → Filter trusts model more (slower response, smoother)

Measurement Noise Covariance (R)

The measurement noise matrix R represents sensor accuracy and reliability:

R = E[v · vᵀ] where v ~ N(0, R) R should match actual sensor noise characteristics R_sensor = σ²_sensor (variance of sensor measurements)

Kalman Gain

The Kalman gain K determines how much the filter trusts measurements vs. predictions:

K = P⁻ · Hᵀ · (H · P⁻ · Hᵀ + R)⁻¹ K → 0: Trust model (R large or P small) K → 1: Trust measurement (R small or P large)

Filter Consistency

A well-tuned filter should be consistent - actual errors should match predicted uncertainty:

Consistency = (actual_error within predicted_uncertainty) / total_samples Target: 68% for 1σ bounds, 95% for 2σ bounds

Tuning Guidelines

Common Tuning Issues

Q too small: Filter overconfident, rejects good measurements, diverges Q too large: Filter jittery, follows measurement noise, poor smoothing R too small: Filter overweights noisy measurements, unstable estimates R too large: Filter ignores measurements, poor correction