AI-based IoT operating systems