Abstract
Behavioral biometrics, particularly keystroke dynamics, have traditionally been utilized for user authentication. This study investigates a secondary dimension: the inference of "soft biometrics"—demographic traits such as gender, age, and height—from typing patterns across desktops, tablets, and smartphones. By benchmarking various machine learning and deep learning architectures on the SU-AIS BB-MAS dataset, the research demonstrates that behavioral "footprints" can accurately reveal a user's profile without explicit demographic input, highlighting significant privacy implications in multi-device environments.
Introduction
While most keystroke dynamics research focuses on authentication (verifying if a user is who they claim to be), this paper addresses the challenge of user profiling and inference. The core objective is to determine if a demographic profile can be constructed solely from a user's typing rhythm. This capability has broad implications for personalization, where UI/UX can be tailored without intrusive forms; security and forensics, for identifying fraudulent profiles; and digital privacy, by revealing the extent of data "leakage" during routine interactions.
Methodology
The researchers benchmarked six classical Machine Learning (ML) models, including SVM and XGBoost, against four Deep Learning (DL) architectures: Fully Connected, CNN, RNN, and LSTM. A significant contribution of this work is the adaptation of tabular keystroke data for spatial and sequential models.
To utilize Convolutional Neural Networks (CNNs) on 1D feature vectors, the authors employed a "CNN Trick," reshaping data into the largest possible perfect square "image" (e.g., a 100-feature vector becomes a 10x10 image). For sequential models like RNNs and LSTMs, they used a heuristic to find the largest non-prime number smaller than the feature dimensionality to reshape the vector into a sequence.
As shown in the figure above, the study extracted three primary feature types:
- Unigraphs: Key hold times (the duration a key is pressed).
- Digraphs: Flight times (the interval between two consecutive key presses).
- Word-level features: Aggregated statistics (mean, median, standard deviation) of timings within a single word.
Experimental Setup
The study utilized the SU-AIS BB-MAS (Keystroke) dataset, which contains approximately 3.5 million keystrokes from 117 participants. Data was collected across three distinct devices: a Dell desktop, a Samsung S6 tablet, and an HTC Nexus 9 smartphone. Participants performed both "Fixed-text" tasks (typing specific sentences) and "Free-text" tasks (answering open-ended questions).
The demographic breakdown in the table above highlights the specific "soft biometrics" targeted for inference, including gender, academic major, typing style, age, height, ethnicity, and handedness.
Results and Discussion
The experimental results revealed several key insights into behavioral patterns:
- Device Synergy: Performance generally peaked when data from all three devices were combined, suggesting a core "behavioral DNA" that persists across platforms despite device-specific typing adjustments.
- The "CS Major" Signature: The models successfully predicted if a student was a Computer Science major (87.80% accuracy). Researchers hypothesize that CS majors exhibit higher fluency on physical desktop keyboards compared to mobile devices, creating a distinct behavioral delta.
- ML vs. DL Performance: Deep Learning (specifically CNNs) dominated classification tasks like gender and major. However, classical ML models like KNN and XGBoost proved superior for regression tasks, such as estimating height.
- Contextual Nuance: Free-text entry generally yielded better results for gender and age inference than fixed-text, as natural typing captures more authentic behavioral nuances.
Performance Metrics
The best-performing configurations achieved the following:
- Typing Style: 96.15% accuracy.
- Gender: 93.02% accuracy.
- Age: Mean Absolute Error (MAE) of 1.77 years.
- Height: MAE of 2.65 inches.
Conclusion
This research demonstrates that typing patterns are a rich source of demographic information. However, the authors note limitations regarding dataset imbalance, particularly the heavy skew toward Asian and right-handed participants. Future work aims to integrate keystroke data with other modalities, such as swiping patterns or gait, to further refine these soft biometric profiles and better understand the privacy risks associated with behavioral tracking.
Summary updated