Telemedical and remote healthcare monitoring using IoT and machine learning