SleepyHead resmed loader

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Wed Jun 29, 2011 9:37 pm

Otter wrote:Just a thought: It would be nice to be able to superimpose Therapy Press and Exp Press on Mask Press. I've done that a couple times in EDFB with TP and MP, but it's a PITA to set up. It's nice to see them all together, though, and as TP and EP will be at the extremes, and MP will meet them only briefly, it wouldn't be cluttered.
It's possible.. Not sure how pretty it would look in SH.. My nifty graphing engine allows layered datasets.. this type of thing may only work in AntiAliased mode (Which I still like the idea of being able to turn it on and off at will)

SH doesn't have all the smarts to how to decide where everything goes yet.. that's pretty darn complicated actually, it will happen though, as this is what I wanted for this software in the first place..

I'll settle for data access for now

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Wed Jun 29, 2011 9:39 pm

Slinky wrote:JediMark, do you have a pdf of the Resmed S9 VPAP Auto Clinicians Manual?? That may have more comprehensive information/explanation of the various terms and what they portend.
On the other hand, the Resmed S8 VPAP Auto (released January 2008) Clinicians Manual was MUCH more explicit and informative than the Resmed S8 VPAP Auto 25 (released July 2008) Clincians Manual.

Jimbo tracked it down for me.. I'll have a read and see if it makes anything in my foggy brain click..

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Wed Jun 29, 2011 10:01 pm

LittleRedTruck wrote:This is wonderful, your designing this! Wondering when it should be available for us S9 users and if it will function for the S9 Vpap auto. thanks, dan
It won't be "ready" ready for a while, but I'll try to put up a little sneak preview as soon as I can get it consistent enough.

ResMed is actually easy, because the data is in the open EDF format.. Now I've written the EDF parser, it's just a case of presenting the graphs and data.

