Apple says the sleep apnea notification algorithm was developed using advanced machine learning and an extensive data set of clinical-grade sleep apnea tests.