ECG SIGNAL PROCESSING AND HEART RATE FREQUENCY DETECTION METHODS



Similar documents
Heart Rate Detection from Ballistocardiogram

Feature Vector Selection for Automatic Classification of ECG Arrhythmias

Normally-Off Technologies for

Software Tool for Cardiologic Data Processing

ZEBRAFISH SYSTEMS SYSTEMS ZEBRAFISH. Fast, automatic analyses

Fetal monitoring on the move, from a hospital to in-home setting

Hands On ECG. Sean Hubber and Crystal Lu

Efficient Heart Rate Monitoring

Detection of Heart Diseases by Mathematical Artificial Intelligence Algorithm Using Phonocardiogram Signals

A DESIGN OF DSPIC BASED SIGNAL MONITORING AND PROCESSING SYSTEM

VitalJacket SDK v Technical Specifications

Electrocardiogram (ECG) Monitoring System using Bluetooth technology

Time series analysis of data from stress ECG

VitalJacket SDK v Technical Specifications

The Periodic Moving Average Filter for Removing Motion Artifacts from PPG Signals

SUMMARY. Additional Digital/Software filters are included in Chart and filter the data after it has been sampled and recorded by the PowerLab.

Design of Medical Information Storage System ECG Signal

The Calculation of G rms

Heart Rate Data Collection Software Application User Guide

Lock - in Amplifier and Applications

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Doppler. Doppler. Doppler shift. Doppler Frequency. Doppler shift. Doppler shift. Chapter 19

Figure1. Acoustic feedback in packet based video conferencing system

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

A LOW-COST WIRELESS HEALTHCARE MONITORING SYSTEM AND COMMUNICATION TO A CLINICAL ALARM STATION

ARTEFACT CORRECTION FOR HEART BEAT INTERVAL DATA

Matlab GUI for WFB spectral analysis

PRACTICAL GUIDE TO DATA SMOOTHING AND FILTERING

e-περιοδικό Επιστήμης & Τεχνολογίας e-journal of Science & Technology (e-jst) Design and Construction of a Prototype ECG Simulator

*Merikoski Rehabilitation and Research Center, Nahkatehtaankatu 3, FIN Oulu, Finland

A MOBILE-PHONE ECG DETECTION KIT AND CLOUD MANAGEMENT SYSTEM

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

Adding Heart to Your Technology

How to Design 10 khz filter. (Using Butterworth filter design) Application notes. By Vadim Kim

ANIMA: Non-Conventional Interfaces in Robot Control Through Electroencephalography and Electrooculography: Motor Module

Making Accurate Voltage Noise and Current Noise Measurements on Operational Amplifiers Down to 0.1Hz

Evaluation of Heart Rate Variability Using Recurrence Analysis

RF Network Analyzer Basics

KALMAN Filtering techniques can be used either for

Analog and Digital Filters Anthony Garvert November 13, 2015

Abstract. Cycle Domain Simulator for Phase-Locked Loops

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

2 Review of ECG Analysis

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Real Time Holter Monitoring of Biomedical Signals. Abstract

The Study and Design Of a Wireless ECG Monitoring System

Ericsson T18s Voice Dialing Simulator

Example #1: Controller for Frequency Modulated Spectroscopy

Author: Dr. Society of Electrophysio. Reference: Electrodes. should include: electrode shape size use. direction.

Transition Bandwidth Analysis of Infinite Impulse Response Filters

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Electronic Communications Committee (ECC) within the European Conference of Postal and Telecommunications Administrations (CEPT)

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

Android based Alcohol detection system using Bluetooth technology

Pressure Sensor Based Estimation of Pulse Transit Time

Automatic Fall Detector based on Sliding Window Principle

How To Swap Output Phases Of A Power Supply With A Power Converter

#AS148 - Automated ECG Analysis

Trigonometric functions and sound

Movement artifacts electrical noise caused by the movement of the sensor surface with respect to the skin surface

Data Acquisition Basics Lab

LOW COST HARDWARE IMPLEMENTATION FOR DIGITAL HEARING AID USING

Human ECG Laboratory Experiment By

CONDUCTED EMISSION MEASUREMENT OF A CELL PHONE PROCESSOR MODULE

Lecture 1-6: Noise and Filters

FOURIER TRANSFORM BASED SIMPLE CHORD ANALYSIS. UIUC Physics 193 POM

DESIGN AND SIMULATION OF TWO CHANNEL QMF FILTER BANK FOR ALMOST PERFECT RECONSTRUCTION

Convention Paper Presented at the 112th Convention 2002 May Munich, Germany

A Sound Analysis and Synthesis System for Generating an Instrumental Piri Song

Building a Simulink model for real-time analysis V Copyright g.tec medical engineering GmbH

Fig. 1 BAN Architecture III. ATMEL BOARD

