I am trying to use HMM for location prediction. I have the coordinates (x,y), speed and direction of motion. I have discretized the entire space into small blocks, that I use as states. The objective is to predict the location (state) of the object after time t, 2t, 3t and so on.
I have read multiple articles on HMM. I still have 2 questions:
- Can I use some trajectories to create the transition matrix? My mapping from coordinates to block (i.e. the state) is straightforward, so I can use a few samples to create an initial transition matrix.
How do I define the emission matrix with the continuous observables (i.e Position, speed and direction). If I assume them to be gaussian with mean 0, how do I create the initial emissions matrix.
Can I use Viterbi to predict the location after time t, 2t etc?
I have read too many articles and am really confused now. I would appreciate some help to know if I am going in the right direction.
Also, what would be a good c++ library to use for the purpose?