Doubly non-central beta matrix factorization for DNA methylation data

Aaron Schein, Anjali Nagulpally, Hanna M. Wallach, Patrick Flaherty

TL;DR

Modeling $(0, 1)$ bounded-support data like DNA methylation is challenging because standard Gaussian models fail at boundaries, while Beta-distribution models lack closed-form conjugate priors. The authors introduce DNCB-MF, a matrix factorization model based on the doubly non-central beta (DNCB) distribution, which captures multi-modal and highly dispersed data. By leveraging Poisson and gamma augmentations, they derive an exact, fully analytic Gibbs sampler that outperforms standard methods on real and synthetic cancer benchmarks while recovering known epigenetic pathways.

What Problem Does This Paper Address?

In epigenetics, DNA methylation data measures the proportion of methylated DNA at genomic sites, naturally yielding values bounded in $(0, 1)$ (commonly referred to as "beta values"). These datasets are notoriously difficult to model: they feature small sample sizes ($N$) over tens of thousands of genes ($M$), high dispersion, and multi-modal distributions pushed toward $0$ and $1$.

Existing dimensionality reduction approaches suffer from fundamental mismatches:

  • PCA and standard NMF assume Gaussian noise, ignoring bounded support and predicting values outside $(0, 1)$.
  • Beta-distribution models (such as BG-NMF) respect bounded support, but the Beta distribution lacks a closed-form conjugate prior. Consequently, inference relies on bespoke, complex variational approximations whose error is poorly understood.

Methods

The paper introduces Doubly Non-Central Beta Matrix Factorization (DNCB-MF):

  1. DNCB Likelihood: The model assumes methylation values $\beta_{ij} \sim \text{DNCB}(\epsilon_0^{(1)}, \epsilon_0^{(2)}, \lambda_{ij}^{(1)}, \lambda_{ij}^{(2)})$. The low-rank factorizations are placed on the non-centrality parameters: $$\lambda_{ij}^{(1)} = \sum_{k=1}^K \theta_{ik}^{(1)} \phi_{kj}, \quad \lambda_{ij}^{(2)} = \sum_{k=1}^K \theta_{ik}^{(2)} \phi_{kj}$$
  2. Poisson–Beta Augmentation: Any DNCB random variable can be represented as a Beta distribution conditioned on two latent Poisson variables: $$y_{ij}^{(r)} \sim \text{Poisson}(\lambda_{ij}^{(r)}), \quad \beta_{ij} \mid y_{ij} \sim \text{Beta}\left(\epsilon_0^{(1)} + y_{ij}^{(1)}, \epsilon_0^{(2)} + y_{ij}^{(2)}\right)$$
  3. Exact Gibbs Sampling via Gamma and Bessel Distributions:
  4. Decomposing the conditional Beta variable into a normalized sum of independent gamma variables $\gamma_{ij}^{(1)}, \gamma_{ij}^{(2)}$ (via Lukacs’ theorem) breaks the dependency between the observed ratio $\beta_{ij}$ and the scale variable $\gamma_{ij}^{(\bullet)}$.
  5. Conditioned on $\gamma_{ij}^{(r)}$, the Poisson auxiliary variables $y_{ij}^{(r)}$ follow a Bessel distribution, which can be sampled efficiently.
  6. Conditioned on $y_{ij}^{(r)}$, latent factor updates for $\theta$ and $\phi$ reduce to standard conjugate updates from gamma–Poisson matrix factorization.

This construction enables an MCMC sampler with 100% closed-form, analytic conditional updates, bypassing the intractable integrals typical of Beta-likelihood models.

Datasets

  • TCGA Microarray Dataset: 400 cancer samples (100 each from breast, ovarian, colorectal, and lung cancer, with colorectal and lung further split into two subtypes) profiled with Illumina 450K BeadChip arrays, filtered to the 5,000 highest-variance genes.
  • Bisulfite Sequenced (Bi-seq) Dataset: 188 samples (156 Ewing sarcoma and 32 healthy controls) profiled via bisulfite sequencing, aggregated into beta values for the 5,000 highest-variance genes.
  • Epiclomal Synthetic Datasets: Simulated single-cell methylation datasets aggregated to create bulk pseudo-samples ($N=100, M=500, K^*=10$) across low, medium, and high dispersion regimes.

Key Insights and Ideas

  • Auxiliary variables solve the conjugate prior problem: Rather than directly tackling the intractable normalizer of the Beta or DNCB distribution, introducing latent counts $y$ and latent gammas $\gamma$ uncouples the parameters into standard conjugate families (gamma–Poisson and Bessel).
  • Better handling of extreme boundary values: Lowering shape hyperparameters ($\epsilon_0 = 0.25$ vs $0.75$) pushes probability mass toward 0 and 1, allowing DNCB-MF to naturally match the severe "U-shaped" bimodal dispersion observed in high-variance biological methylation data.
  • Interpretable factor ratios: By defining sample embeddings as $\rho_{ik} = \frac{\theta_{ik}^{(1)}}{\theta_{ik}^{(1)} + \theta_{ik}^{(2)}}$, values $\rho_{ik} \gg 0.5$ indicate hypermethylation of pathway $k$, while $\rho_{ik} \ll 0.5$ indicate hypomethylation, providing direct biological intuition.

Key Results

  • Predictive Performance: Evaluated using Pointwise Predictive Density (PPD) on held-out test masks (scaled as $\text{PPD}^{1/|\mathcal{M}|}$):
  • Real data: DNCB-MF consistently outperformed both Gaussian NMF and state-of-the-art BG-NMF across various factor ranks ($K \in \{4, \dots, 30\}$) on both the TCGA microarray and Ewing sarcoma bi-seq datasets.
  • Synthetic data: DNCB-MF peaked near the true factor rank ($K^*=10$). As synthetic data dispersion increased, DNCB-MF with $\epsilon_0=0.25$ significantly outdistanced BG-NMF and NMF.
  • Epigenetic Relevance: Factor patterns recovered known cancer biology:
  • Component 1 highlighted RAB34 hypomethylation in lung cancer vs. hypermethylation in colorectal cancer (hypomethylation activates oncogenes).
  • Component 9 identified hypermethylation of FLT4 in colorectal cancer, a known metastatic target.
  • Component 12 captured distinct hypomethylation patterns for ovarian cancer involving TFE3 and FNDC8 (fibronectin protein involved in invasion).

Limitations and Future Work

  • Computational Cost of Evaluation: While MCMC sampling is closed-form and fast, evaluating the DNCB likelihood during test-time density estimation requires computing Humbert's confluent hypergeometric function ($\Psi_2$), which is computationally demanding.
  • Fixed Hyperparameters: The shape parameters $\epsilon_0^{(1)}, \epsilon_0^{(2)}$ were fixed manually across runs rather than learned dynamically within the sampler.
  • MCMC Scalability: While Gibbs sampling guarantees convergence to the true posterior, MCMC can be slow to scale to massive sample sizes compared to stochastic variational approaches.

Summary updated

BibTeX
@inproceedings{schein2021doubly,
  author = {Aaron Schein and Anjali Nagulpally and Hanna M. Wallach and Patrick Flaherty},
  title = {{Doubly non-central beta matrix factorization for DNA methylation data}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=av_qPVWCaU},
}
Figure