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