-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Dataset #5
Comments
Hi, I have uploaded all the signals from the VM muscle to my kaggle account (can be found here: https://www.kaggle.com/datasets/mariatoubal/emglab-vm) My partner has uploaded the signals from the BB muscle (can be found here: https://www.kaggle.com/datasets/lydialoubar/emglab) I still have the full dataset It contains some signals with nan values but I can provide a code to remove them. plz suggest a way of sharing if you need the whole dataset (couldn't upload on github, kaggle and drive) |
Hi , thank you very much for your share. import matplotlib.pyplot as plt folder_path = 'C:/Users/CASPER/Desktop/VM' Initialize a list to hold each signal as a separate numpy arraydata_list = [] Loop through each file in the folderfor filename in os.listdir(folder_path):
Stack all arrays vertically, so each signal has its own rowVMdataset1 = np.hstack(data_list).T Print the shape of the result array for verificationprint(VMdataset1.shape) loop through each row (signal) of the datafor i in range(VMdataset1.shape[0]): aaaa= VMdataset1[2,:] plt.plot(aaaa) |
This is the code I used to read the dataset, you can also try to look for the physionet dataset I left the link below from IPython.display import display Demo 1 - Read a WFDB record using the 'rdrecord' function into a wfdb.Record object.Plot the signals, and show the data.record = wfdb.rdrecord('C:/Users/lenovo/OneDrive/Documents/working-on-N2001-EMG-labdataset/dataset/N2001A03BB/N2001A03BB51/N2001A03BB51') #here change the path to the one of the dataset on your pc Can also read the same files hosted on PhysioNet#https://physionet.org/content/challenge-2015/1.0.0 in the /training/ database subdirectory. |
Thank you for your return Additionally, this is an example of signals in the BB and VM datasets : Are BIN files not compatible with numpy and only works with wfdb ? Can you share another version? |
Okay I solved the WFDB issue. I imported, than used related part of your Kaggle code. However, the acquisition of some of the EMG signals done by the authors are inaccurate and has high variance, in the dataset. This reduces the metric scores of my model. Paying attention to re-selection of data is important I guess. |
How we can get the dataset, the EMGLab website is not available now, it's not working.
Can you share the dataset also?
The text was updated successfully, but these errors were encountered: