<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Transfer Learning for tuberculosis screening by single-channel ECG</article-title>
      </title-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>149</fpage>
      <lpage>154</lpage>
      <abstract>
        <p>-Tuberculosis is one of the leading causes of death in The motivation for this study was the work that shows the the world. The majority of the population is not able to regularly relationship between cardiological and tuberculosis diseases conduct specific e x aminations, s u ch a s x - ray e x aminations, for [4]. Besides, often the tuberculosis bacteria themselves affect tfohre mpreeasseunrciengofEtCubGe,rcwuhloicsihs.aClluowrretnatklyin, gthmereeasaurreemmoenbtilse wdietvhiocuest the heart and thus affect its electrical activity. At the moment, leaving home. This article explores the possibility of determining this is the first work that is devoted to the problem of tuberculosis based on a single-channel mobile ECG. One of the tuberculosis detection via single-channel mobile ECG. general top-performance neural networks is used as a classifier. Now neural networks are one of the most popular methods This article also explored the possibility of such a classification for analyzing medical signals and images. There are plenty ibnatseerdprnetost tohne rparwedidcatitoan, bouftththeengeeunrearlanteedtwiomrkagea.ndThmeaikmesagiet of works in which medical images and ECGs are analyzed possible for the doctor to understand the model's decision better. using neural networks (NN), for example, [5], [6], [7], [8], The article shows the promising performance and provides proof [9]. Usually, raw ECGs are analyzed using recurrent [10] or of concept of such screening. Different ratios of precision and convolutional neural [8] networks with 1d convolutions. In this recall are provided, which can be adjusted depending on the paper, it is proposed to analyze an ECG visualization and not a situKaetyiowno.rds-Neural Networks, ECG classification, Tubercu- raw signal. So the image but not a signal is analyzed. There are losis, Deep Learning, Transfer Learning some works in which neural networks analyze the image of an ECG signal [11] [12] and show good performance. However, I. INTRODUCTION in these articles, architectures were trained from scratch and were specially selected for the task. There are large number of pretrained architectures for images [13], [14], [15]. Since, for many tasks, pretrained architectures show significantly better performance than architectures trained from scratch [16], there is an assumption that they will show better performance on the paper's task. There is work [17] that shows that pretrained architectures can be used as a feature extractor for phonocardiogram signals (PCG), which also provides additional motivation for exploring the possibility of using pretrained architectures. This paper aims to investigate the possibility of determining tuberculosis from ECG images, the possibility of using pretrained models for such tasks, and of the interpretation of such models. The main scientific novelty of this paper is the use of pre-trained architecture for ECG classification. It is also the first article that explores the feasibility of determining tuberculosis by a single-channel ECG and explores the relationships of metrics that a solution can achieve. The paper is organized as follows. Initially, the dataset and data preprocessing methods are described. Then, the process of generation of the ECG image and the architecture of the neural network are given. Then the results of experiments and interpretation of the neural network are reported. Finally, the limitations of the article are analyzed, and the conclusion is given.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Tuberculosis (TB) is caused by bacteria (Mycobacterium
tuberculosis) that most often affect the lungs. Tuberculosis is
curable and preventable. TB is easily spread from person to
person through the air. TB is one of the ten leading causes of
death in the world [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It is crucial to determine tuberculosis
in time to prevent its spread and begin treatment of an ill
person. It takes a long time for both the physician and the
patient to carry out specific tests for TB (e.g., such as X-rays or
Xpert MTB/RIF), and as such, they cannot be conducted with
relatively high regularity. So, it would be useful to have some
pre-screening, which could be done quite often and which
would allow identifying people with a high chance of having
tuberculosis and conduct specific te sts o n ly f o r them.
      </p>
      <p>
        ECG is a signal that displays the electronic activity of
the heart. Each ECG recording shows the potential difference
between two electrodes located on the surface of the body.
Each of the measured potential differences is called a lead.
In medical institutions, 12-lead ECGs are commonly used.
Currently, on the market, there are mobile devices that are
capable of reading an electrocardiogram (ECG) of a person,
for example, AliveCor [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], CardioQvark [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Such
devices read only one of the 12 leads. Such devices can be used
as often as required. Anybody can have just a few devices per
institution or organization to conduct such pre-screenings
every day. People who have a high chance of having a disease
will need to see a TB specialist as soon as possible.
      </p>
    </sec>
    <sec id="sec-2">
      <title>II. DATASET</title>
    </sec>
    <sec id="sec-3">
      <title>All data used in this study was collected using the Cardio</title>
      <p>
        Qvark device [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The dataset consists of 1232 ECGs from
136 people with TB and 3609 ECGs from people without
TB. Dataset sex distribution among people with tuberculosis
and people without tuberculosis is shown in Fig.1. Dataset
age distribution among people with tuberculosis and people
without tuberculosis is shown in Fig.2.
      </p>
    </sec>
    <sec id="sec-4">
      <title>ECG recordings were sampled as 1000 Hz, and they have</title>
      <p>been filtered by th e C a rdioQvark d e vice. T h e l e ngth o f ECG
recordings varies from 30.5 seconds to 900 seconds. For trend
subtraction, the median filter w i th a ke rnel s i ze o f 1 8 7 was
used.</p>
    </sec>
    <sec id="sec-5">
      <title>III. IMAGE GENERATION PROCESS AND NEURAL</title>
      <p>NETWORK ARCHITECTURE</p>
      <p>
        Signals were resampled to a frequency of 200 Hz via the
polyphase resample method from the SciPy Python library [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]
to reduce the image size. Signals longer than 100 seconds were
divided into sub-signals. The signal is divided sequentially into
sections of 100 seconds to receive the sub-signals, if the length
of the last section is less than 30 seconds, then it was not added
to the sample set.
      </p>
    </sec>
    <sec id="sec-6">
      <title>Since the signals were taken from a device that can have</title>
      <p>
        noise, and the signal could disappear for various reasons, it is
necessary to remove signals that contain much noise or do not
contain any useful information. R-peaks that represent
heartbeat were calculated using the Pan–Tompkins algorithm [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ].
Then the distances between the two peaks were calculated.
It was measured heuristically that the signal section almost
certainly does not contain useful information if the distance
between the two R-peaks is more than 2.6s or less than 0.3s.
The signal was removed from the dataset if there were more
than 55 percent of such distances in it.
      </p>
      <p>After dividing the long signals into sub-signals and
removing the signals that contain mainly noise, 13776 signals were
obtained. Ten thousand ninety-seven of them belong to 367
TB-positive people, and 3679 of them belong to 136
TBnegative people. More than 90 percent of the resulting signals
is 100 seconds long. The number of signals per TB-positive
patients varies from 1 to 1540. The number of signals per TB
negative patients varies from 3 to 198.</p>
      <p>
        The image was generated using the Matplotlib plot function
[
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. The whole ECG signal was divided into seven parts
of 2857 points each, with dots per inch of 70. The size of
the figure was set to 7.4 by 7.4 inches. Since the matplotlib
generates an image in the RGBA format, and most neural
networks use RGB format, only the 4th channel was used. This
channel was multiplied to create three channels. The example
of the generated image is given in Fig. 3.
      </p>
    </sec>
    <sec id="sec-7">
      <title>ResNext 101 [15] was used as the main model for the experiments. The main idea of this model is the introduction of the new dimension, which authors called ”cardinality” the size of the set of transformations. The main function of</title>
      <p>
        this dimension is the control over complex transformations.
Even while maintaining complexity, increasing ”cardinality”
can improve classification accuracy. In this paper, a model
with a ”cardinality” value of 32 was used. This model is one
of the top best models for classification on ImageNet [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] and
is easy to use and retrain on new data.
      </p>
      <p>This model has four blocks of convolutional layers. The
following neural network configurations were used to explore
the possibilities of transfer learning: the completely untrained
network (UN), pretrained on ImageNet network with no frozen
layers (PN), pretrained on ImageNet network with frozen layer
1 (or 2, 3, 4) and all layers before it (L1(2, 3, 4)). In the case
of freezing up to layer four, only one fully connected classifier
layer is trained.</p>
      <p>
        Augmentation is a method in which artificially generated
data is added to the original data. This method is one of the
methods that is widely used to improve the quality of neural
network models [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ]. Online augmentation is a method that
replaces the part of the data to the synthetic one during the
training stage. A study was conducted that investigated online
augmentation for the classification quality improvement of
single-channel ECGs by using a neural network [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]. The data
that was used in that article contains the dataset discussed in
this study. However, that study did not use the representation of
the signal as an image, nor did it study the possibilities of such
training. Research in an article on online augmentation has
shown that it helps in improving the quality of classification
of single-channel signals.
      </p>
      <p>
        One of the most promising methods was the ResampleParts
method. This method resamples parts of the signal with a
specific resampling coefficient using the polyphase resample
method from the SciPy Python library [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. The specific size
of the signal part and resampling coefficient is set at random
each time from a certain interval. Due to the reason mentioned
above, this augmentation method was chosen to increase the
quality of tuberculosis detection.
      </p>
    </sec>
    <sec id="sec-8">
      <title>IV. EXPERIMENTS AND RESULTS</title>
    </sec>
    <sec id="sec-9">
      <title>All experiments were conducted using Python language. PyTorch [24] was used as the main neural network framework. Signals were read and transformed using NumPy [25] and SciPy [18] libraries.</title>
      <p>To correctly evaluate the results, the entire dataset was
divided into training, test, and validation set. The training set
was used to train the model. The validation set was used to
select the hyperparameters and for early stopping. A test set
was used to check the final performance. The full dataset was
partitioned into three parts in a specific way, such that each
of the three groups contained different patients. The train set
contains 2648 original ECGs from 247 patients. Among them,
69 patients with 689 ECGs have TB. After the preprocessing
stage the train set has 7495 ECGs and among them 2058 from
TB-positive persons. The validation set contains original 1062
ECGs from 112 patients. Among them, 30 patients with 255
ECG have TB. After the preprocessing stage, the validation set
has 3076 ECGs and among them 765 from TB-positive person.</p>
      <p>The test set contains original 1130 ECGs from 144 patients.</p>
      <p>Among them, 37 patients with 288 ECGs have TB. After the
preprocessing stage, the validation set has 3205 ECGs and
among them 857 from TB-positive persons. The number of
patients after the preprocessing stage stays the same in all
datasets.</p>
      <p>
        For reproducibility, all neural network configurations were
trained with a random state of 10. This random state was fixed
for NumPy, PyTorch CPU, and GPU variables and also for
standard Python random library. Also, the CUDA state was
set to deterministic. For all configurations, A dam w as u sed as
an optimizer, and batch size was set to 16. For the untrained
network, the learning rate was set to 0.0005 and is dropped
by a factor of 0.0001 after the 8th epoch. For the pretrained
network, the learning rate was set to 0.0005 and is dropped
by a factor of 0.001 after the 8th. For the pretrained network
with unfrozen and frozen layers, the learning rate was set to
0.0001 and is dropped by a factor of 0.001 after the first and
fourth epoch. All parameters that are not described were set
to default values of PyTorch library [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ]. The metric that was
used for early stopping was the area under the precision-recall
(PR AUC) curve since classes are not balanced in samples. The
precision-recall curve illustrates the ratio between precision
and recall of different thresholds. A high value of precision
indicates that a model has a low false-positive rate, and a high
value of recall shows that model has a low false-negative rate.
      </p>
      <p>A high value of the PR AUC corresponds to both high recall
and high precision.</p>
      <p>Another important metric that is useful to take into
consideration during model evaluation is an area under the ROC
curve (ROC AUC). ROC curve shows the ratio between the
true positive rate and the false positive rate. This metric could
be useful as it shows the probability that the model ranks
a random positive example higher than a random negative
example. However, this metric can be sensitive to unbalanced
classes in data, and so it should not be the only metric
for performance evaluation. Table I shows the results from
different network configurations v ia t he ROC AUC s core and
PR AUC score.</p>
      <p>As can be seen from table I, the best performance is
obtained with configurations L1 and L2. This table shows that
transfer learning is useful for classifying ECG signals. These
results also correspond to the logic that the first layers of a
neural network learn simple dependencies such as lines and
simple shapes. When freezing a neural network up to the last
layers, a worse performance can be gotten than on a network
without pretraining (UN), since the features on the last layers
are not relevant for this specific task. Thus, based on metrics, Table II, table III, and table IV show the performance of
L1 can be considered the best model. models trained with augmentation and without it. As shown in</p>
      <p>For the improvement of this best model earlier described, these tables, the results are quite promising and customizable,
online augmentation was used. The interval for the resampling depending on the situation. These tables show that
augmenpart was set to (40; 200). The two types of resampling were tation increases the values of F and F C when equals to
used: frequency decreasing (FD) and frequency increasing 0.25 and 1, but does not improve the values when equals to
(FI). The resulting sample rate is calculated as the upsample 2. It can be explained by the fact that augmentation parameters
factor divided on the downsampling factor. For the frequency, were selected to maximize PR AUC value. This value is most
increasing the upsample factor was getting from 2 to 3, and correlated with F when equals to 1. As can be seen from
the downsampling factor was gotten from 3 to 5. For the the ratio between precision and recall, the main increase in the
frequency decreasing upsample, factor was gotten from 3 to PR AUC metric was associated with an increase in precision.
6, and the downsampling factor was gotten from 1 to 3. It explains the increase in performance when equal to 0.25.
The probabilities of augmentations was chosen from values Perhaps it is necessary to focus on other metrics during the
[0:1; 0:2; 0:3; 0:4; 0:5]. The best model was determined based process of selection of augmentation parameters to increase
on the PR AUC metric on the validation set. The best model the value of F2.
was the model with the probability of augmentation of 0.5.</p>
      <p>The best model has 0.9475 ROC AUC and 0.875 PR AUC TABLE II. EXPERIMENT RESULTS
on the test set. Based on the results of the experiments, it
is reasonable to conclude that augmentation improves model P R F
performance. M1 M2 M1 M2 M1 M2</p>
      <p>In most real-life scenarios, the probability of certain events 0.125 00..8795168 00..9718457 00..7497111 0.05.5708725 00..767137 00..678874
can not be used to make a decision. A specific label is 2 0.665 0.6274 0.878 0.9393 0.757 0.7523
assigned to each patient using probability thresholding. To
explore the balance between precision and recall in a situation
of unbalanced classes, F score metric is used:
The is in range (0; +1). The greater the is, the larger the
weight the recall has. can be selected differently based on the
situation. If we want to find all TB-positive people and the cost
of additional procedures is not that important, then we give the
recall the greater weight. If the cost of additional procedures
is crucial, then the precision is much more important even at
the cost of skipping some TB-positive people.</p>
      <p>This article investigated the following beta threshold
options: 0.25, 1, 2. The validation set was used for the threshold
calculation. The following metrics were investigated: accuracy
(A), which is the number of right guesses, as well as precision
(P) and recall (R). Since each cardiogram was divided into
several images, the following rule was used to determine the
label for the entire cardiogram. If at least one cardiogram is
labeled as TB-positive, then the entire cardiogram is labeled
TB-positive. The metrics that are determined for the entire
ECG are called: AC, PC, and RC for accuracy for ECG,
precision for ECG, and recall for ECG, respectively. Since
one patient can have multiple ECG, the patient score for
cardiogram labels was calculated. The patient score (PS)
equals to mean accuracy for person ECGs averaged through
all people.</p>
      <p>Models without augmentation (M1) and with it (M2) were
compared using the metrics described above. F metric was
used to determine which model has a better ratio between
recall and precision. F , which shows the ratio between ECG
precision and ECG recall is shown as F C .</p>
    </sec>
    <sec id="sec-10">
      <title>Doctors often want to understand why a neural network</title>
      <p>made a confident decision. Therefore, the interpretation of the
neural network is quite useful. Besides, interpretation can be
used to identify previously unknown signs of the disease to
think through treatment in the future.</p>
      <p>
        Grad-CAM [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] shows quite good results in interpreting
neural networks. Grad-CAM uses the gradient information
flowing into the last convolutional layer of CNN to understand
the impact on each neuron for a decision of interest. Fig. 4
and 5 show the interpretation results on the pretrained model
without augmentation and with it. The lighter the points on
the image, the more important these points are. Both images
represent the same ECG of TB-positive person. As can be seen
from the images, the neural network draws attention to the
PQST complexes, the distance between the peaks, and also the
height of some peaks. Features selected by the network with
and without augmentation are almost identical. However, the
network with augmentation does not take into consideration
some features as one at the end of the 4th row. Perhaps the
elimination of some noisy features might help to improve the
classification quality.
      </p>
      <p>
        The reader of this article should know that this article
has the following limitations: the sample size of TB-positive
people is quite small, so for further investigation of
performance, the bigger sample should be used. It should also be
noted that the sample contains patients who received treatment
for tuberculosis. Due to the existing database structure, it is
impossible to say whether the patient took medicine, and if
he did, how recent the use is. For more robust experiments, a
new database must be compiled. However, even in the current
circumstances, this study is useful for the following reasons.
Let us imagine an organization that employs a TB-positive
person, who has already started taking medicine and hides
his condition, thus increasing the chance of infecting people
around him. In such a situation, it is still beneficial t o screen
people with the suggested algorithm. Besides, it is known that
people taking medicine may experience an increase in
QTinterval [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ]. However, in this dataset, the average value of
the QT-interval showed a low predictive quality for TB of
about 0.51 ROC AUC. Based on this, we can conclude that
the neural network finds some other defining signs. Also, with
the help of the neural network interpretation in the future, the
effect of TB-drugs on the heart can be explored.
      </p>
      <p>The new method for classifying the visualization of ECGs
using pre-trained architecture was proposed. This method
was used on a single-channel ECG to explore the possibility
of determination of tuberculosis from such images. It was
determined that the neural network could detect tuberculosis
by a cardiogram with moderately high performance. The
new method help to improve the quality of the ECG image
classification. ROC AUC s core w as i ncreased f rom 0 .9079 to
0.934, and PR AUC score was increased from 0.7956 to 0.84.
The significance o f t he r esults s hows t hat t his m ethod should
be used to classify the ECG for other tasks. For example, to
detect coronary heart disease and arrhythmia.</p>
      <p>Another paper novelty was the confirmation o f t he
possibility of increasing the classification q uality b y u sing online
augmentation with such architectures and data. It has been
shown that online augmentation can improve the performance
of the classification. I n t his a rticle, t he p erformance was
improved from 0.934 ROC AUC to 0.9475 ROC AUC, and
PR AUC was increased from 0.84 to 0.875. The increase
shows that online augmentation should be used when using
the proposed method.</p>
      <p>The method for interpretation of such models is described,
which can be used further for drug and disease effect
exploration purposes.</p>
      <p>Various ratios of quality metrics of the obtained solution for
tuberculosis detection have been received. They show that it is
reasonable to conduct TB pre-screening using mobile ECG in
the future to identify potential patients and recommend further
specific t ests. T his s tudy i s a n i mportant p roof o f concept.</p>
    </sec>
    <sec id="sec-11">
      <title>Some disadvantages of the dataset were indicated in the article. In the future, to build a production solution, it is reasonable to increase and carefully verify the dataset.</title>
      <p>ACKNOWLEDGMENT</p>
      <p>This article contains the results of a project carried out
within the imple-mentation of the Program of the Center for
Competence of the National Tech-nology Initiative “Center for
Storage and Analysis of Big Data”, supported by the Ministry
of Science and Higher Education of the Russian Federation
under the Lomonosov Moscow State University Project
Support Fund 13/1251/2018 from 11.12.2018.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>[1] ”Tuberculosis (TB)”</article-title>
          , Who.int,
          <year>2020</year>
          [Online]. URL: https://www.who.int/news-room/fact-sheets/detail/tuberculosis.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2] ”AliveCor”, Alivecor.com,
          <year>2020</year>
          [Online]. URL: https://www.alivecor.com.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <article-title>[3] ”Cardiomonitor (in Russian) CardioQVARK”</article-title>
          , Cardioqvark.ru,
          <year>2020</year>
          [Online]. URL: http://www.cardioqvark.ru.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Huaman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Henson</surname>
          </string-name>
          , E. Ticona,
          <string-name>
            <given-names>T.</given-names>
            <surname>Sterling</surname>
          </string-name>
          and
          <string-name>
            <given-names>B.</given-names>
            <surname>Garvy</surname>
          </string-name>
          , ”
          <article-title>Tuberculosis and cardiovascular disease: linking the epidemics</article-title>
          ,” Tropical Diseases,
          <source>Travel Medicine and Vaccines</source>
          , vol.
          <volume>1</volume>
          , no.
          <issue>1</issue>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Pashina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gaidel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Zelter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kapishnikov</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Nikonorov</surname>
          </string-name>
          , ”
          <article-title>Automatic highlighting of the region of interest in computed tomography images of the lungs</article-title>
          ,”
          <source>Computer Optics</source>
          , vol.
          <volume>44</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>74</fpage>
          -
          <lpage>81</lpage>
          ,
          <year>2020</year>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>2412</fpage>
          -6179-CO-
          <volume>659</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Agafonova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gaidel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Zelter</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Kapishnikov</surname>
          </string-name>
          , ”
          <article-title>Efficiency of machine learning algorithms and convolutional neural network for detection of pathological changes in MR images of the brain</article-title>
          ,”
          <source>Computer Optics</source>
          , vol.
          <volume>44</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>266</fpage>
          -
          <lpage>273</lpage>
          ,
          <year>2020</year>
          . DOI:
          <volume>10</volume>
          .18287/
          <fpage>2412</fpage>
          -6179- CO-
          <volume>671</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Kiranyaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Ince</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Gabbouj</surname>
          </string-name>
          , ”
          <article-title>Real-Time Patient-Specific ECG Classification by 1</article-title>
          -
          <string-name>
            <given-names>D</given-names>
            <surname>Convolutional</surname>
          </string-name>
          Neural Networks,
          <source>” IEEE Transactions on Biomedical Engineering</source>
          , vol.
          <volume>63</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>664</fpage>
          -
          <lpage>675</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Zihlmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Perekrestenko</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Tschannen</surname>
          </string-name>
          , ”
          <source>Convolutional Recurrent Neural Networks for Electrocardiogram Classification,” Computing in Cardiology Conference (CinC)</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>4</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhu</surname>
          </string-name>
          and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Chen</surname>
          </string-name>
          , ”
          <article-title>Atrial fibrillation detection by multi-scale convolutional neural networks</article-title>
          ,
          <source>” 20th International Conference on Information Fusion (Fusion)</source>
          ,
          <source>Xi'an</source>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>6</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>R.</given-names>
            <surname>Banerjee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ghose</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Khandelwal</surname>
          </string-name>
          , ”
          <article-title>A Novel Recurrent Neural Network Architecture for Classification of Atrial Fibrillation Using Single-lead ECG,” 27th European Signal Processing Conference (EUSIPCO), A Coruna</article-title>
          , Spain, pp.
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P.</given-names>
            <surname>Sean</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Huizinga</surname>
          </string-name>
          , ”
          <article-title>Robust and fast heart rate variability analysis of long and noisy electrocardiograms using neural networks and images</article-title>
          ,” arXiv:
          <year>1902</year>
          .06151,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>M.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ko</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Pan</surname>
          </string-name>
          , ”
          <article-title>A study on user recognition using 2D ECG based on ensemble of deep convolutional neural networks</article-title>
          ,
          <source>” Journal of Ambient Intelligence and Humanized Computing</source>
          , vol.
          <volume>11</volume>
          , no.
          <issue>5</issue>
          , pp.
          <fpage>1859</fpage>
          -
          <lpage>1867</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>H.</given-names>
            <surname>Kaiming</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , Sh. Ren and
          <string-name>
            <given-names>J.</given-names>
            <surname>Sun</surname>
          </string-name>
          , ”
          <article-title>Deep residual learning for image recognition</article-title>
          ,
          <source>” Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pp.
          <fpage>770</fpage>
          -
          <lpage>778</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>F.</given-names>
            <surname>Chollet</surname>
          </string-name>
          , ”Xception:
          <article-title>Deep learning with depthwise convolutions</article-title>
          ,
          <source>” Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pp.
          <fpage>1251</fpage>
          -
          <lpage>1258</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>X.</given-names>
            <surname>Saining</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Girshick</surname>
          </string-name>
          , P. Dolla´r,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Tu</surname>
          </string-name>
          and
          <string-name>
            <given-names>K.</given-names>
            <surname>He</surname>
          </string-name>
          , ”
          <article-title>Aggregated residual transformations for deep neural networks</article-title>
          ,
          <source>” Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          , pp.
          <fpage>1492</fpage>
          -
          <lpage>1500</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>K.</given-names>
            <surname>Simonyan</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Zisserman</surname>
          </string-name>
          , ”
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          ,
          <source>” arXiv: 1409.1556</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>H.</given-names>
            <surname>Alaskar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Alzhrani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hussain</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Almarshed</surname>
          </string-name>
          , ”
          <article-title>The Implementation of Pretrained AlexNet on PCG Classification,” Intelligent Computing Methodologies</article-title>
          , pp.
          <fpage>784</fpage>
          -
          <lpage>794</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>P.</given-names>
            <surname>Virtanen</surname>
          </string-name>
          ,
          <article-title>"SciPy 1.0: fundamental algorithms for scientific computing in Python,"</article-title>
          <source>Nature Methods</source>
          , vol.
          <volume>17</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>261</fpage>
          -
          <lpage>272</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>J.</given-names>
            <surname>Pan</surname>
          </string-name>
          and
          <string-name>
            <given-names>W. J.</given-names>
            <surname>Tompkins</surname>
          </string-name>
          ,
          <article-title>"A Real-Time QRS Detection Algorithm,"</article-title>
          <source>IEEE Transactions on Biomedical Engineering</source>
          , vol. BME-
          <volume>32</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>230</fpage>
          -
          <lpage>236</lpage>
          ,
          <year>1985</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hunter</surname>
          </string-name>
          ,
          <article-title>"Matplotlib: A 2D Graphics Environment"</article-title>
          ,
          <source>Computing in Science &amp; Engineering</source>
          , vol.
          <volume>9</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>90</fpage>
          -
          <lpage>95</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>D.</given-names>
            <surname>Mahajan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Girshick</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Ramanathan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Paluri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bharambe</surname>
          </string-name>
          and
          <string-name>
            <surname>L. van der Maaten</surname>
          </string-name>
          , ”
          <article-title>Exploring the limits of weakly supervised pretraining</article-title>
          ,
          <source>” Proceedings of the European Conference on Computer Vision (ECCV)</source>
          , pp.
          <fpage>181</fpage>
          -
          <lpage>196</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>A.</given-names>
            <surname>Mikołajczyk</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Grochowski</surname>
          </string-name>
          , ”
          <article-title>Data augmentation for improving deep learning in image classification problem</article-title>
          ,”
          <source>International Interdisciplinary PhD Workshop</source>
          (IIPhDW), Swinoujs´cie, pp.
          <fpage>117</fpage>
          -
          <lpage>122</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>V.</given-names>
            <surname>Guryanova</surname>
          </string-name>
          , ”
          <article-title>Online Augmentation for Quality Improvement of Neural Networks for Classification of Single-Channel Electrocardiograms</article-title>
          ,” Communications in Computer and Information Science, pp.
          <fpage>37</fpage>
          -
          <lpage>49</lpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>A.</given-names>
            <surname>Paszke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gross</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Massa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Lerer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bradbury</surname>
          </string-name>
          , G. Chanan and
          <string-name>
            <given-names>T.</given-names>
            <surname>Killeen</surname>
          </string-name>
          , ”
          <article-title>PyTorch: An imperative style, high-performance deep learning library</article-title>
          ,
          <source>” Advances in Neural Information Processing Systems</source>
          , pp.
          <fpage>8024</fpage>
          -
          <lpage>8035</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>S. van der</given-names>
            <surname>Walt</surname>
          </string-name>
          , S. Colbert and G. Varoquaux, ”
          <article-title>The NumPy Array: A Structure for Efficient Numerical Computation</article-title>
          ,” Computing in Science &amp; Engineering, vol.
          <volume>13</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>22</fpage>
          -
          <lpage>30</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>R.</given-names>
            <surname>Selvaraju</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cogswell</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Das</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Vedantam</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Parikh</surname>
            and
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Batra</surname>
          </string-name>
          , ”
          <article-title>Grad-cam: Visual explanations from deep networks via gradient-based localization</article-title>
          ,
          <source>” Proceedings of the IEEE international conference on computer vision</source>
          , pp.
          <fpage>618</fpage>
          -
          <lpage>626</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Bykova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. I.</given-names>
            <surname>Chashkina</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. V.</given-names>
            <surname>Serova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Simonov</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Yu</surname>
          </string-name>
          .
          <article-title>Kopylov, "The prevalence of prolongation of the QT interval in patients receiving antituberculous chemotherapy," Cardiology and Cardiovascular Surgery</article-title>
          , vol.
          <volume>12</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>146</fpage>
          -
          <lpage>151</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>