Web service for viewing Respironics data

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
cpapdork
Posts: 103
Joined: Sat Nov 27, 2010 7:57 am
Contact:

Re: Web service for viewing Respironics data

Post by cpapdork » Sat Jan 01, 2011 4:54 am

M.D.Hosehead wrote:
3)
If I'm following correctly, you have the ability to change your algorithm to mark 5 consecutive blocks (10 seconds) as an "event".
I've lowered the block limit to 5 and also slightly increased the RMS threshold so more events will be detected.

You'll have to reupload files (the detection algorithms are applied when the upload is made, not when viewing).

Let me know how the new settings look! Thanks!
Image

User avatar
Amigo
Posts: 415
Joined: Sun Oct 23, 2005 4:05 am
Location: NH

Re: Web service for viewing Respironics data

Post by Amigo » Sat Jan 01, 2011 8:49 am

What an outstandingly selfless piece of coding, cpapdork.

There may be many here who cannot afford, or get a prescription for the Encore software necessary to take more active control of their therapy.

You have done them a great service.

User avatar
Southernwind
Posts: 10
Joined: Wed Dec 29, 2010 6:13 pm
Location: South Florida

Re: Web service for viewing Respironics data

Post by Southernwind » Sat Jan 01, 2011 2:31 pm

Hello CPAPDORK, and thanks for creating & sharing the technology!

I've only been using the therapy for three days now, and ordered the Encore Pro yesterday. I find your web based application quite interesting and it was working fine with IE 8.0 and my Dell Mini laptop running Windows 7 Home Pro.

Very interesting information for a newbie!!!!!

Thanks!!!
SW
Living under pressure!

cufamtx
Posts: 4
Joined: Sun Nov 14, 2010 5:30 pm

Re: Web service for viewing Respironics data

Post by cufamtx » Sat Jan 01, 2011 8:57 pm

Southernwind wrote:Hello CPAPDORK, and thanks for creating & sharing the technology!

I've only been using the therapy for three days now, and ordered the Encore Pro yesterday. I find your web based application quite interesting and it was working fine with IE 8.0 and my Dell Mini laptop running Windows 7 Home Pro.

Very interesting information for a newbie!!!!!

Thanks!!!
SW
Have to ask, where did you order Encore Pro?

_________________
Mask

User avatar
Southernwind
Posts: 10
Joined: Wed Dec 29, 2010 6:13 pm
Location: South Florida

Re: Web service for viewing Respironics data

Post by Southernwind » Sun Jan 02, 2011 8:24 am

Greetings cufamtx!
Regarding you question on where I purchased the Encore Pro....

SW[/quote]
Have to ask, where did you order Encore Pro?[/quote]

Sorry for misleading you on the Encore Pro; I just checked the order with CPAP.com, and see that it was the EncoreViewer 2.0 that I ordered.

Still very new at the usage and lingo associated with CPAP.


SW
Living under pressure!

User avatar
M.D.Hosehead
Posts: 742
Joined: Thu Jun 24, 2010 7:16 pm
Location: Kansas

Re: Web service for viewing Respironics data

Post by M.D.Hosehead » Mon Jan 03, 2011 4:07 pm

cpapdork wrote:
M.D.Hosehead wrote:
3)
If I'm following correctly, you have the ability to change your algorithm to mark 5 consecutive blocks (10 seconds) as an "event".
I've lowered the block limit to 5 and also slightly increased the RMS threshold so more events will be detected.

You'll have to reupload files (the detection algorithms are applied when the upload is made, not when viewing).

Let me know how the new settings look! Thanks!

Here's what the last two night show.

Jan 1-2:
EV 2.0 flagged 5 events--one OA, two HY and two CA. DataViewer 0.3 didn't note any "events."

Jan 2-3
EV flagged one HY and three CA's. DataViewer identified one of the CA's as an "event."


At the times of the EV flags, there are spells of no airflow that last 10 or so seconds, but containing a slight movement of air, like a small breath. EV seems to disregard that and identifies a CA, but to DataViewer,'s algorithm, the quiet period doesn't last 10 consecutive seconds.

