A Novel Smart Healthcare Monitoring System Using Machine Learning and the Internet of Things