Data-Driven Phenotyping: graphical models for model-based phenotyping of sleep apnea