Detection and Classification of Disturbances in the Grid Using Discrete Wavelet Analysis and Machine Learning