IoT and artificial intelligence