Analysis of Keystroke Dynamics for Fatigue Recognition

  • Mindaugas Ulinskas
  • Marcin Woźniak
  • Robertas DamaševičiusEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10408)


The paper analyses the problem of fatigue recognition using keystroke dynamics data. Keystroke dynamics provides the time data of key typing events (press-press, press-release, release-press and release-release time). We propose using statistical features and k-Nearest Neighbour (KNN) classifier to discriminate between different consecutive key typing sessions. The presented approach allows to recognize the state of increased fatigue with an accuracy of 91% (using key release-release data).


Keystroke dynamics Typing behaviour Fatigue recognition 



The authors also would like to acknowledge the contribution of the COST Action IC1303– Architectures, Algorithms and Platforms for Enhanced Living Environments (AAPELE).


  1. 1.
    Canisius, S., Penzel, T.: Vigilance monitoring – review and practical aspects. Special Issue: Biosignal Processing (Part 3). Biomedizinische Technik 52(1), 77–82 (2007)Google Scholar
  2. 2.
    Knauth, P., Hornberger, S.: Preventive and compensatory measures for shift workers. Occup. Med. 53(2), 109–116 (2003)CrossRefGoogle Scholar
  3. 3.
    Brandt, T., Stemmer, R., Rakotonirainy, A.: Affordable visual driver monitoring system for fatigue and monotony. In: IEEE International Conference on Systems, Man and Cybernetics, vol. 7, pp. 6451–6456 (2004)Google Scholar
  4. 4.
    Thiffault, P., Bergeron, J.: Monotony of road environment and driver fatigue: a simulator study. Accid. Anal. Prev. 35(3), 381–391 (2003)CrossRefGoogle Scholar
  5. 5.
    Vasiljevas, M., Gedminas, T., Ševčenko, A., Jančiukas, M., Blažauskas, T., Damaševičius, R.: Modelling eye fatigue in gaze spelling task. In: 12th IEEE International Conference on Intelligent Computer Communication and Processing (ICCP), pp. 95–102 (2016)Google Scholar
  6. 6.
    Wang, H.: Detection and alleviation of driving fatigue based on EMG and EMS/EEG using wearable sensor. In: Proceedings of the 5th EAI International Conference on Wireless Mobile Communication and Healthcare (MOBIHEALTH 2015), pp. 155–157 (2015)Google Scholar
  7. 7.
    Mascord, D.J., Walls, J., Starmer, G.A.: Fatigue and alcohol: interactive effects on human performance in driving-related tasks. In: Hartley, L.R. (ed.) Fatigue and Driving: Driver Impairment, Driver Fatigue and Driving Simulation. Taylor & Francis, pp. 189–205 (1995)Google Scholar
  8. 8.
    Trejo, Leonard J., Knuth, K., Prado, R., Rosipal, R., Kubitz, K., Kochavi, R., Matthews, B., Zhang, Y.: EEG-based estimation of mental fatigue: convergent evidence for a three-state model. In: Schmorrow, Dylan D., Reeves, Leah M. (eds.) FAC 2007. LNCS, vol. 4565, pp. 201–211. Springer, Heidelberg (2007). doi: 10.1007/978-3-540-73216-7_23 CrossRefGoogle Scholar
  9. 9.
    Williamson, A.M., Feyer, A.M., Mattick, R.P., Friswell, R., Finlay-Brown, S.: Developing measures of fatigue using an alcohol comparison to validate the effects of fatigue on performance. Accid. Anal. Prev. 33, 313–326 (2001)CrossRefGoogle Scholar
  10. 10.
    Damasevicius, R., Maskeliunas, R., Venckauskas, A., Wozniak, M.: Smartphone user identity verification using gait characteristics. Symmetry 8(10), 100 (2016)CrossRefGoogle Scholar
  11. 11.
    Monrose, F., Rubin, A.D.: Keystroke dynamics as a biometric for authentication. Future Gener. Comp. Syst. 16(4), 351–359 (2000)CrossRefGoogle Scholar
  12. 12.
    Pisani, P.H., Lorena, A.C.: A systematic review on keystroke dynamics. J. Braz. Comp. Soc. 19(4), 573–587 (2013)CrossRefGoogle Scholar
  13. 13.
    Kolakowska, A.: Towards detecting programmers’ stress on the basis of keystroke dynamics. In: Proceedings of Federated Conference on Computer Science and Information Systems (FedCSIS), pp. 1621–1626 (2016)Google Scholar
  14. 14.
    Douhou, S., Magnus, J.R.: The reliability of user authentication through keystroke dynamics. Stat. Neerl. 63, 432–449 (2009)MathSciNetCrossRefGoogle Scholar
  15. 15.
    Flior, E., Kowalski, K.: Continuous Biometric User Authentication in Online Examinations. In: 2010 Seventh International Conference on Information Technology: New Generations, Las Vegas, NV, pp. 488–492 (2010)Google Scholar
  16. 16.
    Rodrigues, M., Gonçalves, S., Carneiro, D., Novais, P., Fdez-Riverola, F.: Keystrokes and clicks: measuring stress on e-learning students. In: Casillas, J., Martínez-López, F., Vicari, R., De la Prieta, F. (eds.) Management Intelligent Systems. AISC, vol 220, pp. 119–126. Springer, Heidelberg (2013). doi: 10.1007/978-3-319-00569-0_15
  17. 17.
    Gonçalves, S., Rodrigues, M., Carneiro, D., Fdez-Riverola, F., Novais, P.: Boosting learning: non-intrusive monitoring of student’s efficiency. In: Mascio, T.D., Gennari, R., Vittorini, P., De la Prieta, F. (eds.) Methodologies and Intelligent Systems for Technology Enhanced Learning. AISC, vol. 374, pp. 73–80. Springer, Cham (2015). doi: 10.1007/978-3-319-19632-9_10 CrossRefGoogle Scholar
  18. 18.
    Zimmermann, P., Guttormsen, S., Danuser, B., Gomez, P.: Affective Computing - A rationale for measuring mood with mouse and keyboard. Int. J. Occup. Saf. Ergon. 9(4), 539–551 (2003)CrossRefGoogle Scholar
  19. 19.
    Epp, C., Lippold, M., Mandryk, R.L.: Identifying emotional states using keystroke dynamics. In: Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI 2011). ACM, New York, pp. 715–724 (2011)Google Scholar
  20. 20.
    Giancardo, L., Sánchez-Ferro, A., Arroyo-Gallego, T., Butterworth, I., Mendoza, C.S., Montero, P., Matarazzo, M., Obeso, J.A., Gray, M.L., Estépar, R.S.J.: Computer keyboard interaction as an indicator of early Parkinson’s disease. Sci. Rep. 6, 34468 (2016)CrossRefGoogle Scholar
  21. 21.
    Levanon, Y., Gefen, A., Lerman, Y., Portnoy, S., Ratzon, N.Z.: Key strike forces and their relation to high level of musculoskeletal symptoms. Saf. Health Work 7(4), 347–353 (2016)CrossRefGoogle Scholar
  22. 22.
    El-Abed, M., Dafer, M., Khayat, R.E.: RHU keystroke: a mobile-based benchmark for keystroke dynamics systems. In: 2014 International Carnahan Conference on Security Technology (ICCST), pp. 1–4 (2014)Google Scholar
  23. 23.
    Iglewicz, B., Hoaglin, D.: How to detect and handle outliers. ASQC Quality Press (1993)Google Scholar
  24. 24.
    Cateni, S., Colla, V., Vannucci, M.: A method for resampling imbalanced datasets in binary classification tasks for real-world problems. Neurocomputing 135, 32–41 (2014)CrossRefGoogle Scholar
  25. 25.
    Kotsiantis, S., Kanellopoulos, D., Pintelas, P.: Handling imbalanced datasets: a review. GESTS Int. Trans. Comput. Sci. Eng. 30, 25–36 (2006)Google Scholar
  26. 26.
    Gomez, J.C., Boiy, E., Moens, M.F.: Highly discriminative statistical features for email classification. Knowl. Inf. Syst. 31, 23 (2012)CrossRefGoogle Scholar
  27. 27.
    Landis, J.R., Koch, G.G.: The measurement of observer agreement for categorical data. Biometrics 33(1), 159–174 (1977)CrossRefzbMATHGoogle Scholar
  28. 28.
    Fleiss, J.L.: Statistical methods for rates and proportions, 2nd edn. John Wiley (1981)Google Scholar
  29. 29.
    Hernandez-Aguila, A., Valdez, M.G., Mancilla, A.: Affective states in software programming: classification of individuals based on their keystroke and mouse dynamics. Res. Comput. Sci. 87, 27–34 (2014)Google Scholar
  30. 30.
    Raudonis, V., Maskeliūnas, R., Stankevičius, K., Damaševičius, R.: Gender, age, colour, position and stress: how they influence attention at workplace? In: Gervasi, O., et al. (eds.) ICCSA 2017, Part V. LNCS, vol. 10408, pp. 248–264. Springer, Cham (2017)CrossRefGoogle Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  • Mindaugas Ulinskas
    • 1
  • Marcin Woźniak
    • 2
  • Robertas Damaševičius
    • 1
    Email author
  1. 1.Department of Software EngineeringKaunas University of TechnologyKaunasLithuania
  2. 2.Institute of Mathematics, Faculty of Applied MathematicsSilesian University of TechnologyGliwicePoland

Personalised recommendations