# ECG Sensor Verification System with Mean-Interval Algorithm for Handling Sport Issue

Authors: Kuo-Kun Tseng; Fufu Zeng; W. H. Ip; C. H. Wu
Journal: Journal of Sensors
 (2016)

---

## Abstract

With the development of biometric verification, we proposed a new algorithm and personal mobile sensor card system for ECG verification. The proposed new mean-interval approach can identify the user quickly with high accuracy and consumes a small amount of flash memory in the microprocessor. The new framework of the mobile card system makes ECG verification become a feasible application to overcome the issues of a centralized database. For a fair and comprehensive evaluation, the experimental results have been tested on public MIT-BIH ECG databases and our circuit system; they confirm that the proposed scheme is able to provide excellent accuracy and low complexity. Moreover, we also proposed a multiple-state solution to handle the heat rate changes of sports problem. It should be the first to address the issue of sports in ECG verification.


---

## Body

## 1. Introduction

Electrocardiography (ECG) was discovered at the end of the 19th century. It is the electronic activity of the human heart and became a very significant tool for the recognition of a healthy heart. A common ECG cycle is composed of five points: P, Q, R, S, and T; in other words one cycle is composed of P waves, QRS complexes, and T waves. Throughout the whole 20th century, much attention was paid to the detection, analysis, and classification of ECG [1–12]. Based on past works on ECG, such as the filtering [9], QRS and R detection [6, 10, 12], compression of the ECG signal and analysis [2, 4, 5], and especially on automatic disease classification [1, 3, 8], recognition and identification systems based on ECG are becoming more and more practical.With the development of biometric identification/verification technology, features such as fingerprint, face, iris, palm print, vein, DNA, and voice are used as the biological characteristics. Over the past ten years, the electrocardiogram as a new biological characteristic is being popularly researched. Traditional biological characteristics can easily be captured and copied, and furthermore most of them are visual, your fingerprint can be obtained easily, and voice can also be recorded, thus reducing the security of biometric identification systems. But electrocardiogram records the change in the voltage of the heart and is also a sign of life, so it can be used to detect vitality. The counterfeiting of ECGs is difficult and that and the vitality feature are the two advantages of the electrocardiogram over other biological characteristics. So the ECG has a fair unique biological characteristic, you can use it alone or in cooperation with other biological characteristics.In 2001, Biel et al. first proved that the electrocardiograph can be used in person identification. They extracted ten features from one ECG cycle and then used principle component analysis (PCA) to identify 20 individuals [13]. From then on, many identification algorithms based on ECG have been developed, including template matching and distance classification methods, which used template matching as the prescreen and distance classification as the distance algorithm to identify 50 persons, obtaining a 100% identification rate [14]; template matching and mean distance measure which extracted PR, RQ, RS, RT, PS, TS, PQ, and TQ amplitudes as the feature, using template matching with the correlation coefficient and mean distance measure on a sample of ten individuals from the MIT-BIH database, obtaining a 99% accuracy rate [15]; wavelet, where ECG data was collected from 50 individuals and the wavelet distance measure used, with a classification accuracy of 89% [16]; polynomial distance measurement (PDM), a fast and less template storage algorithm used to experiment on a population size of 15, achieving a high accuracy rate (up to 100%) [17]; independent component analysis (ICA), where wavelet transform (WT) and independent component analysis (ICA) methods were used to extract morphological features that can identify a person better, and the method was implemented on three public ECG databases, namely, the MIT-BIH Arrhythmias Database, MIT-BIH Normal Sinus Rhythm Database, and Long-Term ST Database, taking the two-lead ECG signals into account and obtaining a recognition rate of 99.6% within rank-1 [18]; Matching Pursuit (MP) and Support Vector Machine (SVM), using SVM to identify over 20 subjects and achieving a performance of 95.3% [19]; decision-based neural network (DBNN), combining the two methods of template matching and decision-based neural networks, producing 100% precision on a group of 20 subjects from the MIT-BIH Database, extracting seven features (RQ, RS, ST amplitude; QS, QT duration; RS slope; QRS triangle area) based on QRST points [20]; and some statistical methods, like frequency and rank order [21] and statistical tests (such as the Z-test, t-test, and χ2-test) [22], and so on.From the above statement, we know that extracting features is very important program for almost all of the above algorithms and that the template matching algorithm is commonly used. In fact most of these algorithms use the template matching algorithm as a prescreen method. These algorithms can be divided into two kinds: fiducial algorithms which need to detect the fiducial points (like PQRST) and extract some useful features at the beginning and nonfiducial algorithms which contain statistical methods or some transform methods (wavelet, etc.). For the fiducial algorithm, the basis is finding steady and typical features. These features are based on the PQRST points, including amplitude, segment, interval, slope, area, derivative value, and other values defined by the user. Furthermore the feature must have scalability in order to characterise a large population and stability over long time intervals [23]; for nonfiducial algorithms, some methods are used to redefine and evaluate the whole ECG wave, for example, the underlying pattern of the ECG.The development ECG hardware is not as fast as the software. The first report on ECG appeared in 1875 by Richard Caton. And the first human electrocardiogram was published by the British physiologist Augustus D. Waller in 1887. In 1895, Willem Einthoven improved the electrometer and defined the main elements (P, Q, R, S, T) of the ECG. The 2D electrocardiogram (VCG) was unveiled in 1956 by Frank. In 1989, 3D-ECG technology was invented. Now, in most of hospitals the 12-leads method and the 5-leads are used for capturing the 1D ECG signal [24]. Improving the sensitivity of the electrodes and increasing the comfort of the measurement of the ECG are the hot topics of ECG measurement in future research. For example, ECG can be measured without contacts [25] or wirelessly [26]. For the hardware of the application for identification based on the ECG, convenience and accuracy are very important factors.There have been many good algorithms for ECG identification/verification, but none has a simple and practical solution to implement ECG identification/verification on a microprocessor. So we propose one, called the mean-interval ECG verification system. In this verification system a mean-interval (MI), calculated from ten R-R intervals, is stored in advance in the flash memory of a microprocessor. The hardware circuit of the ECG capture uses two contacts methods (left hand and right hand). Our goal is to develop an ECG verification card.The verification algorithm of the system will be detailed in Section2. The circuit system design is found in Section 3. Three other algorithms compared with our algorithm are shown in Section 4. The comparison experiments between our algorithm and three other algorithms are implemented in Section 5, which also presents the real implementation results for our system. Section 6 states the conclusions.


## 2. Algorithm Design

### 2.1. Flow of the Algorithm

The system of the solution combines hardware architecture and a verification algorithm to realise personal verification based on an ECG signal. First the ECG signal is captured by the hardware, then R points are found in the signal, and finally ten R-R intervals are cut from the ECG signal to be averaged into one mean cycle. For one person, in the training stage, the mean cycle is calculated and stored in the flash memory of a microprocessor. In the verifying stage, one R-R interval is captured from the input signal and compared with the stored mean cycle (using the correlation coefficient); if the compared result is greater than 0.85 a successful verification is made; otherwise it fails. The graph of this flow is shown in Figure1.Figure 1
Flow of mean-interval algorithm.


