PCA Enhanced Kalman Filter for ECG Denoising

Similar documents
PERFORMANCE CALCULATION OF WAVELET TRANSFORMS FOR REMOVAL OF BASELINE WANDER FROM ECG

MULTI-MODAL FETAL ECG EXTRACTION USING MULTI-KERNEL GAUSSIAN PROCESSES. Bharathi Surisetti and Richard M. Dansereau

Quick detection of QRS complexes and R-waves using a wavelet transform and K-means clustering

Vital Responder: Real-time Health Monitoring of First- Responders

ISSN: ISO 9001:2008 Certified International Journal of Engineering and Innovative Technology (IJEIT) Volume 2, Issue 10, April 2013

Extraction of Unwanted Noise in Electrocardiogram (ECG) Signals Using Discrete Wavelet Transformation

DETECTION OF HEART ABNORMALITIES USING LABVIEW

Various Methods To Detect Respiration Rate From ECG Using LabVIEW

Separation of fetal electrocardiography (ECG) from composite ECG using adaptive linear neural network for fetal monitoring

Removal of Baseline wander and detection of QRS complex using wavelets

ECG Beat Recognition using Principal Components Analysis and Artificial Neural Network

Assessment of Reliability of Hamilton-Tompkins Algorithm to ECG Parameter Detection

Testing the Accuracy of ECG Captured by Cronovo through Comparison of ECG Recording to a Standard 12-Lead ECG Recording Device

Removal of Baseline Wander from Ecg Signals Using Cosine Window Based Fir Digital Filter

SEPARATION OF ABDOMINAL FETAL ELECTROCARDIOGRAMS IN TWIN PREGNANCY 1. INTRODUCTION

MULTILEAD SIGNAL PREPROCESSING BY LINEAR TRANSFORMATION

ECG Noise Reduction By Different Filters A Comparative Analysis

HST-582J/6.555J/16.456J-Biomedical Signal and Image Processing-Spring Laboratory Project 1 The Electrocardiogram

Analysis of Fetal Stress Developed from Mother Stress and Classification of ECG Signals

A MATHEMATICAL ALGORITHM FOR ECG SIGNAL DENOISING USING WINDOW ANALYSIS

Removing ECG Artifact from the Surface EMG Signal Using Adaptive Subtraction Technique

Robust Detection of Atrial Fibrillation for a Long Term Telemonitoring System

Wavelet Decomposition for Detection and Classification of Critical ECG Arrhythmias

Performance Identification of Different Heart Diseases Based On Neural Network Classification

Neural Network based Heart Arrhythmia Detection and Classification from ECG Signal

DIFFERENCE-BASED PARAMETER SET FOR LOCAL HEARTBEAT CLASSIFICATION: RANKING OF THE PARAMETERS

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

CHAPTER 6 INTERFERENCE CANCELLATION IN EEG SIGNAL

Simulation Based R-peak and QRS complex detection in ECG Signal

Heart Abnormality Detection Technique using PPG Signal

ECG DE-NOISING TECHNIQUES FOR DETECTION OF ARRHYTHMIA

CHAPTER IV PREPROCESSING & FEATURE EXTRACTION IN ECG SIGNALS

Robust system for patient specific classification of ECG signal using PCA and Neural Network

Powerline Interference Reduction in ECG Using Combination of MA Method and IIR Notch

SPPS: STACHOSTIC PREDICTION PATTERN CLASSIFICATION SET BASED MINING TECHNIQUES FOR ECG SIGNAL ANALYSIS

Automatic Detection of Heart Disease Using Discreet Wavelet Transform and Artificial Neural Network

An Improved QRS Wave Group Detection Algorithm and Matlab Implementation

Enhancement of Twins Fetal ECG Signal Extraction Based on Hybrid Blind Extraction Techniques

VLSI Implementation of the DWT based Arrhythmia Detection Architecture using Co- Simulation

Combination Method for Powerline Interference Reduction in ECG

Research Article A Novel Pipelined Adaptive RLS Filter for ECG Noise Cancellation

FREQUENCY DOMAIN BASED AUTOMATIC EKG ARTIFACT

ECG Signal Characterization and Correlation To Heart Abnormalities

2.1 Preface 2.2 Survey of W-ECG recorder and wearable systems 2.3 ECG signal analysis methods

Genetic Algorithm based Feature Extraction for ECG Signal Classification using Neural Network

