Automatic Analysis of Lung Function Based on Smartphone Recordings

  • João F. TeixeiraEmail author
  • Luís F. Teixeira
  • João Fonseca
  • Tiago Jacinto
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 574)


Over 250 million people, worldwide, are affected by chronic lung conditions such as Asthma and COPD. These can cause breathlessness, a harsh decrease in quality of life and, if left undetected or not properly managed, even death. In this paper, we approached part of the lines of development suggested upon earlier work. This concerned the development of a system design for a smartphone lung function classification app, which would only use recordings from the built-in microphone. A more systematic method to evaluate the relevant combinations of methods was devised and an additional set of 44 recordings was used for testing purposes. The previous 101 were kept for training the models. The results enabled to further reduce the signal processing pipeline leading to the use of 6 envelopes, per recording, half of the previous amount. An analysis of the classification performances is provided for both previous tasks: differentiation into Normal from Abnormal lung function, and between multiple lung function patterns. The results from this project encourage further development of the system.


Asthma Breath COPD Machine learning Signal processing Smartphone Spirometry 



This work was conducted with the support of the Control and Burden of Asthma and Rhinitis project (ICAR), with the grant PTDC/SAU-SAP/119192/ 2010. The authors would like to thank Bernardo Pinho for the development of an enhanced recording app and Ivânia Gonçalves, Rita Silva and Daniela Santos for the added effort of recording the patients in addition to their tasks on the patient screenings.


  1. 1.
    Breiman, L.: Bagging predictors. Mach. Learn. 24(2), 123–140 (1996). zbMATHMathSciNetGoogle Scholar
  2. 2.
    Breiman, L.: Random forests. Mach. Learn. 45(1), 5–32 (2001). zbMATHCrossRefGoogle Scholar
  3. 3.
    Buntine, W.: Learning classification trees. Stat. Comput. 2(2), 63–73 (1992). CrossRefGoogle Scholar
  4. 4.
    Freund, Y., Schapire, R.E.: Experiments with a new boosting algorithm. In: Saitta, L. (ed.) ICML, pp. 148–156. Morgan Kaufmann, Bari, Italy (1996).
  5. 5.
    Larson, E.C., Goel, M., Boriello, G., Heltshe, S., Rosenfeld, M., Patel, S.N.: SpiroSmart: using a microphone to measure lung function on a mobile phone. In: 14th ACM International Conference on Ubiquitous Computing, p. 10. Pittsburgh, Pennsylvania, USA (2012)Google Scholar
  6. 6.
    Liang, H., Lukkarinen, S., Hartimo, I.: Heart sound segmentation algorithm based on heart sound envelogram. In: Computers in Cardiology 1997. vol. 24, pp. 105–108. IEEE (1997).
  7. 7.
    Miller, M.R., Hankinson, J., Brusasco, V., Burgos, F., Casaburi, R., Coates, A., Crapo, R., Enright, P., van der Grinten, C.P.M., Gustafsson, P., Jensen, R., Johnson, D.C., MacIntyre, N., McKay, R., Navajas, D., Pedersen, O.F., Pellegrino, R., Viegi, G., Wanger, J.: Standardisation of spirometry. Eur. Respir. J. 26(2), 319–338 (2005). CrossRefGoogle Scholar
  8. 8.
    Pierce, R.: Spirometry: an essential clinical measurement. Aust. Fam. Physician 34(7), 535–539 (2005). Google Scholar
  9. 9.
    Russel, S., Norvig, P.: Artificial Intelligence: A Modern Approach, 2nd edn. Prentice Hall, Englewood Cliffs (2002)Google Scholar
  10. 10.
    Savitzky, A., Golay, M.J.E.: Smoothing and differentiation of data by simplified least squares procedures. Anal. Chem. 36(8), 1627–1639 (1964). CrossRefGoogle Scholar
  11. 11.
    van Stein, B.: A Mobile Smart Care platform Home spirometry by using the smartphone microphone. Master’s thesis, Leiden University, Leiden, The Netherlands (2013)Google Scholar
  12. 12.
    Teixeira, J.F., Teixeira, L., Fonseca, J., Jacinto, T.: Lung function classification of smartphone recordings - comparison of signal processing and machine learning combination sets. In: Proceedings of the International Conference on Health Informatics, pp. 123–130. Lisbon, Portugal (2015).
  13. 13.
    Vapnik, V.N.: An overview of statistical learning theory. IEEE Trans. Neural Netw. Publ. IEEE Neural Netw. Counc. 10(5), 988–999 (1999). CrossRefGoogle Scholar
  14. 14.
    Wakita, H.: Direct estimation of the vocal tract shape by inverse filtering of acoustic speech waveforms. Audio Electroacoust. IEEE Trans. 21(5), 417–427 (1973)CrossRefGoogle Scholar
  15. 15.
    Asthma: Fact sheet N307, November 2013. Accessed: 26–06-2014
  16. 16.
    Chronic obstructive pulmonary disease (COPD): Fact sheet N315 (October 2013). Accessed: 26–06-2014
  17. 17.
    Xu, W., Huang, M.C., Liu, J.J., Ren, F., Shen, X., Liu, X., Sarrafzadeh, M.: mCOPD. In: Proceedings of the 6th International Conference on Pervasive Technologies Related to Assistive Environments - PETRA 2013, pp. 1–8. PETRA 2013, ACM Press, New York, New York, USA (2013).,

Copyright information

© Springer International Publishing Switzerland 2015

Authors and Affiliations

  • João F. Teixeira
    • 1
    Email author
  • Luís F. Teixeira
    • 2
  • João Fonseca
    • 3
  • Tiago Jacinto
    • 3
  1. 1.Department of Electrical and Computer EngineeringUniversity of PortoPortoPortugal
  2. 2.Department of Informatics EngineeringUniversity of PortoPortoPortugal
  3. 3.Department of Health Information and Decision SciencesUniversity of PortoPortoPortugal

Personalised recommendations