### 2.2. Preprocessing of the ECG Signal

Various noises [27] exist in the ECG signal, such as the power frequency, baseline drift, hand motion on the contactor, electrode contact noise, and expansion degree of the muscles. These noises are classified as high frequency and low frequency. The high frequency noises are mainly in the power frequency of 50 Hz, and the low frequency ones mainly include the baseline drift of 0.06 Hz caused by breath. Since ECG verification is not doing diagnosis, we do not need to do a radical noise filtering to normalize and regularize ECG signals. From our experiment and experience, some noises might represent the user’s features. Therefore, we only filtered out the noises of high-frequency power and low frequency baseline drift.Raw ECG data sampled from our verification card is shown in Figure2(a). The sample rate is 500 Hz. Its frequency response is shown in Figure 2(c), and we can see that the power of the 0.06 Hz and 50 Hz frequencies shows a symmetry frequency distribution. A low-pass filter and a high-pass filter are applied to filter the two main noises, leaving a remaining frequency of 1.1 Hz~30 Hz. Figure 2(b) shows the filtered ECG data, and their corresponding frequency response is shown in Figure 2(d), after removing the noises of 0.6 Hz and 50 Hz. In the microprocessor, we design a 17-tap low-pass FIR filter with passband upper frequency of 6 Hz and stopband lower frequency of 30 Hz, and a 17-tap high-pass FIR filter with a corner frequency of 2 Hz. The filter coefficients of the two filters are calculated using the MATLAB Signal Processing Toolbox.Figure 2
Preprocessing of the ECG signal.
(a)
Twenty seconds of raw ECG data (b)
Five seconds of filtered ECG data (c)
Frequency response of the raw ECG data (d)
Frequency response of the filtered ECG dataAfter filtering of the raw ECG signal, one next important step in preprocessing is QRS detection or R detection. There are many ways of QRS detection, based on derivative and digital filters, wavelets, neural networks, adaptive filters, and so forth [28]. The Pan-Tompkins real-time QRS detection algorithm [29] is used in our system. The R point (red circle in the figure) detection is shown in Figure 3. The other fiducial points (Q, S, and T) can be detected near the R point. The Q may be the lowest point before the R point within a small range.Figure 3
R detection of five seconds ECG.


### 2.3. Mean-Interval Method

We designed an experiment for testing the number of cycles, used to obtain the mean-interval in the ECG verification model, to achieve a good recognition result with a low complexity of calculation. So this test takes 1 to 10 cycles of ECG data into account and is implemented on the MIT-BIH Normal Sinus Rhythm Database, with 18 healthy individuals.In preparing the data for the experimentation stage, 100 cycles are filtered out from every person. There are 60 to 100 heartbeats in one minute in common; in other words there is at least one ECG cycle in one second. Therefore we roughly use this range, 0.6 × sample rate to filter the input ECG signal, and obtain 100 ECG cycles whose length is within the length range of each person. Of course the R point must first be extracted from the ECG data, and then you can measure the length of the R-R interval and decide whether to use it or not (not in the length range).In the mean-interval method there aren normal R-R intervals of one person like S1,S2,S3,…,Sn. How to “average” and get the “mean-interval” is as follows.(1) Calculate the average length of then R-R intervals(1)μ=S1+S2+S3+⋯+Snn.In (1) Si means the length of the R-R interval Si.(2) Stretch every R-R interval to make its length equal toμ, using the ith R-R interval as an example.IfSi>μ, you should compress it, deleting one sample point at ρ intervals: (2)ρ=SiSi-μ+1.Ifμ>Si you should stretch it, inserting one sample point with a value φ between a and b at ρ intervals:(3)φ=a+b2ρ=Siμ-Si+1.Supposingα=min⁡S1,S2,S3,…,Sn⁡ and β=max⁡S1,S2,S3,…,Sn, the method of the R-R length filter makes sure that 2α≥β; in other words there is just one compress or stretch implementation in the second step.(3) Average then normal R-R interval into one “mean-interval” X with the length μ:(4)Xi=S1i+S2i+S3i+⋯+Snin.TheS1i equals the ith sample point of the 1st R-R interval, and so on. For ECG verification, using the mean-interval method mentioned above to obtain one averaged R-R interval, under a fixed heartbeat rate as the model in the training step, is called single-status MI algorithm which only considers the R-R interval within one certain heartbeat rate. But we know that the heart rate of one person will decrease slowly from 125 bpm to 60 bpm after playing sport. The wave of the ECG is stretched along with the change in the rate of the heartbeat. So we use a multiple-status MI algorithm which considers the R-R intervals of 50~125 bpm heartbeat rates. Some programs are required to realise this.(1)
Consider heartbeat rates from 50~130 bpm and use 10 bpm to segment them into 9 heartbeat rates (H=[50,60,70,80,90,100,110,120,130]), because there is just a slight change in the ECG for one person whose heartbeat rate wavers within 10 bpm.(2)
CaptureA which contains n R-R intervals whose length is nearest to the fixed length of the R-R interval of each heartbeat rate of H. If the sample rate of the raw data is ρ, then the length of the R-R interval of every heartbeat rate of H is expressed by (5)Hl=H·ρ60.(3)
InA, for every heartbeat rate of H, the averaged R-R interval is calculated from its n R-R intervals. This process is shown in Figure 4. The αij presents the jth R-R interval of Hi of one person, and βi is the mean-interval of αi1,αi2,αi3,…,αin. B denotes the multiple-status of one person for ECG verification.Figure 4
Calculation of the multiple-status.


### 2.4. Mean Cycle Model

