BackgroundObstructive sleep apnea hypopnea syndrome (OSAHS) is a common disease that can cause multiple organ damage in the whole body. Our aim was to use machine learning (ML) to build an independent polysomnography (PSG) model to analyze risk factors and predict OSAHS.Materials and methodsClinical data of 2064 snoring patients who underwent physical examination in the Health Management Center of the First Affiliated Hospital of Shanxi Medical University from July 2018 to July 2023 were retrospectively collected, involving 24 characteristic variables. Then they were randomly divided into training group and verification group according to the ratio of 7:3. By analyzing the importance of these features, it was concluded that LDL-C, Cr, common carotid artery plaque, A1c and BMI made major contributions to OSAHS. Moreover, five kinds of machine learning algorithm models such as logistic regression, support vector machine, Boosting, Random Forest and MLP were further established, and cross validation was used to adjust the model hyperparameters to determine the final prediction model. We compared the accuracy, Precision, Recall rate, F1-score and AUC indexes of the model, and finally obtained that MLP was the optimal model with an accuracy of 85.80%, Precision of 0.89, Recall of 0.75, F1-score of 0.82, and AUC of 0.938.ConclusionWe established the risk prediction model of OSAHS using ML method, and proved that the MLP model performed best among the five ML models. This predictive model helps to identify patients with OSAHS and provide early, personalized diagnosis and treatment options.