Learning spatial context from tracking using penalised likelihoods | Synapse