Compact neural network algorithm for electrocardiogram classification | Synapse