Healthguard: A machine learning-based security framework for smart healthcare systems