AI makes edge and IoT smarter