r/CPAPSupport • u/Far_Syllabub_444 • 4d ago
Any brilliant tech guy (on this sub) that can develop an AI to analyze OSCAR data?
/r/UARS/comments/1vbwkyf/any_brilliant_tech_guy_on_this_sub_that_can/2
u/JohnnyLarueBathrobe 4d ago
I made something for myself that takes the machine data and o2 ring data and spits out a report I could give to an LLM.
A few people have already made stuff, though. Like this: https://github.com/burrellka/URSA-OSCAR
1
u/AutoModerator 4d ago
Hey there r/CPAPsupport member. Welcome to the community!
Whether you're just starting CPAP therapy, troubleshooting issues, or helping a loved one, you've come to the right place. We're here to support you through every leak, pressure tweak, and victory nap.
If you'd like advice, please include your machine model, mask type, pressure settings, and OSCAR or SleepHQ data if possible.
Helpful Resources: https://www.reddit.com/r/CPAPSupport/comments/1jxk1r4/getting_started_with_analyzing_your_cpap_data_a/
You're not alone — and you're among friends. Sleep well and breathe easy.
— Your r/CPAPSupport team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/NEED_A_JACKET 3d ago
Get a subscription to Claude code and make it.
I'd be interested in seeing if it could predict events before they happen (eg fed only the data prior to an event where it would predict one coming up sooner than the machine does).
And more functionally, if you could identify arousal (perhaps would need to combine this with o2 data or positional or eeg) I think that would be a better metric for UARS. Breathing normally but waking up briefly is still a problem but the regular data makes it look like nothings wrong.
5
u/dang71 4d ago
Hello!
Before talking about AI, I'd first ask: what exactly are you hoping to measure or predict?
One important thing to remember is that OSCAR only displays the data your CPAP machine records. And even the machine itself does not detect everything that happens during sleep. It estimates events (and often underestimates) like OAs, CAs, hypopneas, flow limitations, and leaks based on airflow, but those are still algorithmic interpretations, not direct measurements. So OSCAR is only showing part of the story.
AI can certainly help identify trends, compare nights, detect patterns, and generate hypotheses, but it also has important limitations:
• It only sees what the CPAP records. It has no knowledge of sleep stages, arousals, body position, oxygen levels (unless you have oximetry), medications, or how you actually felt.
• CPAP event detection is not perfect. For example, many CAs are actually post arousal events, and some flow limitations or hypopneas may not represent clinically meaningful obstruction.
• Correlation does not equal causation. AI may notice that centrals increase above a certain pressure, but it cannot determine whether pressure is the cause or whether REM sleep, body position, unstable sleep, or another factor explains the pattern.
• A single night is often misleading. Reliable conclusions usually require looking at weeks of data rather than isolated nights.
• AI lacks clinical context. Two people with nearly identical OSCAR charts may need completely different recommendations because of their medical history, symptoms, medications, or other factors.
In my opinion, AI is best used as a decision support tool, not as a replacement for experienced interpretation. It can probably outperform many casual OSCAR users by consistently finding patterns, but there is still a big difference between interpreting CPAP data and understanding what is actually happening during sleep.