There are two mean-interval models, starting with the averaging (SMI model) and ending with the mean-interval model (EMI model). In the SMI model,n R-R intervals are averaged to obtain one averaged R-R interval (called the mean cycle); then the verification distance between the comparing R-R interval and mean cycle is calculated. In contrast, for the EMI model, the verification distances between the n R-R intervals and the comparing R-R interval are first calculated, and then the n verification distance values are averaged to obtain the final distance.So there are two questions, one is how manyn should be set and the other is which averaging model is better for verification. We designed an experiment based on the above 18×100 R-R intervals (there are 18 persons with 100 filtered R-R intervals) and used the crossing method. We use the SMI model as an example and use n=3, so 100 R-R intervals will generate 33 mean cycles. Each cycle is compared with the mean cycle, and then a 33×100 matrix will be obtained. Figure 5 shows the diagram of the SMI model. In Figure 5 we can see that there are three layers, the first layer and the third layer denote the 100 R-R intervals and the second layer represents the 33 mean cycles (called the model). Through averaging, the first layer becomes the second layer, and then a correlation coefficient value is calculated between each cycle of the third layer and every model of the second layer. Figure 6 shows the diagram of the EMI model. There are four layers in Figure 6, the first layer and second layer denote the one hundred cycles of one person, and every three elements of the third layer, with three values (termed CC1,CC2,CC3), are the correlation coefficient values between one cycle of the second layer and n=3 cycles of the first layer. The Mi in the fourth layer is the average value of every three values in the third layer.Figure 5
Diagram of starting mean-interval method (SMI).Figure 6
Diagram of ending mean-interval method (EMI).Suppose that there is a database which containsM cycles with the same length L of one person. If the starting mean-interval method using n R-R intervals as the reference segment is applied to this database, (6) and (7) can describe the program of the experiment method of the algorithm. In these formulas, d[i] represents the ith R-R interval ECG data of one person, and d[i][j] indicates the jth value of the ith R-R interval. That is, an averaged value is calculated from the n corresponding points of the n intervals chosen as the reference segment, before averaging, and the chosen n R-R intervals must be interpolated into the same length L; (6) shows this function. So M cycles will have ⌊M/n⌋ reference cycles and the mean-interval (MI) as a model that comes from it. In (7) there is a correlation coefficient between M cycles and the ⌊M/n⌋ mean-intervals which come from the mean of the ⌊M/n⌋ reference segments. Finally, calculate the mean value of all correlation coefficient values, named the distance: (6)mean_cycleij=∑j=1L∑k=1ndi-1×n+kjn(7)distance=∑i=1M/n∑j=1Mcorrcoefdj,mean_cycleiM/n×M.The functioncorrcoef (correlation coefficient representing the similar relationship between two waves) is expressed by(8)rXY=∑i=1NXi-X-Yi-Y-∑i=1NXi-X-2∑i=1NYi-Y-2.For 18 individuals we obtain a18×33×100 value matrix, by averaging the 33×100 submatrix and obtaining 18 mean distances of self-comparison for every person, such as the comparison of one individual’s data against their remaining data; it takes the n (= 1~10) cycles as the reference segment into account; we finally obtain a 10×18 distance matrix. The mean values of the 18 distances are shown in Figures 7 and 8 within SMI and EMI methods. The horizontal axis denotes the cycle, and the vertical axis denotes the distance generated by (2).Figure 7
Comparison result of starting mean-interval method.Figure 8
Comparison result of ending mean-interval method.In Figure7, as n increases the value of the mean correlation coefficient (MIC) also increases. In particular, when the cycle number is greater than 2, the value of the mean correlation coefficient is higher than 0.9. But in Figure 8, when the cycle number increases the trend of the value of MIC is down; obviously, the MIC does not exceed 0.9.From the above comparison between Figures7 and 8, it can be seen that the starting mean-interval model (SMI model) is better than the ending mean-interval model (EMI model) in the self-comparison; in another test the results from the comparison of others are the same as those for self-comparison. From Figure 7 we can see that there is an acceptable verification result for self-comparison when n is above 3.


## 2.1. Flow of the Algorithm

The system of the solution combines hardware architecture and a verification algorithm to realise personal verification based on an ECG signal. First the ECG signal is captured by the hardware, then R points are found in the signal, and finally ten R-R intervals are cut from the ECG signal to be averaged into one mean cycle. For one person, in the training stage, the mean cycle is calculated and stored in the flash memory of a microprocessor. In the verifying stage, one R-R interval is captured from the input signal and compared with the stored mean cycle (using the correlation coefficient); if the compared result is greater than 0.85 a successful verification is made; otherwise it fails. The graph of this flow is shown in Figure1.Figure 1
Flow of mean-interval algorithm.


## 2.2. Preprocessing of the ECG Signal

Various noises [27] exist in the ECG signal, such as the power frequency, baseline drift, hand motion on the contactor, electrode contact noise, and expansion degree of the muscles. These noises are classified as high frequency and low frequency. The high frequency noises are mainly in the power frequency of 50 Hz, and the low frequency ones mainly include the baseline drift of 0.06 Hz caused by breath. Since ECG verification is not doing diagnosis, we do not need to do a radical noise filtering to normalize and regularize ECG signals. From our experiment and experience, some noises might represent the user’s features. Therefore, we only filtered out the noises of high-frequency power and low frequency baseline drift.Raw ECG data sampled from our verification card is shown in Figure2(a). The sample rate is 500 Hz. Its frequency response is shown in Figure 2(c), and we can see that the power of the 0.06 Hz and 50 Hz frequencies shows a symmetry frequency distribution. A low-pass filter and a high-pass filter are applied to filter the two main noises, leaving a remaining frequency of 1.1 Hz~30 Hz. Figure 2(b) shows the filtered ECG data, and their corresponding frequency response is shown in Figure 2(d), after removing the noises of 0.6 Hz and 50 Hz. In the microprocessor, we design a 17-tap low-pass FIR filter with passband upper frequency of 6 Hz and stopband lower frequency of 30 Hz, and a 17-tap high-pass FIR filter with a corner frequency of 2 Hz. The filter coefficients of the two filters are calculated using the MATLAB Signal Processing Toolbox.Figure 2
Preprocessing of the ECG signal.
(a)
Twenty seconds of raw ECG data (b)
Five seconds of filtered ECG data (c)
Frequency response of the raw ECG data (d)
Frequency response of the filtered ECG dataAfter filtering of the raw ECG signal, one next important step in preprocessing is QRS detection or R detection. There are many ways of QRS detection, based on derivative and digital filters, wavelets, neural networks, adaptive filters, and so forth [28]. The Pan-Tompkins real-time QRS detection algorithm [29] is used in our system. The R point (red circle in the figure) detection is shown in Figure 3. The other fiducial points (Q, S, and T) can be detected near the R point. The Q may be the lowest point before the R point within a small range.Figure 3
R detection of five seconds ECG.


## 2.3. Mean-Interval Method

