Time to first event?

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Time to first event?

Post by BasementDwellingGeek » Mon Feb 06, 2012 2:23 pm

Greetings forum viewers,

I've been using CPAP for about 4 months. Using info found on this forum I have created my own application for reading the SDCARD data and viewing the waveforms. I have also integrated the data from a Zeo sleep monitor so I have some idea of my sleep state when events happen.

Every morning, with my coffee, I review the nights data. It was interesting to learn that while dreaming I often exhibit Periodic Breathing, occasionally severe enough that the CPAP machine has reported a CSR. Recently I noted that the first Apnea/Hypopnea event occurs about an hour into the night, plus or minus about 20 minutes. I added a feature to my application to report the time to the first event and was blown away by the answer. There were nights that the machine didn't register an event for 5 hours. On closer examination of the wave data I found what would have been an Apnea, if it lasted one second longer, had occurred at 56 minutes into the night. There were a couple of other nights where the first event was at 2 or 2.5 hours but again there were events too short to register in the 45 to 80 minute window. On average, for 117 nights of data, the first event occurred 1:01:36 h:m:s into the session.

Has anybody else done that kind of analysis? Can anyone offer an explanation for such regularity?

I've posted my application online in case any one wants to try it.

http://www.basementdwellinggeek.org/CPA ... iewer.html

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data

User avatar
teknomom
Posts: 242
Joined: Fri Oct 07, 2011 1:04 pm
Location: Colorado

Re: Time to first event?

Post by teknomom » Mon Feb 06, 2012 6:59 pm

Sounds interesting, but what are you trying to find out - something about when you are in REM sleep? Is this useful for your therapy? After the first event, do you have large gaps without events? What is your AHI? What machine and mask do you use - you could fill in the information in the user control panel. Have you used any other software? Sleepyhead? I'm always impressed by people who can write this type of software. Glad you joined us! Sorry I'm all questions and no answers.

_________________
Mask: Swift™ FX For Her Nasal Pillow CPAP Mask with Headgear
Additional Comments: EPAP 5-15, PS 0-20, Auto BPM, BiFlex 2. SleepyHead software on a Mac, CMS50E Pulse Oximeter, Zeo
My new machine is called Maria,
because: "They Call the Wind Maria"
from the musical "Paint Your Wagon"
https://www.youtube.com/watch?v=yG4rxHgq ... re=related
PS: I love my "Wind", Maria

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

Re: Time to first event?

Post by jedimark » Tue Feb 07, 2012 5:12 am

BasementDwellingGeek wrote:Greetings forum viewers,

I've been using CPAP for about 4 months. Using info found on this forum I have created my own application for reading the SDCARD data and viewing the waveforms. I have also integrated the data from a Zeo sleep monitor so I have some idea of my sleep state when events happen.

Every morning, with my coffee, I review the nights data. It was interesting to learn that while dreaming I often exhibit Periodic Breathing, occasionally severe enough that the CPAP machine has reported a CSR. Recently I noted that the first Apnea/Hypopnea event occurs about an hour into the night, plus or minus about 20 minutes. I added a feature to my application to report the time to the first event and was blown away by the answer. There were nights that the machine didn't register an event for 5 hours. On closer examination of the wave data I found what would have been an Apnea, if it lasted one second longer, had occurred at 56 minutes into the night. There were a couple of other nights where the first event was at 2 or 2.5 hours but again there were events too short to register in the 45 to 80 minute window. On average, for 117 nights of data, the first event occurred 1:01:36 h:m:s into the session.

Has anybody else done that kind of analysis? Can anyone offer an explanation for such regularity?

I've posted my application online in case any one wants to try it.

http://www.basementdwellinggeek.org/CPA ... iewer.html
Greetings fellow hacker..

Screenshots look good.

_________________
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
BasementDwellingGeek
Posts: 262
Joined: Sat Nov 05, 2011 12:54 pm
Location: N Billerica, MA, USA
Contact:

Re: Time to first event?

Post by BasementDwellingGeek » Tue Feb 07, 2012 9:35 am

My average AHI over 118 sessions is 1.67, this is a far cry from the 70 it was in the initial sleep study. I pretty much had to insist my GP refer me to the study, he tried to talk me out of it! Being not interested in being tied to a machine at night I opted for surgery that was totally ineffectual. My post surgery AHI was 73. So, here I am, a hosehead, with a setting of 13cm. My AHI for the first 10 mights was 2.18, so I must be adapting. The worst night recorded was 4.75.

I generally do go long periods of time with only Snores, 0e unknowns with occasional pressure pulses. Then there will be a short period, perhaps a minute or 2, never more than 3, of distorted breathing, registering a few (1-3) CA or OA or Hypopneas. Then another bout in a few minutes or a few hours.

The treatment seems to be effective with long periods of “normal” breathing. There are very weird breaths interspersed with the normal breathing, such as 3 part super inhales often followed very short 3-6 seconds of flat before exhaling, or an inhale followed by half an exhale, flat, another inhale and then return to normal. It has been and eye opening experience.

Before I got the Zeo I noticed Apneas during periods when I “knew” I was awake in the morning before getting out of bed, I could feel pressure pulses. I was looking for some sort of confirmation that Zeo was able to provide. I wish the Zeo was more granular. It averages brain waves over a 30 second period to report one of only a few states (light sleep, deep sleep, deeper sleep, REM, awake and unknown) for the period. There is a more or less real-time output that will require more hardware and software processing to incorporate. The other downside is, as far as I know, no way to set the time on the CPAP. So synchronization between the two data streams is somewhat nebulous. On many nights I can see Zeo reporting a transition to awake in near temporal proximity to Apnea events. So the big question is “is the Apnea waking me or was it caused the spastic manual breathing?”

jedimark, I thank you and nuffle for forging the way. I couldn't have gotten here without your work. I am more of a hack than a hacker.

I did try SleepyHead and occasionally use it to check my work. Early on, without referencing the help system, I couldn't get it to load my data. I had been looking for a project to use to learn C#. Being stymied by SleepyHead gave me the impetus to buy-in to C# and the .net thing. Later I did read the help system and realized intuitive means different things depending on one's frame of reference.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: own home grown SW to make it all work together, SH too.
bdg
(PR System One REMstar Pro CPAP Machine with C-Flex Plus and related humidifier as backup)

There are two types of people in this world. Those that can extrapolate from incomplete data