Latest Entries »

Open Electroencephalography

OpenEEG Project - REM Sleep
A decade after I was able to afford my first printed circuit board from Olimex and started dabbling in the OpenEEG project, I finally managed to build a device with which I can comfortably record my brainwaves during sleep.It took forever to fall asleep because I was just too excited. I woke up at 0534 from a dream and noted the time. The printout of the minute I selected is from 0515 and shows some very distinct patterns that are similar to when I move my eyes around while conscious. I will use that as a base to write the REM-detection algorithm that will trigger the audio tracks.

I embedded the four active electrodes inside a headband and taped the passive electrode to my earlobe with some duct tape. I still need to meditate on a more convenient way to attach the passive electrode.

It can be worn with the sensors on the forehead by the Frontal Lobe to trigger on the spikes in electrical activity caused by eye movements or at the back to monitor the brainwaves by the Occipital Lobe where visual perception is processed. Check it:
Halograph EEG

Anyone with a device compatible with the OpenEEG project can now upload to the Lucid Scribe Database project by right-clicking on a log in Lucid Scribe and selecting Export to -> LSDBase. The source code for the OpenEEG plugin is available on GitHub.

Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

Triggering lucidity
I finally got my hands on an old Wild Divine LightStone. And finally managed to keep the finger clip on all night after many attempts. I also wore the halograph FM and the heartbeats as measured by the IR sensor from the finger and the accelerometer in the headband line up perfectly. 63 beats can be seen in the minute above.Encouraged by the findings of Masao Yaso, Atsuo Nuruki, Sei-ichi Tsujimura and Kazutomo Yunokuchi, I have started working on an algorithm to detect REM sleep from the pulse…

Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

Sleep and Consciousness Research Graph
It seemed like a good idea but…
So I hooked up the speakers near my head, put on the modded MindWave and went to sleep. As seems to be the norm for me, I didn’t start dreaming until around 5 am. The sound file that is triggered is a recording of my wife saying “Tom you are dreaming, take control”. Well when I started dreaming and the sound file was played the shock of hearing she who must be obeyed was so startling that it instantly woke me up with absolutely no memory of the dream and my heart racing. Maybe a simple chime sound would work better.Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

First Dream with Modified MindWave
First dream captured with modified NeuroSky MindWave. Anyone familiar with the MindWave knows its design makes sleeping with it on nearly impossible. I took mine apart and remounted the boards, contacts and battery (crudely) in a elastic headband. Now it is possible to sleep with it on. 

Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

UPDATE:
Thought I’d do the process in bullet form. To be used in conjunction with the attached pics. Unfortunately I didn’t take step by step pics but it is really pretty simple. If I forgot anything feel free to ask.

  • Remove all the stickers from the mind wave including the large circular one that says NeuroSky MindWave. They just peel off.
  • Unscrew everything
  • The blue wires Going to the forehead sensor can be carefully pried out of the sides.
  • Gently remove the boards and refer to pics for wiring scheme. These wires/connections are fragile!
  • Buy a battery holder or cut away the original one and add wires to be able to mount it in a more comfortable position.
  • Adapt or replace the forehead sensor
  • Mount into headband as suits your needs.
  • Sleep, Dream, Be Amazed

ModdedMindWave2

Read more »

Triggering lucidity
I became aware of the previous song stopping abruptly. Not from the song that started in the minute above. A flurry of eye movements can be seen in the middle of the snapshot with traces of another one of those 30 second waves in the first half. According to a team of neuroscientists at UW there are:

Neurons in the mammalian brainstem that focus exclusively on new, novel sounds, helping humans ignore ongoing, predictable sounds. The neurons are located under the cortex in a part of the brain called the inferior colliculus. These neurons provide a unique model that can be used in the future to explore some of the neural mechanisms underlying memory, prediction and selective attention.

So instead of just introducing new signals to attain lucidity, it may be worth further investigation to trigger lucidity by removing persistent signals…

Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

REM Sleep After Ninety Minutes
The first audio track played exactly 90 minutes into the session and the movements lasted for the duration of the song. I was expecting the vocals to kick and was disappointed when they didn’t. I will have to cut them in as soon as possible. The second audio track played 65 minutes after that; six blinks can be seen in the minute above before it woke me up.Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

Cat and FIELD Mouse

FILD Mouse
First night using the FIELD mouse (and that pun will probably never get old). I had my mouse duct taped to my hand, and I messed around with it for like an hour and a half trying to get it comfortable. Finally I did, and I ended falling asleep around 2:30, forgetting to actually hold down the button.However upon waking I discovered that I held down the button 3 times for a very long time. Once from 3:04am to 3:45am, after that there was some small movement and then another click just long enough to trigger it again. Next one was from 5:53am to 6:34 (featured), another flurry of movement. And the last one was from 7:09 to 7:25, just before I woke up, the movement was delayed by 30+ seconds this time.

If any of those were from me dreaming, I didn’t experience/remember any of them. It’s quite likely that I was just laying on my hand or something. I also woke with my headset unplugged so the delay in movement on the third “dream” could have been from that. Though just a note, if these were dreams, it would mean that the songs were triggered just after they ended, so it might be a good idea to have a version where the song is triggered after oh 10-20 minutes of holding down the mouse.

I woke up feeling very refreshed for only having had 5 hours of sleep, so I’ll definitely be doing this again, hoping for better results though.

Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

Filtered Out

REM Sleep Graph
The respiratory artifact filter has been ignoring too many events that could have had potential, so I have some more tweaking to do. In the minute above there are over two dozen movements that failed to trigger the audio track.Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

More Rapid Movements

Rapid Eye Movements
The audio track played after a series of more conventional and more rapid eye movements that I will now be focusing on with the help of the new respiratory artifact filter.Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).

Awake Wave

Eye Movements Dream
The audio track played after six blinks and the wave can be seen at the end again, as previously noted: 2012-06-14 – Aware-Wave.Download entry as Lucid Scribe Data (LSD) or Comma Separated Values (CSV).