Deep Learning Based Behavioral Drift Modeling for Continuous Biometric Authentication

Suprava Saha Dibya, Minar, Abdulla Al Noman, Md. Zafir Abid Shresto, Ahmed SayefarXiv 2026 · arXiv

TL;DR

This paper introduces a two-level keystroke dynamics system that solves the "behavioral drift" problem—the natural evolution of a user's typing patterns over time. By combining a frozen Temporal Convolutional Network (TCN) backbone with lightweight adapters evolved via Population-Based Training (PBT), the system achieves a 3.77% Equal Error Rate (EER) for logins and maintains continuous security during free-text sessions with a robust 4-model deep learning ensemble.

What Problem Does This Paper Address?

Traditional biometric systems (like fingerprints or face ID) are static; once a template is set, it rarely changes. Behavioral biometrics, specifically keystroke dynamics, are different. How you type changes based on fatigue, stress, learning effects (the "Power Law of Practice"), and even the passage of time. The authors found that 66.7% of users show significant changes in typing latency over just 110 days.

This creates three major hurdles:

  1. The Stability-Plasticity Dilemma: How do you update a model to follow a user's evolving behavior (plasticity) without losing the core features that define their identity (stability)?
  2. Catastrophic Forgetting: Standard retraining often causes models to "forget" original identity features.
  3. Frog-Boiling Attacks: If a system is too adaptive, a clever attacker can slowly mimic a user's rhythm over weeks, gradually "boiling" the system into accepting an impostor.

Methods

The authors propose a "Defense-in-Depth" architecture split into two levels, illustrated in the overview below:

![Fig.

  1. Two-Level Behavioral Authentication System](/figures/art_93e53e81aa074603a1debbd0f2d08bf3)

Level 1: Fixed-Text (Evo-BioTCN)

For the initial login, the system uses a Temporal Convolutional Network (TCN). Unlike Transformers, which look at global relationships, TCNs are better at capturing the local, causal dependencies inherent in typing (e.g., the rhythm of specific letter pairs).

To handle drift, they use a Dual-Stage Strategy:

  • Frozen Backbone: A large TCN captures universal typing features and remains unchanged.
  • Lightweight Adapters: Small modules (only ~512 parameters) are added to the network. These are evolved using Population-Based Training (PBT), which treats model updates like natural selection to track the user's behavioral trajectory without full retraining.
  • Trust Anchors: To prevent "frog-boiling," the PBT fitness function includes a "Trust Anchor" loss that penalizes the model if it drifts too far from the original enrollment data.

Level 2: Free-Text (4-Model Ensemble)

Once logged in, the system continuously monitors natural typing. Because free-text is unstructured, the authors use a 4-model ensemble (including ArcFace and Triplet Loss architectures) to handle the high variance of natural language. If an anomaly is detected, the user is kicked back to Level 1 for re-authentication.

![Fig.

  1. 4-Model Architecture](/figures/art_74dbbe282e6346fb8448c94335647cd1)

Datasets

  • GREYC Keystroke Dataset: Used for Level 1. It contains longitudinal data over 110 days from 133 users, making it ideal for testing behavioral drift.
  • Buffalo Dataset: Used for Level 2. It consists of free-text digraph records from 75 participants across multiple sessions.

Key Insights and Ideas

  • TCNs > Transformers for Typing: The authors found that TCNs outperform Transformers here because typing is inherently local and causal. The latency of a keypress depends on the previous key, not a future one.
  • The "Goldilocks Effect": In their ablation study of 18 architectures, medium-complexity models performed best. Massive deep models overfit the noise, while simple statistical models couldn't capture the nuance.
  • Accuracy is a Lie: The paper highlights a massive pitfall in biometric research: class imbalance. In a system with 131 impostors for every 1 genuine user, a model can achieve 98% accuracy just by rejecting everyone. The authors argue researchers must use rate-based metrics like EER and TAR (True Acceptance Rate) on balanced sets to see the truth.

Key Results

The two-level approach creates a formidable barrier. The theoretical success probability for a random impostor to bypass both levels is roughly 0.38% ($0.0377 \times 0.1005$).

  • Level 1 (Fixed-Text): Achieved a 3.77% EER, a significant improvement over the 13.60% EER of classical baselines.
  • Level 2 (Free-Text): Achieved a 10.05% EER and an 83.53% TAR at a 5% False Acceptance Rate.
  • Efficiency: By only updating 512 parameters in the adapter rather than retraining the whole model, the system is suitable for resource-constrained edge devices.

The clear separation between genuine and impostor scores in Level 1 is shown in the distribution below:

Score distribution showing minimal overlap

Limitations and Future Work

While the results are strong, the authors acknowledge a few constraints:

  • Hardware Variability: The study didn't extensively test how switching between different keyboards (e.g., mechanical vs. membrane) affects the drift model.
  • Population Size: The free-text evaluation was limited to 75 users, which may not capture the full diversity of global typing behaviors.
  • Sophisticated Attacks: The evaluation assumed "zero-effort" impostors. Future work needs to test against generative AI designed to mimic specific user rhythms.
  • Multimodal Fusion: The authors suggest that combining keystroke data with mouse dynamics or touchscreen gestures could further drive down error rates.

Summary updated

Abstract

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.
BibTeX
@misc{dibya2026deep,
  author = {Suprava Saha Dibya and Minar and Abdulla Al Noman and Md. Zafir Abid Shresto and Ahmed Sayef},
  title = {{Deep Learning Based Behavioral Drift Modeling for Continuous Biometric Authentication}},
  year = {2026},
  eprint = {2610.40398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.40398},
}
Figure