We designed an experiment for testing the number of cycles, used to obtain the mean-interval in the ECG verification model, to achieve a good recognition result with a low complexity of calculation. So this test takes 1 to 10 cycles of ECG data into account and is implemented on the MIT-BIH Normal Sinus Rhythm Database, with 18 healthy individuals.In preparing the data for the experimentation stage, 100 cycles are filtered out from every person. There are 60 to 100 heartbeats in one minute in common; in other words there is at least one ECG cycle in one second. Therefore we roughly use this range, 0.6 × sample rate to filter the input ECG signal, and obtain 100 ECG cycles whose length is within the length range of each person. Of course the R point must first be extracted from the ECG data, and then you can measure the length of the R-R interval and decide whether to use it or not (not in the length range).In the mean-interval method there aren normal R-R intervals of one person like S1,S2,S3,…,Sn. How to “average” and get the “mean-interval” is as follows.(1) Calculate the average length of then R-R intervals(1)μ=S1+S2+S3+⋯+Snn.In (1) Si means the length of the R-R interval Si.(2) Stretch every R-R interval to make its length equal toμ, using the ith R-R interval as an example.IfSi>μ, you should compress it, deleting one sample point at ρ intervals: (2)ρ=SiSi-μ+1.Ifμ>Si you should stretch it, inserting one sample point with a value φ between a and b at ρ intervals:(3)φ=a+b2ρ=Siμ-Si+1.Supposingα=min⁡S1,S2,S3,…,Sn⁡ and β=max⁡S1,S2,S3,…,Sn, the method of the R-R length filter makes sure that 2α≥β; in other words there is just one compress or stretch implementation in the second step.(3) Average then normal R-R interval into one “mean-interval” X with the length μ:(4)Xi=S1i+S2i+S3i+⋯+Snin.TheS1i equals the ith sample point of the 1st R-R interval, and so on. For ECG verification, using the mean-interval method mentioned above to obtain one averaged R-R interval, under a fixed heartbeat rate as the model in the training step, is called single-status MI algorithm which only considers the R-R interval within one certain heartbeat rate. But we know that the heart rate of one person will decrease slowly from 125 bpm to 60 bpm after playing sport. The wave of the ECG is stretched along with the change in the rate of the heartbeat. So we use a multiple-status MI algorithm which considers the R-R intervals of 50~125 bpm heartbeat rates. Some programs are required to realise this.(1)
Consider heartbeat rates from 50~130 bpm and use 10 bpm to segment them into 9 heartbeat rates (H=[50,60,70,80,90,100,110,120,130]), because there is just a slight change in the ECG for one person whose heartbeat rate wavers within 10 bpm.(2)
CaptureA which contains n R-R intervals whose length is nearest to the fixed length of the R-R interval of each heartbeat rate of H. If the sample rate of the raw data is ρ, then the length of the R-R interval of every heartbeat rate of H is expressed by (5)Hl=H·ρ60.(3)
InA, for every heartbeat rate of H, the averaged R-R interval is calculated from its n R-R intervals. This process is shown in Figure 4. The αij presents the jth R-R interval of Hi of one person, and βi is the mean-interval of αi1,αi2,αi3,…,αin. B denotes the multiple-status of one person for ECG verification.Figure 4
Calculation of the multiple-status.


## 2.4. Mean Cycle Model

There are two mean-interval models, starting with the averaging (SMI model) and ending with the mean-interval model (EMI model). In the SMI model,n R-R intervals are averaged to obtain one averaged R-R interval (called the mean cycle); then the verification distance between the comparing R-R interval and mean cycle is calculated. In contrast, for the EMI model, the verification distances between the n R-R intervals and the comparing R-R interval are first calculated, and then the n verification distance values are averaged to obtain the final distance.So there are two questions, one is how manyn should be set and the other is which averaging model is better for verification. We designed an experiment based on the above 18×100 R-R intervals (there are 18 persons with 100 filtered R-R intervals) and used the crossing method. We use the SMI model as an example and use n=3, so 100 R-R intervals will generate 33 mean cycles. Each cycle is compared with the mean cycle, and then a 33×100 matrix will be obtained. Figure 5 shows the diagram of the SMI model. In Figure 5 we can see that there are three layers, the first layer and the third layer denote the 100 R-R intervals and the second layer represents the 33 mean cycles (called the model). Through averaging, the first layer becomes the second layer, and then a correlation coefficient value is calculated between each cycle of the third layer and every model of the second layer. Figure 6 shows the diagram of the EMI model. There are four layers in Figure 6, the first layer and second layer denote the one hundred cycles of one person, and every three elements of the third layer, with three values (termed CC1,CC2,CC3), are the correlation coefficient values between one cycle of the second layer and n=3 cycles of the first layer. The Mi in the fourth layer is the average value of every three values in the third layer.Figure 5
Diagram of starting mean-interval method (SMI).Figure 6
Diagram of ending mean-interval method (EMI).Suppose that there is a database which containsM cycles with the same length L of one person. If the starting mean-interval method using n R-R intervals as the reference segment is applied to this database, (6) and (7) can describe the program of the experiment method of the algorithm. In these formulas, d[i] represents the ith R-R interval ECG data of one person, and d[i][j] indicates the jth value of the ith R-R interval. That is, an averaged value is calculated from the n corresponding points of the n intervals chosen as the reference segment, before averaging, and the chosen n R-R intervals must be interpolated into the same length L; (6) shows this function. So M cycles will have ⌊M/n⌋ reference cycles and the mean-interval (MI) as a model that comes from it. In (7) there is a correlation coefficient between M cycles and the ⌊M/n⌋ mean-intervals which come from the mean of the ⌊M/n⌋ reference segments. Finally, calculate the mean value of all correlation coefficient values, named the distance: (6)mean_cycleij=∑j=1L∑k=1ndi-1×n+kjn(7)distance=∑i=1M/n∑j=1Mcorrcoefdj,mean_cycleiM/n×M.The functioncorrcoef (correlation coefficient representing the similar relationship between two waves) is expressed by(8)rXY=∑i=1NXi-X-Yi-Y-∑i=1NXi-X-2∑i=1NYi-Y-2.For 18 individuals we obtain a18×33×100 value matrix, by averaging the 33×100 submatrix and obtaining 18 mean distances of self-comparison for every person, such as the comparison of one individual’s data against their remaining data; it takes the n (= 1~10) cycles as the reference segment into account; we finally obtain a 10×18 distance matrix. The mean values of the 18 distances are shown in Figures 7 and 8 within SMI and EMI methods. The horizontal axis denotes the cycle, and the vertical axis denotes the distance generated by (2).Figure 7
Comparison result of starting mean-interval method.Figure 8
Comparison result of ending mean-interval method.In Figure7, as n increases the value of the mean correlation coefficient (MIC) also increases. In particular, when the cycle number is greater than 2, the value of the mean correlation coefficient is higher than 0.9. But in Figure 8, when the cycle number increases the trend of the value of MIC is down; obviously, the MIC does not exceed 0.9.From the above comparison between Figures7 and 8, it can be seen that the starting mean-interval model (SMI model) is better than the ending mean-interval model (EMI model) in the self-comparison; in another test the results from the comparison of others are the same as those for self-comparison. From Figure 7 we can see that there is an acceptable verification result for self-comparison when n is above 3.


## 3. Circuit System Design

The hardware architecture of this system contains two parts, a verification card and door control. In Figure9, the left part of the top section is the verification part; there are two-hand contacting dots on the card for the introduction of Lead I of the ECG. Its overall size is slightly smaller than that of a common bank card; and the other side of the top section is the door control part. This includes the controller which is a ZigBee module, just for receiving the signal and a door whose lock is connected to the controller. In the lower section of Figure 9 there are two images corresponding to the above section. As a connection interface, the wireless ZigBee module provides simple, low data traffic, but a security bridge is required between the verification card part and the door control part.Figure 9
Hardware architecture of ECG verification system.


### 3.1. Verification Card Part

