detection using a recurrent neural network -- A divide-and-conquer strategy in