SlideShare a Scribd company logo
1 of 24
ECG Signals Classification using
Continuous Wavelet Transform (CWT)
& Deep Neural Network
ECE2006- Digital Signal Processing
2
B.Bhargav Reddy( 19BEC0802 )
SAI SIVA RAMA (19BEC0097)
Shahukari Chetan ( 19BEC0858 )
TEAM MEMBERS
The aim of this study is to develop an algorithm to detect and classify the types of electrocardiogram (ECG)
signal beats By using Continuous Wavelet Transform (CWT) & Deep Neural Network. The goal is to train a CNN to
distinguish Between ARR, CHF and NSR.
Early detection of arrhythmia and effective treatment can prevent deaths caused by cardiovascular disease (CVD).
In clinical practice, the diagnosis is made by checking the electrocardiogram (ECG) beat-by-beat, but this is
usually time-consuming and laborious. In the paper, we propose an automatic ECG classification method based on
Continuous Wavelet Transform (CWT) and Convolutional Neural Network (CNN). CWT is used to decompose ECG
signals to obtain different time-frequency components, and CNN is used to extract features from the 2D-
scalogram composed of the above time-frequency components. Considering the surrounding R peak interval (also
called RR interval) is also useful for the diagnosis of arrhythmia, four RR interval features are extracted and
combined with the CNN features to input into a fully connected layer for ECG classification. By testing in the MIT-
BIH arrhythmia database, our method achieves an overall performance of 70.75%, 67.47%, 68.76%, and 98.74% for
positive predictive value, sensitivity, F1-score, and accuracy, respectively. Compared with existing methods, the
overall F1-score of our method is increased by 4.75~16.85%. Because our method is simple and highly accurate, it
can potentially be used as a clinical auxiliary diagnostic tool. 3
Abstract
Block Diagram
4
ECG SIGNAL
Pre-processing
Main process Classification
5
 Types of ECG Signals for Classification.
 ECG Signal Database.
 Converting 1D ECG signals to image Using CWT Scalogram.
 Transfer Learning via pretrained AlexNet deep CNN.
 MATLAB Code for CWT Scalogram Image database creation.
 MATLAB Code for AlexNet Traning and Validation.
Contents
6
👉ARR: Arrhythmias
👉CHF: Congestive Heart Failure
👉NSR: Normal Sinus Rhythm
Types of ECG Signals for Classification
The goal is to train CNN
to distinguish Between
ARR,CHF and NSR.
7
ECG Signals Database
We use ECG signals of three categories:
 Cardiac Arrhythmia (ARR)
 Congestive Heart Failure (CHF) and
 Normal Sinus Rhythms (NSR).
These signals are obtained from 162 ECG recordings from three PhysioNet databases:
 MIT-BIH Arrhythmia Database (96 Recordings) [ARR Signals]
 MIT-BIH Normal Sinus Rhythm Database (30 Recordings) [NSR Signals] and
 BIDMC Congestive Heart Failure Database (36 Recordings) [CHF Signals].
8
Here data variable is a matrix of size 162 X 65536. It means it carries total 162 ECG signals of size
65536 samples each. From labels, we get types of ECG signals information. That is,
 1:96 are ARR signals (96)
 97:126 are CHE signals (30) and
 127:162 are NSR signals (36)
 Place the ECGData.mat file in current working directory.
 Load the this file in workspace by load command.