The main function of the verification part is to capture the ECG signal from the human, filter and extract features for verification, and perform verification and the translation of the verification results by the ZigBee module.In the verification part, the MSP430 is chosen as the microprocessor, since it has an ultra-low power consumption feature and internal operational amplifier which must be used in the amplification of the ECG signal. Combined with the ZigBee module, a network is created between the ECG verification card and the door connected to the ZigBee module for receiving the control command. An amplifier is used for accurately capturing the ECG signal from two hands and can be disabled by the microprocessor, further saving energy.How Is the Electrocardiogram Signal Captured? There are many hardware circuits designed for the capture of ECG signals. The common medical measurement of ECG signal includes 12-leads and 5-leads. Another specialist method is the 1-lead; it is a subset of the above two methods, capturing the ECG signal from the left and right hands. We can see that the 1-lead is sufficient enough [13] and convenient for ECG verification. So we chose this measurement method for our solution.Two steps must be taken for the 1-lead method: the first step captures the voltage difference which is the weak electrical signal from the heart and the second step amplifies that weak front signal hundreds of times for the A/D function module. Figure10 shows the relationship of these function blocks. A low-pass filter or high-pass filter circuit can be set between the “OP” block and “A/D” block to filter the noise. We implement this in the microprocessor by incorporating a software filter.Figure 10
Functional blocks of ECG measurement.In the first step, in order to capture the ECG signal availably and accurately, the circuit is designed by considering some important factors:(1)
The real ECG signal is an mV signal, so it must be magnified about 1000 times. A high gain circuit is required.(2)
The ECG signal is translated from the heart to the hand, and the body has high resistance. To overcome this problem the circuit should have a high input impedance feature.(3)
Because there are various noises, especially common-mode interference, coming from the movement of the hand, temperature, and interference from other nearby electrical equipment which influences the measurement of the ECG.(4)
The heart rate of a human is 60~100 times per minute, and the frequency of the ECG signal mainly concentrates around 0.25~35 Hz. The low-pass filter can be operated by the hardware circuit or software filter. In our system the low-pass filter is implemented by the software.Taking these factors into account, the instrument amplifier with a high CMMR (should >80 dB) is chosen as the front-end amplifier. A typical circuit graph of the instrument amplifier is shown in Figure11. Its gain can be calculated by (9). Here G=5,(9)G=1+2R1RgRfR3.Figure 11
Typical circuit of instrument amplifier.In the second step, we know that the weak ECG signal should be magnified by about 1000 times and magnify 5 times in the front-end amplifier, so, in current step, further 200 times are required. The operational amplifier is used to achieve this. Because the MSP430 microprocessor itself has several operational amplifiers, the second step is implemented within it. And the final amplified ECG signal is input into its A/D function module in order to sample data.


### 3.2. Door Control Part

The door control part, with the ZigBee module, receives the control command from the verification part and controls the door obeying the command. The command set just contains the opening and closing of the door lock.The connection security between the verification card part and door control part is mature and the hardware encryption technology of the ZigBee is provided in their products.


## 3.1. Verification Card Part

The main function of the verification part is to capture the ECG signal from the human, filter and extract features for verification, and perform verification and the translation of the verification results by the ZigBee module.In the verification part, the MSP430 is chosen as the microprocessor, since it has an ultra-low power consumption feature and internal operational amplifier which must be used in the amplification of the ECG signal. Combined with the ZigBee module, a network is created between the ECG verification card and the door connected to the ZigBee module for receiving the control command. An amplifier is used for accurately capturing the ECG signal from two hands and can be disabled by the microprocessor, further saving energy.How Is the Electrocardiogram Signal Captured? There are many hardware circuits designed for the capture of ECG signals. The common medical measurement of ECG signal includes 12-leads and 5-leads. Another specialist method is the 1-lead; it is a subset of the above two methods, capturing the ECG signal from the left and right hands. We can see that the 1-lead is sufficient enough [13] and convenient for ECG verification. So we chose this measurement method for our solution.Two steps must be taken for the 1-lead method: the first step captures the voltage difference which is the weak electrical signal from the heart and the second step amplifies that weak front signal hundreds of times for the A/D function module. Figure10 shows the relationship of these function blocks. A low-pass filter or high-pass filter circuit can be set between the “OP” block and “A/D” block to filter the noise. We implement this in the microprocessor by incorporating a software filter.Figure 10
Functional blocks of ECG measurement.In the first step, in order to capture the ECG signal availably and accurately, the circuit is designed by considering some important factors:(1)
The real ECG signal is an mV signal, so it must be magnified about 1000 times. A high gain circuit is required.(2)
The ECG signal is translated from the heart to the hand, and the body has high resistance. To overcome this problem the circuit should have a high input impedance feature.(3)
Because there are various noises, especially common-mode interference, coming from the movement of the hand, temperature, and interference from other nearby electrical equipment which influences the measurement of the ECG.(4)
The heart rate of a human is 60~100 times per minute, and the frequency of the ECG signal mainly concentrates around 0.25~35 Hz. The low-pass filter can be operated by the hardware circuit or software filter. In our system the low-pass filter is implemented by the software.Taking these factors into account, the instrument amplifier with a high CMMR (should >80 dB) is chosen as the front-end amplifier. A typical circuit graph of the instrument amplifier is shown in Figure11. Its gain can be calculated by (9). Here G=5,(9)G=1+2R1RgRfR3.Figure 11
Typical circuit of instrument amplifier.In the second step, we know that the weak ECG signal should be magnified by about 1000 times and magnify 5 times in the front-end amplifier, so, in current step, further 200 times are required. The operational amplifier is used to achieve this. Because the MSP430 microprocessor itself has several operational amplifiers, the second step is implemented within it. And the final amplified ECG signal is input into its A/D function module in order to sample data.


## 3.2. Door Control Part

The door control part, with the ZigBee module, receives the control command from the verification part and controls the door obeying the command. The command set just contains the opening and closing of the door lock.The connection security between the verification card part and door control part is mature and the hardware encryption technology of the ZigBee is provided in their products.


## 4. Compared Algorithms

Four ECG verification algorithms are compared in this experiment with the same database and comparison method. The four verification algorithms are listed below.


### 4.1. Mean-Interval

From Section2, we know that the SMI model is better than the EMI model, and while the cycle is increased, the comparison of the results for self-comparison slowly improves. So we use the SMI model and choose n=10 to achieve person verification. In fact we use sample cycle (M) to improve n for practical applications. The value of sample cycle is fixed, but n is based on the number of real R-R intervals existing in the current M cycles. That is, n R-R intervals of M cycles of ECG data are averaged to one mean cycle, as the reference cycle. For equality we set M=10 (every M sample cycles) and n R-R intervals from each sample cycles. Supposing a sample rate of 500 Hz and M=5, Figure 12 shows the result of n. Because 6 R-R intervals exist within the 2500 (=M  ×  sample rate) sample points, n=6.Figure 12
Difference ofn (cycle number) and M (sample cycle number),  M=5 and n=6.


### 4.2. Wavelet