Experiment # (4) AM Demodulator

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Acoustic Processor of the MCM Sonar

Time Series Analysis: Introduction to Signal Processing Concepts. Liam Kilmartin Discipline of Electrical & Electronic Engineering, NUI, Galway

Microcontroller-based experiments for a control systems course in electrical engineering technology

AN Application Note: FCC Regulations for ISM Band Devices: MHz. FCC Regulations for ISM Band Devices: MHz

Real Time Monitoring using Surface Electromyography

Em bedded DSP : I ntroduction to Digital Filters

Filter Comparison. Match #1: Analog vs. Digital Filters

Advanced Ensemble Strategies for Polynomial Models

Philips PageWriter Touch ECG System

DIGITAL SIGNAL PROCESSING - APPLICATIONS IN MEDICINE

Graham s Guide to Synthesizers (part 1) Analogue Synthesis

Ultrasound Distance Measurement

Performing the Fast Fourier Transform with Microchip s dspic30f Series Digital Signal Controllers

Digital image processing

Research on physiological signal processing

Automatic Detection of Emergency Vehicles for Hearing Impaired Drivers

Zigbee-Based Wireless Distance Measuring Sensor System

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

REMOTE ELECTROCARDIOGRAM MONITORING BASED ON THE INTERNET

Digital Guitar Effects Pedal

Use Data Budgets to Manage Large Acoustic Datasets

Transcription:

ECG SIGNAL PROCESSING AND HEART RATE FREQUENCY DETECTION METHODS J. Parak, J. Havlik Department of Circuit Theory, Faculty of Electrical Engineering Czech Technical University in Prague Abstract Digital signal processing and data analysis are very often used methods in a biomedical engineering research. This paper describes utilization of digital signal filtering on electrocardiogram (ECG). Designed filters are focused on removing supply network 5 Hz frequency and breathing muscle artefacts. Moreover, this paper contains description of three heart rate frequency detection algorithms from ECG. Algorithms are based on statistical and differential mathematical methods. All of the methods are compared on stress test measurements. All described methods are suitable for next simple implementation to a microprocessor for real-time signal processing and analysing. 1 Introduction Electrocardiogram (ECG) represents electrical activity of human heart. ECG is composite from 5 waves - P, Q, R, S and T. This signal could be measured by electrodes from human body in typical engagement. Signals from these electrodes are brought to simple electrical circuits with amplifiers and analogue digital converters. The main problem of digitalized signal is interference with other noisy signals like power supply network 5 Hz frequency and breathing muscle artefacts. These noisy elements have to be removed before the signal is used for next data processing like heart rate frequency detection. Digital filters and signal processing should be designed very effective for next real-time applications in embedded devices. Heart rate frequency is very important health status information. The frequency measurement is used in many medical or sport applications like stress tests or life treating situation prediction. One of possible ways how to get heart rate frequency is compute it from the ECG signal. Heart rate frequency can be detected d from ECG signal by many methods and algorithms. Many algorithms for heart rate detection are based on QRS complex detection and hear rate is computed like distance between QRS complexes. QRS complex can be detected using for example algorithms from the field of artificial neural networks, genetic algorithms, wavelet transforms or filter banks [1]. Moreover the next way how to detect QRS complex is to use adaptive threshold [2]. The direct methods for heart rate detection are ECG signal spectral analyse [3] and Short-Term Autocorrelation method [4]. Disadvantage of all these methods is their complicated implementation to microprocessor unit for real time heart rate frequency detection. Real time QRS detector and heart rate computing algorithm from resting 24 hours ECG signal for 8-bit microcontroller is described in [5]. This algorithm is not designed for physical stress test with artefacts. The designed digital filters and heart rate frequency detection algorithms are very simple but robust. They can be used for ECG signal processing during physical stress test with muscle artefacts. They are suitable for easy implementation in C language to microprocessor unit in embedded device. Design of these methods has been very easy with Matlab tools and functions. 2 Signal acquisition ECG signal for digital signal processing and heart rate calculation was acquired by measurement card with sampling frequency f s = 5 Hz. The first ECG lead was measured. Analogue signal pre-processing was done on simple amplifier circuit designated for ECG signal measurement. The circuit with ECG amplifier is fully described in [6]. In Figure 1 there is shown raw ECG signal

