Abstract

An arrhythmia is an irregularity with the speed or rhythm of the heartbeat. During an arrhythmia, the heart can beat too fast, too slow, or with an irregular rhythm. Most arrhythmias are harmless, but some can be serious or even life threatening. The present paper deals with the classification scheme of arrhythmia commonly occurring in human beings of Southeast Asian countries. Medical knowledge used in practice has been closely studied for modelling user friendly referral system to sharpen arrhythmia diagnosis by experts and this system is tested with satisfactory factor which is measured with degree of match criterion under the domain of considered inputs and computed output.

1. Introduction

In Charaka and Sushruta Samhitas there is a description of five types of heart disease, namely, Vatika, Paittika, Kaphaj, Tridoshaj, and Krimij that are caused due to Vata, Pitta, Kapha, triple doshas, and worms, respectively. Hridrog Prakarana deals with the treatment for above-mentioned heart diseases. It appears that many kinds of heart related diseases like arrhythmia have been included under Vat-induced inflammation and respiratory disease on the ground of similarity of symptoms. According to Ayurved, when Pran vayu and Saman vayu along with Avlambak kapha get disturbed due to faulty diet (rich in salt, bitter, and pungent), excessive smoking, and prolonged alcohol consumption, the cardiac rhythm may be slow or fast [1]. Although ancient Chinese pulse theory laid the foundation for the study of arrhythmias and clinical electro physiology in the 5th century BC, the most significant breakthrough in the identification and treatment of cardiac arrhythmias first occurred in the 20th century. Hippocrates stated in his Aphorisms (Section II, number 41): those who are subject to frequent and severe fainting attacks without obvious cause die suddenly. This might be the first description of sudden cardiac death [2]. In 1958, Furman and Robinson showed that the heart could be stimulated by connecting an intracardiac catheter to a stimulator. In the late 1960s, a major breakthrough in our understanding of cardiac arrhythmias came when a reliable recording of the electrogram of the Bundle of His and programmed electrical stimulation of the heart became available for clinical use. The background for these developments came from the work of pioneers such as Hecht, Latour, Puech, and Giraud who, in the 1940s to 1950s, showed that intracardiac catheters could be used to record electrical activity inside the heart and to map cardiac activation [3].

There has been extensive work on techniques of classification of arrhythmia based on databases that may not be relevant for present-day clinical diagnostic systems. This is due to limitation in types of arrhythmia considered in them. The present papaer tries to overcome this limitation. Mahmoodabadi, et al. suggested that Neural Networks cannot respond correctly to unpredictable and abrupt changes encountered in patients because of varying shapes of arrhythmias. In contrast, the application of fuzzy tools is firmly tied to human judgment; therefore the study of human behaviour towards a problem is very important to achieve reasonable results [4].

In the field of medicine, Bellman and Zadeh [5] proposed application of fuzzy tools. In 1973, Zadeh [6] introduced a number of procedures to design and develop fuzzy algorithm for the analysis of complex systems and its decision processes. Zong and Jiang [7] presented a fuzzy reasoning approach for ECG beat rhythm detection and classification. They used linguistic variables to represent beat features and fuzzy conditional statements perform reasoning. De Chazal et al. [8] proposed method for the automatic processing of the electrocardiogram for the classification of heartbeats in which allocation of detected heartbeats to one of the five beat classes recommended by ANSI/AAMI (American National Standards Institute/Association for the Advancement of Medical Instrumentation) EC57:1998 standard, that is, normal beat, ventricular ectopic beat (VEB), supraventricular ectopic beat, fusion of a normal and a VEB, or unknown beat type was manually performed on data obtained from the 44 nonpacemaker recordings of the MIT-BIH arrhythmia database. Yeh et al. [9] proposed fuzzy logic method to analyse ECG signals for determining the heartbeat case which can accurately classify and distinguish both normal heartbeats and abnormal heartbeats; Mahmoodabadi et al. [4] selected ECG features which are compared medically accepted normal cases using the fuzzy classifier, and arrhythmias will be detected accordingly. The inference section of a fuzzy classifier implemented expert designed fuzzy rules. Sadiq and Khan [10] presented an automated approach to beat recognition of four different beat types in ECGs, namely, normal beats, ventricular ectopic beats, supraventricular ectopic beats, and fusion beats with the help of feature vector to differentiate between the different beats containing morphological features and beat intervals for each beat. Recently, in soft computing risk assessment scheme for cardiac analysis and hypertension proposed by P. Srivastava and A. Srivastava [11, 12], the system designed on MATLAB Software gives the person the ratio of the risk and may recommend whether person has to live life normally or with diet or with drug treatment, respectively. Srivastava et al. [13] proposed a soft computing classification criterion to design and develop user friendly diagnostic system for Hepatitis B and the clinical data of the patients and the opinions of medical experts have been utilized to design the diagnostic system. Srivastava et al. [15] proposed soft computing diagnostic system for diabetes that sharpens the diagnostic process as well as guides patients to evolve strategies to control their sugar level. Recently, Srivastava and Sharma [16] proposed a soft computing decision making model to handle real life complex problems related with medical sciences.

