Machine Learning Based Crackle Detection in Lung Sounds

Background and Objective: The stethoscope is a well-known and widely available diagnostic instrument. In recent years, many innovative solutions for recording and viewing sounds from a stethoscope have become available. However, to fully utilize such devices, there is a need for an automated approach for detecting abnormal lung sounds, which is better than the existing methods that typically have been developed and evaluated using a small and non-diverse dataset. Methods: We propose a machine learning based approach for detecting crackles in lung sounds recorded using a stethoscope in a large health survey. Our method is trained and evaluated using 209 files with crackles classified by expert listeners. Our analysis pipeline is based on features extracted from small windows in audio files. We evaluated several feature extraction methods and classifiers. We evaluated the pipeline using a training set of 175 crackle windows and 208 normal windows. We did 100 cycles of cross validation where we shuffled training sets between cycles. For all the division between training and evaluation was 70%-30%. Results: We found and evaluated a 5-dimenstional vector with four features from the time domain and one from the spectrum domain. We evaluated several classifiers and found SVM with a Radial Basis Function Kernel to perform best for our 5-dimensional feature vector. Our approach had a precision of 86% and recall of 84% for classifying a crackle in a window, which is more accurate than found in studies of health personnel. The low-dimensional feature vector makes the SVM very fast. The model can be trained on a regular computer in 1.44 seconds, and 319 crackles can be classified in 1.08 seconds. Conclusions: Our approach detects and visualizes individual crackles in recorded audio files. It is accurate, fast, and has low resource requirements. The approach is therefore well suited for deployment on smart devices and phones or as a web application. It can be used to train health personnel or as part of a smartphone application for Bluetooth stethoscopes.

[1]  S. Jenkins,et al.  Accuracy and reliability of physiotherapists in the interpretation of tape-recorded lung sounds. , 1995, The Australian journal of physiotherapy.

[2]  Beth Logan,et al.  Mel Frequency Cepstral Coefficients for Music Modeling , 2000, ISMIR.

[3]  Cristina Jácome,et al.  Automatic Crackle Detection Algorithm Based on Fractal Dimension and Box Filtering , 2015, CENTERIS/ProjMAN/HCist.

[4]  Vladimir Vapnik,et al.  Estimation of Dependences Based on Empirical Data: Springer Series in Statistics (Springer Series in Statistics) , 1982 .

[5]  Belur V. Dasarathy,et al.  Nearest neighbor (NN) norms: NN pattern classification techniques , 1991 .

[6]  M. Fine,et al.  Does this patient have community-acquired pneumonia? Diagnosing pneumonia by history and physical examination. , 1997, JAMA.

[8]  R L Smyth,et al.  Validity and reliability of acoustic analysis of respiratory sounds in infants , 2004, Archives of Disease in Childhood.

[9]  N. Gavriely,et al.  Effect of PEEP on breath sound power spectra in experimental lung injury , 2014, Intensive Care Medicine Experimental.

[10]  J. Tielsch,et al.  Computerized lung sound analysis as diagnostic aid for the detection of abnormal lung sounds: a systematic review and meta-analysis. , 2011, Respiratory medicine.

[11]  D. Simel,et al.  Does the clinical examination predict airflow limitation? , 1995, JAMA.

[12]  Fatma Z. Göğüş,et al.  Classification of Asthmatic Breath Sounds by Using Wavelet Transforms and Neural Networks , 2014 .

[13]  Luc Van Gool,et al.  Deep Convolutional Neural Networks and Data Augmentation for Acoustic Event Detection , 2016, ArXiv.

[14]  Hong Zhao,et al.  The detection of crackles based on mathematical morphology in spectrogram analysis. , 2015, Technology and health care : official journal of the European Society for Engineering and Medicine.

[15]  E. DeLong,et al.  Observer variability in the pulmonary examination , 1986, Journal of General Internal Medicine.

[16]  Juerg Schwitter,et al.  ESC Guidelines for the diagnosis and treatment of acute and chronic heart failure 2012 , 2010, European journal of heart failure.

[17]  Geoffrey Zweig,et al.  The microsoft 2016 conversational speech recognition system , 2016, 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP).

[18]  Daniel Sánchez Morillo,et al.  Computerized analysis of respiratory sounds during COPD exacerbations , 2013, Comput. Biol. Medicine.

[19]  Cristina Jácome,et al.  Computerized respiratory sounds: a comparison between patients with stable and exacerbated COPD , 2017, The clinical respiratory journal.

[20]  V. Roger Epidemiology of Heart Failure , 2013, Circulation research.

[21]  Luis M. T. Jesus,et al.  Computerised Lung Auscultation - Sound Software (CLASS) , 2015, CENTERIS/ProjMAN/HCist.

[22]  Nizamettin Aydin,et al.  Pulmonary crackle detection using time-frequency and time-scale analysis , 2013, Digit. Signal Process..

[23]  Guilherme Campos,et al.  Multi-algorithm Respiratory Crackle Detection , 2013, HEALTHINF.

[24]  Sao-Jie Chen,et al.  Automatic Wheezing Detection Based on Signal Processing of Spectrogram and Back-Propagation Neural Network. , 2015, Journal of healthcare engineering.

[25]  Daniel Chamberlain,et al.  Mobile stethoscope and signal processing algorithms for pulmonary screening and diagnostics , 2015, 2015 IEEE Global Humanitarian Technology Conference (GHTC).

[26]  A. Bohadana,et al.  Fundamentals of lung auscultation. , 2014, The New England journal of medicine.

[27]  M. Rosenblatt Remarks on Some Nonparametric Estimates of a Density Function , 1956 .

[28]  Yoav Freund,et al.  A decision-theoretic generalization of on-line learning and an application to boosting , 1995, EuroCOLT.

[29]  E. Parzen On Estimation of a Probability Density Function and Mode , 1962 .

[30]  Hüseyin Polat,et al.  Combining Neural Network and Genetic Algorithm for Prediction of Lung Sounds , 2005, Journal of Medical Systems.

[31]  Morten Grønnesby,et al.  Automated Lung Sound Analysis , 2016 .

[32]  R. Murphy,et al.  Observer agreement, chest auscultation, and crackles in asbestos-exposed workers. , 1986, Chest.

[33]  Gaël Varoquaux,et al.  Scikit-learn: Machine Learning in Python , 2011, J. Mach. Learn. Res..

[34]  Antonio Leon-Jimenez,et al.  Computerised Analysis of Telemonitored Respiratory Sounds for Predicting Acute Exacerbations of COPD , 2015, Sensors.