This smart thermostat can predict the preferred temperature of the user in real time, and provides an optimum environment based on its prediction. After a learning period of approx. two weeks to one month, it will be able to perform without any further user input. We use AskStory's intelligent data mining engine and infrared sensors to allow for a fully automated temperature control system resulting in energy savings of 25%. The qualitative data collection during this process also carries huge potentials to expand to the healthcare industry and smart home network systems.