An ECG Beat Classification Using Adaptive Neuro- Fuzzy Inference System

Biomedical Signal Processing

POWER EFFICIENT PROCESSOR FOR PREDICTING VENTRICULAR ARRHYTHMIA BASED ON ECG

Biomedical. Measurement and Design ELEC4623. Lectures 15 and 16 Statistical Algorithms for Automated Signal Detection and Analysis

Continuous Wavelet Transform in ECG Analysis. A Concept or Clinical Uses

Keywords: Adaptive Neuro-Fuzzy Interface System (ANFIS), Electrocardiogram (ECG), Fuzzy logic, MIT-BHI database.

Electrocardiogram beat classification using Discrete Wavelet Transform, higher order statistics and multivariate analysis

R Peak Detection of ECG Signal using Thresholding Method

International Journal of Advance Engineering and Research Development

Fuzzy Based Early Detection of Myocardial Ischemia Using Wavelets

Introduction to Computational Neuroscience

II. NORMAL ECG WAVEFORM

Design of the HRV Analysis System Based on AD8232

Measurement Denoising Using Kernel Adaptive Filters in the Smart Grid

Digital ECG and its Analysis

ECG signal classification and parameter estimation using multiwavelet transform.

DATA MANAGEMENT & TYPES OF ANALYSES OFTEN USED. Dennis L. Molfese University of Nebraska - Lincoln

De-Noising Electroencephalogram (EEG) Using Welch FIR Filter

Development of 2-Channel Eeg Device And Analysis Of Brain Wave For Depressed Persons

ATRIAL FIBRILLATION FROM AN ENGINEERING PERSPECTIVE

PROCESSING THE ABDOMINAL FETAL ECG USING A NEW METHOD. Zentralinstitut fur Biomedizinische Technik der Universitat Erlangen-Nurnberg, FRG

ECG Signal Analysis for Abnormality Detection in the Heart beat

Blood Pressure Estimation Using Photoplethysmography (PPG)

EEG signal classification using Bayes and Naïve Bayes Classifiers and extracted features of Continuous Wavelet Transform

DETECTION OF EVENTS AND WAVES 183

CHAPTER 1 INTRODUCTION

Assessment of the Performance of the Adaptive Thresholding Algorithm for QRS Detection with the Use of AHA Database

Development of novel algorithm by combining Wavelet based Enhanced Canny edge Detection and Adaptive Filtering Method for Human Emotion Recognition

Identification of Ischemic Lesions Based on Difference Integral Maps, Comparison of Several ECG Intervals

REVIEW ON ARRHYTHMIA DETECTION USING SIGNAL PROCESSING

Discrete Wavelet Transform-based Baseline Wandering Removal for High Resolution Electrocardiogram

An electrocardiogram (ECG) is a recording of the electricity of the heart. Analysis of ECG

The ECG Signal Compression Using an Efficient Algorithm Based on the DWT

CHAPTER 4 ESTIMATION OF BLOOD PRESSURE USING PULSE TRANSIT TIME

Real-time Heart Monitoring and ECG Signal Processing

A Novel Application of Wavelets to Real-Time Detection of R-waves

Enhancement of the Modi ed P-Spectrum for Use in Real-time QRS Complex Detection

The impact of numeration on visual attention during a psychophysical task; An ERP study

ECG Signal Based Heart Disease Detection System for Telemedicine Application Using LabVIEW

Heart Rate Calculation by Detection of R Peak

FIR filter bank design for Audiogram Matching

QRS Complex Boundaries Location for Multilead Electrocardiogram

ECG QRS Detection. Valtino X. Afonso

LABVIEW based expert system for Detection of heart abnormalities

Premature Ventricular Contraction Arrhythmia Detection Using Wavelet Coefficients

10CS664: PATTERN RECOGNITION QUESTION BANK

Wavelets extrema representation for QRS-T cancellation and P wave detection

Available online at ScienceDirect. Procedia Computer Science 70 (2015 ) Carmelaram, Bengaluru , India

Analysis of Signal Processing Techniques to Identify Cardiac Disorders

A Review on Arrhythmia Detection Using ECG Signal

SSRG International Journal of Medical Science ( SSRG IJMS ) Volume 4 Issue 1 January 2017

Temporal Analysis and Remote Monitoring of ECG Signal

