<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JSIP</journal-id><journal-title-group><journal-title>Journal of Signal and Information Processing</journal-title></journal-title-group><issn pub-type="epub">2159-4465</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jsip.2015.63020</article-id><article-id pub-id-type="publisher-id">JSIP-58144</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  P-Wave Detection Combining Entropic Criterion and Wavelet Transform
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>awsan</surname><given-names>Rekik</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Noureddinne</surname><given-names>Ellouze</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Electric Engineering, National School of Engineering of Tunis, 
Tunis, Tunisia</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>Sawsan.Rekik@enit.rnu.tn(AR)</email>;<email>n.ellouze@enit.rnu.tn(NE)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>15</day><month>07</month><year>2015</year></pub-date><volume>06</volume><issue>03</issue><fpage>217</fpage><lpage>226</lpage><history><date date-type="received"><day>2</day>	<month>June</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>17</month>	<year>July</year>	</date><date date-type="accepted"><day>21</day>	<month>July</month>	<year>2015</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The objective of this paper is to develop an efficient P wave detection method in electrocardiogram (ECG) using the local entropy criterion (EC) and wavelet transform (WT) modulus maxima. The detection of P wave relates to the diagnosis of many heart diseases and it is also a difficult point during the ECG signal detection. Determining the position of a P-wave is complicated due to the low amplitude, the ambiguous and changing form of the complex. In a first step, QRS complexes are detected using the pan-Tompkins method. Then, we look for the best position of the analysis window and the value of the most appropriate width to the P wave. Finally, the determination of P wave peaks, as well as their onsets and offsets. The method has been validated using ECG-recordings with a wide variety of P-wave morphologies from MIT-BIH Arrhythmia and QT database. The P-wave method obtains a sensitivity of 99.87% and a positive predictivity of 98.04% over the MIT-BIH Arrhythmia, while for the QT, sensitivity and predictivity over 99.8% are attained.
 
