Wearable Medical Device Ecosystems Through Machine Learning and Cloud Computing