The and
values computed by the forward-backward
algorithm are useful for many purposes. Firstly, the probability of
the observation sequence given the LOHMM is simply
. Secondly, the probability of
being in a state
at time
given the observation sequence is
. Thirdly, computing the expected
counts required for the maximization step, becomes simple.
The forward-backward algorithm is based on dynamic programming. To
ease the computations, we find sets in the beginning of
learning. The set
is defined as the set of states at time
that are reachable from
start and are not conflicting with the
observation sequence
. The reachable states can be
found in two phases:
Probabilities and
are computed for each state in each
recursively. The
is defined as the
probability of the partial observation sequence
and state
at time
given the LOHMM. The
is
the probability of the partial observation sequence
given state
at time
and the LOHMM. Set
and
for every
. Recursion formulae are
![]() |
(6) | ||
![]() |
(7) |
The expected counts for the maximisation step are computed using
and
values. Let
be the probability
of going from state
at time
to state
at time
using
the transition
given the LOHMM and the observation sequence:
![]() |
(8) |
![]() |
(9) |