Rank 1
Rank 1
Mechanism
Petr Nejedly, Adam Ivora, Radovan Smisek, Ivo Viscor, Zuzana Koscova, Pavel Jurak, Filip Plesinger
Institute of Scientific Instruments of the Czech Academy of Sciences, Brno, Czech Republic
Page 2
A Input
B Input
ResBlock
Conv
BatchNorm
Conv
LeakyReLU
BatchNorm
LeakyReLU
ResBlock
AvgPool
ResBlock
Conv
Conv
ResBlock
BatchNorm
ResBlock
LeakyReLU
ResBlock
+ Dropout
Q K V
Output
MultiHeadAttention
C Public Dataset
Concat
Linear
Iterative
Stratification
Ensemble x3
Output #1 Linear
Linear
Neural Network Class Threshold
Training Optimization
Sigmoid
Differential
NN
Evolution
(b) Training and validation pipeline with differential evolution threshold optimization.
Figure 1: Residual block (a), Model architecture (b), Training pipeline (c)
Ranking Team Validation CPSC test G12EC test Undisclosed test UMich test Test set
1 ISIBrno-AIMT 0.63 0.71 0.61 0.54 0.59 0.58
2 DSAIL-SNU 0.59 0.61 0.59 0.54 0.57 0.57
3 NIMA 0.63 0.76 0.6 0.44 0.58 0.55
Page 3
the selection of the best model and subsequent automatic In this paper, we described our solution to the Phys-
threshold optimization. In addition, we performed a gener- ioNet/CinC Challenge 2021, performing the best across all
alization test by evaluating model performance on an exter- teams and categories. The presented model shown consis-
nal dataset (Hefei high tech Cup - ECG Human-Machine tent classification performance across all lead configura-
Intelligence Competition held by the Tianchi platform)[9], tions, answering the challenge topic ”Will Two Do?”.
and achieved the challenge score of 0.77 (not all scored
classes were present). Lastly, we performed another gen- Acknowledgments
eralization test by excluding G12EC dataset from training
and using it as full holdout achieving the challenge score This work was supported with a project by the Czech
of 0.53. Academy of Sciences RVO: 68081731 and with a project
The performance of our algorithm (ISIBrno-AIMT by the Czech Technological Agency: FW01010305.
team) was estimated on hidden validation set during the of-
ficial phase of the challenge. Tab.1 shows a comparison of References
the three best-performing teams. Tab.2 shows our valida-
tion challenge scores for specific lead configurations. For [1] WHO Cardiovascular diseases (CVDs). https://www.
who.int/news-room/fact-sheets/detail/car
the hidden test set, we received a score of 0.58 across all
diovascular-diseases-(cvds). Accessed: 2021-
configurations. The total training time was approximately 08-30.
27 hours, i.e., 9 hours per model. [2] He K, Zhang X, Ren S, Sun J. Deep Residual Learning for
Image Recognition. arXiv 2015;.
Leads Validation Test Ranking [3] Reyna MA, Sadr N, Perez Alday EA, Gu A, Shah A, Ro-
12 0.64 0.58 1st bichaux C, et al. Will Two Do? Varying Dimensions in
6 0.62 0.58 1st Electrocardiography: the PhysioNet/Computing in Cardiol-
4 0.63 0.58 1st ogy Challenge 2021. Computing in Cardiology 2021;48:1–
3 0.63 0.58 1st 4.
2 0.62 0.58 1st [4] Perez Alday EA, Gu A, Shah A, Robichaux C, Wong AKI,
Liu C, et al. Classification of 12-lead ECGs: the Phys-
Table 2: Challenge scores for our final selected entry (team ioNet/Computing in Cardiology Challenge 2020. Physiolog-
ISIBrno-AIMT) scored on the hidden validation set, and ical Measurement 2020;41.
one-time scoring on the hidden test set as well as the rank- [5] Nejedly P, Ivora A, Viscor I, Halamek J, Jurak P, Plesinger
F. Utilization of Residual CNN-GRU With Attention Mech-
ing on the hidden test set.
anism for Classification of 12-lead ECG. Computing in Car-
diology 2020;1–4.
[6] Natarajan A, Chang Y, Mariani S, Rahman A, Boverman G,
4. Discussion and Conclusions Vij S, et al. A Wide and Deep Transformer Neural Network
for 12-Lead ECG Classification. Computing in Cardiology
This paper introduces a method for the classification of 2020;1–4.
ECG with a variable number of leads. We have developed [7] Vicar T, Hejc J, Novotna P, Ronzhina M, Janousek O. ECG
a Residual CNN network with an attention mechanism op- Abnormalities Recognition Using Convolutional Network
timized by a mixture of loss functions i.e., binary cross- With Global Skip Connections and Custom Loss Function.
entropy, differentiable approximation of challenge score, Computing in Cardiology 2020;1–4.
and sparsity loss function. Subsequently, a differential [8] Sechidis K, Tsoumakas G, Vlahavas I. On the Stratification
of Multi-label Data. Machine Learning and Knowledge Dis-
evolution algorithm was used for class-specific threshold
covery in Databases 2011;145–158.
optimization. [9] Wang D, Meng Q, Chen D, Zhang H, Xu L. Automatic De-
In comparison to our previous solution [5] from Phys- tection of Arrhythmia Based on Multi-Resolution Represen-
ioNet/CinC challenge 2020[4], we have improved prepro- tation of ECG Signal. Sensors 2020;20(6).
cessing steps (filtering, normalization, and data augmenta-
tion). We have also updated the architecture of the model
using larger convolutional kernels. In the presented solu- Address for correspondence:
tion, we performed local tests to check generalization abili-
Petr Nejedly
ties of the model. We believe that signal filtering in the nar-
Královopolská 147, 612 00 Brno, Czech Republic
row frequency range of 1-47 Hz helped with the general-
[email protected]
ization of our model, which was probably the critical draw-
back of our last year’s solution. We also introduced spar-
sity loss properties helping with the class-specific thresh-
olds optimization.
Page 4