Development of physiology-driven machine learning algorithms to assess cardio-respiratory function and diagnose sleep apnea