Getting Somewhere! – Brain Computer Interface w/ Python, OpenBCI, and EEG data p.3

Channel membership: https://www.youtube.com/channel/UCfzlCWGWYyIQ0aLC5w48gBQ/join
Discord: https://discord.gg/sentdex
Support the content: https://pythonprogramming.net/support-donate/
Twitter: https://twitter.com/sentdex
Instagram: https://instagram.com/sentdex
Facebook: https://www.facebook.com/pythonprogramming.net/
Twitch: https://www.twitch.tv/sentdex

(Visited 1 times, 1 visits today)

Related Videos

Comment (42)

  1. Hi Sentdex!

    Great video as always, what you're doing is really interesting.
    What would you say are the programming/math concepts I need to learn before doing stuff in this video?
    I am studying neuroscience and am really interested in self-learning how to interpret brain signals to create useful outputs.

    Thanks!

  2. Maybe your brain patterns are actually changing the more you use the device and do the right/left/none "exercise," hence causing a "drift" in the patterns. You could perhaps try adding an extra input parameter for every example, which is the total time you have been using the device for, and see if that explains some of the uncertainty in your predictions.

  3. I was thinking that you could apply some sort of error correction code to keep only the most predicted output over a small period of time (the simplest implementation would be the most common over the last 4 guesses).
    That will add a little lag but the experience might be more enjoyable.

    I don't know if there are many error correction codes for 3 state information unit (here left, none and right, instead of 0 and 1 for bits) since their main purpose is to correct errors in binary data..

  4. Hi Sentdex, nice project! Moving a mouse with your hand will not contaminate the EEG signal with EMG. To capture EMG, you would need EMG electrodes on your arm to capture the electrical activity of muscles moving your arm. This electrical activity is not recorded by the EEG (maybe only the intention or signal coming from the brain telling the arm to move, but that is not EMG). Your heart beats regularly (I hope), yet an EEG does not capture EKG data. To do that, you need electrodes positioned close to the heart, or on both arms. Moving your eyes or blinking your eyelids will give rise to some EMG artifacts, as these muscles are close enough to the electrodes on your head to be picked up (and also the fact that the EMG signal is much stronger than the EEG one). Hope this clarifies things a bit. What you are saying about EMG doesn't make sense. Thanks for sharing your code and data!

  5. Hey! I am a student who is trying to a video you posted four years ago on how to code bar plots in Matplotlib, to do a python project in class. Does anyone in the comments know how to install/ use Matplotlib on a windows laptop or Chromebook. Thanks!

  6. What if you took only images of left and only have objects going left or turning left to train the left data and then switch all the data type to right for the right data. I think having something move right when you are thinking left would make you think your thought left is not the correct "left".

  7. hello, I learned about the Ddos attack on python3 whit module urllib.requests, I wrote a program similar to Hulk.py but using an extra Proxy, you can give me more ideas with this moudle to write the Ddos program is better than Hulk, or you can make a Ddos Video with this Module, I look forward to it. Please answer me, thank you!

  8. You can do zero-phase fft if you are set on doing fft's. I worked on a project almost exactly like this but with motor imagery instead of some abstract 'left or right' and the largest problem for me was what you call the 'none' class. Try transfer learning if you have not already and definitely try wavelet transforms –> scalogram for your images.

  9. Sorry if you already touched on this, but wouldn't it be simpler to just train on just 'right' and 'none' as I imagine left and right would have more similarities as as opposed to 'go' and 'stop'.

  10. Hey Sentdex,

    Just wanted to say I've always really enjoyed your videos, so much so that I reference your channel in the book I just wrote. It was released recently. It helps to teach beginners and intermediate level programmers learn Python and some Analytics libraries. Feel free to check it out. You can find the shout out on page 322.

    Thanks!

  11. This is great stuff. This is an area that I'm very interested (I'm a neuroscientist), and I've been watching your machine learning videos for a while. I'm interesting in playing around with the data, but I can't by a starter kit myself. If possible could you also share the raw data at some point?

  12. How are you doing the 'thinking of moving to the right/left'? Could it be that you're missing the visual response of the thing actually moving to the right? And I've been wondering could we use the EEG signaling of when you're thinking 'nope, it is going in the wrong way' as the error for the model, and then continuously train the model.

  13. Hi there Sentdex. Think all your videos are brilliant! With BCI, I was listening to a podcast (https://www.abc.net.au/radionational/programs/allinthemind/brains-old,-new,-and-augmented/12063992) where a quadraplegic patient managed to control a formula 1 car with a BCI and used a novel approach. Rather than thinking 'go left ..go left' etc, would think of eating icecream for turning left ie activating very different brain regions which would probably improve your signal to noise ratio….would be interested to see if you could replicate this technique. Thanks again for your great shows!

  14. I did a quick search through your videos and this one seems to be the last on the subject but I still have some thoughts on how to proceed.

    Someone mentioned simplifying the data to a binary task. My immediate reaction is to do the opposite and introduce more data. Like training the feeling of not wanting to move right, not left, and not moving at all. Also doing training while being distracted or thinking left while watching the block not move or move right. I'm wondering if this might help the data differentiate between moving and not moving. I'm not an expert in the field or anything, just putting down some thoughts I had.

  15. Maybe instead of perfecting its ability to predict if we are thinking left or right…we should change how we actually think about left or right? Maybe if we found certain thoughts that the ai found easy to predict we could use them as a way of triggering left or right. Basically test different thoughts and see what is most easily detectable and substitute them for actually thinking left or right. Use an ai to find the most effective thoughts and label each thought.

    like making a mental language.

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *