Spotting Patterns With Segmentation First