Pavlok-Nudge: A Feedback Mechanism for Atomic Behaviour Modification with Snoring Usecase

Md Rakibul Hasan, Shreya Ghosh, Pradyumna Agrawal, Zhixi Cai, Abhinav Dhall, Tom Gedeon

This paper introduces Pavlok-Nudge, an automated framework designed to help individuals break "atomic" habits—specifically snoring—using a combination of lightweight deep learning and wearable aversion therapy. By replacing manual device triggers with a real-time detection pipeline, the authors demonstrate a path toward seamless, software-driven behavioral intervention.

TL;DR

The researchers developed an automated aversion therapy system that detects snoring in real-time using a tiny 1D Convolutional Neural Network (CNN) and triggers a Pavlok wearable to nudge the user. Their model achieves state-of-the-art (SOTA) accuracy (0.99) while using 99.8% fewer parameters than previous models, making it ideal for mobile deployment.

What Problem Does This Paper Address?

Behavioral Intervention Technologies (BITs) aim to modify human habits, but many current solutions, like the Pavlok wearable, rely on manual operation or simple timers. For a habit like snoring, manual intervention is impossible since the user is asleep.

Snoring isn't just a nuisance; it’s strongly correlated with obstructive sleep apnea and other serious health issues like heart disease and depression. While sleeping on one's side is a known remedy, maintaining that posture involuntarily is difficult. The authors sought to bridge this gap by creating a system that "senses" the behavior and "nudges" the user automatically, turning a passive wearable into an active behavioral coach.

Fig. 1. Pavlok-Nudge Overview. Pavlok-Nudge is an interactive, nearly real-time soft- ware application aiming to aid individuals in atomic behaviour modification. Here, we present the use case for snoring behaviour modification. Our proposed solution con- sists of the wrist-borne Pavlok and a smartphone (see 1, 2, 3). The microphone on the mobile device captures audio, which is further passed through a deep learning-based framework to detect snoring sounds. Upon snoring detection, the mobile device pro- vides a signal to the Pavlok to nudge the user for a posture change to stop snoring (see 2). Scenarios (1), (2) and (3) happen sequentially over time.

Methods

The Pavlok-Nudge pipeline consists of three main components: a microphone-equipped device (smartphone/laptop), a deep learning model, and the Pavlok wearable.

  1. Feature Extraction: The system captures audio and segments it into 1-second chunks. It then extracts Mel-frequency cepstral coefficients (MFCCs), a standard technique in speech processing that represents the short-term power spectrum of sound.
  2. The Model: The core is a remarkably lightweight 1D CNN. While many SOTA models for audio use massive 2D CNNs (like VGG19) on spectrograms, this paper uses just two convolutional layers and one fully connected layer.
  3. Voting Strategy: To prevent "false nudges" from isolated noises, the system uses a 10-second sliding window. A nudge is only delivered if a certain percentage (e.g., 70%) of the 1-second segments in that window are classified as snoring.
  4. The Nudge: Once snoring is confirmed, the smartphone sends a signal via Bluetooth Low Energy (BLE) to the Pavlok device, which delivers a user-defined stimulus (beep, vibration, or electric shock).
Fig. 2. Pavlok-Nudge Workflow. The Pavlok-Nudge framework senses the environment using the microphone of a mobile or laptop device. To process the audio input, a non-overlapping sliding window-based approach divides the input audio into 1-second chunks, which are then fed to a deep learning-based snore detection model. After collecting predictions on a certain number of chunks (e.g., 10 seconds), a voting strategy (e.g., 70%) is used to determine if the incoming signal belongs to the snore category. Finally, upon reaching a decision, the system utilises Bluetooth to connect with the Pavlok device and deliver a user-specific “nudge”. Refer to Sect. 3 for additional details or model architecture, such as kernel size, dropout rate and activation functions.

Datasets

The authors evaluated their framework using two primary sources:

  • Khan Dataset: 1,000 one-second samples (500 snoring, 500 non-snoring). Non-snoring sounds include common bedroom noises like baby crying, rain, and ticking clocks.
  • MaleFemale Dataset: 1,000 snoring sounds (500 male, 500 female) sourced from Kaggle.
  • Combined Dataset: A merged set of 2,000 samples used to test the model's robustness across different genders and complexities.

Key Insights and Ideas

  • Extreme Efficiency: The most striking insight is the parameter count. The proposed model uses only 1,337 parameters. Compare this to previous SOTA models that used over 1.2 million parameters. This reduction (99.8%) allows the model to run locally on almost any mobile device with negligible battery drain.
  • 1D vs. 2D CNNs: The authors show that for specific "atomic" sounds like snoring, a 1D CNN operating on MFCC time series is sufficient and far more efficient than treating audio as a 2D image (spectrogram).
  • Closing the Loop: By integrating a commercial wearable (Pavlok) with a real-time detector, they move aversion therapy from a conscious effort to an automated physiological feedback loop.

Key Results

The lightweight 1D CNN doesn't just match previous work; it often exceeds it:

  • Accuracy: Achieved 0.99 test accuracy on the Khan benchmark.
  • Recall: Achieved a recall of 1.00, meaning the system identified every single snoring instance in the test set—crucial for an effective intervention.
  • Robustness: Even when tested on the more complex combined dataset (Khan + MaleFemale), the model maintained a high AUROC of 0.94.
Fig. 3. Receiver operating characteristic curve on the test sets.

Limitations and Future Work

Despite the high accuracy, the authors identify several hurdles for real-world deployment:

  • Speaker Diarization: The current model cannot distinguish who is snoring. In a shared bed, the device might nudge the Pavlok wearer even if their partner is the one snoring. Future work aims to integrate speaker diarization to isolate the user's specific "voice."
  • Clinical Validation: While technically sound, the system hasn't undergone long-term clinical trials to prove it effectively "cures" snoring or sleep apnea over time.
  • Privacy: Continuous audio monitoring in a bedroom raises significant privacy concerns. The authors mitigate this by performing all processing in real-time and deleting audio buffers immediately after prediction, but user trust remains a factor.

The code and model are open-sourced, providing a foundation for others to apply this "detect-and-nudge" framework to other habits like nail-biting or posture correction.

Summary updated

Abstract

This paper proposes an atomic behaviour intervention strategy using the Pavlok wearable device. Pavlok utilises beeps, vibration and shocks as a mode of aversion technique to help individuals with behaviour modification. While the device can be useful in certain periodic daily life situations, like alarms and exercise notifications, it relies on manual operations that limit its usage. To automate behaviour modification, we propose a framework that first detects targeted behaviours through a lightweight deep learning model and subsequently nudges the user. Our proposed solution is implemented and verified in the context of snoring, which captures audio from the environment following a prediction of whether the audio content is a snore or not using a lightweight 1D convolutional neural network. Based on the prediction, we use Pavlok to nudge users for preventive measures, such as a change in sleeping posture. We believe that this simple solution can help people change their atomic habits, which may lead to long-term health benefits. Our proposed lightweight model (99.8% fewer parameters over SOTA; 790,273$\rightarrow$1,337) achieves SOTA test accuracy of 0.99 on a public benchmark. The code and model are publicly available at https://github.com/hasan-rakibul/pavlok-nudge-snore.
BibTeX
@misc{hasan2023pavlok,
  author = {Md Rakibul Hasan and Shreya Ghosh and Pradyumna Agrawal and Zhixi Cai and Abhinav Dhall and Tom Gedeon},
  title = {{Pavlok-Nudge: A Feedback Mechanism for Atomic Behaviour Modification with Snoring Usecase}},
  year = {2023},
  eprint = {2305.06110},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.06110},
}
Figure