Context Exploitation using Hierarchical Bayesian Models