Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Is there a way to enter Sleep Stage data into OSCAR manually?
#1
Is there a way to enter Sleep Stage data into OSCAR manually?
I notice in the OSCAR preferences there is a waveform for Sleep Stage.

I have a fitbit which does a pretty good job of figuring out sleep stages, but the user interface to get the data is moronic. (If I go to my fitbit account in the web interface and bring up the graph, it shows a picture. If I mouse-over various segments on the graph then little boxes pop up showing the sleep stage and a beginning time and ending time. There is no way to download that data -- the only thing that Fitbit will give you in a download is the fraction of the night that you spent in each sleep stage.) While it would be tedious, it would be straightforward to transcribe that data into a text file.

If I were to do such a thing, is there any user interface to suck sleep-stage data from a text file and get it into OSCAR? I can see that under the OSCAR->Data->Import Zeo/Dreem/Somnopose Data menu items OSCAR seems to want to load in CSV files. Can someone tell me the expected format and  I will try to dummy up a CSV file by hand?
Post Reply Post Reply
#2
RE: Is there a way to enter Sleep Stage data into OSCAR manually?
I suggest downloading the OSCAR code and look at the oscar/SleepLib/loader_plugins/somnopose_loader.cpp file.
Crimson Nape
Apnea Board Moderator
Project Manager for OSCAR - Open Source CPAP Analysis Reporter
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#3
RE: Is there a way to enter Sleep Stage data into OSCAR manually?
Somnopose is currently the simplest format to generate. OSCAR <= 1.2.0 requires columns timestamp, orientation and inclination (this will change in later versions to make this more flexible). Zeo and Dreem have a single row for each sleep session with a hypnogram column that has a sleep stage value for each 30 second epoch in the session. See this post for some examples (note that the Dreem sleep stage reporting changed from numbers to names as per this note, and names is what OSCAR expects in the Dreem loader).
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question OSCAR does not import data - "failed to parse identification file" thearrow3456 2 92 12-31-2024, 04:27 PM
Last Post: thearrow3456
  Uploading Wellue O2 Ring Data to Oscar ggs5 10 2,081 12-30-2024, 11:35 PM
Last Post: dgconder
  OSCAR: Questions regarding a potential import for Garmin data littleyoda 10 599 12-29-2024, 06:45 AM
Last Post: bedeee
  Oscar program will not open data files raylock1 7 158 12-24-2024, 04:12 PM
Last Post: raylock1
  Oscar 1.6 not recognizing AirSense 11 data treemkr 2 158 12-23-2024, 11:29 AM
Last Post: treemkr
  ALL OSCAR data to Sleep doc... McBrugh 5 280 12-14-2024, 05:27 PM
Last Post: Sleeprider
  Machines with max oscar data wking 3 385 12-09-2024, 04:10 PM
Last Post: SarcasticDave94


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.