Fuzzy Pattern Recognition Based Fault Diagnosis