Automated Diagnosis of Cardiac Health

Extraction of P wave and T wave in Electrocardiogram using Wavelet Transform

Transcription:

IOSR Journal of Electronics & Communication Engineering (IOSR-JECE) ISSN(e) : 2278-1684 ISSN(p) : 2320-334X, PP 06-13 www.iosrjournals.org PCA Enhanced Kalman Filter for ECG Denoising Febina Ikbal 1, Prof.M.Mathurakani 2 1 (Department of Electronics and Communication, TocH Institute of Science & Technology, India) 2 (Head of Department (M.Tech), Department of Electronics and Communication, TocH Institute of Science & Technology, India) ABSTRACT: Technological developments in the medical industry have contributed to significant improvements in patient care. Non-aggressive monitoring of critical biological functions is an important need to provide appropriate care to patients and leads to their improved health. Supervision and analysis of ECG has long been used in clinical practice. The technological developments of ECG monitoring have made it more mobile and convenient, but this has resulted in decreased signal quality. In this paper, PCA is used along with an optimal filter developed using Bayesian framework to enhance the signal quality of ECG signal. This filter has the form of a Kalman Filter. Also, the method of PCA allows efficient estimation of QRS complexes from the noisy ECG data. The adaptive estimation of the process noise covariance is performed based on earlier parameter estimates and on newly arriving data. The measurement noise covariance is obtained by the spatial correlation between several simultaneously recorded ECG signals. The filter has been evaluated on TWA signals and Fetal ECG signals. Keywords -Electrocardiogram, PCA, Kalman Filter, Noise Estimation. I. INTRODUCTION The human heart is an organ that provides a continuous blood circulation through the cardiac cycle and is one of the most vital organs in the human body. An ECG can be defined as the graphic record that detects the minute differences in potential caused by heart action and occurring between different parts of the body [1]. ECG is among the most valuable clinical tests available to medicine because it is quick, completely safe, painless, inexpensive, and rich in information. Supervision and analysis of ECG allows diagnosis of a wide range of heart conditions. A typical ECG waveform comprises of 3 important parts, an initial P-wave, followed by the main QRS complex and then a trailing T-wave. Each of them represents a vital process in the heart. Figure.1:ECG Waveform In the recent years, new mobile cardiac monitors have been developed for continuous ECG monitoring. The portability of these devices is improving with the development of low-power microelectronics. Sensor devices which are of wear-around type have been introduced in the field [2]. However, in such mobile National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 6

conditions, noise increases with higher levels of activity [3]. The extraction of high-resolution cardiac signals from a noisy ECG remains an important problem for the biomedical engineering community. Artifacts are the noise induced to ECG signals that result from movements of electrodes. This in turn causes deformation and change in the electrical characteristics of the skin under and around the electrodes. These electrical changes appear in the ECG as motion artifacts and baseline drifts. Motion artifacts could reduce signal quality, making ECG interpretation very difficult. The numerous non-cardiac ECG contaminants, such as electromyographic (EMG) noise, overlap with the cardiac components in the frequency domain, particularly in the 0.01 Hz to 100 Hz range. Other contaminants include power line interference, baseline wander due to respiration, electrode contact noise etc. Band pass filtering is therefore inadequate to suppress such contaminants. Another technique involves the adaptive filtering, in which a filter is applied after adjusting its parameters in time to a time varying noise. This is particularly useful when the noise is non-stationary as it is the case in ambulatory motion artifacts. However, a reference signal has to be additionally recorded together with the ECG. Consecutive ECG complexes correspond to one another and are uncorrelated in terms of noise. Thus, by averaging several complexes together, signal quality can be improved. But, along with noise, the morphological dynamics of ECG signal will also be removed. In this paper, the method of PCA is made use along with an optimal filter to effectively enhance the signal quality of a variety of ECG signals, while at the same time preserving relevant morphological dynamics in the ECG. This filter has the form of a Kalman filter [4]. The statistical technique of PCA is used to extract a statistical-based model of the signal and noise, allowing the removal of in-band noise by discarding the dimensions corresponding to noise. The noise estimation is based on the earlier estimate and all newly arriving data. The rest of this paper is organized as follows. Section II deals with the state-space model of ECG. PCA is dealt with in Section III. Section IV deals with the data used and the separation of individual ECG complexes. Kalman filter is described in section V and the Simulation results are provided in Section VI. Finally, conclusions are provided in Section VII. II. STATE-SPACE MODEL OF ECG Figure.2:State-space model describing evolution of ECG over time Consecutive ECG complexes are very similar, but not identical. An ECG complex differ from its succeeding complex by a component called process noise. Also, the signals are corrupted by noise and artifacts. The relation between consecutive complexes and the addition of noise to the recorded ECG can be described by a state-space model as shown below: where denotes the [T 1] ECG complex for heartbeat k and denotes the [T 1] recorded signal, where T is the length of the ECG complex. National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 7 (1) is a [T 1] vector and denotes the process noise. The measurement noise which includes motion artifacts, power line interference, EMG noise, electrode contact noise etc., are represented by the [T 1] vector.

