Secure Supervised Learning-Based Smart Home Authentication Framework