2. Materials and Method

The proposed soft computing system is designed by making use of facts related to Sugeno approach of fuzzy inference. The system is applied to real and fresh data collected from hospitals in and around Allahabad district (U.P., India). The categorization of arrhythmia is done by making use of available data and specific features from ECG appropriate to do the classification are decided upon. The input parameters of the system are framed on the basis of ten factors responsible for arrhythmia and output is the type of arrhythmia classification. The accuracy of the inference is obtained by comparing it with the results provided by expert cardiologists.

The algorithm proposed helps us in designing the following information system. There are three steps as in Algorithm 1.

STEP 1:  Algorithm for Fuzzification Mechanism
(1) Input—Fuzzy System with suitable “ ” parameters
,
(2)
While     do
 (1) Categorize in fuzzy sets in linguistic variables,
 while   do
  (1) Design suitable membership function
 end while
end while
STEP 2: Algorithm for Fuzzy Rule Base and Defuzzification Mechanism
(1) Input—“ ” linguistic variables , and
(2) Input—“ ” output parameter ,
(3) Develop “ ” If-Then Fuzzy Rules in consultation with medical experts,
(4) Input—Fuzzy Rule Base
(5) Input—Values of parameters
(6)
while    do
 (1) Calculate firing strength ,
 (2) th rule’s consequent fuzzy set.
end while
(7) Final Output of the fuzzy system
(8) Evaluated Diagnosis (ED) = Final output
STEP 3: Algorithm for Satisfactory Factor Mechanism
(1) Input—Evaluated Diagnosis (ED), Observed Diagnosis (OD)
(2) Input—“ ” input parameter , and output result
(3)
(4)
while    do
 (1) Calculate DM( ) = 2
 (2) AND DM( )
end while
(5) Calculate ( ) = 2
(6) Evaluate Satisfactory Factor (SF) =

2.1. Input Parameters

The ten input factors are ventricular rate (VR), PR interval (PRI), QRS duration (QRSd), R-R interval, atrial rate (AR), P-P interval (P-P), P-QRS ratio (P : QRS),  :  ratio,  :  ratio, and T wave.

(a) Ventricular rate (VR) is categorized in four different fuzzy sets with their membership functions shown in Figure 1 as follows:(1)slow (S): <40 bpm,(2)normal (N): 40 to 100 bpm,(3)high (H): 100 to 150 bpm,(4)very high (VH): >150 bpm,

(b) PR interval (PRI) which represents atrial depolarization is categorized in three different fuzzy sets shown in Figure 2 with their membership functions as follows:(1)narrow (Na): <120 ms,(2)normal (N): 120–200 ms,(3)broad (B): >200 ms,

(c) QRS duration (QRSd) is categorized in three different fuzzy sets having their membership functions shown in Figure 3 as follows:(1)narrow (Na): <60 ms,(2)normal (N): 60–100 ms,(3)broad (B): >100 ms,

(d) R-R interval (RR) is categorized in three different fuzzy sets with their membership functions shown in Figure 4 as follows:(1)short (S) <0.60 : sec,(2)normal (N): 0.6–1 sec,(3)wide (W): >1 sec,

(e) Atrial rate (AR) which is the Atrial rhythm calculated by P waves is categorized in six different fuzzy sets shown in Figure 5 as follows:(1)slow (S): <60 bpm,(2)normal (N): 60–100 bpm,(3)little bit high (LH): 100–150 bpm,(4)high (H): 150–250 bpm,(5)very high (VH): 250–350 bpm,(6)extremely high (EH): >350 bpm,

