Truncated Gaussian-Mixture Variational AutoEncoder

Qingyu Zhao, Nicolas Honnorat, Ehsan Adeli, Kilian M. Pohl · DOI

Abstract

Variation Autoencoder (VAE) has become a powerful tool in modeling the non-linear generative process of data from a low-dimensional latent space. Recently, several studies have proposed to use VAE for unsupervised clustering by using mixture models to capture the multi-modal structure of latent representations. This strategy, however, is ineffective when there are outlier data samples whose latent representations are meaningless, yet contaminating the estimation of key major clusters in the latent space. This exact problem arises in the context of resting-state fMRI (rs-fMRI) analysis, where clustering major functional connectivity patterns is often hindered by heavy noise of rs-fMRI and many minor clusters (rare connectivity patterns) of no interest to analysis. In this paper we propose a novel generative process, in which we use a Gaussian-mixture to model a few major clusters in the data, and use a non-informative uniform distribution to capture the remaining data. We embed this truncated Gaussian-Mixture model in a Variational AutoEncoder framework to obtain a general joint clustering and outlier detection approach, called tGM-VAE. We demonstrated the applicability of tGM-VAE on the MNIST dataset and further validated it in the context of rs-fMRI connectivity analysis.

Introduction

Unsupervised clustering is a fundamental task in machine learning, yet it remains challenging when applied to real-world datasets characterized by high noise levels and significant outlier populations. Traditional approaches, such as Gaussian Mixture Models (GMMs) or standard Mixture-VAE frameworks, operate under the assumption that every data point belongs to one of the predefined clusters.

In domains like resting-state fMRI (rs-fMRI) analysis, this assumption is frequently violated. Brain activity typically exhibits a few dominant functional connectivity states, which are often obscured by heavy noise or transient "minor states"—rare patterns that do not contribute to the primary analysis. When standard models attempt to fit these outliers, they often produce "junk" clusters or distort the boundaries of legitimate clusters, leading to reduced accuracy. To address this, we propose the Truncated Gaussian-Mixture Variational AutoEncoder (tGM-VAE), which focuses on modeling primary clusters while explicitly accounting for a noisy remainder.

Methodology

The tGM-VAE framework modifies the standard VAE generative process to incorporate outlier detection and robust clustering.

Dual-Distribution Modeling

The generative process is split based on the assigned category:

  1. Major Clusters: Data points assigned to the first $K-1$ categories are modeled using a Gaussian Mixture in a low-dimensional latent space. This captures the non-linear, multi-modal structure of the "clean" data.
  2. The Remainder: Data points in the $K^{th}$ category (outliers or minor states) are modeled by a non-informative uniform distribution in the original data space. By bypassing the latent encoding for these points, the model prevents them from polluting the latent space.
Graphical models and architecture of the tGM-VAE framework.

The resulting Variational Lower Bound (ELBO) reformulates the problem as a joint task where one component of the network acts as an outlier detector while the other performs clustering on the identified inliers.

Experimental Evaluation

The tGM-VAE was evaluated on both benchmark and domain-specific datasets.

MNIST Proof-of-Concept

To demonstrate the model's ability to isolate major clusters, we used the MNIST dataset, selecting three digits (0, 1, and 5) as "major clusters" and treating the remaining seven digits as outliers. As shown in the latent space visualization, the model successfully separates the target digits into distinct, tight clusters.

t-SNE visualization of the latent space for MNIST digits 0, 1, and 5.

rs-fMRI Analysis

The model was further validated using synthetic rs-fMRI data (5 major and 5 minor states) and real-world data from the NCANDA dataset (593 adolescents). In synthetic benchmarks, tGM-VAE achieved a clustering accuracy of 78.5%, outperforming standard GMMs (68.4%) and standard Gaussian-Mixture VAEs (74.8%).

Key Results and Discussion

A significant advantage of tGM-VAE is its robustness to noise. The model maintained superior accuracy even as the standard deviation of noise in fMRI signals increased. In the NCANDA dataset, the model identified five well-known functional networks, including the Default Mode Network and the Salience Network.

Furthermore, the study revealed a significant positive correlation ($p = .0006$) between age and "mean dwell time"—the duration for which a brain remains in a specific connectivity state. This finding suggests that brain states become more stable and persistent as adolescents mature.

Conclusion

The tGM-VAE provides a robust framework for joint clustering and outlier detection by ensuring latent space purity. By refusing to model the latent representation of outliers, the model focuses on meaningful information, leading to more accurate and interpretable clusters. Future work will explore deeper neural architectures and the integration of temporal dynamics to better capture the transitions between functional brain states.

Summary updated

Abstract

Variation Autoencoder (VAE) has become a powerful tool in modeling the non-linear generative process of data from a low-dimensional latent space. Recently, several studies have proposed to use VAE for unsupervised clustering by using mixture models to capture the multi-modal structure of latent representations. This strategy, however, is ineffective when there are outlier data samples whose latent representations are meaningless, yet contaminating the estimation of key major clusters in the latent space. This exact problem arises in the context of resting-state fMRI (rs-fMRI) analysis, where clustering major functional connectivity patterns is often hindered by heavy noise of rs-fMRI and many minor clusters (rare connectivity patterns) of no interest to analysis. In this paper we propose a novel generative process, in which we use a Gaussian-mixture to model a few major clusters in the data, and use a non-informative uniform distribution to capture the remaining data. We embed this truncated Gaussian-Mixture model in a Variational AutoEncoder framework to obtain a general joint clustering and outlier detection approach, called tGM-VAE. We demonstrated the applicability of tGM-VAE on the MNIST dataset and further validated it in the context of rs-fMRI connectivity analysis.
BibTeX
@inproceedings{zhao2019truncated,
  author = {Qingyu Zhao and Nicolas Honnorat and Ehsan Adeli and Kilian M. Pohl},
  title = {{Truncated Gaussian-Mixture Variational AutoEncoder}},
  booktitle = {IPMI},
  year = {2019},
  url = {https://openreview.net/forum?id=5HdccY_2JxJ},
}
Figure