Fault detection and diagnosis of induction motors based on hidden Markov model