Skip to main content

An OpenCV Based Android Application for Drowsiness Detection on Mobile Devices

  • Conference paper
  • First Online:
Mobile Networks for Biometric Data Analysis

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 392))

Abstract

Modern mobile devices, such as smartphones, are typically equipped with many different sensors able to capture biometric data, that can be used in a number of different applications and services. Further, the availability of onboard navigation capabilities makes it possible to replace with smartphones other devices, like GPS navigators, inside the vehicle, and new use cases may be evaluated and tested. In this paper, a software application for mobile devices equipped with Android O.S. is presented, as a tool for automatic driver’s drowsiness detection, based on computer vision techniques implemented through the OpenCV library. Experimental results show the effectiveness of the application, despite the limited computational resources required and the varying ambient conditions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Xing S, Hanghang T, Ping J (2014) Activity recognition with smartphone sensors. Tsinghua Science and Technology 19(3):235–249

    Article  Google Scholar 

  2. Nickel C, Wirtl T, Busch C (2013) Authentication of smartphone users based on the way they walk using k-NN algorithm. In: 2012 International conference on intelligent information hiding and multimedia signal processing (IIH-MSP), 18–20 Jul 2012, pp 16–20

    Google Scholar 

  3. Center for Accident Research & Road Safety—Queensland (2015) Mobile phone use and distraction while driving, September 2015, http://www.carrsq.qut.edu.au/publications/corporate/mobile_phones_and_distraction_fs.pdf

  4. Distracted Driving: Facts And Statistics, http://www.distraction.gov/stats-research-laws/facts-and-statistics.html

  5. World Health Organization (2011) Mobile phone use: a growing problem of driver distraction. http://www.who.int/violence_injury_prevention/publications/road_traffic/distracted_driving_en.pdf?ua=1

  6. Polidori L, Gambi E, Spinsante S (2008) Proposal of a driver assistance system based on video and radar data fusion. In: Proceedings of 16th international conference on software, telecommunications and computer networks (SoftCOM 2008), Split, pp 300–304

    Google Scholar 

  7. You CW et al (2013) Carsafe app: alerting drowsy and distracted drivers using dual cameras on smartphones. In: Proceeding of the 11th annual international conference on mobile systems, applications, and services. ACM

    Google Scholar 

  8. Kim D, Han H, Cho S, Chong U (2012) Detection of drowsiness with eyes open using EEG-based power spectrum analysis. In 2012 7th International forum on strategic technology (IFOST), 18–21 Sept 2012, pp 1–4

    Google Scholar 

  9. Tadesse E, Weihua S, Meiqin L (2014) Driver drowsiness detection through HMM based dynamic modeling. In: 2014 IEEE International conference on robotics and automation (ICRA), 31 May 2014–7 June 2014, pp 4003–4008

    Google Scholar 

  10. Chin-Teng L, Che-Jui C, Bor-Shyh L, Shao-Hang H, Chih-Feng C, Wang IJ (2010) A real-time wireless brain-computer interface system for drowsiness detection. IEEE Trans Biomed Circuits Syst 4(4):214–222

    Article  Google Scholar 

  11. Kurian D, Johnson JPL, Radhakrishnan K, Balakrishnan AA (2014) Drowsiness detection using photoplethysmography signal. In: 2014 Fourth international conference on advances in computing and communications, 27–29 Aug 2014, pp 73–76

    Google Scholar 

  12. You C-W, Lane ND, Chen F, Wang R, Chen Z, Bao TJ, Montesde-Oca M, Cheng Y, Lin M, Torresani L, Campbell AT (2013) CarSafe app: alerting drowsy and distracted drivers using dual cameras on smartphones. In: The 11th international conference on mobile systems, applications, and services, 25–28 June 2013

    Google Scholar 

  13. Sahayadhas A, Sundaraj K, Murugappan M (2012) Detecting driver drowsiness based on sensors: a review. Sensors 12:16937–16953

    Article  Google Scholar 

  14. OpenCV. http://opencv.org/

  15. Pulli K, Baksheev A, Kornyakov K, Eruhimov V (2012) Real-time computer vision with OpenCV. Commun ACM 55(6):61–69

    Article  Google Scholar 

  16. Yang X, Cheng KT (2012) LDB: an ultra-fast feature for scalable augmented reality on mobile devices. In: IEEE international symposium on mixed and augmented reality (ISMAR), pp 49–57

    Google Scholar 

  17. Spinsante S, Gambi E (2012) Home automation systems control by head tracking in AAL applications. In: Proceedings of 2012 IEEE first AESS European conference on satellite telecommunications (ESTEL), Rome (IT), pp 1–6

    Google Scholar 

  18. Montanini L, Cippitelli E, Gambi E, Spinsante S (2014) Real time message composition through head movements on portable android devices. In: Proceedings IEEE international conference on consumer electronics (ICCE), Las Vegas, 10–13 Jan 2014

    Google Scholar 

  19. Viola P, Jones MJ (2004) Robust real-time face detection. Int J Comput Vision 57(2):137–154

    Article  Google Scholar 

  20. Lienhart R, Maydt J (2002) An extended set of Haar-like features for rapid object detection. In: IEEE ICIP 2002, vol 1, Sep 2002, pp 900–903

    Google Scholar 

  21. Ballard DH (1981) Generalizing the Hough transform to detect arbitrary shapes. Pattern Recogn 13(2), 111–122

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Laura Montanini .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Montanini, L., Gambi, E., Spinsante, S. (2016). An OpenCV Based Android Application for Drowsiness Detection on Mobile Devices. In: Conti, M., Martínez Madrid, N., Seepold, R., Orcioni, S. (eds) Mobile Networks for Biometric Data Analysis. Lecture Notes in Electrical Engineering, vol 392. Springer, Cham. https://doi.org/10.1007/978-3-319-39700-9_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-39700-9_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-39698-9

  • Online ISBN: 978-3-319-39700-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics