MACHINE LEARNING FOR INTELLIGENT ENERGY CONSUMPTION IN SMART HOMES