Live streaming #56
-
Hi, I just discovered your page and really impressed with it! 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.
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 @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,
Raphael