Text this: Performance Analysis of an Optimized ANN Model to Predict the Stability of Smart Grid