AI-powered IoT: How artificial intelligence works at the industrial edge