Reference Recursive Recipe (RRR) for EKF Tuning
- Reference Recursive Recipe (RRR) is a recursive framework for adaptive EKF tuning that uses iterative forward/backward passes and cost function assessments to adjust filter parameters.
- It systematically updates the initial state, process noise, and measurement noise covariances by converging eight generalized cost functions to their nominal values.
- RRR has demonstrated enhanced performance in simulation and real-world aerospace applications by achieving statistical equilibrium and improved uncertainty quantification.
The Reference Recursive Recipe (RRR) is a systematic, fully recursive framework for adaptive tuning of the initial state, initial covariance, process-noise covariance, measurement-noise covariance, and fixed parameters within the Extended Kalman Filter (EKF). Developed by Ananthasayanam et al., RRR utilizes repeated forward/backward passes through available data to iteratively adjust all EKF statistics by balancing generalized cost functions that monitor the internal statistical consistency of the filter. This approach aims to achieve a “statistical equilibrium” where the cost functions stabilize at theoretically expected values, providing reliable, low-bias, and uncertainty-quantified parameter and state estimates in both simulated and real-world domains, including aerospace system identification (Ananthasayanam et al., 2015, M et al., 2015).
1. EKF Tuning Problem and RRR Formulation
The fundamental challenge in Kalman filtering is tuning the statistics —the initial state-mean and covariance, process and measurement noise covariances, and unknown model parameters—based solely on observed data without recourse to extensive off-line optimization. For a nonlinear discrete-time system,
the EKF augments to include both system states and parameters treated as pseudo-states. Selection of the aforementioned statistics markedly impacts filter convergence, bias, Cramér–Rao bounds (CRB), and the risk of divergence (Ananthasayanam et al., 2015).
The RRR addresses this problem via iterative, recipe-like passes: each involves a forward EKF run, Rauch–Tung–Striebel (RTS) smoothing, and cost-based updates to all statistics. Convergence is declared when all cost functions approach theoretically predicted values.
2. Algorithmic Structure of RRR
The RRR operates as an outer loop over iterations , with each iteration comprising:
- Forward EKF Pass: Utilizing the current statistics, advance through , producing prior, posterior, and innovation estimates.
- Backward RTS Smoothing: Apply the RTS algorithm over to obtain smoothed state and covariance estimates.
- Generalized Cost Function Computation: Evaluate eight cost functionals (–) reflecting filter consistency in both measurement and state spaces.
- Statistical Updates:
- Initial Covariance Scaling: Set 0, and optionally trim to parameter block-diagonal.
- Parameter Update: Extract current 1 from the final state or solve a normal equation derived from a negative log-likelihood cost.
- Noise Covariance Updates: Utilize reference-based EM-type statistics on smoothed residuals to update 2 and 3.
- Convergence Test: If all 4-costs are within a prescribed tolerance of 5 (measurement dimension) or 6 (state dimension), halt; else, iterate (Ananthasayanam et al., 2015, M et al., 2015).
3. Generalized Cost Functions and Their Roles
The RRR uniquely employs eight cost components reflecting the agreement of the EKF with the data and its own underlying assumptions: 7
For correct tuning,
8
with 9 the observation dimension and 0 the number of state variables. These costs serve as diagnostic indicators: their stabilization signals statistical equilibrium and proper filter tuning, while oscillation or deviation indicates parameter or covariance mismatch or unobservable system structure (Ananthasayanam et al., 2015, M et al., 2015).
4. Covariance Update Formulas and Iterative Heuristics
A core feature of RRR is the iterative update of 1 and 2 based on EM-type smoothed-residual statistics:
- Measurement-Noise Covariance:
3
- Process-Noise Covariance:
4
where 5. The initial covariance 6 is heuristically reset via scaling: 7, countering the shrinkage of posterior covariance to zero through repeated smoothing (Ananthasayanam et al., 2015).
When sensor scale or bias is unknown, the augmented state approach is directly embedded within the RRR loop, and all steps above apply unaltered (M et al., 2015).
5. Simulation and Real-World Evaluation
RRR’s performance is demonstrated on both simulated and real datasets:
- Spring–Mass–Damper Simulation: With weak nonlinear spring, RRR achieves parameter estimates within 8 of Newton–Raphson solutions in 2–3 iterations (noise-free) and approaches theoretical CRBs within 5–6 iterations. In the presence of process noise (9), typical convergence occurs in 20–30 iterations with 0 estimated to within 1 of ground truth, outperforming classical Myers–Tapley (MT) and Mohamed–Schwarz (MS) covariance-matching approaches (Ananthasayanam et al., 2015).
- Flight Data (Airplane Test Cases): Three real-data experiments with high-dimensional states, measurements, and time-varying or colored noise illustrate that RRR yields lower bias, CRBs, and correlation between estimated parameters than MT/MS. Importantly, RRR’s use of smoothed-residual cost functions allows the discrimination of “definitive” (well-tuned) from “deceptive” fits (proper cost values not obtained), a critical consideration in system identification (M et al., 2015).
Quantitative comparison reveals that RRR consistently produces smaller absolute percent errors in parameter estimates and better uncertainty quantification via CRB than MT or MS. The convergence of all 2-costs to nominal values provides a built-in termination criterion and diagnostic for result reliability.
6. Practical Guidance, Limitations, and Extensions
The RRR is applicable in both batch (offline) and limited-window (near real-time) scenarios, although its requirement for multiple forward/backward passes through the entire dataset naturally favors offline or batch usage. For real-time adaptation, a moving-window approach with several recursions can be adopted (Ananthasayanam et al., 2015).
Recommendations and caveats explicitly stated:
- Always use 3 in practical/nearly-realistic applications due to the ubiquity of colored, non-Gaussian, or time-varying noise.
- Use smoothed-residual EM statistics for 4 update and either smoothed-state or DSDT (difference between stochastic and zero-noise dynamics) statistics for 5 update.
- Innovations-only or filtered-residual-only updates are unstable when both 6 and 7 are unknown.
- The scale-up of 8 is mandatory to prevent covariance shrinkage.
- Convergence is robust when the EKF is a reasonable local approximation and initial statistics are not badly chosen. For pronounced nonlinearity or multimodal posteriors, more sophisticated filtering or global optimization may be required.
- Large off-diagonal values in the 9-correlation matrix highlight parameter unobservability or ill-conditioning (M et al., 2015).
The RRR remains a heuristic approach, without a proof of global optimality, but is empirically validated against both synthetic and real datasets and offers a theoretically motivated, statistically consistent solution to EKF statistics tuning problems.