Manuscript Offprint

arXiv:2609.00055

Zero-Shot Respiratory Sound Classification through LLM-Augmented Audio-Text Alignment

Mustafa Talha İlerisoy, Hung Manh Pham, Mathias Funk, Mykola Pechenizkiy, Aaqib Saeed

Abstract

Self-supervised respiratory encoders lack semantic grounding in clinical domain needed for zero-shot inference, limiting their utility without task-specific labeled data. We propose a framework that aligns these encoders with medical terminology in a shared latent space turning them into a zero-shot-capable foundation model. To address paired data scarcity, we use a medical LLM to synthesize structured reports from metadata, creating dense semantic anchors for contrastive learning. Our training combines a sigmoid-based contrastive loss with encoder's native SSL objective and similarity-aware negative sampling to sharpen pathological boundaries. Across 9 tasks on 6 datasets, our method achieves a 61.3% mean zero-shot AUC, surpassing CLAP (51.4%) and Qwen2-Audio (54.9%) while reaching the highest linear probing AUC (71.6%) with only 43% of data used by full-scale baselines, showing that structured semantic alignment outperforms large-scale, general-purpose models in clinical diagnostics.

Index Terms: Respiratory Foundation Model, Multimodal Alignment, Zero-shot Learning, Clinical Diagnostics

1. Introduction

Respiratory auscultation remains one of the most widely practiced diagnostic procedures worldwide [1], yet its interpretation is highly subjective and dependent on clinical expertise that is unevenly distributed [2]. AI-driven auscultation tools offer a path toward scalable, objective screening [3, 4, 5], particularly in low-resource settings where pulmonologists are unavailable [6, 7]. For such tools to be clinically viable, however, they must generalize to novel pathologies without task-specific labeled data, a capability known as zero-shot inference, which remains largely unattained in respiratory audio modeling [8].

Self-supervised learning has produced powerful acoustic encoders that form the backbone of current respiratory AI. General-purpose models [9, 10] learn spectro-temporal representations through masked autoencoding on broad audio corpora, while domain-specific efforts [11] tailor these to respiratory events via large-scale pre-training. These encoders function as acoustic experts, resolving fine-grained auscultatory patterns (crackles, wheezes, stridor) with high fidelity. Yet, their embedding spaces remain semantically opaque: clusters corresponding to distinct pathologies may be linearly separable, but neither is anchored to the medical concept it encodes. Consequently, every new clinical task requires supervised fine-tuning with scarce, expert-curated annotations [12], creating a bottleneck that limits real-world deployment.

Multimodal contrastive learning addresses this by aligning audio and text in a shared space, enabling zero-shot classification via natural language prompts that are validated for vi-

sion [13] and general audio [14]. However, on clinical respiratory benchmarks, general-purpose audio-text models fail to outperform unimodal baselines [11, 15]: they are grounded in everyday captions and lack clinical language. Training a medical audio-text model from scratch would require paired audio-report datasets that do not exist at scale for respiratory sounds [16].

We observe that strong acoustic features and clinical language understanding already exist in isolation: respiratory encoders [11] capture the diagnostic signal, while medical text encoders [17] capture disease-level semantics. The core problem is not representation learning but representation alignment [18]. While other methods align vision-language spaces [19] or employ generative instruction-tuning for respiratory health [20], we address paired-data scarcity through sample-efficient contrastive alignment. Building on this, we propose REACH (REport-Augmented Contrastive alignment for respiratory Health), a semantic alignment framework that re-purposes pre-trained unimodal respiratory encoders into zero-shot capable multimodal tools through targeted post-training. Our approach treats existing encoders as complementary assets and focuses on learning the bridge between them. The design is modular, accepting any transformer-based audio backbone; data efficient, requiring no paired audio report corpora; and non-destructive, preserving acoustic fidelity throughout.

Our framework addresses three challenges: (1) absent paired data; we use an off-the-shelf medical-grade LLM [21] to synthesize reports from metadata, creating semantic anchors for contrastive learning; (2) low textual diversity; we employ FAISS-based [22] similarity-aware negative sampling to mine distant negatives; and (3) catastrophic feature degradation; we combine a sigmoid contrastive loss [23] with the encoder's native reconstruction objective as a structural regularizer. The text encoder [17] remains frozen as a fixed semantic reference. Across 9 tasks on 6 datasets, our method achieves 61.3% mean zero-shot AUC, surpassing CLAP (51.4%) and Qwen2-Audio (54.9%), while attaining the highest linear probing AUC (71.6%) with only 43% of the training data used by the full-scale baseline [11].