Wavelet analysis or wavelet transformation is the finite or rapid attenuation of oscillation waveform signals, which is called the mother wavelet. The waveform is zooming and panning to match the input signal. Wavelet transform has good location on the timeline and fast calculation.There are many different wavelet transforms, such as Continuous Wavelet Transforms (CWT), Discrete Wavelet Transforms (DWT), Fast Wavelet Transform (FWT), and Wavelet Packets Decomposition (WPD), and each of them is suited to different applications.The mother waveletψj,k(t) expansion and transformation can be expressed as in formula(10)ψj,kt=1kt-τk.In (10), k is a scale coefficient and τ defines the shift coefficient. The wavelet coefficient equation and inverse transform formulae are as follows:(11)Cj,k=∫-∞∞ftψj,ktdtft=∑Cj,kψj,k.The approach of achieving ECG verification uses Wavelet transform processing [16] for our comparison and first performs R detection for ECG Wavelet analysis to obtain each R-R cardiac interval. After that it performs a cutting method on the R-R intervals to conduct R-R width adjustment to fit a single new cycle with 128 points. The cutting method for a R-R interval cuts 85 points from the beginning of the interval and 43 points from the end of the interval. This is shown in Figure 13. Then 4 R-R intervals are cut into four new cycles with 512 points. Finally, it applies the Wavelet transform for multiple layers processing to obtain the Wavelet coefficients, which is a new sequence of wavelet coefficients as given in(12)X′=an+dn+dn-1+⋯+d1.Figure 13
Segmentation method in R-R interval.IfX′ and Y′ are two different Wavelet coefficients, verification can be estimated by a suitable distance formula d(X′,Y′).In practice, 10 layers’ processing of the Wavelet transform is implemented on 512 sample points, sampled from 4 R-R intervals by the segmentation method. At last the verification bases on the Euclidean distance as the distance formula shown in(13)dX,Y=∑i=1nXi-Yi2.


### 4.3. Waveform

Waveform-based algorithms are a representation of the ECG waveform feature, and these features are used for verification. Since a statistical approach is used to obtain these waveform features, sometimes they are also called statistical algorithms in other literatures.Their general operational procedure is as follows. Firstly, after ECG-collection high- and low-pass filtering are used for early preprocessing, then various methods are used to extract the characteristic points of these waveforms, such as points P, Q, R, S, and T among the ECG signals. On the basis of their features, relative representations are extracted to compose proper individual features, such as amplitude, duration, and slope and area. The extraction of feature points and values is shown in Figure14. There are four kinds of verification feature:(1)
Amplitude: PQ, RQ, TQ, RT, PS, RP, TS, RS, PT, QS.(2)
Duration: QS, PR, QR, ST, QT.(3)
Slope: RS, ST and QR.(4)
Area: QRS triangle area.Figure 14
Extracted features from one cycle.After obtaining some waveform features for the individual differences, a similarity algorithm is applied to evaluate the differences between two individuals.


### 4.4. Reduced Binary Pattern

This algorithm uses the frequency and rank order statistics of the underlying pattern of the input ECG data [30]. Such data exists in serial S={s1,s2,s3,…,sn}, consider(14)Xi=1si+1>si0si+1≤si.So, through (14), S is translated to X containing 0/1 bit, and n-1 in length. From the first number in X,  m sequential numbers compose an m-bit-word number. Then by shifting one by one, finally a new serial Y of n-m in length is created from X. And the value of the number in Y is between 1~2m-1. Then the frequency and rank order statistic method is implemented on Y.


## 4.1. Mean-Interval

From Section2, we know that the SMI model is better than the EMI model, and while the cycle is increased, the comparison of the results for self-comparison slowly improves. So we use the SMI model and choose n=10 to achieve person verification. In fact we use sample cycle (M) to improve n for practical applications. The value of sample cycle is fixed, but n is based on the number of real R-R intervals existing in the current M cycles. That is, n R-R intervals of M cycles of ECG data are averaged to one mean cycle, as the reference cycle. For equality we set M=10 (every M sample cycles) and n R-R intervals from each sample cycles. Supposing a sample rate of 500 Hz and M=5, Figure 12 shows the result of n. Because 6 R-R intervals exist within the 2500 (=M  ×  sample rate) sample points, n=6.Figure 12
Difference ofn (cycle number) and M (sample cycle number),  M=5 and n=6.


## 4.2. Wavelet

Wavelet analysis or wavelet transformation is the finite or rapid attenuation of oscillation waveform signals, which is called the mother wavelet. The waveform is zooming and panning to match the input signal. Wavelet transform has good location on the timeline and fast calculation.There are many different wavelet transforms, such as Continuous Wavelet Transforms (CWT), Discrete Wavelet Transforms (DWT), Fast Wavelet Transform (FWT), and Wavelet Packets Decomposition (WPD), and each of them is suited to different applications.The mother waveletψj,k(t) expansion and transformation can be expressed as in formula(10)ψj,kt=1kt-τk.In (10), k is a scale coefficient and τ defines the shift coefficient. The wavelet coefficient equation and inverse transform formulae are as follows:(11)Cj,k=∫-∞∞ftψj,ktdtft=∑Cj,kψj,k.The approach of achieving ECG verification uses Wavelet transform processing [16] for our comparison and first performs R detection for ECG Wavelet analysis to obtain each R-R cardiac interval. After that it performs a cutting method on the R-R intervals to conduct R-R width adjustment to fit a single new cycle with 128 points. The cutting method for a R-R interval cuts 85 points from the beginning of the interval and 43 points from the end of the interval. This is shown in Figure 13. Then 4 R-R intervals are cut into four new cycles with 512 points. Finally, it applies the Wavelet transform for multiple layers processing to obtain the Wavelet coefficients, which is a new sequence of wavelet coefficients as given in(12)X′=an+dn+dn-1+⋯+d1.Figure 13
Segmentation method in R-R interval.IfX′ and Y′ are two different Wavelet coefficients, verification can be estimated by a suitable distance formula d(X′,Y′).In practice, 10 layers’ processing of the Wavelet transform is implemented on 512 sample points, sampled from 4 R-R intervals by the segmentation method. At last the verification bases on the Euclidean distance as the distance formula shown in(13)dX,Y=∑i=1nXi-Yi2.


## 4.3. Waveform

Waveform-based algorithms are a representation of the ECG waveform feature, and these features are used for verification. Since a statistical approach is used to obtain these waveform features, sometimes they are also called statistical algorithms in other literatures.Their general operational procedure is as follows. Firstly, after ECG-collection high- and low-pass filtering are used for early preprocessing, then various methods are used to extract the characteristic points of these waveforms, such as points P, Q, R, S, and T among the ECG signals. On the basis of their features, relative representations are extracted to compose proper individual features, such as amplitude, duration, and slope and area. The extraction of feature points and values is shown in Figure14. There are four kinds of verification feature:(1)
Amplitude: PQ, RQ, TQ, RT, PS, RP, TS, RS, PT, QS.(2)
Duration: QS, PR, QR, ST, QT.(3)
Slope: RS, ST and QR.(4)
Area: QRS triangle area.Figure 14
Extracted features from one cycle.After obtaining some waveform features for the individual differences, a similarity algorithm is applied to evaluate the differences between two individuals.


## 4.4. Reduced Binary Pattern

