Stethoscope-Guided Supervised Contrastive Learning for Cross-Domain Adaptation on Respiratory Sound Classification

June-Woo Kim, Sangmin Bae, Won-Yang Cho, Byungjo Lee, Ho-Young Jung

TL;DR

This paper introduces SG-SCL (Stethoscope-Guided Supervised Contrastive Learning), a novel framework designed to make lung sound classification "device-agnostic." By combining domain adversarial training with a specialized contrastive loss, the researchers successfully mitigated the performance drops caused by using different electronic stethoscopes, achieving state-of-the-art results on the standard ICBHI dataset.

What Problem Does This Paper Address?

In the world of digital health, "domain shift" is a major hurdle. For respiratory sound classification, the "domain" isn't just the patient—it’s the hardware. Different electronic stethoscopes (e.g., Meditron vs. Littmann) use different sensors, such as piezoelectric vs. condenser microphones, each with unique frequency responses and noise profiles.

When a deep learning model is trained on data from one stethoscope but tested on another, its performance often plummets because it learns to rely on device-specific "signatures" rather than the actual clinical features of the lung sounds (like crackles or wheezes). This paper tackles the challenge of cross-domain adaptation: how do we train a model to ignore the stethoscope's "fingerprint" while remaining highly sensitive to respiratory pathologies?

Methods

The authors propose a two-pronged approach integrated into an Audio Spectrogram Transformer (AST) backbone:

  1. Stethoscope-Guided Domain Adversarial Training (DAT): The model includes a domain classifier that tries to identify which stethoscope recorded a given sound. However, it uses a Gradient Reversal Layer (GRL). During backpropagation, the gradients are multiplied by a negative constant, effectively forcing the encoder to learn features that make it impossible for the classifier to distinguish between devices.
  2. Supervised Contrastive Learning (SG-SCL): To ensure the model doesn't just lose information, the authors use a contrastive loss. This pulls representations of the same lung sound class (e.g., two different "wheeze" samples) closer together in the latent space, even if they were recorded on different devices.
  3. The "Stop-Gradient" Trick: A key technical nuance is the application of a stop-gradient operation on the target representations during the contrastive step. This prevents the model from collapsing into trivial solutions and stabilizes the cross-domain learning process.

Datasets

The study utilizes the ICBHI 2017 Challenge Dataset, the gold standard for respiratory sound research.

  • Devices: It contains recordings from four distinct devices: Meditron, LittC2SE, Litt3200, and AKGC417L.
  • Classes: Sounds are categorized into four labels: Normal, Crackle, Wheeze, and Both (Crackle + Wheeze).
  • Challenge: The dataset is highly imbalanced (e.g., AKGC417L has ~2,500 training samples, while Litt3200 has only 41).

Key Insights and Ideas

  • Hardware as a Domain: The most significant insight is treating the recording device as a formal "domain" in the transfer learning sense. This allows the use of mature domain adaptation techniques originally developed for computer vision.
  • Pathology over Device: The t-SNE visualizations (Fig. 3) provide a clear "aha" moment. Standard models cluster data by the stethoscope used. The SG-SCL model, however, clusters data by the respiratory condition, showing that the device-specific bias has been successfully "scrubbed" away.
  • Sensitivity is King: In medical AI, missing a sick patient (False Negative) is often worse than a false alarm. The SG-SCL method specifically improved Sensitivity ($S_e$), making it more reliable for actual clinical screening.

Key Results

The proposed SG-SCL method outperformed several previous state-of-the-art models:

  • 4-Class Evaluation: Achieved an ICBHI Score of 61.71%, a 2.16% improvement over the baseline AST model.
  • 2-Class Evaluation (Normal vs. Abnormal): Achieved a state-of-the-art score of 68.93%.
  • Robustness: The method showed consistent improvements across different architectures, including EfficientNet, ResNet18, and CNN6, proving that the SG-SCL strategy is architecture-agnostic.

Limitations and Future Work

  • Underfitting in DAT: The authors noted that the Domain Adversarial Training (DAT) component sometimes led to underfitting in CNN-based architectures, likely due to the complexity of the domain classifier relative to the feature extractor.
  • Data Scarcity: While the method helps with domain shift, the underlying "scarcity of available data" remains a bottleneck for lung sound research generally.
  • Real-world Noise: The paper focuses on device-related bias; future work could extend this to environmental noise-related domain adaptation (e.g., clinic vs. home environments).

Summary updated

BibTeX
@inproceedings{kim2024stethoscope,
  author = {June-Woo Kim and Sangmin Bae and Won-Yang Cho and Byungjo Lee and Ho-Young Jung},
  title = {{Stethoscope-Guided Supervised Contrastive Learning for Cross-Domain Adaptation on Respiratory Sound Classification}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10447734},
}
Figure