Robust learning for medical image segmentation