After this ResMed stuff is done, I've got one more slice of "heavy work" to do with the graph layout stuff.. At the moment layout is a little "static", and I don't like this. This may take a week or two (or three.) After this, I go into major bug fixing mode.. (I've also got to finish the journal bits.. only the notes area is done, I still want to do weight, tiredness levels, meds, etc..)

Source codes on GIT right now for any techy types who have gcc compiler & Qt SDK setup..

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Wed Jun 29, 2011 11:18 pm

Here's a screenshot of actual ResMed S9 graphs..

A lot is missing.. (I just have to create the summary indexes to get it back) I've got a lot of work to do with graph layout.. I want to be able to reorder, switch graphs off, and especially only show what graphs are available on the machine. Above this is the same events flags as I use with PRS1.. Only really has 3 flags available (OA, H & Central) on this AutoSet.

The divisor/multipliers for some of the graphs is wrong. This is something you guys can figure out when you run it side by side next to resscan.. Very easy for me to fix in the code.
Leaks sorta works.. It may just be that the owner of the dataset I'm playing with has their leaks exceptionally well controlled.

Hours isn't totally accurate as I'm being lazy and just using the flow waveforms time here. I'll fix it later..

Thats Mask Pressure overlaid over the Flow waveform.. The overlay bars need adjusting a bit for this to look any good. (Looking at the min/max scaling, those two were kind of designed to go together by ResMed) It doesn't have to be done this way.. It's just saving screen space for now..

Image

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Thu Jun 30, 2011 5:12 am

Is there a reason FFL (Flow Limitation?) looks so similar like the Snore graph?

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
Otter
Posts: 1063
Joined: Sat Mar 19, 2011 5:02 pm

Re: SleepyHead resmed loader

Post by Otter » Thu Jun 30, 2011 5:45 am

jedimark wrote:Is there a reason FFL (Flow Limitation?) looks so similar like the Snore graph?
Probably, but I think it's in the data set you're looking at. In the one I have up, they look similar only in resolution, and don't seem to be following each other at all.

_________________
Mask: Quattro™ FX Full Face CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Software: SleepyHead 0.9 beta

User avatar
Breathe Jimbo
Posts: 954
Joined: Sun Sep 12, 2010 3:02 pm
Location: Pasadena, CA

Re: SleepyHead resmed loader

Post by Breathe Jimbo » Thu Jun 30, 2011 12:56 pm

I suspect snoring will not occur without a flow limitation. How could it?

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Since 9/9/10; 13 cm; ResScan 3.16; SleepyHead 0.9; PapCap

User avatar
Lizistired
Posts: 2835
Joined: Tue Dec 14, 2010 10:47 pm
Location: Indiana

Re: SleepyHead resmed loader

Post by Lizistired » Thu Jun 30, 2011 7:43 pm

But Flow limitation occurs without snoring. So they don't always look alike.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Swift FX sometimes, CMS-50F, Cervical collar sometimes, White noise, Zeo... I'm not well, but I'm better.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Thu Jun 30, 2011 8:04 pm

Ah ok.. I get it now

Snoring causes flow limitation, but not the other way around..

This person's data showed lots of snore, so that's why the graphs looked the similar.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
dsm
Posts: 6996
Joined: Mon Jun 20, 2005 6:53 am
Location: Near the coast.

Re: SleepyHead resmed loader

Post by dsm » Thu Jun 30, 2011 8:42 pm

jedimark

Looks like you are doing some interesting work there. Keep it up

Also I saw questions re the different data values incl Mask Press data - below
are some thoughts re what this pressure might actually be ...

my guess is that this value may be from those Resmed machines that use a
proximal line from the machine to the mask & sample the actual pressure at t
he mask vs the guessimated pressure at the mask.

Most machines using a standard air hose to the mask, do an estimate of the
pressure at the mask. There are losses that occur as the air flows. As you can
imagine when the air isn't moving along the 6 foot hose, the pressure is going
to be pretty close to static at each end, but when say 10 CMs of pressure is
applied at the machine end and the air is flowing (person breathing in at max
rate), the loss can be of the order of 1.0 or more CMs of pressure along the hose.

The Vpap Adapt uses real time sampling at the mask via its proximal line (this
is a very small air line that either is attached outside the main hose or goes
inside the main hose & is used to take a pressure reading at the mask. The
vpap adapt with its SV mode rely on such sampling whereas the Bipap Auto SV
gets by with a guestimate of mask pressure.

This 'proximal line' mask pressure sensing helps with accurate leak loss estimates
as well as providing very accurate data when the machine has decided it needs
to rapidly increase ipap pressure to keep the user on target.

PS I gather Resmed have released a new S9 based version of the Vpap that does
ASV. What I don't know is if this new machine still uses a 'proximal line' up to
the mask like the older Vpap Adapt SV does. Perhaps someone with one can say.

Cheers

DSM (in Sinney)
xPAP and Quattro std mask (plus a pad-a-cheek anti-leak strap)

User avatar
Lizistired
Posts: 2835
Joined: Tue Dec 14, 2010 10:47 pm
Location: Indiana

Re: SleepyHead resmed loader

Post by Lizistired » Thu Jun 30, 2011 8:54 pm

If you need ResScan files with leak data, let me know. I've got plenty of them.

Your work looks great. I keep trying to click on that image!
Will you be able to move the fiedls around or close the ones you aren't interested in?

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Swift FX sometimes, CMS-50F, Cervical collar sometimes, White noise, Zeo... I'm not well, but I'm better.

User avatar
Breathe Jimbo
Posts: 954
Joined: Sun Sep 12, 2010 3:02 pm
Location: Pasadena, CA

Re: SleepyHead resmed loader

Post by Breathe Jimbo » Thu Jun 30, 2011 9:11 pm

Lizistired wrote:Will you be able to move the fiedls around or close the ones you aren't interested in?
That is Mark's plan.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Since 9/9/10; 13 cm; ResScan 3.16; SleepyHead 0.9; PapCap

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead resmed loader

Post by jedimark » Thu Jun 30, 2011 9:17 pm

I'm looking at AutoSet data here and it's fields are populated with something.. The Elite model also has data, although it reduces the resolution (I bet it uses the same sensors, with dumbing down in the devices firmware)
It's a little confusing there is two Mask Pres data fields in each group of session files.

Thanks for the offer Liz.. that would be great.. I think I've got Leak figure out right. The moving and closing bit is the job I'm doing now.. It's not as easy as it sounds when multiple machines are involved, so It will likely take a while for me to get it all figured out..

I need to get my hands on some ResMed VPAP data.. already have BIPAP data support for PRS1..

Also, do any S8 users have any data they would mind sharing? I'm pretty sure this will work for S8 too, but I'd like to test this properly before unleashing in the wild...
How is this data accessed? Is this stored on an SD card? If not does it at least get it's own drive letter in windows?

ASV is a little over my head right now, I've kind of backgrounded it till I get everything else working.. I've got some serious reading to do on a day that my brain fog is bearable..
There won't be that much extra to add with ASV.. I just need to understand it better.. The underlying structures can handle pretty much any kind of data recording machine, so won't be a problem leaving it for later.
I have some ASV data for the PRS1 to work with. I'm still going to need some ASV data for the ResMeds.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
dsm
Posts: 6996
Joined: Mon Jun 20, 2005 6:53 am
Location: Near the coast.

Re: SleepyHead resmed loader

Post by dsm » Thu Jun 30, 2011 9:32 pm

Jedimark

I can email you data from the original Vpap Adapt SV. Just pm me your email addr or I can load it on my server & send you a link.

DSM
xPAP and Quattro std mask (plus a pad-a-cheek anti-leak strap)

User avatar
Slinky
Posts: 11372
Joined: Wed Nov 01, 2006 3:43 pm
Location: Mid-Michigan

Re: SleepyHead resmed loader

Post by Slinky » Thu Jun 30, 2011 10:00 pm

jedimark, I can mail you files from the S8 Elite (AutoScan 5.7) and from the S8 AutoSet Vantage and S8 VPAP Auto (January 2008 release). The S8 VPAP Auto 25 was a July 2008 release. And no, the two 2008 release dates are NOT a typo. The AutoSet Vantage and VPAP Auto files are ResScan 3.7 or 3.10 files.

_________________
Mask: Quattro™ FX Full Face CPAP Mask with Headgear
Additional Comments: PR SystemOne BPAP Auto w/Bi-Flex & Humidifier - EncorePro 2.2 Software - Contec CMS-50D+ Oximeter - Respironics EverFlo Q Concentrator
Women are Angels. And when someone breaks our wings, we simply continue to fly.....on a broomstick. We are flexible like that.
My computer says I need to upgrade my brain to be compatible with its new software.