How Nocta works
Last updated November 11, 2026
Every morning Nocta reads what your CPAP machine recorded and picks one thing to tell you. It does that with fixed rules, not an AI model: the same night always gives the same result. This page lists those rules, so you can check them.
Nocta isn't a medical device. None of this has been checked against a sleep study, and none of it is a diagnosis.
What Nocta reads
- Your SD card (ResMed AirSense 10 and 11, Philips DreamStation 1 and 2, React Health Luna and BMC RESmart, Löwenstein prisma, Fisher & Paykel SleepStyle and Resvent iBreeze). It's read in your browser, or on your phone in the app; the files themselves are never uploaded. Nocta reads when the mask was on, every breathing event the machine flagged and what type it was, leak, pressure, breathing rate, breath size, snoring, flow limitation, and your machine's settings. Other machines' cards hold less of this. A DreamStation card, for example, has no breathing rate, breath size or flow limitation chart, and pressure and leak every two minutes rather than every few seconds.
- An oximeter, if one was plugged into the machine, or a Wellue O2Ring file you bring in: your oxygen and pulse through the night.
- A connected wearable (Oura or Whoop, or in the iPhone app, Apple Health, which is how an Apple Watch connects): sleep stages, heart rate, heart-rate variability, breathing rate, oxygen, workouts and steps. From an Apple Watch, breathing disturbances too.
- What you tell Nocta: your setup answers and your morning check-ins.
How each number is worked out
- Hours: the time the mask was on, from the machine's own session records.
- AHI (breathing events an hour): your machine's own AHI whenever the card keeps it, so it's the same number as on your machine's screen and in its own app. When it doesn't, Nocta counts the apneas and hypopneas the machine flagged and divides by the hours the mask was on, cutting the result off at one decimal the way a ResMed does (2.09 reads as 2.0). Apneas the machine couldn't classify count as obstructive. Every screen, the doctor summary, the widgets and Nox use this one number.
- Too short to score: a night under 2 hours gets no AHI. Two events in 20 minutes would read as 6 an hour, which says little.
- Leak: the 95th percentile, meaning the leak stayed at or under that number for 95% of the night. Minutes "above 24" are counted from the machine's 2-second readings; 24 L/min is ResMed's line for a large leak. Some machines (Philips DreamStation, Fisher & Paykel SleepStyle, newer React Health Luna firmware) record total leak instead, which includes the air your mask lets out on purpose, so their numbers run higher and are never held to that line. Nocta shows them as total leak, with the minutes the machine itself flagged as large leak. Machines that record leak beyond the vent, as ResMed does (Löwenstein, Resvent, older Luna), are held to the same 24 L/min line.
- A night used: 4 hours or more, the rule most insurers use.
- Your usual: the middle value of up to 30 scored nights before this one. Nocta needs 7 scored nights before it compares anything to your usual, and says it's still learning until then.
These are the machine's own event flags, shown as recorded. A machine flags events its own way, and a sleep lab scores them differently.
How the morning's suggestion is chosen
Every rule below looks at the night. When several match, the one highest on this list leads, and it gives one suggestion. Up to two others are mentioned in a sentence each, so nothing that matched is hidden. If the same tip was already given in the last 7 days, the next best one is used instead, unless it's "talk to your doctor", which is never swapped out.
Nocta tries not to tell you the same thing every morning. If the rule that leads is the same one that led the night before, and the night isn't clearly worse, the next rule that matched leads instead. If nothing else matched, the card says it happened again, how many nights in a row, and what the night before looked like. "Clearly worse" means up by a quarter or more and by a set amount: 1 event an hour, 5 L/min of leak, 2 more mask breaks or 30 more minutes off the mask, or an hour less on it.
Talk to your doctor
These always come first, and the suggestion is to bring it up with your sleep doctor. While one of them keeps matching, the full card shows when it starts, when it's clearly worse (up by a quarter or more, and by at least 1 an hour), and once a week otherwise. On the mornings in between, the card can lead with that night's own news, but it still carries the doctor suggestion, a short line on why, and the way to make your doctor summary. It's never dropped.
- Central apneas above 5 an hour on one night.
- Central apneas appearing or rising over two weeks: at least 2 an hour, and up by half or more on the 30 nights before (or up from almost none).
- A repeating rise-and-fall breathing pattern the machine flagged for 10 minutes or more.
- Oxygen under 90% for 5 minutes or more, on 2 or more nights in a week (with an oximeter).
- An AHI above 5 across three weeks (the middle value of 10 or more scored nights).
- The machine running at the very top of its prescribed range for 20 minutes or more, on more than one night that week. Once said, it's said again at most once a week, unless the machine spends clearly longer up there: a quarter more, and at least 10 minutes more.
Everything else
- A night too short to score (under 2 hours).
- Mask leak: a 95th percentile above 24 L/min that's twice your usual, or above 24 on 4 or more nights in a week. That second one, leaking most nights, is said once a week, not every morning.
- More breathing events: an AHI of 5 or more that's at least 1.8 times your usual (or 5 or more while Nocta is still learning your usual).
- A week above 5: the middle AHI of a week's scored nights (4 or more) above 5.
- Flow limitation: its 95th percentile at 0.25 or more, and at least twice your usual.
- A short night: under 4 hours, or 4 or more short nights in a week.
- Mask off and on: on a night of 4 hours or more, the mask came off and went back on twice or more, or was off for 30 minutes or more. Once Nocta knows your usual (7 nights), only when that's unusual for you: at least 2 more breaks than your usual, or at least 45 minutes more off the mask than usual and twice as long. A gap of 3 hours or more between sessions (an afternoon nap, say) counts as a separate sleep, not a break.
- Faster breathing: 3 or more breaths a minute above your usual.
- A dry mouth, if you said so in the morning check-in. If your machine's humidifier was switched off that night, the card says so and suggests turning it back on; if the machine measured dry air in the room (under 6 mg of water in a litre of air, about a third humidity at bedroom temperature), it names that as a possible cause.
- A better night: your lowest AHI recently, on a full night.
- Other notes: coming back after a break, a change in your machine's settings, or a mask part due for replacing.
- A steady night, when nothing above matched. The card says what was different about it, if anything was: once a week, a look at your week (nights over 4 hours, your typical AHI); an AHI at 60% or less of your usual and at least 1 lower; an hour or more longer on the mask than usual; or leak at 60% or less of your usual and at least 6 L/min lower (when your usual is 10 or more). Otherwise, that it was close to your usual. A steady card has no suggestion.
Causes are always worded as possibilities ("often", "may be related to"), and only what you told Nocta is ever cited for things the machine can't see, like your sleep position or the evening before.
What you told Nocta
- Your morning check-in. If something you logged often goes with the night's finding, the card leads its cause with it, says so in a sentence, and its suggestion goes with it (unless that tip was already given in the last 7 days). For example: alcohol, a sleep aid, or a big or late meal with more breathing events or flattened breaths; a new mask with leak or more events; a cold or a blocked nose with leak (not with a full-face mask), more events, or a short or broken night; a dry mouth with leak on a nasal mask or nasal pillows; late caffeine, stress, working late, alcohol, a nap or sleeping somewhere new with a short or broken night. A check-in added days later counts as less likely. A workout is never given as a cause of breathing events, and none of this applies to the "talk to your doctor" rules. If you said nothing unusual happened the evening before, alcohol or a late meal isn't suggested as a cause.
- Your mask. With a nasal mask or nasal pillows, breathing through your mouth is a possible cause of leak; with a full-face mask it isn't, and the cushion lifting as you turn is mentioned instead. Re-fitting tips are worded for your kind of mask. The mask you chose in Nocta comes first; if you haven't chosen one, the mask set on your machine.
- Your cushion. Its age comes from your equipment log, or else from your setup answer ("last replaced") plus the days since setup. Past 30 days, a leak night suggests replacing it. A cushion that's 14 days old or newer isn't blamed for a leak.
- How you sleep. If you said you sleep on your side, Nocta never suggests trying your side. If you said on your back, the tip and the cause say so.
When you say a card wasn't right
Under each suggestion, Nocta asks "Was this right?". If you say no, and pick a reason if you like, the rule that led that card stays quiet for you for the next 14 nights: it doesn't lead a card and isn't mentioned. These are never quieted, whatever you answer: the "talk to your doctor" rules (their card and reminder stay), oxygen dips, the machine at the top of its range, a night too short to score, and your first nights while Nocta learns your usual.
The morning check-in
After an unusual night (a card about something that was off, or a "talk to your doctor" card), Tonight asks "Anything different last night?" with a line on how it could help (for example, explaining a leak), and starts with the question most likely to. On other nights the check-in is a quiet line you can open any time. Once you answer, or tap Not now, it doesn't ask again about that night.
Wearables and oximeters
- A wearable is supporting evidence. Its readings can add a likely cause or a "worth watching" note: sleeping much longer than the mask was on, a long time to fall asleep, heart-rate variability at 70% or less of your usual, a resting heart rate 8 or more above it, or a hard workout the evening before.
- Apple Health often holds the same night from more than one app (your Apple Watch, your iPhone's bedtime, another ring's app). Nocta uses one of them per night, never a mix: an Apple Watch with sleep stages first. Its heart-rate variability is measured a different way from Oura's (SDNN rather than RMSSD), so it's only compared with your own earlier Apple Health nights.
- Breathing disturbances from an Apple Watch are shown next to your usual range. No rule reads them yet, and they're never treated as your AHI.
- A wearable's oxygen is an estimate. An average of 92% or lower on 3 or more nights in a week suggests showing your doctor, but a wearable never triggers the "talk to your doctor" rules on its own.
- An oximeter's oxygen (on the machine, or an O2Ring file) is used by the oxygen rule above. An O2Ring only fills in nights where the machine had no oximeter of its own.
What Nocta never does
- Name a diagnosis or a condition.
- Suggest a pressure, or any change to your therapy. Those are for your doctor.
- Grade your numbers with red, yellow and green scores.
- Use an AI model to decide what your night means. Nox answers questions from replies written ahead of time.
Limits
- Nocta reads ResMed AirSense 10 and 11 cards. Its readers for Philips DreamStation 1 and 2, React Health Luna and BMC RESmart, Löwenstein prisma, Fisher & Paykel SleepStyle and Resvent iBreeze are newer, so if a number doesn't match your machine's own screen, please tell us. Some of these cards keep less than others (only the machine's current settings, say, or use time to the nearest 6 minutes), and Nocta says so when it reads one.
- DreamStation reading is new and hasn't been checked against many real cards yet. The first DreamStation's reader follows an open description of its card format (the dreamstation project, Apache License 2.0); its times are shown in your device's time zone, since the card doesn't record one. A DreamStation 2 card shows its machine's own clock.
- A DreamStation 2 encrypts the files on its card. Nocta unlocks them in your browser, only so you can read your own therapy data; nothing about the card is sent anywhere to do it. Nocta reads it, and the BMC, Löwenstein, Fisher & Paykel and Resvent cards, with a separate library, nocta-card-readers, adapted from OpenCPAP and OSCAR. That library is free software under the GNU General Public License, version 3: its source.
- The machine can't tell whether you were asleep, or how you were lying.
- Consumer wearables and oximeters are less exact than the equipment in a sleep lab.
- These rules are a starting point. If something here looks wrong on your nights, tell us: Settings › Send feedback.