Bayesian time series classification