Skip to main content
. 2026 Mar 21;26(6):1967. doi: 10.3390/s26061967
Algorithm 1 Bi-level Optimization for Deep Robust MHE
  • Input: Predicted state x¯t;

  • Initialization: Initial tuning parameter ω0;

  • for i=1 to Nepochs do

  •     for t=0 to T do

  •        Outer Optimization (Forward Pass):

  •       Solve the MHE problem (10) by substituting G(ω) to obtain x^;

  •        Compute batch loss Ltrack using (36);

  •        Outer Optimization (Backward Pass):

  •        Compute gradient components ∂Ltrack(x^)∂x^, ∂x^(G)∂G;

  •        Inner Optimization (neural network):

  •        Compute ∂Lneuro(ω)∂ω using machine learning tool;

  •        Update ω using gradient-based optimization;

  •        Update adaptive weightings G(ω) using (34);

  •     end for

  • end for

  • return ω.