<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMI</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id>
      <journal-title>JMIR Medical Informatics</journal-title>
      <issn pub-type="epub">2291-9694</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v8i3e17037</article-id>
      <article-id pub-id-type="pmid">32163037</article-id>
      <article-id pub-id-type="doi">10.2196/17037</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>A Lightweight Deep Learning Model for Fast Electrocardiographic Beats Classification With a Wearable Cardiac Monitor: Development and Validation Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Eysenbach</surname>
            <given-names>Gunther</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Zhang</surname>
            <given-names>Liangliang</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Lim</surname>
            <given-names>Gilbert</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" equal-contrib="yes">
          <name name-style="western">
            <surname>Jeon</surname>
            <given-names>Eunjoo</given-names>
          </name>
          <degrees>PhD, RN</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-3340-6376</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author" equal-contrib="yes">
          <name name-style="western">
            <surname>Oh</surname>
            <given-names>Kyusam</given-names>
          </name>
          <degrees>MS</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-4271-6790</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Kwon</surname>
            <given-names>Soonhwan</given-names>
          </name>
          <degrees>BS</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-0400-5450</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author">
          <name name-style="western">
            <surname>Son</surname>
            <given-names>HyeongGwan</given-names>
          </name>
          <degrees>BS</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-1319-7722</ext-link>
        </contrib>
        <contrib id="contrib5" contrib-type="author">
          <name name-style="western">
            <surname>Yun</surname>
            <given-names>Yongkeun</given-names>
          </name>
          <degrees>BS</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-2710-8508</ext-link>
        </contrib>
        <contrib id="contrib6" contrib-type="author">
          <name name-style="western">
            <surname>Jung</surname>
            <given-names>Eun-Soo</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-8379-3004</ext-link>
        </contrib>
        <contrib id="contrib7" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Kim</surname>
            <given-names>Min Soo</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>Technology Research</institution>
            <institution>Samsung SDS</institution>
            <addr-line>56 Seongchon-ro, Seocho-gu</addr-line>
            <addr-line>Seoul, 06765</addr-line>
            <country>Republic of Korea</country>
            <phone>82 2 6155 3808</phone>
            <email>minsoo07.kim@samsung.com</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-2586-414X</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Technology Research</institution>
        <institution>Samsung SDS</institution>
        <addr-line>Seoul</addr-line>
        <country>Republic of Korea</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Min Soo Kim <email>minsoo07.kim@samsung.com</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <month>3</month>
        <year>2020</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>12</day>
        <month>3</month>
        <year>2020</year>
      </pub-date>
      <volume>8</volume>
      <issue>3</issue>
      <elocation-id>e17037</elocation-id>
      <history>
        <date date-type="received">
          <day>14</day>
          <month>11</month>
          <year>2019</year>
        </date>
        <date date-type="rev-request">
          <day>5</day>
          <month>12</month>
          <year>2019</year>
        </date>
        <date date-type="rev-recd">
          <day>21</day>
          <month>1</month>
          <year>2020</year>
        </date>
        <date date-type="accepted">
          <day>7</day>
          <month>2</month>
          <year>2020</year>
        </date>
      </history>
      <copyright-statement>©Eunjoo Jeon, Kyusam Oh, Soonhwan Kwon, HyeongGwan Son, Yongkeun Yun, Eun-Soo Jung, Min Soo Kim. Originally published in JMIR Medical Informatics (http://medinform.jmir.org), 12.03.2020.</copyright-statement>
      <copyright-year>2020</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on http://medinform.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="http://medinform.jmir.org/2020/3/e17037/" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>Electrocardiographic (ECG) monitors have been widely used for diagnosing cardiac arrhythmias for decades. However, accurate analysis of ECG signals is difficult and time-consuming work because large amounts of beats need to be inspected. In order to enhance ECG beat classification, machine learning and deep learning methods have been studied. However, existing studies have limitations in model rigidity, model complexity, and inference speed.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>To classify ECG beats effectively and efficiently, we propose a baseline model with recurrent neural networks (RNNs). Furthermore, we also propose a lightweight model with fused RNN for speeding up the prediction time on central processing units (CPUs).</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We used 48 ECGs from the MIT-BIH (Massachusetts Institute of Technology-Beth Israel Hospital) Arrhythmia Database, and 76 ECGs were collected with S-Patch devices developed by Samsung SDS. We developed both baseline and lightweight models on the MXNet framework. We trained both models on graphics processing units and measured both models’ inference times on CPUs.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>Our models achieved overall beat classification accuracies of 99.72% for the baseline model with RNN and 99.80% for the lightweight model with fused RNN. Moreover, our lightweight model reduced the inference time on CPUs without any loss of accuracy. The inference time for the lightweight model for 24-hour ECGs was 3 minutes, which is 5 times faster than the baseline model.</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>Both our baseline and lightweight models achieved cardiologist-level accuracies. Furthermore, our lightweight model is competitive on CPU-based wearable hardware.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>path-type ECG sensor system</kwd>
        <kwd>ECG classification</kwd>
        <kwd>deep learning</kwd>
        <kwd>recurrent neural network</kwd>
        <kwd>fused recurrent neural network</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <sec>
        <title>Background</title>
        <p>Arrhythmia refers to any change causing the heart to beat too fast or slow, or erratically [<xref ref-type="bibr" rid="ref1">1</xref>], and can lead to sudden death or critical adverse outcomes such as embolic stroke [<xref ref-type="bibr" rid="ref2">2</xref>]. Therefore, early detection and treatment of arrhythmia are very important.</p>
        <p>One of the most widely used diagnostic methods for detecting arrhythmia is electrocardiographic (ECG) monitoring. ECG monitoring is a simple and noninvasive method for recording electrical activities of the heart by using electrodes placed on human skin. However, at least 24 hours of ECG signals should be monitored to confirm arrhythmia since it occurs irregularly [<xref ref-type="bibr" rid="ref3">3</xref>,<xref ref-type="bibr" rid="ref4">4</xref>]. Recently, single lead patches that are wireless, compact, and lightweight have been proposed for long-term wear [<xref ref-type="bibr" rid="ref5">5</xref>-<xref ref-type="bibr" rid="ref7">7</xref>]. Despite improvements to measuring ECGs and patient comfort, it is still difficult to diagnose arrhythmias because identification of abnormal ECG patterns from large amounts of recorded ECGs is not trivial. For example, an ECG record, measured for 24 hours in patients with a heart rate of 80 bpm, consists of 110,000 beats. It takes at least 2 hours for an expert to analyze this 24-hour ECG signal.</p>
        <p>Large-scale machine learning methods have been investigated to reduce the human efforts for ECG beat classification [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref10">10</xref>]. However, most machine learning approaches with static and handcrafted features have performed at lower accuracy rates over new types of ECGs because those features are insufficient for representing the great diversity of ECG patterns from various patients. Therefore, several self-learning approaches based on a deep neural network have been proposed recently [<xref ref-type="bibr" rid="ref11">11</xref>-<xref ref-type="bibr" rid="ref13">13</xref>].</p>
        <p>Among the deep learning approaches, convolutional neural networks (CNNs) and recurrent neural networks (RNNs) are most commonly used for ECG classification. CNNs typically consist of convolution, pooling, and fully connected layers [<xref ref-type="bibr" rid="ref14">14</xref>]. CNNs extract implicit features of ECGs through each level of convolution layer and use the abstraction from these features to solve problems such as classification and regression [<xref ref-type="bibr" rid="ref15">15</xref>]. Rajpurkar et al [<xref ref-type="bibr" rid="ref11">11</xref>] used a CNN to classify 12 ECG rhythms, which are longer units consisting of 2 or more beats. Their model consisted of 33 convolutional layers with shortcut connections followed by a fully connected layer and a softmax layer. The model achieved an F1 score of 0.81 compared with the responses of board-certified cardiologists. Acharya et al [<xref ref-type="bibr" rid="ref12">12</xref>] proposed an ECG beat classification model using a CNN together with noise removal, wavelet transformation, and segmentation method. Their model consisted of three convolutional layers, three max-pooling layers, three fully connected layers, and finally, a softmax layer with five output neurons. The model resulted in an average accuracy of 94.03% compared with the MIT-BIH (Massachusetts Institute of Technology-Beth Israel Hospital) gold standard.</p>
        <p>However, a limitation of CNNs is that the length of inputs must be fixed since the filters of the networks have static sizes. When it comes to ECG classification, the length of ECGs can be varied according to an individual’s heart rate. Therefore, adjusting data such as linear interpolation is required to achieve same-size inputs [<xref ref-type="bibr" rid="ref11">11</xref>-<xref ref-type="bibr" rid="ref13">13</xref>].</p>
        <p>In contrast, RNNs are able to handle this sequential problem because the networks recursively learn data as time progresses [<xref ref-type="bibr" rid="ref16">16</xref>]. Tan et al [<xref ref-type="bibr" rid="ref17">17</xref>] proposed the implementation of a long short-term memory network (LSTM), which is the most widely used method among RNN approach, with a CNN to diagnose the presence of coronary artery disease from the ECG signals. Although they focused on specific diseases, they achieved an F1 score of 0.96. Oh et al [<xref ref-type="bibr" rid="ref18">18</xref>] diagnosed five types of rhythms: normal sinus rhythm, left bundle branch block, right bundle branch block, atrial premature beats, and premature ventricular contraction. Their model consisted of three 1D convolution layers, one LSTM layer, and three fully connected layers. They achieved a 98.10% accuracy using 10-fold cross-validation. Yildirim [<xref ref-type="bibr" rid="ref19">19</xref>] also classified five types of rhythms but chose bidirectional LSTM (bi-LSTM) instead of unidirectional LSTM (uni-LSTM). The proposed model was composed of four wavelet transform layers, two bi-LSTMs, and two fully connected layers. This model showed a recognition accuracy of 99.39%.</p>
        <p>However, existing studies using RNNs have limitations in application [<xref ref-type="bibr" rid="ref17">17</xref>-<xref ref-type="bibr" rid="ref20">20</xref>]. First, subject-specific evaluation to explore differences between patients is generally not conducted. Therefore, it is difficult to trust predictions of RNNs on new patients’ ECG signals that were not included in the training data. Second, RNNs have disadvantages related to financial cost and inference time. Most of the papers did not consider the cost of using a graphics processing unit (GPU) instead of a central processing unit (CPU) and did not present the time to inference with their deep learning models. This weakness in computational efficiency is a critical drawback of RNN applications. To accelerate and maximize the computational efficiency of RNN layers, MXNet proposed fused RNN operator by applying several optimization methods: (1) various general matrix multiplication (GEMM) modes such as combining small GEMMs, Batch GEMM, and Pack GEMM; (2) vectorization of elementwise operations using Basic Linear Algebra Subprogram (BLAS) libraries and Intel Math Kernel Library (MKL); and (3) saving and reusing intermediate results during forward computation [<xref ref-type="bibr" rid="ref21">21</xref>,<xref ref-type="bibr" rid="ref22">22</xref>].</p>
      </sec>
      <sec>
        <title>Objectives</title>
        <p>We used ECG signals measured with Samsung S-Patch 2, a small (120×29×4.4 mm in size) and light (8 g in weight) patch-type ECG monitor [<xref ref-type="bibr" rid="ref7">7</xref>]. To diagnose arrhythmias using S-Patch devices effectively and efficiently, we propose a baseline model with RNN that can learn sequential patterns. Furthermore, we also propose a lightweight model with fused RNN for conducting the classification process on CPUs with a shorter prediction time.</p>
      </sec>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Data Collection</title>
        <p>We analyzed an open-source ECG database (PhysioBank MIT-BIH Arrhythmia Database [<xref ref-type="bibr" rid="ref23">23</xref>]) together with our own deidentified dataset collected with the S-Patch device. Overall, the MIT-BIH Arrhythmia Database contains 48 subjects’ ECGs, each measured for 24 hours at 360 Hz.</p>
        <p>The S-Patch database was obtained according to the following procedures. First, we collected the ECGs using S-Patch at the Samsung Medical Center in Seoul and at Counties Manukau Health in New Zealand from February 2017 to April 2018. A skilled nurse at each hospital attached an ECG monitor and checked whether the ECGs were normally collected over the first 5 minutes. The patches of S-patch cardiac monitor were attached on v2 and v5 positions of the 12-lead placement (<xref rid="figure1" ref-type="fig">Figure 1</xref>). Second, three experts, who had more than 5 years of experience working in a territorial hospital, reviewed each record and excluded ones that contained noise levels of more than 80% to enhance the data quality. Subsequently, we anonymized data by removing personal and location information. Third, the three experts annotated each beat using the Web portal. If consensus could not be reached on the classification of a beat, the experts rediscussed the issue to make a final decision. Consequently, we collected 1828-hours of ECG data from 76 subjects. The average length of the ECGs from S-Patch was 17 hours (from 28 minutes to 45 hours). Each ECG collected with S-Patch was sampled at 256 Hz.</p>
        <p>In this study, we used five beat categories defined in the AAMI/IEC (Association for the Advancement of Medical Instrumentation / International Electrotechnical Commission) standard [<xref ref-type="bibr" rid="ref24">24</xref>] (ie, nonectopic [N], supraventricular ectopic [S], ventricular ectopic [V], fusion [F], and paced or unknown [Q]). Overall, 5,575,512 ECG beats were used in this study, as shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p>
        <fig id="figure1" position="float">
          <label>Figure 1</label>
          <caption>
            <p>Usage of S-Patch for Samsung SDS Cardio.</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>The five subtype classes and the number of samples.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="400"/>
            <col width="300"/>
            <col width="300"/>
            <thead>
              <tr valign="bottom">
                <td>AAMI<sup>a</sup>/IEC<sup>b</sup> categories</td>
                <td colspan="2">Number of beats</td>
              </tr>
              <tr valign="bottom">
                <td>
                  <break/>
                </td>
                <td>MIT-BIH<sup>c</sup> dataset, n (%)<break/>  <break/>  </td>
                <td>S-Patch dataset, n (%)<break/>  <break/>  </td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Nonectopic</td>
                <td>90,386 (82.19)</td>
                <td>5,303,245 (97.03)</td>
              </tr>
              <tr valign="top">
                <td>Supraventricular ectopic</td>
                <td>3026 (2.75)</td>
                <td>27,288 (0.5)</td>
              </tr>
              <tr valign="top">
                <td>Ventricular ectopic</td>
                <td>7708 (7.01)</td>
                <td>135,013 (2.47)</td>
              </tr>
              <tr valign="top">
                <td>Fusion</td>
                <td>803 (0.74)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Paced or unknown</td>
                <td>8043 (7.31)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Total</td>
                <td>109,966 (100.00)</td>
                <td>5,465,546 (100.00)</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table1fn1">
              <p><sup>a</sup>AAMI: Association for the Advancement of Medical Instrumentation.</p>
            </fn>
            <fn id="table1fn2">
              <p><sup>b</sup>IEC: International Electrotechnical Commission.</p>
            </fn>
            <fn id="table1fn3">
              <p><sup>c</sup>MIT-BIH: Massachusetts Institute of Technology-Beth Israel Hospital.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
      <sec>
        <title>Data Preprocessing</title>
        <p>We performed ECG preprocessing as follows (<xref rid="figure2" ref-type="fig">Figure 2</xref>A): downsampling, noise removal, segmentation, and short-time Fourier transform (STFT). The examples of preprocessed signals for the beat classes are also depicted (<xref rid="figure2" ref-type="fig">Figure 2</xref>B): A normal beat has a regular beat interval with a small wave (P-wave) before a larger and sharper wave (QRS wave); a supraventricular beat has an irregular beat interval; a ventricular beat has a wide QRS wave with a vague or no P-wave; a fusion beat is a combined pattern of normal and ventricular beat; and a paced or unknown beat has none of the abovementioned features and can be observed in diverse patterns.</p>
        <fig id="figure2" position="float">
          <label>Figure 2</label>
          <caption>
            <p>Data preprocessing of electrocardiograms: (A) full steps from downsampling to short-time Fourier transform; (B) an example of a 3-beat electrocardiographic segment for each class. ECG: electrocardiogram; RNN: recurrent neural network.</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <p>First, we downsampled the ECG signals to handle the different sampling rates between data from difference databases. For consistency, the MIT-BIH records were downsampled to 256 Hz, which is the same as the sampling rate of the S-Patch dataset. Second, we tried to reduce artifacts in the data. The ECGs collected with S-Patch are real-world data. Therefore, they contained all kinds of noise such as loose contacts, motion artifact, muscular activation interference, baseline wandering, and AC (alternating current) interference (<xref rid="figure3" ref-type="fig">Figure 3</xref>). We excluded noise caused by loose contact that falls below 0 mV. Thereafter, we applied a bandpass filter with a high-frequency cutoff at 40 Hz and a low-frequency cutoff at 0.5 Hz to handle other types of noise. Third, in order to deal with 24-hour ECGs effectively, we segmented the ECGs into beat units. Since the duration of a beat is different according to the heart rate of each patient, we extracted 3-beat ECG signals with R-peaks identified using the algorithm developed by Kathirvel et al [<xref ref-type="bibr" rid="ref25">25</xref>] instead of an arbitrary time duration. Specifically, we selected a window with a length of 3 beats because information on the middle beat, which is the target to be classified, is affected by the preceding and following beats. Finally, we applied STFT to all ECG segments.</p>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p>Examples of electrocardiographic signal noise: (A) loose contact, (B) motion artifact, (C) muscular activation interference, (D) baseline wandering, (E) alternating current (AC) interference (low signal-to-noise ratio), (F) AC interference (high signal-to-noise ratio).</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Baseline Model With Recurrent Neural Network</title>
        <p>We segmented ECG signals into 3-beat units during the preprocessing; thus, their lengths varied according to the subjects’ heart rates. As baselines for ECG pattern classification, we implemented Vanilla RNNs (<xref rid="figure4" ref-type="fig">Figure 4</xref>), which can handle input sequences with various lengths. However, the variable length of input data can reduce the learning efficiency of deep learning models. Therefore, we used a bucketing method to handle the variable length of inputs. Bucketing is suggested to improve the parallelization capabilities of the recurrent training process. We set up several buckets and assigned each instance to the bucket with the closest size. Within a bucket, each instance was padded with zeroes up to the length of the bucket. Although the buckets had different internal models, their parameters were shared in time.</p>
        <fig id="figure4" position="float">
          <label>Figure 4</label>
          <caption>
            <p>Model architecture (general).</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig4.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <p>After bucketing, the training process for instances of each bucket was as follows: first, the input data was convolved with 11 filters (3×11 in size) with a stride of 1 in the first convolution layer, which was followed by a convolution layer with 11 filters (3×3 in size) with a stride of 1. Second, the outputs of the convolution layer proceeded through consecutive two Vanilla RNN layers with hidden states of 1760 for each. Finally, the outputs of the RNN layers passed to a fully connected layer, and a softmax function with 5 output nodes was used in the final layer. Batch normalization was used in each layer of the architecture.</p>
      </sec>
      <sec>
        <title>Lightweight Model With Fused Recurrent Neural Network</title>
        <p>Baseline model inference was performed on CPUs (Intel Xeon Platinum 8000 v4). However, it was about 6 times slower than the GPU-based inference (Tesla K80). In order to improve the inference speeds on CPUs, we propose a lightweight model by reducing the input size and adopting fused RNN (<xref ref-type="table" rid="table2">Table 2</xref>).</p>
        <p>To reduce the input size, we selected a minimum sampling rate by halving the sampling rate from 256, provided there was no degradation in accuracy. Finally, we downsampled the MIT-BIH (360 Hz) and S-Patch data (256 Hz) to 64 Hz. As the input size decreased, the filter size changed from 3×11 to 3×5 and the number of convolution layers changed from two to one, compared to the baseline model. Additionally, we changed the RNN layers to fused RNN instead of Vanilla RNN to maximize the computation efficiency of the RNN layers in CPUs. Additionally, we used Intel Math Kernel Library 2018 update 3 for matrix-multiplication operation.</p>
        <table-wrap position="float" id="table2">
          <label>Table 2</label>
          <caption>
            <p>Comparison of the baseline and lightweight models.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="400"/>
            <col width="300"/>
            <col width="300"/>
            <thead>
              <tr valign="top">
                <td>Characteristic</td>
                <td>Baseline model</td>
                <td>Lightweight model</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Sampling rate (Hz)</td>
                <td>256</td>
                <td>64</td>
              </tr>
              <tr valign="top">
                <td>Convolution layer</td>
                <td>2</td>
                <td>1</td>
              </tr>
              <tr valign="top">
                <td>Convolution filter size</td>
                <td>3×11×11, stride 1; 3×3×11, stride 1</td>
                <td>3×5×11, stride 1</td>
              </tr>
              <tr valign="bottom">
                <td>Recurrent layer</td>
                <td>Vanilla RNN<sup>a</sup></td>
                <td>Fused RNN</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table2fn1">
              <p><sup>a</sup>RNN: recurrent neural network.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
      <sec>
        <title>Experimental Setup</title>
        <p>We divided a total of 124 subjects into two groups—112 and 12 subjects for the train (including validation) and test sets, respectively. The train set consisted of 43 subjects from MIT-BIH and 69 from S-Patch, and the test set consisted of 5 subjects from MIT-BIH and 7 from S-Patch. Specifically, the 12 subjects in the test set were carefully selected by cardiologists to evaluate various types of beats.</p>
        <p>Normal beats comprised more than 90% of the total data; therefore, we randomly sampled beats in the normal class equal to the total number of beats in other classes every epoch to avoid this data imbalance problem. Moreover, most of the samples for abnormal classes were from MIT-BIH; thus, data imbalance between MIT-BIH and S-Patch were also handled by balancing the number of samples for normal and other classes.</p>
        <p>We used MXNet to create the baseline model with RNN and the lightweight model with fused RNN [<xref ref-type="bibr" rid="ref26">26</xref>]. We trained both models on GPUs (OS: Linux, CPU: Intel Xeon E5-2686 v4 processor, memory: 488 GB, GPU: four NVIDIA K80 GPU) with Xavier initialization and Adam optimizer. The baseline model’s learning rate was 5E-06 with a batch size of 1000 over 400 epochs, and the lightweight model’s learning rate was 1E-05 with a batch size of 900 over 300 epochs. After training, we selected the best model with the highest validation accuracies for the three classes (N, S, and V Classes).</p>
      </sec>
      <sec>
        <title>Evaluation Metric</title>
        <p>Classification performance was measured by four standard metrics (ie, accuracies, sensitivities, specificities, and positive predictive values) that have been used in the literature [<xref ref-type="bibr" rid="ref9">9</xref>,<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref13">13</xref>]. These were calculated using the four values from the confusion matrix, true positive (TP), true negative (TN), false positive (FP), and false negative (FN). The accuracy is the ratio of the number of correctly classified patterns to the total numbers of patterns classified, 
        <inline-graphic xlink:href="medinform_v8i3e17037_fig7.png" mimetype="image" xlink:type="simple"/>. The sensitivity is the rate of correctly classified events among all events,
<inline-graphic xlink:href="medinform_v8i3e17037_fig8.png" mimetype="image" xlink:type="simple"/>. The specificity is the rate of correctly classified nonevents among all nonevents, <inline-graphic xlink:href="medinform_v8i3e17037_fig9.png" mimetype="image" xlink:type="simple"/>. The positive predictive value is the rate of correctly classified events in all detected events, <inline-graphic xlink:href="medinform_v8i3e17037_fig10.png" mimetype="image" xlink:type="simple"/>. In addition to the metrics, we calculated an overall accuracy using the equation proposed by Landis and Koch [<xref ref-type="bibr" rid="ref27">27</xref>]. To measure the inference speed, 24-hour ECGs with 64,976 beats were inferenced on both the GPUs and CPUs (OS: Linux, CPU: eight 3.0 GHz Intel Xeon Platinum processors, memory: 16 GB).</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>Accuracy of Baseline and Lightweight Models</title>
        <p><xref rid="figure5" ref-type="fig">Figure 5</xref> shows the overall performances in the classification of ECGs for the baseline (RNN) and lightweight (fused RNN) models. There was no significant difference between the baseline and lightweight models because the overall accuracies were close to each other: 99.72% for baseline and 99.80% for the lightweight model.</p>
        <fig id="figure5" position="float">
          <label>Figure 5</label>
          <caption>
            <p>Normalized confusion matrix of the recurrent neural network (RNN) and fused RNN models.</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig5.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <p><xref ref-type="table" rid="table3">Tables 3</xref> and <xref ref-type="table" rid="table4">4</xref> demonstrate the accuracies of the baseline and lightweight models for Class S (99.82% and 99.90%, respectively) and for Class V (99.91% and 99.89%, respectively). These results were far superior to those of previous works, wherein the results ranged from 92.4% to 97.6% for Class S and from 96.7% to 99.0% for Class V [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref28">28</xref>,<xref ref-type="bibr" rid="ref29">29</xref>]. Note that we excluded the results for Class F because the number of beats in Class F was only 17.</p>
        <p>Furthermore, both baseline and lightweight models performed higher than 97% in subject-specific accuracies, similar to the overall accuracy (<xref ref-type="table" rid="table5">Table 5</xref>). These results ensured the internal reliability of the models. The accuracy fluctuation range was 2.42% for baseline (from 97.56% to 99.88%) and 0.84% for lightweight model (from 99.12% to 99.96%). Our lightweight model with fused RNN improved overall accuracy and internal reliability even though it is relatively lighter.</p>
        <table-wrap position="float" id="table3">
          <label>Table 3</label>
          <caption>
            <p>A confusion matrix of the baseline model for the test set.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="160"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="110"/>
            <col width="110"/>
            <col width="110"/>
            <col width="110"/>
            <thead>
              <tr valign="top">
                <td>Class (ground truth)</td>
                <td colspan="9">Classification results</td>
              </tr>
              <tr valign="bottom">
                <td>
                  <break/>
                </td>
                <td colspan="5">Predicted class</td>
                <td>ACC<sup>f</sup> (%)</td>
                <td>PPV<sup>g</sup> (%)</td>
                <td>SEN<sup>h</sup> (%)</td>
                <td>SPEC<sup>i</sup> (%)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>n<sup>a</sup></td>
                <td>s<sup>b</sup></td>
                <td>v<sup>c</sup></td>
                <td>f<sup>d</sup></td>
                <td>q<sup>e</sup></td>
                <td>
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>N</td>
                <td>481,491</td>
                <td>362</td>
                <td>215</td>
                <td>2</td>
                <td>46</td>
                <td>99.75</td>
                <td>99.87</td>
                <td>99.86</td>
                <td>98.31</td>
              </tr>
              <tr valign="top">
                <td>S</td>
                <td>438</td>
                <td>3935</td>
                <td>20</td>
                <td>0</td>
                <td>5</td>
                <td>99.82</td>
                <td>89.47</td>
                <td>89.17</td>
                <td>99.91</td>
              </tr>
              <tr valign="top">
                <td>V</td>
                <td>172</td>
                <td>116</td>
                <td>33,980</td>
                <td>5</td>
                <td>11</td>
                <td>99.90</td>
                <td>99.11</td>
                <td>99.29</td>
                <td>99.95</td>
              </tr>
              <tr valign="top">
                <td>F</td>
                <td>1</td>
                <td>0</td>
                <td>2</td>
                <td>8</td>
                <td>6</td>
                <td>N/A<sup>j</sup></td>
                <td>N/A</td>
                <td>N/A</td>
                <td>N/A</td>
              </tr>
              <tr valign="top">
                <td>Q</td>
                <td>71</td>
                <td>0</td>
                <td>5</td>
                <td>0</td>
                <td>1984</td>
                <td>99.97</td>
                <td>96.31</td>
                <td>96.69</td>
                <td>99.99</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table3fn1">
              <p><sup>a</sup>n/N: nonectopic.</p>
            </fn>
            <fn id="table3fn2">
              <p><sup>b</sup>s/S: supraventricular ectopic.</p>
            </fn>
            <fn id="table3fn3">
              <p><sup>c</sup>v/V: ventricular ectopic.</p>
            </fn>
            <fn id="table3fn4">
              <p><sup>d</sup>f/F: fusion beat.</p>
            </fn>
            <fn id="table3fn5">
              <p><sup>e</sup>q/Q: paced or unknown beat.</p>
            </fn>
            <fn id="table3fn6">
              <p><sup>f</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table3fn7">
              <p><sup>g</sup>PPV: positive predictive value.</p>
            </fn>
            <fn id="table3fn8">
              <p><sup>h</sup>SEN: sensitivity.</p>
            </fn>
            <fn id="table3fn9">
              <p><sup>i</sup>SPEC: specificity.</p>
            </fn>
            <fn id="table3fn10">
              <p><sup>j</sup>Not applicable.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <table-wrap position="float" id="table4">
          <label>Table 4</label>
          <caption>
            <p>A confusion matrix of the lightweight model for the test set.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="160"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="80"/>
            <col width="0"/>
            <col width="110"/>
            <col width="110"/>
            <col width="0"/>
            <col width="110"/>
            <col width="0"/>
            <col width="110"/>
            <thead>
              <tr valign="top">
                <td>Class (ground truth)</td>
                <td colspan="12">Classification results</td>
              </tr>
              <tr valign="bottom">
                <td>
                  <break/>
                </td>
                <td colspan="6">Predicted class</td>
                <td>ACC<sup>f</sup> (%)</td>
                <td colspan="2">PPV<sup>g</sup> (%)</td>
                <td colspan="2">SEN<sup>h</sup> (%)</td>
                <td>SPEC<sup>i</sup> (%)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>n<sup>a</sup></td>
                <td>s<sup>b</sup></td>
                <td>v<sup>c</sup></td>
                <td>f<sup>d</sup></td>
                <td>q<sup>e</sup></td>
                <td colspan="2">
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
                <td colspan="2">
                  <break/>
                </td>
                <td colspan="2">
                  <break/>
                </td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>N</td>
                <td>481,587</td>
                <td>130</td>
                <td>403</td>
                <td>1</td>
                <td>7</td>
                <td colspan="2">99.83</td>
                <td>99.89</td>
                <td colspan="2">99.92</td>
                <td colspan="2">99.11</td>
              </tr>
              <tr valign="top">
                <td>S</td>
                <td>264</td>
                <td>4123</td>
                <td>6</td>
                <td>0</td>
                <td>0</td>
                <td colspan="2">99.91</td>
                <td>93.85</td>
                <td colspan="2">94.80</td>
                <td colspan="2">99.96</td>
              </tr>
              <tr valign="top">
                <td>V</td>
                <td>51</td>
                <td>96</td>
                <td>34,157</td>
                <td>7</td>
                <td>0</td>
                <td colspan="2">99.89</td>
                <td>99.55</td>
                <td colspan="2">98.80</td>
                <td colspan="2">99.92</td>
              </tr>
              <tr valign="bottom">
                <td>F</td>
                <td>5</td>
                <td>0</td>
                <td>5</td>
                <td>7</td>
                <td>0</td>
                <td colspan="2">N/A<sup>j</sup></td>
                <td>N/A</td>
                <td colspan="2">N/A</td>
                <td colspan="2">N/A</td>
              </tr>
              <tr valign="top">
                <td>Q</td>
                <td>43</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>2017</td>
                <td colspan="2">99.99</td>
                <td>97.91</td>
                <td colspan="2">99.65</td>
                <td colspan="2">100.00</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table4fn1">
              <p><sup>a</sup>n/N: nonectopic.</p>
            </fn>
            <fn id="table4fn2">
              <p><sup>b</sup>s/S: supraventricular ectopic.</p>
            </fn>
            <fn id="table4fn3">
              <p><sup>c</sup>v/V: ventricular ectopic.</p>
            </fn>
            <fn id="table4fn4">
              <p><sup>d</sup>f/F: fusion beat.</p>
            </fn>
            <fn id="table4fn5">
              <p><sup>e</sup>q/Q: paced or unknown beat.</p>
            </fn>
            <fn id="table4fn6">
              <p><sup>f</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table4fn7">
              <p><sup>g</sup>PPV: positive predictive value.</p>
            </fn>
            <fn id="table4fn8">
              <p><sup>h</sup>SEN: sensitivity.</p>
            </fn>
            <fn id="table4fn9">
              <p><sup>i</sup>SPEC: specificity.</p>
            </fn>
            <fn id="table4fn10">
              <p><sup>j</sup>Not applicable.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <table-wrap position="float" id="table5">
          <label>Table 5</label>
          <caption>
            <p>Overall accuracies of the baseline and lightweight models according to subjects in the test set. (Subject numbers 100 to 223 are from MIT-BIH, and the rest are from S-patch.)</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="80"/>
            <col width="110"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <thead>
              <tr valign="bottom">
                <td>Subject #</td>
                <td>Rhythm</td>
                <td>Beats, n</td>
                <td colspan="4">RNN<sup>a</sup></td>
                <td colspan="4">Fused RNN</td>
              </tr>
              <tr valign="bottom">
                <td>
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
                <td>
                  <break/>
                </td>
                <td>ACC<sup>b</sup> (%)</td>
                <td>PPV<sup>c</sup> (%)</td>
                <td>SEN<sup>d</sup> (%)</td>
                <td>SPEC<sup>e</sup> (%)</td>
                <td>ACC (%)</td>
                <td>PPV (%)</td>
                <td>SEN (%)</td>
                <td>SPEC (%)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>100</td>
                <td>Normal</td>
                <td>2273</td>
                <td>99.74</td>
                <td>99.34</td>
                <td>99.34</td>
                <td>99.84</td>
                <td>99.91</td>
                <td>99.78</td>
                <td>99.78</td>
                <td>99.95</td>
              </tr>
              <tr valign="top">
                <td>104</td>
                <td>Paced</td>
                <td>2225</td>
                <td>98.04</td>
                <td>95.10</td>
                <td>95.10</td>
                <td>98.78</td>
                <td>99.12</td>
                <td>97.80</td>
                <td>97.80</td>
                <td>99.45</td>
              </tr>
              <tr valign="top">
                <td>108</td>
                <td>Normal</td>
                <td>1756</td>
                <td>97.56</td>
                <td>93.91</td>
                <td>93.91</td>
                <td>98.48</td>
                <td>99.66</td>
                <td>99.15</td>
                <td>99.15</td>
                <td>99.79</td>
              </tr>
              <tr valign="bottom">
                <td>202</td>
                <td>Afib<sup>f</sup></td>
                <td>2133</td>
                <td>98.87</td>
                <td>97.19</td>
                <td>97.19</td>
                <td>99.30</td>
                <td>99.51</td>
                <td>98.78</td>
                <td>98.78</td>
                <td>99.70</td>
              </tr>
              <tr valign="bottom">
                <td>223</td>
                <td>VT<sup>g</sup></td>
                <td>2604</td>
                <td>97.45</td>
                <td>93.63</td>
                <td>93.63</td>
                <td>98.41</td>
                <td>98.54</td>
                <td>96.35</td>
                <td>96.35</td>
                <td>99.09</td>
              </tr>
              <tr valign="top">
                <td>12006</td>
                <td>Normal</td>
                <td>60,867</td>
                <td>99.87</td>
                <td>99.66</td>
                <td>99.66</td>
                <td>99.92</td>
                <td>99.90</td>
                <td>99.76</td>
                <td>99.76</td>
                <td>99.94</td>
              </tr>
              <tr valign="top">
                <td>12007</td>
                <td>Normal</td>
                <td>75,805</td>
                <td>99.87</td>
                <td>99.66</td>
                <td>99.66</td>
                <td>99.92</td>
                <td>99.99</td>
                <td>99.97</td>
                <td>99.97</td>
                <td>99.99</td>
              </tr>
              <tr valign="top">
                <td>12008</td>
                <td>Normal</td>
                <td>78,866</td>
                <td>99.94</td>
                <td>99.84</td>
                <td>99.84</td>
                <td>99.96</td>
                <td>99.98</td>
                <td>99.96</td>
                <td>99.96</td>
                <td>99.99</td>
              </tr>
              <tr valign="bottom">
                <td>12010</td>
                <td>SVT<sup>h</sup> and VT</td>
                <td>75,914</td>
                <td>99.89</td>
                <td>99.72</td>
                <td>99.72</td>
                <td>99.93</td>
                <td>99.97</td>
                <td>99.94</td>
                <td>99.94</td>
                <td>99.98</td>
              </tr>
              <tr valign="top">
                <td>12011</td>
                <td>Bigeminy</td>
                <td>66,229</td>
                <td>99.92</td>
                <td>99.79</td>
                <td>99.79</td>
                <td>99.95</td>
                <td>99.71</td>
                <td>99.27</td>
                <td>99.27</td>
                <td>99.82</td>
              </tr>
              <tr valign="top">
                <td>12012</td>
                <td>Normal</td>
                <td>63,820</td>
                <td>99.98</td>
                <td>99.94</td>
                <td>99.94</td>
                <td>99.99</td>
                <td>99.99</td>
                <td>99.99</td>
                <td>99.99</td>
                <td>99.99</td>
              </tr>
              <tr valign="top">
                <td>12358</td>
                <td>Noise</td>
                <td>85,091</td>
                <td>99.97</td>
                <td>99.92</td>
                <td>99.92</td>
                <td>99.98</td>
                <td>99.96</td>
                <td>99.90</td>
                <td>99.90</td>
                <td>99.97</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table5fn1">
              <p><sup>a</sup>RNN: recurrent neural network.</p>
            </fn>
            <fn id="table5fn2">
              <p><sup>b</sup>ACC: accuracy.</p>
            </fn>
            <fn id="table5fn3">
              <p><sup>c</sup>PPV: positive predictive value.</p>
            </fn>
            <fn id="table5fn4">
              <p><sup>d</sup>SEN: sensitivity.</p>
            </fn>
            <fn id="table5fn5">
              <p><sup>e</sup>SPEC: specificity.</p>
            </fn>
            <fn id="table5fn6">
              <p><sup>f</sup>Afib: atrial fibrillation.</p>
            </fn>
            <fn id="table5fn7">
              <p><sup>g</sup>VT: ventricular tachycardia.</p>
            </fn>
            <fn id="table5fn8">
              <p><sup>h</sup>SVT: supraventricular tachycardia.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
      <sec>
        <title>Inference Speed</title>
        <p>The inference time of the baseline model on GPUs took 15 minutes and 12 seconds. On the other hand, the lightweight model on CPUs took 3 minutes and 1 second (<xref ref-type="table" rid="table6">Table 6</xref>). Namely, our lightweight model took only 2 milliseconds to process one beat, and this implies that our model is competitive on a CPU-based wearable hardware [<xref ref-type="bibr" rid="ref30">30</xref>]. The inference speed according to each parameter can be found in the AWS Re:Invent [<xref ref-type="bibr" rid="ref31">31</xref>]; controlling the sampling rate and adopting fused RNNs each reduced the inference time. This result also demonstrated that replacing Vanilla RNNs to fused RNNs does not change the processes or parameters constituting a network but only accelerates the processes; consequently, the inference speed was improved without loss of accuracy.</p>
        <table-wrap position="float" id="table6">
          <label>Table 6</label>
          <caption>
            <p>Comparison of accuracies and latencies.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="400"/>
            <col width="300"/>
            <col width="300"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Latency (min)</td>
                <td>Accuracy (%)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="bottom">
                <td>RNN<sup>a</sup> in GPUs<sup>b</sup></td>
                <td>15.12</td>
                <td>99.72</td>
              </tr>
              <tr valign="bottom">
                <td>RNN in CPUs<sup>c</sup></td>
                <td>120</td>
                <td>99.80</td>
              </tr>
              <tr valign="top">
                <td>Fused RNN in CPUs</td>
                <td>3.01</td>
                <td>99.80</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table6fn1">
              <p><sup>a</sup>RNN: recurrent neural network.</p>
            </fn>
            <fn id="table6fn2">
              <p><sup>b</sup>GPU: graphics processing unit.</p>
            </fn>
            <fn id="table6fn3">
              <p><sup>c</sup>CPU: central processing unit.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>The results showed that both baseline and lightweight models achieved high prediction performances (ie, accuracies of over 99%). The final model, fused RNNs, showed superior performance in both subclasses: supraventricular and ventricular beat. In addition, the reliability of the lightweight model with fused RNNs was supported with a prediction accuracy of over 99% in each subject as well as overall model performance.</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>The accuracy of the lightweight model with fused RNN for beat classification was high, but there were still incorrect cases. These false cases were caused with specific rhythms, such as supraventricular tachycardia, bigeminy, and paroxysmal atrial fibrillation.</p>
        <p>We reviewed 1018 beats that were falsely predicted by the lightweight model and interpreted the errors. As a result, the beats composing the abnormal rhythm were often misunderstood (<xref rid="figure6" ref-type="fig">Figure 6</xref>). For example, in the case of subject #12010, supraventricular beats in the supraventricular tachycardia rhythm were predicted incorrectly as normal beats. This is because the supraventricular beats in supraventricular tachycardia rhythm have very short intervals between two consecutive beats but have similar morphology to normal beats in normal rhythm (<xref rid="figure6" ref-type="fig">Figure 6</xref>A). Supraventricular beats can be easily misjudged as normal beats when the model reviewed only one segment, which has 3 beats. In another example, subject #12011, normal beats in the bigeminy rhythm were predicted as ventricular rhythm. This is because the intervals between normal beats in the bigeminy rhythm are relatively longer due to the leading and trailing ventricular beats. Therefore, normal beats in bigeminy rhythm have a different morphology from those in other rhythms (<xref rid="figure6" ref-type="fig">Figure 6</xref>B). The differences in beat morphology were also confirmed in the atrial fibrillation rhythm (<xref rid="figure6" ref-type="fig">Figure 6</xref>C).</p>
        <fig id="figure6" position="float">
          <label>Figure 6</label>
          <caption>
            <p>Beats in rhythms with different shapes. SVT: supraventricular tachycardia; S: supraventricular ectopic; N: nonectopic.</p>
          </caption>
          <graphic xlink:href="medinform_v8i3e17037_fig6.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <p>The case review confirmed that the rhythm affects each ECG beat. Therefore, it is necessary to develop a rhythm model using a wider ECG window. Although Rajpurkar et al [<xref ref-type="bibr" rid="ref11">11</xref>] recently conducted a classification task for 14 ECG rhythms, most existing studies on rhythm predictions were limited to a specific rhythm such as atrial fibrillation [<xref ref-type="bibr" rid="ref32">32</xref>,<xref ref-type="bibr" rid="ref33">33</xref>]. We are developing a universal rhythm prediction model that integrates the results of the beat model developed in this study and other features such as R-R interval and R-peak amplitude.</p>
        <p>In our case, the subject-specific evaluation was conducted to demonstrate the reliability of the deep learning models. However, it is necessary to perform an evaluation based on real-world data to support the model’s reliability, which can provide generalized predictions for new data. Currently, this is in progress at a tertiary hospital in South Korea.</p>
      </sec>
      <sec>
        <title>Future Works</title>
        <p>The lightweight deep learning model for ECG classification proposed in this paper was adopted as an analysis module for Samsung SDS Cardio. Cardio is a service that collects ECG signals with S-Patch, sends the signals to a cloud-based Web portal for ECG diagnosis, and reports the diagnosis to users through their mobile or gear applications. This service also can be extended to health monitoring for elderly people, who are vulnerable to cardiovascular disease, and for first responders such as firemen. Furthermore, our ECG classifier can be embedded into a health care system together with patient-generated biomedical information analysis (eg, mobile search log, geotagged data) [<xref ref-type="bibr" rid="ref34">34</xref>] and provide wider and deeper information to users.</p>
      </sec>
      <sec>
        <title>Conclusion</title>
        <p>We proposed lightweight deep neural network models that were effective and efficient for ECG beat classification. The proposed models were trained using both the standard Pysionet MIT-BIH database and Samsung S-Patch 2 dataset collected by two major hospitals in New Zealand and South Korea. Our lightweight model with fused RNN achieved a cardiologist-level accuracy of 99.80%. Furthermore, the lightweight model conducted ECG beat predictions on a CPU five times faster than the baseline model with Vanilla RNNs without accuracy loss.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group/>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">AAMI</term>
          <def>
            <p>Association for the Advancement of Medical Instrumentation</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">ACC</term>
          <def>
            <p>accuracy</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">BLAS</term>
          <def>
            <p>Basic Linear Algebra Subprogram</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">CNN</term>
          <def>
            <p>convolutional neural network</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb5">CPU</term>
          <def>
            <p>central processing unit</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb6">ECG</term>
          <def>
            <p>electrocardiogram (electrocardiographic)</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb7">F</term>
          <def>
            <p>fusion beat</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb8">FN</term>
          <def>
            <p>false negative</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb9">FP</term>
          <def>
            <p>false positive</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb10">GEMM</term>
          <def>
            <p>general matrix multiplication</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb11">GPU</term>
          <def>
            <p>graphics processing unit</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb12">IEC</term>
          <def>
            <p>International Electrotechnical Commission</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb13">MIT-BIH</term>
          <def>
            <p>Massachusetts Institute of Technology-Beth Israel Hospital</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb14">MKL</term>
          <def>
            <p>Intel Math Kernel Library</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb15">N</term>
          <def>
            <p>nonectopic</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb16">PPV</term>
          <def>
            <p>positive predictive value</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb17">Q</term>
          <def>
            <p>paced or unknown beat</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb18">RNN</term>
          <def>
            <p>recurrent neural network</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb19">S</term>
          <def>
            <p>supraventricular ectopic</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb20">SEN</term>
          <def>
            <p>sensitivity</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb21">SPEC</term>
          <def>
            <p>specificity</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb22">STFT</term>
          <def>
            <p>short-time Fourier transform</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb23">TN</term>
          <def>
            <p>true negative</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb24">TP</term>
          <def>
            <p>true positive</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb25">V</term>
          <def>
            <p>ventricular ectopic</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <fn-group>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="web">
          <source>American Heart Association</source>
          <year>2016</year>
          <access-date>2016-08-30</access-date>
          <comment>About Arrhythmia<ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.heart.org/en/health-topics/arrhythmia/about-arrhythmia">https://www.heart.org/en/health-topics/arrhythmia/about-arrhythmia</ext-link>
                                                </comment>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sayantan</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Kien</surname>
              <given-names>PT</given-names>
            </name>
            <name name-style="western">
              <surname>Kadambari</surname>
              <given-names>KV</given-names>
            </name>
          </person-group>
          <article-title>Classification of ECG beats using deep belief network and active learning</article-title>
          <source>Med Biol Eng Comput</source>
          <year>2018</year>
          <month>10</month>
          <volume>56</volume>
          <issue>10</issue>
          <fpage>1887</fpage>
          <lpage>1898</lpage>
          <pub-id pub-id-type="doi">10.1007/s11517-018-1815-2</pub-id>
          <pub-id pub-id-type="medline">29651694</pub-id>
          <pub-id pub-id-type="pii">10.1007/s11517-018-1815-2</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lobodzinski</surname>
              <given-names>SS</given-names>
            </name>
            <name name-style="western">
              <surname>Laks</surname>
              <given-names>MM</given-names>
            </name>
          </person-group>
          <article-title>New devices for very long-term ECG monitoring</article-title>
          <source>Cardiol J</source>
          <year>2012</year>
          <volume>19</volume>
          <issue>2</issue>
          <fpage>210</fpage>
          <lpage>4</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://www.cardiologyjournal.org/en/darmowy_pdf.phtml?id=108&#38;indeks_art=1571"/>
          </comment>
          <pub-id pub-id-type="medline">22461060</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Guirguis</surname>
              <given-names>E</given-names>
            </name>
          </person-group>
          <article-title>Holter monitoring</article-title>
          <source>Can Fam Physician</source>
          <year>1987</year>
          <month>04</month>
          <volume>33</volume>
          <fpage>985</fpage>
          <lpage>92</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/21263911"/>
          </comment>
          <pub-id pub-id-type="medline">21263911</pub-id>
          <pub-id pub-id-type="pmcid">PMC2218473</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Turakhia</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Hoang</surname>
              <given-names>DD</given-names>
            </name>
            <name name-style="western">
              <surname>Zimetbaum</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Miller</surname>
              <given-names>JD</given-names>
            </name>
            <name name-style="western">
              <surname>Froelicher</surname>
              <given-names>VF</given-names>
            </name>
            <name name-style="western">
              <surname>Kumar</surname>
              <given-names>UN</given-names>
            </name>
            <name name-style="western">
              <surname>Xu</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Heidenreich</surname>
              <given-names>PA</given-names>
            </name>
          </person-group>
          <article-title>Diagnostic utility of a novel leadless arrhythmia monitoring device</article-title>
          <source>Am J Cardiol</source>
          <year>2013</year>
          <month>08</month>
          <day>15</day>
          <volume>112</volume>
          <issue>4</issue>
          <fpage>520</fpage>
          <lpage>4</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://lib.plagh.cn:8080/medlib/s/gov/nih/nlm/ncbi/www/G.https/pubmed/?term=Diagnostic+Utility+of+a+Novel+Leadless+Arrhythmia+monitoring+Device"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.amjcard.2013.04.017</pub-id>
          <pub-id pub-id-type="medline">23672988</pub-id>
          <pub-id pub-id-type="pii">S0002-9149(13)00991-0</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Engel</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Mehta</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Fogoros</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Chavan</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Study of arrhythmia prevalence in NUVANT Mobile Cardiac Telemetry system patients</article-title>
          <year>2012</year>
          <month>08</month>
          <conf-name>2012 Annual International Conference of the IEEE Engineering in Medicine and Biology Society</conf-name>
          <conf-date>28 Aug.-1 Sept. 2012</conf-date>
          <conf-loc>San Diego, CA, USA</conf-loc>
          <publisher-name>IEEE</publisher-name>
          <fpage>2440</fpage>
          <lpage>2443</lpage>
          <pub-id pub-id-type="doi">10.1109/embc.2012.6346457</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <collab>Korea Food Drug Administration</collab>
            <collab>Medical Device Safety Bureau</collab>
          </person-group>
          <source>Approval information (No 16-4537)</source>
          <access-date>2016-06-16</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://emed.mfds.go.kr">https://emed.mfds.go.kr</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Martis</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Acharya</surname>
              <given-names>U</given-names>
            </name>
            <name name-style="western">
              <surname>Lim</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Suri</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>Characterization of ECG beats from cardiac arrhythmia using discrete cosine transform in PCA framework</article-title>
          <source>Knowledge-Based Systems</source>
          <year>2013</year>
          <month>6</month>
          <volume>45</volume>
          <fpage>76</fpage>
          <lpage>82</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1016/j.knosys.2013.02.007"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.knosys.2013.02.007</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Martis</surname>
              <given-names>RJ</given-names>
            </name>
            <name name-style="western">
              <surname>Acharya</surname>
              <given-names>UR</given-names>
            </name>
            <name name-style="western">
              <surname>Lim</surname>
              <given-names>CM</given-names>
            </name>
            <name name-style="western">
              <surname>Mandana</surname>
              <given-names>KM</given-names>
            </name>
            <name name-style="western">
              <surname>Ray</surname>
              <given-names>AK</given-names>
            </name>
            <name name-style="western">
              <surname>Chakraborty</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>Application of higher order cumulant features for cardiac health diagnosis using ECG signals</article-title>
          <source>Int J Neural Syst</source>
          <year>2013</year>
          <month>08</month>
          <volume>23</volume>
          <issue>4</issue>
          <fpage>1350014</fpage>
          <pub-id pub-id-type="doi">10.1142/S0129065713500147</pub-id>
          <pub-id pub-id-type="medline">23746287</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ho</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Lai</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Ding</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Ho</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Hung</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>A telesurveillance system with automatic electrocardiogram interpretation based on support vector machine and rule-based processing</article-title>
          <source>JMIR Med Inform</source>
          <year>2015</year>
          <month>05</month>
          <day>07</day>
          <volume>3</volume>
          <issue>2</issue>
          <fpage>e21</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://medinform.jmir.org/2015/2/e21/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/medinform.4397</pub-id>
          <pub-id pub-id-type="medline">25953306</pub-id>
          <pub-id pub-id-type="pii">v3i2e21</pub-id>
          <pub-id pub-id-type="pmcid">PMC4440896</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Rajpurkar</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Hannun</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Haghpanahi</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Bourn</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Ng</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Cardiologist-level arrhythmia detection with convolutional neural networks (preprint)</article-title>
          <source>arXiv.org</source>
          <year>2017</year>
          <fpage>6</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://arxiv.org/pdf/1707.01836v1.pdf"/>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Acharya</surname>
              <given-names>UR</given-names>
            </name>
            <name name-style="western">
              <surname>Oh</surname>
              <given-names>SL</given-names>
            </name>
            <name name-style="western">
              <surname>Hagiwara</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>JH</given-names>
            </name>
            <name name-style="western">
              <surname>Adam</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Gertych</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>RS</given-names>
            </name>
          </person-group>
          <article-title>A deep convolutional neural network model to classify heartbeats</article-title>
          <source>Comput Biol Med</source>
          <year>2017</year>
          <month>10</month>
          <day>01</day>
          <volume>89</volume>
          <fpage>389</fpage>
          <lpage>396</lpage>
          <pub-id pub-id-type="doi">10.1016/j.compbiomed.2017.08.022</pub-id>
          <pub-id pub-id-type="medline">28869899</pub-id>
          <pub-id pub-id-type="pii">S0010-4825(17)30281-0</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kiranyaz</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Ince</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Gabbouj</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Real-Time Patient-Specific ECG Classification by 1-D Convolutional Neural Networks</article-title>
          <source>IEEE Trans Biomed Eng</source>
          <year>2016</year>
          <month>03</month>
          <volume>63</volume>
          <issue>3</issue>
          <fpage>664</fpage>
          <lpage>75</lpage>
          <pub-id pub-id-type="doi">10.1109/TBME.2015.2468589</pub-id>
          <pub-id pub-id-type="medline">26285054</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ferreira</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Giraldi</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Convolutional Neural Network approaches to granite tiles classification</article-title>
          <source>Expert Systems with Applications</source>
          <year>2017</year>
          <month>10</month>
          <volume>84</volume>
          <fpage>1</fpage>
          <lpage>11</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1016/j.eswa.2017.04.053"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.eswa.2017.04.053</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bengio</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Learning Deep Architectures for AI</article-title>
          <source>FNT in Machine Learning</source>
          <year>2009</year>
          <volume>2</volume>
          <issue>1</issue>
          <fpage>1</fpage>
          <lpage>127</lpage>
          <pub-id pub-id-type="doi">10.1561/2200000006</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Amodei</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Ananthanarayanan</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Anubhai</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Bai</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Battenberg</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Case</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Casper</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Catanzaro</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Cheng</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>Deep speech 2nd-to-end speech recognition in english and mandarin</article-title>
          <year>2016</year>
          <conf-name>International Conference on Machine Learning</conf-name>
          <conf-date>June 19-24 2016</conf-date>
          <conf-loc>New York City, NY, USA</conf-loc>
          <fpage>173</fpage>
          <lpage>182</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://proceedings.mlr.press/v48/amodei16.html"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/978-3-030-14596-5_12</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>JH</given-names>
            </name>
            <name name-style="western">
              <surname>Hagiwara</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Pang</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Lim</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Oh</surname>
              <given-names>SL</given-names>
            </name>
            <name name-style="western">
              <surname>Adam</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>RS</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Acharya</surname>
              <given-names>UR</given-names>
            </name>
          </person-group>
          <article-title>Application of stacked convolutional and long short-term memory network for accurate identification of CAD ECG signals</article-title>
          <source>Comput Biol Med</source>
          <year>2018</year>
          <month>03</month>
          <day>01</day>
          <volume>94</volume>
          <fpage>19</fpage>
          <lpage>26</lpage>
          <pub-id pub-id-type="doi">10.1016/j.compbiomed.2017.12.023</pub-id>
          <pub-id pub-id-type="medline">29358103</pub-id>
          <pub-id pub-id-type="pii">S0010-4825(17)30420-1</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Oh</surname>
              <given-names>SL</given-names>
            </name>
            <name name-style="western">
              <surname>Ng</surname>
              <given-names>EYK</given-names>
            </name>
            <name name-style="western">
              <surname>Tan</surname>
              <given-names>RS</given-names>
            </name>
            <name name-style="western">
              <surname>Acharya</surname>
              <given-names>UR</given-names>
            </name>
          </person-group>
          <article-title>Automated diagnosis of arrhythmia using combination of CNN and LSTM techniques with variable length heart beats</article-title>
          <source>Comput Biol Med</source>
          <year>2018</year>
          <month>11</month>
          <day>01</day>
          <volume>102</volume>
          <fpage>278</fpage>
          <lpage>287</lpage>
          <pub-id pub-id-type="doi">10.1016/j.compbiomed.2018.06.002</pub-id>
          <pub-id pub-id-type="medline">29903630</pub-id>
          <pub-id pub-id-type="pii">S0010-4825(18)30144-6</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Yildirim</surname>
              <given-names>O</given-names>
            </name>
          </person-group>
          <article-title>A novel wavelet sequence based on deep bidirectional LSTM network model for ECG signal classification</article-title>
          <source>Comput Biol Med</source>
          <year>2018</year>
          <month>05</month>
          <day>01</day>
          <volume>96</volume>
          <fpage>189</fpage>
          <lpage>202</lpage>
          <pub-id pub-id-type="doi">10.1016/j.compbiomed.2018.03.016</pub-id>
          <pub-id pub-id-type="medline">29614430</pub-id>
          <pub-id pub-id-type="pii">S0010-4825(18)30073-8</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kwon</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Hong</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Choi</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Hostallero</surname>
              <given-names>DE</given-names>
            </name>
            <name name-style="western">
              <surname>Kang</surname>
              <given-names>WJ</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Jeong</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Koo</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Oh</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Yi</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Deep Learning Approaches to Detect Atrial Fibrillation Using Photoplethysmographic Signals: Algorithms Development Study</article-title>
          <source>JMIR Mhealth Uhealth</source>
          <year>2019</year>
          <month>06</month>
          <day>06</day>
          <volume>7</volume>
          <issue>6</issue>
          <fpage>e12770</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://mhealth.jmir.org/2019/6/e12770/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/12770</pub-id>
          <pub-id pub-id-type="medline">31199302</pub-id>
          <pub-id pub-id-type="pii">v7i6e12770</pub-id>
          <pub-id pub-id-type="pmcid">PMC6592499</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <collab>Apache MXNet (incubating)</collab>
          </person-group>
          <source>LSTMCell</source>
          <year>2019</year>
          <access-date>2019-12-27</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/rnn/rnn_cell.py">https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/rnn/rnn_cell.py</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <collab>Apache MXNet (achieved proposal)</collab>
          </person-group>
          <source>Fused RNN Operators for CPU</source>
          <year>2018</year>
          <access-date>2019-12-27</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://cwiki.apache.org/confluence/display/MXNET/Fused+RNN+Operators+for+CPU">https://cwiki.apache.org/confluence/display/MXNET/Fused+RNN+Operators+for+CPU</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Goldberger</surname>
              <given-names>AL</given-names>
            </name>
            <name name-style="western">
              <surname>Amaral</surname>
              <given-names>LA</given-names>
            </name>
            <name name-style="western">
              <surname>Glass</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Hausdorff</surname>
              <given-names>JM</given-names>
            </name>
            <name name-style="western">
              <surname>Ivanov</surname>
              <given-names>PC</given-names>
            </name>
            <name name-style="western">
              <surname>Mark</surname>
              <given-names>RG</given-names>
            </name>
            <name name-style="western">
              <surname>Mietus</surname>
              <given-names>JE</given-names>
            </name>
            <name name-style="western">
              <surname>Moody</surname>
              <given-names>GB</given-names>
            </name>
            <name name-style="western">
              <surname>Peng</surname>
              <given-names>CK</given-names>
            </name>
            <name name-style="western">
              <surname>Stanley</surname>
              <given-names>HE</given-names>
            </name>
          </person-group>
          <article-title>PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals</article-title>
          <source>Circulation</source>
          <year>2000</year>
          <month>06</month>
          <day>13</day>
          <volume>101</volume>
          <issue>23</issue>
          <fpage>E215</fpage>
          <lpage>20</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://circ.ahajournals.org/cgi/pmidlookup?view=long&#38;pmid=10851218"/>
          </comment>
          <pub-id pub-id-type="medline">10851218</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <collab>International Electrotechnical Commission</collab>
          </person-group>
          <source>Medical electrical equipment Part 2-27: Particular requirements for the safety, including essential performance, of electrocardiographic monitoring equipment</source>
          <year>2011</year>
          <access-date>2011-12-27</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://webstore.iec.ch/publication/2638">https://webstore.iec.ch/publication/2638</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kathirvel</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Sabarimalai Manikandan</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Prasanna</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Soman</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>An Efficient R-peak Detection Based on New Nonlinear Transformation and First-Order Gaussian Differentiator</article-title>
          <source>Cardiovasc Eng Tech</source>
          <year>2011</year>
          <month>10</month>
          <day>12</day>
          <volume>2</volume>
          <issue>4</issue>
          <fpage>408</fpage>
          <lpage>425</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1007/s13239-011-0065-3"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s13239-011-0065-3</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Xiao</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Xu</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>Z</given-names>
            </name>
          </person-group>
          <article-title>Mxnet: A flexible and efficient machine learning library for heterogeneous distributed systems (preprint)</article-title>
          <source>arXiv.org</source>
          <year>2015</year>
          <fpage>3</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://arxiv.org/pdf/1512.01274.pdf"/>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref27">
        <label>27</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Landis</surname>
              <given-names>JR</given-names>
            </name>
            <name name-style="western">
              <surname>Koch</surname>
              <given-names>GG</given-names>
            </name>
          </person-group>
          <article-title>The measurement of observer agreement for categorical data</article-title>
          <source>Biometrics</source>
          <year>1977</year>
          <month>03</month>
          <volume>33</volume>
          <issue>1</issue>
          <fpage>159</fpage>
          <lpage>74</lpage>
          <pub-id pub-id-type="medline">843571</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref28">
        <label>28</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Li</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Zhou</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>ECG Classification Using Wavelet Packet Entropy and Random Forests</article-title>
          <source>Entropy</source>
          <year>2016</year>
          <month>08</month>
          <day>05</day>
          <volume>18</volume>
          <issue>8</issue>
          <fpage>285</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.3390/e18080285"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/e18080285</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref29">
        <label>29</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zubair</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Yoon</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>An automated ECG beat classification system using convolutional neural networks</article-title>
          <year>2016</year>
          <conf-name>2016 6th International Conference on IT Convergence and Security (ICITCS)</conf-name>
          <conf-date>2016 Sep 26</conf-date>
          <conf-loc>Prague, Czech Republic</conf-loc>
          <publisher-name>IEEE</publisher-name>
          <fpage>1</fpage>
          <lpage>5</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1109/ICITCS.2016.7740310"/>
          </comment>
          <pub-id pub-id-type="doi">10.1109/icitcs.2016.7740310</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref30">
        <label>30</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Saadatnejad</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Oveisi</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Hashemi</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>LSTM-Based ECG Classification for Continuous Monitoring on Personal Wearable Devices</article-title>
          <source>IEEE J Biomed Health Inform</source>
          <year>2019</year>
          <month>04</month>
          <day>15</day>
          <pub-id pub-id-type="doi">10.1109/JBHI.2019.2911367</pub-id>
          <pub-id pub-id-type="medline">30990452</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref31">
        <label>31</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hagay</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Seungjai</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <source>AWS Re:Invent 2018</source>
          <year>2018</year>
          <month>11</month>
          <day>26</day>
          <access-date>2020-03-06</access-date>
          <comment>Deep Learning for Developers: An Introduction, Featuring Samsung SDS<ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.slideshare.net/AmazonWebServices/deep-learning-for-developers-an-introduction-featuring-samsung-sds-aim301r1-aws-reinvent-2018">https://tinyurl.com/tz6m9dt
</ext-link>
                                                </comment>
        </nlm-citation>
      </ref>
      <ref id="ref32">
        <label>32</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Xia</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Wulan</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>H</given-names>
            </name>
          </person-group>
          <article-title>Detecting atrial fibrillation by deep convolutional neural networks</article-title>
          <source>Comput Biol Med</source>
          <year>2018</year>
          <month>02</month>
          <day>01</day>
          <volume>93</volume>
          <fpage>84</fpage>
          <lpage>92</lpage>
          <pub-id pub-id-type="doi">10.1016/j.compbiomed.2017.12.007</pub-id>
          <pub-id pub-id-type="medline">29291535</pub-id>
          <pub-id pub-id-type="pii">S0010-4825(17)30404-3</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref33">
        <label>33</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Clifford</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Moody</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Lehman</surname>
              <given-names>Li-Wei H</given-names>
            </name>
            <name name-style="western">
              <surname>Silva</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Johnson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Mark</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>AF Classification from a Short Single Lead ECG Recording: the PhysioNet/Computing in Cardiology Challenge 2017</article-title>
          <source>Comput Cardiol (2010)</source>
          <year>2017</year>
          <month>09</month>
          <volume>44</volume>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://europepmc.org/abstract/MED/29862307"/>
          </comment>
          <pub-id pub-id-type="doi">10.22489/CinC.2017.065-469</pub-id>
          <pub-id pub-id-type="medline">29862307</pub-id>
          <pub-id pub-id-type="pmcid">PMC5978770</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref34">
        <label>34</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Agarwal</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Zhu</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Fang</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Cheng</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Hong</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Shah</surname>
              <given-names>NH</given-names>
            </name>
          </person-group>
          <article-title>Impact of Predicting Health Care Utilization Via Web Search Behavior: A Data-Driven Analysis</article-title>
          <source>J Med Internet Res</source>
          <year>2016</year>
          <month>09</month>
          <day>21</day>
          <volume>18</volume>
          <issue>9</issue>
          <fpage>e251</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.jmir.org/2016/9/e251/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/jmir.6240</pub-id>
          <pub-id pub-id-type="medline">27655225</pub-id>
          <pub-id pub-id-type="pii">v18i9e251</pub-id>
          <pub-id pub-id-type="pmcid">PMC5052461</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
