Automatic CME segmentation