Learning to recognize touch gestures: recurrent vs. convolutional features and dynamic sampling