Improvement of Smart Grid Stability using Artificial Intelligence and Ensemble Learning,