Downloads · 30 days
6
2% of all-time downloads
HID-APP/LSTM-1win-Keystrokes
LSTM-1win-Keystrokes is a machine learning model from HID-APP. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
This repository contains a PyTorch LSTM classifier for Human vs HID keystroke control detection using windowed timing features. The label for each window is the last keystroke label in that window.
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
272
Public
Parameters
19.6K
158 KB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors78.8 KB · 91%
From the Hugging Face model README
This repository contains a PyTorch LSTM classifier for Human vs HID keystroke control detection using windowed timing features. The label for each window is the last keystroke label in that window.
durationDD_timeDU_timeUD_timeUU_timerun_avg_durationrun_avg_DDrun_avg_DUrun_avg_UDrun_avg_UUsliding_window_view.StandardScaler fitted on training windows only, across all timesteps and samples.torch.nn.LSTM (unidirectional, batch_first)model.safetensors: model weightsconfig.json: architecture + feature metadatascaler.joblib: fitted StandardScalermetrics.json: classification report + confusion matrixinference.py: minimal loading + prediction examplefrom inference import load_model_and_scaler, predict_df
model, scaler, cfg = load_model_and_scaler("NourFakih/LSTM-1win-Keystrokes")
y_pred = predict_df(df, model, scaler, cfg) # df must contain cfg["feature_cols"]