It's still valuable to be able to look at the waveform.

_________________
Mask: Forma Full Face CPAP Mask with Headgear
Additional Comments: MaxIPAP 15; MinEPAP 10; Also use Optilife nasal pillow mask with tape

cpapdork
Posts: 103
Joined: Sat Nov 27, 2010 7:57 am
Contact:

Re: Web service for viewing Respironics data

Post by cpapdork » Sun Jan 09, 2011 9:08 am

Checking in to let you know I'm continuing to progress steadily on the web service for viewing PR data. I had hoped to release an update this weekend but I wasn't able to code as quickly as I planned.

The next update will include though:
  • improved multiple-file upload interface that will support (and require) upload of 001/002/005 files.
  • basic settings display on the report, including APAP/CPAP mode, pressure min/max, and flex type/amount
  • a "table of contents" page to browse your past uploaded sessions
Thanks for everyone's input so far, especially those who have emailed me about providing extra data. It has been extremely helpful in deducing the contents of these files. With the next release, I will be able to capture a great deal more data from more machines, and so I hope I will be able to continue extracting more info.

By the way, if there are any coders out there interested in helping, I've put the code project over on sourceforge, and you're very welcome to help out! http://sourceforge.net/projects/onkor
Image

User avatar
snnnark
Posts: 342
Joined: Thu Oct 08, 2009 12:35 pm
Location: South Africa

Re: Web service for viewing Respironics data

Post by snnnark » Sun Jan 09, 2011 10:41 am

M.D.Hosehead wrote:
At the times of the EV flags, there are spells of no airflow that last 10 or so seconds, but containing a slight movement of air, like a small breath. EV seems to disregard that and identifies a CA, but to DataViewer,'s algorithm, the quiet period doesn't last 10 consecutive seconds.

It's still valuable to be able to look at the waveform.
Is that 'small movement' not the puff of air your machine uses to check your airway?

_________________
Machine: Airsense 10 Card to Cloud
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Emay EMO-60 oximiter

User avatar
M.D.Hosehead
Posts: 742
Joined: Thu Jun 24, 2010 7:16 pm
Location: Kansas

Re: Web service for viewing Respironics data

Post by M.D.Hosehead » Sun Jan 09, 2011 1:25 pm

snnnark wrote:
M.D.Hosehead wrote:
At the times of the EV flags, there are spells of no airflow that last 10 or so seconds, but containing a slight movement of air, like a small breath. EV seems to disregard that and identifies a CA, but to DataViewer,'s algorithm, the quiet period doesn't last 10 consecutive seconds.

It's still valuable to be able to look at the waveform.
Is that 'small movement' not the puff of air your machine uses to check your airway?

Sorry I wasn't clear.

The test puffs sent by the PRS1 are regular and tiny.

What I meant by "slight movement of air" are single waves about the 1/4 the amplitude of a breath. It seems like EV2, disregards those little quarter-breaths" and, if the whole "event" lasts 10 seconds, flags that event as CA.

But it looks like cpapdork's app does not identify these "events" CA's because, by his algorithm, that little quarter-breath breaks up the apnea into two apneas, each one less than 10 seconds.

_________________
Mask: Forma Full Face CPAP Mask with Headgear
Additional Comments: MaxIPAP 15; MinEPAP 10; Also use Optilife nasal pillow mask with tape

User avatar
snnnark
Posts: 342
Joined: Thu Oct 08, 2009 12:35 pm
Location: South Africa

Re: Web service for viewing Respironics data

Post by snnnark » Sun Jan 09, 2011 2:43 pm

M.D.Hosehead wrote:
snnnark wrote:
Is that 'small movement' not the puff of air your machine uses to check your airway?

Sorry I wasn't clear.

The test puffs sent by the PRS1 are regular and tiny.

What I meant by "slight movement of air" are single waves about the 1/4 the amplitude of a breath. It seems like EV2, disregards those little quarter-breaths" and, if the whole "event" lasts 10 seconds, flags that event as CA.

