GithubHelp home page GithubHelp logo

mne-project's Introduction

Diving into the depths of neuroscientific data analysis can often feel like venturing into a Halloween haunted house – full of surprises and unpredictable twists. Such was the case on October 31, 2023, as I embarked on a personal experiment that extended beyond the realms of candy and costumes. I decided to use myself as a test subject to explore the intricate workings of my brain under certain conditions, using the MUSE headset to collect EEG data. The day was carefully chosen; the aftermath of the pre-Halloween festivities had left me sleep-deprived, and my work schedule (a shift from 11 am to 7 pm) only compounded my fatigue.

I decided to analyze how my tired mind would react to a hefty dose of caffeine, around 600-650 mg, which I had consumed to push through my workday. Coupled with the stress that naturally accompanied such a hectic schedule, I was curious to see how these factors would manifest in my EEG readings. I had a hunch that the day's circumstances might even induce some minor epileptic activity detectable by the sensitive electrodes of the MUSE headset.

After the data collection, the file mindMonitor_2023-10-31--20-11-02_4625240158191494507.zip became the raw representation of my brain's electrical symphony – or cacophony, as it were. However, when I attempted to refine this data, I encountered a series of obstacles that would challenge my analytical resolve.

The first hurdle appeared when errors kept cropping up in MNE, a software for visualizing and analyzing electrophysiological data. I realized that the root of these issues lay in the quality of my data. Since the MUSE headset is essentially the mind's equivalent of a FitBit, there was a significant amount of 'noise' – extraneous data that could distort my results. My initial attempt to cleanse the data involved SQL in the Visual Studio Code environment. Unfortunately, my patience wore thin with the cumbersome process, and the lack of time made downloading SQL Server Management Studio (SSMS) on my current setup an impractical option.

Salvation came in the form of my partner's computer, which had SSMS already installed. With a quick file transfer, I hoped to utilize their system to decontaminate my data. This collaborative effort resulted in mindMonitor_2023-10-31-updated.csv, a marginally less noisy version of my initial data.

Yet, perfectionism drove me to seek out even more refined methods of data cleanup. I stumbled upon the sklearn.impute with its SimpleImputer functionality. This technique provided a more elegant solution to eliminate the NaNs and other erroneous values that plagued my dataset. The result was mindMonitor_2023-10-31-amended.csv – a testament to the power of machine learning in data preprocessing.

To contrast my data with a benchmark of clarity, I turned to MNEControlcomparison, a library of pristine M/EEG data from a controlled environment. This repository contained records of small events that served as a gold standard for what clean data should resemble. I was keen to compare the squeaky-clean datasets from this library with my own recordings – to see how my environmental and physical conditions might have influenced my brain's electrical activity.

The process was meticulous: I read the CSV files, converted them into the .fif format preferred by MNE, set the appropriate bandpass filters, and visualized the data. The culmination of these steps was laid out in the main file, which also included a series of unit tests to ensure the integrity of my analysis.

When the time came to compare the plotting outputs between my data and the control, the results were as compelling as they were revealing. There was indeed a spike in activity in my readings, which stood out starkly against the control data. This comparison was not just a validation of my initial hypothesis but also an intriguing insight into how stress, sleep deprivation, and caffeine could influence the electrical dance of the human brain.

To delve into the technical rigor, I had employed a Python-based approach for the unit tests. The command python -m unittest -v big_ol_python_project.py would initiate a verbose output, detailing the successes and failures of each test, thereby holding my analytical process to a high standard of accuracy.

The journey through this personal project was not just an academic endeavor; it was a personal quest to understand the whispers and roars of the cerebral cortex under less-than-ordinary circumstances. It highlighted the nuances of data analysis in the field of neuroscience, the importance of clean data, and the potential of modern tools to unveil the hidden stories our brains tell every moment of our lives.

mne-project's People

Contributors

whereismyprozac avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.