Who can give me some practical advice/examples on how to implement a Hidden Markov Model. I would like to use that in the traffic engineering context under various traffic flow conditions. E.g. on the approach to a queue, does driver maintain or slow down when he sights a queue or red light? From the literature I have one thing that seems to elude me is how to calculate or estimate the transition probability matrix.