Respiratory Inhaler Sound Event Classification Using Self-Supervised Learning

Davoud Shariat Panah, Alessandro N. Franciosi, Cormac McCarthy, Andrew Hines2025

TL;DR

This paper tackles the challenge of accurately classifying respiratory inhaler sounds to monitor medication adherence, a crucial factor for asthma management. By adapting the self-supervised learning model wav2vec 2.0, they achieve high classification accuracy and demonstrate that a generic model can be effectively personalized for different inhaler types and even consumer-grade audio capture devices like smartwatches with minimal data.

What Problem Does This Paper Address?

Millions worldwide suffer from asthma, a chronic respiratory condition managed with controller medications delivered via handheld inhalers. However, a significant problem is low adherence to correct inhaler usage techniques, leading to suboptimal medication benefits. While automated inhaler sound classification has emerged as a promising solution for adherence monitoring, existing models often struggle to generalize across different inhaler types (e.g., pressurized metered-dose inhalers - pMDIs vs. dry powder inhalers - DPIs) and audio capture hardware. This limitation hinders the practical application of these technologies in real-world scenarios. Furthermore, previous research primarily relied on specialized microphones embedded in inhalers, overlooking the potential of ubiquitous consumer devices like smartwatches.

Methods

The core of this research lies in adapting the wav2vec 2.0 self-supervised learning model for inhaler sound classification. Wav2vec 2.0 is a powerful framework for learning representations from raw audio without explicit labels during a pre-training phase. The authors leverage this by:

  • Pre-training: Training wav2vec 2.0 on large amounts of unlabeled inhaler sound data. This allows the model to learn general acoustic features relevant to inhaler usage.
  • Fine-tuning: Adapting the pre-trained model to a specific classification task (identifying actuation, exhalation, and inhalation events) using smaller, labeled datasets.
  • Model Adaptation (Re-finetuning): A key innovation is exploring how to adapt a model trained on one type of inhaler (e.g., pMDI) to another (e.g., DPI) by further fine-tuning it with very limited labeled data from the target inhaler. This addresses the generalization challenge.

Datasets

The study utilizes two datasets:

  • DPI-Watch Dataset: This is a newly introduced dataset collected by the authors using a Google Pixel Watch 2 as the audio capture device and placebo DPI inhalers. It contains 71 recordings from 7 participants, manually segmented into actuation, exhalation, and inhalation events. This dataset is publicly available.
  • Respiratory and Drug Actuation (RDA) Dataset: This publicly available dataset consists of inhaler sound recordings captured with a microphone attached to a pMDI inhaler. It contains 360 audio recordings from 3 participants, segmented into drug actuation, exhalation, inhalation, and noise. The noise class was excluded for this study.

Both datasets were resampled to 16,000 Hz and amplitude normalized for training.

Key Insights and Ideas

  • Smartwatches as Viable Audio Capture Devices: The study demonstrates that smartwatches, with their ubiquitous presence and built-in microphones, can effectively capture inhaler sounds for adherence monitoring. This opens doors for personalized, non-intrusive health tracking.
  • Self-Supervised Learning for Domain Adaptation: Wav2vec 2.0 proves to be highly effective for learning robust representations from inhaler sounds. Crucially, its ability to be fine-tuned with minimal data allows for adapting a general model to specific inhaler types and audio capture hardware, overcoming the limitations of previous domain-specific models.
  • The Power of Minimal Data Fine-tuning: The research highlights that even very small amounts of labeled data (as little as 15 seconds of inhaler sounds) can significantly improve the performance of a pre-trained model when adapting it to a new inhaler type. This is a game-changer for creating personalized and scalable solutions.
  • Actuation vs. Inhalation/Exhalation: While the model achieves high accuracy for exhalation and inhalation events even with minimal fine-tuning, the actuation event proves more challenging. This is attributed to the inherent acoustic differences in actuation mechanisms between pMDI and DPI inhalers, and it's deemed clinically less critical as most user errors occur during inhalation/exhalation.

Key Results

  • High Accuracy on DPI Sounds: Models pre-trained and fine-tuned on DPI inhaler sounds achieved a Unweighted Average Recall (UAR) and F1-score of 0.98 on the DPI-Watch dataset.
  • Poor Generalization from pMDI to DPI: A model trained on pMDI sounds (RDA dataset) showed a significantly lower UAR of 0.54 when tested on DPI sounds (DPI-Watch dataset), confirming the generalization challenge.
  • Successful Model Adaptation: By re-finetuning the pMDI-trained model (MDI_MDI) on the DPI-Watch dataset, the MDI_DPI model achieved a UAR and F1-score of 0.98 with just 4.5 minutes of fine-tuning data. Even with as little as 15 seconds of data, the model achieved high recall for exhalation and inhalation classes.

Limitations and Future Work

  • Limited Participant Diversity: The DPI-Watch dataset was collected from researchers, and the RDA dataset had only three participants. Future work will involve validating the models on a larger and more diverse cohort of users.
  • Focus on Technique vs. Efficacy: While the study focuses on classifying inhaler usage events, future research aims to analyze the efficacy of inhaler usage, providing deeper insights into patient medication adherence.
  • Broader Inhaler Type Coverage: The current study primarily focuses on pMDI and DPI. Future work will extend to other inhaler types and explore adaptation across different DPI devices.
  • Real-world Deployment: The authors envision integrating these models into mobile phone applications connected to smartwatches for personalized respiratory coaching and patient monitoring, paving the way for real-world deployment.

Summary updated

Abstract

Asthma is a chronic respiratory condition that affects millions of people worldwide. While this condition can be managed by administering controller medications through handheld inhalers, clinical studies have shown low adherence to the correct inhaler usage technique. Consequently, many patients may not receive the full benefit of their medication. Automated classification of inhaler sounds has recently been studied to assess medication adherence. However, the existing classification models were typically trained using data from specific inhaler types, and their ability to generalize to sounds from different inhalers remains unexplored. In this study, we adapted the wav2vec 2.0 self-supervised learning model for inhaler sound classification by pre-training and fine-tuning this model on inhaler sounds. The proposed model shows a balanced accuracy of 98% on a dataset collected using a dry powder inhaler and a smartwatch device. The results also demonstrate that re-finetuning this model on minimal data from a target inhaler is a promising approach to adapting a generic inhaler sound classification model to a different inhaler device and audio capture hardware. This is the first study in the field to demonstrate the potential of smartwatches as assistive technologies for the personalized monitoring of inhaler adherence using machine learning models.Clinical relevance-Accurate classification of inhaler sounds, which can be captured using consumer devices, is an essential step toward developing personalized systems for assessing inhaler compliance, which can improve patient outcomes by ensuring proper medication delivery and effectiveness. Individual monitoring of inhaler adherence could also play a key role in evaluating medication efficacy in future personalized medicine clinical trials.
BibTeX
@misc{panah2025respiratory,
  author = {Davoud Shariat Panah and Alessandro N. Franciosi and Cormac McCarthy and Andrew Hines},
  title = {{Respiratory Inhaler Sound Event Classification Using Self-Supervised Learning}},
  year = {2025},
  doi = {10.1109/embc58623.2025.11252671},
}
Figure