A Review of Several Keystroke Dynamics Methods

Soykat Amin, Cristian Di Iorio · 2025

Read A Review of Several Keystroke Dynamics Methods by Soykat Amin, Cristian Di Iorio (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2502-16177.txt.

Introduction

Soykat Amin and Cristian Di Iorio review a 2025 set of methods that identify people by how they type. Typing rhythm is a behavior trait that can guard accounts without extra gear. The paper compares three model types that learn from key timing, such as how long a key is held and the gaps between keys.

Each model was trained and checked on three public typing datasets. Scores for false accepts, false rejects, and the point where the two meet were charted side by side. The curves show where each method is strong and where it lets impostors through.

Catalog record

CREATORSoykat Amin, Cristian Di Iorio
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE19 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2502-16177

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A Review of Several Keystroke Dynamics Methods Soykat Amin, Cristian Di Iorio Abstract Keystroke dynamics is a behavioral biometric that captures an individual’s typing patterns for authentication and security applications. This paper presents a comparative analysis of keystroke authentication models using Gaussian Mixture Models (GMM), Mahalanobis Distance-based Classification, and Gunetti Picardi’s Distance Metrics. These models leverage keystroke timing features such as hold time (H), up-down time (UD), and down-down time (DD) extracted from datasets including Aalto, Buffalo and Nanglae-Bhattarakosol. Each model is trained and validated using structured methodologies, with performance evaluated through False Acceptance Rate (FAR), False Rejection Rate (FRR), and Equal Error Rate (EER). The results, visualized through Receiver Operating Characteristic (ROC) curves, highlight the relative strengths and weaknesses of each approach in distinguishing genuine users from impostors. K eywords Keystroke Dynamics \cdot Behavioral Biometrics \cdot Gaussian Mixture Model \cdot Mahalanobis \cdot Gunetti Picardi Algorithm 1 Introduction to Keystroke Recognition Authentication methods follow three categories: something you know , like passwords, something you have , like tokens and something you are , like biometrics [ 1 ] . Biometrics can be divided into two categories, physiological biometrics and behavioral biometrics. The former refers to characteristics of the human body that do not change (face, iris, fingerprint) while the latter involves using a person’s action to distinguish them. Keystroke dynamics falls into the behavioral biometrics category. It works by measuring and assessing people’s typing rhythm on digital devices like computer keyboards or mobile phones [ 2 ] . 1.1 Advantages Keystroke Recognition has numerous advantages, like: • High acceptability and collectability. It does not require specialized hardware unlike many other biometric systems such as fingerprint recognition and iris recognition. The only physical component needed is a standard computer keyboard. This means that they can even be deployed remotely. • Uniqueness. Modern computer keyboard software can measure events with high precision, meaning that it is nearly impossible to replicate another user’s typing rythm. • Universality. Almost everyone uses a keyboard for various activities. • Low cost. Because there is no need for specialized hardware, the costs are low. 1.2 Disadvantages However there are some disadvantages: • Low accuracy. This kind of biometric system is generally worse than other systems like iris recognition or face recognition. • Low permanence. Since this is a behavioral biometric, it has lower permanency than physiological biometrics since typing patterns can change with time. 1.3 Timing Features and Data Types The timing features of keystrokes are latency and hold time [ 3 ] . Latency is the time between consecutive key presses/releases while hold time is the time between key press and key release. This means that between two consecutive keystrokes there are 6 timing features that can be analyzed: hold time of two keys, time between key presses, time between key releases, time between first key press and second key release, time between first key release and second key press. Figure 1: Relevant keystroke events These typing features are extracted from keystroke data, which can be divided into two types: • free-text, when the user can write freely. It is more complex to implement and it suffers from inconsistencies in user input. Those characteristics make it more secure and suitable for continuous authentication. • fixed-text, when the user must type a predefined string. This means that comparison is easier to implement and more precise. However it has limited usability. 2 Datasets A keystroke dataset is essential for effectively evaluating keystroke dynamics-based authentication algorithms. The dataset’s quality, size and type (fixed or free-text) play a critical role in assessing algorithm performance. After some consideration we chose three datasets Aalto 136M [ 6 ] , Buffalo [ 4 ] , and Nanglae-Bhattarakosol [ 5 ] . 2.1 Aalto Aaalto 136M dataset includes data from 168.960 participants. It is fixed-text since each participant completed one session which consisted of typing 15 English sentences drawn from a corpus. The 15 sentences were randomly taken from a set of 1.525 sentences consisting of at least 3 words and a maximum of 70 characters. They were asked to type as fast and accurate as possible. Subjects were allowed to make typing errors, correct them or add new characters when typing, and as a result, they could type more than 70 characters. The dataset is categorized as a controlled fixed-text dataset because it involves transcribing - subjects did not type contents of their own but were shown what to type. There are around 810 keystrokes per user which translates to a total of 136.857.600 keystrokes in total. 2.2 Buffalo Buffalo contains both free-text and fixed-text keystrokes from 157 participants. The data was collected in three sessions spread out over 4 months. On average there was a 28 days gap between 2 sessions to consider the temporal variations. The users had two tasks: • The first task was copying the 2005 commencement speech of Steve Jobs at Stanford University. The speech was divided into 3 parts with each part of equal length, the subjects had to type one part in each session (fixed text); • The second task consisted of multiple subtasks including answering survey questions and describing a picture, sending an email with attachment and free internet browsing (free text). Each session lasted for about 50 minutes with 30 minutes for the first task and 20 minutes for the second task. In one section of the dataset the same keyboard was used across sessions, while in the other section subjects used different keyboards. On average there are around 17000 keystrokes for each subject. Some participant’s data had to be discarded due to mistakes, so the dataset contains 148 users instead of 157. 2.3 Nanglae-Bhattarakosol Nanglae-Bhattarakosol [ 7 ] contains fixed-text data coming from 108 users. They entered static information (name, last name, email address, phone number) 10 times per entry using an iPhone’s touchscreen. 2.4 Considerations on datasets We chose these three different datasets because they have different characteristics: Aalto has by far the most users and the most data, however it was collected in a single session; meanwhile Buffalo has less data but it’s more interesting since it was collected over three sessions. Nanglae-Bhattarakosol was chosen because of its small size. 3 Authentication Algorithms There are several algorithms for keystroke recognition but they can be divided into broad categories: statistical, machine learning based and deep learning based. Statistical algorithms are the easiest to implement as they are deterministic and require low computing power. However, they necessitate manual feature extraction. We chose this type of algorithm for our project for these reasons, as well as due to our limited experience with machine learning and deep learning. The following section will provide a detailed description of the algorithms we used. 3.1 Mahalanobis Distance Mahalanobis distance takes into consideration the covariance of data variables, this makes it better suited for real-world data [ 8 ] . Euclidean and Manhattan distances have been used for their simplicity. However they are very sensitive to scale variations in the variables and they have no way to deal with correlation between feature variables like Mahalanobis can. The squared Mahalanobis distance between two vectors x and y is defined as: ||x-y||^{2}=(x-y)^{T}S^{-1}(x-y) (1) where S is the data’s covariance matrix. As

Read the complete text