started segmentation training implementation