sampled by measuring card. This signal was used as input signal for the digital filters and the heart rate detection algorithms designing and testing..2 ECG1 - I. lead - RAW signal from measuring card.15.1.5 Voltage [V] -.5 -.1 -.15 -.2 Figure 1: Raw signal acquired by measuring card with simple ECG amplifier circuit. 3 Digital signal processing with digital filters In this part there is described noise elements filtering and baseline wander elimination with digital filters. The main noise elements are power supply network 5 Hz frequency and breathing muscle movements. These artefacts have to be removed before the signal is used for next data processing like heart rate frequency determination. The block schema of digital signal processing with digital filters is shown in Figure 2. Figure 2: Digital signal processing and digital filters block schema. At the beginning, the mean value is removed from signal. Then signal is normalized for unit maximum amplitude. Network interference at 5 Hz frequency is removed by first filter. This filter type is biquad band stop. Advantage of this filter is very narrow band stop which is created by poles and zeros location. Baseline wander was provided by means of the next filter. This filter is second order Butterworth filter set to frequency of.5 Hz. This filter is usually used in professional ECG filtering applications [7]. The signal filtered by these filters is shown in the Figure 3. 1 ECG1 - I. lead - basic filtration.8.6.4 Voltage [V].2 -.2 -.4 -.6 -.8 Figure 3: Signal after network 5 Hz and baseline wander filtering..

After the basic filtering, the R-peaks are detected from ECG signal. R-peaks filtering are necessary for next heart rate detection. The signal is filtered by high pass and low pass Butterworth filters with cut-off frequencies 15 Hz and 2 Hz. Both filters are fourth order because of computing difficulty in next implementation in a microprocessor. Using of these two filters has better results than one band pass filters. The signal energy of samples (1) from voltage amplitude is calculated then. E( t) ( ) 2 = u t (1) This process more highlights R-peaks in signal. In Figure 4 there is displayed energy signal which is ready for heart rate detection..14 ECG1 - I. lead - signal energy U 2.12.1 Energia [-].8.6.4.2 4 Heart rate detection algorithms Figure 4: Energy signal after R-peaks filtering. In this part there are described algorithms for heart rate detection which have been designed in Matlab. Algorithms can be divided to algorithms based on statistical and differential mathematical methods. The first algorithm is focused on statistical signal processing methods like autocorrelation. Autocorrelation method can be used because the ECG signal is quasi-periodical. Matlab provides very simple using of autocorrelation method in signal processing which is very useful for this purpose. The second and third algorithms are detecting heart rate as difference between R waves in ECG. These waves are filtrated by band pass filters firstly and then the signal energy is computed. The wave s peaks are detected by peak detector or signal thresholding. These algorithms compute heart rate frequency from the signal energy. The signal energy was pre-processed in preceding part. All three described algorithms were used on same signal. It means it is possible to compare the results and to choose the best one. 4.1 Autocorrelation of energy signal The first algorithm computes heart rate frequency using mathematical statistic autocorrelation function. Autocorrelation function is applied on signal energy. Integrator filter highlights peaks in autocorrelation function. Peak detector is used for extract peaks from autocorrelation function. In the Figure 5, autocorrelation function, peaks and computed heart rate frequency are displayed. 4.2 Thresholding of energy signal The second algorithm computes heart rate frequency using the energy signal thresholding [8]. The threshold is computed according the equation (2). This equation was derived empirically. TH = 2 E( t) (2)

Hear rate calculated by autocorrelation function of signal energy - 45.7 bpm 2 Signal energy autocorrelation funcion 18 Autocorrelation function maximums 16 14 12 U[-] 1 8 6 4 2.5 1 1.5 2 2.5 3 3.5 4 Samples x 1 4 Figure 5: Autocorrelation function of signal energy. The threshold is used for finding the signal parts where R-peaks are situated. The peak detector in this algorithm is not used. Firstly, time indexes of samples higher than the threshold are found. After that, the algorithm computes differences between time indexes. Only samples with time index differences higher than the minimal physiological heart period are selected as the R-Peaks. In the Figure 6 the signal energy, threshold, R-peaks timestamps and the calculated heart rate are displayed. Energy [-].2.15.1.5 R-peaks and threshold in signal energy Signal energy Threshold R-peaks timestamps Heart rate calculated by signal energy thresholding - average 46.63 bpm 55 Heart rate in R-peaks timestamps 5 45 4 Figure 6: R-peaks timestamps, threshold in signal energy and calculated heart rate frequency. 4.3 Peaks detection in energy signal envelope The third algorithm uses the integrator filter firstly. Energy signal is smoothed by this filter. R- peaks are highlighted as well. Moreover the energy signal envelope is made [9]. The peak detector is used to find the peaks in the signal envelope [1]. Heart rate frequency is computed from R-R intervals. If the interval between two R-peaks is lower than the maximal physiological heart rate, the next R-peak is taken. It prevents failures caused by artefacts in signal from occurring. The energy signal smoothed by integrator filter, R-peaks timestamps and calculated heart rate are shown in the Figure 7.

