Skip to main content
. 2026 Apr 7;26(7):2277. doi: 10.3390/s26072277
Algorithm 2. Target Tracking Process for Motion Model Classification Using Long Short-Term Memory
Input: Distance measurement from the sensor to the target (dist_mea); State estimates of each model (Xn_est); Covariance estimates of each model (Pn_est); Motion model likelihood value matrix over multiple time steps (u_history)
Output: Estimated target position and velocity (X_est); Covariance of target state estimation (P_est); Current target motion model probability (u_current)
1: for i = 1 to 3 do
2:          u_current(i)  move_model_likelihood_func (dist_mea, Xn_est(i), Pn_est(i))
3: end for
4: u_current  softmax (u_current)
5: u_current  LSTMNet (u_history, u_current)
6: for i = 1 to 3 do
7:          X_est  X_est + Xn_est(i)  u_current(i)
8:          P_est  P_est + Pn_est(i)  u_current(i)
9: end for
10: return X_est, P_est, u_current