Invia SMS: Inference on Markov random fields: methods and applications