 Open Access
 Total Downloads : 528
 Authors : Aarcha Retnan M, Mr. Yadhu. R. B
 Paper ID : IJERTV2IS60964
 Volume & Issue : Volume 02, Issue 06 (June 2013)
 Published (First Online): 29062013
 ISSN (Online) : 22780181
 Publisher Name : IJERT
 License: This work is licensed under a Creative Commons Attribution 4.0 International License
A Real Time System For Classifying And Monitoring Cardiac Arrhythmia Using Webcam
Aarcha Retnan M
Calicut University, kerala, India
Guided by
Mr. Yadhu. R. B Asst.Professor,Calicut university, Kerala , India
Abstract
This paper presents a simple, lowcost method for measuring multiple physiological parameters using fast ica and an intelligent diagnosis system using adaptive neurofuzzy inference system (ANFIS) model for classification of cardiac signals,using a basic webcam. By applying independent component analysis on the color channels in video recordings, we extract the blood volume pulse from the facial regions. Heart rate (HR), respiratory rate, and HR variability were subsequently quantified. six types of ECG signals they are Normal Sinus Rhythm (NSR), Premature Ventricular Contraction (PVC), Atrial Premature Contraction (APC), Ventricular Tachycardia(VT), Ventricular Fibrillation (VF) and Supraventricular Tachycardia (SVT).
Keywords: Aadaptive neuro fuzzy inference system (ANFIS),Blood volume pulse (BVP); FAST independent component analysis (FAST ICA); Heart rate variability (HRV); RRinterval.

Introduction
In spite of the rapid development of pathological research and clinical technologies, cardiovascular diseases are still the number one killer. They cause one death out of three in the world. Each year, there are an estimated seven million deaths around the world due to cardiac arrhythmias. An arrhythmia (ahrithmeah) is a problem with the rate or rhythm of the heartbeat. The ecg (electrocardiogram),the bodysurface manifestation of the cardiac electrical potentials, is the most prescribed diagnostic measure in medicine and is routinely used to diagnose heart disease, to identify irregular cardiac rhythms (arrhythmias), to evaluate the effects of drugs, and to monitor surgical procedures. The magnitude, conduction, and duration of these potentials are detected by placing electrodes on the patients skin. A system has been introduced to realtime cardiac arrhythmias teleassistance and monitoring. This system
is generally composed of 4 main configurable elements. Wireless ECG sensor, local access unit, remote centre server, and remote surveillance termina[4]l.
The option of monitoring a patients physiological signals and classifying cardiac signals via a remote, noncontact means has promise for improving access to and enhancing the delivery of primary health care. Currently, a method has proposed for noncontact measurement of vital signs, such as heart rate (HR) and respiratory rate (RR) and cardiac arrhythmia include laser doppler, microwave doppler radar, and thermal imaging. Despite these impressive advancements, a common drawback of the aforementioned proposals is that the systems are expensive and require specialist hardware. A method for automated computation of hr from digital colour video recordings of the human face, quantification of multiple physiological parameters has been developed[1]. But cardiac rhythms were not classified.
A new method for the classification of the cardiac rhythms were introduced. Feature extraction using independent component analysis (ica) and power spectrum, together with the RR interval then serve as input feature vector. These features were classified using ANFIS[2],[3].
This paper suggest a method that is simple, noninvasive and low cost to classify cardiac rhythms using basic webcam. blood volume pulse for computation of HR, RR, as well as HRV extracted from video images using FAST ICA and cardiac rhythms are classified using ANFIS.

Fast Ica
In a variety of ICA algorithms, Fast ICA algorithm with features of fast convergence speed and good separation effect is widely used in the field of signal processing .This algorithm can estimate statistically independent components which are mixed with unknown factors from the observed signals, for it is based on the fixed point recursive algorithm which is proposed by HyvÂ¨arinen from Finland University of Helsinki. Its approved that Fast ICA is applicable to
any type of data even can be used to analyze high dimensional data.ICA is usually optimization algorithms. The most basic independent criteria is probability density function, while working at a probability density function is difficult for it is usually unknown and complicated to estimate, it is common to use objective function derivates from probability density as the criterion function . ICA optimizate W based on the criterion function which means that when we get the extreme of W, we also get the recovery signal y as the best estimation of s[5].
In the process of establishing the objective function, two rules are necessary .(1) If the variable is Gauss distribution, the objective function is maximum or minimum.(2) As nonGauss nature of the variable is increasing strong, the value of the object function Bor absolute value should become greater or smaller stablely, when the objective function reaches extreme, each component is independent with each other.
. In practical application negentropy is usually used as a objective function to measure the nonGauss signal. The larger the random variable entropy is, the greater its uncertainty. If all the random variables have same variance, the entropy of the Gauss random variables is Maximum. Based on this characteristic, the definition of negentropy as a objective function to measure the non Gauss nature of random variables can be get by modifying the definition of entropy
From above, the criterion of Fast ICA algorithm based on the negentropy maximization, is defined as follow
J(y) = HG(y) H(y) (1)
where, y=WT z, W is separation matrix, z is a column vector after whitening the observation column vector. H(y) is the joint differential entropy of random vector y, HG(y) is the differential entropy of Gauss distribution has the same covariance matrix with y. To avoid the complex of direct calculation, the approximation of the negentropy criterion is proposed
BVP that are mixed with noise signals The extracting of relative bvp signal by Fast ICA algorithm is shown in Fig1.[5],[7]. The process includes data matrix construction, data whitening processing, independent component extraction, finally the noise and the useful signal separation.
Fig.1. The extracting of relative bvp signal by FastICA algorithm

