Approach for fault prognosis using recurrent neural network