Text this: Efficient Techniques for Detection and Mitigation of Power Quality Events