Adaptive Bayesian contextual classification based on Markov random fields | Synapse