<?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 Abhiram Ruthala on Medium]]></title>
        <description><![CDATA[Stories by Abhiram Ruthala on Medium]]></description>
        <link>https://medium.com/@1075239?source=rss-75fbc6d1cc71------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dvJVM3cWedUNPWs8P0bE5Q@2x.jpeg</url>
            <title>Stories by Abhiram Ruthala on Medium</title>
            <link>https://medium.com/@1075239?source=rss-75fbc6d1cc71------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:48:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@1075239/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[Looking At Facebook’s Portrayal to Justify if Mark Zuckerberg is a Lizard]]></title>
            <link>https://medium.com/@1075239/looking-at-facebooks-portrayal-to-justify-if-mark-zuckerberg-is-a-lizard-147b0ff05f04?source=rss-75fbc6d1cc71------2</link>
            <guid isPermaLink="false">https://medium.com/p/147b0ff05f04</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[mark-zuckerberg]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Abhiram Ruthala]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 22:49:18 GMT</pubDate>
            <atom:updated>2024-03-26T00:35:36.506Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Quarter 3 English Independent Reading Paper</em></strong><em> — </em>I need to be authentic</p><p>Mark Zuckerberg is not an ordinary person.</p><p>Coming out as a coding prodigy and starting college computer science lessons at 12–13, isn’t what you’d usually see. Continually, having Microsoft, then created by former Harvard dropout Bill Gates, come up to buy one of Mark’s pre-college audio-player projects made him a sensation overnight (However, he declined Bill’s request as a way to give out the software for free).</p><p>Later, he continued along the path of “the successful Harvard dropout”, creating a lasting impression on many others in the software and psychology industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jh1m2SSGY44lvNtY4MVVw.jpeg" /></figure><p><em>The Boy Billionaire: Mark Zuckerberg In His Own Words</em> came out in 2012 and took major inspiration from the widely-publicized story behind Mark Zuckerberg and his co-founders, correlating to the major success that Mark has today due to everything that he has accomplished.</p><p>This book details Zuckerberg’s life building out the major social company from his Harvard dorm back in 2004 through his quotations and thoughts.</p><p>It details how he started to lead the “dot com” bubble and frame the economic climate from the 2000s through his exceptional computer science skills, which were also lead by upcoming tech-giants at that time– Steve Jobs and Bill Gates.</p><p>It is a personal read behind Mark’s life during the building of Facebook, providing an intimate view into quotations, reasonings, business strategies, and ideas that pivoted him to build Facebook.</p><h3>Movie Talks</h3><p>The movie that correlated to the book was <em>The Social Network (2010).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LJGn_SB2VRFEP6nM.jpg" /><figcaption>The Social Network (2010). Jesse Eisenberg (Above) plays Mark Zuckerberg.</figcaption></figure><p>The book and the movie had significant differences.</p><p>The movie portrayed Mark as more of an introverted, keep-to-yourself person who was willing to negotiate when his share of an item was at stake, and not necessarily at others. However, the book demonstrates Mark’s life as more curiosity-based. He was willing to learn concepts and was deeply influenced by the work of his parents, especially with his mom being a psychiatrist.</p><p>Additionally, the movie seemed to have made up/exaggerated some parts of Zuckerberg’s life, whilst the book gives a user-friendly outlook on his life, not highlighting the key issues that Mark concurred, such as “backstabbing” his co-founder and technically kicking him out of Facebook.</p><p>Another example of the book’s sugar-coated view of Mark was with the mention of “California’s gold-rush” and the “Silicon Valley”, prompting the growth of Facebook by demonstrating Mark’s reason for movement and major place of development for the “early startup” back in the summer of 2004.</p><p>However, in the movie, this is where Mark starts to manipulate Eduardo, bringing in other interns and spending the money that Eduardo had put in an account under the <em>Eduardo Saverin Foundation</em> on other people beyond the promises that they’d set for one another.</p><p>In my opinion, the movie showed the authentic life of Mark Zuckerberg as an introvert with a genius intellect and a diminished reputation, whilst the book provides a sugar-coated idea of his life at Harvard building Facebook, explaining his takes on inspiration, growth, focus, and company development rather than who Mark was individually and his true flaws.</p><h3>Parallels</h3><p>What stood similar was the portrayal of the story of the creation of Facebook as well as the key takeaways that both mediums targeted.</p><p>The same story is recited in both mediums.</p><p><strong><em>Mark goes to Harvard, builds Facemash.com, gets into legal trouble, meets with the Winklevoss twins and Divya Narendra to build ConnectU, pivots to creating Facebook, faces legal trouble again, kicks his best friend out of the company, and makes a name for himself.</em></strong></p><p>In a portrayal like the book, which is meant to give a user-friendly outlook of the story behind Facebook, the demonstration of the fact that Mark faced legal troubles and was nearly kicked out of college for unauthorized use of images caught my attention due to the emphasis on the magnitude of the work that Mark was conducting back in 2004–2006.</p><p>This software didn’t exist anywhere, and coding was just emerging as a newer field of development and job growth.</p><p>Both mediums also served as key ways to hone the understanding of life lessons as well. The authentic portrayal of Mark’s life back at Harvard shows the demand for the “dot com” startups back in 2004 and teaches us the will behind making proper executive decisions to maximize development and limit legal trouble.</p><p>With the book being an intimate portrayal of the tech-giant through his own quotations, it teaches us his key values, such as staying persistent, true to nature, impatient, having passion, and doing things that matter.</p><p>To coin an example, Zuckerberg is seen to have a steadfast vision toward his growth, calling himself “impatient” because he wants momentum within the role.</p><h3>My Take On The Movie</h3><p>I’d rate the movie highly due to its visual appeal and a good portrayal of the story of Mark Zuckerberg with the basis of the book.</p><p>Although some things, such as Mark’s alleged girlfriend “Erica Albright” were fabricated, it was still made up to showcase the story of Mark and his peers in developing Facebook as one of the biggest social networks in the world.</p><p>The casting of <em>Jesse Eisenberg</em> was perfect as it really encapsulated the version of Mark as a collegiate student working to built “the next big thing”. He was just a calm person, learning computer science, pursuing education, working on projects whilst under the influence (In fact, he made Facemash.com whilst intoxicated from 8 pm to until 4 am) and understanding the world around him with colleagues Eduardo and Dustin.</p><p>When looking at successful founders such as Mark, the focus is put on the journey due to the major growth and accomplishments received on the way, and this movie allows us to understand this exact concept for Mark, keenly.</p><p>One specific event within the movie was when Mark was conducting his “exam” to find interns for Facebook.</p><p>He calls upon 5 coders, has them work on a Python-3 (Programming language) server backend whilst taking an alcohol shot at every 3 minutes, at every 10 lines of code, and at every time a server intrusion occurs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fgqud6kAP1us%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dgqud6kAP1us&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fgqud6kAP1us%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/13084542b4ed70c867797eee9de3505e/href">https://medium.com/media/13084542b4ed70c867797eee9de3505e/href</a></iframe><p>Additionally, when Dustin Moskovitz (Former Co-Founder of Facebook) meets with Mark in the computer lab, their conversation sparks an idea for Mark to create the “Relationship Status” section on Facebook. He justified this to Eduardo by saying “<strong><em>This is why people sit where they sit and take the courses that they take</em></strong>” and “<strong><em>They’ll know if they can get a girl</em></strong>”.</p><p>This highlights the uniqueness behind founders like Mark, explaining his disregard for rules and drawing attention to his ability to focus on things that he can envision can create differences in the world and draw interest between people.</p><h3>Recommendation</h3><p>I would recommend the movie over the book as it gives an accurate portrayal of Mark and his life through the lens of other people and characters within the story and not just what’s idealized of Mark.</p><p>The addition of visual components, the introduction of actors such as <em>Jesse Eisenberg </em>and <em>Andrew Garfield</em> who play key characters, and the attention to detail with the anger of the Winklevoss twins to even his idea’s weirdest inspirations demonstrate the uniqueness of Facebook as a company and software that served to bring the world together in a time where software was just getting started.</p><h3>Takeaways</h3><p>What I would’ve done differently is encapsulate Mark’s ideals as a visionary trying to grow Facebook and also highlight his flaws as well.</p><p>When Mark kicks out Eduardo, it’s because a lot more investors are taking into the company and he initially only wanted Eduardo’s money to grow the company. However, the part about getting the investors was to efficiently grow the company to allow Facebook to thrive with the increasing traffic to the website and the demand for server compatibility.</p><p>Noticing how the Facebook story and the intentional Harvard dropout have inspired and affected <strong>millions of founders/students</strong>, showing the authenticity behind executive decisions within the board and the true growth of Facebook beyond the <strong>2004 dorm days</strong> would’ve been an implementation that I would’ve considered.</p><p>Also, I would’ve revamped parts of the movie to highlight this <strong>will</strong> to drive thoughts behind making hard executive decisions and create a strong inner mindset when having to create one of the biggest things that, during that time, the world needed but never asked.</p><p>So…</p><p><strong>Is Mark a lizard?</strong></p><p>I believe so. I don’t know why though.</p><p>You know this feeling you get when you’re building the next big thing?</p><p>Did you say no? Yeah, me as well.</p><p>Lizards probably experience that feeling.</p><p>I mean it in a good way.</p><p>They grow back their tails if they lose it. They are building a big thing for themselves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=147b0ff05f04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Classification Tool to Interpret People’s Thoughts (and Attention Levels)]]></title>
            <link>https://medium.com/@1075239/creating-an-eeg-signal-classification-task-for-simple-motor-imagery-and-attention-levels-ddb92fdda860?source=rss-75fbc6d1cc71------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb92fdda860</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Abhiram Ruthala]]></dc:creator>
            <pubDate>Sun, 24 Dec 2023 06:10:44 GMT</pubDate>
            <atom:updated>2024-01-03T22:40:15.703Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a panic attack.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fy-NqCJdNtfU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dy-NqCJdNtfU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fy-NqCJdNtfU%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/a074064c04aebeb812a3b5ff99723e80/href">https://medium.com/media/a074064c04aebeb812a3b5ff99723e80/href</a></iframe><p>Did you notice what his suit did?</p><p>He asked it to check the brain to see if he had any abnormal activity and to classify and notify him of it. Although this seems more like a general AI therapist, JARVIS’s algorithms are coded to constantly monitor his brain and classify the data based on his motor activity. Even with it being non-invasive (not penetrating the skull), it was able to classify the diagnosis as a panic attack and not a cardiac arrest.</p><p>Considerably, it was able to mark Tony’s heightened state of arousal and discomfort and classify it as a panic attack. <strong><em>Sweet tech!</em></strong></p><p>We’ll be building such an algorithm.</p><p>This algorithm focuses on presenting an EEG classification task for a standard classifier to divide between different types of EEG data. We’ll use the <a href="https://www.python.org/">Python</a> coding language to program the classification task. This is a model that I’ve built to help me understand the classification of data, data transfer in BCIs, and signal-to-noise ratio for EEG signals.</p><blockquote><em>Additionally, I’ve tried to classify a person as </em><strong><em>“High Attention”</em></strong><em> or </em><strong><em>“Low Attention”</em></strong><em> by utilizing the data from the dataset and comparing it with threshold values. More insights are down below!</em></blockquote><p>Now if these terms don’t sound familiar to you, don’t worry. I’ll be going deep into these topics to make sure you understand them.</p><h3><strong>The Main Purpose</strong></h3><p>Let’s rewind and understand why I want to create such a system. In my previous article, <a href="https://medium.com/@1075239/reimagining-rehabilitation-the-impact-of-brain-computer-interfaces-on-motor-functions-74f253586645">Reimagining Rehabilitation</a>, I documented how the usage of a Brain-Computer Interface could introduce new modes of rehabilitation by reducing training times, increasing accessibility for individuals, and allowing permanently affected individuals to reuse such abilities.</p><p>This system targets the underlying cause behind all the activities I just mentioned.</p><p>Most motor activities require people to not <em>“think”</em> about the movement. This is because you’ve gotten so used to the movements that you’ll never have to consciously put thought into understanding what you’re doing at that time.</p><p>An example is brushing your teeth. You don’t consciously remind yourself to brush your teeth as it is a habit that you’ve developed and stick to every single day.</p><p>Going back to the purpose, you probably think I’d be lying if I said that my inspiration for such a project is from a 4-minute Disney movie clip from 2014.</p><p>I most certainly am not.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfsVJuN75vzE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfsVJuN75vzE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfsVJuN75vzE%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/460f24ecc38bade187b75b60be06ac87/href">https://medium.com/media/460f24ecc38bade187b75b60be06ac87/href</a></iframe><p>Big Hero 6 demonstrates such a classic outlook on the usage of BCIs as an everyday tool and system. It shows the range of accessibility and communication with everyday systems, attracting tons of people by resonating with them.</p><blockquote><em>Also, Hiro is around as old as I am right now.</em></blockquote><p>The reality behind his system is that it utilizes a form of motor imagery to manipulate the microbots. The “neurotransmitter” can detect the electrical/magnetic activities of the neurons (brain cells) firing without having to penetrate the skull. He thinks of a certain motion, and this is extensively communicated as ionic/magnetic activity from those cells to the micrbots to replicate it.</p><p>In simple terms, he thinks of something, and the objects do it.</p><h4>What does this mean?</h4><p>This is the underlying future of motor rehabilitation, where patients don’t have to rely on deep-in-the-skull and not-so-healthy implants to control and communicate with systems like never before. It also paves the way for self-supervised therapy and training, where patients, through new modes of communication and access, can learn more about the systems, the issues they are facing, and the best set of actions to try and rehabilitate the affected motor part.</p><h3>Building the Model</h3><p><strong>Importing the Necessary Files<br></strong>A lot of the functions that’ll be used to develop the model are unique to Python’s vast lexicon of functions. This will include packages such as <strong>pandas, matplotlib, </strong>and<strong> seaborn</strong>, among others. This will set up the background for the model, allowing us to implement certain functions and use the system.</p><pre>#We&#39;ll use these files to direct our coding.<br>import warnings<br>import seaborn as sns<br>import matplotlib.pyplot as plt<br>import pandas as pd<br>from mne.decoding import CSP<br>from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA<br>from sklearn.pipeline import make_pipeline<br>import moabb<br>from moabb.datasets import BNCI2014_001<br>from moabb.evaluations import WithinSessionEvaluation as WSE<br>from moabb.paradigms import LeftRightImagery<br><br>#We need to set up the instantiation process of the dataset<br>moabb.set_log_level(&quot;info&quot;)<br>warnings.filterwarnings(&quot;ignore&quot;)</pre><p>Let’s look at some of the arguments:</p><ul><li>from: This is the code line that considers the folder group from which you are importing a specific file</li><li>import: This is called before the specific file that you want to import.</li></ul><p><strong>Instantiating the Dataset</strong></p><p>Instantiation refers to the creation of an object in the programming language by readying and specifying the information in it. This is added to the memory of the system for this project as this is unique to it.</p><p>To give some context, MOABB consists of a lot of datasets that comprise different EEG recordings and signals. The dataset that we’ll be using is <strong>BNCI2014_001()</strong>.</p><p>To make sure that we have gotten the 2a dataset from BCI Competition IV, we’ll need to instantiate it to import it correctly and use the dataset’s information.</p><pre>dataset = BNCI2014_001()<br>dataset.subject_list = [1, 2, 3]</pre><p>Now, we can access the EEG recording for a given subject by identifying their index in the subject list. This is saved under the variable sessions.</p><pre>sessions = dataset.get_data(subjects=[1])</pre><h3>Python’s Interesting Counting System</h3><p>The get_data is a built-in function that can take data from the person who is indexed at 1 in the list subjects<em>.</em> We’ll have to get the data from only one person’s session in the dataset.</p><p>However, being indexed as 1 doesn’t mean that the person is the first person on the list. Here’s how Python reads the script:</p><pre>Abhiram <br>0123456 - Python<br><br>Abhiram<br>1234567 - Real World</pre><p><em>Python starts counting from 0?</em> is what I initially thought when I first learned about it. For a language that is considered “easy to learn,” this is a factor that throws people off.</p><p>This is a factor from the language design itself. It’s to provide a clear distinction from <strong>ordinal forms</strong>.</p><p>Ordinal forms (or numbers) show something’s position in a series. This is like the numbers with the letter suffix at the end, such as “1st, 2nd, and 3rd,” or their literary forms (words spelt out without any numerals) which are “first, second, and third.”</p><p>Python (and other 0-based programming languages) deviate from that system, starting from 0 as the initial number. The 0th derivative of a function is the function itself, which precedes the first derivative, and the second derivative, and so on. Python reads it like that, where the first term is indexed at 0 because of the 0th derivative of the function. However, ordinal numbers would consider the 0th derivative as the “first” number. This proves a clear difference.</p><p>By considering this indexing format in a list, we would see the following command.</p><pre>var = [&quot;dog&quot;, &quot;cat&quot;, &quot;shark&quot;, &quot;blue whale&quot;, &quot;chicken&quot;]<br>print(var[1])<br>#this function is looking for the value that is indexed &quot;1&quot; in the list of the 5 terms.</pre><pre>Organization of the list with Python&#39;s reading technique<br>var = [&quot;dog&quot;, &quot;cat&quot;, &quot;shark&quot;, &quot;blue whale&quot;, &quot;chicken&quot;]<br>         0      1       2          3            4</pre><pre>#Result in the Terminal<br>cat</pre><p>In a list, every single parameter (in this example, it would’ve been every single word separated by a comma) is given a certain indexing from 0 with the first parameter on the left to a certain number for the ending parameter.</p><p>For the example of my name, if we were to give Python just a single parameter, it would divide the letters, or numerical digits, into certain indices.</p><pre>My name - Abhiram<br>Python -- 0123456</pre><p>Let’s get back to creating the model.</p><h3>Paradigm and Pipeline Integration</h3><p><strong>Paradigm Integration</strong></p><p>Sweet old paradigms.</p><p>Paradigms are important because these are how the given program/programming language can be organized.</p><p>After we have properly instantiated the dataset, we have to choose a paradigm. This is important for filtering the EEG data, epoching it, and utilizing it. This would be specific to the types of datasets that you are using.</p><pre>print(dataset.paradigm)<br><br>paradigm = LeftRightImagery()<br><br>print(paradigm.datasets)</pre><p>After this, we’ll have to consider the data from the list and process it. The meta function consists of all the data regarding the subject, such as the session time and run time associated with the trial. X is the name of the array that we are calling here.</p><pre>X, labels, meta = paradigm.get_data(dataset=dataset, subjects=[1])</pre><p><strong>Pipeline Integration<br></strong>Our goal is to measure the performance of a classification tool in reading and interpreting EEG epochs.</p><p>Put simply, a pipeline is a set of interconnected components that help in measuring and processing the data as it is worked through the system. Our components are CSP and LDA as shown in the code block below.</p><pre>pipeline = make_pipeline(CSP(n_components=8), LDA())</pre><p>With a simple pipeline, the CSP (Common Spatial Pattern) can enhance the signal-to-noise ratio of the EEG epochs (making it clearer when classifying it), and the LDA can classify these signals.</p><p>Let’s define these terms:</p><ul><li>Common Spatial Pattern: This is a common spatial filtering technique used to draw particular data from brain mapping techniques such as EEGs or magnetoencephalograms (MEGs). It essentially looks for a set of spatial filters, and it uses that to differentiate between two or more signals based on the covariance matrices (Linear Algebra foundations).</li><li>LDA: This system, called LinearDiscriminantAnalysis is a function from scikit-learn or sk-learn that is used to classify the EEG signals that we are getting from the dataset.</li><li>Epochs: This refers to the passing of all the training data at once in the model. Technically, we’re using <strong>all the training data</strong> of one subject from their respective session, so that’s why we refer to it as an epoch.</li></ul><h3><strong>WithinSessionEvaluation Integration</strong></h3><p>To evaluate the results of the pipeline, we introduce an evaluation class.</p><p>A class is a code template where objects can be created in the model. This specific class consists of 4 parameters:</p><ul><li>paradigm: This is to select the paradigm that we are willing to use. Paradigms are how the given program can be organized.</li><li>datasets: This is to pick the particular dataset.</li><li>overwrite: This is either selected as True or False based on whether the user wants to recalculate the values each time the function is run.</li><li>hdf5_path: This is to create a cache file to store the data. We don’t need that as we’re focused on plotting the data and visualizing it through the figsize method (Check out the <strong>Bar</strong> <strong>Graph Generation</strong> heading).</li></ul><pre>#I imported WithinSessionEvaluation as WSE (short form) so that it&#39;s easier for me to integrate the function<br>evaluation = WSE(<br>    paradigm=paradigm,<br>    datasets=[dataset],<br>    overwrite=True,<br>    hdf5_path=None,<br>)<br><br>results = evaluation.process({&quot;csp+lda&quot;: pipeline})</pre><p>I could’ve done this step in another way. One would utilize the CrossSessionEvaluation (CSE) within the evaluation class. The CSE process utilizes all but one of the datasets as training and the remaining one set as testing from multiple sessions.</p><p>The WSE process (which is the one I implemented) uses a cross-validation of the training and test data from a single recorded session. This is good when visualizing data and understanding the changes throughout the recording session for just one reading.</p><h3>EXTRA: CrossSessionEvaluation Integration</h3><p>CrossSessionEvaluation allows you to use all but one <strong>dataset</strong> as training data and the remaining one as test data. This allows us to compare data from multiple sessions regarding session time, training and test data etc.</p><p>Here’s how to do it with CSE to integrate data from multiple sessions. Firstly, we’ll have to import multiple datasets.</p><pre>from moabb.datasets import BNCI2014_001, Zhou2016<br>from moabb.paradigms import LeftRightImagery<br>from moabb.evaluations import CrossSessionEvaluation as CSE</pre><p>NOTE: <em>I imported the </em>CrossSessionEvaluation<em> file from </em>moabb.evaluations<em> as </em>CSE<em> to make life easier. This step is up to you, but renaming files as shorter versions helps when you’re writing large sets of code for particular projects.</em></p><p>When calling the evaluation = CSE()function, make sure to utilize the parameters as follows. You’ll need to make sure that you change the hdf5_path parameter to the suffix parameter as we’re not focused on creating a cache file to store the data in the CrossSessionEvaluation function.</p><p>Here’s how it’d work with CSE:</p><pre>#Call the evaluation class and use the CrossSessionEvaluation function. Instead of the cache file, call the suffix parameter.<br>evaluation = CSE(<br>  paradigm = paradigm<br>  datasets=datasets<br>  suffix = &quot;examples&quot;<br>#Usually with CSEs, we don&#39;t have to recalculate the data every single time we run the function, so you can set overwrite = False.<br>  overwrite = False<br>)</pre><p>Here’s how we would show the results of the experiment without Common Spatial Pattern or LinearDiscriminantAnalysis:</p><pre>results = evaluation.process(pipelines)</pre><p>Here’s how we’d integrate CSP and LDA:</p><pre>results = evaluation.process({&quot;csp+lda&quot;: pipelines)</pre><p>NOTE: <em>This follows the same format as </em>WithinSessionEvaluation<em> as well.</em></p><p>CrossSessionEvaluation is extremely helpful when looking at changes between different sessions that might’ve had the same environmental conditions. This function allows you to cross-validate across these different sessions, different run times, and different datasets across differing timelines as well.</p><h3>Bar Graph Generation using the Seaborn package</h3><p>We complete the model by plotting a histogram using the seaborn package to compare the classification score for the session. I was able to plot the results as a histogram using the data from the evaluation process and the LinearDiscriminantAnalysis function from scikit-learn.</p><p>We consider different parameters from the seaborn package and add them.</p><pre>fig, ax = plt.subplots(figsize=(10, 5))<br>results[&quot;subj&quot;] = results[&quot;subject&quot;].apply(str)<br>sns.barplot(x=&quot;score&quot;, y=&quot;subj&quot;, hue=&quot;session&quot;, data=results, orient=&quot;h&quot;, palette=&quot;viridis&quot;, ax=ax)<br>plt.show()</pre><p>Let’s look at it line-by-line:</p><ul><li>fig, ax = plt.subplots: These are part of the matplotlib database that helps in manipulating and creating a graph of the intended size. figsize() takes the width and height, as parameters, in inches. These can be changed to how you want your graph to look.</li><li>results[&quot;subj&quot;]: The only reason [&quot;subj&quot;] is created is because seaborn only accepts terms in strings for its labeling and not integers. results is in integers, so we had to convert its identity type.</li><li>sns.barplot: This is pretty self-explanatory. It utilizes different parameters within the graph to customize it, such as axis titles, orientation, the color of the separate bars, axis etc.</li><li>plt.show(): This is the command to show the bar in the terminal.</li></ul><p>And this should be your result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HycY0XcXYyMZtxPGnts9Hg.png" /></figure><p>NOTE: <em>This graph uses the </em>figsize=(8, 7)<em> as the parameters for width and height. For </em>subjects<em>, we’d also have to introduce </em>1test<em> as another character with its data for the system so that it can be plotted.</em></p><p>The blue bars represent 0train which is the training data for the subject. 1test refers to the test data and that is marked in green.</p><p>That’s it.</p><p>It might seem confusing to consider that a subject’s thoughts (which are the EEG signals) have been classified into training and testing data, but that’s what happened in the session recordings from the dataset, and we’ve properly classified and plotted them. This is a simple classification task that utilizes motor imagery as its input data.</p><p>You’ve just created a system that takes people’s thoughts about moving a certain body part (motor imagery), introduced a pipeline that can clean up the signals from the session, validated the session with its own training and test data, and properly classified and visualized it (through the bar graph).</p><p>In simple words, you just took someone’s thoughts, grouped them, and plotted them to identify changes.</p><p>If that was a lot, here’s a loom video demonstrating the entire setup and compiled code to break it down into simpler terms:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.loom.com%2Fembed%2Fbe73ea43c3de4eee958db6ddb598b31d&amp;display_name=Loom&amp;url=https%3A%2F%2Fwww.loom.com%2Fshare%2Fbe73ea43c3de4eee958db6ddb598b31d&amp;image=https%3A%2F%2Fcdn.loom.com%2Fsessions%2Fthumbnails%2Fbe73ea43c3de4eee958db6ddb598b31d-00001.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=loom" width="1920" height="1440" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c6c9e08f282f3f8154a6d1a425b94c0/href">https://medium.com/media/1c6c9e08f282f3f8154a6d1a425b94c0/href</a></iframe><h3>Main Insights</h3><p>Looking at this from a user perspective, I thought about how fascinating it is to utilize certain EEG data, improve the signal-to-noise ratio, classify the data as Left or Right-hand motor imagery, and plot a graph to explain such classification between the different areas.</p><p>Motor imagery is the first step in understanding how people function and move their bodies. Before these activities became “non-thinkable,” we all had/have given some sort of conscious thought about our movements and how we perform them. Motor imagery boasts the same story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*hBCBu0Tfw5zKWrLNdzK-HA.png" /><figcaption>An example of motor imagery.</figcaption></figure><p>The interesting thing about this model is that it lays the foundation for many new tools.</p><p>Going back to Hiro’s project, what if we utilized motor imagery so that external devices could take such a shape, allowing us to “<em>consciously think better</em>”? Additionally, how about using that as a feedback system to learn more about motor imagery? Also, what if certain types of motor imagery, when connected with a BCI tracking electrical signals, can refine the skill development industry just by thinking about those certain movements that’ll be applied in that job?</p><p>This is crazy.</p><p>Overall, this EEG Classification tool has taught me the depths of signal-to-noise ratio with signals, classification techniques with LDA, visualizing data with one session and multiple sessions, and identifying best-case scenarios with applications of such a tool, such as attention tracking.</p><p>The next step is attention-level integration.</p><p>Why?</p><p>Attention levels are practically the backbone behind motor imagery (and thoughts in general). When we consciously think of something, we pay <strong>attention </strong>to those thoughts, and I’d like to see the certain influence that this arbitrary factor plays on motor imagery and also when the thoughts are read as signals.</p><p>If we pay more attention to certain motor imagery, does that mean that the signals would be stronger when read from the EEG? What about the correlation between attention and motor imagery in terms of a proportion? How much of a certain duration of attention influences the strength of the EEG signal?</p><p>I’ve got tons of lingering questions that I’d like to answer.</p><h3><strong>Addressing Attention Levels</strong></h3><p>Through this project, I’ve learned a lot about signal classification, and I <strong>wanted</strong> to integrate it with this system I made back in July.</p><p>Although this dataset would only answer my questions regarding the EEG signals themselves and not the raw motor imagery readings, I’d still like to take a proper stab at it.</p><p>Keen about measuring arbitrary variables, I coded a small system to measure attention levels in an individual by measuring the levels taken by the built-in system from the <strong>Muse EEG Headband</strong> and comparing them with set threshold values for EEG levels.</p><p>These are the threshold values:</p><pre>#Define your threshold numerals<br>threshold_high = 0.5<br>threshold_low = 0.3</pre><p>NOTE: <em>These values are not specified for any units, such as frequency or wavelength, which makes it relatively subjective when trying to utilize it.</em></p><p>I wanted to take data from the Muse headband in the sense of a float variable and compare it. Here’s how I did that:</p><pre>#Check attention level<br>if eeg_value &gt; threshold_high:<br>  print(&quot;High attention&quot;)<br>  #Play a sound if you want to. You can remove the hashtag and the command will run with the code.<br>  playsound(&#39;sound1.wav&#39;)<br><br>elif eeg_value &lt; threshold_low:<br>  print(&quot;Low attention!&quot;)<br>  #Play a sound if you want to. You can remove the hashtag and the command will run with the code.<br>  playsound(&#39;sound2.wav&#39;)</pre><p>It would play a sound in the headband based on the <em>if statement</em>. It would track to see if the data represented by the Muse Headband is greater or lower than the threshold value, and it would play the corresponding sound.</p><p>Of course, these values can be tailored, and I can even try to mock up a histogram, but that’s not the point. Measuring such an arbitrary value struck me as such a fascinating thing.</p><p>Considering <em>Motor Imagery </em>as the mental representation of the body part that you want to move, the integration with attention levels would give a more comprehensive idea of how motor imagery works and what role attention plays in directing movements.</p><p>I also created an iteration where the EEG threshold numerals can be inputted by the person using the system. This is how it’d be applied:</p><pre>#Define your threshold numerals<br>threshold_high = float(input(&quot;Describe the high threshold value between 0-1: &quot;))<br>threshold_low = float(input(&quot;Describe the low threshold value between 0-1: &quot;))</pre><p>The reason we use float as the identity type is because the output to the input function is given in terms of a string, and we can’t use that because simply, a word or phrase can’t be compared with a number in Python.</p><p>The float type changes the output into a decimal numeral, so this can be used to compare with the EEG values from the Muse Headband.</p><p>Of course, Python will provide an error if you decide to type “Bob” or “ninety-two point thirty-three,” expecting either of those to change into a decimal.</p><p>Just type the number.</p><p>Terminal Result:</p><pre>Describe the high threshold value between 0-1: 0.5<br>Describe the low threshold value between 0-1: 0.2</pre><p>NOTE: <em>I typed in 0.5 and 0.2 as example values to show you what parameters would fit with the system. Technically, I could go above 1, but these are for the </em><strong><em>sake of demonstration.</em></strong></p><p>Through this, there is more flexibility when collecting data from the Muse and comparing it to the EEG values to represent ambiguous attention levels.</p><p>These inputted values would be compared and the terminal result would consider those numbers. It would provide a proper basis of comparison for different age groups, attention deficit disorders, or just experimental analysis.</p><p>Overall, the process of this depends on the user, their threshold values, and how that compares to constant EEG values taken by the Muse Headband. It’s a small iteration, but it’s got a lot of concepts behind it.</p><p><strong>Here’s a video of me explaining the entire code step-by-step:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuW0P5mUUm-s%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuW0P5mUUm-s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuW0P5mUUm-s%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/e5f77a6530c4c4ef67ef32b2557df041/href">https://medium.com/media/e5f77a6530c4c4ef67ef32b2557df041/href</a></iframe><h4>Parameters for Integration</h4><p>There are a lot of things to consider when thinking of integrating both systems.</p><p>I can think of a few right now. Integrating the dataset, removing Muse Headband authentication, and connecting the EEG threshold values with the ones that come as an output from the classification tool, are just a few to mention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8guqKNPJ2b8KMlVL" /><figcaption>Photo by <a href="https://unsplash.com/@ilyapavlov?utm_source=medium&amp;utm_medium=referral">Ilya Pavlov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Although this means heaps of extensive coding and a large learning curve, this lays the foundation for tracking attention levels, which has been a topic of subjective outlook for a long time.</p><p>This would mean better focus trackers/detectors, a greater outlook on disorders such as ADHD and attention span deficit due to short-form content, and even methods to improve the “flow state.”</p><p>We’d get more insights into how certain body parts work through hybridizing both systems. Also, we’d learn how much attention people will have to put into their motor imagery to cause the body part to do a certain function. Additionally, noticing attention levels gives us another basis for comparison when considering people in electroencephalogram and other brain-mapping experiments.</p><p>Sounds cool, doesn’t it?</p><p>Attention level tracking seems very subjective, but with the right variables, set reliability, and basis for comparison, there’s no doubt that validation will be introduced in such systems.</p><p>This would be <strong>Step 1</strong> when developing enhanced rehabilitation systems that consider both user input and existing databases when considering the advancement of the healthcare sector for paralyzed people. This is like “crawling” when learning how to walk as a baby.</p><p>When identifying attention levels (and other subjective neuroscientific factors) in the context of rehabilitation, you’re understanding the different layers behind the causes and factors problem itself. This is well-needed to create optimized systems that would require people to possibly “think less” when having to move a certain body part, putting the emphasis on the therapy portion of the rehabilitation process.</p><p>The only limit is your imagination.</p><h3>Helpful Links</h3><ul><li><a href="https://github.com/AbhiramRuthala/SimpleMotorImagery">GitHub - AbhiramRuthala/SimpleMotorImagery</a></li><li><a href="https://github.com/AbhiramRuthala/CognitiveEnhancement1">GitHub - AbhiramRuthala/CognitiveEnhancement1</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb92fdda860" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Teaching Neurogenetics in 3 Minutes]]></title>
            <link>https://medium.com/@1075239/old-article-teaching-a-neurogenetics-101-in-2-minutes-9ca30003de23?source=rss-75fbc6d1cc71------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ca30003de23</guid>
            <category><![CDATA[brain-computer-interface]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[Abhiram Ruthala]]></dc:creator>
            <pubDate>Wed, 15 Nov 2023 04:57:25 GMT</pubDate>
            <atom:updated>2023-11-15T05:03:40.852Z</atom:updated>
            <content:encoded><![CDATA[<h3>OLD ARTICLE: Teaching Neurogenetics in 3 Minutes</h3><p>The study of neuroscience is intricate; in fact, so intricate to the point where almost every function in our body depends on one singular system that lies right in our heads: the brain. This article focuses on the dynamics of neurogenetics; a whole new field of science research that goes over recent advancements in genome sequencing in order to better understand our brain.</p><p>The role of genetics in understanding how our brain works is applicable in various ways. Genetics shapes the way our brain works, influences the development of our brains, and controls how we move, feel, think, and behave. Twin studies in adults have found that many aspects of brain anatomy are considered to be highly heritable, demonstrating that genetic factors provide a significant amount of changes and variations to brain structures. Changes in genes can actively demonstrate and indicate to us if we have a particular chance of developing a genetic disease.</p><p>Neurogenetic diseases:</p><ul><li><strong>Huntington’s disease:</strong> A rare, inheritable disease that causes the progressive degeneration of nerve cells present in the brain. It has a wide influence on the person’s functional abilities and can be passed down as it is a disease linked to genetics.</li><li><strong>Kennedy’s disease:</strong> Inherited neuromuscular disease that causes progressive weakening of the muscles, mainly in the arms and legs. Other symptoms are usually severe cramps and difficulty with speaking and swallowing.</li><li><strong>Spinocerebellar Ataxia: </strong>Degenerative changes in the part of the brain related to movement (cerebellum) and sometimes in the spinal cord. Symptoms are related to difficulty in walking, swallowing, speaking, and often severe cramps with muscle stiffness.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*BN0_tEasHQtyDKmA1Si-Ig.png" /></figure><p>Neurogenetics lays the foundation for us to deeply understand how the brain works, and functions related to the brain. As scientists understand more about neurogenetics, they can begin developing cures towards genetic (inheritable) diseases. Rewriting DNA is quickly being caught upon by many people around the world, and it could be used to cure neurogenetic disorders.</p><p>However, many individuals aren’t aware of the underlying truth that comes with rewriting DNA. It’s capable of more than just mending different faulty genes. Gene editing has led to a loss of chromosomes, or even big chunks of it, and many other problems while attempting to rewrite one single gene code. This has led scientists to state that it’s too unsafe to try, as a lot of these problems can commonly occur and this can affect a vast majority of people.</p><p>To conclude, as we go further into neurogenetics, we can begin to understand a lot more about genetics and even try to devise cures for some genetic diseases by alternative methods.</p><p>This was originally written on February 28th, 2022.</p><p>References</p><p>“Advances in Neurogenetics Opens Window to Rare Neurological Conditions.” <em>UCLA Health: Center for High Quality Health Care Services</em>, <a href="http://www.uclahealth.org/physiciansupdate/advances-in-neurogenetics-opens-window-to-rare-neurological-conditions">www.uclahealth.org/physiciansupdate/advances-in-neurogenetics-opens-window-to-rare-neurological-conditions</a>.</p><p>“Kennedy’s Disease.” <em>Better Health Channel — Better Health Channel</em>, <a href="http://www.betterhealth.vic.gov.au/health/conditionsandtreatments/kennedys-disease">www.betterhealth.vic.gov.au/health/conditionsandtreatments/kennedys-disease</a>.</p><p>NHS. “Ataxia — Types.” <a href="http://nhs.uk/"><em>Nhs.uk</em></a>, 20 Oct. 2017, <a href="http://www.nhs.uk/conditions/ataxia/symptoms/">www.nhs.uk/conditions/ataxia/symptoms/</a>.</p><p>Press, Associated. “Lab Tests Show Risks of Using CRISPR Gene Editing on Embryos.” <em>STAT</em>, 29 Oct. 2020, <a href="http://www.statnews.com/2020/10/29/lab-tests-show-risks-of-using-crispr-gene-editing-on-embryos/">www.statnews.com/2020/10/29/lab-tests-show-risks-of-using-crispr-gene-editing-on-embryos/</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ca30003de23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reimagining Rehabilitation: The Impact of Brain-Computer Interfaces on Motor Functions]]></title>
            <link>https://medium.com/@1075239/reimagining-rehabilitation-the-impact-of-brain-computer-interfaces-on-motor-functions-74f253586645?source=rss-75fbc6d1cc71------2</link>
            <guid isPermaLink="false">https://medium.com/p/74f253586645</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Abhiram Ruthala]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 01:37:25 GMT</pubDate>
            <atom:updated>2023-10-19T13:05:53.637Z</atom:updated>
            <content:encoded><![CDATA[<p>Picture yourself in this scenario:</p><p>You were in the midst of a basketball game, and while you weren’t looking around, someone ran head-first into you, causing you to fall on the ground with a blow to the brain. You go unconscious.</p><p>After a few minutes, your coach and your teammates are surrounding you, checking if you’re okay. You’re trying to tell them you’re fine, but you stutter when you speak and you have a lot of grammatical errors. Your teammates don’t understand you well but know that you’re trying your best. You’ve just suffered damage in your Broca’s Area (The part of the brain that deals with speech production).</p><p>How does this scenario make you feel?</p><p>Not great, right? If you felt something else, here’s another scary scenario.</p><p>You’re the leading linebacker on the Pittsburgh Steelers (A NFL Team based in Pennsylvania) and you go in to tackle the Wide Receiver who has just received possession of the football. You run in headfirst and clutch the tight end by the chest, bringing him down. After the tackle, you’re on the ground, unable to move your legs. You’ve just suffered a spinal contusion in the lower back.</p><p>Imagine not being able to move your legs. Pretty scary, right?</p><p>And to top it off, this is a real story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*91pMrpzlIpmEReC1" /><figcaption><em>Pittsburgh Steelers Linebacker Ryan Shazier (#50) is carted off the field after a spinal injury.</em></figcaption></figure><p>This is not to say that these injuries can only happen in sports. These can happen anywhere, and it’s based on the prevalent circumstances. Surprisingly, spinal cord injuries are more prevalent outside of professional sports that deal with it.</p><p>For Ryan Shazier, the recovery period consisted of a lot of stress and frustration. He had to work to reframe the injury because this wasn’t your typical football injury. He’d create smaller positive moments to establish “progress” while in rehab, which he did for 2 hours a day, 5 days a week. He used this as a way to eliminate the stressors and focus on regaining activity. Exactly 2 months after the injury, he walked with assistance from a cane. After 4 months he walked onto the NFL Draft Stage. And on May 3rd, 2019, he danced with his wife, Michelle Rodriguez, at their wedding.</p><p><a href="https://www.today.com/news/nfl-player-ryan-shazier-dances-his-wedding-17-months-after-t153613">Watch NFL player dance at his wedding 17 months after spinal injury</a></p><p>Now this dealt with a lot of rehabilitation work to allow the brain to naturally send signals down to the body, which took about 6 months. He only relied on this as his method to get back to walking, which had taken a toll on his daily life and routine. He didn’t use Brain-Computer Interfaces in his recovery, as they weren’t widely available at the time of his injury. However, BCIs have emerged as a revolutionary technology in recent years, allowing individuals such as Ann Johnson to make remarkable progress in communication and movement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/0*7tWFarvbuDa9RsLn" /></figure><p>This is Ann Johnson. When she was 30 years old, she suffered a stroke that gave her the Locked-In Syndrome (LIS). Her speech production is fully damaged, and she is paralyzed from the neck down.</p><p>Just a month ago, she was able to “speak” to her loved ones with her brain signals and particular facial movements (Notice the brain implant on her head). The system made predictions based on such data and produced it using an avatar of her speaking. She was wired to the system and the data was taken directly from the brain.</p><p><strong>How does this work?</strong></p><p>BCIs (Brain-Computer Interfaces) are at the root of this groundbreaking solution. BCIs meld a computer with a person’s brain, allowing researchers to track the data of the brain in real time. By placing electrodes either on the scalp or in the person’s brain, researchers can send in electrical signals, manipulate the magnetic activity, and help create wireless connections between the brain and the particular body part.</p><p>Firstly, we’ll have to know why brains would require magnetic or electrical activity, or why brains even have them in the first place. Here’s a quick 101 about the brain’s activity.</p><p>Our neurons consist of dendrites and axons. The dendrites receive the messages from incoming neurons through their receptors, and the axons send the signals out of the cell to other neurons through their terminal branches. The dendrites receive messages through neurotransmitters, which bind to the receptors, transmitting a chemical message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/0*Pk9b6TPYFj3QIPKW" /></figure><p>The dendrites receive the message from an adjacent neuron. This is processed into an electrical message that is sent out through the axon terminal.</p><p>The reason that electrical signals are being fired is because of the distribution of the ions within the neuron (Which makes the electrical signal also a chemical signal). When these neurotransmitters bind to the receptor, ion channels are opened, and this allows ions (Positively or negatively charged ions) to flow through. Considering the number of dendrites in the cell, there are a lot of ion channels that open, allowing for an influx of tons of ions. When a neuron is in action potential, there are more positive Sodium ions entering the cell, allowing it to reach the required charge to send the message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*-P1JwWqZsqor09mP" /><figcaption>The green region is when the neuron is at its action potential. The sodium ions are flowing into the cell, allowing it to gain a net positive charge.</figcaption></figure><p>After an action potential, the ion distribution is reset, with the cell gaining a net negative charge after the positive Sodium ions are cast out of the cell. This is the neuron’s resting phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/0*eoUuYb3y8sTCUusT" /><figcaption>The yellow region is when the neuron is at its resting potential. It is gaining a net negative charge so the membrane potential decreases.</figcaption></figure><p>BCIs technically build a “communication bridge” between the human brain and the external world by manipulating this ion distribution and movement. It allows people to control the movement and function of external devices using their brain. For example, warfighters might be able to control their war drones hands-free as a result of BCIs, allowing disabled war troopers to help out.</p><p>As a result of this electrical firing, magnetic environments are created within the brain, which are specific to varying source characteristics. There can be weaker magnetic activity in one neuron and greater in the other neuron, and this would be dependent on if the neuron is firing, the spread of the neurotransmitter, and the level of brain tissue (micro, meso, or macroscales of generation) among other sources.</p><p>This improves human-computer interactions as well. Think of it as your external and controllable corpus callosum!</p><p>For instance, researchers at the University Of Texas at Austin have recently utilized BCIs on a VR headset to track brain activity during immersive VR games. This includes games such as driving, and jumping off highboards, among others. This allowed them to predict what the participants would do in a real-life situation by simulating it with a BCI so that the correct precautions could be taken. This allowed the participants to create interactions with a computer and control the movement of devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/0*WeD_DniObVzLT-Ll" /><figcaption>Nanshu Lu, professor at The University of Texas at Austin Biomedical Engineering , utilizes the Meta VR headset while playing a driving game to track brain activity.</figcaption></figure><blockquote><em>“It gives the user a more realistic experience, and our technology enables us to get better measurements of how the brain is reacting to that environment ” — Nanshu Lu</em></blockquote><p>To be honest, that’s as close as I can get to really swinging like Spider-Man. I’d honestly get the feeling of puking after every somersault and swing. <em>How does Peter Parker do that? </em>Anyways, back to the topic.</p><p>The UT Austin researchers mapped out the brain activity while people were in the immersive environment through an EEG system. <em>What’s that? </em>you may ask. This is the mapping technology that researchers use within BCIs to accurately get the data and encode it into something that the computer can read.</p><p>BCIs have a lot of applications but are no good if the mapping technology doesn’t accurately get the data. Here’s a comprehensive list of the different brain mapping techniques, and their certain functions that make them distinguishable.</p><ul><li><strong>EEG — </strong>Electroencephalogram (EEG) is a non-invasive (Nothing is implanted into the brain) technique that utilizes sensors on the scalp of the participant’s head to measure brain wave activity and electrical shifts in the brain. This would be optimal when trying to measure neural firing and sleep.</li><li><strong>PET — A </strong>Positron Emission Tomography (PET) Scan injects a small amount of radioactive glucose into the body so that researchers can map out how that glucose is being used by the brain. This is usually used to diagnose diseases, which range from heart diseases, tumors and other brain-related disorders.</li><li><strong>CT — </strong>A Computer Tomography (CT) Scan combines multiple X-ray images from different angles of your body and uses computer processing to create cross-sectional images of these different body parts. It’s used to help people who’ve had a lot of internal injuries or trauma.</li><li><strong>fMRI — </strong>The functional Magnetic Resonance Imaging (fMRI) scan helps with identifying which parts of your brain are the most active. You can correlate this information to what you were doing at that time to see which parts of your brain “light up” while you do that activity. It’s mostly used for planning surgeries or other similar procedures that would involve the brain and its functionality.</li><li><strong>MRI — </strong>The Magnetic Resonance Imaging (MRI) scan also uses the brain’s magnetic activity to investigate or diagnose conditions that usually affect soft tissue. The parts of the brain and muscles are seen a lot more clearly with MRIs than X-rays, making it a suitable tool to identify the parts of the brain.</li></ul><p>These techniques allow researchers to experiment and work around different conditions, with specific techniques for each one. Thanks to this, we can conduct sleep research, operate things with our brains, and create better applications for best-use case systems.</p><p>With all these mapping techniques come numerous applications and advantages of BCIs:</p><ul><li>Assistive technology: BCIs can control devices, allowing users to operate computers, wheelchairs, and other assistive technologies using only their thoughts.</li><li>Neurorehabilitation: BCIs are used in neurorehabilitation to enhance recovery from brain injuries and stroke by providing real-time feedback to patients.</li><li>Research and Diagnostics: BCIs help researchers study brain activity and diagnose neurological conditions by interpreting and monitoring neural signals and impulses.</li><li>Cognitive Enhancement: BCIs can be utilized to identify and even enhance cognitive abilities, such as attention, memory, and learning. These can be employed to create systems that can allow people to work to their capabilities in cognitive functions.</li></ul><p>These advantages pose a dual phenomenon, allowing people to use their brains to program something, while researchers measure people’s activities.</p><p>This makes me think that even something as sci-fi as Darth Vader using the force can become a reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/0*kRdV8ZvXgy1G6E4U" /></figure><p>Having discussed the advantages of BCIs, it’s important to delve into how these technologies are being harnessed for the benefit of humanity. Let’s see how it worked for Ann Johnson:</p><ul><li>Ann’<em>s </em>stroke damaged the brainstem of her brain, especially the Pons region. The brainstem is very important for the connection between her brain and spinal cord, and it also helps with involuntary body functions (Heart rate, digestion, breathing, etc.). This stroke caused her to lose most of her motor function and her speech production as well.</li><li>In Ann’s case, an invasive BCI system was rooted deep into the brainstem of the brain. This would decode brain signals into full words that would appear as text on a screen.</li><li>The system helps capture neural activity, where advanced algorithms help process these signals. This is what allows the researchers to identify Ann’s brain activity and interact with it.</li><li>The researchers created advanced algorithms that helped process the brain signals and facial movements into predicted speech, which was displayed on a computer for the receiving person in the conversation to see. They also added an associated avatar to mimic the predicted speech that was decoded from the brain signals.</li></ul><p>Now, while still going through ongoing treatments, Ann’s journey demonstrates the potential and exciting advancements coming to this field. Her journey is a testament to the numerous advancements of BCIs.</p><p>When I built one of my first Github projects, titled ‘<a href="https://github.com/AbhiramRuthala/CuriosityIndicator">CuriosityIndicator</a>,’ I thought I was helping the world by knowing how to attempt to track curiosity (Alright maybe not that bold, but I was still super stoked). Curiosity is super subjective, and being able to try to track that, is what I thought was out of this world. Once I found out about all the other advancements happening to BCIs, such as prosthetics and newer communication systems, my mind was blown. Take a look for yourself:</p><ol><li><strong>Neuralink</strong></li></ol><p>Founded by Elon Musk, Neuralink aims to develop advanced BCIs to enable direct communication between the brain and external machines. They have been actively working on implantable brain-computer interfaces and look toward human trials for it as well.</p><p>A key system that they developed was Link (Neuralink V2).</p><ul><li>This was a smaller, more refined version of their original implant known as Link. This was devised to be less invasive and more durable, allowing for higher data transfer rates and allowing for bidirectional communication. This has potential for various applications, including control of external technologies and assisting individuals with neurological conditions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*owOm63JPSzKbcz1D" /><figcaption>Above is Neuralink V2 and how it’d look inside a machine.</figcaption></figure><p><strong>2. Kernel</strong></p><p>Kernel, led by Bryan Johnson, is focused on building neuroprosthetics and BCIs. They are working on non-invasive and invasive technologies to address neurological conditions and enhance human capabilities.</p><p>Their main focus, being on better data and precision neuroscience, allows them to create state-of-the-art technology to deal with biological issues that directly correlate to the brain. This would help accelerate treatment discovery and adjustment, improve patient outcomes, and transform the neuro medicine industry. This is one of their precision technology that helps with understanding the data transfer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*xuMPlTZ0ep48h3A1" /><figcaption>This is one of Kernel’s technologies for precision neuroscience and data delivery. This can help transform treatments and remediations. Credit: <a href="https://www.nextbigfuture.com/2023/02/kernel-brain-computer-interface-and-general-bci-technology-overview.html">Next Big Future</a></figcaption></figure><h3><strong>Putting a BCI to the test</strong></h3><p>Now that you know the relative ins and outs of BCIs, let’s see how they can potentially be used to help with motor dysfunctions. Going back to scenario 2 (Ryan Shazier’s injury), let’s look at how a BCI might be used to help him diagnose the condition and regain his motor functions, with shorter and more efficient rehab.</p><p><strong>Step 1: Diagnosis through brain mapping</strong></p><p>Firstly, the spinal cord has a natural curvature. When Ryan went to tackle the player, his position caused him to straighten up the spinal cord, causing it to take on heavier stressors and loads than what it’s used to. As a result, Ryan suffered an injury in the <em>Lumbar Vertebrae </em>of his spinal cord. This part of the spine helps with sensory information and voluntary motor functions in his legs. As a result of the injury, no sensory information from the legs can be processed by the brain, and no voluntary motor functions can be conducted by the legs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*8GLxCLpbAq5_-GBW" /><figcaption>The Lumbar (5) is the region of the spine where Ryan got injured. Credit: <a href="https://teachmeanatomy.info/back/bones/vertebral-column/">Teach Me Anatomy</a></figcaption></figure><p>As a result, an fMRI scan would be plausible to identify the type of contusion he faced by mapping out the function of the brain in real time concerning the flow of blood within the body. Because his legs are paralyzed, the body has lost control over the blood vessels, which causes them to widen. This would cause the blood to collect in other parts of the body that don’t necessarily require it. There would be a significant drop in blood flow when looking at the fMRI scans on his brain and sensory information to his legs. This is what the fMRI should not be able to detect:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*H1wXUIaY2m-pU5fu" /><figcaption>The fMRI wouldn’t be able to detect activity in the toes, knee, leg, and hip region as shown by the homunculus above. Credit: <a href="https://www.britannica.com/science/homunculus-biology">Britannica</a></figcaption></figure><p><strong>Step 2: Regular EEG Testing</strong></p><p>With the current state of EEGs right now, it is plausible for him to take regular EEG tests to identify shifts in electrical and brain wave activity at the affected brain regions. This process of neurorehabilitation will enhance the recovery process and allow patients to learn more about their condition. This will allow him to track progress and have his doctor adjust treatments based on real-time data.</p><p><strong>Step 3: Creating wireless connections</strong></p><p>With consent from Ryan, brain implants will be placed in his motor and somatosensory cortex, with wireless receivers in his lumbar vertebrae. In that way, the thought of him moving will stimulate electrical activity, which then sends wireless signals in the form of sensory-motor feedback through and from his brain and spinal cord, allowing his legs to regain function quickly and adaptively. Simply, the brain implants are allowing the neurons to send impulses in areas that they couldn’t because of the paralysis.</p><p>In what we can call a “digital bridge,” these implants do so much more than just regain electrical communication and function. With the brain getting used to these new forms of electrical communication with the body, it rewires, allowing Ryan to do certain movements with his legs with the implant turned off. In the early days of treatment, these new nerve connections would require the support of a cane or crutches to allow him to walk without the implant’s influence.</p><p><strong>Step 4: Rehab and Training</strong></p><p>With these new electrical connections, Ryan would have to get used to thinking about the movement in certain ways so that the artificial algorithms can process it to send that signal to the Lumbar Vertebrae. This would have Ryan under supervision for a good amount of time, but it wouldn’t take long for him to get used to it as it is only for the legs.</p><p>And here’s our patient:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/0*pvrT4kJ7Tf_97Myi" /></figure><p>Looking fresh, right? Just like nothing ever happened.</p><p>(Note that this is how BCIs would regain function for the person considering their condition. This would have a lot of ethical concerns that I did not mention for the sake of this demonstration.)</p><p>As this technology continues to advance, the boundaries between human and machine interaction will become non-existent, and it’s only a matter of time before we consider both the possibilities and the questions about the evolution of this technology.</p><p>And a Star Wars dream of using the force.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74f253586645" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>