A neural network approach for identification and fault diagnosis on dynamic systems