Docsity

Deep Learning Report, Assignments of Artificial Intelligence

Toggle sidebar
bg1
>
1
Abstract— In this paper, we present the implementation of a
diagnostic system based on artificial neural networks (ANN) that
can be used in the detection and classification of heart murmurs.
Segmentation serve as important pre-processing step before
heart sounds are applied to the ANN structure. The output of the
system is the classification of the sound as either normal or a type
of heart murmur. The ultimate goal of this research is to
implement a heart sounds diagnostic system that can be used to
help physicians in the auscultation of patients and to reduce the
errors. Auscultation is one of the most used techniques for
detecting cardiovascular diseases. Error can be of two types:
Type-I error in which healthy patients are sent for
echocardiogram and Type-II error in which pathological patients
are sent home without medication or treatment. In this paper, a
novel circular convolutional neural network-based tool is
presented for classifying between healthy people and pathological
patients. For this purpose, different networks have been trained
with the heart murmur information contained in heart sound
recordings. The best results have been obtained with a modified
version of the AlexNet model, achieving accuracy of 60%. This
tool could aid cardiologists and primary care physicians in the
auscultation process, improving the decision-making task and
reducing type-I and type-II errors.
Index Terms—convolutional neural networks (CNN), circular
convolutional neural networks (CCNN), deep learning, heart
murmur, ReLU, caffe, LeNet, AlexNet, scalogram, SVM, NAS
I. INTRODUCTION
Cost effective, accurate and early detection of cardiac
illnesses is important to curb deaths caused by cardiovascular
diseases. However, a substantial amount of health care money
each year is spent on healthy people when it should be put
toward assisting individuals who are ill [1].
When a patient visits the physician for auscultation, a heart
murmur is the most common abnormal auscultatory finding.
When a murmur is detected, the physician must decide
whether it represents either a pathological or an innocent
murmur [2]. An innocent heart murmur is one which does not
represent current or future illness. Oftentimes, a physician
who suspects that a patient is healthy will still order an
echocardiogram for reassurance [1], this type of error is
referred to as Type-1 error. It is important to avoid this type of
error. It is also important to avoid type-II errors-the situation
where a patient who has a pathological heart murmur is sent
home without proper treatment. [3]
The ultimate-goal of the diagnostic system is to provide
physicians with an inexpensive classification tool to use along
with auscultation. The classifier will help the physicians to
distinguish between healthy and pathological patient.
II. PREVIOUS WORK
A diagnostic system was designed using MATLAB
software and the ANN Toolbox using segmentation and
alignment algorithms. The system was able to classify with up
to 85 ± 7.4% accuracy and 95 ± 6.8% sensitivity the tested
heart sounds [4].
A heart sound feature extraction and classification method
was developed that used the discrete wavelet decomposition
and reconstruction to produce the envelopes of details of the
signals for further extracting the features. The proposed
technique produced high classification rate of 92% correct
classification [5].
A cost-effective method for the heart sound classification
was developed using feature extraction of phonocardiography
signals. The accuracy achieved was close to 93.33% [6].
Another paper described a system for discriminating
innocent from pathologic systolic heart murmurs in children
based on auscultation recordings. For sound signal analysis the
use of reassigned spectrogram was suggested. Both
dimensions and noise of the time-frequency representation
were significantly reduced using higher order singular value
decomposition. Using support vector machines (SVM) for
classification, the suggested approach achieved an Equal Error
Rate of 6.71 ± 1.18% and an Area Under the Curve score of
0.9758 ± 0.0053 (95% confidence intervals) [7].
In another paper, the authors presented a novel
convolutional neural network-based tool for classifying
between healthy people and pathological patients using a
neuromorphic auditory sensor for FPGA that was able to
decompose the audio into frequency bands in real time. The
best results were obtained with a modified version of the
AlexNet model, achieving 97% accuracy (specificity: 95.12%,
sensitivity: 93.20%) [8]. Since this paper provided the best
results compared to the others, we used this paper as a base
reference for our project.
III. SYSTEM OVERVIEW
A. Data Collection
The data set collected for training the neural network
contained several .wav files. Each file contained several
complete cycles of heartbeat (A full cycle of heartbeat
Achint Duggal, Avinash Baldi, and Yojana Goyal, BITS Pilani
Deep Neural Networks for the Recognition and
Classification of Heart Murmurs
pf3
pf4

Partial preview of the text

Download Deep Learning Report and more Assignments Artificial Intelligence in PDF only on Docsity!

Abstract — In this paper, we present the implementation of a diagnostic system based on artificial neural networks (ANN) that can be used in the detection and classification of heart murmurs. Segmentation serve as important pre-processing step before heart sounds are applied to the ANN structure. The output of the system is the classification of the sound as either normal or a type of heart murmur. The ultimate goal of this research is to implement a heart sounds diagnostic system that can be used to help physicians in the auscultation of patients and to reduce the errors. Auscultation is one of the most used techniques for detecting cardiovascular diseases. Error can be of two types: Type-I error in which healthy patients are sent for echocardiogram and Type-II error in which pathological patients are sent home without medication or treatment. In this paper, a novel circular convolutional neural network-based tool is presented for classifying between healthy people and pathological patients. For this purpose, different networks have been trained with the heart murmur information contained in heart sound recordings. The best results have been obtained with a modified version of the AlexNet model, achieving accuracy of 60%. This tool could aid cardiologists and primary care physicians in the auscultation process, improving the decision-making task and reducing type-I and type-II errors. Index Terms — convolutional neural networks (CNN), circular convolutional neural networks (CCNN), deep learning, heart murmur, ReLU, caffe, LeNet, AlexNet, scalogram, SVM, NAS

I. INTRODUCTION

Cost effective, accurate and early detection of cardiac illnesses is important to curb deaths caused by cardiovascular diseases. However, a substantial amount of health care money each year is spent on healthy people when it should be put toward assisting individuals who are ill [1]. When a patient visits the physician for auscultation, a heart murmur is the most common abnormal auscultatory finding. When a murmur is detected, the physician must decide whether it represents either a pathological or an innocent murmur [2]. An innocent heart murmur is one which does not represent current or future illness. Oftentimes, a physician who suspects that a patient is healthy will still order an echocardiogram for reassurance [1], this type of error is referred to as Type-1 error. It is important to avoid this type of error. It is also important to avoid type-II errors-the situation where a patient who has a pathological heart murmur is sent home without proper treatment. [3] The ultimate-goal of the diagnostic system is to provide physicians with an inexpensive classification tool to use along with auscultation. The classifier will help the physicians to distinguish between healthy and pathological patient.

II. PREVIOUS WORK

A diagnostic system was designed using MATLAB software and the ANN Toolbox using segmentation and alignment algorithms. The system was able to classify with up to 85 ± 7.4% accuracy and 95 ± 6.8% sensitivity the tested heart sounds [ 4 ]. A heart sound feature extraction and classification method was developed that used the discrete wavelet decomposition and reconstruction to produce the envelopes of details of the signals for further extracting the features. The proposed technique produced high classification rate of 92% correct classification [5]. A cost-effective method for the heart sound classification was developed using feature extraction of phonocardiography signals. The accuracy achieved was close to 93.33% [6]. Another paper described a system for discriminating innocent from pathologic systolic heart murmurs in children based on auscultation recordings. For sound signal analysis the use of reassigned spectrogram was suggested. Both dimensions and noise of the time-frequency representation were significantly reduced using higher order singular value decomposition. Using support vector machines (SVM) for classification, the suggested approach achieved an Equal Error Rate of 6.71 ± 1.18% and an Area Under the Curve score of 0.9758 ± 0.0053 (95% confidence intervals) [ 7 ]. In another paper, the authors presented a novel convolutional neural network-based tool for classifying between healthy people and pathological patients using a neuromorphic auditory sensor for FPGA that was able to decompose the audio into frequency bands in real time. The best results were obtained with a modified version of the AlexNet model, achieving 97% accuracy (specificity: 95.12%, sensitivity: 93.20%) [ 8 ]. Since this paper provided the best results compared to the others, we used this paper as a base reference for our project.

III. SYSTEM OVERVIEW

A. Data Collection The data set collected for training the neural network contained several .wav files. Each file contained several complete cycles of heartbeat (A full cycle of heartbeat

Achint Duggal, Avinash Baldi, and Yojana Goyal, BITS Pilani

Deep Neural Networks for the Recognition and

Classification of Heart Murmurs

contains S1 as well as S2 which are commonly known as FHS and are caused by closing of valves). The data set collected contained the heart sounds of both normal as well as abnormal persons. B. Feature Extraction Feature extraction could be done using either Fourier transform or through the Discrete wavelet transform (DWT). The frequency spectrum of the signal provided by the former helps us in characterizing the data which could be used for classification of heart sounds. Heart murmurs are located in the 195 Hz band [ 4 ], [ 5 ], but can reach up to 700 Hz [ 6 ], [ 9 ], which confirms that they can be identified and extracted from the heart sound signal in the frequency domain. However, since Fourier Transform leaves us only with the spectral information of the heart sounds, DWT should be used as it helps us in doing temporal as well as the spectral analysis of the signal. DWT analysis is generally recommended rather than the former for characterizing spiking signals such as heart sounds. Among the several prototype wavelets such as Morse, Garber or Haar, Morse wavelet was used as a standard wavelet for doing discrete wavelet transform. After performing DWT, a scalogram is obtained as shown in figure 1. Fig. 1. Scalogram C. Segmentation and Pre-processing The Scalogram containing several cardiac cycles were segmented into images such that one image contained just one cardiac cycle (one systolic and diastolic sound). The window of segmentation was taken to be 0.8 seconds for CNN networks. The pre-processing of the scalogram included zero padding the image to make sure it can be segmented into sub- images of equal size or converting the scalogram image into spherical or cylindrical image for implementing Circular Convolution Neural Networks (CCNN). The sub images found were further converted to RGB format and resized to 60 x 57 to prepare a data set as per specifications of the AlexNet. The images were again resized to prepare for LeNet (which is another CNN structure), so that both neural network could be tested. Fig. 2. Segmented Scalogram AlexNet contains 20 convolution layers of 5x5 with a stride of 1 in its first layer followed by 20 layers of pooling of size 2x2 with a stride of 2 this time. All these specifications are kept same to form 3rd^ and 4th^ layer of the architecture but with 50 filters each in the convolution as well as in the max pooling layer. At last, there are two fully connected layers and ReLU (Rectified Linear Unit) to give the final output. On the other hand, LeNet in general comprises of 4 layers of convolution with max pooling of variable sizes and strides for implementing a CNN. At last, there is a fully connected layer of 500 units followed by ReLU (rectified linear unit) to give the final output. Fig. 3. Feature learned for the convolution layer D. Classification The scalogram images containing both temporal as well as spectrum characteristics were then fed into LeNet and AlexNet for training. As every CNN, AlexNet and LeNet also works on the principle of filters (windows) performing operations on localized data that fall under this window. However, the specification of structure for the architecture are different as shown in figure 3. Every convolution network such as AlexNet as well as LeNet work on some basic parameter such base learning rate, step learning policy and momentum. Base learning rate here refers to the rate at which the convolutional network learns from the input training data. A learning rate too low may result in low rate of convergence of the learning of neural network. However, a learning rate too high may result in somewhat oscillatory performance of the neural network. Base learning rate is also known as the learning rate annealing or adaptive learning rate. It refers to effect of quickly learning good weights early and fine tuning them later. Similarly, momentum here refers to the inertia added to the updated rates by averaging the exponential of the previous updated weights to the new one. Thus, these parameters were being set for AlexNet as well as LeNet before training them with the input data pattern.

to both the number of input feature maps and the number of filters. Circular pooling was also tried to be implemented to make the data set circular invariant which helps in training the neural network using much less parameters or training data set. Thus, these two techniques were tried for implementing on the same neural architecture provided to us by the CNN. VI. RESULTS AND DISCUSSION The neural network trained by the data set showed success rate of 60% (59.71% specifically) as compared to the paper which showed success rate of 95 % [10]. The data was segmented such that CCNN would be implemented by the same network instead on CNN. Experiments were carried out iteratively 5 times for CNN as well CCNN and the results that were observed as: 3 out of 5 times, the success rate shown by CCNN was better than the CNN. However, the increase in success rate was marginal and failed the other 2 times. The novel approach showed no marginal increase in the success rate after implementing the CCNN technique. The possible reasons for failure could be: The data set used by paper contains approximately 30,000 thousand images for training network. However, the data set used by us accumulated only 500 images. The absence of preprocessing filter such a NAS (Neuromorphic auditory sensor) could be a vital reason for lesser success rate. The quality of data set used also could be a potential reason for not getting any desired results. The future work could include implementation of circular pooling along with CCNN. Circular pooling couldn’t be in- corporated in this research as neither AlexNet nor LeNet had any provision for changing the structure of pooling. REFERENCES [1] E. Etehells C. Bell and K. Robb "Does this Patient Have an Abnormal Systolic Murmur " JAMA vol. 277 pp. 564-571 1997. [2] AHA Scientific Statement: AHA Guidelines for Primary Prevention of Cardiovascular Disease and Stroke: 2002 Updates #71-0226 Circulation. 2002; vol. 1 0 6: pp. 388-391. [3] S. L. Strunic , F. Rios-Gutiérrez, R. Alba-Flores, G. Nordehn, and S. Bums, “Detection and classification of cardiac murmurs using segmentation techniques and artificial neural networks,” in Proc. IEEE Symp. Comput. Intell. Data Mining, 20 0 7, pp. 397 – 404. [4] F. Rios-Gutierrez , R. Alba-Flores, and S. Strunic, “ Recognition and classification of cardiac murmurs using ANN and segmentation,” in Proc. 22nd Int. Conf. Electr. Commun. Comput., 2012, pp. 219 – 223. [5] H. Hadi , M. Mashor, M. Mohamed, and K. Tat , “Classification of heart sounds using wavelets and neural networks,” in Proc. 5th Int. Conf. Electr. Eng. Comput. Sci. Autom. Control, 2008, pp. 177 – 180. [6] M. Singh and A. Cheema, “Heart sounds classification using feature extraction of phonocardiography signal ” Int. J. Comput. Appl., vol. 77, no. 4, pp. 13 – 17, 2013. [7] M. Markaki , I. Germanakis, and Y. Stylianou, “ Automatic classification of systolic heart murmurs,” in Proc. 2013 IEEE Int. Conf. Acoust., Speech Signal Process., 2013, pp. 1301 – 1 305. [8] Juan P. Dominguez-Morales ; Angel F. Jimenez-Fernandez ; Manuel J. Dominguez-Morales ; Gabriel Jimenez-Moreno,, “Deep Neural Networks for the Recognition and Classification of Heart Murmurs Using Neuromorphic Auditory Sensors”, IEEE Transactions on biomedical circuits and systems, Vol. 12, No. 1, Feb 2018 [9] C. N. Gupta, R. Palaniappan, S. Swaminathan, and S. M. Krishnan, “Neural network classification of homomorphic segmented heart sounds,” Appl.Soft Comput. , vol. 7, no. 1, pp. 286–297, 2007. [10] A. Krizhevsky, I. Sutskever, and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,” in Proc. Adv. Neural Inf. Process Syst. , 2012, pp. 1097–1105. ACKNOWLEDGEMENT We would like to thank Dr. Anantha Krishna Chintanpalli (Assistant Professor, BITS Pilani) and Rahul Sharma (Instructor) for guiding us through the project and for allowing us to take such an initiative through the semester. .