Bayesian model-based change detection