Home / Guides

iDontSnore guide

How snoring detection works

A snore detector does more than measure volume. The sound of a fan, cough or passing vehicle may be loud without being snoring.

Recognizing sound patterns

iDontSnore uses a local audio classification model based on YAMNet, combined with acoustic checks and a changing background-noise estimate. The aim is to recognize snoring rather than respond to every loud sound.

Why background noise matters

A microphone beside a bed hears the whole room. A fan, bedding movement, another person or audio from the phone can affect recognition. The app uses signal checks and excludes periods associated with its own interventions. Detection is still an estimate and false positives or missed events remain possible.

Detection versus response

Detecting snoring is the first step. An intervention app then decides whether a sound cue is appropriate and avoids playing cues too frequently. iDontSnore adapts the choice of sound using the observed outcomes of previous interventions.

On-device AI

The audio model runs locally rather than uploading the microphone stream to a cloud classifier. Subscription verification is a separate network operation. The detector cannot determine who is snoring, whether breathing is normal, or whether an intervention improved sleep quality.

What YAMNet contributes

YAMNet is a general audio event classification model, not a medical snoring instrument. It recognizes patterns associated with categories of sound. A classification score is not a direct measurement of how long a person has been asleep, and a model prediction alone is not proof of snoring. See the TensorFlow YAMNet documentation for the underlying model.

The app adds acoustic checks and background-noise estimation around the classifier. This is important because an overnight session contains quiet breathing, movement, environmental noise and potentially the app’s own sound cues. The aim is to avoid unnecessary interventions while retaining sensitivity to relevant sounds.

Why missed events and false alarms matter

A false positive can cause an unnecessary cue. A missed event means the app may not respond when you expect it to. Changing the phone position, background noise or microphone route can change both types of error. A lower detected total on a different device is not automatically an improvement.

When reviewing an intervention, listen to the available clip and inspect its position on the timeline. The app’s estimate is useful for personal observation but has not been validated as a clinical measurement. Read the developer’s account of testing and refinement.

Try a different approach to snoring. iDontSnore combines snoring detection with real-time sound cues. Learn about on-device detection and adaptive sound interventions.