GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jatanloya/KeystrokeAnalysis: Neural Network developed to detect keystroke dynamics.

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
GUI
GUI
 
 
.gitignore
.gitignore
 
 
DSL-StrongPasswordData.csv
DSL-StrongPasswordData.csv
 
 
DataGen.py
DataGen.py
 
 
EER.py
EER.py
 
 
Manhatton_scale_detector.py
Manhatton_scale_detector.py
 
 
NeuralNet.py
NeuralNet.py
 
 
README.md
README.md
 
 
SVM.py
SVM.py
 
 
hpsearch.py
hpsearch.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Keystroke Analysis for Authentication

A system for analysing keystroke dynamics to authenticate users based on their inherent typing behaviour.

We built models using an SVM, a Manhattan (scaled) detector and a neural network, and a basic GUI for generating and retrieving keystroke data.

Our neural network reaches about 95% accuracy on a held-out test set (the SVM reaches about 79%), and the scaled Manhattan detector has an average Equal Error Rate of 0.096.

The models use the CMU Keystroke Dynamics Benchmark dataset (DSL-StrongPasswordData.csv, included in this repo).

Setup

pip install -r requirements.txt

Usage

Run the scripts from the repository root (they read DSL-StrongPasswordData.csv from the working directory):

Script What it does
python Manhatton_scale_detector.py Average Equal Error Rate (EER) of the scaled Manhattan anomaly detector across all subjects
python SVM.py Trains an RBF SVM to identify the subject and prints test accuracy
python NeuralNet.py Trains a dense network (log-scaled features, 512→256 with dropout, early stopping) to identify the subject, prints test accuracy and plots accuracy per epoch
python hpsearch.py STAGE Staged hyperparameter search behind NeuralNet.py (0 = preprocessing, 1 = architecture, 2 = regularisation, 3 = optimiser), scored on a validation split
python DataGen.py Records key-press timestamps while you type a password (needs keyboard-monitoring permission on macOS)
python GUI/logger.py, python GUI/login.py Basic Tkinter GUIs for entering a password and a demo login screen

References

https://www.cs.cmu.edu/~keystroke/

This is a very comprehensive source for anyone who wants to try out keystroke analysis.

https://www.cs.cmu.edu/~keystroke/KillourhyMaxion09.pdf

The above research paper compares various anomaly detection algorithms and how they fare for this purpose.

About

Neural Network developed to detect keystroke dynamics.

Topics

keystroke-analysiskeystroke-dynamicsneural-networksvm-classifier

Resources

Readme
Activity

Stars

11 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.