After a rough night’s sleep, your ability to recognize whether those around you are happy or sad could suffer, according to a study led by a University of Arizona psychologist.

The research, published in the journal Neurobiology of Sleep and Circadian Rhythms, found that study participants had a harder time identifying facial expressions of happiness or sadness when they were sleep deprived versus well-rested.

The sleepy participants’ ability to interpret facial expressions of other emotions — anger, fear, surprise and disgust — was not impaired, however. That’s likely because we’re wired to recognize those more primitive emotions in order to survive acute dangers, said lead researcher William D.S. Killgore, a UA professor of psychiatry, psychology and medical imaging.

Read more at the University of Arizona