Security Threats and AI-Based Detection Techniques in IoT Chips