<?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 Niqat Karovalia on Medium]]></title>
        <description><![CDATA[Stories by Niqat Karovalia on Medium]]></description>
        <link>https://medium.com/@niqat.karovalia?source=rss-6a0823038e5c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ux1Drycp_ezxPGt3tyzdmw.jpeg</url>
            <title>Stories by Niqat Karovalia on Medium</title>
            <link>https://medium.com/@niqat.karovalia?source=rss-6a0823038e5c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:19:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@niqat.karovalia/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[Using Machine Learning to Predict Blinking | The Marvelous World of BCIs]]></title>
            <link>https://medium.com/@niqat.karovalia/using-machine-learning-to-predict-blinking-the-marvelous-world-of-bcis-f08210cbb4ad?source=rss-6a0823038e5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f08210cbb4ad</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <category><![CDATA[emerging-technology]]></category>
            <category><![CDATA[neurotechnology]]></category>
            <dc:creator><![CDATA[Niqat Karovalia]]></dc:creator>
            <pubDate>Thu, 05 Jan 2023 18:37:44 GMT</pubDate>
            <atom:updated>2023-01-05T18:37:44.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I8aQ3UvFHB9w3u_HDC4B5w.png" /></figure><p>Brain Computer Interfaces is a fascinating field of technology that is rapidly growing day by day. BCIs can be used to accomplish incredible tasks that otherwise have been thought to be impossible.</p><p>However, like in most fields and topics, BCIs too, have their issues that make it difficult for researchers to reach the full potential of this technology.</p><p>In this article, we will use a software to create a Machine Learning model that will allow us to solve a primary obstacle that is faced in this field.</p><p><strong>The Issue</strong></p><p>One of the most problematic aspects of utilizing BCI technology is the artifacts that interfere with valuable data. Artifacts are essentially noise that makes it’s way into data and causes inaccuracies and difficulties analyzing and making use of data.</p><p>For example, when you are on a video call with a lot of people, you will often experience noise or feedback, which is outside audio interfering with the speech of one of the participants in the meeting. This would prevent you from deciphering what the person is saying. So in our case, the person talking is the valuable information in the dataset, and the feedback is the artifacts!</p><p><strong>Getting Started</strong></p><p>In order to make use of data, you must remove or minimize artifacts. We can do this through the assistance of Machine Learning. Machine Learning is a form of Artificial Intelligence that utilizes data obtained from past experiences to better their own programs and algorithms without the need for any manual coding.</p><p>In this project I used Microsoft Machine Learning Studio to process and filter out artifacts from a dataset I obtained through the University of California Irvine’s (UCI) Machine Learning Repository.</p><p>Luckily, <a href="https://studio.azureml.net/">Microsoft Machine Learning Studio</a> is free for use and therefore can be accessed by anyone! To begin with this software, just create an account, or log into an existing account.</p><p>Next, download the <a href="https://archive.ics.uci.edu/ml/datasets/EEG+Eye+State">EEG Eye State Data Set</a> from the UCI Repository as a .CSV file.</p><p>At this point you can choose to name the columns like I did. I assigned the name ID to the patient number and consecutive letters of the alphabet to the electrode readings. After this step is done, I started the main process of creating the machine learning model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*zoYRZZR-Rrt51JICYetp-g.png" /><figcaption>We can see at the very top of the image, the method I used for naming each column.</figcaption></figure><p>Now after we have altered out data we can save it as a block. At this point I excluded the whole ID column from the data and set the value of all zeros to NaN. The data doesn’t include zeros, however this is just for good measure.</p><p>To begin, select all columns in the column selection settings, but exclude the ID column. Then, attach the “Clean Missing Values” block to the selected columns and leave it at the default settings. This will allow you to clean missing values from your data set, while ignoring the ID column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_HZP2H5XeGLBsAufiFwIrQ.png" /></figure><p>To proceed, split your data into training and testing sets by adding a “Split Data” block to your workspace. Set the “Fraction of Rows Split” to 0.75. Then, choose a machine learning model that is suitable for your needs. This will allow you to train and test your model on a portion of your data, and use the remaining data to evaluate its performance.</p><p>To proceed, add a “Train Model” block to your environment and connect it to the output of the “Split Data” block. Set the “Label Columns” setting of the “Train Model” block to the variable containing the actual values of your data set, which are represented as the zero and one states. This will allow you to train a machine learning model on your data, using the actual values as the labels.</p><p>The evaluate the performance of our model we will use the “Score Model” and “Evaluate Model”. To complete the process, connect the output of the “Train Model” block to the input of the “Score Model” block, and then connect the output of the “Score Model” block to the input of the “Evaluate Model” block. This will allow you to use your trained model to generate predictions for your data, and then evaluate the performance of the model based on these predictions.</p><p>Congratulations! You have now created your own machine learning model to filter out artifacts from EEG data. In order to see the statistics of your model, such as the accuracy, follow the next few steps. Select the “Evaluate Model” block and double click. Hover over the “Evaluation results” button and select “Visualize” from the pop up menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziaqfH9hVainNRqwyuDYxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZldInoRA5TabCE4frvAGQ.png" /><figcaption>Here we can see a 91.6% accuracy in our model.</figcaption></figure><p><strong>Conclusion</strong></p><p>Artifacts can be a big issue in the world of BCI data. They can be difficult to get rid of, in turn reducing the usability of datasets that took time and effort to collect. However, through processes like the one we performed in this article, we can actively reach towards a better future for the field of Brain Computer Interfaces.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f08210cbb4ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner’s Guide to Non-Invasive BCIs]]></title>
            <link>https://medium.com/@niqat.karovalia/beginners-guide-to-non-invasive-bcis-43e26c92ebf5?source=rss-6a0823038e5c------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e26c92ebf5</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Niqat Karovalia]]></dc:creator>
            <pubDate>Thu, 27 Oct 2022 00:38:47 GMT</pubDate>
            <atom:updated>2022-10-27T00:38:47.871Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wanted to learn about the wonderous world of Brain Computer Interfaces? Been too intimidated and didn’t know where to start? Welcome, meet your best friend when it comes to starting your journey to learning about BCIs!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*3izqhZqheGcDztQy" /></figure><p>Mind control, mind reading, telekinesis etc. All of these are just superpowers out of a sci-fi movie, right? Wrong. All of these are <em>real </em>concepts, brought to life by the incredible rising technology called, Brain Computer Interfaces, or BCIs for short.</p><p>BCIs are a type of Neurotechnology that aim at providing a way to connect data collected from a subject’s brain to a computer or machine-based output. They are being incorporated more and more into fields aside from just technology, such as medicine and gaming/entertainment! 🧬🎮</p><p>Though BCIs can be an intimidating topic to begin exploring, this article will provide you will basic information needed to begin your journey into the wonderous world of BCI technology!</p><h3>Overview</h3><p>As mentioned above, the main job of BCIs is to serve as a way to connect a person’s brain, to a computer or machine. Think of it like a bridge that connects two sides of a river! On one side is the subject’s brain, and on the other is the machine or computer into which data is being outputted!</p><p>In general, there are 3 main types of BCIs:</p><ol><li>Non-Invasive BCIs</li><li>Semi-Invasive BCIs</li><li>Invasive BCIs</li></ol><p>In this article, we will focus on the most common form; non-invasive.</p><h3>Intro to Non-Invasive BCIs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bVfhxekawP7ft_Hz.png" /></figure><p>Non-invasive BCIs are the most commonly used form of BCIs as they do not require surgeries to implant electrodes, and are instead used in the form of headsets, caps and other wearable designs.</p><p>Electrodes are the small devices that cover the wearable headsets and are responsible for tracking and collecting all of the brain activity and data.</p><p>Within the category of Non-invasive BCIs, there are <strong>recording </strong>and <strong>imaging </strong>technologies.</p><h4>Recording Technologies</h4><p>There are multiple different types of recording technologies that are all used to collect data on brain activity, but all use different methods to do so.</p><p><strong>EEG Technology</strong></p><p>EEG technology, short for Electroencephalogram, is the most commonly used method when it comes to Recording technologies.</p><p>In order to understand how exactly these technologies work, you first need to briefly understand how the signals in the brain are produced. Each part of your brain is responsible for different tasks. E.g., the Occipital lobe is responsible for visual processing, frontal lobe is motor functions and more! 🧠</p><p>Within our brain, there are neurons. They are cells that are responsible for managing electrochemical signals/messages. When you think really hard, a lot of neurons fire up, meaning that a lot of signals are sent amongst them. Furthermore, when a specific part of the brain is being used actively, more neurons will fire up in that region, resulting in more electrochemical reactions!</p><p>So, going back to our topic on EEG technology, the electrodes pick up on these miniscule electrical signals that are sent amongst neurons, and collect them in the form of data.</p><p>After the electrodes have successfully obtained the data, it is then amplified and processed by either a hardware in the headset, or by a software later on. All this data is then complied and sent to a computer or machine, to be utilized. This can mean that the data is stored, applied or sent to another device.</p><p>Often, we see that this data that is collected appears in the form of “squiggly” and “spiky” lines, brainwaves!</p><p>Neuroscientists have found 5 major patterns/categories in brainwaves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*SWhgx5P4UqVX8TZ1.png" /></figure><p>When we look at the image above, we observe that the waves showcased in the delta region are large, long “swoops”. This indicated a decreased presence of brain activity. If a person is actively thinking very hard about something, a lot of neurons are firing up quickly, resulting in a lot of them cancelling out, as seen in the gamma brainwaves.</p><p>Now, let’s discuss the ways in which the data collected can be applied. One of the most widely used being in medicine. It can be used to detect seizures, tumors and much more.</p><p>BCIs have been often used on epileptic patients to monitor their brain activity. One of the most common symptoms of Epilepsy is the occurrence of seizures. When the patient experiences these, their brainwaves show abnormalities, and alert the doctors.</p><p>Another use of the data collected through EEG technology is to detect patterns of waves that indicate the occurrence of a certain movement. Essentially, the data that is collected can be fed to a computer algorithm that uses <strong>machine learning </strong>to assign patterns in brainwaves to particular actions. For example, you could hook up a person to a BCI and record the brain activity as you have them repeatedly perform the same action, like moving their right arm. Looking at this data, the computer could then recognize the particular pattern that occurs when a person moves their right arm, and be able to identify this pattern in another, unfamiliar dataset.</p><p>Pros:</p><ul><li>High Temporal Resolution</li></ul><p>→ Temporal Resolution: Measure of how long it takes to collect and make use of data from a system.</p><ul><li>Can be used for long periods of time to monitor subject</li><li>Variety of potential applications</li><li>Relatively low cost</li><li>Portable</li></ul><p>Cons:</p><ul><li>Very susceptible to noise</li></ul><p>→ Noise: Referring to the outside signals that are picked up by the electrodes that interfere with the brain data being collected.</p><ul><li>Poor spatial resolution</li></ul><p>Spatial Resolution: Measure of the smallest area that can be covered by a single sensor.</p><p>EEG tech has poor Spatial Resolution because of the biological layers that interfere with the connection between the electrodes and the signals that it is trying to sense. (E.g., hair, skin, bone etc.)</p><p><strong>MEG Technology</strong></p><p>Okay, so now let’s discuss another one of the technologies used in non-invasive BCIs. Remember how we discussed that EEG technology uses electrodes that pick up on electric fields produced by signals from neurons? Well, MEG technology is very similar, except, it measures the brain’s magnetic field, rather than the electric field. It also has a better spatial resolution in relation to EEG, but still maintains high temporal resolution.</p><figure><img alt="Image of a MEG device" src="https://cdn-images-1.medium.com/max/800/0*BE3fOs_zT-lG-MTL.jpeg" /></figure><p>When using MEG, scientists ran into a lot of issues with noise. There was a lot of interference caused by the subject’s eye movements, heartbeats, and even the Earth’s magnetic field! 🤯</p><p>To avoid running into issues with inaccurate data, they discovered a way to reduce the noise with a new an improved version of MEG technology; OP-MEG. It’s essentially a portable device that uses MEG technology but is significantly less susceptible to undesirable noise.</p><p><strong>fNIRS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DK2RUR-tTFjLwljZ" /></figure><p>Another of one the well-known non-invasive technologies are Functional Near-InfraRed Spectroscopy, or fNIRS.</p><p>Okay, so, when the neurons in your brain work really hard, they need energy to replenish themselves. To do this, they require oxygen. This means that the optodes that are placed throughout the wearable headset detect the oxygen levels of certain parts of the brain. Optodes are like electrodes, but for fNIRS technology. Electrodes measure electrical field, while optodes measure oxygen levels.</p><p>Okay…But <em>how</em> do they detect the oxygen levels in the brain? Well, fNIRS uses LEDs to project Near Infrared light! While regular light barely penetrates the human body, Near InfraRed light can penetrate, skin, muscles and bones! 💪🦴</p><p>Now, as you can imagine, this is very useful when it comes to detecting the brain activity, that is interfered by a multitude of biological layers. The light can go past the hair, skin, tissue and the skull!</p><p>So, when certain parts of the brain require oxygen, it is brought to them through oxygenated blood. Oxygenated blood absorbs the light that is passed through the skull and “bounces” back out. This light is then detected by the sensors and the initial amount of light passed through is compared with the amount of light that was returned to measure how much oxygen was present in that part of the brain, that absorbed the light.</p><p>Therefore, the higher the oxygen levels in a certain area of the brain, the more brain activity that occurred in the last few seconds. Vice versa.</p><p><strong>ENG &amp; EMG Technology</strong></p><p>ENG and EMG technologies are both functionally pretty similar. EMG measures the movement in the muscle, while ENG measures nerve signals. Though invasive forms of both exist, non-invasive forms are more commonly used. EMG has many uses such as moving prosthetics to replicate movement of the subject’s arm, and to clinically measure muscle activation.</p><h4>Imaging Technologies</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0bKQRN2zlZm1Otyq.jpg" /></figure><p>Neuroimaging, also known as brain scanning, refers to utilizing various technologies to image the structure and function of the brain. Neuroimaging is a way for neuroscientists to observe and study subjects’ brains with inflicting little to no harm upon them.</p><p><strong>Structural Imaging</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gghfNC-cUu21ReQG.jpg" /></figure><p>Structural imaging is a method that allows for the physical structure of the brain to be visualized. Common examples of structural imaging would be MRI and CT/CAT scans. These scans assist the doctors in identifying physical abnormalities such as tumors that pose a risk to the patient’s health. However, though useful, structural imaging does not allow you to study the <strong>function</strong> of the brain, only appearance.</p><p><strong>Functional Imaging</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*JfO0lQ_qUG4Sc4sZ" /></figure><p>Functional imaging refers to the use of neuroscientific tools to study fluctuations in brain functionality when engaging in specific tasks. Functional MRI (FMRI) measures the changes in blood flow through different regions of the brain. The blood flow changes depending on the different activities and tasks that are performed.</p><p>Essentially the idea is that when a certain part of the brain is being used, the neurons require an increased amount of energy, resulting in increased blood flow to that area.</p><p>Once the information is collected through a FMRI scan, it can then be laid on top of the 3d model created from the MRI scan. This would allow us to look at the relationship between location and function of the brain.</p><p><strong>PET Technology</strong></p><p>PET technology measures the levels of glucose in the brain to determine where neurons are firing up. This method works because active neurons require glucose to fuel themselves. Another segment of the scan requires tracker substance to be injected into the subject. So, when a certain part of the brain is active, the blood that contains the tracker fluid is sent to that part. Then, detectors collect data regarding which sections were active, and this data can be laid on top of a structural model.</p><p>Though it can be useful in certain aspects such as diagnosing patients with Alzheimer’s, PET technology is not used very often as the fluid it requires to be injected, can often prove to be injurious. Not only this, but only generalized areas of the brain can be tracked, meaning that it has poor spatial resolution, and it is also quite expensive.</p><h3>Summary</h3><p>Brain Computer Interfaces are a Neurotechnology that are quickly on the rise to dominating many fields and careers. With their versatility in terms of application, they can be useful in the gaming and entertainment field, as well as the medical field, to better people’s lives and provide a safe, and efficient way to bridge the gap between our brains, and our reality!</p><p><strong>Work Cited</strong></p><p>“Non-Invasive Neurotechnology — Lesson 5.2.” <em>YouTube</em>, 4 Apr. 2021, <a href="https://youtu.be/fctIoQKw8zk.">https://youtu.be/fctIoQKw8zk.</a> Accessed 26 Oct. 2022.</p><p>Admin. “What Are the Advantages and Disadvantages of an EEG?” <em>MassInitiative</em>, 24 Feb. 2020, <a href="https://massinitiative.org/what-are-the-advantages-and-disadvantages-of-an-eeg/">https://massinitiative.org/what-are-the-advantages-and-disadvantages-of-an-eeg/.</a></p><p>“7 Leading Brain-Computer Interface Companies and Their Current and Prospective Products.” <em>Ross Dawson</em>, 25 July 2022, <a href="https://rossdawson.com/futurist/companies-creating-future/leading-brain-computer-interface-companies-bci/">https://rossdawson.com/futurist/companies-creating-future/leading-brain-computer-interface-companies-bci/.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e26c92ebf5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>