Step 1: Recording
- Data Recording:
- Data is recorded for all 5 fingers, each recorded 5 times.
- Two recording sessions:
- First session: 4-second gap between recordings.
- Second session: 2-second gap between recordings.
- Filtering:
- Bandstop filter: 45 to 55Hz.
- Bandpass filter: 1 to 400Hz.
- Data Storage:
- Recorded raw data is saved in CSV files.
- Data Splitting:
- Split data into test and train datasets.
- Test dataset: 4-second interval.
- Train dataset: 2-second interval.
- Data Smoothing:
- Peak Detection:
- Labels: Thumb, Index, Middle, Ring, Pinky.
- Window size: 500 for each finger.
- Baseline: 100ms window between two peak centers with a width of 100ms.
- Time features considered:
- MAV (Mean Absolute Value)
- VAR (Variance)
- WL (Waveform Length)
- RMS (Root Mean Square)
- CSV files for 4-second, 2-second, and combined data intervals are exported.
- Open
TrainMLModels.ipynb. - Run the initial cells based on your requirement:
- Combined data.
- Data of an individual subject.
- Defined metrics for the confusion matrix.
- Implemented three ML models:
- SVM (Support Vector Machine)
- Random Forest
- CNN (Convolutional Neural Network)

- Change Window Size: Experiment with different window sizes for feature extraction.
- Change Number of Epochs for CNN: Adjust the number of training epochs for the Convolutional Neural Network.
- Add More Time Features: Incorporate additional time-domain features for better representation of the data.
- Frequency Domain Analysis: Perform frequency domain analysis to extract frequency-based features.
- Change Sampling Rate: Experiment with different sampling rates during data recording to capture more detailed signal information.
- Recording Software: Provided in this repository.
- Processing and Labelling: Performed in
LabellingDataset.ipynb.
Ensure all paths to images and GIFs are correctly set in the markdown. Adjust parameters and model training steps as necessary for your specific dataset and use case.
- This project is supported by Upside Down Labs, who provided valuable guidance and the necessary hardware.



