Free-text keystroke authentication using transformers: a comparative study of architectures and loss functions

被引:0
作者
Saleh Momeni [1 ]
Bagher BabaAli [1 ]
机构
[1] School of Mathematics, Statistics, and Computer Science, University of Tehran, Tehran
关键词
Biometrics; Contrastive learning; Deep learning; Keystroke dynamics; Transformers; User authentication;
D O I
10.1007/s00500-025-10524-z
中图分类号
学科分类号
摘要
Keystroke biometrics is a promising approach for user identification and verification, leveraging the unique patterns in individuals’ typing behavior. In this paper, we propose a Transformer-based network that employs self-attention to extract informative features from keystroke sequences, surpassing the performance of traditional Recurrent Neural Networks. We explore two distinct architectures, namely bi-encoder and cross-encoder, and compare their effectiveness in keystroke authentication. Furthermore, we investigate different loss functions, including triplet, batch-all triplet, and WDCL loss, along with various distance metrics such as Euclidean, Manhattan, and cosine distances. These experiments allow us to optimize the training process and enhance the performance of our model. To evaluate our proposed model, we employ the Aalto desktop keystroke dataset. The results demonstrate that the bi-encoder architecture with batch-all triplet loss and cosine distance achieves the best performance, yielding an exceptional Equal Error Rate of 0.0186%. Furthermore, alternative algorithms for calculating similarity scores are explored to enhance accuracy. Notably, the utilization of a one-class Support Vector Machine reduces the Equal Error Rate to an impressive 0.0163%. The outcomes of this study indicate that our model surpasses the previous state-of-the-art in free-text keystroke authentication. These findings contribute to advancing the field of keystroke authentication and offer practical implications for secure user verification systems. © The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature 2025.
引用
收藏
页码:1259 / 1272
页数:13
相关论文
共 37 条
  • [1] Acien A., Morales A., Monaco J.V., Vera-Rodriguez R., Fierrez J., TypeNet: deep learning keystroke biometrics, IEEE Trans Biom Behav Identity Sci, 4, 1, pp. 57-70, (2021)
  • [2] Arsh A., Kar N., Das S., Deb S., Multiple approaches towards authentication using keystroke dynamics, Procedia Comput Sci, 235, pp. 2609-2618, (2024)
  • [3] Ayotte B., Banavar M., Hou D., Schuckers S., Fast free-text authentication via instance-based keystroke dynamics, IEEE Trans Biom Behav Identity Sci, 2, 4, pp. 377-387, (2020)
  • [4] Breunig M.M., Kriegel H.P., Ng R.T., Sander J., LOF: identifying density-based local outliers, Proceedings of the 2000 ACM SIGMOD international conference on management of data, pp. 93-104, (2000)
  • [5] Ceker H., Upadhyaya S., User authentication with keystroke dynamics in long-text data, 2016 IEEE 8th international conference on biometrics theory, applications and systems (BTAS). IEEE, pp. 1-6, (2016)
  • [6] Ceker H., Upadhyaya S., Sensitivity analysis in keystroke dynamics using convolutional neural networks, 2017 IEEE workshop on information forensics and security (WIFS). IEEE, pp. 1-6, (2017)
  • [7] Cilia D., Inguanez F., Multi-model authentication using keystroke dynamics for smartphones. In: 2018 IEEE 8th international conference on consumer electronics-Berlin (ICCE-Berlin), IEEE, pp. 1-6, (2018)
  • [8] Crawford H., Ahmadzadeh E., Authentication on the go: assessing the effect of movement on mobile device keystroke dynamics, Thirteenth symposium on usable privacy and security (SOUPS 2017), pp. 163-173, (2017)
  • [9] Dhakal V., Feit A.M., Kristensson P.O., Oulasvirta A., Observations on typing from 136 million keystrokes, Proceedings of the 2018 CHI conference on human factors in computing systems, pp. 1-12, (2018)
  • [10] El-Kenawy E.S.M., Mirjalili S., Abdelhamid A.A., Ibrahim A., Khodadadi N., Eid M.M., Meta-heuristic optimization and keystroke dynamics for authentication of smartphone users, Mathematics, 10, 16, (2022)