Neural networks invariant to Fourier transform for fault diagnosis of nonlinear power systems