Energy [-] 4 3 2 1 R-peaks in signal energy envelope Signal energy envelope R-peaks timestamps Heart rate calculated by peaks in signal energy envelope - average 47.91 bpm 6 Heart rate in R-peaks timestamps 55 5 45 4 Figure 7: R-peaks timestamps in signal energy envelope and calculated heart rate frequency 5 Applications of designed algorithms Finally the designed algorithms were applied to compute heart rate frequency from ECG signals which were measured during stress tests. ECG signal was certainly filtered by digital filters described in third part of this paper. The stress test was composite from during pedalling on an exercise bike and exercising with dumbbells. The signal was sampled continually during stress test. The heart rate frequency was computed in frames of signal with length of 4 s which were 2 s overlapped. The division of signal to frames simulates real-time processing which will be used in microprocessor implementation. In the Figure 8 there is shown the behaviour of computed heart rate frequency during pedalling on the exercise bike and in the Figure 9 there is shown the behaviour during exercising with dumbbells. Heart rate calculated by autocorrelacation function from signal energy Heart rate calculated by signal energy thresholding Heart rate calculated by peaks detection in signal energy envelope 16 Heart rate frequency on exercise bike 14 12 1 8 6 4 2 1 2 3 4 5 6 Figure 8: Heart rate frequencies calculated with all three algorithms during pedalling on exercise bike. Heart rate calculated by autocorrelacation function from signal energy Heart rate calculated by signal energy thresholding Heart rate calculated by peaks detection in signal energy envelope 2 Heart rate frequency during exercising with dumbbells 18 16 14 12 1 8 6 4 2 4 6 8 1 12 14 16 18 Figure 9: Heart rate frequencies calculated with all algorithms during exercising with dumbbells.

In the Figures we can see that the differential computing methods are better than the statistical computing method in the stress tests measurement application with real-time processing simulation. The main problem of autocorrelation function algorithm is quality of signal periods in fast signal changes. That is the reason why the parts of values are missing in the results of this algorithm. 6 Results The designed digital filters and the heart rate frequency algorithms are very simple. The filters have small order. It saves the computing time, but it is very effective for processing the ECG signal. It is the reason why these algorithms could be easy implemented to microprocessor unit. Based on the application of the computing algorithms to digitally filtrated ECG signal which was acquired during the stress test it may be argued that differential computing methods are better for real-time processing implementation. 7 Acknowledgments This work has been supported by the grant No. F3a 2122/211 presented by University Development Foundation. This work has been also supported by the research program No. MSM 6847712 of the Czech Technical University in Prague (sponsored by the Ministry of Education, Youth and Sports of the Czech Republic). References [1] Kohler, B.-U.; Hennig, C.; Orglmeister, R. The principles of software QRS detection. Engineering in Medicine and Biology Magazine IEEE, vol. 21, pp. 42 57, January -February 22. [2] I. I. Christov. Real time electrocardiogram QRS detection using combined adaptive threshold. BioMedical Engineering OnLine, 24. [cit: 211-1-16]. [Online]. Available on internet: http://www.biomedical-engineering-online.com/content/3/1/28. [3] Surda, J.; Lovas, S.; Pucik, J.; Jus, M. Spectral Properties of ECG Signal. Radioelektronika, 27. 17th International Conference, Brno, Czech Republic, 24 th 25 th April 27, pp. 1 5. [4] Piotrowskia Z.; Rózanowski K. Robust Algorithm for Heart Rate (HR) Detection and Heart Rate Variability (HRV) Estimation. ACTA PHYSICA POLONICA, vol. 118, pp. 131 135, No. 1/21. [5] Pan, Jiapu; Tompkins, Willis J. A Real-Time QRS Detection Algorithm. IEEE Transactions on Biomedical Engineering, vol. BME-22, pp. 23 236, March 25. [6] Tenedero, M. C.; Raya, D. A. M..; Sison, G. L. Design and implementation of a single-channel ECG amplifier with DSP post-processing in Matlab. Third National Electronics & Engineering Conference, Phillipines, November 22. [7] Danek, J. CARDIOLOGY, ECG basic information. BTL, a. s., March 21. [cit: 211-1-16]. [Online]. Available on internet: http://noel.feld.cvut.cz/vyu/x31let/lectures/5_ekgdanek.pdf. [8] Jacobson, A.L. Auto-threshold peak detection in physiological signals. 23rd Annual International Conference of the IEEE, 25 th 28 th October 21, vol. 3, pp. 2194 2195. [9] Nygårds, M.; Sörnmo, L. Delineation of the QRS complex using the envelope of the e.c.g. Medical and Biological Engineering and Computing, vol. 21, pp. 538 547, September 1983. [1] Billauer, E. peakdet: Peak detection using MATLAB. September, 28. [cit: 211-1-16]. [Online]. Available on internet: http://www.billauer.co.il/peakdet.html. Jakub Parak parakjak@fel.cvut.cz Jan Havlik xhavlikj@fel.cvut.cz