Optical Sensor Based Gestures Inference Using Recurrent Neural Network in Mobile Conditions