<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Lightweight signal analysis for R-Peak detection</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Maria Rizzi</string-name>
          <email>maria.rizzi@poliba.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Matteo D'Aloia</string-name>
          <email>matteo.daloia@masvis.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ruggero Russo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gianpaolo Cice</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sante Stanisci</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Angela Montingelli</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Annalisa Longo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>MASVIS SRL</institution>
          ,
          <addr-line>Conversano</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Politecnico di Bari - Dipartimento di Ingegneria Elettrica e dell'Informazione</institution>
          ,
          <addr-line>Bari</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The electrocardiogram signal is considered very important in clinical practice in order to assess the cardiac status of patients. In this paper, a computer aided detection system for R peak localizations is indicated. A four stage architecture is implemented which is able to differentiate R waves from peaked T and P waves with an high degree of accuracy. The performance of the algorithm is tested using ECG waveform records from the MIT-BITH Arrhythmia database. A sensitivity of 96 % and a positive prediction of 99% are achieved.</p>
      </abstract>
      <kwd-group>
        <kwd>ECG</kwd>
        <kwd>QRS</kwd>
        <kwd>Hilbert transform</kwd>
        <kwd>wavelet transform</kwd>
        <kwd>computer aided detection (CADe)</kwd>
        <kwd>R-Peak</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Signal processing technique has a large number of uses in medical environments
