Recurrent neural networks for sequential patterns recognition applications