-
Notifications
You must be signed in to change notification settings - Fork 124
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
Number of events 0 #112
Comments
@Maari13, ran through your file locally and this seems to be the reason why you're not getting events returned. In the notebook, you'd notice that this snippet exists:
The Notice below how changing the NB: EEG is quite noisy by default, even minor blinks & muscle movements can be responsible for spikes in data, causing the events to be filtered out when reject is applied My recommendation here would be
cc @JohnGriffiths & @ErikBjare if they have any other ideas that could help here |
Thank you @oreHGA - indeed this is not an uncommon issue. As Ore said, you can try tweaking the threshold iteratively; e.g. up/down a few percent. You will probably see as you do that more epochs are kept the more lenient you go, and concurrently that the average ERP trace gets noisier ('wigglier'), because more noisy data points are being included. As Ore said, the fundamental issue here is a noisy recording set up. Try using the muselsl signal viewer to confirm you have good signal before running the experiment
(you may have to also And make sure the numbers on the right are <20. Then kill the viewer and run the eegnb expt. We have nearly finished a simple signal quality check function for eeg notebooks that will help with this part of the setup process. Watch this space (or watch the PRs if you're very interested). Let us know if this helps! |
Thank you so much for the explanation and advice. It did not occur to me that an automatic quality check was applied to the epoch data. I was going to do longer recordings, but first wanted to make sure I got things to work and then was puzzled ... I will definitely need to check the contact of the electrodes with the scalp and preview the signal before acquiring data next time. And then tweek the reject value |
Hi @Maari13 , hope you were able to get more sample in after adjusting the "reject" threshold. I'll go ahead and close this now but feel free to reply to the thread if you still have any issues. Cheers |
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Based on the marker column a number of events is detected, including both target and non-target events. The output resulting from running this cell shows the corresponding results
❌ Actual result
The output shows that 23 events were found, however, in the table below the number of events is 0, and there are 0 occurrences of both target and non-target events
📷 Screenshots
I believe that this issue is connected to #108 / #111 . If I use the example data (subject 1, session 1) that is used in https://neurotechx.github.io/eeg-notebooks/auto_examples/visual_p300/01r__p300_viz.html, target and non-target events are found. Although, there is a discrepancy in events found (1161) and the number of events in the table below (1143: 959 non-target and 184 target events).
By visual inspection I do not see any differences between my experimental data file and that of example data (except that I only recorded a single run of 120s, while example data had 6 runs all of longer duration).
I add my experimental data file (had to change the extension from csv to txt, since otherwise I received a file type not supported error when trying to upload it here).
recording_2021-06-28-14.34.59.txt
The text was updated successfully, but these errors were encountered: