Improving Segmentation Pipelines For Medical Imaging Using Deep Learning