Tying in Artificial Intelligence to IoT