arXiv:2610.22854cs.SDOct 2026

Manuscript Offprint

arXiv:2610.22854

Clinically Informed Acoustic-Aware Attribute Modeling for Respiratory Sound Classification

Xinhong Li, Li Xiao, Ziyang Chen, Yuhong Yang, Weiping Tu

Xinhong Li 1^{1}, Li Xiao 1^{1}, Ziyang Chen 1^{1}, Yuhong Yang 1^{1}, Weiping Tu 1,2,∗^{1,2,*}

1^{1}School of Computer Science, Wuhan University, Wuhan, China

2^{2}Hubei Key Laboratory of Multimedia and Network Communication Engineering, Wuhan University, Wuhan, China

Abstract—Automated respiratory sound classification (RSC) aims to identify normal and adventitious respiratory sounds, such as crackles and wheezes. Most existing methods formulate RSC as a flat four-class classification problem over normal, crackle, wheeze, and both. However, unlike conventional classification tasks with semantically independent and mutually exclusive categories, the commonly used four-class RSC labels have a compositional structure and can be represented by two clinically meaningful sound attributes: crackle presence and wheeze presence. Existing flat classifiers do not explicitly exploit this structure, which may increase the learning burden by treating the four labels as independent targets. Meanwhile, crackles and wheezes exhibit distinct temporal characteristics, with sparse transient crackle events and sustained continuous wheeze patterns, making a single temporal aggregation strategy less suitable for modeling different adventitious sound evidence. To address these limitations, we propose an Acoustic-Aware Asymmetric Framework (AAAF) for RSC. AAAF reformulates four-class recognition as two sound-attribute detection tasks and recovers the final category through logical composition during inference. Built upon a pretrained BEATs encoder, AAAF employs branch-specific multi-layer fusion and asymmetric temporal aggregation to capture localized crackle evidence and sustained wheeze patterns. Auxiliary normal-abnormal supervision and a batch-adaptive dynamic loss are further introduced to improve global discrimination and robustness under imbalanced labels. Experiments on ICBHI and SPRSound demonstrate that AAAF improves overall RSC performance and generalizes across datasets, achieving a state-of-the-art four-class Score of 65.30% on ICBHI.

Index Terms—Respiratory sound classification, computer-aided auscultation, adventitious respiratory sounds, task reformulation, acoustic-aware temporal aggregation.

I. INTRODUCTION

Respiratory diseases pose a significant global health burden, motivating the need for accessible and objective early screening methods. Pulmonary auscultation provides a non-invasive way to assess respiratory conditions by listening to respiratory sounds, including normal breath sounds and adventitious sounds such as crackles and wheezes. Crackles are discontinuous explosive sounds associated with airway secretions or reopening of collapsed airways [1], while wheezes are continuous musical sounds related to airway obstruction [2]. However, reliable auscultation requires trained clinicians and may be difficult to provide consistently in telemedicine, community screening, and resource-limited settings [3]. These limitations

Figure

(a) Conventional Methods

(b) Proposed Method

Fig. 1: Motivation of AAAF: flat four-class RSC versus crackle–wheeze attribute modeling with acoustic-aware temporal aggregation.

have motivated increasing interest in automated respiratory sound classification (RSC).

In this line of research, most existing deep learning methods formulate RSC as a flat four-class classification problem, assigning each respiratory event to one of four categories: normal, crackle, wheeze, and both [4]–[7], as illustrated in Fig. 1(a). Although this formulation is simple and widely adopted, it does not fully reflect the label semantics of respiratory sound benchmarks. Unlike conventional classification tasks whose categories usually correspond to mutually exclusive semantic concepts, these four labels can be represented by two adventitious sound presence attributes: crackle presence and wheeze presence. Specifically, normal indicates the absence of both attributes, while both indicates their joint presence within the same respiratory cycle. Therefore, treating the four labels as independent targets imposes an artificial mutual-exclusion assumption and requires the model to learn four separate decision boundaries, rather than explicitly sharing crackle- and wheeze-related evidence across categories. This may increase the learning burden and obscure the underlying compositional structure of RSC labels.

Beyond this task-formulation limitation, effective RSC models should also account for the distinct temporal patterns of crackles and wheezes. Crackles are short, discontinuous, and transient events that usually appear within localized time regions [8], whereas wheezes are sustained harmonic sounds that extend over longer temporal intervals [9]. Although

Hubei Province Technological Innovation Major Project (No.2022BCA041).

*Corresponding author: Weiping Tu (tuweiping@whu.edu.cn) recent CNN-based [10]–[13] and Transformer-based [14]–[17] methods have improved RSC with stronger neural encoders and representation learning strategies, most of them still aggregate acoustic evidence through a shared temporal modeling pipeline, as illustrated in Fig. 1(a). Such a common aggregation strategy tends to produce a single event representation, making it difficult to emphasize sparse transient crackle cues while also preserving sustained wheeze patterns. These observations motivate acoustic-aware temporal modeling with attribute-specific asymmetric aggregation.

To address these limitations, we propose an Acoustic-Aware Asymmetric Framework (AAAF) for respiratory sound classification, as shown in Fig. 1(b). AAAF reformulates flat four-class recognition as two adventitious sound presence detection tasks, i.e., crackle presence and wheeze presence, and recovers the final category through logical composition during inference. Built upon a pretrained BEATs encoder, AAAF introduces two attribute-specific branches with learnable multilayer fusion. The crackle branch emphasizes localized transient responses, while the wheeze branch captures sustained temporal patterns. Considering the severe label imbalance in respiratory sound datasets, auxiliary normal-abnormal supervision and a batch-adaptive dynamic loss are further incorporated to improve global discrimination and robust optimization.

The main contributions of this work are summarized as follows:

• We revisit RSC from a compositional label-structure perspective and reformulate flat four-class recognition as two adventitious sound presence detection tasks, enabling logical composition of the final prediction during inference.

• We propose AAAF, an acoustic-aware asymmetric framework built upon hierarchical BEATs representations, with branch-specific multi-layer fusion and attribute-specific temporal aggregation for crackle and wheeze detection.

• We introduce auxiliary normal–abnormal supervision and a batch-adaptive dynamic loss to improve global discrimination and robustness under imbalanced RSC labels. Extensive experiments on ICBHI and SPRSound demonstrate the effectiveness and cross-dataset generalization of AAAF.

References (29)