Decoding Insomnia: Machine Learning Model Predicts Sleep Disorders from Patient Records

ReachMD Healthcare Image


by Public Library of Science

The machine learning model can effectively predict a patient’s risk for a sleep disorder using demographic and lifestyle data, physical exam results and laboratory values. Credit: Hernan Sanchez, Unsplash, CC0 (

A machine learning model can effectively predict a patient's risk for a sleep disorder using demographic and lifestyle data, physical exam results and laboratory values, according to a new study published this week in the open-access journal PLOS ONE by Samuel Y. Huang of Virginia Commonwealth University School of Medicine, and Alexander A. Huang of Northwestern Feinberg University School of Medicine, U.S.

The prevalence of diagnosed sleep disorders among American patients has significantly increased over the past decade. This trend is important to better understand and reverse since sleep disorders are a significant risk factor for diabetes, heart disease, obesity, and depression.

In the new work, the researchers used the machine learning model XGBoost to analyze publicly available data on 7,929 patients in the U.S. who completed the National Health and Nutrition Examination Survey. The data contained 684 variables for each patient, including demographic, dietary, exercise and mental health questionnaire responses, as well as laboratory and physical exam information.

Overall, 2,302 patients in the study had a physician diagnosis of a sleep disorder. XGBoost could predict the risk of sleep disorder diagnosis with a strong accuracy (AUROC=0.87, sensitivity=0.74, specificity=0.77), using 64 of the total variables included in the full dataset. The greatest predictors for a sleep disorder, based on the machine learning model, were depression, weight, age and waist circumference.

The authors conclude that machine learning methods may be effective first steps in screening patients for sleep disorder risk without relying on physician judgment or bias.

Samuel Y. Huang adds, "What sets this study on the risk factors for insomnia apart from others is seeing not only that depressive symptoms, age, caffeine use, history of congestive heart failure, chest pain, coronary artery disease, liver disease, and 57 other variables are associated with insomnia, but also visualizing the contribution of each in a very predictive model."

More information: Use of machine learning to identify risk factors for insomnia, PLOS ONE (2023). DOI: 10.1371/journal.pone.0282622

Provided by Public Library of Science

Citation: Decoding insomnia: Machine learning model predicts sleep disorders from patient records (2023, April 12) retrieved 12 April 2023 from

This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.

Facebook Comments


We’re glad to see you’re enjoying Medtelligence…
but how about a more personalized experience?

Register for free