Replies: 2 comments 7 replies
-
Hi @19942214 — great question. YASA was only designed for offline uses, and therefore will not work for real-time scoring. That said, if you can get access to the real-time + historical data (e.g. all the data that has been recorded so far) in let's say a numpy array or MNE object, it is technically feasible to just repeatedly call YASA every new epoch and extract the sleep stages up until this point. However, this won't be perfectly real-time, because it can only be done once the current 30-sec epoch is over. Hope this helps, Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for the advice! What does YASA's processing time look like for sleep data of an hour, or maybe even 5 hours? Does the processing time decrease a lot when there is for example 5 hours of sleep data to be processed? Just wondering if I would need to clear some of the earlier data in the raw array if the processing time is starting to take too long? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I just discovered your page and really impressed with it!
I don't know if I missed this in the documentation, but will YASA work for live streaming of EEG data? I am trying to do sleep staging with in-ear EEG, so I will only have 4 channels (but I don't think that will be a problem if I have fewer channels than the 19 as in your examples, or would it?) and want to be able to detect the different stages of sleep while the person is sleeping for an action needs to occur once the person is in NREM2. That is why I need the spindle detection function to identify the difference between NREM1 and NREM2.
Would it be possible to use YASA for live streaming of EEG?
Let me know if I was unclear with my description. Looking forward to hearing from you.
Beta Was this translation helpful? Give feedback.
All reactions