Lightweight End-to-End Neural Network Model for Automatic Heart Sound Classification
Abstract
:1. Introduction
2. Materials and Methods
2.1. Dataset
2.2. Feature Extraction
2.3. Feature Classification
- The pooling layer after each layer of convolution was removed, and a batch normalization module was introduced before the activation function of Relu, which normalized the model of each layer [14]. The added batch normalization module is
- where is the original activation function of a certain neuron, and are the mean value and standard deviation of the input neuron, is the expansion factor, is the translation factor, and is the normalized value. Formula (1) normalizes the convolution result to a standard normal distribution with a mean of 0 and a variance of 1 and then performs the corresponding scaling and shifting operations. This operation ensures that the input of each layer of the neural network retains the same distribution, which can alleviate the gradient explosion and disappearance phenomena that may perturb the propagation process, and help the model converge faster.
- Before the fully connected layer, the maximum pooling layer was introduced, which can greatly reduce the quantity of parameters of the fully connected layer. As a result, the 9520 parameters before maximum pooling were reduced to only 8 parameters after maximum pooling, which greatly simplified the optimization parameters of the fully connected layer.
- The entire model only used a 3-layer CNN network, a maximum pooling layer, and a fully connected layer to output the results, which is a very light structure in the application of heart sound classification.
2.4. Solving the Problem of Unbalanced Classification
2.5. Evaluation of Results
3. Results
3.1. The Effects of STFTs with Different Window Lengths on Accuracy
3.2. Influence of the Different Weights of the Loss Function and the Final Threshold on the Results
3.3. Classification Performance for Normal and Abnormal Heart Sounds
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- WHO 2015 World Statistics on Cardiovascular Disease. Available online: www.who.int/mediacentre/factsheets/fs317/en/ (accessed on 25 January 2021).
- Liu, C.Y.; Springer, D.; Li, Q.; Moody, B.; Juan, R.A.; Chorro, F.J.; Castells, F.; Roig, J.M.; Silva, I.; Johnson, A.E.W.; et al. An open access database for the evaluation of heart sound algorithms. Physiol. Meas. 2016, 37, 2181–2213. [Google Scholar] [CrossRef] [PubMed]
- Wang, F.; Syeda-Mahmood, T.; Beymer, D. Finding Disease Similarity by Combining ECG with Heart Auscultation Sound. Comput. Cardiol. 2007, 34, 261–264. [Google Scholar] [CrossRef] [Green Version]
- Gerbarg, D.S.; Taranta, A.; Spagnuolo, M.; Hofler, J.J. Computer analysis of phonocardiograms. Prog. Cardiovasc. Dis. 1963, 5, 393–405. [Google Scholar] [CrossRef]
- Tang, H.; Dai, Z.; Jiang, Y.; Li, T.; Liu, C. PCG Classification Using Mulidomain Features and SVM Classifier. BioMed Res. Int. 2018, 2018. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Yaseen; Son, G.-Y.; Kwon, S. Classification of Heart Sound Signal Using Multiple Features. Appl. Sci. 2018, 8, 2344. [Google Scholar] [CrossRef] [Green Version]
- Xiao, B.; Xu, Y.; Bi, X.; Zhang, J.; Ma, X. Heart sounds classification using a novel 1-D convolutional neural network with extremely low parameter consumption. Neurocomputing 2020, 392, 153–159. [Google Scholar] [CrossRef]
- Noman, F.; Ting, C.M.; Salleh, S.H.; Ombao, H. Short-segment heart sound classification using an ensemble of deep convolutional neural networks. In Proceedings of the 44th IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019; pp. 1318–1322. [Google Scholar]
- Li, F.; Liu, M.; Zhao, Y.J.; Kong, L.Q.; Dong, L.Q.; Liu, X.H.; Hui, M. Feature extraction and classification of heart sound using 1D convolutional neural networks. EURASIP J. Adv. Signal Process. 2019, 2019, 11. [Google Scholar] [CrossRef] [Green Version]
- Deng, M.; Meng, T.; Cao, J.; Wang, S.; Zhang, J.; Fan, H. Heart sound classification based on improved MFCC features and convolutional recurrent neural networks. Neural Netw. 2020, 130, 22–32. [Google Scholar] [CrossRef] [PubMed]
- Bozkurt, B.; Germanakis, I.; Stylianou, Y. A study of time-frequency features for CNN-based automatic heart sound classification for pathology detection. Comput. Biol. Med. 2018, 100, 132–143. [Google Scholar] [CrossRef] [PubMed]
- Langley, P.; Murray, A. EHeart sound classification from unsegmented phonocardiograms. Physiol. Meas. 2017, 38, 1658–1670. [Google Scholar] [CrossRef] [PubMed]
- Lin, T.Y.; Goyal, P.; Girshick, R.; He, K.M.; Dollar, P. Focal Loss for Dense Object Detection. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 318–327. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning, Lile, France, 6–11 July 2015; pp. 448–456. [Google Scholar]
- Michigan Heart Sounds and Murmur Database. Available online: www.med.umich.edu/lrc/psb/heartsounds/index.html (accessed on 25 January 2020).
- Classifying Heart Sounds Challenge. Available online: www.peterjbentley.com/heartchallenge (accessed on 25 January 2020).
- Heart Auscultation Heart Murmur Database. Available online: http://www.egeneralmedical.com/listohearmur.html (accessed on 25 January 2020).
- Hornik, K. Approximation Capabilities of Multilayer Feedforward Networks. Neural Netw. 1991, 4, 251–257. [Google Scholar] [CrossRef]
- Li, F.; Tang, H.; Shang, S.; Mathiak, K.; Cong, F. Classification of Heart Sounds Using Convolutional Neural Network. Appl. Sci. 2020, 10, 3956. [Google Scholar] [CrossRef]
- Nilanon, T.; Yao, J.; Hao, J.; Purushotham, S.; Liu, Y. Normal/Abnormal Heart Sound Recordings Classification Using Convolutional Neural Network. In Proceedings of the 43rd Computing in Cardiology Conference (CinC), Vancouver, BC, Canada, 11–14 September 2016; pp. 585–588. [Google Scholar]
- Rubin, J.; Abreu, R.; Ganguli, A.; Nelaturi, S.; Matei, I.; Sricharan, K. Classifying Heart Sound Recordings using Deep Convolutional Neural Networks and Mel-Frequency Cepstral Coefficients. In Proceedings of the 43rd Computing in Cardiology Conference (CinC), Vancouver, BC, Canada, 11–14 September 2016; pp. 813–816. [Google Scholar]
- Potes, C.; Parvaneh, S.; Rahman, A.; Conroy, B. Ensemble of Feature-based and Deep learning-based Classifiers for Detection of Abnormal Heart Sounds. In Proceedings of the 43rd Computing in Cardiology Conference (CinC), Vancouver, BC, Canada, 11–14 September 2016; pp. 621–624. [Google Scholar]
Weight | Sn | Sp | Mean Accuracy (MACC) | Accuracy (ACC) |
---|---|---|---|---|
α = 0.2, γ = 2 | 0.87 | 0.85 | 0.86 | 0.85 |
α = 0.5, γ = 1 | 0.77 | 0.91 | 0.84 | 0.88 |
Experiments | Sn | Sp | MACC | ACC |
---|---|---|---|---|
1 | 85.94 | 85.33 | 85.63 | 85.45 |
2 | 89.84 | 84.56 | 87.20 | 85.60 |
3 | 85.16 | 85.14 | 85.15 | 85.14 |
4 | 85.16 | 85.71 | 85.44 | 85.60 |
5 | 86.72 | 87.26 | 86.99 | 87.15 |
6 | 88.28 | 82.63 | 85.45 | 83.75 |
Mean/Std | 87 ± 1.7 | 85 ± 1.4 | 86 ± 0.8 | 85 ± 1.0 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Li, T.; Yin, Y.; Ma, K.; Zhang, S.; Liu, M. Lightweight End-to-End Neural Network Model for Automatic Heart Sound Classification. Information 2021, 12, 54. https://doi.org/10.3390/info12020054
Li T, Yin Y, Ma K, Zhang S, Liu M. Lightweight End-to-End Neural Network Model for Automatic Heart Sound Classification. Information. 2021; 12(2):54. https://doi.org/10.3390/info12020054
Chicago/Turabian StyleLi, Tao, Yibo Yin, Kainan Ma, Sitao Zhang, and Ming Liu. 2021. "Lightweight End-to-End Neural Network Model for Automatic Heart Sound Classification" Information 12, no. 2: 54. https://doi.org/10.3390/info12020054
APA StyleLi, T., Yin, Y., Ma, K., Zhang, S., & Liu, M. (2021). Lightweight End-to-End Neural Network Model for Automatic Heart Sound Classification. Information, 12(2), 54. https://doi.org/10.3390/info12020054