Analyzing demographics, lifestyle data, physical exam results, and laboratory values, a new machine-learning algorithm can accurately predict whether a person is at risk of sleep disorders. Age, weight, and depression are three factors the AI technology identified as being significant predictors of insomnia.