Greener Cyber Physical Systems - Data Analysis And Algorithm Design