Category: Hardware


This video shows how the INSEPC can be positioned on the bedside table to detect eye movements during REM sleep, with the Lucid Scribe app running in the background and the infrared spotlight in the frame. I usually have the infrared light on the floor, aimed at the wall so the reflected light has an even distribution.

The INSPEC detects the face and eye movements better if it looks up from chest height – instead of right next to your face, and aimed slight downwards with the help of some books so that it picks up more angles, like when you are lying on your back. The face should appear upright in the video feed.

INSEPC | Lucid Scribe Android​​ | Lucid Scribe iOS

Lucid Scribe is now available on iOS!

It has real-time REM detection with the INSPEC lucid dreaming device, sleep logs with video clips of detected eye movements, NREM1 detection with FILD, guided mindfulness and sensory induction exercises, daily prospective memory training exercises, targeted dream incubation, research studies, auto-off alarms, and reality check notifications.

The latest INSPEC update introduces hypnograms and computed sleep quality metrics. The implementation estimates AWAKE, REM, Light Sleep (NREM1 and NREM2), and Deep Sleep (NREM3 and NREM4) phases using a combination of stillness scoring and detected rapid eye movement patterns from the video stream. Stillness is inferred from frame-to-frame pixel variance, while REM is detected through bursts of eye movement activity from the REM-detection engine.

The hypnogram output aligns well with typical sleep architecture and already offers valuable insight into session dynamics. This lays the groundwork for real-time sleep staging and deeper analysis to optimize cue timing relative to vivid dreams during REM sleep.

There is still lots planed, like adding indicators for when the REM-detection algorithm triggered the audio cues and caching for faster load times, but it is already yielding valuable insights and fun to play with.

The top frame is animated and replays highlights from the session where rapid eye movement patterns were detected. The rest of the frames are stills that can be removed – for when you want to export to an LSD file and share the session, but were caught sleep-talking or at an awkward angle.😅

INSEPC Details | GitHub | Google Play

Added TensorFlow Edge Impulse to the INSPEC device. This improves face detection and REM detection, especially at difficult angles!

INSPEC TensorFlow Edge Impulse

Added a smart alarm that triggers when the INSPEC detects stirring movements during natural awakenings in the mornings.

INSPEC Smart Alarm

Animated the session playback in the mobile session navigator. The shadow of the INSPEC can be seen watching over me!

INSPEC REM Session Playback

Added a new algorithm that detects sleep onset (NREM1).

NREM1 Sleep Onset Detection

INSEPC Details | GitHub | Google Play

Added session navigation and viewer.

INSPEC_sessions

INSEPC Details | GitHub | Google Play

Added live feedback for face-detection and a smart mirror. When face-detection is enabled, the algorithm only looks for variances inside the face region to rule out false positives.

lucid_scribe_android

INSEPC Details | GitHub | Google Play

Made the LED behavior configurable and documented the details under LED Settings.

lucid_scribe_settings

Open in Google PlayView LSDBase Entries | View Code Changes