Text this: Energy management system of a microgrid using deep learning