From fig.1 and (1), we cannot distinguish between measurement noise and process noise. Thus a separate model is used for measurement noise estimation. The process noise is assumed to be zero mean with adaptive covariance. The measurement noise is assumed to be zero mean with adaptive covariance. III. PRINCIPAL COMPONENT ANALYSIS PCA (Principal Component Analysis) is a statistical technique whose purpose is to condense the information of a large set of correlated variables into a few uncorrelated variables called Principal Components. The Principal Components are derived as a linear combination of variables of the data set, with weights chosen so that the principal components become mutually uncorrelated. The first Principal Component is in the direction of greatest variability or covariance in data, second Principal Component in the next orthogonal direction of greatest variance and so on. Since the first few components are of greatest importance, they are retained for further use thus reducing the dimensionality. PCA is applied using the NIPALS Algorithm. PCA involves decomposing a data matrix into two parts: structure part composing of and a noise part. (2) Figure.3:Collection of Scores & Loadings, known as scores, gives summary of the original variables in that describe how the observations relate to each other. P, known as loadings gives the weights or influence of variables in on the scores. Here, PCA is applied prior to QRS complex detection. The first Principal Component is then used for detecting QRS peaks in the ECG complexes. The signals are then reconstructed and then further used for filtering. IV. DATA ACHIEVEMENT AND SEPARATION OF ECG COMPLEXES 4.1. Data Achievement The proposed system was tested on mainly two types of ECG signals: TWA signals and Fetal ECG signals recorded from fetal scalp. These signals were obtained from MIT-BIH TWA Challenge database and Abdominal and direct Fetal ECG database respectively. TWA signals comprises of 12-lead ECG signals obtained from patients suffering from T-Wave Alternans. T-wave Alternans is a condition that changes the amplitude or shape of the T-wave in an ECG signal. The fetal ECG signals consists of a reference direct fetal ECG registered from fetal head and four different signals acquired from maternal abdomen. Gaussian noise of various amplitudes was then added with these signals for the evaluation of the developed filter. 4.2. Separation of Individual ECG Complexes Each recorded signal has to be separated based on their QRS peaks. The QRS peaks are detected on these signals after performing PCA. The ECG complexes are then defined as samples in a predefined time window around corresponding peaks. The value of T chosen is about 120% of mean interval between consecutive heartbeats. After filtering of complexes, the signals are reconstructed by placing the complexes back on their original positions. National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 8

V. KALMAN FILTER 5.1. Measurement Noise Estimation The standard electrocardiogram is simply a graphical representation of the direction and magnitude of the electrical field of the heart as it changes with time. In a 12-lead ECG, each lead looks at this electrical field from a different angle. The theoretic basis of electrocardiography depends upon the assumptions that the heart is a single dipole generator, the body is a homogeneous conductor, and all electrodes are equidistant from the dipole generator. The magnitude of the electrical field as measured by an electrode is proportional to the distance between the electrode and the dipole, and to the size of the dipole. Thus, each ECG signal is the projection of the electric field generated by this dipole on the vector describing the position of electrode. Hence, each ECG signal can be represented as linear combination of three independent ECG signals [4]. Figure.4: Measurement Noise Estimation For recorded ECG signals, ECG signal can be modeled as: γ (3) where is a matrix, of which the ECG signals constitute the column vectors, and for which the th column is to be found. The vector γ comprises the coefficients of linear combination. The morphological variations in ECG are reflected in all the recorded ECG signals. Thus, the measurement noise can be found from these signals as the one not spatially correlated to the other signals. The measurement noise vector can be estimated as using the estimate γ as: (4) thus obtaining an estimate for measurement noise covariance Σ. The estimate that minimizes the mean squared error (MSE) between and its estimate γ is: (5) 5.2. Kalman Filter The Kalman filter is an efficient recursive filter that estimates the state of a linear dynamic system from a series of noisy measurements. This property of Kalman filter makes it suitable for the sequential estimation of the unknown parameters of ECG. Sequential estimation refers to the estimation of unknown parameters based on earlier estimates and newly arriving data. The Kalman Filter equations are given as: (6) (7) where is known as the Kalman gain. is the variance of optimal estimate. (8) National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 9

