Over recent years, automatic analysis of respiratory recordings has moved from handcrafted acoustic features combined with conventional classifiers towards methods based on neural networks and pretrained feature encoders. Among recent developments, this thesis adopts Health Acoustic Representations (HeAR), a health audio foundation model, for respiratory sound classification, keeping its encoder frozen. HeAR's standard use provides the baseline and highlights two aspects motivating the proposed extensions: its native two second input limits temporal coverage in longer recordings, while its readout embedding is derived from the classification token (CLS), leaving the final encoder patch tokens unused. Processing is extended from a single segment to the complete recording by analysing consecutive two second windows and applying record-level pooling to their embeddings. Patch tokens are instead used to construct a second readout that retains the temporal organisation of the patch grid and may complement the canonical CLS output. The two readouts are processed through separate classification branches, whose class probabilities are combined through a fusion mechanism using a weight controlling each branch's contribution to the final prediction. This thesis investigates whether these extensions to how HeAR's representations are processed, aggregated, and combined can improve performance over its conventional use in respiratory sound classification. Across the SPRSound and HF Lung respiratory sound datasets, complete record processing provides the most consistent improvement, with stronger gains on SPRSound, while the additional readout and fusion are more variable. Their contribution is greater under the official BioCAS challenge protocol, where the final system is competitive with published systems; separately, it outperforms all evaluated frozen OPERA respiratory foundation models. Overall, the results show that targeted processing of representations already produced by HeAR can improve on its conventional single-segment setup and achieve competitive performance in respiratory sound classification while keeping the encoder unchanged.

Negli ultimi anni, l'analisi automatica delle registrazioni respiratorie è passata da descrittori acustici progettati manualmente e classificatori convenzionali a reti neurali ed encoder preaddestrati. Tra gli sviluppi recenti, la tesi usa Health Acoustic Representations (HeAR), un foundation model per audio sanitario, nella classificazione dei suoni respiratori, con l'encoder frozen. L'uso standard di HeAR costituisce la baseline ed evidenzia due aspetti che motivano le estensioni: l'input nativo di due secondi limita la copertura temporale nelle registrazioni lunghe, mentre l'embedding estrapolato dal readout deriva dal classification token (CLS), lasciando inutilizzati i patch token finali dell'encoder. L'elaborazione dell'audio viene estesa da un singolo segmento all'intera registrazione, analizzando finestre consecutive dello stesso record e aggregandone gli embedding tramite pooling. I patch token sono invece usati per costruire un secondo readout che conserva l'organizzazione temporale della patch grid e può fornire informazioni complementari all'output canonico. I due readout seguono rami di classificazione separati, le cui probabilità sono combinate mediante un meccanismo di fusione dove un peso regola il contributo di ciascun ramo. La tesi esamina se queste estensioni all'elaborazione, aggregazione e combinazione delle rappresentazioni di HeAR migliorino le prestazioni rispetto al suo uso convenzionale nella classificazione respiratoria. Nei dataset respiratori SPRSound e HF Lung, l'elaborazione dell'intera registrazione produce il miglioramento più consistente, con benefici maggiori su SPRSound, mentre il readout aggiuntivo e la fusione mostrano effetti più variabili. Il loro contributo aumenta nel protocollo della BioCAS challenge, dove il sistema finale è competitivo con i sistemi pubblicati; separatamente, supera tutti i foundation model respiratori frozen di OPERA valutati. Nel complesso, i risultati mostrano che un diverso utilizzo delle rappresentazioni prodotte da HeAR può migliorare le prestazioni rispetto alla configurazione convenzionale e raggiungere risultati competitivi, mantenendo invariato l'encoder.

Extending the use of HeAR for respiratory sound classification : full recording analysis and combined use of multiple encoder representations

BIANCO, LORENZO
2025/2026

Abstract

