Hidden markov model approaches for biological studies