Post Reply 
Exporting data from Sleephead
Author Message
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #1
Exporting data from Sleephead
I have noticed a distinct oscillation to my breathing patterns that I would like to analyze using FFT, Wavelets and Time Series, in Mathematica or Matlab. It is a repeated Cheynes Stokes pattern which could be quite serious if it is associated with congestive heart failure (CHF). It could also be idiopathic as this has not been noted on any recent EKG.

How do I export the data behind the Flow Rate Graph to an analysis program in a readable format?

Where is the data located? (I assume it is one of the numbered files in the Events or Summaries folders deep in the Data Folder. I could extract the data from these if I know the format. I have looked at these in Byte form and they appear t be ASCII encoded but I haven't gone further than that yet.)

What is the appropriate format?

And to answer your inevitable questions: Yes, I am a geek and have been using computers in various forms since 1964. My Ph.D. is in Mechanical Engineering (but my thesis was in the use of Artificial Intelligence, of which I have plenty,) and I also have degrees in Physics and Electrical Engineering. My specialty is Mechatronics which combines all of the above. Forgive me if I seem a bit arrogant... I am often accused of this despite no intent on my part to be so.

Thank you for your help.

Walter W. Olson, Ph. D., P.E.
Professor Emeritus
(This post was last modified: 01-05-2016 12:08 PM by wolson.)
01-05-2016 12:05 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Sleeprider Online
Wiki Editor
Advisory Members

Posts: 3,390
Joined: Dec 2014

Machine: Resmed Aircurve 10 Vauto
Mask Type: Nasal pillows
Mask Make & Model: Resmed Airfit P10
Humidifier: Resmed Climateline
CPAP Pressure: Auto Bilevel 18/9, PS 3
CPAP Software: ResScan SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Where they make Respironics

Post: #2
RE: Exporting data from Sleephead
Walter, the best way to view and analyze the data would be to start with the Sleepyhead software linked at the top of this page. It provides a detailed breath by breath view of your CPAP pressure and flow rate waveform graphs. Also, Sleepyhead allows easy screenshots to be taken for analysis or posting online. This article explains some of those capabilities https://sleep.tnet.com/reference/tips/imgur

Also, being a geek, take a look at RobySue's Beginner Guide to Sleepyhead in the Wiki. Some of this may be elementary to you, but there is some good information here. http://www.apneaboard.com/wiki/index.php...sleepyhead

______________________________________________
Organize your SleepyHead Data
Post your SleepyHead Data from Imgur
Robysue's Beginner's Guide to Sleepyhead
01-05-2016 12:16 PM
Find all posts by this user Post Reply Quote this message in a reply
Crimson Nape Offline

Monitors

Posts: 1,332
Joined: Oct 2014

Machine: ResMed S9 Autoset
Mask Type: Other
Mask Make & Model: P-10 / F&P Simplus / DreamWear
Humidifier: H5i w/Climateline
CPAP Pressure: 8 - EPR 3
CPAP Software: SleepyHead

Other Comments: CMS-50F & 50IW

Sex: Male
Location: Georgia

Post: #3
RE: Exporting data from Sleephead
Walter,

You might download the source code for SleepyHead and view the code that it uses to parse the info you're after. The instructions for this endeavor are listed under the SleepyHead link at the top of the page. . . Look for "Building from source code" or, use this link to take you to the same place.

http://www.apneaboard.com/wiki/index.php...rom_source

-Red

Statistics prove that people who have more birthdays live longer.
01-05-2016 12:43 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #4
RE: Exporting data from Sleephead
(01-05-2016 12:16 PM)Sleeprider Wrote:  Walter, the best way to view and analyze the data would be to start with the Sleepyhead software linked at the top of this page. It provides a detailed breath by breath view of your CPAP pressure and flow rate waveform graphs. Also, Sleepyhead allows easy screenshots to be taken for analysis or posting online. This article explains some of those capabilities https://sleep.tnet.com/reference/tips/imgur

Also, being a geek, take a look at RobySue's Beginner Guide to Sleepyhead in the Wiki. Some of this may be elementary to you, but there is some good information here. http://www.apneaboard.com/wiki/index.php...sleepyhead

I have looked at both and have both on my computer. But I want to do a more thorough analysis for which I have plenty of software to do it with provided I can get the raw data. I should add, I have also started looking at Sleepyhead source code, but if there is anything true, looking a some one else's source code is very tedious and time consuming.

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
(This post was last modified: 01-05-2016 12:57 PM by wolson.)
01-05-2016 12:54 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #5
RE: Exporting data from Sleephead
(01-05-2016 12:43 PM)Crimson Nape Wrote:  Walter,

You might download the source code for SleepyHead and view the code that it uses to parse the info you're after. The instructions for this endeavor are listed under the SleepyHead link at the top of the page. . . Look for "Building from source code" or, use this link to take you to the same place.

http://www.apneaboard.com/wiki/index.php...rom_source

-Red

Thank you, I have already started that. /WWO
01-05-2016 12:59 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Terry Offline

Advisory Members

Posts: 553
Joined: May 2014

Machine: Philips Respironics RemStar Auto with A-Flex (560P)
Mask Type: Nasal pillows
Mask Make & Model: P/R Nuance & Pap Cap
Humidifier: Integrated
CPAP Pressure: Auto
CPAP Software: SleepyHead

Other Comments:

Sex: Male
Location:

Post: #6
RE: Exporting data from Sleephead
(01-05-2016 12:54 PM)wolson Wrote:  I have looked at both and have both on my computer. But I want to do a more thorough analysis for which I have plenty of software to do it with provided I can get the raw data. I should add, I have also started looking at Sleepyhead source code, but if there is anything true, looking a some one else's source code is very tedious and time consuming.

Sleepyhead has an "export data" feature on the "File" menu, that will create a CSV file containing all the events, but not the raw data.

If you want the waveform, you'll need to dig through the code and figure out how to extract it from your card data. This is not an easy task, and if you actually manage to do it, and analyze the data, you might want to consider contributing your code to the SleepyHead project to everybody can benefit.

Terry
(This post was last modified: 01-05-2016 01:08 PM by Terry.)
01-05-2016 01:06 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #7
RE: Exporting data from Sleephead
(01-05-2016 01:06 PM)Terry Wrote:  
(01-05-2016 12:54 PM)wolson Wrote:  I have looked at both and have both on my computer. But I want to do a more thorough analysis for which I have plenty of software to do it with provided I can get the raw data. I should add, I have also started looking at Sleepyhead source code, but if there is anything true, looking a some one else's source code is very tedious and time consuming.

Sleepyhead has an "export data" feature on the "File" menu, that will create a CSV file containing all the events, but not the raw data.

If you want the waveform, you'll need to dig through the code and figure out how to extract it from your card data. This is not an easy task, and if you actually manage to do it, and analyze the data, you might want to consider contributing your code to the SleepyHead project to everybody can benefit.

Terry

Thank you. I will consider doing that.

From a short search of the web, I have found that my question is pertinent to a number of people that want to look a the data numerically.

Still looking, though.

Walt

P.S.: I would be very interested in what "jedimark" has to say about this as he apparently has done a lot of work towards Sleephead! I hope he responds. He is in a antipodal timezone from me so I probably won't know until tomorrow. /WWO

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
(This post was last modified: 01-05-2016 02:09 PM by wolson.)
01-05-2016 02:03 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
Crimson Nape Offline

Monitors

Posts: 1,332
Joined: Oct 2014

Machine: ResMed S9 Autoset
Mask Type: Other
Mask Make & Model: P-10 / F&P Simplus / DreamWear
Humidifier: H5i w/Climateline
CPAP Pressure: 8 - EPR 3
CPAP Software: SleepyHead

Other Comments: CMS-50F & 50IW

Sex: Male
Location: Georgia

Post: #8
RE: Exporting data from Sleephead
(01-05-2016 02:03 PM)wolson Wrote:  P.S.: I would be very interested in what "jedimark" has to say about this as he apparently has done a lot of work towards Sleephead! I hope he responds. He is in a antipodal timezone from me so I probably won't know until tomorrow. /WWO

JediMark has been under the weather as of late. His reply my be a while in coming.

Your profile shows a P-R (I think). Is this the machine that you are wanting to analyze the raw data?

Statistics prove that people who have more birthdays live longer.
01-05-2016 02:14 PM
Find all posts by this user Post Reply Quote this message in a reply
wolson Offline

Preferred Members

Posts: 92
Joined: Dec 2015

Machine: PRS1 C-Flex
Mask Type: Other
Mask Make & Model: Dreamwear
Humidifier: Remstar
CPAP Pressure: 10 cm H20 C-flex x3
CPAP Software: SleepyHead EncoreBasic

Other Comments:

Sex: Male
Location: Red Canyon, Lander, Wyoming

Post: #9
RE: Exporting data from Sleephead
(01-05-2016 02:14 PM)Crimson Nape Wrote:  
(01-05-2016 02:03 PM)wolson Wrote:  P.S.: I would be very interested in what "jedimark" has to say about this as he apparently has done a lot of work towards Sleephead! I hope he responds. He is in a antipodal timezone from me so I probably won't know until tomorrow. /WWO

JediMark has been under the weather as of late. His reply my be a while in coming.

Your profile shows a P-R (I think). Is this the machine that you are wanting to analyze the raw data?

Yes, I am using a Philips Respironics System One 60 Series.

Walt

Walter W. Olson, Ph.D., P.E.
Professor Emeritus
01-05-2016 02:43 PM
Find all posts by this user Post Reply Quote this message in a reply

Donate to Apnea Board
AlanE Offline

Advisory Members

Posts: 1,496
Joined: Mar 2015

Machine: ResMed AirSense 10 Autoset
Mask Type: Nasal pillows
Mask Make & Model: P10 & Mirage Liberty backup
Humidifier: Built-in
CPAP Pressure: 10-14
CPAP Software: ResScan SleepyHead

Other Comments: ʕ•ᴥ•ʔ So Long, and Thanks for All the Fish

Sex: Male
Location: Southwest Florida

Post: #10
RE: Exporting data from Sleephead
If the files are of the EDF exntension you can try a script written in Python that supposedly pulls the data out. github.com/rays/pyedf I have not tested it but I might now that I found it. You can read more on the EDF file format here: edfplus.info/specs/index.html



Using FlashAir W-03 SD card in machine. Access through wifi with FlashPAP or Sleep Master utilities.

I wanted to learn Binary so I enrolled in Binary 101. I seemed to have missed the first four courses. Big Grinnie
01-07-2016 03:14 PM
Find all posts by this user Post Reply Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Sleephead Software and Wireless Uploads RESTMD 3 332 10-16-2016 05:13 PM
Last Post: srlevine1
  old version of sleephead download car54 4 418 09-26-2016 01:31 PM
Last Post: Crimson Nape
  Sleephead broken Gl version ? jpoker 2 288 09-25-2016 07:46 PM
Last Post: GoodnightWalter
  Sleephead Help Needed Dreams of Green 1 287 09-07-2016 01:44 AM
Last Post: chill
  Sleephead Tabs Not working PatCurt 4 220 09-02-2016 08:50 PM
Last Post: PatCurt
  Sleephead Tries to write to My SD card cmccarter 5 416 06-05-2016 05:33 PM
Last Post: SaldusMiegas
  Sleephead hangs after log in new installaiton Dan Szewczyk 2 258 04-21-2016 06:09 PM
Last Post: Dan Szewczyk

Forum Jump:

Who's Online (Complete List)