hacking sleep: how to build your very own sleep lab · title: hacking sleep: how to build your very...
TRANSCRIPT
![Page 1: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/1.jpg)
How to Build Your Very Own Sleep Lab: The Execution
Presented by:
Keith Biddulph & Ne0nRa1n
![Page 2: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/2.jpg)
Overview
What does it do?
We're collecting data for later interpretation:Electroencephalogram (EEG)Heart rate monitor (HRM)Electronic Ocular Monitor (EOM)Infrared pictures
![Page 3: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/3.jpg)
Overview
What does it not do?Breathing measurementsSkin response on face
Why not?Restless leg and apnea are obvious to an outside
observer
![Page 4: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/4.jpg)
Overview
A series of devices connected to an ordinary desktop PC:
ModularEEG implementation of the OpenEEG projectInterfaces with a desktop PC via RS 232 serial port
Homebrew microcontroller (Atmel Atmega128) device to collect other signalsAlso Interfaces with a desktop PC via serial port
USB Webcam modded to see only IR
![Page 5: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/5.jpg)
Hardware overview
![Page 6: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/6.jpg)
OpenEEG overview
![Page 7: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/7.jpg)
Microcontroller data collection device
![Page 8: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/8.jpg)
Sensor choice
ModularEEG from OpenEEG project
Cheap ($<200 to build)Well tested (Initial release in 2003)Prebuilt PCBs availableOpen SourceNeeded to detect stage of sleep
![Page 9: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/9.jpg)
Sensor choice
Wireless heartrate monitor by Oregon Scientific
Super cheap off of eBay ($<20)Signal to find was relatively simpleNeeded to verify that monitored user is calm
![Page 10: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/10.jpg)
Sensor choice
EOM – Fairchild QRB1134
Very cheapWell documentedSimpleUsed to verify REM
![Page 11: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/11.jpg)
Construction pitfalls
ModularEEG – Buy it preassembled!Took hours of cramped solderingEasy to make solder bridges or short to ground planeEasy to put ICs in backwardsDoes not include a power supply
![Page 12: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/12.jpg)
Construction highlights
On the fly construction:
Op-amp for HRM to boost signal from 1Vpp to 5vpp
Adding first-order filters to remove noise from incoming circuits
Finding new and interesting uses for soldering irons
![Page 13: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/13.jpg)
Initial Data
We plugged theEEG in and nothing caught on fire!
EEG capture when subjectwas asked about theirfavourite topic
![Page 14: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/14.jpg)
Initial Data
HRM and EOM verified to be working:
![Page 15: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/15.jpg)
Initial Data
Disclaimer:We are not doctors, nor do we pretend to beIt is rare, but possible to give yourself an electric
shock with this equipmentThere is no warranty – explicit or impliedWe are not responsible for the consequences of
anyone attempting to duplicate our efforts
![Page 16: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/16.jpg)
Initial Data
FIXME: show picture clips of various sleep stages collected here
![Page 17: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/17.jpg)
Analysis
What does this data tell me?EEG and EOM can verify that user is entering all
stages of sleep.
![Page 18: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/18.jpg)
Analysis
What does this data tell me? (cont.)
Camera stills will show fitful sleep, sleepwalking, and restless leg.
Elevated heart rate can indicate stress
![Page 19: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/19.jpg)
Additional info
Flowchart of capture software:
![Page 20: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/20.jpg)
Additional info
Future expansion:
More sensors:Muscle sensors on faceVolume and temperature of airflow to/from lungs
Automagic identification and categorization of data
![Page 21: Hacking Sleep: How to Build Your Very Own Sleep Lab · Title: Hacking Sleep: How to Build Your Very Own Sleep Lab Author: Ne0nRa1n & Keith Biddulph Subject: Sleep Lab Keywords: Defcon,](https://reader033.vdocuments.mx/reader033/viewer/2022060907/60a1ee55cb29825a5b08f188/html5/thumbnails/21.jpg)
Closing
Shoutouts to:ab3nd, dead addict, lockedindream, lyn, mb,
nobodyhere, old grover, psychedelicbike, tottenkoph,
Detailed schematics and source code are available at:http://defcon17sleeplab.googlepages.com/