How c5ln/asmr works
This repository replicates a keyboard acoustic side-channel classifier: recorded audio is segmented into keystrokes, transformed into mel-spectrograms, and classified among 36 keys. The main workflows are offline dataset generation and model training, plus standalone audio inference. The graph retains the separate preprocessing paths and model/checkpoint handoff. Relationships for training data loading and documented outputs rely on the README; source excerpts do not show every training-loop setup detail.
Main entry points: infer.py Inference workflow · train.py Training loop · store_data.py Offline augmentation · dataset.py Keystroke isolation
Components 19
Recordings and preprocessing
- MacBook recordings
MBPWavs - Zoom recordings
Zoom - Keystroke isolation
dataset.py - Mel features
dataset.py
Dataset and training
- Offline augmentation
store_data.py - Augmented tensors
- Training dataset
train.py - Training loop
train.py - CAFormer classifier
train.py - Best model weights
- Training checkpoints
Standalone inference
- Audio file
- Inference workflow
infer.py - Audio loading
infer.py - Stroke extraction
infer.py - Inference features
infer.py - Inference classifier
infer.py - Key candidates
Other components
- Researcher
Connections 23
- Researcher → MacBook recordings: provides recordings
README.md - Researcher → Zoom recordings: provides recordings
README.md - MacBook recordings → Keystroke isolation: loads and segments
dataset.py - Zoom recordings → Keystroke isolation: can load
- Keystroke isolation → Mel features: extracts strokes for
dataset.py - Researcher → Offline augmentation: generates dataset
README.md - Offline augmentation → Keystroke isolation: loads keystrokes via
store_data.py - Offline augmentation → Mel features: computes mel features
store_data.py - Offline augmentation → Augmented tensors: saves tensors
README.md - Researcher → Training loop: starts training
README.md - Augmented tensors → Training dataset: supplies tensors
README.md - Training dataset → Training loop: feeds batches
README.md - Training loop → CAFormer classifier: trains and evaluates
train.py - Training loop → Best model weights: saves best weights
train.py - Training loop → Training checkpoints: saves checkpoints
train.py - Researcher → Inference workflow: runs inference
README.md - Audio file → Inference workflow: provides audio
README.md - Best model weights → Inference workflow: provides model weights
README.md - Inference workflow → Audio loading: loads audio
infer.py - Inference workflow → Stroke extraction: extracts strokes
infer.py - Inference workflow → Inference features: preprocesses strokes
infer.py - Inference workflow → Inference classifier: loads and predicts with
infer.py - Inference classifier → Key candidates: returns candidates
infer.py