Machine Learning-Based Anomaly Detection in the Internet of Things