This research proposes a two-level keystroke dynamics authentication system that provides defense-in-depth security through continuous behavioral drift monitoring. Level 1 employs fixed-text password authentication using Temporal Convolutional Networks (TCN) with contrastive learning and population-based training (PBT), achieving 3.77% EER for high-security login verification. Upon successful authentication, Level 2 continuously monitors user typing during natural free-text sessions using a 4-Model Deep Learning Ensemble. If suspicious behavioral drift is detected during monitoring, the system re-authenticates the user by returning to Level 1, providing a feedback loop against session hijacking and behavioral anomalies. The system explicitly models long-term behavioral drift through the fixed-text component's PBT mechanism, which adapts to temporal variations in password typing patterns. This research leverages free-text (Buffalo dataset) and fixed-text (GREYC dataset) keystroke dynamics datasets, extracting temporal and spatial features including hold times, up-down latencies, down-down intervals, and trigram patterns. The final system achieves 96%+ accuracy for fixed-text authentication (3.77% EER) and 83.53% True Acceptance Rate (TAR) at 5% False Acceptance Rate (FAR) for free-text continuous authentication (10.05% EER), demonstrating superior performance and strong resistance to impostor attacks through continuous behavioral monitoring.
Figures & tables
Fig. 1: Two-Level Behavioral Authentication System
Fig. 2: Evo-BioTCN layer architecture
Layer
Type
Parameters
Output Dim.
Input
Feature Vector
–
231
Projection
1×1 Conv
14,848
64
TCN Block 1
Dilated Causal Conv
dilation=1, kernel=3
64
TCN Block 2
Dilated Causal Conv
dilation=2, kernel=3
64
TCN Block 3
Dilated Causal Conv
dilation=4, kernel=3
64
TCN Block 4
Dilated Causal Conv
dilation=8, kernel=3
64
TABLE I: Evo-BioTCN layer specifications
Feature Category
Count
Drift Resilience
Rationale
Rank Features
32
✓ High
Ordinal positions invariant to speed scaling
Ratio Features
32
✓ High
Proportions of total time resist global drift
Rhythm/Entropy
7
✓ High
Timing variance patterns persist across sessions
Hand Balance
4
✓ High
Left/right asymmetry reflects motor dominance
Statistical
44
Medium
Mean, std, CV capture within-session consistency
Normalized Timing
60
Medium
Session-relative z-scores
TABLE II: Feature categories organized by drift resilience
Department of Computer Science, University of Huddersfield, HD1 3DH Huddersfield, U.K. · College of Intelligence and Computing, Tianjin University, Tianjin, China