This algorithm uses the frequency and rank order statistics of the underlying pattern of the input ECG data [30]. Such data exists in serial S={s1,s2,s3,…,sn}, consider(14)Xi=1si+1>si0si+1≤si.So, through (14), S is translated to X containing 0/1 bit, and n-1 in length. From the first number in X,  m sequential numbers compose an m-bit-word number. Then by shifting one by one, finally a new serial Y of n-m in length is created from X. And the value of the number in Y is between 1~2m-1. Then the frequency and rank order statistic method is implemented on Y.


## 5. Experiment

We have introduced four algorithms used for verification in Section4. In the current section an experiment is designed to conduct a comparison between the four algorithms. For equality, a cross comparison method is applied to the experiments. Meanwhile, for completeness, two public MIT-BIH ECG databases, MIT-BIH Arrhythmia and Normal Database, are adopted as input data for the experiments.


### 5.1. Experiment Data

Two ECG databases are used in our experiment:(1)
MIT-BIH Arrhythmia Database [31]: the BIH Arrhythmia Laboratory was built between 1975 and 1979. The data selected is 48 groups, within two-lead ECG data recordings of half an hour, a total of up to 24 hours of ECG data. It contains 47 personal ECG data (201 groups and 202 groups of ECG data coming from the same person), the subjects are 25 men with ages ranging from 32 to 89 years and 22 women with ages from 23 to 89 years, in which close to 60% of the 47 subjects are hospitalised patients.(2)
MIT-BIH Normal Sinus Rhythm Database [32]: this database contains 18 long-term ECG recordings; these people are found to have no significant arrhythmias. The subjects include 5 men, aged 26 to 45, and 13 women, aged 20 to 50. The ECG signal sampling rate is 128 Hz. The data storage format for 12 bits of binary representation is known as “212” format, in which there is a sign bit.From the above description we know there are 65 subjects. According to the data requirement of the experimental method, eight groups, containing ten sample cycles (10 seconds) of data, are cut from each person. UseSij (1≤i≤65,  1≤j≤8) to represent the ith group of ECG data from the jth person.


### 5.2. Experimental Method

This experiment uses the cross comparison method, if making a comparison with a cross self-comparison should be made between the 8 groups of data from one person; if comparing with others, conduct a mutual comparison between the 8 groups of data from one person and the 8 groups from the other person. We use the average distance to represent the final distance of the two individuals, so a division will be operated after an addition of the 64 distance values.The experimental method can be described as [14](15)DSp,Sq=1mp·mq∑i=1mp∑j=1mqdSpi,Sqj.In formula (9), Spi and Sqj denote, respectively, the ith, jth groups of data from pth and qth individuals (1≤p,q≤65 and 1≤i,j≤8). DSp,Sq calculates the average distance between the pth and qth person. Furthermore, the dSpi,Sqj works as the verification distance between the two groups of ECG dates by the verification algorithms.


### 5.3. Experiment Result

We apply the four verification algorithms and the experimental method to the two MIT-BIH databases mentioned above. The mean-interval (MI) algorithm, for example, is implemented on the MIT-BIH Arrhythmia Database, for which a47×47 results’ table is generated; the comparison results of self-comparison lie on the diagonal line of the table, and the other cells of the table identify the value of comparison with others. A section (8 persons) of the results table is shown in Table 1.Table 1
Comparison results of 8 people.
Number 1 2 3 4 5 6 7 8 Data file name 100.dat 101.dat 102.dat 103.dat 104.dat 105.dat 106.dat 107.dat 1 100.dat 0.995739 0.040959 0.025142 0.091299 - 0.15982 0.011561 0.014194 0.024176 2 101.dat 0.042074 0.991551 - 0.09187 0.05923 - 0.04554 - 0.0517 0.016271 0.120851 3 102.dat 0.021244 - 0.07092 0.972407 - 0.15169 - 0.0293 0.065066 - 0.03552 - 0.02223 4 103.dat 0.070864 0.049626 - 0.14143 0.99771 - 0.08191 0.07528 0.046861 0.015396 5 104.dat - 0.21247 - 0.06998 0.009141 - 0.09159 0.94894 0.041129 0.006288 - 0.05862 6 105.dat - 0.00549 - 0.06269 0.060439 0.0534 0.084114 0.992397 0.034648 - 0.06725 7 106.dat 0.043187 0.066068 - 0.05331 0.058882 - 0.04081 0.05672 0.952014 - 0.05169 8 107.dat 0.009627 0.149587 - 0.04291 0.026265 - 0.06453 - 0.04472 - 0.04213 0.984541From Table1 we can see that the value of the numbers lying on the diagonal is larger than the others in the same row of the table, and most of them are close to 0.99. It also proves that one person has a high similarity to themselves. In contrast, the value of the comparison with others is very small, some even negative, denoting a negative relationship. The larger the gap between the values of the diagonal and the others value, the simpler it is to distinguish self-comparison from the others. Suppose that there is an error, when a value lying on the diagonal is smaller than the others that lie on the same row. Using this rule, we can statistically determine the success rate of the four algorithms. Table 2 shows the success rate of the four algorithms.Table 2
The success rate of the four algorithms.
Algorithm Success rate Wavelet 95.7447% RBP 95.656% Waveform 99.3351% Mean-interval (MI) 100%Table2 shows that the success rates of all four algorithms that are greater than 95%, and the mean-interval (MI) algorithm has the best success rate of 100% of all four algorithms. So it is a useful and effective method for personal verification based on ECG. But we must consider that the mean-interval algorithm using the correlation coefficient, which simply evaluates the similarity or the waviness of two waves and disregards the specific values. This weak point will introduce some issues of safety. Even with that shortcoming, the MI algorithm is sufficient for our verification system.


### 5.4. Sport Issue

We know that there are big changes in the heart rate after the sport. This will seriously disturb the person’s verification based on their ECG signal, so the sport problem is more important than the long-term problem in ECG verification. Figure15 shows the electrocardiograms of one person with different heart rates. There are two main changes taking place; one is that the baseline seriously shifts due to the deeper breaths taken after sport; the other is that the heart rate of the person becomes higher due to accelerated heart action.Figure 15
R-R intervals of different heartbeat rates of one person.From the measurement of the ECG after sport, the heart rate waves near a special number, like 60 or 55, in the resting state; and when you take exercise within 3 minutes the heart rate quickly increases to 100; within 5 minutes or more the heart rate slowly begins increasing to 120, finally it will stand near 125. There are 10 individuals, including 1 female and 9 males, in the sport ECG database. The FreeScale ECG board is used to measure all subjects for five minutes in the resting state and five minutes after his/her sport.To conquer the issue of the sport heart rate, we use the multiple-state MI algorithm. We use resting and sport’s data to train the system and then test it with the only the sport data. For comparison, the single-state MI algorithm is also implemented on this sport ECG database. Table3 shows the verification results of the two algorithms. The multiple-state MI has much better performance than the original single-state algorithms.Table 3
Sport verification results.
MI algorithm FR FA Average Single-state 0.1407 0.2573 0.398 Multiple-state 0.0915 0.0750 0.1665


