Artificial Intelligence Application for Security Issues and Challenges in IoT