The text branch employs a medical text encoder [17] that remains fully frozen during alignment as a fixed semantic reference; only the audio branch and projection heads are optimized. We evaluate on 9 tasks from 6 publicly available respiratory datasets spanning in-domain and out-of-domain settings. Our method achieves a mean zero-shot AUC of 61.3%, surpassing CLAP (51.4%) and the 7B parameter Qwen2 Audio (54.9%), while using only 43% of the pre-training data available to the full-scale baseline [11]. Importantly, alignment does not compromise unimodal capability: our model attains the highest mean linear probing AUC (71.6%), exceeding even the baseline

Figure

Figure 1: Overview of REACH: a semantic alignment framework that repurposes pre-trained unimodal encoders for zero-shot respiratory sound classification via LLM-augmented report synthesis, similarity-aware negative sampling, and structure-preserving contrastive alignment.

trained on the complete proprietary corpus. Our contributions are as follows:

  1. A modular semantic alignment framework (REACH) that transforms pre-trained unimodal respiratory encoders into zero-shot capable multimodal models, decoupling acoustic pre-training from clinical language grounding.

  2. An LLM augmented report synthesis pipeline that converts discrete metadata into clinically structured text, creating semantic anchors that eliminate the need for paired audio report datasets.

  3. A structure-preserving alignment strategy that reconciles cross-modal transfer with preservation of acoustic features by jointly optimizing a sigmoid contrastive objective [23] with the encoder's native reconstruction loss, complemented by similarity-aware negative sampling.

  4. Comprehensive empirical validation across 9 tasks on 6 datasets, demonstrating that targeted alignment with 57% less data outperforms both full-scale unimodal pre-training and general-purpose audio language models of significantly larger capacity.

References (33)

  • Body acoustics for the non-invasive diagnosis of medical conditions
  • Analysis of respiratory sounds: state of the art
  • Estimation of respiratory rate and exhale duration using audio signals recorded by smartphone microphones
  • Lung auscultation - today and tomorrow- a narrative review
  • Artificial intelligence in respiratory care: perspectives on critical opportunities and challenges
  • A multimodal multidomain multilingual medical foundation model for zero shot clinical diagnosis
  • Artificial intelligence in medical imaging and its impact on the rare disease community: Threats, challenges and opportunities
  • The development and evaluation of ai-based tuberculosis screening with a digital stethoscope used to capture lung sounds. a case-control study
  • Masked autoencoders that listen
  • Cnn architectures for large-scale audio classification
  • Towards open respiratory acoustic foundation models: Pretraining and benchmarking (opens arXiv in a new tab)
  • Tackling data sparsity and combinatorial challenges in rare disease matching with medical informed machine learning
  • Learning transferable visual models from natural language supervision
  • Clap: Learning audio concepts from natural language supervision
  • Towards pre-training an effective respiratory audio foundation model
  • Artificial intelligence in respiratory health: A review of AI-driven analysis of oral and nasal breathing sounds for pulmonary assessment
  • Medgemma technical report (opens arXiv in a new tab)
  • Understanding multimodal contrastive learning and incorporating unpaired data
  • Language-image alignment with fixed text encoders (opens arXiv in a new tab)
  • ResPlm: Unifying audio and text with multimodal llms for generalized respiratory health prediction
  • GPT-4 Technical Report
  • The faiss library
  • Sigmoid loss for language image pre-training
  • Fine-tuning can distort pretrained features and underperform out-of-distribution
  • Audio-based AI classifiers show no evidence of improved COVID-19 screening over simple symptoms checkers
  • The COUGHVID crowdsourcing dataset, a corpus for the study of large-scale cough analysis algorithms
  • An open access database for the evaluation of respiratory sound classification algorithms
  • Coswara: A respiratory sounds and symptoms dataset for remote screening of sars-cov-2 infection
  • A dataset of lung sounds recorded from the chest wall using an electronic stethoscope
  • Multimedia respiratory database (respiratorydatabase@tr): Auscultation sounds and chest x-rays
  • Opensmile: the munich versatile and fast open-source audio feature extractor (opens the publisher in a new tab)
  • Qwen Technical Report
  • Audio flamingo 3: Advancing audio intelligence with fully open large audio language models (opens arXiv in a new tab)