• Lucid Dreaming - Dream Views




    Results 1 to 11 of 11
    Like Tree5Likes
    • 1 Post By frost458
    • 2 Post By IAmCoder
    • 2 Post By xqua

    Thread: Sensosr for detecting REM sleep

    1. #1
      Member
      Join Date
      May 2012
      Posts
      50
      Likes
      13

      Sensosr for detecting REM sleep

      Hi,

      Do any of you knows good sensors for detecting rem sleep?
      I'm in electronics engineering so I can work with anything.

      I found 3 ways of reliably detecting rem sleep :

      Heart rate : R-R power spectrum in the low frequency is quite different during rem sleep
      eyes movement : it's in the name, REM, rapid eyes movement.
      ECG : just monitor the right signals

      Heart rate :
      I recently made an optical heart rate sensor working on you finger, forehead or ear lobe.
      But it is greatly influenced by movement, plus keeping it 9h on you while you sleep require unconfortable attachment method.
      influenced by movement : movement in any of your lim will chance the blood flow and cause false readings.

      I wouldn't use an electrical ECG, it has electrodes directly in contact with your skin, too many things can lead to fibrilation.

      EOG :
      I could make a optical EOG to detect eye movment but you get the same problem than before :
      hard to keep in place
      unconfortable
      However motion artifact can be ignored using a accelerometer, and thus being able when the head is moving.

      Electrode based EOG is also out of the question for the same reason than the ECG.

      ECG :
      Too complex, to get a reliable rem detection you need a lot of electrodes (and dangerous, because electrodes)
      commercial ECG like zeo are just not reliable at all.

      ----------------------------

      Commercial sensors :
      I found a wrist optical based sensor for heart rate : mio alpha
      but it's expensive, 200$, I have no idea if the heart rate reading is really reliable or not
      and I have no idea if it's hackable or not (if the circuit is drowned in epoxy resin I won't be able to do anything).

      So if any of you know any other way, or any other sensors.
      StephL likes this.

    2. #2
      Member Achievements:
      1000 Hall Points Made Friends on DV Created Dream Journal Veteran First Class
      Goldenspark's Avatar
      Join Date
      Jun 2012
      LD Count
      97
      Gender
      Posts
      572
      Likes
      245
      DJ Entries
      1
      I don't know why you hink Zeo is not reliable. I still use mine and it looks to produce believable results. I wake after each REM cycle with good dream recall, so I can tell it's working.
      They claimed 70% of sleep lab reliability.

    3. #3
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      I have tried everything and invented some more. The best sensor I have found so far is OpenEEG. You can get it plug-and-play ready for under $200.

      I have recorded my heart rate during sleep, but have not been able to work out an algorithm to detect REM sleep from it yet. Here is a minute long printout:



      How would you go about working out when REM occurred? I have logs of an entire night, and could record in parallel with other sensors if that helps.

      I just started looking into EOG from a camera stream. I measure the amount of change between each frame - it seems like the most promising as it is non-invasive.
      StephL and Zoth like this.

    4. #4
      Member Achievements:
      1000 Hall Points Made Friends on DV Created Dream Journal Veteran First Class
      Goldenspark's Avatar
      Join Date
      Jun 2012
      LD Count
      97
      Gender
      Posts
      572
      Likes
      245
      DJ Entries
      1
      Have you watched the Zeo seminars;
      Behind the Headband (1): How Zeo Works - YouTube
      The difficult bit is turning the complex signal into the four simple stages that they do in Zeo "Wake - Light - REM - Deep". They claim to use some fuzzy logic to do it.
      I don't imagine it is that easy!

    5. #5
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      The different stages of sleep are much harder to see. I just look for rapid eye movements - too easy.

    6. #6
      Member philquiet's Avatar
      Join Date
      Aug 2007
      Gender
      Posts
      69
      Likes
      2
      I've heard of an alarm clock Iphone app that use the built-in accelerometer. You place the phone somewhere on the mattress and apparently movements during sleep can tell about the sleep cycle. Also there's image processing, for example with a webcam, for analysing your movements during sleep.

    7. #7
      Member philquiet's Avatar
      Join Date
      Aug 2007
      Gender
      Posts
      69
      Likes
      2
      For the hearth rate: I've tried to hunt the algorithm once, but the only clue I had is that it is about the "rate of change" of the heart rate.

    8. #8
      Lurker
      Join Date
      Jan 2014
      Posts
      1
      Likes
      2
      Hi Guys,

      If you still are interested in finding an algorithm that works, it is described in that paper.
      It is an increase in the chaotisity that you are looking for (decrease in D2 degree of freedom)

      Good luck ! ^^

      PS : I can't post links so here is the references :

      Nonlinear analysis of continuous ECG during sleep II. Dynamical measures
      J. Fell, K. Mann, J.Roschke, M. S. Gopinathan
      Department of Psychiatry, University of Mainz, Untere Zahlbacher Strasse 8, 55101 Mainz, Germany
      Department of Chemistry, Indian Institute of Technology, 600 036 Madras, Chennai, India
      Received: 7 June 1999 /Accepted in revised form: 10 December 1999
      IAmCoder and StephL like this.

    9. #9
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      Elite, thanks.

      I have an algorithm and channel for heart-rate variability (not shown in the minute above). It sounds like chaotisity is related to that. What is the D2 degree of freedom? Any pointers for the algorithm - count the variance between the amount of milliseconds between each heartbeat in a minute, and if that variance is significantly higher in a given minute, trigger the audio track?

    10. #10
      Member StephL's Avatar
      Join Date
      Oct 2013
      LD Count
      84
      Gender
      Posts
      2,420
      Likes
      3288
      DJ Entries
      117
      Quote Originally Posted by Goldenspark View Post
      I don't know why you hink Zeo is not reliable. I still use mine and it looks to produce believable results. I wake after each REM cycle with good dream recall, so I can tell it's working.
      They claimed 70% of sleep lab reliability.
      I found this:

      Quote Originally Posted by mobihealthnews
      Sleep coach company Zeo is shutting down
      By: Brian Dolan | Mar 12, 2013

      Since late last year it has been something of an open secret in some digital health circles that Newton, Massachusetts-based sleep monitoring and coaching company Zeo was winding down its operations and searching for a buyer. At least one investor was making veiled references to the company running out of money during various question-and-answer periods at the mHealth Summit in Washington DC last year. Zeo’s absence from the Consumer Electronics Show (CES) in Las Vegas this year — a must-attend for any company selling devices and companion services to consumers — was telling.

      This past week the Better Business Bureau listed the company as being “out of business” and Zeo CEO Dave Dickinson participated in an online TEDMED event as the company’s “former CEO”. While there is no official announcement, no known buyer yet, it’s clear that Zeo as we knew it is now over.

      Zeo’s original offering was a sleep monitor that included a wireless-enabled, sensor-equipped headband that users wore at night and a bedside display alarm clock that captured the data transmitted from the headband. When Zeo was first conceived by a group of Brown University students almost 10 years ago, the idea was for an alarm clock that could wake you up at just the right moment in your sleep cycle, during the right sleep stage, so that you would awake feeling refreshed. Zeo’s alarm clock had this functionality built right in when it launched in 2009. Before that launch, however, the startup discovered in early product tests that users wanted a device that could do more than just wake them up better, they wanted to know how well they were sleeping, too.

      “They wanted to know more about how they could get more REM and deep sleep,” Zeo Co-Founder and former CTO Ben Rubin told MobiHealthNews in 2010. “They wanted explanations for why they woke up seven times last night and how they can improve that. So we set about creating not just a smart alarm clock, but a personal sleep coach that would show you what was affecting your sleep and suggest improvements that could be made.”

      Zeo’s bedside display and subsequent reports showed users when they were in a certain sleep phase and then they awoke during the night. The company also created a composite score to help users to better understand how well they slept one night vs another — the score was called their ZQ.

      Over the years Zeo added new suggestions to its sleep monitoring website, added mobile apps, transitioned into a sleep “coach” instead of a sleep monitor, and even offered a version that bypassed the bedside display alarm clock and transmitted right from the headband to the user’s smartphone via Bluetooth.

      At last year’s Quantified Self conference in San Francisco, it was clear that Zeo was favored over most other tracking devices at the event. Zeo has had to deal with increasing competition from simpler activity tracking devices that suggested users wear them at night to get a basic idea of how well they slept based on how much they tossed and turned throughout the night. Activity tracker companies like Fitbit and Lark are among those that offer that kind of a sleep tracking component, which may have been “good enough” to compete with Zeo’s far more sophisticated and — likely — more accurate sleep tracking capabilities.

      Zeo was also a fixture in Dr. Eric Topol’s keynote presentations — in fact, Topol included a couple of slides about how he uses Zeo to track his own sleep at HIMSS13 last week.

      Former talk show host Regis Philbin also famously tested out Zeo soon after it became commercially available, and after discovering how much trouble he was having sleeping at night, the data he gathered with his Zeo encouraged him to go visit his doctor. Turned out he had sleep apnea.

      Zeo was always a consumer product and not meant for people who had sleep disorders. The company made early inroads with retail channels like Best Buy, back when Best Buy wasn’t selling anything related to health and wellness.

      Zeo made an effort to make clear that its device was not a medical device, but it also worked with medical researchers who were looking for a less expensive way to include sleep monitoring data in their research.

      While the debate over why Zeo didn’t make it is one that will likely continue for some time, one thing that clearly set it apart from the rest of the companies working in digital health today is that Zeo not only had to manage the usual issues that all startups have to deal with as they launch and grow, it also had to convince the world that sleep health was important. For those that have looked into the issue, there’s no question that there is a sleep problem underlying many health issues in this country.

      Zeo had a disruptive offering. The company did help kick off a discussion about sleep health. Hopefully, its sleep coaching platform finds a home soon.
      That sounds like a sad story!!

      Quote Originally Posted by Goldenspark View Post
      Have you watched the Zeo seminars;
      Behind the Headband (1): How Zeo Works - YouTube
      The difficult bit is turning the complex signal into the four simple stages that they do in Zeo "Wake - Light - REM - Deep". They claim to use some fuzzy logic to do it.
      I don't imagine it is that easy!
      That video is so horrible, that I didn't go on watching it - acoustically.
      Fuzzy logic is not only a cute name also!
      So you say the thing works?
      Wow!
      Who else?

      Quote Originally Posted by xqua View Post
      Hi Guys,

      If you still are interested in finding an algorithm that works, it is described in that paper.
      It is an increase in the chaotisity that you are looking for (decrease in D2 degree of freedom)

      Good luck ! ^^

      PS : I can't post links so here is the references :

      Nonlinear analysis of continuous ECG during sleep II. Dynamical measures
      J. Fell, K. Mann, J.Roschke, M. S. Gopinathan
      Department of Psychiatry, University of Mainz, Untere Zahlbacher Strasse 8, 55101 Mainz, Germany
      Department of Chemistry, Indian Institute of Technology, 600 036 Madras, Chennai, India
      Received: 7 June 1999 /Accepted in revised form: 10 December 1999
      Shame you can't - German again - and India - great - thank you for lurking into DV to tell us this!

    11. #11
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      xqua, you should be able to post links now... here they are in any case:
      Nonlinear analysis of continuous ECG during slee... [Biol Cybern. 2000] - PubMed - NCBI
      http://epileptologie-bonn.de/cms/upl.../fell/Ecg2.pdf

      Can you please have a quick look at the raw data here: 2013-05-03 – Synchronous Heartbeats | LSDBase.

      It was recorded at 10 Hz - is that enough to see increases in chaotisity or should I record again a little faster?

    Similar Threads

    1. Replies: 0
      Last Post: 12-31-2012, 07:34 AM
    2. Replies: 2
      Last Post: 08-17-2010, 10:35 PM
    3. Replies: 0
      Last Post: 04-05-2010, 09:55 PM
    4. Ubuntu 8.04 not detecting my USB drive???
      By Replicon in forum Tech Talk
      Replies: 25
      Last Post: 08-05-2009, 02:47 AM
    5. Recommend a good REM detecting alarm clock?
      By Richter in forum General Lucid Discussion
      Replies: 2
      Last Post: 10-17-2007, 09:43 PM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •