A new computer model has been developed to help understand why people's brains can't always agree on how much sleep they've had. The model, called DyssomniaNN, uses complex math and brain simulations to analyze data from real-life patients with different types of sleep disorders. Researchers found that the model accurately predicted brain wave patterns in healthy individuals, but struggled to match the actual amount of sleep people reported feeling rested after waking up. For example, someone with a condition called narcolepsy, which makes it hard to stay asleep at night, may still get plenty of total sleep time but still feel tired and groggy in the morning. The model could help researchers develop new treatments for these conditions by simulating how different medications might affect brain function.