</p></abstract><kwd-group><kwd>ECG</kwd><kwd> P-Wave</kwd><kwd> Entropy</kwd><kwd> Wavelet Transform</kwd><kwd> Modulus Maxima</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The analysis of the ECG is widely used for diagnosing many cardiac diseases, which are the main cause of mortality in developed countries. Since most of the clinically useful information in the ECG is found in the intervals and amplitudes defined by its significant points (characteristic wave peaks and boundaries), the development of accurate and robust methods for automatic ECG delineation is a subject of major importance, especially for the analysis of long recordings. In order to interpret the ECG and use it to diagnose abnormalities, it is important to know the normal characteristics of the ECG, and understand the mechanisms underlying the generation of each segment of the ECG.</p><p>The P wave is caused by atrial depolarization. The duration is normally not greater than 120 ms. The normal shape of the P wave does not include any notches or peaks. It can be positive, negative, or biphasic in the remaining leads. An absent P wave in the ECG may signify sinoatrial block [<xref ref-type="bibr" rid="scirp.58144-ref1">1</xref>] . Some researchers present some P wave detection method based on wavelet transform [<xref ref-type="bibr" rid="scirp.58144-ref2">2</xref>] . Wavelet analysis provides important information about the mathematical morphology of a signal. Using this method, it is possible to describe the characteristic elements of a complex quasi-periodic signal. But P wave’s amplitude is much smaller than other waves, so the accuracy of detection is limited.</p><p>We present here a new method for P wave’s location combines entropic criterion and wavelets transform (ECWT). We are interested in entropy as a measure of the amount of information contained in a signal. The amount of information can also be interpreted as the unpredictability of events in a signal. More events are unpredictable, the more information it contains is important and its entropy is high. This measure is favorable to the segmentation or an unpredictable event will be proportional to the increase in entropy. The entropic criterion can indicate the maximum of P wave’s energy.</p><p>The wavelet transform provides a description of the signal in the time-scale domain, allowing the representation of the temporal features of a signal at different resolutions; therefore, it is a suitable tool to analyze the ECG signal, which is characterized by a cyclic occurrence of patterns with different frequency content (QRS complexes, P and T waves). Moreover, the noise and artifacts affecting the ECG signal also appear at different frequency bands, thus having different contribution at the various scales.</p><p>For the singularity detection through local maxima, we rely on the approach Mallet and Hwang [<xref ref-type="bibr" rid="scirp.58144-ref3">3</xref>] , using a first derivative Gaussian function as the prototype wavelet. The principle of this approach is, firstly, to use the entropy function for identifying the concentrated energy of the P wave and on the other hand to link the result with that of the modulus maxima allowing an exact location.</p><p>The paper is organized as follows: in Section 2, we present the theory of entropic local criterion and the notion of wavelets transforms modulus maxima. We show the detection method of P wave. Onsets and ends are performed in Section 3. Then, we interpret the results of P wave detection. The results of the validation on two databases (MIT-BIH, QT) and their comparison to other algorithms are given in Section 4. Finally, the conclusion is presented in Section 5.</p><sec id="s1_1"><title>2. Entropy and Wavelet Transform Modulus Maxima</title><p>This article proposes a method combining entropic criterion and Wavelet Transform Modulus Maxima to detect P wave. The two theories are introduced in the following.</p></sec><sec id="s1_2"><title>2.1. Entropic Local Criterion</title><p>In the case of the representation of the signal, entropy comes to measuring the fineness and precision of the location information, location in both time and frequency. Entropy will allow us to see where the energy signal is localized in the time-frequency plane. Specifically, it will allow us to know what time-frequency representation allows the best location information in the plan. The entropy associated with a discrete scalar random variable</p><p>with X achievements <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x5.png" xlink:type="simple"/></inline-formula> and the probability distribution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x6.png" xlink:type="simple"/></inline-formula> measures its mess [<xref ref-type="bibr" rid="scirp.58144-ref4">4</xref>] . It is defined by:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x7.png" xlink:type="simple"/></inline-formula>, with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x8.png" xlink:type="simple"/></inline-formula> (1)</p><p>Since entropy operator will be applied to a channel signal<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x9.png" xlink:type="simple"/></inline-formula>, it has implicitly been norma-</p><p>lized to 1, so that:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x10.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x11.png" xlink:type="simple"/></inline-formula> (2)</p><p>With X[k] the Discrete Fourier Transform DFT of x[n] for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x12.png" xlink:type="simple"/></inline-formula> defined for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x13.png" xlink:type="simple"/></inline-formula> by:</p><disp-formula id="scirp.58144-formula759"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-3400414x14.png"  xlink:type="simple"/></disp-formula><p>For any signal<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x15.png" xlink:type="simple"/></inline-formula>, the entropy in the sense of the energy distribution of frequencies is legi-</p><p>timate with the following definition:</p><disp-formula id="scirp.58144-formula760"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-3400414x16.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.58144-formula761"><graphic  xlink:href="http://html.scirp.org/file/3-3400414x17.png"  xlink:type="simple"/></disp-formula></sec><sec id="s1_3"><title>2.2. Wavelet Transform Modulus Maxima</title><p>Most of the information in a signal is carried by its irregular structures and its transient phenomena, called singularities. A method that excels in finding and identifying these singularities is the Wavelet Transform; because of its capability of decomposing a signal into elementary building blocks that are well localized in both time and frequency. Because of this capability, the Wavelet Transform is capable of defining the local regularity of a signal. The local regularity of a function is often measured with the Lipschitz exponents [<xref ref-type="bibr" rid="scirp.58144-ref5">5</xref>] , also called the H&#246;lder exponent. We define what we mean by a local maximum of the wavelet transform modulus [<xref ref-type="bibr" rid="scirp.58144-ref3">3</xref>] . Let Wf(x) is the wavelet transform of a function f(x)</p><p>・ We note a local extremum any point x<sub>0</sub> such that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x18.png" xlink:type="simple"/></inline-formula> has a zero crossing at x = x<sub>0</sub>, when x varies.</p><p>・ We note a modulus maximum; any point x<sub>0</sub> such that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x19.png" xlink:type="simple"/></inline-formula> when x belongs to either a right or left neighborhood of x<sub>0</sub>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-3400414x20.png" xlink:type="simple"/></inline-formula> when x belongs to the other side of the neighborhood of x<sub>0</sub>.</p><p>・ We call maxima line, any connected curve in the scale space x along which all points are modulus maxima.</p></sec></sec><sec id="s2"><title>3. P-Wave Detection</title><p>Based on the waveform, Laurent Clavier [<xref ref-type="bibr" rid="scirp.58144-ref6">6</xref>] divide the different P waves encountered in five classes.</p><p>・ Class 1: the P wave has a relatively symmetrical reflecting normal patient.</p><p>・ Class 2: P wave has a normal climb, but relatively slow down.</p><p>・ Class 3: the P wave has a relatively slow rise but a normal descent.</p><p>・ Class 4: the P wave has a double hump.</p><p>・ Class 5: P wave is biphasic; usually it is a pathological wave.</p><sec id="s2_1"><title>3.1. P-Peak Detection</title><p>The detection algorithm of P wave is generally designed according to three steps (<xref ref-type="fig" rid="fig1">Figure 1</xref>).</p><p>The first is based on a preliminary localization of the QRS complex and consists in seeking, in a window preceding the QRS, a trace of the P wave. The second step is based on the research for an analysis window well adapted to the width and to the position of the P wave by means of the local entropy criterion which measures the temporal unpredictability and disorder in the frequency signals and is an index for the segmentation. As part of the segmentation, the entropy changes reflect the presence of a change in the signal. The entropy is going to help us to adopt the width of the window to that of the P wave. In this case, our research becomes more efficient and more objective. By the way, we will gain in computing time for the next step of this method. We succeed and optimization the algorithm. The third is based on the detection of the P wave by modulus maxim’s method.</p><sec id="s2_1_1"><title>3.1.1. Step 1</title><p>The ECG signal gotten at the time of the registration is contaminated generally by different sources of noises that can disrupt the phase and the amplitude characteristics of the useful signal, from where the necessity of a</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Algorithm of P peak detection</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x21.png"/></fig><p>good filtering [<xref ref-type="bibr" rid="scirp.58144-ref7">7</xref>] . We apply a band pass filter [<xref ref-type="bibr" rid="scirp.58144-ref8">8</xref>] to eliminate the noises caused by the breathing, the movements of muscles and the baseline. This filter is constituted by the combination of a passes low filter and another passes loud. The two are based on a sampling rate of 360 Hz [<xref ref-type="bibr" rid="scirp.58144-ref9">9</xref>] .</p><p>In general, the normal ECG rhythm means that there is a regular rhythm and waveform. However, the ECG rhythm of the patient with arrhythmia will not be regular in certain QRS complexes. We use the different characteristics that arrhythmias exhibit to detect the abnormal ECG waveform. We first need to find the location of every QRS complex.</p><p>The locations of QRS complex have the maximum variation in the slopes. This property was used to detect the location of QRS complex. The method of Pan-Tompkins was adopted to detect the QRS complex [<xref ref-type="bibr" rid="scirp.58144-ref10">10</xref>] . The Pan and Tompkins QRS detection algorithm identifies the QRS complexes based upon digital analysis of slope, amplitude, and width of the ECG data. The algorithm implements a special digital band pass filter. It can reduce false detection caused by the various types of interference present in the ECG signal.</p></sec><sec id="s2_1_2"><title>3.1.2. Step 2</title><p>The P wave is a rounded peak occurred before the QRS complex. Therefore, the P wave can be found based on the location of the QRS complex. The method consists in finding the right and better position of the analysis window (<xref ref-type="fig" rid="fig2">Figure 2</xref>).</p><p>The detection algorithm P-wave refers to the R peak backwards t<sub>r</sub> (tRpeak-200 ms) so as to be in advance phase by report to the QRS complex (<xref ref-type="fig" rid="fig3">Figure 3</xref>).</p><p>t<sub>r</sub> depends on the RR period in 5 seconds. Statistically, over a period for many patients and healthy on a recording time of one hour for each, P wave holds 10%, the QRS complex occupies 8% and the T wave occupies 20% of the RR period. The choice of the window is taken of such way as the energy in the side of lobes being as small as possible to minimize the errors in the entropy and increase the accuracy of positional. We perform the decomposition of the ECG signal for 4 levels (2<sup>1</sup>, 2<sup>2</sup>, 2<sup>3</sup> and 2<sup>4</sup>) in which his higher energy is. For scales larger than 2<sup>4</sup>, the energy of the QRS complex is very low, only the P and T waves have significant components.</p><p>The detection of the P wave is based on the variations in local entropy rather than the entropy itself. It uses the local entropy criterion. Entropic Local Criterion is a time function, measuring variations in the energy concentration of the short-term spectrum of the signal. The measurement of concentration of energy or spectral disorder is used Shannon [<xref ref-type="bibr" rid="scirp.58144-ref11">11</xref>] entropy (Equation (1)). Due to significant changes in this measure in the context of the one part and the position of the analyzed frequencies, we add to this extent the notion of stability. In this case, we talk about the criterion entropic local stabilized</p><p>We set the first W<sub>i</sub> analysis window, which Li its width, from tr. For that, we calculate the normalized and localized entropy of analysis window W<sub>i</sub> (L<sub>i</sub>) for 2<sup>4</sup> scale according to the Equation (4). The value of entropy H<sub>i</sub> calculated through the W<sub>i </sub>window is saved in a table.</p><p>The search for the best width of the window operates according to an iterative algorithm. In every iteration the width of the window is multiply by 2 (L<sub>i</sub> &#215; 2) to look for the maximum of quantity of information contained in the wave P. The same steps are applied on the next analysis window W<sub>i+1</sub> with L<sub>i+1 </sub>= L<sub>i</sub> &#215; 2. So, we create an increasing dyadic table for the window’s various values (<xref ref-type="table" rid="table1">Table 1</xref>).</p><p>By comparing the last two values of the found entropies, we start again calculating next entropy for the window W<sub>i+1</sub>untilthe value of two successive entropy (H<sub>n+1</sub>, H<sub>n</sub>) remains constant. We retain the window W<sub>n </sub>of L<sub>n</sub></p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Algorithm of positioning analysis window</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x22.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Back period t<sub>r</sub></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x23.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Various values of windows</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Windows W<sub>i</sub></th><th align="center" valign="middle" >Width L<sub>i</sub></th></tr></thead><tr><td align="center" valign="middle" >W<sub>0</sub></td><td align="center" valign="middle" >L<sub>0</sub></td></tr><tr><td align="center" valign="middle" >W<sub>1</sub></td><td align="center" valign="middle" >L<sub>1</sub> = L<sub>0</sub> &#215; 2</td></tr><tr><td align="center" valign="middle" >W<sub>2</sub></td><td align="center" valign="middle" >L<sub>2</sub> = L<sub>1</sub> &#215; 2</td></tr><tr><td align="center" valign="middle" >W<sub>3</sub></td><td align="center" valign="middle" >L<sub>3</sub> = L<sub>2</sub> &#215; 2</td></tr><tr><td align="center" valign="middle" >W<sub>4</sub></td><td align="center" valign="middle" >L<sub>4</sub> = L<sub>3</sub> &#215; 2</td></tr><tr><td align="center" valign="middle" >W<sub>5</sub></td><td align="center" valign="middle" >L<sub>5</sub> = L<sub>4</sub> &#215; 2</td></tr></tbody></table></table-wrap><p>width.</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows three successive analyzes of windows (W<sub>0</sub>, W<sub>1</sub>, W<sub>2</sub>, W<sub>3</sub>) showing the growth of their width. We note that the value of the entropy increases when the width of the window widens at each iteration since the</p><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Successive analysis windows and theirs entropies’ values</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x24.png"/></fig><p>detection of the information is more and more centralized on the P wave.</p></sec><sec id="s2_1_3"><title>3.1.3. Step 3</title><p>At this level of the algorithm, we have a window (W<sub>n</sub>) adapted in width and in position to the P wave. Once the analysis window is fixed, we calculate the modulus maxima for the 2<sup>4 </sup>scale to detect the position of the P peak applied to the W<sub>n</sub>. Mainly at scales 2<sup>4</sup>, P wave has its major component, whereas artifacts produce isolated maximum or minimum lines which can be easily discarded. If the signal is contaminated with high-frequency noise, the most affected scales are and, being higher scales essentially immune to this sort of noise.</p><p>Using a first derivative Gaussian function as mother wavelet due to having one zero moment. It is therefore well adapted to detect the amplitude discontinuities in the signal; it delivers more to the spread of the maximum fine scales [<xref ref-type="bibr" rid="scirp.58144-ref12">12</xref>] . It is defines as follows</p><disp-formula id="scirp.58144-formula762"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/3-3400414x25.png"  xlink:type="simple"/></disp-formula><p>The waves produce a positive maximum-negative minimum pair along the scales, with a zero crossing between them. Each sharp change in the signal is associated to a line of maxima or minima across the scales. The passages by zero or zeros-crossings of the wavelet transform correspond in maxima premises or minima of the signal smoothed in the various scales and the maximal absolute values of the transformed it waves are associated with the maximal slopes. Using the information of local maxima, minima and zero crossings at 2<sup>4</sup> scales, the algorithm identifies the significant points P wave detection and delineation.</p></sec></sec><sec id="s2_2"><title>3.2. Onset/Offset Detection</title><p>Our detection method of P wave is also responsible for detecting P<sub>on</sub>/P<sub>off</sub> which is the start and end of the P waves. Our algorithm comprises two steps defined as follows (<xref ref-type="fig" rid="fig5">Figure 5</xref>), the beginning and the end of the P wave is determined based on the detection of P<sub>peak</sub>.</p><p>The onset of P wave is before the first slope of the position of P peak. In the same way, the offset of P wave is after the last slope of the position of P peak. We calculate the modulus maxima of the (first/last) slope of the P peak’s position for the 2<sup>4</sup> scale. We considered the modulus maxima calculated for the analysis window W<sub>n</sub> already attached to the P peak search step.</p></sec></sec><sec id="s3"><title>4. The ECWT Method Results and Performance</title><p>The ECG signals under test of the transformations are taken from the website of MIT-BIH Arrhythmia Database [<xref ref-type="bibr" rid="scirp.58144-ref13">13</xref>] . The sampling frequency of the data is 360 Hz. We will discuss certain parts of signals chosen.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Successive analysis windows and theirs entropies’ values</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x26.png"/></fig><sec id="s3_1"><title>4.1. Baseline Drift</title><p>The ECWT based method only considers variations of the signal that has a certain resemblance with the P-wave. Therefore, it is insensitive to baseline drift (<xref ref-type="fig" rid="fig6">Figure 6</xref>).</p></sec><sec id="s3_2"><title>4.2. Noise (EMG)</title><p>Most methods require frequently adapted thresholds in order to detect a low amplitude P-wave. In most cases these thresholds are used to distinguish the wave from the noise. By using scales that contain most part of the energy of the P-wave it is possible to acquire a precise detection (see <xref ref-type="fig" rid="fig7">Figure 7</xref>).</p></sec><sec id="s3_3"><title>4.3. Low Amplitude</title><p>Most methods require frequently adapted thresholds in order to detect a low amplitude P-wave. In most cases these thresholds are used to distinguish the wave from the noise (<xref ref-type="fig" rid="fig8">Figure 8</xref>). By using scales that contain most part of the energy of the P-wave it is possible to acquire a precise detection.</p></sec><sec id="s3_4"><title>4.4. Ambiguous Amplitude</title><p>As most methods, the ECWT method uses certain decision rules to distingue different kinds of P-waves. The difference with the other methods lies in the fact that the rules are applied to the transformation instead of to the pure signal. The transformation gives a clearer view of the signals information and therefore it is better suited for decision rules (<xref ref-type="fig" rid="fig9">Figure 9</xref>).</p></sec><sec id="s3_5"><title>4.5. Absent Wave</title><p>In some cases, the P-wave is absent. The figure below illustrates the case where the P wave is present with an important amplitude in start of signal but absent after (<xref ref-type="fig" rid="fig1">Figure 1</xref>0).</p></sec><sec id="s3_6"><title>4.6. P-Wave Performance</title><p>The datasets are signals coming from the MIT-BIH Arrhythmia Database [<xref ref-type="bibr" rid="scirp.58144-ref13">13</xref>] and QT Database [<xref ref-type="bibr" rid="scirp.58144-ref14">14</xref>] . However not every long signal contains large amounts of useful information. When there is no change in a wave through- out the whole signal, it is not useful to analyze every peak. Therefore, only the parts which define the ECG will be discussed. The performance of the methods will be tested by using several cases with certain difficulties. The results are detailed in the table below (<xref ref-type="table" rid="table2">Table 2</xref>).</p><p>・ Number of True Positive detections (TP).</p><p>・ Number of False Positive detections (FP).</p><p>・ Number of False Negative detections (FN).</p><p>・ Percentage of detected P-waves (S<sub>e</sub>).</p><disp-formula id="scirp.58144-formula763"><graphic  xlink:href="http://html.scirp.org/file/3-3400414x27.png"  xlink:type="simple"/></disp-formula><p>・ Percentage of positive predictivity (P<sup>+</sup>)</p><disp-formula id="scirp.58144-formula764"><graphic  xlink:href="http://html.scirp.org/file/3-3400414x28.png"  xlink:type="simple"/></disp-formula><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> P wave detection (121.dat)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x29.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> P wave detection (232.dat)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x30.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> P wave detection (200.dat)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x31.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> P wave detection (124.dat)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x32.png"/></fig><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> P wave detection (107.dat)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/3-3400414x33.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> P wave detection performance</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Database</th><th align="center" valign="middle" >P-wave detection</th><th align="center" valign="middle" >Beats</th><th align="center" valign="middle" >TP</th><th align="center" valign="middle" >FP</th><th align="center" valign="middle"  colspan="2"  >FN</th><th align="center" valign="middle"  colspan="2"  >S<sub>e</sub> (%)</th><th align="center" valign="middle"  colspan="2"  >P<sup>+</sup> (%)</th></tr></thead><tr><td align="center" valign="middle"  rowspan="2"  >MITBIH</td><td align="center" valign="middle" >ECWT (this work)</td><td align="center" valign="middle" >54,714</td><td align="center" valign="middle" >54,557</td><td align="center" valign="middle" >76</td><td align="center" valign="middle" >109</td><td align="center" valign="middle"  colspan="2"  >98.87</td><td align="center" valign="middle"  colspan="2"  >98.04</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >Pan et al. [<xref ref-type="bibr" rid="scirp.58144-ref10">10</xref>]</td><td align="center" valign="middle" >54,904</td><td align="center" valign="middle" >54,766</td><td align="center" valign="middle" >253</td><td align="center" valign="middle" >138</td><td align="center" valign="middle"  colspan="2"  >99.75</td><td align="center" valign="middle"  colspan="2"  >99.54</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >QT</td><td align="center" valign="middle" >ECWT</td><td align="center" valign="middle" >63,210</td><td align="center" valign="middle" >63,184</td><td align="center" valign="middle" >54</td><td align="center" valign="middle" >37</td><td align="center" valign="middle"  colspan="2"  >99.94</td><td align="center" valign="middle"  colspan="2"  >99.89</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >Martinez et al. [<xref ref-type="bibr" rid="scirp.58144-ref15">15</xref>]</td><td align="center" valign="middle" >64,387</td><td align="center" valign="middle" >64,395</td><td align="center" valign="middle" >57</td><td align="center" valign="middle" >41</td><td align="center" valign="middle"  colspan="2"  >99.92</td><td align="center" valign="middle"  colspan="2"  >99.88</td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><p>The detection results on the MITDB and QTDB obtained by our ECWT of P detection and other published detectors are given in <xref ref-type="table" rid="table2">Table 2</xref>. Our algorithm does not need any learning period. The proposed ECWT detection algorithm achieves very good detection performance on the two studied databases. This algorithm attains S<sub>e</sub> = 98.87% and P<sup>+</sup> = 98.04% for the MITDB. On QTDB, our algorithm presents a positive predictivity (P<sup>+</sup>) about 99.89% and sensitivity (Se) about 99.94%.</p></sec></sec><sec id="s4"><title>5. Conclusions</title><p>We have presented in this paper a new method for P wave’s locations using the local entropic criterion, in order to focus on the maximum of P wave’s energy, and wavelet transform over some successive scales. The algorithm has been validated using two standards databases MIT-BIH Arrhythmia and QT, with different sampling rates and a wide diversity for P wave forms.</p><p>Our method achieves very good detection performance on the two studied databases. This algorithm attains S<sub>e</sub> = 98.87% and P<sup>+</sup> = 98.04% for the MITDB. On QTDB, it presents a positive predictivity (P<sup>+</sup>) about 99.89% and sensitivity (S<sub>e</sub>) about 99.94%.</p></sec><sec id="s5"><title>Cite this paper</title><p>SawsanRekik,NoureddinneEllouze, (2015) P-Wave Detection Combining Entropic Criterion and Wavelet Transform. Journal of Signal and Information Processing,06,217-226. doi: 10.4236/jsip.2015.63020</p></sec></body><back><ref-list><title>References</title><ref id="scirp.58144-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Le Page, R. and Boucher, J. (2001) Détection et Analyse de l’Onde P d’Un Electrocardiogramme. Colloque GRETSI’01, France.</mixed-citation></ref><ref id="scirp.58144-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Li, C., Zheng, C. and Tai, C. (1995) Detection of ECG Characteristic Points Using Wavelet Transform. IEEE Transactions on Biomedical Engineering, 42, 21-28. http://dx.doi.org/10.1109/10.362922</mixed-citation></ref><ref id="scirp.58144-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Mallat, S. and Hwang, W.L. (1992) Singularity Detection and Processing with Wavelets. IEEE Transactions on Information Theory, 38, 617-643. http://dx.doi.org/10.1109/18.119727</mixed-citation></ref><ref id="scirp.58144-ref4"><label>4</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Djafari</surname><given-names> M. </given-names></name>,<etal>et al</etal>. (<year>1998</year>)<article-title>Entropy in Signal Processing</article-title><source> Laboratory of Signal and System CNRS-SUPELEC-UPS</source><volume> 15</volume>,<fpage> 541</fpage>-<lpage>551</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.58144-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Mallat, S. (1991) Zero-Crossings of a Wavelet Transform. IEEE Transactions on Information Theory, 37, 1019-1033. http://dx.doi.org/10.1109/18.86995</mixed-citation></ref><ref id="scirp.58144-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Clavier, L. (1997) Analyse du signal électrocardiographique en vue du dépistage de la fibrillation auriculaire. Thèse de l’Université de Rennes I.</mixed-citation></ref><ref id="scirp.58144-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">McNames, J. (2005) Optimal Rate Filters for Biomedical Point Processes. 27th Annual International Conference of the Engineering in Medicine and Biology Society, Shanghai, 17-18 January 2006, 145-148. http://dx.doi.org/10.1109/iembs.2005.1616363</mixed-citation></ref><ref id="scirp.58144-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Belgacem, N., Chikh, M. and Reguig, F. (2003) Détection et Identification des Arythmies Cardiaques Par Application des Réseaux de Neurones. Conférence Internationale sur les Systèmes de Télécommunications d’Electronique Médicale et d’Automatique CISTEMA, Tlemcen, 27-29 September 2003, 236-239.</mixed-citation></ref><ref id="scirp.58144-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Khelil, B., Kachouri, A. and Ben Messaoud, M. (2006) Nouvelle Tendance Technologiques en Génie Electrique et Informatique. Springer, New York.</mixed-citation></ref><ref id="scirp.58144-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Pan, J. and Tompkins, W. (1985) A Real Time QRS Detection Algorithm. IEEE Transactions on Biomedical Engineering, 32, 230-236. http://dx.doi.org/10.1109/TBME.1985.325532</mixed-citation></ref><ref id="scirp.58144-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Shannon, C. and Weaver, W. (1948) The Mathematical Theory of Communication. Bell System Technical Journal, 27, 379-423, 623-656. http://dx.doi.org/10.1002/j.1538-7305.1948.tb00917.x</mixed-citation></ref><ref id="scirp.58144-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Mallat, S. and Zhong, S. (1992) Characterization of Signals from Multiscale Edge. IEEE Transactions on Pattern Analysis and Machine Intelligence, 14, 710-732. http://dx.doi.org/10.1109/34.142909</mixed-citation></ref><ref id="scirp.58144-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Moody, G.B. and Mark, R.G. (2001) The Impact of the MIT-BIH Arrhythmia Database. IEEE Engineering in Medicine and Biology Magazine, 20, 45-50. http://dx.doi.org/10.1109/51.932724</mixed-citation></ref><ref id="scirp.58144-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">QT ECG Database (1997) Massachusetts Institute of Technology. http://www.physionet.org/physiobank/database/qtdb</mixed-citation></ref><ref id="scirp.58144-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Almeida, R., Martinez, J.P., Olmos, S., Rocha, A.P. and Laguna, P. (2004) A Wavelet-Based ECG Delineator: Evaluation on Standard Databases. IEEE Transactions on Biomedical Engineering, 51, 570-581.</mixed-citation></ref></ref-list></back></article>