segmentation based on supervised learning