Adaptive Partition of ECG Diagnosis Between Cloud and Wearable Sensor Net Using Open-Loop and Closed-Loop Switch Mode | Synapse