5.3. Process Noise Estimation The model residual is defined as (9) While finding the model residual for each complex, the preceding complexes are also taken into account by averaging their corresponding model residuals. From (8), it can be seen that the Kalman gain can be simplified to be a scalar matrix (a diagonal matrix with all entries equal) or even a scalar. By changing this value of, the weights provided to the newly arriving ECG complexes can be varied, thus changing the effect of preceding ECG complexes to the estimation of. Since Kalman gain is assumed to be a scalar,, and can be assumed to be scalar and represented as, and. The process noise covariance is estimated as follows: If the model error is greater than its theoretical value, increases and this results in increased Kalman gain. Thus, more weight is given to newly arriving ECG complexes. 5.4. Algorithm 1. Initial estimate of ECG complex and the measurement noise vector are obtained as the mean ECG complex over heartbeats and after projection respectively. 2. Initial estimates for noise variances and are taken as the variances of vectors and respectively. 3. Estimation of measurement noise covariance from (5) and (4). 4. Estimation of process noise covariance from (9) and (10). 5. Calculation of Kalman gain from (8). 6. Calculation of estimate of ECG complex and its variance from (6) and (7). (10) Figure.5:Algorithmic Implementation of Adaptive Kalman Filter National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 10

VI. SIMULATION RESULTS 6.1. TWA Signals panel). Figure.6: TWA signals before filtering (top panel), after filtering using adaptive Kalman filter (bottom (a) (b) Figure.7: (a) Principal Components obtained after PCA. (b) ECG complex before filtering (top panel), filtered ECG complex (bottom panel). National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 11

6.2. Fetal ECG Signals Figure.8: Fetal ECG signals before filtering (top panel), after filtering using adaptive Kalman filter (bottom panel). (a) (b) Figure.9: (a) Principal Components obtained after PCA. (b) ECG complex before filtering (top panel), filtered ECG complex (bottom panel). National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 12

The performance of the filter is assessed by using the normalized MSE (Mean Square Error) between the filtered ECG signals and the original ECG signals used (signals without additive Gaussian noise). (11) Here, is averaged over all heartbeats in the ECG signal.normalized MSE for TWA and Fetal ECG signals using N=5 is given in the following table. TABLE I. NORMALIZED MSE FOR TWA & FETAL ECG SIGNALS Type of ECG Signal TWA Signal Fetal ECG Signal Normalised MSE -17.08dB -28.21dB Normalized MSE was calculated for different values of number of ECG Complexes N and is plotted as shown below. The Mean square error was found to be decreasing in a small scale with increase in number of ECG complexes used. Figure.10. Normalized MSE vs. Number of ECG complexes, N VII. CONCLUSION The paper presents an adaptive Kalman filter for the enhancement of ECG signals. The filter was evaluated on a variety of ECG signals and its performance was assessed based on the normalized MSE between the filtered signals and the original ECG signal. REFERENCES Books: [1] Rangaraj.M. Rangayyan,Biomedical Signal Analysis: A Case Study Approach(Wiley IEEE Press, December 2001) Journal Papers: [2] W. Chen, C. Sonntag, F. Boesten, S.BambangOetomo, and L. Feijs, A design of power supply for neonatal monitoring with wearable sensors, Journal of Ambient Intelligence and Smart Environments,1(2), 2009,185 196. [3] A. Gruetzmann, S. Hansen, and J. M uller, Novel dry electrodes for ECG monitoring, Physiol. Meas., 28(11),2007, 1375 1390. [4] An Adaptive Kalman Filter for ECG Signal Enhancement RikVullings, Bert de Vries, and Jan W. M. Bergmans, IEEE Transactions On Biomedical Engineering, 58(4), 2011, 1094-1103. National Conference on Wireless Communication, Microelectronics and Emerging Technologies Page 13