Skip to main content
. 2026 Jul 23;26(15):4691. doi: 10.3390/s26154691
Algorithm 2. Screened IMM-GRU prediction-tracking algorithm
Input: Prediction input sequence Bk, previous-time model probability πk−1, four pred-iction networks {gi(⋅)}i=03, classification network C(⋅), model transition matrix Π, and screening parameter set Ω.
Output: The predicted position p^k+1 and predicted variance Σ^k+1 at the next time step.
Step 1. The classification network gives the current probability qk=C(Bk), and πk−1, Π is used to propagate the previous-time probability to obtain the fused probability πk.
Step 2. Call the four prediction networks to obtain μk+1i and vk+1i, i=1,2,3,4.
Step 3. For Bk, take its last three positions bk−2, bk−1, and bk, calculate Di, Si, and Ai, and further obtain the proxy uncertainty ui.
Step 4. Sort the networks according to descending πki, and when the cumulative probability reaches τpost, construct the initial candidate network set Rk0; if the classification entropy Hk is too large or the gap between the two largest probabilities Δπ is too small, additionally retain the maneuver network to obtain the final candidate network set Rk.
Step 5. Compute the score ui within the candidate set Rk, and select the Kf networks with the smallest scores to form Sk.
Step 6. Within Sk, compute the normalized weights wi, and complete mean fusion and variance moment matching.
Step 7. Write the fused mean, real flag 0, variance trace, and incremented age back to the buffer; update the model probability and record the prediction result.
Step 8. Output the predicted position and predicted variance.