This repository provides the key code for the machine learning methodology section of the article titled "Application and Interpretation of Machine Learning Models in Predicting the Risk of Severe Obstructive Sleep Apnea in Adults." For collaboration, please reach out to Shi-Nan Wu (wshinana99@163.com) at Xiamen University.