## 5.1. Experiment Data

Two ECG databases are used in our experiment:(1)
MIT-BIH Arrhythmia Database [31]: the BIH Arrhythmia Laboratory was built between 1975 and 1979. The data selected is 48 groups, within two-lead ECG data recordings of half an hour, a total of up to 24 hours of ECG data. It contains 47 personal ECG data (201 groups and 202 groups of ECG data coming from the same person), the subjects are 25 men with ages ranging from 32 to 89 years and 22 women with ages from 23 to 89 years, in which close to 60% of the 47 subjects are hospitalised patients.(2)
MIT-BIH Normal Sinus Rhythm Database [32]: this database contains 18 long-term ECG recordings; these people are found to have no significant arrhythmias. The subjects include 5 men, aged 26 to 45, and 13 women, aged 20 to 50. The ECG signal sampling rate is 128 Hz. The data storage format for 12 bits of binary representation is known as “212” format, in which there is a sign bit.From the above description we know there are 65 subjects. According to the data requirement of the experimental method, eight groups, containing ten sample cycles (10 seconds) of data, are cut from each person. UseSij (1≤i≤65,  1≤j≤8) to represent the ith group of ECG data from the jth person.


## 5.2. Experimental Method

This experiment uses the cross comparison method, if making a comparison with a cross self-comparison should be made between the 8 groups of data from one person; if comparing with others, conduct a mutual comparison between the 8 groups of data from one person and the 8 groups from the other person. We use the average distance to represent the final distance of the two individuals, so a division will be operated after an addition of the 64 distance values.The experimental method can be described as [14](15)DSp,Sq=1mp·mq∑i=1mp∑j=1mqdSpi,Sqj.In formula (9), Spi and Sqj denote, respectively, the ith, jth groups of data from pth and qth individuals (1≤p,q≤65 and 1≤i,j≤8). DSp,Sq calculates the average distance between the pth and qth person. Furthermore, the dSpi,Sqj works as the verification distance between the two groups of ECG dates by the verification algorithms.


## 5.3. Experiment Result

We apply the four verification algorithms and the experimental method to the two MIT-BIH databases mentioned above. The mean-interval (MI) algorithm, for example, is implemented on the MIT-BIH Arrhythmia Database, for which a47×47 results’ table is generated; the comparison results of self-comparison lie on the diagonal line of the table, and the other cells of the table identify the value of comparison with others. A section (8 persons) of the results table is shown in Table 1.Table 1
Comparison results of 8 people.
Number 1 2 3 4 5 6 7 8 Data file name 100.dat 101.dat 102.dat 103.dat 104.dat 105.dat 106.dat 107.dat 1 100.dat 0.995739 0.040959 0.025142 0.091299 - 0.15982 0.011561 0.014194 0.024176 2 101.dat 0.042074 0.991551 - 0.09187 0.05923 - 0.04554 - 0.0517 0.016271 0.120851 3 102.dat 0.021244 - 0.07092 0.972407 - 0.15169 - 0.0293 0.065066 - 0.03552 - 0.02223 4 103.dat 0.070864 0.049626 - 0.14143 0.99771 - 0.08191 0.07528 0.046861 0.015396 5 104.dat - 0.21247 - 0.06998 0.009141 - 0.09159 0.94894 0.041129 0.006288 - 0.05862 6 105.dat - 0.00549 - 0.06269 0.060439 0.0534 0.084114 0.992397 0.034648 - 0.06725 7 106.dat 0.043187 0.066068 - 0.05331 0.058882 - 0.04081 0.05672 0.952014 - 0.05169 8 107.dat 0.009627 0.149587 - 0.04291 0.026265 - 0.06453 - 0.04472 - 0.04213 0.984541From Table1 we can see that the value of the numbers lying on the diagonal is larger than the others in the same row of the table, and most of them are close to 0.99. It also proves that one person has a high similarity to themselves. In contrast, the value of the comparison with others is very small, some even negative, denoting a negative relationship. The larger the gap between the values of the diagonal and the others value, the simpler it is to distinguish self-comparison from the others. Suppose that there is an error, when a value lying on the diagonal is smaller than the others that lie on the same row. Using this rule, we can statistically determine the success rate of the four algorithms. Table 2 shows the success rate of the four algorithms.Table 2
The success rate of the four algorithms.
Algorithm Success rate Wavelet 95.7447% RBP 95.656% Waveform 99.3351% Mean-interval (MI) 100%Table2 shows that the success rates of all four algorithms that are greater than 95%, and the mean-interval (MI) algorithm has the best success rate of 100% of all four algorithms. So it is a useful and effective method for personal verification based on ECG. But we must consider that the mean-interval algorithm using the correlation coefficient, which simply evaluates the similarity or the waviness of two waves and disregards the specific values. This weak point will introduce some issues of safety. Even with that shortcoming, the MI algorithm is sufficient for our verification system.


## 5.4. Sport Issue

We know that there are big changes in the heart rate after the sport. This will seriously disturb the person’s verification based on their ECG signal, so the sport problem is more important than the long-term problem in ECG verification. Figure15 shows the electrocardiograms of one person with different heart rates. There are two main changes taking place; one is that the baseline seriously shifts due to the deeper breaths taken after sport; the other is that the heart rate of the person becomes higher due to accelerated heart action.Figure 15
R-R intervals of different heartbeat rates of one person.From the measurement of the ECG after sport, the heart rate waves near a special number, like 60 or 55, in the resting state; and when you take exercise within 3 minutes the heart rate quickly increases to 100; within 5 minutes or more the heart rate slowly begins increasing to 120, finally it will stand near 125. There are 10 individuals, including 1 female and 9 males, in the sport ECG database. The FreeScale ECG board is used to measure all subjects for five minutes in the resting state and five minutes after his/her sport.To conquer the issue of the sport heart rate, we use the multiple-state MI algorithm. We use resting and sport’s data to train the system and then test it with the only the sport data. For comparison, the single-state MI algorithm is also implemented on this sport ECG database. Table3 shows the verification results of the two algorithms. The multiple-state MI has much better performance than the original single-state algorithms.Table 3
Sport verification results.
MI algorithm FR FA Average Single-state 0.1407 0.2573 0.398 Multiple-state 0.0915 0.0750 0.1665


## 6. Conclusions

We have proposed a new algorithm and mobile circuit system for ECG verification. An effective verification algorithm is implemented on this system providing a feasible application. The hardware is designed for consideration of low power consumption and the convenience of a wireless network. We designed an operational solution to overcome the issue of ECG verification. In the evaluation, the accuracy of the MI algorithm is better than in previous algorithms. Next, we also proposed a multiple-state MI algorithm to handle the issue of the heart rate after sport. In the evaluation, it truly presents better performance than the original MI, with 23.15% for sport testing. Finally, if the sport issue can be resolved for ECG verification, it might also be a feasible tool for biometric verification systems.



---

*Source: 1814264-2016-06-12.xml*