Text this: Data-driven energy management and tariff optimization in power systems :