Real-time discrimination of multiple cardiac arrhythmias for wearable systems based on neural networks