1. A method of determining a posterior probability for each of a set of discrete states at each of a set of time frames, the method comprising: performing a forward recursion to determine a forward recursion score for each discrete state in each time frame; and using the forward recursion scores in a backward recursion to generate at least one posterior probability.