variational bayesian methods applied to spatial model fitting