# Metadata-Conditioned Audio Transformers for Adaptive Respiratory Sound Classification

DevFeed: [Metadata-Conditioned Audio Transformers for Adaptive Respiratory Sound Classification](<https://devfeed.tech/articles/metadata-conditioned-audio-transformers-for-adaptive-respiratory-sound-classification-117378.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.03769>)

Author: George Kontogiannis, Pantelis Tzamalis, Sotiris Nikoletseas

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Transformers](<https://devfeed.tech/topics/transformers.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>)

Tags: [audio](<https://devfeed.tech/tags/audio.md>), [classification](<https://devfeed.tech/tags/classification.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-sd](<https://devfeed.tech/tags/cs-sd.md>), [device](<https://devfeed.tech/tags/device.md>), [eess-as](<https://devfeed.tech/tags/eess-as.md>), [film](<https://devfeed.tech/tags/film.md>), [fusion](<https://devfeed.tech/tags/fusion.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [model](<https://devfeed.tech/tags/model.md>), [novel](<https://devfeed.tech/tags/novel.md>), [performance](<https://devfeed.tech/tags/performance.md>), [recording-device](<https://devfeed.tech/tags/recording-device.md>), [recordings](<https://devfeed.tech/tags/recordings.md>), [site](<https://devfeed.tech/tags/site.md>), [sound](<https://devfeed.tech/tags/sound.md>), [transformer-architecture](<https://devfeed.tech/tags/transformer-architecture.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

## AI overview

The paper conditions an Audio Spectrogram Transformer (AST) on recording and patient metadata to address variability in respiratory recordings unrelated to pathology. It evaluates gated residual fusion and Transformer-adapted FiLM, plus two variants: Token-Aware FiLM (TAFiLM), which modulates classification and patch tokens separately, and Soft-Factorized FiLM (SoftFiLM), which learns soft masks linking metadata factors to feature subspaces. On the ICBHI benchmark, all conditioning strategies improve on the baseline. SoftFiLM reports 64.11% on the official 4-class task, a 3.94% gain over baseline, and 72.40% on the 2-class task, described as a new state of the art; its 4-class result is described as competitive.

## Source excerpt

arXiv:2611.03769v1 Announce Type: cross 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\"ive fusion strategies that do not model how distinct metadata sources influence different components of the acoustic representation. 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.