where it is a difficult task the differentiation between real pathological signs and false
alarms because of noise and imperfect signals [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Modern signal processing techniques
can improve existing investigation processes for diagnostic, treatment evaluation, and
research applications even in presence of corrupted and weak signals. Therefore,
Computer-aided detection (CADe) systems have become one of the major research subjects
in medical signal and imaging [
        <xref ref-type="bibr" rid="ref2 ref3 ref4 ref5">2-5</xref>
        ]. The fusion of technology and medical science thus
produces significant innovations that greatly contribute to human health and to people
quality of life. In particular CADe systems are important in detecting abnormalities
related to heart function in presence of signals corrupted by noise, artifacts and so on
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The electrical activity of the heart is represented by the Electrocardiogram (ECG)
signal which shows the regular contraction and relaxation of heart muscle. It is a
timevarying signal reflecting the ionic current flow which causes the cardiac fibers to
contract and subsequently relax. Therefore its analysis is adopted to detect heart
abnormalities. The ECG is a non-invasive technique whose useful information are indicated by
the ECG shape such as intervals and amplitudes of the signal [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Due to the
non-stationary behaviour of biological signals, disease indicators may be present all the time
or may occur at random during certain irregular intervals of the day. Therefore, the
study of ECG pattern by analysts may have to be carried out over several hours with an
high probability of missing vital information. The implementation of a procedure for
the detection of ECG key points (such as the P wave, the QRS complex and the T wave)
is a difficult task because of the time varying behaviour of human body and
consequently all processing methods should change their state during measurement.
Moreover, noise contaminations, due to baseline drifts changes, motion artefacts and muscular
noise, is frequently encountered [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. The QRS detection is one of the most important
task in ECG signal analysis systems. In fact after the QRS identification, the heart rate
may be calculated and other parameters can be examined to avoid and to prevent serious
pathologies such as ischemia.
      </p>
      <p>
        In this paper an improved signal processing technique able to detect R peaks in ECG
signals for heart rate evaluation, is presented. Its variability is linked to various
disorders such as obstructive sleep apnea syndrome, congestive heart failure [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ]. The
implemented method adopts the Hilbert transform envelope and a thresholding technique
for the detection of zones inside the ECG signal which could contain a peak.
Experimental results show the method validity and its high sensitivity and predictivity
parameters. In section II a briefly description of ECG technique is presented while section III
describes the adopted methods. Section IV makes an in depth presentation of the
implemented CADe system and in section V the system performance are evaluated.
Moreover, some conclusions are drawn out.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>ECG technique</title>
      <p>ECG signal is the representation of the heart muscle electrical activity over time. It
supplies physicians with useful information and represents an important part of the
cardiac patient assessment.</p>
      <p>
        A single normal cycle of ECG represents successive atrial depolarization/repolarization
and ventricular depolarization/repolarization which occur in every heartbeat. In fig.1
an example of the ECG shape is indicated [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>The P wave is the first upward pulse of the ECG signal and is generated when the atria
contract to pump blood into the ventricles. The PR interval, which is a short period
where no electrical activity is seen, is due to a physiological delay; in fact the
atrioventricular node slows the electrical depolarization before it proceeds to ventricles. The
successive pulse, the QRS complex, is formed when ventricles contract to pump out
blood. The next S-T segment represents the early stage of ventricular repolarization and
under normal conditions is isoelectric (constant potential). A marked displacement of
the S-T segment signifies coronary artery disease. The ventricular repolarization forms
the T wave and the cardiac muscle is prepared for the next cycle of the ECG. Therefore,
the Q-T interval reflects the total duration of ventricular systole. A long QT interval
can be associated with heart failure, ischaemic heart disease, bradycardia, some
electrolyte disorders (i.e. hypocalcaemia) and can be consequence of different drugs taking.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Proposed Method</title>
      <p>
        3.1 Hilbert transform
The Hilbert transform xH(t) of a real function x(t) is defined as [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]:
  ( ) =

1
      </p>
      <p>+∞
∫−∞
 ( )
1
 −
Therefore, xH(t) is both a time dependent function and a linear function of x(t). In fact,
it is obtained from x(t) applying the convolution with (t)-1. Equation (1) shows that
xH(t) is obtained by filtering the signal x(t) through a linear time-invariant filter with
impulse response equal to (t)-1. Because of the integrand has a singularity and the
limits of integration are finite, the Hilbert transform is properly defined as the Cauchy
principal value of the integral in (1), whenever this value exists.</p>
      <p>Considering the frequency domain and applying the Fourier transform it results:
 {  ( )} = − 
 { ( )}
where
+1
−1
 &gt; 0
 = 0
 &lt; 0</p>
      <sec id="sec-3-1">
        <title>The envelope of z(t) is: local maxima.</title>
        <p>3.2 Wavelet transform
Therefore, the Hilbert transform shifts all positive frequency components by -90° and
all negative frequency components by +90° while the amplitude of F[x(t)] remains
constant. Thus it is found that: x(t) and xH(t) are orthogonal and xH(t) represents the
harmonic conjugate of x(t). The function x(t) and its transform xH(t) are related to each
other and they together create an analytic signal that is expressed as:
 ( ) =  ( ) +    ( )
B(t) </p>
        <p>
          x2 (t)  xH2 (t)
It is evident that B(t) and x(t) have common tangents and the same values in the points
where xH(t) is zero. Therefore, B(t) have the same slope and magnitude of x(t) at its
Wavelet transform is a suitable tool for studying non-stationary signals. In fact, both
the property of time-frequency localization (which allows us to obtain a signal at a
particular time and frequency or to extract features at various locations in space) and
the multirate filtering option (which permits the differentiation of signals with different
(2)
(3)
(4)
frequencies) make the wavelet transform an effective tool in signal processing analysis.
It decomposes the signal into several components with various scales or resolutions.
Therefore, it can identify useful information for R point detection and discard signal
bands which provide scant contribution to the study [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>
          Since wavelet functions are compact, wavelet coefficients only measure the variations
around a small region of data array. This feature makes wavelet analysis particularly
useful for signal processing; the "localized" nature of the wavelet transform allows us
to pick out features in analyzed data with ease such as spikes (i.e. noise or
discontinuities), discrete objects, edges of objects, and so forth. Moreover, wavelet coefficients at
one location are not affected by coefficients at other locations in data under study. As
the aim of this paper is the implementation of a fast algorithm, a non-redundant wavelet
decomposition has been chosen. Moreover, as the temporal ECG shape is an important
parameter, the wavelet to be adopted should be a symmetrical function to avoid the
introduction of non-linear phase shift.
3.3 Block Diagram
The proposed system is composed of four stages (fig.2).
The first stage is the pre-processing phase in which the ECG signal is derived. This is
done for preparing the signal for Hilbert envelope computation. The second stage
performs the Hilbert transform envelope of the first derivative of ECG waveform. This
envelope represents an enhancement of the signal that can be used for the peak detection
[
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] (fig.3,4).
In order to guarantee an accurate detection of R peaks, a third stage is necessary. In this
step, the method decomposes the output signal of the second stage into six dyadic scales
(fig.5). After validation tests, wavelet bior 3.3 has been used. According to the power
spectra of the input signal of the third stage, the larger contribute of the signal is located
in scales 3 and 4. The implemented method adopts both an evolution of the classical
Mallat decomposition, called a’ trous algorithm and equivalent parallel filter banks. A
hard threshold is adopted for singularity selection over the scales 3 and 4.
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Simulation Results</title>
      <p>For the performance evaluation of the method, sensitivity and positive prediction
are taken into account. The Sensitivity (Se) is defined as the probability of detecting a
R point when a R point exists really; the positive prediction (+P) represents the
probability of detecting a R point among the detected ECG peaks. They are computed
adopting the following expressions:</p>
      <p>Sensitivity:  = (5)</p>
      <p>+
Positive Prediction:
+ =</p>
      <p>+
(6)
where</p>
      <p>TP (the number of true positives) is the number of correct identifications of R
points present in the signal under test;
- FN (the number of false negatives) is the number of R points present in the signal
that the algorithm is not able to detect;
- FP (the number of false positive) is the number of R points detected by the
algorithm but actually in the signal.</p>
      <p>
        The proposed algorithm is tested on the ECG signals taken from the first channel of
the MIT-BIH arrhythmia database [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]
      </p>
      <p>In fig.6 are shown the system performance related to the threshold value adopted in
the last stage. The threshold value is a percentage of the peak maximum value in the
dyadic scales.</p>
      <p>30% 35% 40% 45% 50% 55% 60% 65% 70% 75% 80% 85%</p>
      <p>Threshold value</p>
      <p>The algorithm gives Se and +P parameters of about 96% and 99% for a threshold
value in the range [45% ÷ 70%] of R* denoting with R* the R point average value in
the related dyadic scales.</p>
      <p>%
100
90
80
70
60
50
40
30</p>
      <p>Sensitivity
Positive Predictivity</p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>Real time ECG signal processing is an important diagnostic procedure for the
monitoring of heart functional status. The proposed CADe system, makes the localization
of R peaks possible even if noisy signals and peaked T and P waves are present. The
Hilbert transform envelope and a multiscale analysis is performed for ECG
enhancement and R points localization. The parallel behavior of the implemented method
optimizes the procedure computational time and makes it suitable for a hardware
implementation.</p>
      <sec id="sec-5-1">
        <title>ACKNOWLEDGMENT The work has been developed within the framework of Masvis’s Internal Research Project, task titled: “Analisi di segnali mono e bidimensionali”.</title>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guaragnella</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castagnolo</surname>
            <given-names>B.</given-names>
          </string-name>
          , Health Care Improvement:
          <article-title>Comparative Analysis of Two CAD Systems in Mammographic Screening</article-title>
          ,
          <source>IEEE Trans. Syst</source>
          .,
          <string-name>
            <surname>Man</surname>
          </string-name>
          , Cybern. A,
          <string-name>
            <surname>Syst</surname>
            <given-names>.</given-names>
          </string-name>
          ,
          <source>Humans</source>
          <volume>42</volume>
          ,
          <fpage>1385</fpage>
          -
          <lpage>1395</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Pirlo</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Diaz</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ferrer</surname>
            <given-names>M.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Impedovo</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Occhionero</surname>
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zurlo</surname>
            <given-names>U.</given-names>
          </string-name>
          ,
          <article-title>Early Diagnosis of Neurodegenerative Diseases by Handwritten Signature Analysis</article-title>
          , LNCS
          <volume>9281</volume>
          ,
          <fpage>290</fpage>
          -
          <lpage>297</lpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <article-title>Computer Aided System for Breast Cancer Diagnosis, Biomed</article-title>
          . EngApp. Bas C.
          <volume>26</volume>
          ,
          <issue>1450033</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Impedovo</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pirlo</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mangini</surname>
            <given-names>F.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barbuzzi</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rollo</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Balestrucci</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Impedovo</surname>
            <given-names>S.</given-names>
          </string-name>
          , Sarcinella L.,
          <string-name>
            <surname>O'Reilly</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Plamondon</surname>
            <given-names>R.</given-names>
          </string-name>
          ,
          <source>Writing Generation Model for Health Care Neuromuscular System Investigation</source>
          , Springer Int. Publishing,
          <volume>137</volume>
          -
          <fpage>148</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cice</surname>
            <given-names>G</given-names>
          </string-name>
          ,
          <article-title>Computer aided evaluation (CAE) of morphologic changes in pigmented skin lesions</article-title>
          ,
          <source>Lect. Notes Comput. Sc. (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)</source>
          <volume>9281</volume>
          ,
          <fpage>250</fpage>
          -
          <lpage>257</lpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castagnolo</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <article-title>Semiconductor detectors and principles of radiationmatter interaction</article-title>
          .
          <source>Journal of Applied Sciences</source>
          <volume>10</volume>
          ,
          <fpage>3141</fpage>
          -
          <lpage>3155</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Bohui
          <string-name>
            <given-names>Z.</given-names>
            ,
            <surname>Yongsheng</surname>
          </string-name>
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Kuangrong</surname>
          </string-name>
          <string-name>
            <surname>H</surname>
          </string-name>
          ,
          <article-title>A novel automatic detection system for ECG arrhythmias using maximum margin clustering with immune evolutionary algorithm</article-title>
          ,
          <source>Computational and Mathematical Methods in Medicine</source>
          <year>2013</year>
          ,
          <volume>453402</volume>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Pentel</surname>
            <given-names>T.</given-names>
          </string-name>
          ,
          <article-title>ANS and heart rate variability in normal sleep and sleep disorders</article-title>
          ,
          <source>Sleep Medicine 8</source>
          ,
          <fpage>44</fpage>
          -
          <lpage>45</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castagnolo</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <article-title>ECG-QRS detection method adopting wavelet parallel filter banks</article-title>
          ,
          <source>7th WSEAS Int. Conf. on Wavelet Analysis &amp; Multirate Systems (WAMUS'07)</source>
          , Arcachon (France), Oct.
          <volume>13</volume>
          -
          <fpage>15</fpage>
          ,
          <year>2007</year>
          , pp.
          <fpage>158</fpage>
          -
          <lpage>163</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Kschischang</surname>
            <given-names>F.R.</given-names>
          </string-name>
          ,
          <source>The Hilbert Transform</source>
          , Department of Electrical and Computer Engineering, University of Toronto, http://www.comm.toronto.edu/frank/papers/hilbert.pdf
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Rizzi</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>D'Aloia</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castagnolo</surname>
            <given-names>B.</given-names>
          </string-name>
          ,
          <article-title>A New Method for ICG Characteristic Point Detection</article-title>
          .
          <source>1st International Conference on Bio-inspired Systems and Signal Processing (BIOSIGNALS</source>
          <year>2008</year>
          ), Funchal,
          <source>Madeira (Portugal)</source>
          ,
          <fpage>28</fpage>
          -
          <lpage>31</lpage>
          Jan., pp.
          <fpage>244</fpage>
          -
          <lpage>249</lpage>
          , (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Wilson J.D.</surname>
          </string-name>
          ,
          <string-name>
            <surname>Govindan</surname>
            <given-names>R.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hatton</surname>
            <given-names>J.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lowery</surname>
            <given-names>C.L</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Preissl</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <article-title>Integrated approach for fetal QRS detection</article-title>
          ,
          <source>IEEE Trans. on Bio-Med</source>
          . Eng., vol.
          <volume>55</volume>
          ,
          <string-name>
            <surname>Sep</surname>
          </string-name>
          .
          <year>2008</year>
          , pp.
          <fpage>2190</fpage>
          -
          <lpage>7</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>MIT-BIH Arrhythmia</surname>
          </string-name>
          Database https://www.physionet.org/physiobank/database/mitdb/
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>