Development of data science methodologies for studying obstructive sleep apnea