Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jan;70(1):182-192.
doi: 10.1109/TBME.2022.3187309. Epub 2022 Dec 26.

Keystroke-Dynamics for Parkinson's Disease Signs Detection in an At-Home Uncontrolled Population: A New Benchmark and Method

Keystroke-Dynamics for Parkinson's Disease Signs Detection in an At-Home Uncontrolled Population: A New Benchmark and Method

Shikha Tripathi et al. IEEE Trans Biomed Eng. 2023 Jan.

Abstract

Parkinson's disease (PD) is the second most prevalent neurodegenerative disease disorder in the world. A prompt diagnosis would enable clinical trials for disease-modifying neuroprotective therapies. Recent research efforts have unveiled imaging and blood markers that have the potential to be used to identify PD patients promptly, however, the idiopathic nature of PD makes these tests very hard to scale to the general population. To this end, we need an easily deployable tool that would enable screening for PD signs in the general population. In this work, we propose a new set of features based on keystroke dynamics, i.e., the time required to press and release keyboard keys during typing, and used to detect PD in an ecologically valid data acquisition setup at the subject's homes, without requiring any pre-defined task. We compare and contrast existing models presented in the literature and present a new model that combines a new type of keystroke dynamics signal representation using hold time and flight time series as a function of key types and asymmetry in the time series using a convolutional neural network. We show how this model achieves an Area Under the Receiving Operating Characteristic curve ranging from 0.80 to 0.83 on a dataset of subjects who actively interacted with their computers for at least 5 months and positively compares against other state-of-the-art approaches previously tested on keystroke dynamics data acquired with mechanical keyboards.

PubMed Disclaimer

Figures

Fig 1.
Fig 1.
Keystroke dynamics features.
Fig 2.
Fig 2.
The figure above shows the complete pipeline of the feature extraction process. The HT/FT sequences are used to generate the features maps GEN, ASYM, and COG using the key type of interest (KTI). The feature extraction method is expanded and shows the transformation of HT/FT signals to the binned probability densities (20) in the form of matrices. These matrices are broken down into fixed size matrices of dimension 21 × 20. The fixed size hold-time matrices (htm) are stacked with the fixed size flight-time matrices (ftm) along the depth. The stacking is performed for every time a HT and FT sequence is processed, determining the depth of the final feature matrices.
Fig 3.
Fig 3.
The convolutional neural network architecture consists of 4 convolutional layers namely, Conv Layer 1, 2, 3, and 4. Conv Layer 1 and 3 have a filter of height 2 and width 3. Conv Layer 2 and 4 have a filter of height 2 and width 5. The output classes are Parkinson’s and Control.
Fig 4.
Fig 4.
The attributions (positive, negative, and zero) for the confirmed diagnosis set. The positive (blue) attributions are obtained after setting a threshold of greater than 0 in the attribution matrix. Similarly, negative attributions (red) are generated after setting a threshold of less than 0 in the attribution matrix. Zero valued attributions are the values in the attribution matrix equal to 0. “All-keys-HT” and “All-keys-FT” do not have any zero-valued attributions since they project the sum of attributions from all the keys present in the set and thus unless all the attributions are 0 the total of the attribution is a non-zero value. Attribution matrix is obtained using integrated gradients [26].
Fig 5.
Fig 5.
The attributions (positive, negative, and zero) for the unconfirmed diagnosis set. The positive (blue) attributions are obtained after setting a threshold of greater than 0 in the attribution matrix. Similarly, negative attributions (red) are generated after setting a threshold of less than 0 in the attribution matrix. Zero valued attributions are the values in the attribution matrix equal to 0. “All-keys-HT” and “All-keys-FT” do not have any zero-valued attributions since they project the sum of attributions from all the keys present in the set and thus unless all the attributions are 0 the total of the attribution is a non-zero value. Attribution matrix is obtained using integrated gradients [26].
Fig 6.
Fig 6.
The figure shows a stacked bar chart for the positive attributions for each of the valid windows summed across all subjects in both the confirmed and unconfirmed diagnosis arms. The feature representations used to train GEN-ASYM-NET are color-coded and labeled as shown in the figure legend. The y-axis represents the number of days over which the keystroke activity was evaluated. The x-axis represents the values of positive attributions summed across all subjects. The positive attributions are obtained after setting a threshold of greater than 0 in the attribution matrix obtained after applying integrated gradients [26] on the input feature matrix. Positive attributions represent the components of the feature matrix that contribute positively during training.
Fig 7.
Fig 7.
Receiver operating characteristic curves (ROC) showing the comparison of the performances of methods GEN-COG_NET, GEN-ASYM-NET, GEN-NET, presented in the paper. The performance of the methods shown in the figure above is evaluated by averaging the AUC scores over 5-folds and 30 repetitions for the unconfirmed and confirmed diagnosis sets. After averaging the AUC scores, we see the GEN-ASYM-NET outperforms the rest of the proposed methods.

Similar articles

Cited by

References

    1. Dorsey ER et al., “Global, regional, and national burden of Parkinson’s disease, 1990–2016: a systematic analysis for the Global Burden of Disease Study 2016,” Lancet Neurol, vol. 17, no. 11, pp. 939–953, Nov. 2018, doi: 10.1016/S1474-4422(18)30295-3. - DOI - PMC - PubMed
    1. Paolini Paoletti F, Farotti L, and Parnetti L, “Progression of symptoms in Parkinson’s disease,” in Diagnosis and Management in Parkinson’s Disease, Elsevier, 2020, pp. 3–20. doi: 10.1016/B978-0-12-815946-0.00001-6. - DOI
    1. Lang AE, “Clinical trials of disease-modifying therapies for neurodegenerative diseases: the challenges and the future,” Nat. Med, vol. 16, no. 11, pp. 1223–1226, Nov. 2010, doi: 10.1038/nm.2220. - DOI - PubMed
    1. Haq NF, Cai J, Yu T, McKeown MJ, and Wang ZJ, “Parkinson’s Disease Detection from fMRI-Derived Brainstem Regional Functional Connectivity Networks,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2020, vol. 12267, Martel AL, Abolmaesumi P, Stoyanov D, Mateus D, Zuluaga MA, Zhou SK, Racoceanu D, and Joskowicz L, Eds. Cham: Springer International Publishing, 2020, pp. 33–43. doi: 10.1007/978-3-030-59728-3_4. - DOI
    1. Khoo SK et al., “Plasma-Based Circulating MicroRNA Biomarkers for Parkinson’s Disease,” J. Park. Dis, vol. 2, no. 4, pp. 321–331, 2012, doi: 10.3233/JPD-012144. - DOI - PubMed

Publication types