Machine learning and model based 3d segmentation algorithms for challenging medical imaging problems