<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aryanna Gangani on Medium]]></title>
        <description><![CDATA[Stories by Aryanna Gangani on Medium]]></description>
        <link>https://medium.com/@gangani.aryanna?source=rss-939194942903------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7dVCCpHqFVg4eRI428Tuhw.png</url>
            <title>Stories by Aryanna Gangani on Medium</title>
            <link>https://medium.com/@gangani.aryanna?source=rss-939194942903------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:13:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gangani.aryanna/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[This Dino Can Jump Without the Space bar?]]></title>
            <link>https://medium.com/@gangani.aryanna/this-dino-can-jump-without-the-space-bar-47c12725561f?source=rss-939194942903------2</link>
            <guid isPermaLink="false">https://medium.com/p/47c12725561f</guid>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Aryanna Gangani]]></dc:creator>
            <pubDate>Sat, 28 Jan 2023 04:43:26 GMT</pubDate>
            <atom:updated>2023-02-01T03:58:50.343Z</atom:updated>
            <content:encoded><![CDATA[<p>Playing the Dino Game with My Mind</p><p>Recently, I’ve been experimenting with BCIs, and as I was going through them, something crossed my mind. Can I actually control these iconic games with my mind? Without having to move?</p><p>So I did it. With the most iconic game ever.</p><p>The <strong>Offline Dino Jumping Game</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eB7EpdK6uuPxr04pYDwvw.png" /><figcaption>Don’t mind my low score, you’ll see why later…</figcaption></figure><p>I get it, when you don’t have Internet, that’s the best thing you can do to pass your time. But what if I told you that you didn’t even have to put in the effort of moving your hand and clicking the scape bar? Because when you don’t have Internet, clicking a space bar is too much effort, and it’s honestly just too aggravating when you don’t click fast enough.</p><p>So, I did it with simple jaw movements.</p><p>And I’m going to tell you how you can do it too.</p><p>Here is all the hardware and software I used:</p><ul><li><a href="https://choosemuse.ca/pages/pricing">Muse 3 headband</a></li><li><a href="https://www.python.org/downloads/">Python</a></li><li><a href="https://code.visualstudio.com/">Visual Studio Code</a></li><li><a href="https://petal.tech/downloads">Petal Metrics</a></li><li><a href="https://github.com/alexandrebarachant/muse-lsl">Muse LSL</a></li><li><a href="https://medium.com/@karinakainth30/t-rex-chrome-offline-game-x-bcis-4bdabb4c874b">My amazing guide</a></li></ul><p>Huge shoutout to <a href="https://www.linkedin.com/in/karina-kainth30/">Karina Kainth</a>! Go check her out on <a href="https://medium.com/@karinakainth30">Medium</a> as well :)</p><p>I’m going to give you a brief overview of what you need to do to get started, but for a more detailed explanation, check out my last article <a href="https://medium.com/@gangani.aryanna/how-my-brain-waves-can-prevent-bruxism-f3e58ecea0d3">here</a>.</p><h3>Background:</h3><p>First, I bought a Muse S Headband, which is the BCI device that read my EEG waves, and translated them into actions. (For a better background on BCIs, check out my article <a href="https://medium.com/@gangani.aryanna/humans-can-become-cyborgs-now-heres-how-68de32a59f85">here</a>). Then, I downloaded:</p><ul><li>Python (the code being used)</li><li>Visual Studio Code (the code interpreter)</li><li>Petal Metrics (the app reading the EEG waves from the Muse)</li></ul><p>I then installed Muselsl, the Github file with all the Python code in it, made some adjustments, and ran the data.</p><p>In the end, I was able to get my computer to recognize when I was making small movements (blinking and jaw movements)!</p><p>The next part gets a little complicated if you haven’t done this step by step, so I encourage anyone who’s already confused (definitely not me…👀) to check out the step-by-step process from my last article. Everything is explained <a href="https://medium.com/@gangani.aryanna/how-my-brain-waves-can-prevent-bruxism-f3e58ecea0d3">here</a>, and trust me this is going to make more sense after you’ve gone through it.</p><p>Now you might be wondering how that connects to the legendary Dino Game. So, here’s a breakdown of how I played the game with my jaw movements.</p><h3>Step 1: Installing the module</h3><p>After all my previous steps were complete, I installed the Python module for automating mouse and keyboard actions — PyAutoGui.</p><p>In the new terminal in Visual Studio Code, I typed:</p><pre>pip3 install pyautogui</pre><p>This command allowed me to be able to put in my next line of code, under line #128:</p><pre>pyautogui.press(&#39;space&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/0*TvCfqDqkDnsi8Fu9" /></figure><p>The lines of code before that one are basically saying that when my Delta waves, the waves most vulnerable to small movements, go over 1, then print the words “Jaw Movement :)” (and a smiley face because why not).</p><p>That won’t necessarily relate to the game though.</p><p>Essentially, the new line of code did was allow pyautogui, the command that automates keyboard actions, to take control of my space bar on my computer.</p><p>After I did this the first time, this is what I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pkzS2tlLggRG_6_a" /></figure><p>In English, it’s saying something’s wrong.</p><p>And after a lot of figuring-it-out, I found out that my computer didn’t recognize pyautogui. So, this is what it told me to do:</p><p>Hover over the word:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*kDnm-NmaoSPZaCbg" /></figure><p>And click “quick fix”. This basically identified that word, so that it was able to be used.</p><p><em>Then it worked — how cool is that 🤯???</em></p><h3>Step 2: And now for the fun part…</h3><p>This is less of a step and more of a “hands on”.</p><p><strong>You get to play the game!</strong></p><p>If you don’t want to turn off your Internet to try this, go <a href="https://dino-chrome.com/en">here</a>. It has quite a lot of ads, but trust me, it’s worth it to not have to turn off your Internet.</p><p>When I first played the game, I noticed that the Dino was taking a really long time to jump. But I mostly noticed because I couldn’t get past the first cactus…</p><p>So I played around with the settings on the code, and luckily for you, I found a way to make it faster (and a way to make sure you’re a step closer to your high score).</p><p>If you go to the functions at the top, more specifically line #43, you’ll see something called overlap length.</p><p>Now, if you read my last article, you’re number should be at 0.2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*ps-Fw7UHznY789qJ" /></figure><p>But what if we changed that to 2? Or even 3?</p><p>The Muse headband would collect your EEG data quicker, and therefore recognize it quicker.</p><p>So, it would take a shorter amount of time between your jaw action and the Dino jumping:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*6nnK4SZ6mmoi8-M8" /></figure><p>And it worked! My Dino was reacting to my jaw movements way faster!</p><p>Now I have a high score:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eB7EpdK6uuPxr04pYDwvw.png" /></figure><p>See if you can beat it :)</p><p>Check out my video for a live demonstration here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlzSM3zpQdzs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlzSM3zpQdzs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlzSM3zpQdzs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/94d0557dfd03e8d1a9d48d0bb83808d3/href">https://medium.com/media/94d0557dfd03e8d1a9d48d0bb83808d3/href</a></iframe><h3>I couldn’t have done this without:</h3><ul><li><a href="https://chat.openai.com/chat">ChatGPT</a> (it knows so much 🤯)</li><li><a href="https://medium.com/@karinakainth30/t-rex-chrome-offline-game-x-bcis-4bdabb4c874b">Karina’s amazing guide</a></li><li><a href="https://dino-chrome.com/en">Dino Game</a></li></ul><p>Once again, thanks <a href="https://www.linkedin.com/in/karina-kainth30/">Karina</a>— check her out here!</p><p>Hey! I hope that by reading this article you were able to set up your own fun BCI project as well — but with Internet. If you liked this article, or would like to give me any feedback, feel free to reach out to my <a href="https://www.linkedin.com/in/aryanna-gangani-88933a253/">LinkedIn</a> and be sure to follow me on <a href="https://medium.com/@gangani.aryanna">Medium</a> as well to check out my previous articles. If you would like to stay updated on my monthly goals/accomplishments, be sure to check out my newsletters <a href="https://aryannagangani.substack.com/">here</a>!</p><p>Thank you so much for reading my article, and high five for making it this far 🙏🏼 (apparently that’s a high five…) !</p><p>Stay tuned for my next article, where I’m going to go into depth of my own BCI project, and how you can make it too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47c12725561f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How My Brain Waves Can Prevent Bruxism]]></title>
            <link>https://medium.com/@gangani.aryanna/how-my-brain-waves-can-prevent-bruxism-f3e58ecea0d3?source=rss-939194942903------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3e58ecea0d3</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Aryanna Gangani]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 03:56:42 GMT</pubDate>
            <atom:updated>2023-01-28T11:25:12.018Z</atom:updated>
            <content:encoded><![CDATA[<p>A breakdown of how your computer can detect, through BCIs, when you grind your teeth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0MRBq_qFiQ03FuZwzZP0A.png" /><figcaption>How my computer was able to detect my teeth grinding :)</figcaption></figure><h3>But hold on, what’s Bruxism?</h3><p>Basically, it’s a fancy medical-world term for <strong>grinding teeth in your sleep</strong>. In teeth grinding, teeth that are flattened, fractured, and chipped or become loose, which leads to increased tooth pain or sensitivity. Lockjaw is also another common cause of teeth grinding.</p><p><strong><em>Okay, so you must be thinking, &quot;How can brainwaves prevent teeth grinding?&quot;</em></strong></p><p>Well, that’s exactly why I created this amazing project — that can hopefully change lives.</p><p>To create this project, I used something called a <strong>BCI, or brain computer interface</strong>. Brain computer interfaces use brain or nervous system data to control computers or machines. Check out my other article <a href="https://medium.com/@gangani.aryanna/humans-can-become-cyborgs-now-heres-how-68de32a59f85">here</a> for a more detailed breakdown.</p><p>As I started getting more into the process of how BCIs actually work, I came across a couple projects that high school students had created. The one that really caught my eye was when a computer lowered the volume every time the student blinked but raised the volume every time there were jaw actions. And this didn’t apply to just jaw movements. As mentioned above, blinking can also be incorporated.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmzZRSw5DIRc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmzZRSw5DIRc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmzZRSw5DIRc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e3d15a22de628ca322e42534a20d200/href">https://medium.com/media/3e3d15a22de628ca322e42534a20d200/href</a></iframe><p>These insanely cool projects inspired me to want to build my own... so I did 😏.</p><blockquote>An important thing to remember — for this project, I used a <strong>MacBook</strong>. The instructions for a Windows computer may differ from the ones I have here.</blockquote><p>Here are all the hardware and software I used:</p><ul><li><a href="https://choosemuse.ca/pages/pricing">Muse 3 headband</a></li><li><a href="https://www.python.org/downloads/">Python</a></li><li><a href="https://code.visualstudio.com/">Visual Studio Code</a></li><li><a href="https://petal.tech/downloads">Petal Metrics</a></li><li><a href="https://github.com/alexandrebarachant/muse-lsl">Muse LSL</a></li><li><a href="https://betterprogramming.pub/viewing-your-brain-activity-with-the-muse-headband-b03dde069ae4">My awesome guide</a></li></ul><blockquote>Huge shoutout to <a href="https://www.linkedin.com/in/carolrong/">Carol Rong</a> 😘. Go check her out on <a href="https://carolrong.medium.com/">Medium</a> as well.</blockquote><h3>Step 1: Purchasing the Muse headband</h3><p>Before starting any part of this project, I needed to buy a Muse headband. Right now, the most updated Muse headband is the Muse 3 (but depending on when you read this, it might be outdated). Buying the headband from Amazon was <strong>$350 CAD</strong>. The best deal was straight from the <a href="https://choosemuse.ca/pages/pricing">Muse Website</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*krO5ayk7WeCDi5q5" /></figure><p>Essentially, I paid for the app membership, and the headband was a free bonus.</p><p>They tend to ship in 3–5 business days, depending on where you live.</p><p>So once that was settled, I moved onto the more technical stuff. To be honest, this process was really long and pretty discouraging. But I promise you, it’s worth it, and you can do it 🫶🏼.</p><h3>Step 2: Setting up the code</h3><p>This project is done using Python, which, according to Google, “is arguably the easiest programming language for beginners to learn.&quot; The first thing I did was go to the official Python website <a href="https://www.python.org/downloads/">here</a> and download the latest version of Python for macOS. Again, right now the latest version of Python is <strong>3.11.1</strong>, so that is the version that I downloaded and used for this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ALi5PWRfvhItaAey" /></figure><p>Then I went to the terminal on my Macbook (⌘ or command + space + search “terminal”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*HuozzBgFR0XSVJIzTaiE-A.png" /><figcaption>How to find the Terminal on Mac</figcaption></figure><p>Once I was in the terminal (should look a little something like this):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*nG8_0dg-e3eHcwj0EjX8_g.png" /><figcaption>What the terminal should look like</figcaption></figure><p>I typed:</p><pre>python3 --version</pre><p>If this doesn’t work for you, type:</p><pre>python --version</pre><p>Putting this into my terminal gave me the most updated version of Python that I have. In my case, it’s version <strong>3.11.1</strong>, which is the one I need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*Tcv1YiOZ7eCmZ7Bwrq0RUw.png" /><figcaption>Python Version</figcaption></figure><p>Next, I installed pip. Pip is a package management system for Python. It allows you to install and manage packages that are not included in the Python standard library. It isn’t something you have to download; it’s in the terminal.</p><p>In the terminal, I typed:</p><pre>pip3 --version</pre><p>Again, if the above didn’t work for you, try typing:</p><pre>pip --version</pre><p>The result I got was pip <strong>22.3.1</strong>, which is the most updated version right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*hEe3t928pn3x_GbTGMisCg.png" /><figcaption>Both Python and Pip versions</figcaption></figure><h3>Step 3: Getting a code editor</h3><p>The editor I used is called Visual Studio Code, which, in this case, works for both Mac and Windows. <a href="https://code.visualstudio.com/">Here</a> is their website, where you can install their app. For me, the pop-up said the installation would take 175 hours…but in total it only took up to 1 hour to download. I suggest letting it download and doing something else in the meantime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LIA0P6IDSsYKwYhh" /></figure><p>That’s all the code I installed! Now, moving onto the headband…🤓</p><h3>Step 4: Connecting the Muse headband</h3><p>For the headband to be able to communicate with my Mac, there had to be an outlet. The outlet, or “communicating app,&quot; that I used was called Petal Metrics. <a href="https://petal.tech/downloads">This</a> is their website, where I installed it from. Basically, Petal Metrics connected my Muse headband to my computer through bluetooth — this is where the brainwaves and data was streamed through. The problem I had with this was that my Mac wasn’t allowing the app to be installed, since it couldn’t run it through the “virus checking system”. One way to bypass this is to control + left click, then open, and it should work. If this works, you can move onto the next part.</p><p>This didn’t work for me though. So what I did was go to the Apple symbol in the top-left corner → then system preferences → and then Security &amp; Privacy. At the bottom of this, there should be a notification that says “Petal Metrics”. Click the lock to make changes, then allow it to be downloaded. I promise, it’s not a scam or virus — it just wasn’t able to go through the virus check that Apple has in place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*cOrKADCnYP1_YrKq" /></figure><p>Once it’s been installed, it should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*Y-iJJWXqmUYkflwnOc-k5Q.png" /><figcaption>Screenshot of the Petal Metrics app</figcaption></figure><p>Now we need to connect the Muse. All you need to do is turn your headband on, wait for the orange LED lights to start, then click the “Stream” button at the bottom of the Petal Metrics page. Once you’ve done that, scroll down, and it should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*mEy7fW0y6g5KVeuo5KFoGQ.png" /><figcaption>Petal Metrics once Muse is streaming</figcaption></figure><p>And don’t worry — you don’t actually have to sign in for it to work. All this does is confirm that your Muse headband is connected to Petal Metrics, and you’re done connecting the headband!</p><h3>Step 5: Interpreting the Python code into Visual Studio Code</h3><p>When you think Python, you think learning code. But learning Python isn’t that easy, it takes hours, days and weeks of practice to get some components right. I started doing Python using <a href="https://scrimba.com/learn/python">Scrimba</a> and get this — it’s free! But there are 58–60 lessons, so how exactly would you know which code you needed for this project specifically?</p><p>So, contrary to people telling you “you need to brush up on your Python or you’ll never be able to do the project” you actually don’t. But you should. But…you don’t need to for this project, so you don’t have to panic about having to learn it all in a couple weeks time. Thanks to Alexandre Barachant, who created a Github with all the code you’ll need for this right <a href="https://github.com/alexandrebarachant/muse-lsl">here</a>. It’s called <strong>muselsl</strong>, so keep that at the back of your mind for later.</p><p>All I did was click the green “code” dropdown, click the “copy” beside the Github link, which should look something like this:</p><p><a href="https://github.com/alexandrebarachant/muse-lsl.git">“https://github.com/alexandrebarachant/muse-lsl.git</a>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jWiEPHgDEgZGOCK0" /><figcaption>Photo credits: Carol Rong</figcaption></figure><p>Then, I went back to Visual Studio Code. On the side toolbar, I saw 5 icons: Explorer, search, source control, run and debug, and extensions (in that order). I clicked the first one, Explorer → then clone repository → then I pasted the link from above. A pop-up came asking me to open it up, and I clicked open</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7C5ceaiQK0G5cvbc" /><figcaption>Photo credits: Carol Rong</figcaption></figure><p>A “Get Started” page opened up. The next thing I did was go to my top toolbar (apple sign, code, file, edit, selection…) and click on the one that says “terminal” → then the first one that says “new terminal”. This new terminal that I opened was separate from the one I opened above — this new terminal that I created is linked to Visual Studio Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E3x-mGv4HjaAw1Uq" /><figcaption>Photo credits: Carol Rong</figcaption></figure><p>Remember <strong>muselsl </strong>from before? What I did next was install it, in this new terminal that I created.</p><p>So, in this new terminal, I typed:</p><pre>pip3 install muselsl</pre><p>And it gave me an error. Don’t worry, it should give you one too. The error is that my terminal didn’t recognize something called “pygatt”.</p><p>So, underneath the error, I typed:</p><pre>pip3 install pygatt</pre><p>And that didn’t work either 😑.</p><p>So, I scrolled up to the <strong>yellow section</strong> of the error, and the bolded and capitalised word was: <strong>DEPRECATION</strong>.</p><p>Closer to the end of the yellow section, it gave an alternative — a way to overcome this problem. For me, it gave “add — pep517 to the end of pip3 install”.</p><p>Which gives you this:</p><pre>pip3 install pygatt--use-pep517</pre><p>Instead of this:</p><pre>pip3 install pygatt</pre><p>Now, this might be different for you, so don’t just copy and paste what I typed above. All you have to do is put the alternative that the “error code” suggests, in the yellow, and it should work. It’ll say “successfully installed”.</p><h3>Step 6: Reading the brain waves!</h3><blockquote><strong>Finally! We’re going to get to see the brainwaves 🥳!</strong></blockquote><p>All I did was put my headband on, type the following code into the terminal, and it worked:</p><pre>muselsl view</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M1UhDvCl0Xv6PFXU" /><figcaption>Photo credits: Carol Rong</figcaption></figure><p>These are what the brainwaves should look like ⬆️. Isn’t it soooo cool? I can see my brainwaves literally milliseconds after I produce them — all in front of me 🤯.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/0*RizGKhPcUj75-sJd" /><figcaption>Photo credits: Carol Rong</figcaption></figure><p>These are some of the commands I used to play around with on the brainwaves view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f9kqLkR0mK6AsrYv" /></figure><p>Using the “zoom out” tool, I was able to see spikes and dips, like in the picture above. Can you guess what those spikes and dips are?</p><p>Actually it’s kinda hard to guess…but that is jaw movement! Everytime I did the “act-like-I’m-biting-something” movement or grinded my teeth, it got recorded as <strong>a dip in the brainwaves</strong>. The picture above is an example of what blinking can do to the brain waves — also a dip.</p><p>So, it’s good that I can see the jaw action, but how do I get my computer to recognize that?</p><h3>Step 7: Getting my computer to recognize my jaw actions (Part 1)</h3><p>Remember where I copied the Github link before? And remember how there were so many files on the left hand side of the Explorer? One of those many files read “examples”. So I clicked on the dropdown menu of examples, and clicked on the one that read “neurofeedback”. This is where all the signals are stored:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*IgdiNcw5cPm68Md9" /></figure><p>Then, since I wasn’t automatically prompted, I went down to the 5th toolbar option, Extensions, where I then typed “python” and clicked “Install”. The picture below is what it looks like after I already installed the extension in Visual Studio Code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YXI_-TxYFYbLlB-s" /></figure><p>After I installed Python, I went back to the Explorer sidebar option (the one at the top) and went back to the neurofeedback tab. In the top right corner, there is a little play button, which is the run button. So, I clicked it to run the already existing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S6C82flVI3JSNcbU" /></figure><p>Before I ran the code, I made sure to put my headband back on, and stream it using Petal Metrics, so that the code had current brain waves and signals to read off of.</p><p>When I ran the code, it gave me this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*7urGS3Bv5q29VNHD" /></figure><p>The existing code only ran my Alpha waves. Basically, alpha waves “induce feelings of calm, increase creativity, and enhance your ability to absorb new information.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Tb2LYEP9iVz-gdHq" /></figure><p>If we look at the picture, Alpha waves are somewhat dead centre with the different types of brainwaves. Small movements like moving my jaw wouldn’t be able to be detected using Alpha waves. In other words, all the Alpha waves that were printed above aren’t going to be able to help me detect my jaw movements.</p><p>If we look to the bottom of the list though, we can see <strong><em>Delta waves.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*iW5eOAJ9FXfQJQTf" /></figure><p>Alpha brain waves weren’t able to pick up such small movements like jaw movements or blinking. But since Delta waves are at the bottom of the list, they are more sensitive to small movements. So, if I got my computer to detect my Delta brain waves instead of my Alpha ones, my jaw movements would be detected by my computer.</p><p>Essentially what I did was stop the Alpha waves from printing and have my computer start printing my Delta waves.</p><p>I added the following code underneath line #124. So the new line of code became line #125:</p><pre>print(&quot;Delta: &quot;, band_powers[Band.Delta])</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*DR69M0zaAOVsXSra" /></figure><p>And I added a “#” in front of line #137 now which reads:</p><pre>#print(&#39;Alpha Relaxation: &#39;, alpha_metric)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*5yyfI2GrPWHnK5_z" /></figure><p>What the “#” did was hide that part of the code, so that it didn’t show my Alpha waves that were being printed before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*2nV8Ko2Z65qNMcd-" /></figure><p>So now, everytime I moved my jaw, whether it was “acting-like-I-was-biting” or grinding my teeth, the number became larger than 1.</p><p>In the picture above, whenever I grinded my teeth, the number became larger than 1, but when I did the “biting” action, it went over 2.</p><p>I did this experiment one more time to see if what I had just found was right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/0*8HQpUhvciEh7LDa-" /></figure><p>But after trying this multiple times, I realised that the first experiment was, well, technically…biased. I was sooo enthusiastic to try this out that I ended up “biting” WAY too hard. So, if you’re not getting numbers over 2, good job 👍. Because my teeth hurt for a long time after that 😔.</p><p>Okay, so now my computer could detect my jaw movements. But wouldn’t it be cool for it to tell me that I moved my jaw?</p><h3>Step 7: Getting my computer to recognize my jaw actions (Part 2)</h3><p>Ohhh yes it would.</p><p>And it sounds complicated, but to be extremely honest, it’s not.</p><p>All I had to do was put an “if” statement.</p><p>If the Delta wave goes over “1”, print “Jaw movement :)”</p><p>Just like how I printed my Delta waves before — remember?</p><p>So, I put the following line of code after line #125:</p><pre>if band_powers[Band.Delta] &gt;= 1:<br>print(&quot;Jaw movement :)&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/0*nq0ZfYz1ou48xadm" /></figure><p>And this is what I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/0*24iMTQLfXRkxK6Mh" /></figure><p>Yes! It worked!</p><p>Wait…something’s not right.</p><blockquote>Grinding my teeth once (quickly) resulted in 7 “Jaw movements :)” ?</blockquote><p>So what’s happening here is my Delta waves are being read before I have time to finish my movement. The waves are collected too quickly, resulting in it multiple prints of “Jaw movement :)”</p><p>The easy way to fix this is by playing with the “experimental parameters”:</p><p>For clarification, epoch is “an event or a time that begins a new period or development” — so a period of time, and overlap is “a part or amount which overlaps” — 🤔 so an overlap.</p><p>The difference between these two is how long it takes the code to print a new EEG measurement. An EEG is an electroencephalogram. It’s used to measure the electrical activity of the brain.</p><p>As of right now, the difference is (for all the math geniuses what’s 1–0.8?) 0.2. So, every 0.2 seconds, it prints a new EEG measurement. But that’s too fast. A teeth grind takes longer than 0.2 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*bzQtk7xCuyRdHCMB" /></figure><p>An easy way to change that is to think — if we want to have the same period of time, what’s the smallest we could go without going into the negatives? (Again, for the math geniuses it’s 0)</p><p>So, the only thing I did was change the overlap length to — you guessed it — 0.</p><p>So, in line #42, I changed the overlap length to 0:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*bUexpTvYr5KQVSOK" /></figure><p>Now, let’s try testing it out again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/0*U2pfa7iEKr-v42kl" /></figure><p>The jaw movements didn’t get carried on throughout multiple prints.</p><p>IT WORKED 🎉🎉🥳🥳! Party time!! We did it 😁!</p><p>Give yourself a pat on the back/hug/treat yourself to something good because your program just recognized when you grinded your teeth!</p><h3>But wait, how does this solve Bruxism again?</h3><p>Basically, through this project, I was able to get my computer to detect and tell me when I was grinding my teeth.</p><p>So, if someone was wearing the Muse headband and grinded their teeth, their computer would be able to detect that and let them know, through the program we just made.</p><p>Check out my video here for a quick runthrough of my project:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhoBnFcOkcPo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhoBnFcOkcPo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhoBnFcOkcPo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7e349fef395415361489fada929058f/href">https://medium.com/media/d7e349fef395415361489fada929058f/href</a></iframe><p>I couldn’t have done this without:</p><ul><li><a href="https://betterprogramming.pub/viewing-your-brain-activity-with-the-muse-headband-b03dde069ae4">Carol’s amazing guide</a></li><li><a href="https://chat.openai.com/chat">ChatGPT</a> (it knows so much 🤯)</li><li><a href="https://medium.com/@karinakainth30/controlling-a-video-game-with-my-mind-363e13800e0e">Karina’s amazing guide</a></li><li><a href="https://anushmutyala.medium.com/muse-101-how-to-start-developing-with-the-muse-2-right-now-a1b87119be5c">The Muse 101: Basics</a></li></ul><p>Check out both <a href="https://www.linkedin.com/in/karina-kainth30/">Karina</a> and <a href="https://www.linkedin.com/in/carolrong/">Carol</a> here!</p><p>Hey! I hope that by reading this article you were able to set up your own BCI project as well — and possibly use this project to help you detect when/if you were grinding your teeth! If you liked this article, or would like to give me any feedback, feel free to reach out to my <a href="https://www.linkedin.com/in/aryanna-gangani-88933a253/">LinkedIn</a> and be sure to follow me on <a href="https://medium.com/@gangani.aryanna">Medium</a> as well to check out my previous articles. If you would like to stay updated on my monthly goals/accomplishments, be sure to check out my newsletters <a href="https://aryannagangani.substack.com/">here</a>!</p><p>Thank you so much for reading my article, and high five for making it this far 🙏🏼 (apparently that’s a high five…) !</p><p>Stay tuned for my next article, where I go more into depth of a potentially viable solution that you could use to prevent Bruxism for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3e58ecea0d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Humans Can Become Cyborgs Now — Here’s How]]></title>
            <link>https://medium.com/@gangani.aryanna/humans-can-become-cyborgs-now-heres-how-68de32a59f85?source=rss-939194942903------2</link>
            <guid isPermaLink="false">https://medium.com/p/68de32a59f85</guid>
            <dc:creator><![CDATA[Aryanna Gangani]]></dc:creator>
            <pubDate>Thu, 27 Oct 2022 01:51:32 GMT</pubDate>
            <atom:updated>2022-10-30T21:26:05.553Z</atom:updated>
            <content:encoded><![CDATA[<h3>Humans Can Become Cyborgs Now — Here’s How</h3><blockquote>How BCIs are the future of prosthetics</blockquote><p><strong>Cyborgs.</strong> It’s interesting right? 🤔 We’ve all probably seen these ‘half human-half robot’ characters somewhere on a futuristic Netflix movie. The one that has one robotic eye, arm and leg, but everything else about them seems normal?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*asQGwghTefE5Z0AQ" /></figure><p>What if I told you that becoming cyborgs isn’t futuristic, that it’s already happening? 🤯 That humans — and animals — already have access to this technology?</p><p>It’s called a <strong>Brain Computer Interface (BCI)</strong>.</p><h3><strong>So, what exactly is a BCI?</strong></h3><p>To put it in simpler terms, a BCI uses brain or nervous system data to control computers or machines. Think of a BCI like the Internet, but for your brain. When you go onto the Internet, you immediately gain access to so many resources. Well, a BCI is the same. Once a BCI connects to brain waves, it opens the ‘Internet of The Brain’ where unknown questions can be answered just as easily as a Google search.</p><p>I mean, I get it. We don’t want to have brain surgery if it’s not for medical reasons. We don’t want to have some microchip implanted into our brains. Even though cyborgs are awesome, we’d rather not have someone constantly tracking our brain activity. Scientists have implanted electrodes and microchips in animals-so what’s stopping them from putting them in humans?</p><p>That’s where most people stop thinking about this possibility entirely-even though, and most people don’t know this, no brain surgery is required in this process. It’s all <strong>non-invasive</strong>.</p><h3><strong>Invasive versus Non-Invasive BCIs</strong></h3><p>Invasive BCIs are expensive (anywhere from $5,000-$10,000 😮), pose risk to the patient and are largely confined to labs while non-invasive BCIs are more accessible and affordable (can be done on a device/headset — $1,000). Non-invasive BCIs are slower, have limited signal to noise ratios, and have a decreased ability to target specific areas due to the distance between the BCI and the neuron that it wants to record data from.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BuhdjSNPDR4DP2pj" /></figure><p>This is an example of an invasive BCI. A 96 pin micro electrode grid implanted into the person’s brain is reading their brain activity. They are thinking about writing “hello”, and the BCI records it, translates it to data that a computer can understand, and then records the word “hello” on the screen.</p><p>Of course brain surgery and invasive BCIs will give more accurate results, right? 🧐 Actually, no.</p><p>Recently, non-invasive BCIs have produced similar to equally accurate results of interpreting brain signals.</p><h3><strong>How do non-invasive BCIs work then?</strong></h3><p>Non-invasive BCIs are a way to get information about brain waves without brain surgery or the implantations of micro electrodes. Typically, sensors are placed on the scalp to measure the electrical potentials produced by the brain.</p><ol><li><strong>EEGs</strong></li></ol><p>One very common example of this is an <strong>electroencephalogram (EEG)</strong>. It’s used to measure the electrical activity of the brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/0*QLIEHl_t2Ix4lVTP" /></figure><p>On the left, there’s a picture of an EEG cap. This is typically placed on the scalp of the patient. On the right, the electrical activity of neurons in the cerebral cortex is represented as waves of similar frequencies, amplitudes, and shapes.</p><p>Once the EEG cap is on the patient’s head, it starts to record brain activity. The brain waves are then interpreted into data that a computer can understand. The computer processes this data, and translates it into the desired action.</p><p>To make this easier, let’s use an example. You’ve already got the EEG cap on, it’s already hooked up to a computer, and you’re already in front of a TV controlled by the researchers. So, let’s just say you want to turn a piece as a part of a brain game. You would make your decision, and a screen would appear, similar to this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qsMKqfwQ_b6B1-4C" /></figure><p>On both sides of the “yes” or “no”, lights are flashing, both at different frequencies 💡. The “yes” light has a frequency of 12 hertz while the “no” light has a frequency of 13 hertz. If you want to move the piece, you focus your eyes on the 12 hertz light. Once the EEG picks up on the consistent flashing at 12 hertz, the option “yes” is selected. Once the option “yes” is selected, the piece is turned.</p><p>This is just one of the many examples of the applications of an EEG, but currently they’re being used for medical reasons as well. EEGs can be used to treat epilepsy in seizure patients. It analyses the brain waves of a patient before a seizure occurs, and in the future, when it recognizes those same patterns, it warns the patient about an upcoming seizure.</p><p><strong>2. EMGs</strong></p><p>Another example of a non-invasive BCI is <strong>electromyography (EMG)</strong>. It measures muscle response or electrical activity in response to a nerve’s stimulation of the muscles. In other words, an EMG is a record of electrical activity of muscles and motor neurons. Motor neurons are a specialised type of brain cell located within the spinal cord and the brain. EEGs record data from the brain while EMGs record data from the muscles.</p><p>Currently, EMGs are being used as armbands. The small armband reads signals from the part of the arm that it’s placed on, reads the spinal cord signals that the brain produces in response to the action of the arm, and carries out the appropriate action. These armbands don’t require anything other than the armband itself, unlike EEGs. No weird looking cap.</p><p>Typically, EMG armbands are used with prosthetics. The person has usually had an amputation on that arm, and uses an EMG armband to read signals in the working part of that arm to tell the prosthetic what to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*e9jJBLX2Tp9_HW0Q" /></figure><p>Another example 😄. For this example (the picture above) no cap is needed, the person is already wearing the armband. They think about moving the rest of their arm (the one with the prosthetic). The signal starts in their brain, and that message gets sent down their spinal cord. This results in muscle signals that are able to be picked up by the armband, which sends the signals to the prosthetic. This ultimately leads to the person being able to move the prosthetic arm — just by thinking.</p><p>How exactly do you control prosthetics? Using <strong>motor neuroprosthetics</strong>.</p><h3><strong>Motor neuroprosthetics</strong></h3><p>Motor neuroprosthetics is a type of BCI that generates physical movement. It’s a device that can translate the user’s intention to move to a prosthetic limb into machine-readable signals, so that the limb can be controlled appropriately.</p><p>These includes the controlling of:</p><ul><li>Prosthetics Limbs</li><li>Exo suits</li><li>Vehicles Control</li></ul><p>Neuroprosthetic limbs add advanced brain control to robotic limbs.</p><h3><strong>Applications</strong></h3><p>In 2016, DARPA’s (Defence Advanced Research Projects Agency) Revolutionising Prosthetics program, which has around $120M dollars in funding, reported that their Modular Prosthetic Limb (MPL) was able to add an accurate sense of touch to brain-controlled prosthetic limbs.</p><p>Remember the picture from before? The one with the EMG armbands?</p><p>The prosthetic in this picture is the MPL.</p><p>But how does the MPL work? It’s basically like a more advanced EMG armband, because there’s a computer already inside the prosthetic. The MPL measures muscle signals from the residual limb of somebody who’s had an amputation. Those muscle signals then get read into a computer that’s on the prosthetic, and the prosthetic sees those signals.</p><p>Together, the electromyographic (EMG) band and the Modular Prosthetic Limb (MPL) help to make the perfect prosthetic available for humans to use. When using the MPL, it can sometimes be so accurate that the test subjects feel as if their arm has grown back-just like a starfish.</p><blockquote><strong>So, how does this all tie in to becoming a cyborg? I’m glad you asked.</strong></blockquote><p>Here’s an example of a man who recently became the first highly advanced cyborg to exist. He’s described to be “something of a guinea pig for experimental prosthetics”. This is him — Johnny Matheny.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8Jhud_AItAPIkQML" /></figure><p>As a way to pay it forward, Johnny reached out to prosthetics developers to see if he could test out and improve the already existing prosthetics on the market. His goal was to test the prosthetic in his everyday life, and hopefully improve little glitches or abnormalities so that other people who were in the same position as him would already have the tested and improved versions of these prosthetics.</p><p>He teamed up with John Hopkins Applied Physics Laboratory to help develop more advanced prosthetics. Once the robotic arm was fully developed and ready to use, and after Johnny had spent hours and hours training to use it, the John Hopkins Lab team sent the prosthetic home with Johnny to test in his everyday activities. There, he tested the prosthetic’s capabilities as well as its technological capabilities. The team wanted to see how far Johnny could push the limits of his robotic arm, and after just one year, Johnny was able to play a piece on the piano. He had always wanted to play piano, and thought that trying to learn would push the limits of the arm.</p><p>One of the researchers at the John Hopkins Lab, Luke Osborn, posted updates about Johnny’s story on his Twitter page. All the steps are shown through pictures and videos. They even have a video of Johnny playing the piano.</p><h3>Luke Osborn on Twitter: &quot;Johnny was able to connect the prosthesis to an #osseointegrated implant in his arm. He wore two wireless #EMG (electromyography) bands on his upper arm. These bands read muscle activity, which is used to control the prosthesis. Lots of sensors helped us record the data! 2/7 pic.twitter.com/PYdWv9C3Fv / Twitter&quot;</h3><p>Johnny was able to connect the prosthesis to an #osseointegrated implant in his arm. He wore two wireless #EMG (electromyography) bands on his upper arm. These bands read muscle activity, which is used to control the prosthesis. Lots of sensors helped us record the data! 2/7 pic.twitter.com/PYdWv9C3Fv</p><p>Here’s another example of someone who was able to play piano for the first time in 5 years with the help of an ultrasound prosthetic:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fb4q_jbnOPa4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Db4q_jbnOPa4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fb4q_jbnOPa4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ae2dea9153718551f2ad667eccbcdb2/href">https://medium.com/media/7ae2dea9153718551f2ad667eccbcdb2/href</a></iframe><h3><strong>TL;DR</strong></h3><ul><li>Brain Computer Interfaces (BCIs) use brain or nervous system data to control computers or machines. For example, it can turn the thought of writing “hello” into the action of typing it onto a computer.</li><li>There are 2 main types of BCIs: Invasive and Non-Invasive. Invasive BCIs require brain surgery to implant electrodes into the brain to get more accurate brain reading results. Non-Invasive BCIs don’t require brain surgery-they are most commonly found in electrode caps or armbands.</li><li>The two main non-invasive BCIs are: EMG (electromyography), and EEG (electroencephalography). An EMG is a record of electrical activity of muscles and motor neurons. EEGs are used to measure the electrical activity of the brain.</li><li>Modular Prosthetic Limbs (MPLs) are a type of motor neuroprosthetic: a BCI that generates physical movement.</li><li>EMG armbands and MPLs work together to make the most perfect, most realistic prosthetic available. Users say they have an accurate sense of touch, even though they’re just using a prosthetic.</li></ul><p>Isn’t this SO COOL 😎? Johnny is the first “sophisticated” cyborg to exist on this earth. And who knows, maybe one day you could be a cyborg too. We just have to wait a couple more years, once the prosthetics are tested again, and maybe we can all be cyborgs — just like Johnny.</p><p>I hope you enjoyed reading my article! I hope this was helpful 😁. Feel free to connect with me on my LinkedIn — I’m happy to answer any questions, and I’d love for you to let me know if you liked this article. You can follow me on my Medium page to stay updated on any content that I make!</p><p>LinkedIn: <a href="https://www.linkedin.com/in/aryanna-gangani-88933a253/">https://www.linkedin.com/in/aryanna-gangani-88933a253/</a></p><p>Medium: <a href="https://medium.com/@gangani.aryanna">https://medium.com/@gangani.aryanna</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68de32a59f85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optogenetics: A Futuristic View of Medicine]]></title>
            <link>https://medium.com/@gangani.aryanna/optogenetics-a-futuristic-view-of-medicine-72253c09606f?source=rss-939194942903------2</link>
            <guid isPermaLink="false">https://medium.com/p/72253c09606f</guid>
            <dc:creator><![CDATA[Aryanna Gangani]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 01:14:16 GMT</pubDate>
            <atom:updated>2022-03-28T20:58:26.054Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8oh-8_DEM4vAph5l.jpg" /></figure><p>Humans have come a long way in the last 200 years. The way we speak, act and think has changed drastically over time, and so has our healthcare.</p><p>Just 200 years ago, in the 19th century, the life expectancy for an average male was only 40 years, and for an average female, 42 years. People would be diagnosed with diseases that no one had ever heard about. Scientists who didn’t possess the correct technology would try to find a cure for the new disease. Over time, the cure would be developed, but so many millions of people died due to deadly diseases.</p><p><strong>200 years later, in the 21st century, life expectancy has just about doubled! </strong>The average male in Canada now lives to about 79.8 years, and the average female lives about 83.9 years.</p><p>This is all thanks to our technological advancements in the medical field over the past two centuries. With the invention of phones, computers, and the Internet, scientists are able to do more detailed research on varied topics. Medicine has advanced exceptionally in the last couple of decades — enabling a decrease in the number of deaths from communicable as well as non-communicable insidious diseases. A very recent technological advancement in medicine is the development of the COVID-19 vaccine. This vaccine is an mRNA, and once injected, changes and teaches our cells how to make proteins that can mount the appropriate immune response within our bodies. The medical world is changing very quickly, and we are helping so many people around the world with innovative methods of treating people and improving their quality of life.</p><p>Similarly, another fairly new method that promises medical advancement in leaps and bounds, first used in 2005, is optogenetics. <strong>Will this new scientific methodology change the way we treat and cure diseases?</strong></p><h3><strong>What is optogenetics?</strong></h3><p>Optogenetics is a technique in neuroscience that uses light and genetic engineering to control the activity of brain cells in living creatures. New research has allowed optogenetics to target specific cells with much precision, thus making it easier to observe and control the activity of those cells. Unlike drugs, which act too slowly, or the electrical stimulation of the brain, which isn’t as precise, optogenetics has the ability to quickly and accurately target specific cells in the brain. Also, unlike some other options to cure diseases, optogenetics has fewer side effects, and its very few side effects are not long-lasting. The process of optogenetics uses the channelrhodopsin gene from certain types of algae — this is the gene that allows the algae to change light into electricity using naturally generated light-sensitive proteins. Other light-sensitive proteins, such as halorhodopsin can also be used. Once those genes are inserted into viruses, used as gene therapy vectors, which are tweaked to only attack some cells and not others. Using gene editing, those viruses are added into the neurons of living animals such as mice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*T5luwTbEzId03JCw" /><figcaption>Credit: Giphy</figcaption></figure><h3>How does it work?</h3><p>Once these viruses are in the animal’s neurons, scientists are able to use light delivered via a fibre optic cables to activate the light-sensitive protein and control the activity and behaviour of the animal. The channelrhodopsin gene, which is usually activated with blue light, can be used to control phototaxis, or the movement in response to light. The blue light causes the channelrhodopsin protein, a light sensitive channel, to open, thus flooding the channel with positive ions, similar to the ones that cause nerve cells to fire. When this channel is opened, the neurons are switched on, and an action potential arises. The halorhodopsin gene, which is usually activated with green or yellow light, can be used to silence neurons, by switching them on and off. The green or yellow light activates halorhodopsin, triggering a flood of negative ions, and an action deficit potential arises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*wbXE1BYA5HWY6B5-.jpg" /><figcaption>Credit: Google</figcaption></figure><h3>How is optogenetics being used today?</h3><p>Since 2005, a lot of research has been done to further improve the “mind controlling” neuroscience known as optogenetics. A lot of progress has been made since the first experiment conducted on our scientific friend the mouse, ranging from new methods to testing on humans. Not only has optogenetics been used to cure neurodegenerative diseases, it is used to study “the brain, cardiac tissue, stem cells, and the development of organisms”, as per Britannica.</p><p>Optogenetics has been known to use both channelrhodopsin and halorhodopsin, which are activated using yellow, green, and most commonly blue light. Recently, scientists have discovered a way to use red light in optogenetics, calling it the “Chrimson variant”. Further research on red light optogenetics shows that it is more accurate than the more commonly used blue light optogenetics. It has been discovered that red light optogenetics is not only more accurate, but it has been used to restore auditory nerve activity in deaf mice.</p><h4><strong><em>Restoring visual activity in a mouse</em></strong></h4><p>In one case, scientists restored visual nerve activity in a blind mouse. In this experiment, the task of the mouse was to find the tunnel that led to a stand, with a total of 6 tunnels, and only 1 tunnel that led to the stand. The blind mouse, not being able to see, took 5–6 tries in order to reach the correct tunnel, going through all of the tunnels. Once the blue light was turned on, the mouse only took 1 try to get into the correct tunnel, everytime the test was conducted. When the light was turned back off again, the mouse returned to its normal state, taking 5–6 tries to get the right tunnel.</p><h4><strong><em>Partially recovering visual function in humans</em></strong></h4><p>In more recent years, published in a study released on May 24th, 2021 by the British journal Nature, scientists were able to partially recover the visual function of a blind patient after using optogenetic therapy. The patient had retinitis pigmentosa (RP). This is a progressive, inherited, neurodegenerative eye disease leading to complete blindness that affects over 2 million people worldwide. Even though so many people suffer from this blinding disease, there is still no approved therapy in the market. Scientists combined the adeno-associated injections containing ChrimsonR codes and goggles engineered to simulate light to restore this patient’s sight. Testing the goggles before use and following the correct safety procedures, scientists were able to start the treatment. Once the scientists had injected the patient with the ChrimsonR codes, they waited around 6 months before starting to test the goggles. 7 months after starting the treatment, the previously blind patient “reported signs of visual improvement when using the goggles”.</p><p>“This is the first reported case of partial functional recovery in a neurodegenerative disease after optogenetic therapy,” states the Nature article.</p><p>Though this is only the first case of a neurodegenerative disease being cured, optogenetics is developing, and promises hope for the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*uxgBxaKasY32D-TW" /><figcaption>Credit: Giphy</figcaption></figure><h3>How can we use optogenetics in the future?</h3><p>Today, scientists are working on treating neurodegenerative diseases, like blindness or deafness. Recently, scientists have been working on treating mental health disorders like fear, anxiety, and overeating. Today, “between 76% to 85% of people with mental health disorders receive no treatment for their disorder” states the WHO.</p><h4><strong><em>Treating fear</em></strong></h4><p>Scientists used optogenetics on a fly, putting in channelrhodopsin as the light-sensitive protein. Channelrhodopsin is activated with blue light. The fly was in a petri dish, and once the blue light was switched on, the fly felt a sudden rush of fear, and immediately tried to escape the enclosed space. The scientist had found the neuron in the fly that caused the fly to feel fear. Using optogenetics, scientists can then use halorhodopsin instead to turn off the precise neuron that generates fear. While research on how to conduct this on humans is yet to be done, hopefully we can use optogenetics to treat people for any life-threatening fear.</p><h4><strong><em>Treating overeating</em></strong></h4><p>Similar to the experiment conducted on the fly, an experiment was conducted on a mouse to find the neurons that cause people to overeat. Before the experiment started, the fully fed mouse suffering from overeating was licking the floor. When the blue light was turned on, the mouse ate very quickly, even in the absence of food. Scientists had found the neuron in the mouse that caused it to overeat. Just like the fear experiment, scientists could then use halorhodopsin instead of channelrhodopsin to switch off that neuron for a prolonged period. In the future, scientists could use this stream of optogenetics to help humans suffering from various eating disorders, such as bulimia.</p><h4><strong><em>Finding treatment for anxiety</em></strong></h4><p>Anxiety is not uncommon in today’s busy world, especially in teenagers. Today, a common form of therapy is Cognitive Behavioural Therapy (CBT). This can range from lasting 5–40 weeks. After CBT, it is not guaranteed that the person’s anxiety will never come back. If optogenetics can be used in the future as a treatment for people suffering from anxiety, it could change the way that around 275 million people live their lives.</p><h4><strong><em>Cost</em></strong></h4><p>Today, the cost of receiving care from optogenetics ranges from $100-$10,000. Since optogenetics is a fairly new method to treat diseases, naturally the cost would be very high, with low supply and high demand. Over the course of the next couple of decades, as more research is conducted and more economies of scale obtained, the cost of using optogenetics in diagnosing and curing ailments can decrease, enabling optogenetics to become the therapy of choice.</p><p>These are just some of the many mental disorders that can be treated using optogenetics. In just a couple more decades, we could find treatment for some of the 200 mental disorders, and help those people that are suffering. With just a little more research, optogenetics can be the main source of treatment for many mental disorders.</p><h3>Conclusion</h3><p>From the polio vaccine to the discovery of penicillin, scientists have incrementally improved the quality of life of millions. We have surely come a long way in medicine, and optogenetics is one example of the many methodologies researchers and neuroscientists can use to positively improve the human condition.</p><p>Alas, we still have a long way to go before we know everything about the brain, the body, medicine, and ways to treat people. Hopefully, optogenetics can change the lives of people, and pave way for more scientific breakthroughs in the medicinal world!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*BYi4wvbIXLP69dcX" /><figcaption>Credit: Giphy</figcaption></figure><h4>Read the article about the patient who got his sight back: <a href="https://www.nature.com/articles/s41591-021-01351-4">https://www.nature.com/articles/s41591-021-01351-4</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72253c09606f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>