Abstract
Continuous authentication systems verify user identity through behavioral biometrics like keystroke dynamics, providing a persistent security layer beyond initial login. A critical challenge in this field is the "detection window"—the amount of data required to accurately identify an imposter. This study proposes a novel approach using distance metric fusion of three statistical tests: Kernel Density Estimation (KDE), the Kolmogorov-Smirnov (KS) test, and Energy Distance. By applying a "Majority Rules" fusion logic, the system achieves a state-of-the-art Equal Error Rate (EER) of 3.6% with 1,000 characters and remains functional with as few as 100 characters, offering a significant improvement in detection speed without compromising long-term accuracy.
Introduction
Static authentication methods, such as passwords or biometrics used at login, are vulnerable if a session is hijacked after the initial check. Continuous authentication addresses this by monitoring user behavior throughout a session. Keystroke dynamics, specifically the timing between key presses (digraphs), provides a unique behavioral "fingerprint." However, most current algorithms require extensive typing samples (often >1,000 characters) to reach acceptable accuracy levels. This latency creates a window of opportunity for intruders. This research investigates how statistical fusion can minimize this window, enabling faster detection of unauthorized users.
Methodology
The core of the proposed system is the analysis of digraphs—the duration between two consecutive key-down events. To compare a live test sample against a stored reference profile, three distinct statistical distance metrics are employed:
- Kernel Density Estimation (KDE): A non-parametric method to estimate the probability density function of typing speeds, capturing the "shape" of a user's timing distribution.
- Kolmogorov-Smirnov (KS) Test: A test comparing cumulative distribution functions to identify the maximum divergence between reference and test samples.
- Energy Distance: A robust metric for measuring differences between two statistical distributions.
To enhance performance, these metrics are combined via Distance Metric Fusion. Two primary logic gates were tested: "All 3 Agree" (requiring consensus for authentication) and "Majority Rules" (requiring at least two metrics to pass).
Data Sparsity and the 100-Digraph Threshold
The study utilized the Clarkson II dataset, containing 12.9 million keystrokes from 103 users. A significant finding was the impact of sample size on data density. As the test sample size decreases, the frequency of specific digraphs drops, leading to sparse distributions that are harder to classify.
As shown in the distributions above, smaller samples (e.g., 100 digraphs) result in a high percentage of digraphs appearing only once or twice, making statistical comparison less reliable. The researchers identified 80-100 digraphs as the lower limit for stable error rate calculation.
Performance Evaluation
The "Majority Rules" fusion method consistently outperformed individual metrics and the stricter "All 3 Agree" logic. The fusion of the KS test with KDE or Energy Distance proved particularly effective, as the KS test provides a complementary perspective on the distribution differences.
The ROC curves illustrate the performance degradation as the detection window shrinks. While accuracy is highest at 1,000 digraphs, the system remains a viable "smoke detector" even at 100 digraphs, where it can flag anomalies nearly instantaneously.
Key Results
The fusion approach demonstrated significant improvements over existing benchmarks:
- 1,000 characters: Achieved a 3.6% EER, outperforming previous state-of-the-art results (7.6% EER) on the same dataset.
- 500 characters: Achieved a 6.6% EER, matching or exceeding previous methods that used twice as much data.
- 100 characters: Achieved a 35.3% EER. While not sufficient for standalone security, this provides a rapid initial alert mechanism.
Conclusion
By fusing multiple statistical distance metrics, this research successfully reduces the data requirements for continuous keystroke authentication. The "Majority Rules" approach offers a flexible and robust framework for real-world environments, where typing data can be "dirty" or sparse. Future work will explore weighted fusion techniques and the application of deep learning to further optimize the detection window and accuracy trade-off.
Summary updated