An efficient Bayesian framework for on-line action recognition