Visual bias mitigation driven by Bayesian uncertainties