(f) P-P interval (PP) is categorized in three different fuzzy sets with their membership functions shown in Figure 6 as follows:(1)short (S): <0.60 sec,(2)normal (N): 0.6–1 sec,(3)wide (W): >1 sec,

(g) P-QRS ratio (P : QRS) shows the ratio of P wave to QRS wave in one cardiac cycle. It is categorized in the following three different fuzzy sets with their membership functions shown in Figure 7:(1)low (L): <1,(2)desirable (D): =1,(3)high (H): >1,

(h)  :  ratio is the ratio of two successive R-R intervals. It is categorized in the following three fuzzy factors with their membership functions shown in Figure 8:(1)low (L): <1,(2)desirable (D): =1,(3)high (H): >1,

(i) :  ratio is the ratio of two successive P-P intervals. It is categorized in following three fuzzy factors with their membership functions shown in Figure 9:(1)low (L): <1,(2)desirable (D): =1,(3)high (H): >1,

(j) T wave is categorized in three fuzzy sets shown in Figure 10 with their membership functions as follows:(1)negative (N): <0,(2)isolated (I): =0,(3)positive (P): >0,

2.2. Output Parameter

The abnormalities in rhythm of the heart contribute to a number of arrhythmia of which we have taken thirteen types as outputs for the classification of arrhythmia. These are as follows: Normal (N), Sinus Tachycardia (ST), Atrial Tachycardia (AT), Atrial Flutter (AF), Atrial Fibrillation (AFb), Ventricular Tachycardia (VT), Sinus Bradycardia (SB), First AV Block (1st B), Second AV Block Type 1 (2nd B1), Second AV Block Type 2 (2nd B2), Third AV Block (3rd B), Premature Atrial Contraction (PAC), and Premature Ventricular Contraction (PAC). Spikes are used to represent these outputs as given in Figure 11.

2.3. Fuzzy Inference System

Evaluation of ECG signals for arrhythmia detection consists of the determination of several characteristics of the signal. In order to classify different types of arrhythmia fifty five rules are constructed with the help of medical experts. They are given in Table 1.

The output , that is, conclusion part of a rule is weighted by the firing strength of the rule which is calculated by using AND operation on each antecedent , where is the number of inputs used in each rule as follows:

This firing strength is further used in finding the final conclusion of the proposed system using the defuzzification of weighted average of all rule outputs , = .

The final output of the system is calculated by .

In order to know to what extent our result is satisfied by given inputs and observed outputs, we make use of Degree of Match algorithm to compute satisfactory factor [17].

Ten cases are discussed below to show the effectiveness of the proposed system.

2.4. Case Study

Case 1. The ECG record of the concerned patient is manually calculated as follows.
VR = 110 bpm, PRI = 90 ms, QRSd = 100 ms, AR = 410 bpm, R-R interval = 0.46 sec, P-P interval = 0.15 sec, P : QRS = 2, , and T wave is positive.
The membership functions designed for input parameters are used to fuzzify the crisp inputs which are transformed into fuzzy outputs by making use of the constructed fuzzy IF-THEN rules and finally defuzzified by using the weighted average function defined above.
The defuzzification is shown in Figure 12 which shows the output that is, Arrhythmia = 4, which stands for the Atrial Fibrillation (AFb). This diagnosis matches the observed diagnosis by medical experts.
In order to measure satisfactory factor, values of Degree of Match of input parameters are computed and total Degree of Match of inputs is given below:
Degree of Match of output is 1; hence our satisfactory factor is = = 0.467 which lies between 0 and 1 and near to zero, that meets level of satisfaction.

Case 2. The ECG record of the concerned patient is manually calculated as follows.
VR = 114 bpm, PRI = 120 ms, QRSd = 296 ms, AR = 20 bpm, R-R interval = 0.52 sec, P-P interval = 0.5 sec, P : QRS = 0, = 1.2 = 1 and T wave is negative.
Implementing these features, the Arrhythmia output is 8.59; that is, heart beat is Second AV Block Type 2 (2nd B2). Here, the observed diagnosis by medical expert is Ventricular Tachycardia (VT).
Values of Degree of Match of input parameters are computed and total Degree of Match of inputs is given below:
Degree of Match of output is −1; thus = = = 1.5 which does not lie between zero and one; therefore level of satisfaction is not good.