Adaptive NeuroFuzzy InferenceSystem
ANFIS is one of hybrid neurofuzzy inference expert
as
J(y) / [E{G(y)} E{G(v)}]2
(2)
systems and it works in TakagiSugenotype fuzzy inference system, which was developed by Jang.
where, v is a zero mean, unit variance Gauss variables,
G as a nonlinear function, this paper define it as G(y) =1/a[lg cosh(ay)] (5)
where, h is the derivative of H, usually take a=1, let W is orthogonal, the extreme of formula (4) can be got as follow
i I i i
i I i i
wi+1 = E{zg(w T z)} E{g(wT z)}w
W = (WWT )1/2 W (3)
where, W=(w1,w2, …,wN), g is the derivative of G.ICA theory can be used to separate the observed
ANFIS[2],[3] has a similar structure to a multilayer feed forward neural network but the links in an ANFIS only indicate the flow direction of signals between nodes and no weights are associated with the links. ANFIS architecture consists of five layers of nodes. Out of the five layers, the first and the fourth layers consist of adaptive nodes while the second, third and fifth layers consist of fixed nodes. The adaptive nodes are associated with their respective parameters,
get duly updated with each subsequet iterations while the fixed nodes are devoid of any parameters.
Rule 1: If (x is A1) and (y is B1) then (f1 = p1x +q1y + r1)
Rule 2: If (x is A2) and (y is B2) then (f2 = p2x +q2y + r2)
where x and y are the inputs, Ai and Bi are the fuzzy sets, fi are the outputs within the fuzzy region specified by the fuzzy rule, pi, qi and ri are the design parameters that are determined during the training. ANFIS using a strategy of hybrid training algorithm to tune all parameters. It takes a given input/output data set and constructs a fuzzy inference system whose membership function parameters are tuned, or adjusted, using either a back propagation algorithm in combination with a least squares type of method.

Proposed Method
Fig2.proposed method

Recovery of BVP
All the video and physiological recordings were analyzed offline using custom software written in MATLAB. We utilized the Open Computer Vision library to automatically identify the coordinates of the face location in the first frame of the video recording using a boosted cascade classifier. The algorithm returned the x and ycoordinates along with the height and width that define a box around the face. Select the center 60% width and full height of the box as the region of interest (ROI) for our calculations. The ROI was then separated into the three RGB channels and spatially averaged over all pixels in the ROI to yield a red, blue, and green measurement point for each frame
and form the raw signals. Raw traces are then pre processed and decomposed into three independent source signals using ICA based on FASTICA algorithm. Preprocessing steps involve centering and whitening[5],[10]. The raw traces were detrended using a procedure based on a smoothness priors approach. Centering the input data X is process by computing the mean of each component of X and subtracting that mean. This has the effect of making each component have zero mean. Whitening the data involves linearly transforming the data so that the new components are uncorrelated and have variance one. The covariance matrix of the whitened data is the identity matrix.
ICA is able to perform motionartifact removal by separating the fluctuations caused predominantly by the BVP[10],[1] from the observed raw signals. However, the order in which FAST ICA returns the independent components is random. Thus, the component whose power spectrum[11] contained the highest peak was then selected for further analysis.

