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

Exporting data from Sleephead
#1
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
Post Reply Post Reply
#2
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
Post Reply Post Reply
#3
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
Post Reply Post Reply


#4
(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
Post Reply Post Reply
#5
(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

Post Reply Post Reply
#6
(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
Post Reply Post Reply


#7
(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
Post Reply Post Reply
#8
(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?

Post Reply Post Reply
#9
(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
Post Reply Post Reply


#10
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

Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Automatic SleepHead Data Import DrNefario 9 313 02-21-2017, 08:25 AM
Last Post: Newbee2016
  Sleephead Software and Wireless Uploads RESTMD 3 438 10-16-2016, 05:13 PM
Last Post: srlevine1
  old version of sleephead download car54 4 577 09-26-2016, 01:31 PM
Last Post: Crimson Nape
  Sleephead broken Gl version ? jpoker 2 412 09-25-2016, 07:46 PM
Last Post: GoodnightWalter
  Sleephead Help Needed Dreams of Green 1 341 09-07-2016, 01:44 AM
Last Post: chill
  Sleephead Tabs Not working PatCurt 4 272 09-02-2016, 08:50 PM
Last Post: PatCurt
  Sleephead Tries to write to My SD card cmccarter 5 498 06-05-2016, 05:33 PM
Last Post: SaldusMiegas

Forum Jump:

New Posts   Today's Posts




About Apnea Board

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

For any more information, please use our contact form.