Efficient k-NN Implementation for Real-Time Detection of Cough Events in Smartphones

The potential  of telemedicine in respiratory health care has not been completely unveiled in part due to the inexistence of reliable objective measurements of symptoms such as cough. Currently available cough detectors are uncomfortable and expensive at a time when generic smartphones can perform this task. However, two major challenges preclude smartphone-based cough detectors from effective deployment namely, the need to deal with noisy environments and computational cost. This paper focuses on the latter, since complex machine learning algorithms are too slow for real-time use and kill the battery in a few hours unless specific actions are taken. In this paper, we present a robust and efficient implementation of a smartphone-based cough detector. The audio signal acquired from the device's microphone is processed by computing local Hu moments as a robust feature set in the presence of background noise. We previously demonstrated that pairing Hu moments and a standard k-NN classifier achieved accurate cough detection at the expense of computation time. To speed-up k-NN search, many tree structures have been proposed. Our cough detector uses an improved vantage point (vp)-tree with optimized construction methods and a distance function that results in faster searches. We achieve 18× speed-up over classic vp-trees, and 560× over standard implementations of k-NN in state-of-the-art machine learning libraries, with classification accuracies over 93%, enabling real-time performance on low-end smartphones.

[1]  Sung-Hwan Shin,et al.  Automatic Detection System for Cough Sounds as a Symptom of Abnormal Health Condition , 2009, IEEE Transactions on Information Technology in Biomedicine.

[2]  J. Widdicombe,et al.  What is cough and what should be measured? , 2007, Pulmonary pharmacology & therapeutics.

[3]  Hans-Jörg Schek,et al.  A Quantitative Analysis and Performance Study for Similarity-Search Methods in High-Dimensional Spaces , 1998, VLDB.

[4]  J. Smith,et al.  Cough and its importance in COPD , 2006, International journal of chronic obstructive pulmonary disease.

[5]  Lei Zhang,et al.  Application of improved HU moments in object recognition , 2012, 2012 IEEE International Conference on Automation and Logistics.

[6]  Vinayak Swarnkar,et al.  Automatic cough segmentation from non-contact sound recordings in pediatric wards , 2015, Biomed. Signal Process. Control..

[7]  Jie Liu,et al.  SpeakerSense: Energy Efficient Unobtrusive Speaker Identification on Mobile Phones , 2011, Pervasive.

[8]  S. Ranjani,et al.  A real time cough monitor for classification of various pulmonary diseases , 2012, 2012 Third International Conference on Emerging Applications of Information Technology.

[9]  Koji Yatani,et al.  BodyScope: a wearable acoustic sensor for activity recognition , 2012, UbiComp.

[10]  N. Altman An Introduction to Kernel and Nearest-Neighbor Nonparametric Regression , 1992 .

[11]  Juan E. Tapiador,et al.  Power-aware anomaly detection in smartphones: An analysis of on-platform versus externalized operation , 2015, Pervasive Mob. Comput..

[12]  Bengisu Tulu,et al.  The smartphone as a medical device: Assessing enablers, benefits and challenges , 2013, IOT 2013.

[13]  P. Lebecque,et al.  The objective assessment of cough frequency: accuracy of the LR102 device , 2011, Cough.

[14]  Robert H. Gilman,et al.  Validation of an Automated Cough Detection Algorithm for Tracking Recovery of Pulmonary Tuberculosis Patients , 2012, PloS one.

[15]  Robert E. Guinness,et al.  Beyond Where to How: A Machine Learning Approach for Sensing Mobility Contexts Using Smartphone Sensors † , 2013, Sensors.

[16]  Pablo Casaseca-de-la-Higuera,et al.  Effect of downsampling and compressive sensing on audio-based continuous cough monitoring , 2015, 2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC).

[17]  K. Chung,et al.  Coughing frequency in patients with persistent cough: assessment using a 24 hour ambulatory recorder. , 1994, The European respiratory journal.

[18]  J. Smith,et al.  New Developments in the Objective Assessment of Cough , 2007, Lung.

[19]  Stephen M. Omohundro,et al.  Five Balltree Construction Algorithms , 2009 .

[20]  Peter N. Yianilos,et al.  Data structures and algorithms for nearest neighbor search in general metric spaces , 1993, SODA '93.

[21]  Yin-wei Wei,et al.  Fast nearest neighbor searching based on improved VP-tree , 2015, Pattern Recognit. Lett..

[22]  Thierry Dutoit,et al.  Objective Study of Sensor Relevance for Automatic Cough Detection , 2013, IEEE Journal of Biomedical and Health Informatics.

[23]  C. G. Hilborn,et al.  The Condensed Nearest Neighbor Rule , 1967 .

[24]  R. Irwin Assessing cough severity and efficacy of therapy in clinical research: ACCP evidence-based clinical practice guidelines. , 2006, Chest.

[25]  Mark Bocko,et al.  Automated Cough Assessment on a Mobile Platform , 2014, Journal of medical engineering.

[26]  H. So,et al.  Cough frequency in children with mild asthma correlates with sputum neutrophil count , 2006, Thorax.

[27]  Leonid Boytsov,et al.  Permutation Search Methods are Efficient, Yet Faster Search is Possible , 2015, Proc. VLDB Endow..

[28]  Ting Liu,et al.  Fast Nonparametric Machine Learning Algorithms for High-dimensional Massive Data and Applications | a Thesis Proposal , 2005 .

[29]  Eric C. Larson,et al.  Accurate and privacy preserving cough sensing using a low-cost microphone , 2011, UbiComp '11.

[30]  Andrew W. Moore,et al.  An Investigation of Practical Approximate Nearest Neighbor Algorithms , 2004, NIPS.

[31]  Kofi Odame,et al.  DeepCough: A deep convolutional neural network in a wearable cough detection system , 2015, 2015 IEEE Biomedical Circuits and Systems Conference (BioCAS).

[32]  Guihua Wen,et al.  Weighted spectral features based on local Hu moments for speech emotion recognition , 2015, Biomed. Signal Process. Control..

[33]  Xuemin Lin,et al.  Approximate Nearest Neighbor Search on High Dimensional Data — Experiments, Analyses, and Improvement , 2016, IEEE Transactions on Knowledge and Data Engineering.

[34]  Ashraf M. Kibriya,et al.  Fast Algorithms for Nearest Neighbour Search , 2007 .

[35]  Juha Pärkkä,et al.  Automatic feature selection for context recognition in mobile devices , 2010, Pervasive Mob. Comput..

[36]  Andrew T. Campbell,et al.  Bewell: A smartphone application to monitor, model and promote wellbeing , 2011, PervasiveHealth 2011.