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

OSCAR Export of Raw Per-Graph Data
#1
OSCAR Export of Raw Per-Graph Data
The current CSV export options in OSCAR focus mainly on log, summary, and event-type data. I, and probably others of an analytical frame of mind, would find it handy to be able to export the raw data from each of the displayed graphs.

In my case, I see a distinctive 4 Hz signal in my mask pressure data that has an excellent correlation with my apnea events—better, even, than what OSCAR flags. I want to experiment with automated detection of this signal. For that, I need to extract the raw mask pressure data.

I’ve started writing my own extractor from the SD card data files, and I’ll probably have that long done before this feature could be added to OSCAR, but it seems worth asking for it anyway.

For the export interface, I imagine a fourth radio button for “Raw Data” that, when selected, adds a pull-down menu to select one of the graphs by name. The export file’s default name would also reflect this choice. The data would be CSV with an initial header text line. (Extra points for a binary export option as well.)

The CSV data could be imported into, for example, Excel for special analysis. Or something more creative and specific, like my plan to save it as a WAV file and open it in Audacity to be displayed as a frequency spectrogram—the better to visualize my 4 Hz signal. Smile


(I suppose I could ask for a spectrogram display option to be built into OSCAR itself, but I don’t want to ask for the world...)
Post Reply Post Reply
#2
RE: OSCAR Export of Raw Per-Graph Data
I don't think you want to see many hours of a 25 Hz, or even a half Hz, 16 bit signal transformed into an ASCII csv file. It's going to be pretty huge, for no real benefit. If a .wav file can handle such low frequencies - half Hz ? - it would be a better choice.

The edf format is actually pretty good for handling this kind of data, and ResMed and, now F&P, use it for flow and pressure data. One of the links on the edfinfo web site is to a pretty nice display package, and there may be some analysis packages there, as well.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#3
RE: OSCAR Export of Raw Per-Graph Data
Nonsanity Wrote:In my case, I see a distinctive 4 Hz signal in my mask pressure data that has an excellent correlation with my apnea events—better, even, than what OSCAR flags.

Welcome to Apnea Board. I think that 4Hz signal would be the forced oscillation technique (FOT) that Resmed uses to distinguish between obstructive and clear-airway apneas. AFAIK only Resmed uses it, and not on all machines (eg the ASV machines don't have it). I don't know if the machine data includes a marker for FOT starting - I doubt it.

Regarding what Oscar flags - it only reports the data that was output by the machine, so if the machine flags an event then so will Oscar.
Post Reply Post Reply
#4
RE: OSCAR Export of Raw Per-Graph Data
(11-25-2019, 06:45 PM)DeepBreathing Wrote:
Nonsanity Wrote:In my case, I see a distinctive 4 Hz signal in my mask pressure data that has an excellent correlation with my apnea events—better, even, than what OSCAR flags.

Welcome to Apnea Board. I think that 4Hz signal would be the forced oscillation technique (FOT) that Resmed uses to distinguish between obstructive and clear-airway apneas. AFAIK only Resmed uses it, and not on all machines (eg the ASV machines don't have it).

That's exactly what I saw almost two years ago during a titration study on a ResMed AirCurve 10 VAuto. I was wondering what it was back then and found the same info online, that ResMed does this to determine a central apnea by testing for a clear airway. And no, my ASV does not do it.

Mine old SleepyHead data looked like this (4Hz ripple on the Flow Rate and Mask Pressure graphs).  I thought it was a crafty and cool technique they used.

[Image: attachment.php?aid=17485]


Attached Files Thumbnail(s)
   
RayBee

~ Self-Treatment - via ApneaBoard experts.
~ Self-Pay - no help from Kaiser other than getting my script, then a pat on the butt and out the door.
~ Self-Educated - via ApneaBoard experts, its many users, and posted reference material.
~ Complex Apnea - All Night AHI=34.2/h, Supine AHI=45.5/h
~ Using a 2021 16" MacBook Pro M1 Max, 32 GB, 1 TB, macOS Monterey V12.6.2.
~ Pay no attention to the dog behind the cup, he ain't a docta, and does not give medical advise.
~ Woof, woof.

I-love-Apnea-Board
Post Reply Post Reply
#5
RE: OSCAR Export of Raw Per-Graph Data
I bought the BiPAP version of the ResMed 10 S and worked out the pressure values that worked for me while waiting to see my doc for the results of the sleep test. After showing him my data (thanks to OSCAR) he told me to keep using my settings. They took me down to <1 AHI from my test result of 88. They had been having trouble working out what I needed from the test, anyway. Jumping right to BiPAP probably made it easier to identify tolerable settings that worked after only four night’s fiddling.

I suspected that the 4 Hz signal was from the machine, though the doc thought it was me. I pushed the question aside as moot—the signal was there, that was enough.

I suppose my day job of working with voluminous LiDAR data prevents me from thinking much of multi-gigabyte data files. Smile

I’ll withdraw my request, complete my EDF parser, and have it output a WAV file. It seems like a hack, but there are quite a few audio analysis options that would then open up. Hearing my sleep is just a curious bonus. Smile
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question OK TO IMPORT SLEEP DATA FROM OLD SD CARD INTO OSCAR W/O MESSING UP CURRENT DATA? Plmnb 1 77 Today, 01:07 AM
Last Post: Ibrumley
  Oscar question - flow rate graph not showing kkjacks 7 108 03-23-2024, 11:12 AM
Last Post: kkjacks
  Trouble importing data to Oscar bubbafoxus 2 88 03-22-2024, 05:40 PM
Last Post: bubbafoxus
  OSCAR Profiles and Combining Different Brand CPAP Data StratCat48 2 49 03-22-2024, 08:00 AM
Last Post: StratCat48
  Where Oscar put the data file? Rosacer24 0 60 03-22-2024, 12:16 AM
Last Post: Rosacer24
  There's 1.5 years of data in my OSCAR, but now there's a problem Snackers 8 223 03-19-2024, 03:36 AM
Last Post: Snackers
  OSCAR v1.5.2- error code 5, unable to write to data directory sleepynotion 2 107 03-18-2024, 12:09 PM
Last Post: sleepynotion


New Posts   Today's Posts


About Apnea Board

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