Sleep-Tracker (experimental)

1 Introduction

Track your sleep accurately without the discomfort of a wristband or electrode wires.

  • Some Problem
    CDC has recently classified insufficient sleep as a public health problem. Sleepiness is the root cause of increasing the risk of accidents and other occupational errors. It can also cause health concerns such as diabetes, depression and high blood pressure. According to a recent survey by the National Sleep Foundation and the Consumer Electronics Association, more than 60% of sleep tracking technology owners are more aware of their sleep patterns after sleep tracking. 51% of sleep tracking technology owners say they're sleeping better knowing the technology is helping them and 49% say they feel healthier since they started using the technology. Although most of the sleep tracking technologies are non-invasive devices such as watches and bands, they still require huge amounts of daily maintenance for hygiene and constant battery charging. The discipline of frequent charging and hygiene maintenance using the wearable device has turned a lot of people away from using them.
  • The Solution
    Using Sleep-Tracker, we can build a non-invasive sleep tracking system that's always on. This way the User does not have to worry about charging their wearables, washing for hygiene and still be able to track a good night's sleep.

2 Hardware components

  • Raspberry Pi 3B+
  • UWB Radar Module

We provide hardware package.Contact Us

3 Quick Started guide

If you are using the hardware package provided by us,to to 3.3

3.1 Connect your device

Connect the device as shown:

Figure 1. Device Connection

3.2 Installation SDK on Raspberry Pi

Skip this step if you are using the hardware package provided by us because it already has SKD installed. If you buy equipment by yourself,you need to install the radar SDK on Raspberry Pi. To do this you first grab the installer for Raspberry Pi from this page.Then follow the readme found on this page in order to run it and complete the installation of the radar SDK:

git clone https://github.com/DeepWiSe888/X4DriverForRaspberryPi.git
make 
./Runme

Now,radar data will be printed out.

3.3 Connect the device to the PC

  • Use USB-to-Ethernet to connect Raspberry PI to PC
  • Change the IP address of the network adapter:
    192.168.1.111
    
Figure 2.IP Address

3.4 Building the development environment and Run the demo

  • Pull the code
    git clone https://github.com/DeepWiSe888/Sleep-Tracker.git
    
  • Install dependent libraries(python 3.6+):
    pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
    
  • Run plot data program in terminal:
    python sleep-tracker.py
    

    Figure.3 is a simulation of the process From waking to deep sleep, waking from deep sleep. PS:

Figure 3.Sleep-Tracker

4 Data structure of Radar

Specific datasheet reference: AW-UWB-EV-01
You can also find raw data in line 218 of sleep-tracker.py

iq = x
name type value
iq np.array FPS*BIN

5 Challenges and Future Work

Accuracy needs improvement.

6 Code

All of the project code scan be found on GitHub :Sleep-Tracker.