But it looks like cpapdork's app does not identify these "events" CA's because, by his algorithm, that little quarter-breath breaks up the apnea into two apneas, each one less than 10 seconds.
Interesting! Is the breath in or out?

_________________
Machine: Airsense 10 Card to Cloud
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Emay EMO-60 oximiter

User avatar
M.D.Hosehead
Posts: 742
Joined: Thu Jun 24, 2010 7:16 pm
Location: Kansas

Re: Web service for viewing Respironics data

Post by M.D.Hosehead » Mon Jan 10, 2011 11:10 am

snnnark wrote:
Interesting! Is the breath in or out?
Flagged as CA by EV@. Not identified by DataViewer.


Image

_________________
Mask: Forma Full Face CPAP Mask with Headgear
Additional Comments: MaxIPAP 15; MinEPAP 10; Also use Optilife nasal pillow mask with tape

User avatar
snnnark
Posts: 342
Joined: Thu Oct 08, 2009 12:35 pm
Location: South Africa

Re: Web service for viewing Respironics data

Post by snnnark » Mon Jan 10, 2011 11:26 am

I wonder how the machine software calculates this as a CA. Perhaps it figures... The airway is clear, and the tidal volume is less than Xcm so this is a central.

Maybe Cpapdork can do something similar?

_________________
Machine: Airsense 10 Card to Cloud
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: Emay EMO-60 oximiter

User avatar
M.D.Hosehead
Posts: 742
Joined: Thu Jun 24, 2010 7:16 pm
Location: Kansas

Re: Web service for viewing Respironics data

Post by M.D.Hosehead » Mon Jan 10, 2011 1:26 pm

Or maybe something as simple as a minimum threshold tidal volume for a "breath"?

_________________
Mask: Forma Full Face CPAP Mask with Headgear
Additional Comments: MaxIPAP 15; MinEPAP 10; Also use Optilife nasal pillow mask with tape

cpapdork
Posts: 103
Joined: Sat Nov 27, 2010 7:57 am
Contact:

Re: Web service for viewing Respironics data

Post by cpapdork » Tue Jan 11, 2011 3:10 am

Just want to stress that my algorithm for detecting events is extremely basic at this point. It should help you pinpoint "quiet" areas in the waveform but that's about it.

My priority (re event detection) is to decode the recorded of events from the files directly. It will always be valuable to know what the machine itself has deemed to be an event.

Then, I would also like to be able to incorporate other researchers' event detection algorithms to this data, so that users can choose which model they would like to work with. While I believe the machine no doubt does an excellent job detecting various events, there is almost certainly new research and methods out there that could be used to improve detection.

But I likely will not spend much time on improving my own event detection algorithm because a) it would be at the expense of time used to decode the files which I feel is more urgent and b) I am entirely lacking in such expertise

I hope that others who are interested can help out in this regard though. If anyone out there is interested, you can sign up as a contributor at the project page at http://sourceforge.net/projects/onkor/

Thanks again to all who have been contributing their time and thoughts on this board and by submitting their test data.
Image

NC_Teacher
Posts: 4
Joined: Thu Dec 30, 2010 12:03 pm
Location: Fuquay Varina, NC

Re: Web service for viewing Respironics data

Post by NC_Teacher » Wed Jan 12, 2011 8:52 pm

Hey cpapdork,

I just want to let you know that I just completed my 2nd night of CPAP therapy, and your data viewer has given me a much better understanding of what this sleep apnea is all about. It's much more complex and overwhelming that I thought at first. As I look at the the waveforms I can see that there's a lot going on, but it's the pauses (or events) that I'm beginning to understand a little better. Of course, I get the 7 day average of AHI, but I wanted to know about the duration, as well as clustering, of those events.

Since I had an AHI of 58.8 during my titration, I was pretty excited to see it come down to 11.9 after just my second night. Unfortunately, most of them were clustered within a 31 minute window last night. Several of them were between 40 and 52 seconds. At this point, I'm not even sure if events of that duration are that unusual. At any rate, I'm going to try to get ahold of the the res therapist to see if I can get some answers....

Thanks again...