A survey of using machine learning in IoT security and the challenges faced by researchers