Text this: Modeling and optimization of power consumption towards energy saving