Machine Learning-Assisted Intrusion Detection for Enhancing Internet of Things Security