EMMPM segmentation algorithm