Coder Social home page Coder Social logo

Comments (10)

kylemath avatar kylemath commented on June 8, 2024

thanks @Venryx, we actually haven't got our hands on a Muse S yet, so it could be due to the new wireless protocols in the Muse S, we certainly found these delays, but usually not bad at all on my dev computer.

In the computer lab where I ran my class the more muse units that were connected at once the more people suffered from delayed plotting and dropped packets.

which module of the demo were you using?

I just connected my muse 2 to the raw and filtered module and the blinks are showing up almost instantaneously , how long did you leave it connected for to observe that it occured "over time"

from eegedu.

Venryx avatar Venryx commented on June 8, 2024

I was using the "Introduction" module, and watching the very first live chart.

how long did you leave it connected for to observe that it occured "over time"?

I just did the test again to check:

  1. Refreshed the page. Paired at 0:00 (reference point).
  2. Waited one minute (and a few seconds), then blinked three times, then immediately checked the clock (1:06).
  3. Watched chart, till I saw the third blink finish, then immediately checked the clock (1:21).

So, after 1 minute of streaming, the delay had grown to 15 seconds. (and while I was waiting, I noticed [from my random blinks] that the delay was gradually increasing, so it seems to be a continuous delay-increasing process)

from eegedu.

Venryx avatar Venryx commented on June 8, 2024

It's worth noting that the muse-js library I use is built for the Muse/Muse2 (not the Muse S, as far as I can tell), and I don't get these delays in my program, despite making no changes to the library.

So I suspect the problem is somewhere in the EEGEdu repo specifically, not just in a protocol change. (else the problem would show up in muse-js, and thus my program)

from eegedu.

kylemath avatar kylemath commented on June 8, 2024

agreed, it is very likely a react-js issue, does the same thing happen in the raw-filtered module?

from eegedu.

kylemath avatar kylemath commented on June 8, 2024

happy to get your ideas of how we might locate the source of this delay and mitigate it, this was our first react app and it added some unneeded complexity.

also are you using neurosity pipes in your app? that is another part of the stack that could be adding delays

from eegedu.

Venryx avatar Venryx commented on June 8, 2024

does the same thing happen in the raw-filtered module?

Nope! After waiting a minute, there is still no discernible delay in that module.

Perhaps the charting library used for the Introduction module is less optimized, and my computer just can't keep up... (this is supported by my just observing that the cpu-usage for the tab's process goes to ~20% when there, versus ~10% when in the raw/filtered module)

also are you using neurosity pipes in your app? that is another part of the stack that could be adding delays

Not that I'm aware of... (I'm just using the muse-js api)

from eegedu.

kylemath avatar kylemath commented on June 8, 2024

from eegedu.

apavlo89 avatar apavlo89 commented on June 8, 2024

Hello everyone. Venryx can you confirm that Muse S works with muse.js? Does anything need to be modified?

Describe the bug
When testing the demo (at https://eegedu.com), I paired to my Muse S, and was confused because the chart did not seem to be as responsive to my eye movements as it is in my own program (which uses the same web-api connection approach, through muse-js).

In fact, it was so non-responsive that I thought it might just be getting very out-of-sync/delayed from the live data. Indeed, I did tests of 1 blink, then 2 blinks, then 3 blinks, and it didn't show up on the chart until about 20 seconds later. (and the waves from the blinks are very obvious, so I know it was from that)

I don't have time to fill out additional information, unfortunately...

For reproducing, just connect a Muse S headset, wait a while, then try to do obvious movements (like blink sequences), and see how long it takes to show up.

It's not critical for me that the bug is fixed (I just use the EEG Edu page to cross-compare with my app -- for example, to see whether adding the low/high/bandpass filters are necessary), so no rush. Just thought I'd mention it for if you had time to fix it. (or if someone else hits it, confused as I did)

Smartphone (please complete the following information):

  • Device: Lenovo Flex 14 laptop, Muse S eeg-headset
  • OS: Windows 10
  • Browser: Chrome v83

from eegedu.

Venryx avatar Venryx commented on June 8, 2024

Yes, I confirm that the Muse S works just fine with muse.js. (ie. the "muse-js" npm package)

I haven't noticed any issues so far, reading the EEG, accelerometer, and gyroscope data. I've been using it from an Electron app, but a quick test in the regular Chrome browser earlier appeared to work fine as well.

The issues with the eeg-edu site appear to be from inefficient chart rendering, rather than the muse-js library. (I can't confirm this, but I'm guessing so, based on the high cpu usage I saw on that page, and the fact that my usage of muse-js in my own app has worked great)

from eegedu.

kylemath avatar kylemath commented on June 8, 2024

from eegedu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.