Detecting and Identifying Selection Structure in Sequential Data