Moving the camera closer to my face and tweaking the Halovision LucidScribe plugin's threshold motion detection parameters made the eye movement detection much more accurate. Still more experiments to do. |
|
Well I've finally gotten off my duff and taken action in my goal to learn about and create my own EILD systems. I've been thinking and dreaming (haha) of pursuing this for years, and I've finally taken the first major steps. First up is working with IAmCoder's Halovsion set-up. Massive thanks and shout-out to IAmCoder for hand-holding me extensively and patiently through the process of acquiring the equipment and setting it up to run with his LucidScribe system. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Moving the camera closer to my face and tweaking the Halovision LucidScribe plugin's threshold motion detection parameters made the eye movement detection much more accurate. Still more experiments to do. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Very cool FM! This sounds like a fun project and I look forward to hearing more! |
|
Something important for every newbie: http://www.dreamviews.com/general-lu...-read-imo.html
Listen while you work or before bed? http://www.dreamviews.com/dreamviews-podcast/
More great audio: http://www.dreamviews.com/dreamviews-audio/
My lucid dreaming journey: http://www.dreamviews.com/members/fo...boutme#aboutme
Elite. Right back at you for the pointer to the video encoder motion vectors for the standalone version. |
|
Wow guys this is awesome! I don't have much to add, except that I'd love to keep hearing updates as you continue working on it. Is any of the code up on github? |
|
I've managed to go through my software/hardware career without diving into any numerical analysis. Looks like the need to analyze the motion vectors in more detail, and/or doing facial/eye recognition will take me deep into that territory. Time to start learning numpy to start with! |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Last night was back to halovision (still haven't gotten any graphs up from my own capture the night before, apparently a "simple plot" package is just not possible in python without installing large sets of libraries. I have bitten the bullet and downloaded anaconda [a masive python numerical analysis and visualization package], so hopefully I will get those graphs going). Positioning was off so I got no eye movement data. I did learn though that I am (at least now) apparently a very restless sleeper! Very frequent large movements all throughout the night. This is important data, too. To make the system very reliable I think I will need at least a basic facial/eye recognition component. It doesn't need to run frequently, only once after every sequence of large movements. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Last night I rotated the camera 90 degrees so that my face on the pillow would be upright in the captured images. I wanted to make sure this would work for trying traditional face/eye detection algorithms without the need for a rotate transform. Worked great. Again, I noticed in reviewing the video logs lots of frequent, short duration, large movement throughout the night. A lot of the night I spent facing away from the camera. Since my sleep schedule is still wacky as all getout I have no idea how well I'm sleeping. Bu I did manage to somehow end up facing the camera in the critical 5th hour region where I have a lot of my vivid dreams, and the system recorded clear eye-only movement in a few cases. There is still a lot of tweaking to be done but I'm pretty pleased with this. The system did actually send an audio notification in the following minute after the eye movement but I didn't hear it (it was the shorter of the two sound files I'm using). I plan to experiment with other notifications like vibration and light eventually, but first stage is reliable eye movement detection. Here's the key dreaming minute from LucidScribe (y'all don't want to see my sleepy face, so just the captured eye movement is included) : |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Spent today researching and doing initial experiments with facial recognition systems. Tried OpenCV Haar cascade matching in python on the RPi, and it was OK but not stellar. I needed to train my own patterns because sleeping faces are just too different for the standard trained face detectors. So I switched to Dlib on linux using an example pattern training and feeding it stills of my sleeping face out of my LucidScribe logs, and the detector trained from those images works as advertised: for images close enough to the training images, they all detect accurately. Trying to put on-my-back-sleeping images together with the side-sleeping ones doesn't seem to work well, I think because they're too different. Instead, I'll try creating different detectors for different positions. The detector itself runs quite quickly. With good face detection, the system can get a lot more accurate: ignoring all small movements when no face is visible (avoiding false signaling), and when a face is present, ignoring (all?) movements outside the face region, and being much more sensitive to small movements within the face region. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Pretty epic! Glad to see that you caught a dream already. |
|
Still so stoked that it caught a dream already! If you ever summon the courage, you can right-click on the video recording replay in the minute view in Lucid Scribe and select "Save as GIF"... |
|
Camera installation complete! It's now mounted on the side headboard (due to the layout of my bed I can't put it on a bedside table, the angle and distance to my face would be wrong). This was an inspired improvisation! I built a camera mount from an alligator clip, 6 strands of sturdy 1.25mm enameled wire, cable ties, and a USB-A plug from an ancient web-cam. The RPi is mounted via a velcro-like strip (meant for hanging pictures, it has very high vertical hold strength), and the camera mount plugs in to one of the RPi's USB slot. A cable tie goes around one of the IR LEDs, and the alligator clip holds on to the locking housing of the cable tie, piece so the grip is firm and the camera does not jiggle and is oriented sideways so my face comes through upright in the video. The alligator clip is held to the copper wire bundle with cable ties, and the copper wire is bound to the USB adapter with cable ties. Cable ties also hold the copper wire bundle all together. Cable ties are AWESOME! Everything is oriented so that gravity helps. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Yes that's great! Still waiting for my first lucid from it, though, or even a waking from a dream. Hopefully with the mount, things will improve. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Wow...what a huge undertaking. Congrats on the progress. |
|
Well some small adjustments were necessary. The alligator clip holding the camera slipped off the mount cable somewhere after about 3 hours of sleep. Oops. In the morning I put it back on and wound a rubber band around the cable/clip junction to add more friction against slipping. Seems to hold tight now. I perhaps wacked the thing in the night when I turned over. I thought about adding a protective case around the camera. Cardboard will probably do for now but something "pretty" means ... another DIY "maker" project! |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
I've been taking a bit of a break from nightly monitoring for the last week. I've been investigating small microcontroller programming (ATTiny85, Arduino Nano) and acquiring and learning how to use their various programming environments (Arduino studio, Atmel AVR studio). |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
I'm still working on stuff. I've decided to name my system "The Night's Watch" . Working on (re)learning basic electronics and familiarizing myself with contemporary IoT devices. The ESP8266 modules are really astonishing: A fast, *wifi-included* MCU for under $4! I wrote a TCP client/server echo test from my mac to my windows laptop that ran through the wireless access point of this tiny board. Really astonishing. I may forego bluetooth in favor of this. For wearables BLE may still be king but this thing is really exciting. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
That is an epic name. And it is is awesome what you have done with all the projects. |
|
Last edited by IAmCoder; 03-22-2017 at 11:27 PM.
Something important for every newbie: http://www.dreamviews.com/general-lu...-read-imo.html
Listen while you work or before bed? http://www.dreamviews.com/dreamviews-podcast/
More great audio: http://www.dreamviews.com/dreamviews-audio/
My lucid dreaming journey: http://www.dreamviews.com/members/fo...boutme#aboutme
Since I have the camera actually extending out into the sleeping area due to the positioning of my bed, I have this subconscious fear of whacking the camera when I turn over, which is why I don't want to move closer. So unless I can find a zoom lens for this thing, I'm probably not going to get much closer. Also, I would like the system to be able to work on a typical night, which means handling lots of re-positionings. High accuracy requires face detection I believe, at the very least to know when not to signal, and to limit all small movement analysis to the bounding box of the face area. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Following this thread inspired me to get back to experimenting with my REM Dreamer mask. Will try it tonight. |
|
I got interested in looking again at eye movement detection masks and how to make them. They're pretty simple conceptually (the hardest part seems to be the physical construction of the mask and the placement of the circuit board into it). I looked into the REM Dreamer and from pictures of the circuit board I've determined that it only detects movement in the right eye! I guess the assumption is that both eyes move together, that's a pretty safe assumption I imagine, but if you're a side sleeper it might make more of a difference with the REM dreamer which side you sleep on. I can't guess which side would be better: on the right it would tend to stay in place, but might also be squished too close to the eye. Try it and see if you can discover which side works best for you! |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Looking at this Novadreamer clone, it appears to also only have a movement detector for one eye. |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Try using a mouse? |
|
"Reject culture..." "Put the Art pedal to the metal!"
- Terence McKenna
Lots of issues with the mouse hack approach, including the cable. I'm also in this for learning how to contruct DIY electronics, so I'd rather build my own system from individual components. I still think the IR camera is the best way, but for maximum REM detection needs at least 2 cameras. I've already ordered my Rasberry Pi Zero W with a camera cable, I've already received by backup IR Pi IR camera, so I'm all set for a stereo version of The Night's Watch! |
|
FryingMan's Unified Theory of Lucid Dreaming: Pay Attention, Reflect, Recall -- Both Day and Night[link]
FryingMan's Dream Recall Tips -- Awesome Links
“No amount of security is worth the suffering of a mediocre life chained to a routine that has killed your dreams.”
"...develop stability in awareness and your dreams will change in extraordinary ways" -- TYoDaS
Bookmarks