Metadata-Conditioned Audio Transformers for Adaptive Respiratory Sound Classification

George Kontogiannis, Pantelis Tzamalis, Sotiris Nikoletseas
11/2/2026
cs.SDcs.AIeess.AS
transformer-attention

No confident code implementation found for this paper.

Abstract

Respiratory sound classification from auscultation recordings is confounded by heterogeneous acquisition conditions, including recording device, auscultation site, and patient characteristics, that introduce systematic variability unrelated to the underlying pathology. Although such metadata is often available, existing approaches either ignore it or rely on naïve fusion strategies that do not model how distinct metadata sources influence different components of the acoustic representation.

Show full abstract

We propose a family of metadata-conditioning mechanisms for the Audio Spectrogram Transformer (AST), progressing from gated residual fusion to Feature-wise Linear Modulation (FiLM) adapted to the Transformer architecture. We further introduce two novel variants: Token-Aware FiLM (TAFiLM), which applies distinct modulation to classification and patch tokens, and Soft-Factorized FiLM (SoftFiLM), which learns soft masks to align metadata factors with disentangled feature subspaces. Experiments on the ICBHI benchmark demonstrate consistent gains across all conditioning strategies. SoftFiLM achieves 64.11% on the official 4-class task (+3.94% over the baseline) and 72.40% on the 2-class task, establishing a new state-of-the-art on the 2-class task and competitive performance on the 4-class benchmark.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kontogiannis2026metadataconditioned,
  title  = {Metadata-Conditioned Audio Transformers for Adaptive Respiratory Sound Classification},
  author = {George Kontogiannis and Pantelis Tzamalis and Sotiris Nikoletseas},
  year   = {2026},
  eprint = {2611.03769},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.03769v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.03769.svg)](https://codeofpaper.com/paper/2611.03769)

Discussion