Over recent years, automatic analysis of respiratory recordings has moved from handcrafted acoustic features combined with conventional classifiers towards methods based on neural networks and pretrained feature encoders. Among recent developments, this thesis adopts Health Acoustic Representations (HeAR), a health audio foundation model, for respiratory sound classification, keeping its encoder frozen. HeAR's standard use provides the baseline and highlights two aspects motivating the proposed extensions: its native two second input limits temporal coverage in longer recordings, while its readout embedding is derived from the classification token (CLS), leaving the final encoder patch tokens unused. Processing is extended from a single segment to the complete recording by analysing consecutive two second windows and applying record-level pooling to their embeddings. Patch tokens are instead used to construct a second readout that retains the temporal organisation of the patch grid and may complement the canonical CLS output. The two readouts are processed through separate classification branches, whose class probabilities are combined through a fusion mechanism using a weight controlling each branch's contribution to the final prediction. This thesis investigates whether these extensions to how HeAR's representations are processed, aggregated, and combined can improve performance over its conventional use in respiratory sound classification. Across the SPRSound and HF Lung respiratory sound datasets, complete record processing provides the most consistent improvement, with stronger gains on SPRSound, while the additional readout and fusion are more variable. Their contribution is greater under the official BioCAS challenge protocol, where the final system is competitive with published systems; separately, it outperforms all evaluated frozen OPERA respiratory foundation models. Overall, the results show that targeted processing of representations already produced by HeAR can improve on its conventional single-segment setup and achieve competitive performance in respiratory sound classification while keeping the encoder unchanged.
ING - Scuola di Ingegneria Industriale e dell'Informazione
20-ott-2026
2025/2026
Negli ultimi anni, l'analisi automatica delle registrazioni respiratorie è passata da descrittori acustici progettati manualmente e classificatori convenzionali a reti neurali ed encoder preaddestrati. Tra gli sviluppi recenti, la tesi usa Health Acoustic Representations (HeAR), un foundation model per audio sanitario, nella classificazione dei suoni respiratori, con l'encoder frozen. L'uso standard di HeAR costituisce la baseline ed evidenzia due aspetti che motivano le estensioni: l'input nativo di due secondi limita la copertura temporale nelle registrazioni lunghe, mentre l'embedding estrapolato dal readout deriva dal classification token (CLS), lasciando inutilizzati i patch token finali dell'encoder. L'elaborazione dell'audio viene estesa da un singolo segmento all'intera registrazione, analizzando finestre consecutive dello stesso record e aggregandone gli embedding tramite pooling. I patch token sono invece usati per costruire un secondo readout che conserva l'organizzazione temporale della patch grid e può fornire informazioni complementari all'output canonico. I due readout seguono rami di classificazione separati, le cui probabilità sono combinate mediante un meccanismo di fusione dove un peso regola il contributo di ciascun ramo. La tesi esamina se queste estensioni all'elaborazione, aggregazione e combinazione delle rappresentazioni di HeAR migliorino le prestazioni rispetto al suo uso convenzionale nella classificazione respiratoria. Nei dataset respiratori SPRSound e HF Lung, l'elaborazione dell'intera registrazione produce il miglioramento più consistente, con benefici maggiori su SPRSound, mentre il readout aggiuntivo e la fusione mostrano effetti più variabili. Il loro contributo aumenta nel protocollo della BioCAS challenge, dove il sistema finale è competitivo con i sistemi pubblicati; separatamente, supera tutti i foundation model respiratori frozen di OPERA valutati. Nel complesso, i risultati mostrano che un diverso utilizzo delle rappresentazioni prodotte da HeAR può migliorare le prestazioni rispetto alla configurazione convenzionale e raggiungere risultati competitivi, mantenendo invariato l'encoder.
File allegati
File Dimensione Formato  
2026_10_Bianco_Tesi.pdf

non accessibile

Descrizione: Testo completo della tesi
Dimensione 920.27 kB
Formato Adobe PDF
920.27 kB Adobe PDF   Visualizza/Apri
2026_10_Bianco_Executive Summary.pdf

non accessibile

Descrizione: Executive Summary della tesi
Dimensione 514.34 kB
Formato Adobe PDF
514.34 kB Adobe PDF   Visualizza/Apri

I documenti in POLITesi sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10589/267266