Determining of Physiological Parameters and calculation of feature vector
The separated source signal Obtained by applying FAST ICA was smoothed[1] using a fivepoint moving average filter and bandpass filtered Hamming window. To refine the BVP peak fiducial point, the signal was interpolated with a cubic spline function at a sampling frequency of 256 Hz. We developed a custom algorithm to detect the BVP peaks in the interpolated signal and applied it to obtain the interbeat intervals (IBIs). To avoid inclusion of artifacts, such as ectopic beats or motion, the IBIs were filtered using the non causal of variable threshold (NCVT) algorithm. HR was calculated from the mean of the IBI time series. Analysis of HRV was performed by power spectral density (PSD) estimation using the Lomb periodogram.
. The term power spectrum means the amount of power per unit (density) of frequency. The RR interval between successive QRS peaks is considered as another important feature for recognizing many ECG arrhythmias. The RR[6] interval (spectral) as a function of the frequency is calculated as the time difference between the R points of the present and previous beat. There are several algorithms to Detect Rwave, we used PanTompkins algorithm. The low frequency (LF) and high frequency (HF) powers were measured. as the area under the PSD curve and quantified in normalized units (n.u.) to minimize the effect on the values of the changes in total power. The LF component is modulated by baroreflex activity and includes both sympathetic and parasympathetic influences. The HF
component reflects parasympathetic influence on the heart through efferent vagal activity and is connected to respiratory sinus arrhythmia (RSA), a cardio respiratory phenomenon characterized by IBI fluctuations that are in phase with inhalation and exhalation. We also calculated the LF/HF ratio[1], considered to mirror sympatho/vagal balance or to reflect sympathetic modulations. Since the HF component is connected with breathing, the RR can be estimated from the HRV power spectrum. When the frequency of respiration changes, the center frequency of the HF peak shifts in accordance with RR. Thus, we calculated RR from the center frequency of the HF peak fHFpeak in the HRV PSD derived from the webcam recordings. The different features extracted from PSD together with RR interval serves as input to feature vector.

Classification using ANFIS
An ANFIS based classifier is presented as a diagnostic tool to aid physicians in the classification of heart diseases. ANFIS using a strategy of hybrid approach of adaptive neurofuzzy inference system, we compose these two intelligent approaches, it will be achieve good reasoning in quality and quantity. In other words we have fuzzy reasoning and network calculation. The objective of classification is to classifier six types of cardiac signals, The six types of are normal sinus rhythm(NSR), premature ventricular contraction (PVC), atrial premature contraction (APC), Ventricular Tachycardia (VT), Ventricular Fibrillation (VF) and Supraventricular Tachycardia (SVT). the feature vectors were applied as the input to an ANFIS classifier. The ANFIS network has a total of 128 fuzzy rules and one output. The classification by ANFIS should be performed using MATLAB.


Expected Results
Fig3.Raw signal obtained after applying FAST ICA
Fig4.power spectral density
Fig5. R Wave Detected

Conclusion
This paper presented a simple, lowcost method for measuring multiple physiological parameters such as HR,HRV, RR using FAST ICA and a hybrid classifying system using ANFIS model. Thus six types of cardiac signals will be able to classified.power spectrum[1],[3] and R wave serves as the input to feature vector extraction. System has many advantages including efficiency, accuracy, and simplicity. It can be used for arrhythmic detection in clinical practice.
References

MingZher Poh, Daniel J. McDuff, and Rosalind W. Picard Advancements in noncontact, multiparameter physiological measurements using a webcam in IEEE Transactions on Biomedical Engg, VOL. 58, NO. 1, JAN 2010

T. M. Nazmy, H. ElMessiry, B. AlBokhity Adaptive neurofuzzy inference system for classification of ecg signalsin Journal of Theoretical and Applied Information Technology.

T. M. Nazmy H. ELMessiry B. ALBokhity. Classification of Cardiac Arrhythmia based on Hybrid System in International Journal of Computer Applications (0975 8887) Volume 2 No.4, June 2010

Haiying Zhou, Kun Mean Hou, Laurent Gineste, Christophe De Vaulx A New System Dedicated to Realtime Cardiac Arrhythmias Teleassistance and Monitoring in Journal of Universal Computer Science, vol. 12, no. 1 (2006), 3044

Aapo HyvÃ¤rinen and Erkki Oja Independent Component Analysis: Algorithms and Applications Neural Networks, 13(45):411430, 2000

John Allen Photoplethysmography and its application in clinical physiological measurement in IOP publishing

Petr TichavskÂ´y and Zbynek KoldovskÂ´ fast and accurate methods of independent component analysis a survey in kybernetika volume 4 7 ( 2 0 1 1 ) .

HW Chiu, CY Hsu Applying Independent Component Analysis to Heart Rate and Blood Pressure Variations in 02766547/05 $20.00 Â© 2005 IEEE

Dengao LI, Yue ZHANG, Jumin ZHAO, Lingyan ZHOU, Yiwen MA ECG Extraction Based on Negenropy maximization FastICA in Journal of Computational Information Systems 8: 18 (2012) 74937500

Tomas Zeman Newton's method for FastICA algorithm CTU FEE, Dept. of Circuit Theory