Deep Learning Approaches for Security Threats in IoT Environments