Convolutional Neural Network and Rule-Based Algorithms for Classifying 12-lead ECGs