Artificial Intelligence Based Techniques for Anomaly Detection in IoT: A Comparative Analysis