A Study on User Authentication based on Keystroke Dynamics of Long and Free Texts

Pilsung Kang, Sung-Zoon ChoIE 2012

Abstract

Keystroke dynamics offers a non-intrusive behavioral biometric for user authentication. This study proposes two algorithms for "free text" authentication: the K-S score (based on the Kolmogorov-Smirnov test) and the R-A measure (combining relative order and absolute similarity). Testing with over 3,000 keystrokes from Korean and English speakers, the K-S score proved robust for short texts, while the R-A measure achieved superior accuracy (EER ~1.6%) for longer texts.

Introduction

Traditional security relies on "what you know" (passwords) or "what you have" (tokens). Behavioral biometrics focus on "how you do it." Keystroke dynamics analyze typing patterns—specifically the timing between key presses—to verify identity. Unlike "fixed-text" systems that require a specific password, "free-text" systems allow for continuous authentication by analyzing any text the user types, such as emails or documents. The challenge lies in the unpredictability of free text, requiring algorithms that can handle variability across different languages and text lengths.

Defining Keystroke Features

The fundamental data in keystroke dynamics are the timings associated with key events.

Keystroke timing features: Duration (hold time) and Interval (latency between keys).

As shown in Figure 1, researchers typically measure the "Duration" (how long a key is held) and the "Interval" (the time between releasing one key and pressing the next). These timings form a unique signature for each user. In fast typing, intervals can even be negative, indicating that a user has pressed the next key before releasing the previous one.

Proposed Authentication Algorithms

The paper introduces two distinct approaches to handle the variability of free text.

1. K-S Score (Kolmogorov-Smirnov Test)

This method treats all key latencies as a single statistical distribution. By applying the K-S test, the system compares the cumulative distribution of a user's current typing session against their enrolled profile. This "key-agnostic" approach is particularly effective when the amount of available data is limited, as it looks at the overall timing fingerprint rather than specific key combinations.

2. R-A Measure

For longer texts, a more granular analysis of "digraphs" (pairs of keys) is used. The R-A measure combines two metrics:

  • 'R' (Relative Order): Measures the "disorder" between the speed rankings of key pairs in the test sample versus the profile.
  • 'A' (Absolute Similarity): Calculates how closely the actual millisecond timings match for shared key pairs.
The R-A measure components: (a) Degree of disorder (R) and (b) Latency similarity (A).

The innovation here is the multiplicative combination ($R \times A$), which creates a parameter-free score between 0 and 1. This avoids the need for manual weight tuning required by previous additive models, making the system more robust and easier to generalize across different users.

Experimental Evaluation

The researchers collected data from 34 Korean and 35 English-speaking subjects, each providing 3,500–4,000 keystrokes. Performance was evaluated across three scenarios: Short (100 keys), Medium (500 keys), and Long (1,000 keys).

Results and Discussion

The effectiveness was measured using the Equal Error Rate (EER)—the point where false acceptances and false rejections are equal.

  • Short Texts: The K-S Score was the most effective, achieving an EER of approximately 17%.
  • Long Texts: The R-A Measure significantly outperformed other methods, reaching an EER of 1.54% for Korean and 1.72% for English.

Notably, the results were consistent across both languages, suggesting that keystroke dynamics are a language-independent motor trait. This implies that a profile built in one language might even be applicable to another, highlighting the fundamental nature of typing behavior.

Conclusion and Future Work

This study demonstrates that keystroke dynamics can provide highly accurate continuous authentication without specialized hardware. While the K-S score is ideal for quick checks with minimal data, the R-A measure provides enterprise-grade security as more text is typed. Future research will address the impact of mobile touchscreens and the natural "temporal drift" of a user's typing style over time through incremental learning models.

Summary updated

BibTeX
@inproceedings{kang2012study,
  author = {Pilsung Kang and Sung-Zoon Cho},
  title = {{A Study on User Authentication based on Keystroke Dynamics of Long and Free Texts}},
  booktitle = {IE},
  year = {2012},
  doi = {10.7232/ieif.2012.25.3.290},
}
Figure