Self-Supervised Cross-Dataset Generalization for Parkinson's Disease Detection using Hardware Agnostic Keystroke Dynamics

One of the challenges of early Parkinson's disease (PD) diagnosis is the absence of continuous monitoring of motor function, and periodic subjective clinical rating scales. In this paper, we introduce PD-KeySSL, a self-supervised deep learning framework capable of detecting early signs and symptoms of PD from passively recorded keystroke dynamics, as well as explicitly addressing the challenge of cross-dataset generalization, which is currently under-explored area of keystroke-biomarker research. Raw key press/release timestamps from two structurally different public datasets (Tappy: at-home, multi-hardware, 192 subjects; MIT-CSXPD: in-clinic, single-hardware, 85 subjects) are transformed into six hardware-agnostic temporal features, around an actuationbias-canceling dimensionless Hold-Time/Flight-Time ratio. In the pre-training procedure, a large amount of unlabeled sequences (91,589) is used in Barlow Twins self-supervised contrastive learning with a hybrid encoder (1D-CNN + multihead self-attention + bidirectional LSTM), while the finetuning procedure follows a two-phase supervised fine-tuning with a focal-loss strategy. The best non-SSL configuration in the strict train-on-one-dataset, test-on-another protocol is the attention encoder without SSL which achieves the highest AUC-ROC score (0.894, MIT→Tappy); the only configuration that performs well under all clinical metrics has high AUCROC (0.813), Sensitivity (0.751), and Specificity (0.893) with SSL-pretrained attention encoder. We also show a real-time inference platform built on the web, capable of making predictions within ≈70ms of capturing the raw keystrokes. The experiments show that feature engineering is not just a model complexity problem but that of a different kind of problem, and that self-supervised pre-training and attention are not mutually exclusive, but are complementary to boost the cross-dataset generalization.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-28
DOI
https://doi.org/10.5281/zenodo.24621699
Primary Topic
User Authentication and Security Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Self-Supervised Cross-Dataset Generalization for Parkinson's Disease Detection using Hardware Agnostic Keystroke Dynamics

Prof. Kishor Pathak, Atharva Tagalpallewar, Gaurav Hadge, Sidharth Arampadathil et al.
Zenodo (CERN European Organization for Nuclear Research)
User Authentication and Security Systems
article

Self-Supervised Cross-Dataset Generalization for Parkinson's Disease Detection using Hardware Agnostic Keystroke Dynamics

Prof. Kishor Pathak, Atharva Tagalpallewar, Gaurav Hadge, Sidharth Arampadathil, Vatsal Patil
article en

Abstract

One of the challenges of early Parkinson's disease (PD) diagnosis is the absence of continuous monitoring of motor function, and periodic subjective clinical rating scales. In this paper, we introduce PD-KeySSL, a self-supervised deep learning framework capable of detecting early signs and symptoms of PD from passively recorded keystroke dynamics, as well as explicitly addressing the challenge of cross-dataset generalization, which is currently under-explored area of keystroke-biomarker research. Raw key press/release timestamps from two structurally different public datasets (Tappy: at-home, multi-hardware, 192 subjects; MIT-CSXPD: in-clinic, single-hardware, 85 subjects) are transformed into six hardware-agnostic temporal features, around an actuationbias-canceling dimensionless Hold-Time/Flight-Time ratio. In the pre-training procedure, a large amount of unlabeled sequences (91,589) is used in Barlow Twins self-supervised contrastive learning with a hybrid encoder (1D-CNN + multihead self-attention + bidirectional LSTM), while the finetuning procedure follows a two-phase supervised fine-tuning with a focal-loss strategy. The best non-SSL configuration in the strict train-on-one-dataset, test-on-another protocol is the attention encoder without SSL which achieves the highest AUC-ROC score (0.894, MIT→Tappy); the only configuration that performs well under all clinical metrics has high AUCROC (0.813), Sensitivity (0.751), and Specificity (0.893) with SSL-pretrained attention encoder. We also show a real-time inference platform built on the web, capable of making predictions within ≈70ms of capturing the raw keystrokes. The experiments show that feature engineering is not just a model complexity problem but that of a different kind of problem, and that self-supervised pre-training and attention are not mutually exclusive, but are complementary to boost the cross-dataset generalization.

Zenodo (CERN European Organization for Nuclear Research)
User Authentication and Security Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon