There are a lot of watches and rings (applewatch, ouraring, garmin, ...) measuring sleep quality, but they do this mainly through models trained on blood glucose and motion.
The main way to measure sleep quality is using an EEG. There are 3 options.
- Cheap consumer device: Muse S is 400 EUR
- Medical grade device which is fully open: ZMax EEG but is 1000 EUR
- The gold standard is OpenBCI. Check their docs and this guide
I've opted for the cheapest tier to start and will explore the later ones after.
More notes:
- Check out youtube videos on analyzing sleep architecture from the data.
- Highly recommend the youtube between sleep prof Matt Walker on Huberman podcast (youtube).
- The sleep data is captured to some file format like .xdf or .edf
- Supplements worth exploring. For me the biggest has been 6g Glycine which is generally good for health. I'm also taking a load of vitamins (omega 3 DHA/EPA ratio, magnesium/zinc, vit d .etc)
Now lets discuss the data pipeline. See this vid
- Stream Muse data with muse-lsl, which is exported to .xdf
- MNE (used for working with neuro file formats) supports .xdf import
- Import to yasa for visualization. This sleep scoring was developed by Matt Walker's lab and is pro grade.
The graph we're mainly interested in is the hypnogram; it is a graph that represents the stages of sleep as a function of time.
Lastly there's other apps worth trying like Dreamento or EEGLab.