Probabilistic graphical models for motion analysis and object tracking