The Role of AI in IoT Security