Case 3. The ECG record of the patient, as follows.
VR = 40 bpm, PRI = 120 ms, QRSd = 150 ms, AR = 91 bpm, R-R interval = 1.5 sec, P-P interval = 0.66 sec, P : QRS = 1.2, = 1.5, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 9.77; that is, heart beat is Third AV Block (3B). Here, the observed diagnosis by medical expert is the same, that is, Third AV Block (3B).
Values of Degree of Match of input parameters are computed and total Degree of Match of inputs is given below:
Degree of Match of output is −1; thus = = = 1.5 which does not meet level of satisfaction.

Case 4. The ECG record of the patient is as follows.
VR = 104.89 bpm, PRI = 164 ms, QRSd = 94 ms, AR = 107.14 bpm, R-R interval = 0.572 sec, P-P interval = 0.56 sec, P : QRS = 1, = 1.2, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 9; that is, heart beat is Second AV Block Type. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.978.

Case 5. The ECG record of the patient is as follows.
VR = 132 bpm, QRSd = 80 ms, R-R interval = 0.457 sec, P : QRS = 1.6, = 1.4 and T, wave is positive.
Implementing these features, the Arrhythmia output is 1; that is, heart beat is Sinus Tachycardia. The observed diagnosis by medical expert is Atrial Flutter.
The satisfactory factor is = = 1.63.

Case 6. The ECG record of the patientis as follows.
VR = 57.25 bpm, PRI = 185 ms, QRSd = 73.2 ms, AR = 57.25 bpm, R-R interval = 1.048 sec, P-P interval = 1.048 sec, P : QRS = 1, = 1, = 1 and T wave is positive.
Implementing these features, the Arrhythmia output is 0; that is, heart beat is Normal. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.45.

Case 7. The ECG record of the patient is as follows.
VR = 61.37 bpm, PRI = 168 ms, QRSd = 68 ms, AR = 61.37 bpm, R-R interval = 0.97 sec, P-P interval = 0.97 sec, P : QRS = 1, = 1, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 0; that is, heart beat is Normal. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.5.

Case 8. The ECG record of the patient is as follows.
VR = 91.3 bpm, PRI = 152 ms, QRSd = 88 ms, AR = 90.2 bpm, R-R interval = 0.66 sec, P-P interval = 0.67 sec, P : QRS = 1, = 1, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 0; that is, heart beat is Normal. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.5.

Case 9. The ECG record of the patient is as follows.
VR = 41.5 bpm, PRI = 150 ms, QRSd = 98 ms, AR = 40 bpm, R-R interval = 1.45 sec, P-P interval = 1.49 sec, P : QRS = 1, = 1, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 6; that is, heart beat is Sinus Bradycardia. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.4.

Case 10. The ECG record of the patient is as follows.
VR = 61.3 bpm, PRI = 134 ms, QRSd = 65 ms, AR = 59 bpm, R-R interval = 0.98 sec, P-P interval = 0.99 sec, P : QRS = 1, = 1, = 1, and T wave is positive.
Implementing these features, the Arrhythmia output is 6; that is, heart beat is Normal. The evaluated diagnosis is verified by medical expert.
The satisfactory factor is = = 0.5.

3. Conclusion

The proposed system is capable enough to categorize an ECG waveform into one of the thirteen types of Arrhythmia. The results obtained from the soft system concur with the results provided by experts in 91 out of 105 cases. As available in literature we have observed that classifiers introduced so far cater different types of Arrhythmia, mostly based on databases from western countries. This work is significant as it caters to the most commonly occurring Arrhythmias and provides an easy and reliable tool to apply in real time systems and automation projects, for use in ICU and patient monitoring systems. It can also be used in day-to-day diagnosis of Arrhythmia by implementing the technique in stand-alone systems. Hence the relevance of this work, which is intended to be incorporated into primary care health facilities catering to a wide patient base, helping timely detection and lessening mortality rates.

Conflict of Interests

All authors, Pankaj Srivastava, Neeraja Sharma and C. S. Aparna disclose that there is no conflict of interests. There are also neither financial nor personal relationships with other people or organizations mentioned in this work that could cause any inappropriate influence.

Acknowledgments

The authors sincerely thank the cardiologists Dr. Geeta Shukla, MD, and Dr. Omar Hasan, DM (Nazarth Hospital, Allahabad, India), for their valuable suggestions and providing data in the preparation of the present paper.