arXiv:2608.29026cs.AIAug 2026

Manuscript Offprint

arXiv:2608.29026

Disentangling Representation using Attributes-based Gaussian Estimation for Medical Sound Diagnosis

Ke Zhao

Ke Zhao

Shenyang Institute of Computing Technology, Chinese Academy of Science, Shenyang 110168, China

University of Chinese Academy of Science, Beijing 100049, China

zhaoke22@mails.ucas.ac.cn

Abstract—Deep learning has a powerful capability of feature extraction. However, the lack of fairness and interpretability in deep neural networks poses limitations to their adoption in the medical domain. This paper proposes a disentangled representation learning (DisenRL) framework, named the Attributes-based Gaussian Estimation for Disentangled Representation (AGEDR), which incorporates Attribute Mapping Embedding (AME) modules designed to map attributes into vectors and align them with a subset of the latent vectors in a Variational AutoEncoder (VAE). This part of the latent vector will be disentangled from the remaining latent vectors by minimizing mutual information. A classifier is then trained using the mean parameters of the latent vectors from the VAE. Extensive experiments demonstrate that AGEDR outperforms both conventional classification models and existing disentangled representation learning methods. The ablation experiments also indicate the disentangling capability and fairness of AGEDR. The source code is publicly available at https://github.com/ZhaoKe1024/DisentangledRepr

Index Terms—disentangled representation, mutual information, medical information, attribute embedding, fairness classification.

I. INTRODUCTION

The extensive application of machine learning and deep learning in medical signal analysis has significantly contributed to the development of medical diagnosis and medical equipment. Nevertheless, machine learning demands high-quality features, while deep learning lacks interpretability for automatically extracted features. Given the wide variations in human constitution, differences in age, gender, lifestyle, medical history, and regional environments may affect model performance, resulting in reduced applicability. This phenomenon is commonly referred to as domain shift and poses a major challenge for domain generalization. Current deep learning algorithms often exhibit these problems in practical applications, exhibiting biases towards individuals with different genders or medical histories, as well as lifestyle habits.

Disentangled representation learning (DisenRL) is a technique that uses specific methods to obtain latent vectors with decomposable structures, addressing the issues of the biases in the model and domain shift in the prediction task. Supervised disentangled methods, in particular, enable the alignment of latent vectors with actual semantics, thereby genuinely solving the problem of lack of interpretability.

To incorporate additional attribute features other than the data labels into the latent vectors, a common approach is to concatenate the attributes into the latent vectors as InfoGAN [1]. Wu et al. directly trained multiple prediction models to derive the latent vectors corresponding to different attributes [2]. GSL sets an exchangeable structure for the representations and obtains latent vector with equivariance during training [3]. Kota Dohi et al. employed a Normalizing Flow model, incorporating an additional rotational speed attribute, and combined them through information-theoretic methods to achieve parameter disentanglement [4]. It is evident that DisenRL inevitably necessitates the introduction of prior knowledge, including attributes or structures, which have been proven essential [5]. The above methods all reflect this idea, which disentangles the attributes by fitting the distribution of attributes so as to improve the generalization on the data of different attributes and solve the problem of domain shift between different attribute values.

After introducing additional attributes, it is necessary to align them with a part of the latent vector obtained by audio feature extraction, i.e., to disentangle them from the rest of the latent vector. InfoGAN disentangles the labels and latent vectors by minimizing mutual information (MI) using evidence lower bounds (ELBO), thereby obtaining an equivariant structure [1]. IDB-SR aiming to disentangle sensitive attributes, trains a sensitive attribute prediction task in conjunction with MI disentanglement [6]. Furthermore, to ensure orthogonality, i.e., disentanglement, between different attributes, diagonalization of the correlation coefficient matrix can also be adopted [7]. From the perspective of data augmentation, constructing sample-label pairs with equivariant transformations to derive equivariant relationships, the disentangled representation models can be obtained [8], [9].

For classification tasks, if the attributes of data samples are given, the information carried by that attribute is inherently present within the data samples. Through deep neural networks and classification task training, latent vectors related to that attribute can be extracted. However, these latent vectors are not subject to any prior distribution, making it impossible to perform probabilistic density estimation as in Variational AutoEncoder (VAE) [10]. This limitation hinders the calculation of relative entropy (i.e., Kullback-Leibler divergence ( DKLD_{KL})) and mutual information (MI) [11]. This paper proposes a method that comprises two parts: the Attribute Mapping Embedding (AME) modules and a VAE. The AME is responsible for mapping scalar values of different categories into normal parameters, which are then used to obtain the attribute latent vector z^α\hat{z}^{\alpha} through the reparameterization trick. The VAE, on the other hand, extracts the latent vector zz consisting of two parts {zβ,zα}\{z^{\beta}, z^{\alpha}\} from the original data, which serve as the input of the VAE's Decoder. We refer to zαz^{\alpha} as the attribute latent representation, and the non-attribute latent vector zβz^{\beta} can be viewed as the joint distribution encompassing all attributes other than the zαz^{\alpha}. They are disentangled using MI minimizing. This framework is named Attributes-based Gaussian Estimation for Disentangled Representation (AGEDR).

The contributions of this paper are as follows:

  1. We propose an Attribute Mapping Embedding (AME) module that transforms scalar semantic attributes into Gaussian latent representations, to restore the deep features of attributes and simplify the calculation of DKLD_{KL}, which is used to align the latent vector with the part of the latent vector of VAE.

  2. Based on the above, we introduce the concepts of attribute latent vectors and non-attribute latent vectors and disentangle them using the ELBO of mutual information minimizing. A series of experiments are conducted on the COVID-19 cough dataset COUGHVID to compare the proposed method with previous approaches.

  3. Through a series of comparative experiments and two ablation experiments, we not only illustrate the classification performance of AGEDR, but also provide empirical evidence of attribute-related information reduction, so as to mitigate attribute-related domain shifts and reduce unnecessary sensitive information in the dataset.