ECG Signals Database
>>load('ECGData.mat’); %Load ECG data
>> data = ECGData.Data; %Get Signal Values in data
>> labels = ECGData.Labels; %Get Labels in labels
9
For our problem, we pre-process the database. Each recording is of 65,536 samples
therefore, it can be broken into small signals of length 500 samples to increase
the size of database to make it appropriate to train a CNN. For this purpose,
ECG Signals Database Preparation
 We take 30 recordings of each type (ARR, CHF, NSR) to have equal distribution.
 Each recording is broken in to 10 pieces of length of 500 samples.
 Therefore, each category will provide 300 recordings of size 500 samples and total will be
900 recordings.
 Out of 900 recordings, 750 will be used for training and 150 will be used for testing.
10
Now we will convert all the 1D signals into images using Continuous Wavelet Transform (CWT)
so that they can be fed as input to some CNN for classification. For this purpose,
ECG Signals to Image conversion using CWT
 We take CWT of each 1D signal and all the coefficients are arranged to form a CWT Scalogram.
 Each Scalogram s represented in colormap of type jet of 128 colors. .
 Scalogram is converted in to image and saved in folders corresponding to each class.
 Each image is of size 227x227 (To be used for AlexNet) in RGB color format.
 After conversion we have total 900 scalogram images saved in three folders corresponding to each
category ARR, CHF and NSR.
11
 For Continuous Wavelet Transform (CWT), we take following parameters.
 Wavelet used is ‘Analytic Morlet (amor)’.
 This wavelet has equal variance in time and frequency.
 Analytic wavelets are wavelets with one-sided spectra, and are complex valued in the time
domain.
 These wavelets are a-good-choice for obtaining a time-frequency-analysis using the CWT.
 12 wavelet bandpass filters per octave (12 voices per octave) are used for CWT.
ECG Signals to Image conversion using CWT
12
 For ECG signal classification, we will use a pretrained deep CNN: AlexNet.
 AlexNet has been trained on over a million images and can classify images into 1000 object
categories.
 Fine tuning a pretrained CNN to perform classification on a new collection of images is called
Transfer learning.
 Transfer learning is quick and easy rather than training a CNN from scratch which requires
millions of input images, lots of training time and high speed efficient hardware.
Transfer Learning via AlexNet
13
14
15
16
17
18
19
20
21
22
Time schedule to complete this task
Week 1 : Research and collect data, learn to work with MATLAB.
Week 2 :We will Learning How to convert 1D ECG signals to image using CWT coefficients in the
form of Scalogram. And we Start researching on ECG signals making aspects,
Week 3 : We will learn what is transfer learning and How we can train Alex naft which is a deep CNN
on our set of images. With the help of Matlab we will design the Database creation.
Week 4 : We will come with Complete ECG Signals Classification using Continuous Wavelet
Transform (CWT) & Deep Neural Network design, carry out simulations and test controller.
23
Reference:
[1]“https://www.researchgate.net/publication/224226027_Heart_arrhythmia_detection_using_continuous
_wavelet_transform_and_principal_component_analysis_with_neural_network_classifier ”
[2] “https://www.researchgate.net/figure/Schematic-of-the-designed-algorithm_fig2_224226027”
[3] “Sannino, G.; De Pietro, G. A deep learning approach for ECG-based heartbeat classification for
arrhythmia detection. Future Gener. Comput. Syst. 2018, 86, 446–455.”
[4] “Yıldırım, Ö.; Pławiak, P.; Tan, R.S.; Acharya, U.R. Arrhythmia detection using deep convolutional neural
network with long duration ECG signals. Comput. Biol. Med. 2018, 102, 411–420. “
24

More Related Content

What's hot

What's hot (6)

M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD
 
Grovers Algorithm
Grovers Algorithm Grovers Algorithm
Grovers Algorithm
 
How to Measure RTOS Performance
How to Measure RTOS Performance How to Measure RTOS Performance
How to Measure RTOS Performance
 
Introduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSPIntroduction to Wavelet Transform with Applications to DSP
Introduction to Wavelet Transform with Applications to DSP
 
Ecg beat classification and feature extraction using artificial neural networ...
Ecg beat classification and feature extraction using artificial neural networ...Ecg beat classification and feature extraction using artificial neural networ...
Ecg beat classification and feature extraction using artificial neural networ...
 
Natural Language processing Parts of speech tagging, its classes, and how to ...
Natural Language processing Parts of speech tagging, its classes, and how to ...Natural Language processing Parts of speech tagging, its classes, and how to ...
Natural Language processing Parts of speech tagging, its classes, and how to ...
 

Similar to Dsp review 1,2,3

D032021027
D032021027D032021027
D032021027
inventy
 
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
paperpublications3
 
Classification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural NetworksClassification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural Networks
Gaurav upadhyay
 
Iaetsd a review on ecg arrhythmia detection
Iaetsd a review on ecg arrhythmia detectionIaetsd a review on ecg arrhythmia detection
Iaetsd a review on ecg arrhythmia detection
Iaetsd Iaetsd
 
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
CSCJournals
 

Similar to Dsp review 1,2,3 (20)

Dsp review
Dsp reviewDsp review
Dsp review
 
1804.06812
1804.068121804.06812
1804.06812
 
D032021027
D032021027D032021027
D032021027
 
Fo3610221025
Fo3610221025Fo3610221025
Fo3610221025
 
Cloud-based ECG classification with mobile interface.pptx
Cloud-based ECG classification with mobile interface.pptxCloud-based ECG classification with mobile interface.pptx
Cloud-based ECG classification with mobile interface.pptx
 
A Review on ECG -Signal Classification of Scalogram Snap shots the use of Con...
A Review on ECG -Signal Classification of Scalogram Snap shots the use of Con...A Review on ECG -Signal Classification of Scalogram Snap shots the use of Con...
A Review on ECG -Signal Classification of Scalogram Snap shots the use of Con...
 
Automatic Detection of Heart Disease Using Discreet Wavelet Transform and Art...
Automatic Detection of Heart Disease Using Discreet Wavelet Transform and Art...Automatic Detection of Heart Disease Using Discreet Wavelet Transform and Art...
Automatic Detection of Heart Disease Using Discreet Wavelet Transform and Art...
 
Classification of ecg signal using artificial neural network
Classification of ecg signal using artificial neural networkClassification of ecg signal using artificial neural network
Classification of ecg signal using artificial neural network
 
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
A new approach for Reducing Noise in ECG signal employing Gradient Descent Me...
 
Automatic ECG signal denoising and arrhythmia classification using deep learning
Automatic ECG signal denoising and arrhythmia classification using deep learningAutomatic ECG signal denoising and arrhythmia classification using deep learning
Automatic ECG signal denoising and arrhythmia classification using deep learning
 
Classification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural NetworksClassification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural Networks
 
Jq3516631668
Jq3516631668Jq3516631668
Jq3516631668
 
CLASSIFICATION OF ECG ARRHYTHMIAS USING /DISCRETE WAVELET TRANSFORM AND NEURA...
CLASSIFICATION OF ECG ARRHYTHMIAS USING /DISCRETE WAVELET TRANSFORM AND NEURA...CLASSIFICATION OF ECG ARRHYTHMIAS USING /DISCRETE WAVELET TRANSFORM AND NEURA...
CLASSIFICATION OF ECG ARRHYTHMIAS USING /DISCRETE WAVELET TRANSFORM AND NEURA...
 
Iaetsd a review on ecg arrhythmia detection
Iaetsd a review on ecg arrhythmia detectionIaetsd a review on ecg arrhythmia detection
Iaetsd a review on ecg arrhythmia detection
 
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
ECG Signal Compression Technique Based on Discrete Wavelet Transform and QRS-...
 
Wavelet based Signal Processing for Compression a Methodology for on-line Tel...
Wavelet based Signal Processing for Compression a Methodology for on-line Tel...Wavelet based Signal Processing for Compression a Methodology for on-line Tel...
Wavelet based Signal Processing for Compression a Methodology for on-line Tel...
 
IRJET- Arrhythmia Detection using One Dimensional Convolutional Neural Network
IRJET- Arrhythmia Detection using One Dimensional Convolutional Neural NetworkIRJET- Arrhythmia Detection using One Dimensional Convolutional Neural Network
IRJET- Arrhythmia Detection using One Dimensional Convolutional Neural Network
 
7. 60 69
7. 60 697. 60 69
7. 60 69
 
Classification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural NetworksClassification and Detection of ECG-signals using Artificial Neural Networks
Classification and Detection of ECG-signals using Artificial Neural Networks
 
A Simple and Robust Algorithm for the Detection of QRS Complexes
A Simple and Robust Algorithm for the Detection of QRS ComplexesA Simple and Robust Algorithm for the Detection of QRS Complexes
A Simple and Robust Algorithm for the Detection of QRS Complexes
 

More from ChetanShahukari (12)

Presentation1 copy (4)
Presentation1   copy (4)Presentation1   copy (4)
Presentation1 copy (4)
 
Presentation1 copy (3)
Presentation1   copy (3)Presentation1   copy (3)
Presentation1 copy (3)
 
Dsp lab task1 ganesh
Dsp lab task1 ganeshDsp lab task1 ganesh
Dsp lab task1 ganesh
 
Urbanplanning cat1
Urbanplanning cat1Urbanplanning cat1
Urbanplanning cat1
 
Micro task1
Micro task1Micro task1
Micro task1
 
Presentation1
Presentation1Presentation1
Presentation1
 
Dsp lab task 2
Dsp lab task 2Dsp lab task 2
Dsp lab task 2
 
19bec0855 project review 1-converted
19bec0855 project review 1-converted19bec0855 project review 1-converted
19bec0855 project review 1-converted
 
Iot vijaya priya r cat1
Iot vijaya priya r cat1Iot vijaya priya r cat1
Iot vijaya priya r cat1
 
Ppt 2
Ppt 2Ppt 2
Ppt 2
 
Presentation1 copy (2)
Presentation1   copy (2)Presentation1   copy (2)
Presentation1 copy (2)
 
Presentation1 copy
Presentation1   copyPresentation1   copy
Presentation1 copy
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 

Dsp review 1,2,3

  • 1. ECG Signals Classification using Continuous Wavelet Transform (CWT) & Deep Neural Network ECE2006- Digital Signal Processing
  • 2. 2 B.Bhargav Reddy( 19BEC0802 ) SAI SIVA RAMA (19BEC0097) Shahukari Chetan ( 19BEC0858 ) TEAM MEMBERS
  • 3. The aim of this study is to develop an algorithm to detect and classify the types of electrocardiogram (ECG) signal beats By using Continuous Wavelet Transform (CWT) & Deep Neural Network. The goal is to train a CNN to distinguish Between ARR, CHF and NSR. Early detection of arrhythmia and effective treatment can prevent deaths caused by cardiovascular disease (CVD). In clinical practice, the diagnosis is made by checking the electrocardiogram (ECG) beat-by-beat, but this is usually time-consuming and laborious. In the paper, we propose an automatic ECG classification method based on Continuous Wavelet Transform (CWT) and Convolutional Neural Network (CNN). CWT is used to decompose ECG signals to obtain different time-frequency components, and CNN is used to extract features from the 2D- scalogram composed of the above time-frequency components. Considering the surrounding R peak interval (also called RR interval) is also useful for the diagnosis of arrhythmia, four RR interval features are extracted and combined with the CNN features to input into a fully connected layer for ECG classification. By testing in the MIT- BIH arrhythmia database, our method achieves an overall performance of 70.75%, 67.47%, 68.76%, and 98.74% for positive predictive value, sensitivity, F1-score, and accuracy, respectively. Compared with existing methods, the overall F1-score of our method is increased by 4.75~16.85%. Because our method is simple and highly accurate, it can potentially be used as a clinical auxiliary diagnostic tool. 3 Abstract
  • 5. 5  Types of ECG Signals for Classification.  ECG Signal Database.  Converting 1D ECG signals to image Using CWT Scalogram.  Transfer Learning via pretrained AlexNet deep CNN.  MATLAB Code for CWT Scalogram Image database creation.  MATLAB Code for AlexNet Traning and Validation. Contents
  • 6. 6 👉ARR: Arrhythmias 👉CHF: Congestive Heart Failure 👉NSR: Normal Sinus Rhythm Types of ECG Signals for Classification The goal is to train CNN to distinguish Between ARR,CHF and NSR.
  • 7. 7 ECG Signals Database We use ECG signals of three categories:  Cardiac Arrhythmia (ARR)  Congestive Heart Failure (CHF) and  Normal Sinus Rhythms (NSR). These signals are obtained from 162 ECG recordings from three PhysioNet databases:  MIT-BIH Arrhythmia Database (96 Recordings) [ARR Signals]  MIT-BIH Normal Sinus Rhythm Database (30 Recordings) [NSR Signals] and  BIDMC Congestive Heart Failure Database (36 Recordings) [CHF Signals].
  • 8. 8 Here data variable is a matrix of size 162 X 65536. It means it carries total 162 ECG signals of size 65536 samples each. From labels, we get types of ECG signals information. That is,  1:96 are ARR signals (96)  97:126 are CHE signals (30) and  127:162 are NSR signals (36)  Place the ECGData.mat file in current working directory.  Load the this file in workspace by load command. ECG Signals Database >>load('ECGData.mat’); %Load ECG data >> data = ECGData.Data; %Get Signal Values in data >> labels = ECGData.Labels; %Get Labels in labels
  • 9. 9 For our problem, we pre-process the database. Each recording is of 65,536 samples therefore, it can be broken into small signals of length 500 samples to increase the size of database to make it appropriate to train a CNN. For this purpose, ECG Signals Database Preparation  We take 30 recordings of each type (ARR, CHF, NSR) to have equal distribution.  Each recording is broken in to 10 pieces of length of 500 samples.  Therefore, each category will provide 300 recordings of size 500 samples and total will be 900 recordings.  Out of 900 recordings, 750 will be used for training and 150 will be used for testing.
  • 10. 10 Now we will convert all the 1D signals into images using Continuous Wavelet Transform (CWT) so that they can be fed as input to some CNN for classification. For this purpose, ECG Signals to Image conversion using CWT  We take CWT of each 1D signal and all the coefficients are arranged to form a CWT Scalogram.  Each Scalogram s represented in colormap of type jet of 128 colors. .  Scalogram is converted in to image and saved in folders corresponding to each class.  Each image is of size 227x227 (To be used for AlexNet) in RGB color format.  After conversion we have total 900 scalogram images saved in three folders corresponding to each category ARR, CHF and NSR.
  • 11. 11  For Continuous Wavelet Transform (CWT), we take following parameters.  Wavelet used is ‘Analytic Morlet (amor)’.  This wavelet has equal variance in time and frequency.  Analytic wavelets are wavelets with one-sided spectra, and are complex valued in the time domain.  These wavelets are a-good-choice for obtaining a time-frequency-analysis using the CWT.  12 wavelet bandpass filters per octave (12 voices per octave) are used for CWT. ECG Signals to Image conversion using CWT
  • 12. 12  For ECG signal classification, we will use a pretrained deep CNN: AlexNet.  AlexNet has been trained on over a million images and can classify images into 1000 object categories.  Fine tuning a pretrained CNN to perform classification on a new collection of images is called Transfer learning.  Transfer learning is quick and easy rather than training a CNN from scratch which requires millions of input images, lots of training time and high speed efficient hardware. Transfer Learning via AlexNet
  • 13. 13
  • 14. 14
  • 15. 15
  • 16. 16
  • 17. 17
  • 18. 18
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22
  • 23. Time schedule to complete this task Week 1 : Research and collect data, learn to work with MATLAB. Week 2 :We will Learning How to convert 1D ECG signals to image using CWT coefficients in the form of Scalogram. And we Start researching on ECG signals making aspects, Week 3 : We will learn what is transfer learning and How we can train Alex naft which is a deep CNN on our set of images. With the help of Matlab we will design the Database creation. Week 4 : We will come with Complete ECG Signals Classification using Continuous Wavelet Transform (CWT) & Deep Neural Network design, carry out simulations and test controller. 23
  • 24. Reference: [1]“https://www.researchgate.net/publication/224226027_Heart_arrhythmia_detection_using_continuous _wavelet_transform_and_principal_component_analysis_with_neural_network_classifier ” [2] “https://www.researchgate.net/figure/Schematic-of-the-designed-algorithm_fig2_224226027” [3] “Sannino, G.; De Pietro, G. A deep learning approach for ECG-based heartbeat classification for arrhythmia detection. Future Gener. Comput. Syst. 2018, 86, 446–455.” [4] “Yıldırım, Ö.; Pławiak, P.; Tan, R.S.; Acharya, U.R. Arrhythmia detection using deep convolutional neural network with long duration ECG signals. Comput. Biol. Med. 2018, 102, 411–420. “ 24