Text this: Adaptive artificial neural network for power system security assessment and control action