A Neural Network Approach for Identification and Fault Diagnosis on Dynamic Systems