|
Algorithm 1 Penalized EM Algorithm for the Robust Absorbing-State HMM. |
Require: Observed trajectories for ; number of states K (state K absorbing); ridge penalties .
-
1:
Initialize parameters (e.g., simple-failure and a global linear regression for emissions).
-
2:
repeat
-
3:
E-step (forward–backward).
-
4:
Run the scaled forward–backward recursion to obtain for and for (see (6)–(11)).
-
5:
M-step: transition matrix.
-
6:
-
7:
M-step: emission parameters (ridge-regularized).
-
8:
Select by weighted K-fold cross-validation under the current weights .
-
9:
for each transient state do
-
10:
Update by slope-only ridge regression:
-
11:
Update using a Huber-type robust scale estimator based on the weighted residuals.
-
12:
end for
-
13:
until convergence of the log-likelihood and parameter updates.
|