Escolar Documentos
Profissional Documentos
Cultura Documentos
Fig.1 The system flowchart of the proposed ECG intelligent 2.2. Microcontrol unit(MCU)
monitoring system.
A high-performace12-bit analog-to-digital converter
embedded on the microcontroller(MSP430F2618), the
2. HARDWARE DESIGN
ADC12 module, is used to convert the ECG signal
coming from the front end circuit. The principle of
A block schematic of the system is shown in Fig.2. The
ADC12 module is shown in Fig.3. The ECG signal is
system is divided into the following three parts:
sampled at 512Hz and the ADC12 module works at
single-channel, single-conversion mode. The internal
2.5V is chose as voltage reference. The results of the
conversation are sent to RAM through the channel of
DMA0 controlled by the DMA controller without CPU
intervention. DMA controller can reduce system power
consumption by allowing the CPU to remain in
LPM3(low-power mode 3) mode without having to
awaken to move data to the specified RAM address, the
working current is less than 0.6 μA. The system can
reduce the consumption accordingly. The system is
expected to perform up to approximately 5 ECG cycles
Fig.2 The block diagram of system
every 4 seconds, which is enough for the arrhythmia
diagnosis purpose(see Section 3.3 3rd paragraph, the
PVC logic judge method need at least 3 continuous QRS
Front end circuit: The ECG signal is detected from V1
complex ). All the analysis operations are done with the
lead, then amplified and filtered in this part.
current 515μA. The ultra-low-power design reduces
Microcontroller unit (MCU): MSP430 microcontroller
power consumption.
is 16-bit, RISC-based and mixed-signal processors
designed specifically for ultra-low-power applications
215
standard 2-ware I2C communications. The calculated
heart rate is refreshed every 4 seconds, the same to the
ECG waveform refreshing rate.
In this user-oriented system, users may input the phone
number they need to the system with the matrix keyboard
as user interface, this capability enables users choose the
one who do the first aid easily. The phone number then is
written into the flash memory in case of the lost after
Fig.3 ADC12 Module
power off. The users can choose whether modify the
phone number or not, and input the phone number
2.3. Peripheral components conveniently when the system power on.
When the heart attack occur, the precise location of the
Peripheral components consist of dot matrix LCD, patient can be achieved by our Global Positioning System
segment LCD, matrix keyboard, GPS, GSM/WCDMA, (GPS) module, it detects the latitude and longitude of the
and Buzzer. In the system Matrix keyboard is employed patient and then the format of the location information is
to set telephone number. Buzzer is used to issue the alarm. converted to the standard format which can be used for
The dot matrix LCD and the segment LCD are adopted to searching the location on Google Map on Internet. The
display different data. For instance, the wave shape of the GPS module communicates with the MCU in UART
ECG is shown with the dot matrix LCD. The segment mode of the USCI_A2 and the location information is
LCD displays the heart rate. added to the message which can be sent to the one who
give the first aid.
GSM/WCDMA module allows two tasks to be
performed: send English message including the heart rate,
diagnostic symptom and the location information of the
patient to alarm; send Chinese message including what
mentioned above to alarm. We use the EM310
GSM/WCDMA module made in HuaWei Company to
communicate with the MCU in UART mode of the
USCI_A1.
In order to prevent the patient movement and other
factors that affect a false detection after initialization and
the too-frequent alarming messages, we designed the state
machine of the system ensure that messages are sent every
7 minutes roughly. Fig.5 provides an illustration of a state
machine of an alarming message sending process when
the patient diagnosed PVC. For example, the system starts
in S0 state in normal circumstances, when the patient has
PVC, the state transfers to S1. S1 state and S2 state are
Fig.4 LCD Operation Flowchart
wait states that prevent the misdiagnosis. Then the state
The dot matrix LCD screen LM240160GCW we used transfers to S3 state once the confirmation is obtained.
can show 240×160 dot matrix data, so all the wave shape English message or Chinese message is sent to alarm.
of ECG signal monitored in 4 seconds can be displayed. After sending the message, the state will be in S4 state for
The software flowchart of LCD display is shown in Fig.4. 7 minutes then go back to the S0 state. This ensures
A useful innovation in the LCD module of the system is messages are sent every 7 minutes roughly.
frame by frame display. This enables the time of data
displayed each frame to be precisely controlled by the
time of sampling, regardless of the display speed of the
LCD screen. The adjustable display backlighting
controlled by the manual pushbutton is designed to reduce
electricity consumption of the dot matrix LCD. The
information of the system and the hints of the operating of
matrix keyboard can be showed on the LCD screen by
communicating with GT23L32S4W with SPI protocol. It
provides the doctor a way to examine the ECG signal
when making a visit to the patient and user to check the
electrodes. Fig.5 State Machine Of PVC
The segment LCD we used to display the real-time
heart rate has one LCD driver BU9796FS with a lower
operating voltage range, 200 bit memory space and the
216
3. SOFTWARE DESIGN multiply accumulate operations. After decimal integer
computation and results correction, we use it to complete
the wavelet filtering and reconstruction for high speed of
3.1. CDF9/7 Wavelet Filter data processing.
Fig.6 shows the Wavelet Filtering and Reconstruction
The CDF9/7 wavelet filter, a lifting algorithm of of the measured ECG signal. The blue line represents the
biorthogonal wavelet construction which proposed by I ECG waveform coming from the ADC12 module while
Daubechies and W Sweldens in 1998[13], was used as the red one represents the corresponding waveform after
digital filter to denoise in the system. wavelet filtering and reconstruction by the hardware
When use the majority of other wavelets, FFT multiplier, indicating that high-frequency noise is
transform must be done which include convolution eliminated effectively.
operation, it needs considerable calculation time. Taking
the hardware application convenient advantage into
account, the CDF9/7 wavelet filter are superior in terms
of computation amount, memory space, complexity to
other wavelet filters because the calculation is in time
domain. The situ calculation can be achieved in the
computing process and the operation process only
includes simple multiplication and addition. Also it can
avoid delay processing. It is optimal for reducing muscle
noise, baseline wander and motion artifacts while
retaining the ECG waveform characteristics. x2l is the Fig.6 Wavelet Filtering And Reconstruction Of Measured ECG
even point and x2l+1 is the odd point of the input signal, Signal
so sl and dl are the wavelet coefficients. The factorization
leads to the wavelet coefficients:
3.2. R-wave Detection and Heart Rate Calculation
sl (0) x2l (1)
° (0)
°dl x2l 1
A new real-time R-wave detection algorithm based on
° (1)
d
° l d l
(0)
D ( sl (0) sl 1(0) ) integral projection function is designed and tested with
°s (1)
sl E (dl (1) d l 1(1) )
(0)
° l good results [14]. The algorithm is used for detection with
® (2)
°dl dl (1) J ( sl (1) sl 1(1) ) the advantage of low possession of hardware resources,
° s (2) s (1) G (d (2) d (2) ) high detection accuracy, and high running speed.
° l l l l 1
° s ] s (2) The determination of threshold is the difficulty in this
° l l
algorithm. The ECG signal is different from men to men,
°¯dl dl (2) ]
even the waveform of same person at different period of
The CDF9/7 lifting coefficients, 10 valid figures was time is not stable. Therefore, the threshold with dynamic
kept. They are as follows: adaptability is developed in the algorithm. Otherwise it
D 1.586134342
will create the false alarms of R-wave and lead to
°E 0.05298011854
°° diagnostic errors.
® J 0.8829110762 (2) The algorithm consists of four consecutive stages, these
° G 0.4435068522
° stages are, in order, RR interval (the time of two adjacent
°¯ ] 1.149604398 heartbeats) estimation and segment selection, extreme
The algorithm performs decomposition, filter, and detection, threshold determination, and R-wave detection
reconstruction procedures. The wavelet decomposition [14]. The maximum found in an RR interval includes the
coefficients are obtained through odd-even separation, peak of R[14]. The points and amplitude segment
interpolation prediction and updating. Because the noise histogram depending on the distribution of maximum
signal is not continuous in the time domain and usually points is produced. There is no extreme value distribution
high-frequency, the noise corresponds to most of the between the R-wave peak and the adjacent non-R-wave
small coefficients in high-frequency after wavelet peak which represents a relatively smooth curve. The
transforming. The ECG signal is decomposed to three- extreme points that distribute after the zero distribution
layer wavelet, then the threshold is used to find the high- may be the R-wave according the set of thresholds[14].
frequency signal in each layer, then the coefficients less Since the integral projection function and its curve change
than the threshold each layer are removed. Finally, after with the ECG signal, the thresholds are automatically
reconstruction layer by layer we obtain the filtered ECG adjusted to float over the noise in the algorithm [14]. The
signal. algorithm has real-time adaptive property and it only
The hardware multiplier is a 16-bit peripheral which needs a small size memory.
support 16 bit multiplication connected to CPU through When the continuous 4 seconds’ R-peaks’ number is
the internal bus, its activities do not interface with the obtained, the heart rate is calculated through 4 seconds
CPU activities. It supports unsigned multiply, signed divided by the R-peaks’ number. According to the system
multiply, unsigned multiply accumulate and signed
217
data refreshing rate, it is calculated every 4 seconds and 4. EXPERIMENTAL RESULTS
displayed on the segment LCD screen.
To verify the performances of the system, twenty health
3.3. Arrhythmia Diagnosis Algorithm people with different ages were tested using the system.
The results of test of healthy subjects showed that the
The clinician is guided by a period of observation of system is of relatively high intelligence, high speed and
the ECG waveform in accordance with the relevant operated reliability. The real-time ECG signal waveform
experience to determine the patient's condition. To and heart rate of a healthy people are shown in Fig.9.
analyze the ECG signal and make a diagnosis in
intelligent diagnosis of cardiac arrhythmia, we mainly do
the logic judgment according to the doctor's clinical
experience to identify arrhythmias of patients. The ECG
automatic analysis system is shown in Fig.7.
Fig.8 Arrhythmia Evaluation Flow Chart Fig.11 R-wave detection result for the MIT/BIH Arrhythmia
Database Nos.119
218
Table ĉ shows the R-wave detection results of the 6. ACKNOWLEDGMENT
recordings from the MIT/BIH database. Out of the 19166
beats used for evaluation, the algorithm responded with This work is jointly supported by National Natural
an accuracy of 98.8%. FP, a false positive, represents a Science Foundation of China (No.61175012& 61201421),
false beat detection; FN, a false negative, occurs when the Natural Science Foundation of Gansu Province (No.
algorithm fails to detect a true beat (actual R-wave). 1208RJZA265), Specialized Research Fund for the
Doctoral Program of Higher Education of China
TABLE I (No.20110211110026). The authors express the sincere
R-WAVE TEST RESULT thanks to all the volunteers in performing the
Data Total FP FN Failed Failed
(No.) (No. (Beats) (Beats) Detection Detection
experimental experiments.
Beats) (Beats) (%)
100 2273 0 0 0 0 REFERENCES
101 1865 4 0 4 0.21
105 2572 19 51 70 2.72 [1] World Health Organizationin collaboration with the World Heart
106 2027 24 124 148 7.30 Federation and the World Stroke Organization, “Global Atlas on
112 2539 0 13 13 0.51 cardiovascular disease prevention and control,”World Health
113 1795 0 0 0 0 Organization,Geneva,2011.Available:http://whqlibdoc.who.int/publicati
115 1953 0 0 0 0 ons/2011/9789241564373_eng.pdf.
230 2256 2 2 4 0.17 [2] Min-Huei Hsu, Tu-Bin Chu, Ju-Chuan Yen, Wen-Ta Chiu, Geng-
231 1886 3 0 3 0.15 Chang Yeh, Tzay-Jinn Chen, Yen-Jen Sung, Jack Hsiao, and Yu-Chuan
Total 19166 52 190 242 1.2 (Jack) Li, “Development and implementation of a national telehealth
project for long-term care: A preliminary study,” Computer Methods
and Programs in Biomedicine, vol. 97, iss. 3, pp. 286-292 , March.
The system shows a good sensitivity in detecting and 2010.
identifying the disease occurrence in the presence of a [3] Thomas Hilbel,Thomas M. Helms, Gerd Mikus, Hugo A.
deviation above 8%. The PVC beats has been singled out Katus, and Christian Zugck, “Telemetry in the clinical setting,” 2008;
from the MIT/BIH database, put into the system and vol.19,no,3,pp.146-54. DOI:10.1007/s00399-008-0017-2.
checked the diagnosis sensitivity. Make a comparison [4] Ebrahim Nemati,M. Jamal Deen, and Tapas Monda. “A Wireless
beat by beat with the diagnosis remarks by the experts in Wearable ECG Sensor for Long-Term Applications,”Communications
Magazine, vol. 50, iss. 1, pp. 36-43 ,January. 2012.
the MIT/BIH database[15], the overall percentages of [5] Sung-Yuan Ko,Kang-Min Wang,Wei-Cheng Lian, and Chun-
correct detection and identification are equal to 92.1%. Heng Kao. “A Portable ECG Recorder,”Consumer
CD, correct detection beats of the PVC beats. Table Ċ Electronics,Communications and Networks(CECNet),2012 2nd
International Conference on,vol., no., pp.3063-3067, 21-23,April. 2012.
shows the summary of results of PVC detection of the
[6] Zeli Gao, Jie Wu, Jianli Zhou, Wei Jiang, and Lihui Feng.
recordings from the MIT/BIH database. “Design of ECG signal acquisition and processing system,”Biomedical
Engineering and Biotechnology(iCBEB),2012 Internationl Conference
TABLE II on, vol., no., pp.762-764, 28-30,May. 2012.
PVC TEST RESULT [7] Hailong Jin, and Bing Miao. “Design of Holter ECG System
Data Total PVC CD CD Based on MSP430 and USB Technology,”Bioinformation and
(No.) (No. Beats) (Beats) (%) Biomedical Engineering,2007.ICBBE 2007.The 1st International
105 41 32 78.0 Conference on, vol., no., pp.976-979, 6-8,July. 2007.
106 520 476 91.5 [8] Tang Yawei,Jiang Kai,Fu Xiuquan, and Li Dingli, “Low Power
109 38 35 92.1 dual-core Holter Systerm Based on MSP430 and ARM7,”
119 444 405 91.2 Bioinformatics and Biomedical Engineering , 2009. ICBBE 2009. 3rd
230 1 1 100 International Conference on, vol., no., pp.1-3, 11-14 June. 2009.
231 2 2 100 [9] Hong Ming , Zhang Yajun, and Hu Xiaoping, “Portable ECG
Total 1046 951 92.1 Measurement Device based on MSP430 MCU,” BioMedical
Engineering and Informatics, 2008. BMEI 2008. International
Conference on, vol. 2, no., pp.667-671, 27-30 May. 2008.
5. CONCLUSION [10] Texas Instruments, MSP430TM Ultra-Low-Power
Microcontrollers. [Online].
Available: http://www.ti.com/lit/sg/slab034v/slab034v.pdf
An ECG intelligent monitoring system on MSP430 is [11] Texas Instruments, Low-Power, Single-Supply, CMOS
designed to provide real-time ECG detection and INSTRUMENTATION AMPLIFIERS. [Online].
diagnosis of heart abnormalities function. The proposed Available: http://www.ti.com.cn/cn/lit/ds/symlink/ina331.pdf
system is ultra-low-cost and it is able to send alarm [12] Texas Instruments, SINGLE-SUPPLY, microPower CMOS
messages in real time when emergency occurs. Also, it OPERATIONAL AMPLIFIERS microAmplifier™ Series. [Online].
has high expansibility and can be used anywhere with the Available: http://www.ti.com.cn/cn/lit/ds/symlink/opa2336.pdf
[13] I. Daubechies,W. Sweldens, “Factoring Wavelet Transforms into
coverage of GSM and GPS signal. All these advantages Lifting Steps, ” J Fourier Annal Appl, vol. 4,iss.3, 1998,pp.245—267.
have made it the ideal device for remote health care. [14] Yurun Ma; Kun Zhan; Yide Ma; Yan Zhang; Yi Tian. " A New
A further experimental verification of the system is Real-Time R-wave Detection Algorithm Based on Integral Projection
planed, including the diagnosis accuracy of the tests of Function,"IEEE EMBS Malaysian Chapter Engineering in Medicine &
the patients, as well as testing the system operation in real Biology ,accepted.
emergency conditions. [15] G.B.Moody. (1997) MIT/BIH arrhythmia database. MIT, Beth
Israel Deaconess Medical Center/Harvard Medical School. [Online].
Available: http://physionet.org/physiobank/database/mitdb/
219