Deep Generative Model with Beta Bernoulli Process for Modeling and Learning Confounding Factors

Prashnna K. Gyawali, Cameron Knight, Sandesh Ghimire, B. Milan Horácek, John L. Sapp, Linwei WangarXiv 2018

Abstract

While deep representation learning has become increasingly capable of separating task-relevant representations from other confounding factors in the data, two significant challenges remain. First, there is often an unknown and potentially infinite number of confounding factors coinciding in the data. Second, not all of these factors are readily observable. In this paper, we present a deep conditional generative model that learns to disentangle a task-relevant representation from an unknown number of confounding factors that may grow infinitely. This is achieved by marrying the representational power of deep generative models with Bayesian non-parametric factor models, where a supervised deterministic encoder learns task-related representation and a probabilistic encoder with an Indian Buffet Process (IBP) learns the unknown number of unobservable confounding factors. We tested the presented model in two datasets: a handwritten digit dataset (MNIST) augmented with colored digits and a clinical ECG dataset with significant inter-subject variations and augmented with signal artifacts. These diverse data sets highlighted the ability of the presented model to grow with the complexity of the data and identify the absence or presence of unobserved confounding factors.

Introduction: The Challenge of Hidden Confounders

In many real-world applications, data is influenced by numerous "confounding factors"—nuisance variables that can obscure the primary signal of interest. For instance, in clinical ECG analysis, a model's ability to identify cardiac conditions may be hindered by patient-specific anatomy, age, or electronic noise from hospital equipment.

Current deep learning approaches face two primary hurdles:

  1. Unknown Dimensionality: The number of confounding factors is often unknown and can vary across datasets.
  2. Unobservability: Many confounders are neither labeled nor easily measurable.

Standard Variational Autoencoders (VAEs) typically rely on a fixed-size latent space. An underspecified latent space misses critical details, while an overspecified one risks overfitting. This research introduces a model capable of dynamically "growing" its latent representation to accommodate the complexity of the data.

Methodology: The cIBP-VAE

The proposed conditional IBP-VAE (cIBP-VAE) architecture bifurcates the learning process:

  • Task-Relevant Representation ($y_t$): A supervised, deterministic encoder extracts features necessary for the primary task (e.g., digit classification).
  • Confounding Representation ($y_c$): A probabilistic encoder models the "noise" or stylistic variations.

The core innovation is the integration of the Beta-Bernoulli Process, specifically the Indian Buffet Process (IBP). The IBP serves as a non-parametric prior that allows for a potentially infinite number of binary features. For any given sample, the model determines which features are "active." To ensure scalability, the authors employ Structured Stochastic Variational Inference (SSVI) to manage complex feature dependencies.

Experimental Evaluation

The model was validated on two distinct datasets:

  1. Clinical ECG Dataset: Comprising 16,848 unique 12-lead ECG beats from 39 patients. The primary task was identifying ventricular activation sites. Artifacts were artificially added to test the model's robustness.
  2. Colored MNIST: A modified MNIST dataset where digits are colored red, green, or blue, providing a controlled environment for testing the separation of identity (digit) from style (color and handwriting).

Key Insights: Disentanglement and Artifact Control

A significant finding was the model's ability to identify "triggering units"—specific binary units in the latent layer that correspond directly to the presence of artifacts. By manipulating these units, researchers could effectively "clean" noisy signals.

ECG signal reconstruction and artifact isolation via triggering units.

In the MNIST experiments, the cIBP-VAE demonstrated superior disentanglement. By swapping latent representations, the model could apply the "style" of one digit to the "identity" of another, such as rendering a '7' in the specific handwriting and color of a red '2'.

Disentanglement on Colored MNIST: Rows represent style (color/handwriting) and columns represent digit identity.

Results and Performance

  • Robustness: In the presence of noise, the cIBP-VAE's accuracy on the ECG task dropped by only 0.56% (to 56.97%), significantly outperforming standard CNNs (1.45% drop) and c-VAEs (2.02% drop).
  • Reconstruction Quality: The model achieved a nearly 7x improvement in artifact reconstruction error (0.45) compared to standard c-VAEs (3.20).
  • Information Separation: Metrics confirmed that the task representation ($y_t$) remained highly informative of labels while containing minimal information about patient-specific confounders.

Conclusion and Future Directions

The cIBP-VAE offers a robust framework for handling unknown confounders in complex datasets. Future work will focus on evaluating the model in environments where all confounders are known for more rigorous benchmarking and extending the approach to a broader range of healthcare applications. Additionally, the researchers aim to explore semi-supervised methods to define task-relevance, reducing the reliance on labeled data for the deterministic encoder.

Summary updated

BibTeX
@misc{gyawali2018deep,
  author = {Prashnna K. Gyawali and Cameron Knight and Sandesh Ghimire and B. Milan Horácek and John L. Sapp and Linwei Wang},
  title = {{Deep Generative Model with Beta Bernoulli Process for Modeling and Learning Confounding Factors}},
  year = {2018},
  eprint = {1811.00073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.00073},
}
Figure