Transformers for rapid detection of airway stenosis and stridor

James Anibal, Rebecca Doctor, Micah Boyer, Karlee Newberry, Iris De Santiago, Shaheen N. Awan, Yassmeen Abdel‐Aty, Gregory R. Dion, Veronica Daoud, Hannah Huth, Stephanie Watts, Bradford J. Wood, David A. Clifton, Alexander Gelbard, Maria Powell, Jamie Toghranegar, Yaël BensoussanmedRxiv 2024

Abstract

Upper airway stenosis is a potentially life-threatening condition involving the narrowing of the airway. In more severe cases, airway stenosis may be accompanied by stridor, a type of disordered breathing caused by turbulent airflow. Patients with airway stenosis have a higher risk of airway failure and additional precautions must be taken before medical interventions like intubation. However, stenosis and stridor are often misdiagnosed as other respiratory conditions like asthma/wheezing, worsening outcomes. This report presents a unified dataset containing recorded breathing tasks from patients with stridor and airway stenosis. Customized transformer-based models were also trained to perform stenosis and stridor detection tasks using low-cost data from multiple acoustic prompts recorded on common devices. These methods achieved AUC scores of 0.875 for stenosis detection and 0.864 for stridor detection, demonstrating potential to add value as screening tools in real-world clinical workflows, particularly in high-volume settings like emergency departments.

Introduction

Upper airway stenosis is a dangerous narrowing of the windpipe that can lead to total airway failure. It often manifests as stridor—a high-pitched, musical breathing sound. Despite its severity, these conditions are notoriously difficult to diagnose in primary care or emergency settings; an informal poll cited in the paper found that 96% of patients with stenosis were initially misdiagnosed, often as having asthma or simple wheezing.

The "gold standard" for diagnosis is direct visualization via laryngoscopy or bronchoscopy, but these are invasive, expensive, and require specialist equipment. There is a critical need for a rapid, non-invasive screening tool that can help general practitioners and ER staff identify high-risk patients before they undergo medical interventions like intubation, which can be fatal if the airway is unexpectedly narrow.

Methods

The researchers developed a pipeline that transforms raw audio into a diagnostic prediction.

The model pipeline utilizes a pre-trained YAMNet for feature extraction followed by a custom Transformer Encoder for classification.

Acoustic Tasks

Patients performed two tasks: Forced Inhale Mouth Opened (FIMO) and normal Deep Breaths (DB). FIMO is particularly useful because it increases the likelihood of audible stridor by forcing air quickly over the vocal cords, effectively "stress testing" the airway to reveal hidden obstructions.

Feature Extraction and Model Architecture

Instead of training a model from scratch on raw audio, the team used YAMNet, a deep net pre-trained on millions of YouTube audio clips. YAMNet converted 2.5-second audio segments into 5x1024 embedding matrices. These embeddings were fed into a transformer model. Notably, the authors removed positional encodings—a standard feature in most transformers. This was done to ensure "translational equivariance," meaning the model recognizes a disease biomarker regardless of where it appears in the 2.5-second audio window. In a short clip of a patient gasping for air, the presence of the sound is more important than exactly when it occurs.

Noise Filtering

The pipeline used YAMNet’s internal classification head to automatically discard segments contaminated by electronic buzzing or microphone malfunctions, ensuring only high-quality acoustic data reached the transformer.

Datasets

The study utilized a unified dataset from two primary sources: the USF Stridor Dataset and the Bridge2AI Voice Dataset. The combined dataset included 94 patients with airway stenosis, 45 with stridor, 51 with other respiratory/voice disorders (like COPD or asthma), and 77 healthy controls.

Demographic breakdown of the study cohorts across gender and age groups.

Recordings were made using three different devices to ensure the model wasn't overfit to a specific microphone: an AudioTechnica studio mic, an Avid headset, and an internal iPad microphone. This robustness across low-cost devices suggests the model could be deployed as a mobile app in resource-constrained environments.

Results and Discussion

The models demonstrated strong performance across both primary tasks:

  • Airway Stenosis Detection: Achieved an AUC of 0.875. When calibrated to a high sensitivity (0.85) to avoid missing life-threatening cases, it maintained a specificity of 0.725.
  • Stridor Detection: Achieved an AUC of 0.864.

The model performed reasonably well across different age groups and genders, though it showed slightly higher accuracy for female patients (who are statistically more likely to suffer from idiopathic subglottic stenosis).

Limitations

The authors acknowledge several hurdles: the cohort size (45 stridor patients) is relatively small for deep learning, and labels were provided by a single expert based on audio alone. Furthermore, the model currently performs binary classification rather than correlating features with the severity of narrowing. Future testing in noisy environments, such as active Emergency Rooms, is necessary.

Conclusion

By leveraging transfer learning and customized transformer architectures, this research demonstrates that simple acoustic recordings can provide high-accuracy screening for life-threatening airway conditions. The ultimate goal is the development of a mobile application that allows a nurse or paramedic to screen a patient’s airway in seconds using nothing more than a smartphone.

Summary updated

BibTeX
@misc{anibal2024transformers,
  author = {James Anibal and Rebecca Doctor and Micah Boyer and Karlee Newberry and Iris De Santiago and Shaheen N. Awan and Yassmeen Abdel‐Aty and Gregory R. Dion and Veronica Daoud and Hannah Huth and Stephanie Watts and Bradford J. Wood and David A. Clifton and Alexander Gelbard and Maria Powell and Jamie Toghranegar and Yaël Bensoussan},
  title = {{Transformers for rapid detection of airway stenosis and stridor}},
  year = {2024},
  doi = {10.1101/2024.10.17.24315634},
  howpublished = {medRxiv},
}
Figure