AI can use sleep data from a single night to identify patterns linked to disease risk years before symptoms appear.