By the AiryNight team
Any classifier that listens to a real bedroom will be wrong some of the time. A fan, a purring cat or a partner in the same bed can all sound like snoring to a model that only hears audio. We build AiryNight, an iPhone and Android app that records the night (only when the user starts a session), flags probable snoring with a model running on the phone, and shows a morning summary. This post is about one design question: what should happen when the user disagrees with the model?
It describes general design principles we find useful, not a walkthrough of our code.
1. Make the evidence inspectable
A correction is only meaningful if the user can check the evidence. That means keeping short clips around each flagged event so the person can replay them, rather than only showing an aggregate number.
Two consequences:
- The summary should link each flagged period to something listenable.
- The UI should be honest about what the model cannot know. In our case: the levels (light, loud, epic) are relative to the room's background noise, not decibels, and the app cannot reliably tell two sleepers in the same room apart. Saying so up front sets expectations before any correction happens.
2. Treat a correction as a first-class event, not an edit
When a user changes a classification, it is tempting to just overwrite the label. We prefer thinking of it as an override layer on top of the model output:
event.model_label = "probable_snoring" // what the model said
event.user_label = "not_snoring" // what the user said (optional)
event.effective_label = user_label ?? model_label
Keeping both makes the system explainable ("you marked this as not snoring") and reversible. It also leaves the door open to measuring, locally, how often users disagree with the model, without needing to upload audio.
3. Recompute derived metrics from effective labels
Every number in the summary should be a pure function of the effective labels and the recording metadata. In AiryNight the user-facing behaviour is simple: after a correction, the morning summary is recalculated. The score itself is defined plainly as minutes of probable snoring per analysed hour, and a night shorter than 30 minutes gets no score.
Designing metrics as pure, recomputable functions has a nice side effect: corrections, export and comparisons never drift apart, because they all read the same effective labels.
4. Decide what survives retention
Clips are the most sensitive data in the app, so they shouldn't live forever. AiryNight deletes clips automatically (after 7 days in the free version; 30 or 90 days, or a chosen period, with Premium) while the summary stays.
That forces a design decision: corrections must be applied to the summary before the evidence disappears. Once the clip is gone, the effective label and the recomputed summary are what remain. A good UX nudges people to review odd nights early, while replay is still possible.
5. Keep the loop on the device
Sounds are recorded and analysed on the phone; no feature of the app sends the audio over the internet. For a correction loop, that means the replay, the override and the recomputation all happen locally. (Precise wording matters here: optional usage statistics and purchase verification are separate from audio, so the claim is deliberately limited to audio.)
6. Don't let corrections become medical claims
A corrected summary is more faithful, but it's still an acoustic estimate. AiryNight is not a medical device: it doesn't detect sleep apnoea and cannot rule it out, and it doesn't measure sleep, breathing or oxygen. Whatever the UI does with corrections, it shouldn't imply more certainty than the audio supports.
Takeaways
- Show the evidence, not just the number.
- Store user overrides next to model output; derive an effective label.
- Make every metric recomputable from effective labels.
- Align correction UX with your retention policy.
- Keep the whole loop on-device when the raw data is sensitive.
If you're curious, AiryNight is a free download (no account required) on the App Store (iOS 15+) and Google Play (Android 8+).
- Website: https://airynight.com/en
- App Store: https://apps.apple.com/app/id6832999112
- Google Play: https://play.google.com/store/apps/details?id=com.airynight.app&hl=en
Top comments (0)