Anomaly Detection and Complex Event Processing Over IoT Data Streams