Bayesian filtering for signal analysis in robot programming by human demonstration