The BeiHang Keystroke Dynamics Authentication System

Juan Liu, Baochang Zhang, LinLin Shen, Jianzhuang Liu, Jason ZhaoarXiv 2013

Introduction

Keystroke dynamics is a behavioral biometric that identifies individuals based on their unique typing patterns. Unlike traditional passwords, which can be forgotten or stolen, keystroke dynamics offers a layer of security derived from "how" a user types rather than "what" they type. The BeiHang Keystroke Dynamics Authentication System presents a novel approach by combining low-cost embedded hardware with advanced signal processing techniques, specifically Gabor filter banks, to enhance authentication accuracy.

Problem Statement

Traditional authentication methods like passwords and PINs are vulnerable to various attacks. While physiological biometrics (e.g., fingerprints, iris scans) provide higher security, they often require expensive, specialized hardware. Keystroke dynamics is a cost-effective alternative that utilizes existing input devices. However, the field has been held back by a lack of large-scale, real-world datasets and a reliance on simple timing features that may not capture the full complexity of a user's typing rhythm.

System Design and Hardware

The researchers developed two distinct systems to capture and process typing data. The first is an online system utilizing a kernel-level driver to record keystroke events with microsecond precision. The second is a standalone, low-cost ($15) embedded device built around an STC90C58AD microcontroller.

Illustration of dwelling time and flight time features, the core timing metrics used in keystroke dynamics.

The core features extracted are dwelling time (the duration a key is held down) and flight time (the interval between consecutive key presses). These timing sequences are treated as signals for further analysis.

The $15 standalone embedded authentication device featuring a microcontroller, LCD, and standard keypad.

The embedded system, shown above, demonstrates the viability of implementing sophisticated biometric authentication on resource-constrained hardware, making it suitable for secure login terminals without requiring a full PC.

Algorithmic Innovation: Gabor Feature Extraction

A significant contribution of this work is the application of Gabor filter banks to keystroke timing signals. While Gabor filters are traditionally used in image processing to detect spatial frequencies, the authors repurposed them to identify "rhythm frequencies" in typing patterns. By applying Fast Fourier Transforms (FFT), Discrete Cosine Transforms (DCT), and Gabor wavelets, the system can extract subtle rhythmic nuances that raw timing data often misses.

The system evaluates these features using several classifiers, including One-Class Support Vector Machines (OC-SVM), Gaussian Classifiers, and Nearest Neighbor (NN) algorithms. The researchers found that "Fusion"—combining multiple feature types or classifier scores—consistently created more reliable final decisions.

Datasets and Evaluation

To validate their approach, the researchers compiled two significant datasets involving 209 subjects:

  • BeiHang Keystroke Dynamics Database 1: Captured from an online system in internet cafes and labs (1,902 samples).
  • BeiHang Keystroke Dynamics Database 2: Collected via the embedded hardware (5,089 samples).

The datasets were further categorized into "Dataset A" (natural, unconstrained typing) and "Dataset B" (users encouraged to maintain a stable, customized rhythm).

Key Results

The experimental results highlight the effectiveness of Gabor features and the importance of user rhythm stability:

  • Gabor Performance: The inclusion of Gabor features significantly improved the Receiver Operating Characteristic (ROC) curves, particularly on the more challenging unconstrained datasets.
  • Accuracy: On the "Customized Rhythm" dataset (Database 2, Dataset B), the Gaussian classifier achieved an impressive Equal Error Rate (EER) of 3.68%, while the OC-SVM with Gabor features reached 4.61%.
  • Rhythm Stability: On the more difficult, unconstrained "Dataset A," EERs were higher (around 15-17%), highlighting that keystroke dynamics is most effective when treated as a learned "rhythmic password."

Conclusion and Future Work

The BeiHang system demonstrates that high-accuracy keystroke authentication is achievable using low-cost hardware and advanced signal processing. The use of Gabor filters represents a paradigm shift from simple timing analysis to rhythmic signal processing. Future work will focus on improving classifier robustness against user fatigue or stress and testing the system's scalability for larger user populations.

Summary updated

BibTeX
@misc{liu2013beihang,
  author = {Juan Liu and Baochang Zhang and LinLin Shen and Jianzhuang Liu and Jason Zhao},
  title = {{The BeiHang Keystroke Dynamics Authentication System}},
  year = {2013},
  eprint = {1310.4485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1310.4485},
}
Figure