Text this: Optimizing Smart Power Grid Stability Based on the Prediction of a Deep Learning Model